123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- var U3=Object.defineProperty,H3=Object.defineProperties;var Y3=Object.getOwnPropertyDescriptors;var bw=Object.getOwnPropertySymbols;var X3=Object.prototype.hasOwnProperty,G3=Object.prototype.propertyIsEnumerable;var _w=(er,Hn,kn)=>Hn in er?U3(er,Hn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):er[Hn]=kn,ob=(er,Hn)=>{for(var kn in Hn||(Hn={}))X3.call(Hn,kn)&&_w(er,kn,Hn[kn]);if(bw)for(var kn of bw(Hn))G3.call(Hn,kn)&&_w(er,kn,Hn[kn]);return er},Ow=(er,Hn)=>H3(er,Y3(Hn));var bp=(er,Hn,kn)=>new Promise((my,Dp)=>{var Bc=jo=>{try{Fc(kn.next(jo))}catch(_l){Dp(_l)}},by=jo=>{try{Fc(kn.throw(jo))}catch(_l){Dp(_l)}},Fc=jo=>jo.done?my(jo.value):Promise.resolve(jo.value).then(Bc,by);Fc((kn=kn.apply(er,Hn)).next())});import{dK as ir,dL as ww,ca as Dc,dM as _p,b2 as ca,dN as Nc,dO as xw,ck as si,cs as La,a$ as Yr,dP as W3,dQ as Ni,cT as V3,dR as K3,c_ as Op,dS as li,dT as q3,cZ as hl,cf as cy,dU as Uo,dV as Ew,cg as za,aH as jw,dW as Cc,ct as wp,cn as ib,cc as gr,dX as sy,ce as xp,dY as Ba,dZ as ln,d_ as sa,d$ as dl,e0 as Ep,cW as fi,cQ as Qn,cw as tr,e1 as Sw,e2 as Z3,cd as yl,e3 as Ci,cj as to,e4 as gl,e5 as $3,e6 as J3,e7 as Rc,e8 as ly,e9 as Aw,ea as Ic,eb as Fa,ec as Pw,ed as Q3,cq as tI,aS as vl,ee as eI,ef as ml,eg as ab,eh as kw,ei as Tw,ej as Mw,ek as Dw,el as rI,em as bl,cR as Lc,en as nI,eo as Nw,ep as Cw,eq as Rw,er as oI,es as Iw,et as iI,eu as aI,ev as uI,ew as cI,ex as sI,ey as fy,ez as zc,eA as lI,eB as fI,eC as pI,eD as Lw,eE as ub,eF as zw,eG as Bw,eH as Fw,eI as hI,cu as cb,eJ as dI,c9 as jp,eK as Uw,eL as Sp,aT as Hw,eM as Yw,eN as Xw,eO as yI,ch as Gw,ci as Ww,eP as gI,eQ as vI,cv as Ap,eR as mI,eS as bI,eT as _I,cz as OI,eU as wI,eV as xI,eW as EI,eX as jI,eY as SI,eZ as AI,e_ as PI,D as kI,co as TI,at as MI,e$ as DI,f0 as NI,a_ as CI,f1 as RI,f2 as II,K as LI,bE as zI,f3 as BI,f4 as FI,f5 as UI,f6 as HI,aZ as YI,aN as XI,d as Vw,aL as GI,aW as WI,aj as VI,r as py,a6 as KI,u as go,p as sb,ah as qI,_ as lb,y as ku,o as Tu,l as Pp,N as Kw,O as ZI,e as kp,w as hy,b as $I,t as JI,X as dy,H as fb,P as QI,c as pb,bX as t4,W as e4,bY as r4,A as n4,j as qw,n as o4,a as i4,ax as a4,__tla as u4}from"./index-b5895273.js";import{y as Tp,b as Zw}from"./preact.module-8c2bd209.js";import{b as $w,c as yy,a as Jw,d as c4,w as s4,__tla as l4}from"./_createCompounder-3d650df3.js";import{c as Mp,b as Qw,a as gy,i as f4,t as p4,m as h4,s as d4,__tla as y4}from"./set-b89b8dc5.js";import{i as Ri,__tla as g4}from"./_isIterateeCall-61185d8a.js";import{c as tx,d as ex,e as rx,f as v4,m as m4,b as b4,a as _4,__tla as O4}from"./min-03eb9ce8.js";import{i as w4,__tla as x4}from"./isEmpty-c9c1b572.js";import{b as vy,d as E4,__tla as j4}from"./difference-9954c5db.js";import{b as S4,c as A4,__tla as P4}from"./_baseOrderBy-055ce30a.js";import{u as k4,__tla as T4}from"./unionWith-3a64d623.js";import{u as M4,__tla as D4}from"./uniqBy-b68717e0.js";import{g as N4,__tla as C4}from"./groupBy-5911e587.js";import{o as R4,__tla as I4}from"./orderBy-7c4ff02d.js";import{b as nx,r as L4,__tla as z4}from"./random-c2506b20.js";import{s as B4,__tla as F4}from"./sortBy-8f8991dd.js";import{c as U4,a as H4,__tla as Y4}from"./camelCase-1172a23e.js";import{s as X4,__tla as G4}from"./snakeCase-d21134ea.js";import{c as W4,a as V4,t as K4,__tla as q4}from"./trim-8cccd6f3.js";import{c as hb,m as Z4,__tla as $4}from"./multiply-33c87434.js";import{b as J4,s as Q4,__tla as t8}from"./sum-f551e4a9.js";import{B as e8,u as r8,__tla as n8}from"./index-5eb30ce0.js";import{J as o8,__tla as i8}from"./index-d8d113fc.js";import{P as a8,__tla as u8}from"./index-3705f1a8.js";import{__tla as c8}from"./useWindowSizeFn-a59bee15.js";import{__tla as s8}from"./FullscreenOutlined-012b5e27.js";import{__tla as l8}from"./onMountedOrActivated-6125a24a.js";import{__tla as f8}from"./useContentViewHeight-cd147d02.js";let ox,p8=Promise.all([(()=>{try{return u4}catch(er){}})(),(()=>{try{return l4}catch(er){}})(),(()=>{try{return y4}catch(er){}})(),(()=>{try{return g4}catch(er){}})(),(()=>{try{return O4}catch(er){}})(),(()=>{try{return x4}catch(er){}})(),(()=>{try{return j4}catch(er){}})(),(()=>{try{return P4}catch(er){}})(),(()=>{try{return T4}catch(er){}})(),(()=>{try{return D4}catch(er){}})(),(()=>{try{return C4}catch(er){}})(),(()=>{try{return I4}catch(er){}})(),(()=>{try{return z4}catch(er){}})(),(()=>{try{return F4}catch(er){}})(),(()=>{try{return Y4}catch(er){}})(),(()=>{try{return G4}catch(er){}})(),(()=>{try{return q4}catch(er){}})(),(()=>{try{return $4}catch(er){}})(),(()=>{try{return t8}catch(er){}})(),(()=>{try{return n8}catch(er){}})(),(()=>{try{return i8}catch(er){}})(),(()=>{try{return u8}catch(er){}})(),(()=>{try{return c8}catch(er){}})(),(()=>{try{return s8}catch(er){}})(),(()=>{try{return l8}catch(er){}})(),(()=>{try{return f8}catch(er){}})()]).then(()=>bp(void 0,null,function*(){var er=hb(function(a,c){return a+c},0);const Hn=er;var kn="Expected a function";function my(a,c){if(typeof c!="function")throw new TypeError(kn);return a=ir(a),function(){if(--a<1)return c.apply(this,arguments)}}var Dp=ww&&new ww;const Bc=Dp;var by=Bc?function(a,c){return Bc.set(a,c),a}:Dc;const Fc=by;function jo(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var i=_p(a.prototype),f=a.apply(i,c);return ca(f)?f:i}}var _l=1;function ix(a,c,i){var f=c&_l,o=jo(a);function h(){var y=this&&this!==Nc&&this instanceof h?o:a;return y.apply(f?i:this,arguments)}return h}var ax=Math.max;function db(a,c,i,f){for(var o=-1,h=a.length,y=i.length,b=-1,v=c.length,E=ax(h-y,0),A=Array(v+E),k=!f;++b<v;)A[b]=c[b];for(;++o<y;)(k||o<h)&&(A[i[o]]=a[o]);for(;E--;)A[b++]=a[o++];return A}var ux=Math.max;function yb(a,c,i,f){for(var o=-1,h=a.length,y=-1,b=i.length,v=-1,E=c.length,A=ux(h-b,0),k=Array(A+E),T=!f;++o<A;)k[o]=a[o];for(var M=o;++v<E;)k[M+v]=c[v];for(;++y<b;)(T||o<h)&&(k[M+i[y]]=a[o++]);return k}function cx(a,c){for(var i=a.length,f=0;i--;)a[i]===c&&++f;return f}function Np(){}var sx=4294967295;function sr(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=sx,this.__views__=[]}sr.prototype=_p(Np.prototype),sr.prototype.constructor=sr;var lx=Bc?function(a){return Bc.get(a)}:xw;const _y=lx;var fx={};const Uc=fx;var px=Object.prototype,hx=px.hasOwnProperty;function Cp(a){for(var c=a.name+"",i=Uc[c],f=hx.call(Uc,c)?i.length:0;f--;){var o=i[f],h=o.func;if(h==null||h==a)return o.name}return c}function Ho(a,c){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=void 0}Ho.prototype=_p(Np.prototype),Ho.prototype.constructor=Ho;function gb(a){if(a instanceof sr)return a.clone();var c=new Ho(a.__wrapped__,a.__chain__);return c.__actions__=si(a.__actions__),c.__index__=a.__index__,c.__values__=a.__values__,c}var dx=Object.prototype,yx=dx.hasOwnProperty;function F(a){if(La(a)&&!Yr(a)&&!(a instanceof sr)){if(a instanceof Ho)return a;if(yx.call(a,"__wrapped__"))return gb(a)}return new Ho(a)}F.prototype=Np.prototype,F.prototype.constructor=F;function Oy(a){var c=Cp(a),i=F[c];if(typeof i!="function"||!(c in sr.prototype))return!1;if(a===i)return!0;var f=_y(i);return!!f&&a===f[0]}var gx=W3(Fc);const vb=gx;var vx=/\{\n\/\* \[wrapped with (.+)\] \*/,mx=/,? & /;function bx(a){var c=a.match(vx);return c?c[1].split(mx):[]}var _x=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ox(a,c){var i=c.length;if(!i)return a;var f=i-1;return c[f]=(i>1?"& ":"")+c[f],c=c.join(i>2?", ":" "),a.replace(_x,`{
- /* [wrapped with `+c+`] */
- `)}var wx=1,xx=2,Ex=8,jx=16,Sx=32,Ax=64,Px=128,kx=256,Tx=512,Mx=[["ary",Px],["bind",wx],["bindKey",xx],["curry",Ex],["curryRight",jx],["flip",Tx],["partial",Sx],["partialRight",Ax],["rearg",kx]];function Dx(a,c){return Ni(Mx,function(i){var f="_."+i[0];c&i[1]&&!V3(a,f)&&a.push(f)}),a.sort()}function mb(a,c,i){var f=c+"";return K3(a,Ox(f,Dx(bx(f),i)))}var Nx=1,Cx=2,Rx=4,Ix=8,bb=32,_b=64;function Ob(a,c,i,f,o,h,y,b,v,E){var A=c&Ix,k=A?y:void 0,T=A?void 0:y,M=A?h:void 0,I=A?void 0:h;c|=A?bb:_b,c&=~(A?_b:bb),c&Rx||(c&=~(Nx|Cx));var C=[a,c,o,M,k,I,T,b,v,E],L=i.apply(void 0,C);return Oy(a)&&vb(L,C),L.placeholder=f,mb(L,a,c)}function Hc(a){var c=a;return c.placeholder}var Lx=Math.min;function zx(a,c){for(var i=a.length,f=Lx(c.length,i),o=si(a);f--;){var h=c[f];a[f]=Op(h,i)?o[h]:void 0}return a}var wb="__lodash_placeholder__";function Ua(a,c){for(var i=-1,f=a.length,o=0,h=[];++i<f;){var y=a[i];(y===c||y===wb)&&(a[i]=wb,h[o++]=i)}return h}var Bx=1,Fx=2,Ux=8,Hx=16,Yx=128,Xx=512;function Rp(a,c,i,f,o,h,y,b,v,E){var A=c&Yx,k=c&Bx,T=c&Fx,M=c&(Ux|Hx),I=c&Xx,C=T?void 0:jo(a);function L(){for(var G=arguments.length,V=Array(G),nt=G;nt--;)V[nt]=arguments[nt];if(M)var st=Hc(L),at=cx(V,st);if(f&&(V=db(V,f,o,M)),h&&(V=yb(V,h,y,M)),G-=at,M&&G<E){var tt=Ua(V,st);return Ob(a,c,Rp,L.placeholder,i,V,tt,b,v,E-G)}var et=k?i:this,K=T?et[a]:a;return G=V.length,b?V=zx(V,b):I&&G>1&&V.reverse(),A&&v<G&&(V.length=v),this&&this!==Nc&&this instanceof L&&(K=C||jo(K)),K.apply(et,V)}return L}function Gx(a,c,i){var f=jo(a);function o(){for(var h=arguments.length,y=Array(h),b=h,v=Hc(o);b--;)y[b]=arguments[b];var E=h<3&&y[0]!==v&&y[h-1]!==v?[]:Ua(y,v);if(h-=E.length,h<i)return Ob(a,c,Rp,o.placeholder,void 0,y,E,void 0,void 0,i-h);var A=this&&this!==Nc&&this instanceof o?f:a;return li(A,this,y)}return o}var Wx=1;function Vx(a,c,i,f){var o=c&Wx,h=jo(a);function y(){for(var b=-1,v=arguments.length,E=-1,A=f.length,k=Array(A+v),T=this&&this!==Nc&&this instanceof y?h:a;++E<A;)k[E]=f[E];for(;v--;)k[E++]=arguments[++b];return li(T,o?i:this,k)}return y}var xb="__lodash_placeholder__",wy=1,Kx=2,qx=4,Eb=8,Ol=128,jb=256,Zx=Math.min;function $x(a,c){var i=a[1],f=c[1],o=i|f,h=o<(wy|Kx|Ol),y=f==Ol&&i==Eb||f==Ol&&i==jb&&a[7].length<=c[8]||f==(Ol|jb)&&c[7].length<=c[8]&&i==Eb;if(!(h||y))return a;f&wy&&(a[2]=c[2],o|=i&wy?0:qx);var b=c[3];if(b){var v=a[3];a[3]=v?db(v,b,c[4]):b,a[4]=v?Ua(a[3],xb):c[4]}return b=c[5],b&&(v=a[5],a[5]=v?yb(v,b,c[6]):b,a[6]=v?Ua(a[5],xb):c[6]),b=c[7],b&&(a[7]=b),f&Ol&&(a[8]=a[8]==null?c[8]:Zx(a[8],c[8])),a[9]==null&&(a[9]=c[9]),a[0]=c[0],a[1]=o,a}var Jx="Expected a function",Sb=1,Qx=2,xy=8,Ey=16,jy=32,Ab=64,Pb=Math.max;function la(a,c,i,f,o,h,y,b){var v=c&Qx;if(!v&&typeof a!="function")throw new TypeError(Jx);var E=f?f.length:0;if(E||(c&=~(jy|Ab),f=o=void 0),y=y===void 0?y:Pb(ir(y),0),b=b===void 0?b:ir(b),E-=o?o.length:0,c&Ab){var A=f,k=o;f=o=void 0}var T=v?void 0:_y(a),M=[a,c,i,f,o,A,k,h,y,b];if(T&&$x(M,T),a=M[0],c=M[1],i=M[2],f=M[3],o=M[4],b=M[9]=M[9]===void 0?v?0:a.length:Pb(M[9]-E,0),!b&&c&(xy|Ey)&&(c&=~(xy|Ey)),!c||c==Sb)var I=ix(a,c,i);else c==xy||c==Ey?I=Gx(a,c,b):(c==jy||c==(Sb|jy))&&!o.length?I=Vx(a,c,i,f):I=Rp.apply(void 0,M);var C=T?Fc:vb;return mb(C(I,M),a,c)}var tE=128;function kb(a,c,i){return c=i?void 0:c,c=a&&c==null?a.length:c,la(a,tE,void 0,void 0,void 0,void 0,c)}var eE=Object.prototype,rE=eE.hasOwnProperty,nE=Mp(function(a,c){if(q3(c)||hl(c)){cy(c,Uo(c),a);return}for(var i in c)rE.call(c,i)&&Ew(a,i,c[i])});const oE=nE;var iE=Mp(function(a,c){cy(c,za(c),a)});const Tb=iE;var aE=Mp(function(a,c,i,f){cy(c,za(c),a,f)});const Ip=aE;var uE=Mp(function(a,c,i,f){cy(c,Uo(c),a,f)});const cE=uE;function Sy(a,c){for(var i=-1,f=c.length,o=Array(f),h=a==null;++i<f;)o[i]=h?void 0:jw(a,c[i]);return o}var sE=Cc(Sy);const lE=sE;var fE="[object DOMException]",pE="[object Error]";function Ay(a){if(!La(a))return!1;var c=wp(a);return c==pE||c==fE||typeof a.message=="string"&&typeof a.name=="string"&&!ib(a)}var hE=gr(function(a,c){try{return li(a,void 0,c)}catch(i){return Ay(i)?i:new Error(i)}});const Mb=hE;var dE="Expected a function";function Db(a,c){var i;if(typeof c!="function")throw new TypeError(dE);return a=ir(a),function(){return--a>0&&(i=c.apply(this,arguments)),a<=1&&(c=void 0),i}}var yE=1,gE=32,Py=gr(function(a,c,i){var f=yE;if(i.length){var o=Ua(i,Hc(Py));f|=gE}return la(a,f,c,i,o)});Py.placeholder={};const Nb=Py;var vE=Cc(function(a,c){return Ni(c,function(i){i=sy(i),xp(a,i,Nb(a[i],a))}),a});const mE=vE;var bE=1,_E=2,OE=32,ky=gr(function(a,c,i){var f=bE|_E;if(i.length){var o=Ua(i,Hc(ky));f|=OE}return la(c,f,a,i,o)});ky.placeholder={};const wE=ky;function xE(){if(!arguments.length)return[];var a=arguments[0];return Yr(a)?a:[a]}var EE=Nc.isFinite,jE=Math.min;function Ty(a){var c=Math[a];return function(i,f){if(i=Ba(i),f=f==null?0:jE(ir(f),292),f&&EE(i)){var o=(ln(i)+"e").split("e"),h=c(o[0]+"e"+(+o[1]+f));return o=(ln(h)+"e").split("e"),+(o[0]+"e"+(+o[1]-f))}return c(i)}}var SE=Ty("ceil");const AE=SE;function Cb(a){var c=F(a);return c.__chain__=!0,c}var PE=Math.ceil,kE=Math.max;function TE(a,c,i){(i?Ri(a,c,i):c===void 0)?c=1:c=kE(ir(c),0);var f=a==null?0:a.length;if(!f||c<1)return[];for(var o=0,h=0,y=Array(PE(f/c));o<f;)y[h++]=sa(a,o,o+=c);return y}function Mu(a,c,i){return a===a&&(i!==void 0&&(a=a<=i?a:i),c!==void 0&&(a=a>=c?a:c)),a}function ME(a,c,i){return i===void 0&&(i=c,c=void 0),i!==void 0&&(i=Ba(i),i=i===i?i:0),c!==void 0&&(c=Ba(c),c=c===c?c:0),Mu(Ba(a),c,i)}var DE=1,NE=4;function CE(a,c){return c=typeof c=="function"?c:void 0,dl(a,DE|NE,c)}var RE=4;function IE(a,c){return c=typeof c=="function"?c:void 0,dl(a,RE,c)}function LE(){return new Ho(this.value(),this.__chain__)}function zE(a){for(var c=-1,i=a==null?0:a.length,f=0,o=[];++c<i;){var h=a[c];h&&(o[f++]=h)}return o}function BE(){var a=arguments.length;if(!a)return[];for(var c=Array(a-1),i=arguments[0],f=a;f--;)c[f-1]=arguments[f];return Ep(Yr(i)?si(i):[i],fi(c,1))}var FE="Expected a function";function UE(a){var c=a==null?0:a.length,i=tr;return a=c?Qn(a,function(f){if(typeof f[1]!="function")throw new TypeError(FE);return[i(f[0]),f[1]]}):[],gr(function(f){for(var o=-1;++o<c;){var h=a[o];if(li(h[0],this,f))return li(h[1],this,f)}})}function Rb(a,c,i){var f=i.length;if(a==null)return!f;for(a=Object(a);f--;){var o=i[f],h=c[o],y=a[o];if(y===void 0&&!(o in a)||!h(y))return!1}return!0}function HE(a){var c=Uo(a);return function(i){return Rb(i,a,c)}}var YE=1;function XE(a){return HE(dl(a,YE))}function GE(a,c){return c==null||Rb(a,c,Uo(c))}var WE=Object.prototype,VE=WE.hasOwnProperty,KE=Sw(function(a,c,i){VE.call(a,i)?++a[i]:xp(a,i,1)});const qE=KE;function ZE(a,c){var i=_p(a);return c==null?i:Z3(i,c)}var $E=8;function My(a,c,i){c=i?void 0:c;var f=la(a,$E,void 0,void 0,void 0,void 0,void 0,c);return f.placeholder=My.placeholder,f}My.placeholder={};var JE=16;function Dy(a,c,i){c=i?void 0:c;var f=la(a,JE,void 0,void 0,void 0,void 0,void 0,c);return f.placeholder=Dy.placeholder,f}Dy.placeholder={};function QE(a,c){return a==null||a!==a?c:a}var Ib=Object.prototype,tj=Ib.hasOwnProperty,ej=gr(function(a,c){a=Object(a);var i=-1,f=c.length,o=f>2?c[2]:void 0;for(o&&Ri(c[0],c[1],o)&&(f=1);++i<f;)for(var h=c[i],y=za(h),b=-1,v=y.length;++b<v;){var E=y[b],A=a[E];(A===void 0||yl(A,Ib[E])&&!tj.call(a,E))&&(a[E]=h[E])}return a});const rj=ej;function Lb(a,c,i,f,o,h){return ca(a)&&ca(c)&&(h.set(c,a),Qw(a,c,void 0,Lb,h),h.delete(c)),a}var nj=Mp(function(a,c,i,f){Qw(a,c,i,f)});const zb=nj;var oj=gr(function(a){return a.push(void 0,Lb),li(zb,void 0,a)});const ij=oj;var aj="Expected a function";function Bb(a,c,i){if(typeof a!="function")throw new TypeError(aj);return setTimeout(function(){a.apply(void 0,i)},c)}var uj=gr(function(a,c){return Bb(a,1,c)});const cj=uj;var sj=gr(function(a,c,i){return Bb(a,Ba(c)||0,i)});const lj=sj;var fj=gr(function(a,c){var i=Ci(c);return to(i)&&(i=void 0),to(a)?vy(a,fi(c,1,to,!0),tr(i)):[]});const pj=fj;var hj=gr(function(a,c){var i=Ci(c);return to(i)&&(i=void 0),to(a)?vy(a,fi(c,1,to,!0),void 0,i):[]});const dj=hj;var yj=hb(function(a,c){return a/c},1);const gj=yj;function vj(a,c,i){var f=a==null?0:a.length;return f?(c=i||c===void 0?1:ir(c),sa(a,c<0?0:c,f)):[]}function mj(a,c,i){var f=a==null?0:a.length;return f?(c=i||c===void 0?1:ir(c),c=f-c,sa(a,0,c<0?0:c)):[]}function Lp(a,c,i,f){for(var o=a.length,h=f?o:-1;(f?h--:++h<o)&&c(a[h],h,a););return i?sa(a,f?0:h,f?h+1:o):sa(a,f?h+1:0,f?o:h)}function bj(a,c){return a&&a.length?Lp(a,tr(c),!0,!0):[]}function _j(a,c){return a&&a.length?Lp(a,tr(c),!0):[]}function Ii(a){return typeof a=="function"?a:Dc}function Fb(a,c){var i=Yr(a)?Ni:gl;return i(a,Ii(c))}function Oj(a,c){for(var i=a==null?0:a.length;i--&&c(a[i],i,a)!==!1;);return a}var wj=$3(!0);const Ub=wj;function Ny(a,c){return a&&Ub(a,c,Uo)}var xj=J3(Ny,!0);const Hb=xj;function Yb(a,c){var i=Yr(a)?Oj:Hb;return i(a,Ii(c))}function Ej(a,c,i){a=ln(a),c=Rc(c);var f=a.length;i=i===void 0?f:Mu(ir(i),0,f);var o=i;return i-=c.length,i>=0&&a.slice(i,o)==c}function jj(a,c){return Qn(c,function(i){return[i,a[i]]})}function Sj(a){var c=-1,i=Array(a.size);return a.forEach(function(f){i[++c]=[f,f]}),i}var Aj="[object Map]",Pj="[object Set]";function Xb(a){return function(c){var i=ly(c);return i==Aj?Aw(c):i==Pj?Sj(c):jj(c,a(c))}}var kj=Xb(Uo);const Gb=kj;var Tj=Xb(za);const Wb=Tj;var Mj={"&":"&","<":"<",">":">",'"':""","'":"'"},Dj=$w(Mj);const Nj=Dj;var Vb=/[&<>"']/g,Cj=RegExp(Vb.source);function Kb(a){return a=ln(a),a&&Cj.test(a)?a.replace(Vb,Nj):a}var qb=/[\\^$.*+?()[\]{}|]/g,Rj=RegExp(qb.source);function Ij(a){return a=ln(a),a&&Rj.test(a)?a.replace(qb,"\\$&"):a}function Zb(a,c){for(var i=-1,f=a==null?0:a.length;++i<f;)if(!c(a[i],i,a))return!1;return!0}function Lj(a,c){var i=!0;return gl(a,function(f,o,h){return i=!!c(f,o,h),i}),i}function zj(a,c,i){var f=Yr(a)?Zb:Lj;return i&&Ri(a,c,i)&&(c=void 0),f(a,tr(c))}var Bj=4294967295;function $b(a){return a?Mu(ir(a),0,Bj):0}function Fj(a,c,i,f){var o=a.length;for(i=ir(i),i<0&&(i=-i>o?0:o+i),f=f===void 0||f>o?o:ir(f),f<0&&(f+=o),f=i>f?0:$b(f);i<f;)a[i++]=c;return a}function Uj(a,c,i,f){var o=a==null?0:a.length;return o?(i&&typeof i!="number"&&Ri(a,c,i)&&(i=0,f=o),Fj(a,c,i,f)):[]}function Jb(a,c){var i=[];return gl(a,function(f,o,h){c(f,o,h)&&i.push(f)}),i}function Hj(a,c){var i=Yr(a)?Ic:Jb;return i(a,tr(c))}function Qb(a,c,i){var f;return i(a,function(o,h,y){if(c(o,h,y))return f=h,!1}),f}function Yj(a,c){return Qb(a,tr(c),Fa)}var Xj=Math.max,Gj=Math.min;function t0(a,c,i){var f=a==null?0:a.length;if(!f)return-1;var o=f-1;return i!==void 0&&(o=ir(i),o=i<0?Xj(f+o,0):Gj(o,f-1)),Pw(a,tr(c),o,!0)}var Wj=Q3(t0);const Vj=Wj;function Kj(a,c){return Qb(a,tr(c),Ny)}function e0(a){return a&&a.length?a[0]:void 0}function zp(a,c){var i=Yr(a)?Qn:S4;return i(a,tr(c))}function qj(a,c){return fi(zp(a,c),1)}var Zj=1/0;function $j(a,c){return fi(zp(a,c),Zj)}function Jj(a,c,i){return i=i===void 0?1:ir(i),fi(zp(a,c),i)}var Qj=1/0;function tS(a){var c=a==null?0:a.length;return c?fi(a,Qj):[]}function eS(a,c){var i=a==null?0:a.length;return i?(c=c===void 0?1:ir(c),fi(a,c)):[]}var rS=512;function nS(a){return la(a,rS)}var oS=Ty("floor");const iS=oS;var aS="Expected a function",uS=8,cS=32,sS=128,lS=256;function r0(a){return Cc(function(c){var i=c.length,f=i,o=Ho.prototype.thru;for(a&&c.reverse();f--;){var h=c[f];if(typeof h!="function")throw new TypeError(aS);if(o&&!y&&Cp(h)=="wrapper")var y=new Ho([],!0)}for(f=y?f:i;++f<i;){h=c[f];var b=Cp(h),v=b=="wrapper"?_y(h):void 0;v&&Oy(v[0])&&v[1]==(sS|uS|cS|lS)&&!v[4].length&&v[9]==1?y=y[Cp(v[0])].apply(y,v[3]):y=h.length==1&&Oy(h)?y[b]():y.thru(h)}return function(){var E=arguments,A=E[0];if(y&&E.length==1&&Yr(A))return y.plant(A).value();for(var k=0,T=i?c[k].apply(this,E):A;++k<i;)T=c[k].call(this,T);return T}})}var fS=r0();const pS=fS;var hS=r0(!0);const dS=hS;function yS(a,c){return a==null?a:tI(a,Ii(c),za)}function gS(a,c){return a==null?a:Ub(a,Ii(c),za)}function vS(a,c){return a&&Fa(a,Ii(c))}function mS(a,c){return a&&Ny(a,Ii(c))}function Bp(a,c){return Ic(c,function(i){return vl(a[i])})}function bS(a){return a==null?[]:Bp(a,Uo(a))}function _S(a){return a==null?[]:Bp(a,za(a))}function Fp(a){return function(c,i){return typeof c=="string"&&typeof i=="string"||(c=Ba(c),i=Ba(i)),a(c,i)}}var OS=Fp(tx);const wS=OS;var xS=Fp(function(a,c){return a>=c});const ES=xS;var jS=Object.prototype,SS=jS.hasOwnProperty;function AS(a,c){return a!=null&&SS.call(a,c)}function PS(a,c){return a!=null&&eI(a,c,AS)}var kS=Math.max,TS=Math.min;function MS(a,c,i){return a>=TS(c,i)&&a<kS(c,i)}function DS(a,c,i){return c=ml(c),i===void 0?(i=c,c=0):i=ml(i),a=Ba(a),MS(a,c,i)}function Cy(a,c){return Qn(c,function(i){return a[i]})}function Yc(a){return a==null?[]:Cy(a,Uo(a))}var NS=Math.max;function CS(a,c,i,f){a=hl(a)?a:Yc(a),i=i&&!f?ir(i):0;var o=a.length;return i<0&&(i=NS(o+i,0)),gy(a)?i<=o&&a.indexOf(c,i)>-1:!!o&&ab(a,c,i)>-1}var RS=Math.max;function IS(a,c,i){var f=a==null?0:a.length;if(!f)return-1;var o=i==null?0:ir(i);return o<0&&(o=RS(f+o,0)),ab(a,c,o)}function LS(a){var c=a==null?0:a.length;return c?sa(a,0,-1):[]}var zS=gr(function(a){var c=Ci(a),i=Qn(a,kw);return c===Ci(i)?c=void 0:i.pop(),i.length&&i[0]===a[0]?Tw(i,tr(c)):[]});const BS=zS;var FS=gr(function(a){var c=Ci(a),i=Qn(a,kw);return c=typeof c=="function"?c:void 0,c&&i.pop(),i.length&&i[0]===a[0]?Tw(i,void 0,c):[]});const US=FS;function HS(a,c,i,f){return Fa(a,function(o,h,y){c(f,i(o),h,y)}),f}function n0(a,c){return function(i,f){return HS(i,a,c(f),{})}}var YS=Object.prototype,XS=YS.toString,GS=n0(function(a,c,i){c!=null&&typeof c.toString!="function"&&(c=XS.call(c)),a[c]=i},Mw(Dc));const WS=GS;var o0=Object.prototype,VS=o0.hasOwnProperty,KS=o0.toString,qS=n0(function(a,c,i){c!=null&&typeof c.toString!="function"&&(c=KS.call(c)),VS.call(a,c)?a[c].push(i):a[c]=[i]},tr);const ZS=qS;function wl(a,c,i){c=Dw(c,a),a=rI(a,c);var f=a==null?a:a[sy(Ci(c))];return f==null?void 0:li(f,a,i)}var $S=gr(wl);const JS=$S;var QS=gr(function(a,c,i){var f=-1,o=typeof c=="function",h=hl(a)?Array(a.length):[];return gl(a,function(y){h[++f]=o?li(c,y,i):wl(y,c,i)}),h});const tA=QS;var eA="[object ArrayBuffer]";function rA(a){return La(a)&&wp(a)==eA}var i0=bl&&bl.isArrayBuffer,nA=i0?Lc(i0):rA;const oA=nA;var iA="[object Date]";function aA(a){return La(a)&&wp(a)==iA}var a0=bl&&bl.isDate,uA=a0?Lc(a0):aA;const cA=uA;function sA(a){return La(a)&&a.nodeType===1&&!ib(a)}function lA(a,c,i){i=typeof i=="function"?i:void 0;var f=i?i(a,c):void 0;return f===void 0?nI(a,c,void 0,i):!!f}var fA=Nc.isFinite;function pA(a){return typeof a=="number"&&fA(a)}function u0(a){return typeof a=="number"&&a==ir(a)}function hA(a,c){return a===c||Nw(a,c,Cw(c))}function dA(a,c,i){return i=typeof i=="function"?i:void 0,Nw(a,c,Cw(c),i)}function yA(a){return Rw(a)&&a!=+a}var gA=oI?vl:Iw;const vA=gA;var mA="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function bA(a){if(vA(a))throw new Error(mA);return iI(a)}function _A(a){return a===null}var OA="[object RegExp]";function wA(a){return La(a)&&wp(a)==OA}var c0=bl&&bl.isRegExp,xA=c0?Lc(c0):wA;const Ry=xA;var s0=9007199254740991;function EA(a){return u0(a)&&a>=-s0&&a<=s0}function jA(a){return a===void 0}var SA="[object WeakMap]";function AA(a){return La(a)&&ly(a)==SA}var PA="[object WeakSet]";function kA(a){return La(a)&&wp(a)==PA}var TA=1;function MA(a){return tr(typeof a=="function"?a:dl(a,TA))}var DA=Array.prototype,NA=DA.join;function CA(a,c){return a==null?"":NA.call(a,c)}var RA=yy(function(a,c,i){return a+(i?"-":"")+c.toLowerCase()});const IA=RA;var LA=Sw(function(a,c,i){xp(a,i,c)});const zA=LA;function BA(a,c,i){for(var f=i+1;f--;)if(a[f]===c)return f;return f}var FA=Math.max,UA=Math.min;function HA(a,c,i){var f=a==null?0:a.length;if(!f)return-1;var o=f;return i!==void 0&&(o=ir(i),o=o<0?FA(f+o,0):UA(o,f-1)),c===c?BA(a,c,o):Pw(a,aI,o,!0)}var YA=yy(function(a,c,i){return a+(i?" ":"")+c.toLowerCase()});const XA=YA;var GA=uI("toLowerCase");const WA=GA;var VA=Fp(ex);const KA=VA;var qA=Fp(function(a,c){return a<=c});const ZA=qA;function $A(a,c){var i={};return c=tr(c),Fa(a,function(f,o,h){xp(i,c(f,o,h),f)}),i}function JA(a,c){var i={};return c=tr(c),Fa(a,function(f,o,h){xp(i,o,c(f,o,h))}),i}var QA=1;function tP(a){return cI(dl(a,QA))}var eP=1;function rP(a,c){return sI(a,dl(c,eP))}function nP(a,c){return a&&a.length?rx(a,tr(c),tx):void 0}function oP(a,c){return v4(a,tr(c))}var iP=gr(function(a,c){return function(i){return wl(i,a,c)}});const aP=iP;var uP=gr(function(a,c){return function(i){return wl(a,i,c)}});const cP=uP;function sP(a,c){return a&&a.length?rx(a,tr(c),ex):void 0}function l0(a,c,i){var f=Uo(c),o=Bp(c,f),h=!(ca(i)&&"chain"in i)||!!i.chain,y=vl(a);return Ni(o,function(b){var v=c[b];a[b]=v,y&&(a.prototype[b]=function(){var E=this.__chain__;if(h||E){var A=a(this.__wrapped__),k=A.__actions__=si(this.__actions__);return k.push({func:v,args:arguments,thisArg:a}),A.__chain__=E,A}return v.apply(a,Ep([this.value()],arguments))})}),a}var lP="Expected a function";function xl(a){if(typeof a!="function")throw new TypeError(lP);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function fP(a){for(var c,i=[];!(c=a.next()).done;)i.push(c.value);return i}var pP="[object Map]",hP="[object Set]",Iy=fy?fy.iterator:void 0;function f0(a){if(!a)return[];if(hl(a))return gy(a)?zc(a):si(a);if(Iy&&a[Iy])return fP(a[Iy]());var c=ly(a),i=c==pP?Aw:c==hP?lI:Yc;return i(a)}function dP(){this.__values__===void 0&&(this.__values__=f0(this.value()));var a=this.__index__>=this.__values__.length,c=a?void 0:this.__values__[this.__index__++];return{done:a,value:c}}function p0(a,c){var i=a.length;if(i)return c+=c<0?i:0,Op(c,i)?a[c]:void 0}function yP(a,c){return a&&a.length?p0(a,ir(c)):void 0}function gP(a){return a=ir(a),gr(function(c){return p0(c,a)})}function h0(a,c){if(a==null)return{};var i=Qn(fI(a),function(f){return[f]});return c=tr(c),pI(a,i,function(f,o){return c(f,o[0])})}function vP(a,c){return h0(a,xl(tr(c)))}function mP(a){return Db(2,a)}function Ly(a){return Cc(function(c){return c=Qn(c,Lc(tr)),gr(function(i){var f=this;return a(c,function(o){return li(o,f,i)})})})}var bP=Ly(Qn);const _P=bP;var OP=gr;const wP=OP;var xP=Math.min,EP=wP(function(a,c){c=c.length==1&&Yr(c[0])?Qn(c[0],Lc(tr)):Qn(fi(c,1),Lc(tr));var i=c.length;return gr(function(f){for(var o=-1,h=xP(f.length,i);++o<h;)f[o]=c[o].call(this,f[o]);return li(a,this,f)})});const jP=EP;var SP=Ly(Zb);const AP=SP;var PP=Ly(Lw);const kP=PP;var TP=Math.ceil,MP=Math.floor;function DP(a,c,i){a=ln(a),c=ir(c);var f=c?ub(a):0;if(!c||f>=c)return a;var o=(c-f)/2;return zw(MP(o),i)+a+zw(TP(o),i)}var NP=/^\s+/,CP=Nc.parseInt;function RP(a,c,i){return i||c==null?c=0:c&&(c=+c),CP(ln(a).replace(NP,""),c||0)}var IP=32,zy=gr(function(a,c){var i=Ua(c,Hc(zy));return la(a,IP,void 0,c,i)});zy.placeholder={};const d0=zy;var LP=64,By=gr(function(a,c){var i=Ua(c,Hc(By));return la(a,LP,void 0,c,i)});By.placeholder={};const zP=By;function BP(a){for(var c,i=this;i instanceof Np;){var f=gb(i);f.__index__=0,f.__values__=void 0,c?o.__wrapped__=f:c=f;var o=f;i=i.__wrapped__}return o.__wrapped__=a,c}function FP(a){return function(c){return a==null?void 0:Bw(a,c)}}function UP(a,c,i,f){for(var o=i-1,h=a.length;++o<h;)if(f(a[o],c))return o;return-1}var HP=Array.prototype,y0=HP.splice;function Fy(a,c,i,f){var o=f?UP:ab,h=-1,y=c.length,b=a;for(a===c&&(c=si(c)),i&&(b=Qn(a,Lc(i)));++h<y;)for(var v=0,E=c[h],A=i?i(E):E;(v=o(b,A,v,f))>-1;)b!==a&&y0.call(b,v,1),y0.call(a,v,1);return a}function g0(a,c){return a&&a.length&&c&&c.length?Fy(a,c):a}var YP=gr(g0);const XP=YP;function GP(a,c,i){return a&&a.length&&c&&c.length?Fy(a,c,tr(i)):a}function WP(a,c,i){return a&&a.length&&c&&c.length?Fy(a,c,void 0,i):a}var VP=Array.prototype,KP=VP.splice;function v0(a,c){for(var i=a?c.length:0,f=i-1;i--;){var o=c[i];if(i==f||o!==h){var h=o;Op(o)?KP.call(a,o,1):Fw(a,o)}}return a}var qP=Cc(function(a,c){var i=a==null?0:a.length,f=Sy(a,c);return v0(a,Qn(c,function(o){return Op(o,i)?+o:o}).sort(A4)),f});const ZP=qP;var $P=Math.ceil,JP=Math.max;function QP(a,c,i,f){for(var o=-1,h=JP($P((c-a)/(i||1)),0),y=Array(h);h--;)y[f?h:++o]=a,a+=i;return y}function m0(a){return function(c,i,f){return f&&typeof f!="number"&&Ri(c,i,f)&&(i=f=void 0),c=ml(c),i===void 0?(i=c,c=0):i=ml(i),f=f===void 0?c<i?1:-1:ml(f),QP(c,i,f,a)}}var tk=m0();const ek=tk;var rk=m0(!0);const nk=rk;var ok=256,ik=Cc(function(a,c){return la(a,ok,void 0,void 0,void 0,c)});const ak=ik;function b0(a,c,i,f,o){return o(a,function(h,y,b){i=f?(f=!1,h):c(i,h,y,b)}),i}function uk(a,c,i){var f=Yr(a)?Jw:b0,o=arguments.length<3;return f(a,tr(c),i,o,gl)}function ck(a,c,i,f){var o=a==null?0:a.length;for(f&&o&&(i=a[--o]);o--;)i=c(i,a[o],o,a);return i}function sk(a,c,i){var f=Yr(a)?ck:b0,o=arguments.length<3;return f(a,tr(c),i,o,Hb)}function lk(a,c){var i=Yr(a)?Ic:Jb;return i(a,xl(tr(c)))}function fk(a,c){var i=[];if(!(a&&a.length))return i;var f=-1,o=[],h=a.length;for(c=tr(c);++f<h;){var y=a[f];c(y,f,a)&&(i.push(y),o.push(f))}return v0(a,o),i}function pk(a,c,i){return(i?Ri(a,c,i):c===void 0)?c=1:c=ir(c),hI(ln(a),c)}function hk(){var a=arguments,c=ln(a[0]);return a.length<3?c:c.replace(a[1],a[2])}var dk="Expected a function";function yk(a,c){if(typeof a!="function")throw new TypeError(dk);return c=c===void 0?c:ir(c),gr(a,c)}function gk(a,c,i){c=Dw(c,a);var f=-1,o=c.length;for(o||(o=1,a=void 0);++f<o;){var h=a==null?void 0:a[sy(c[f])];h===void 0&&(f=o,h=i),a=vl(h)?h.call(a):h}return a}var vk=Array.prototype,mk=vk.reverse;function Uy(a){return a==null?a:mk.call(a)}var bk=Ty("round");const _k=bk;function _0(a){var c=a.length;return c?a[nx(0,c-1)]:void 0}function Ok(a){return _0(Yc(a))}function wk(a){var c=Yr(a)?_0:Ok;return c(a)}function Up(a,c){var i=-1,f=a.length,o=f-1;for(c=c===void 0?f:c;++i<c;){var h=nx(i,o),y=a[h];a[h]=a[i],a[i]=y}return a.length=c,a}function xk(a,c){return Up(si(a),Mu(c,0,a.length))}function Ek(a,c){var i=Yc(a);return Up(i,Mu(c,0,i.length))}function jk(a,c,i){(i?Ri(a,c,i):c===void 0)?c=1:c=ir(c);var f=Yr(a)?xk:Ek;return f(a,c)}function Sk(a,c,i,f){return f=typeof f=="function"?f:void 0,a==null?a:cb(a,c,i,f)}function Ak(a){return Up(si(a))}function Pk(a){return Up(Yc(a))}function kk(a){var c=Yr(a)?Ak:Pk;return c(a)}var Tk="[object Map]",Mk="[object Set]";function Dk(a){if(a==null)return 0;if(hl(a))return gy(a)?ub(a):a.length;var c=ly(a);return c==Tk||c==Mk?a.size:dI(a).length}function Nk(a,c,i){var f=a==null?0:a.length;return f?(i&&typeof i!="number"&&Ri(a,c,i)?(c=0,i=f):(c=c==null?0:ir(c),i=i===void 0?f:ir(i)),sa(a,c,i)):[]}function Ck(a,c){var i;return gl(a,function(f,o,h){return i=c(f,o,h),!i}),!!i}function Rk(a,c,i){var f=Yr(a)?Lw:Ck;return i&&Ri(a,c,i)&&(c=void 0),f(a,tr(c))}var Ik=4294967295,Lk=Ik-1,zk=Math.floor,Bk=Math.min;function Hy(a,c,i,f){var o=0,h=a==null?0:a.length;if(h===0)return 0;c=i(c);for(var y=c!==c,b=c===null,v=jp(c),E=c===void 0;o<h;){var A=zk((o+h)/2),k=i(a[A]),T=k!==void 0,M=k===null,I=k===k,C=jp(k);if(y)var L=f||I;else E?L=I&&(f||T):b?L=I&&T&&(f||!M):v?L=I&&T&&!M&&(f||!C):M||C?L=!1:L=f?k<=c:k<c;L?o=A+1:h=A}return Bk(h,Lk)}var Fk=4294967295,Uk=Fk>>>1;function Hp(a,c,i){var f=0,o=a==null?f:a.length;if(typeof c=="number"&&c===c&&o<=Uk){for(;f<o;){var h=f+o>>>1,y=a[h];y!==null&&!jp(y)&&(i?y<=c:y<c)?f=h+1:o=h}return o}return Hy(a,c,Dc,i)}function Hk(a,c){return Hp(a,c)}function Yk(a,c,i){return Hy(a,c,tr(i))}function Xk(a,c){var i=a==null?0:a.length;if(i){var f=Hp(a,c);if(f<i&&yl(a[f],c))return f}return-1}function Gk(a,c){return Hp(a,c,!0)}function Wk(a,c,i){return Hy(a,c,tr(i),!0)}function Vk(a,c){var i=a==null?0:a.length;if(i){var f=Hp(a,c,!0)-1;if(yl(a[f],c))return f}return-1}function O0(a,c){for(var i=-1,f=a.length,o=0,h=[];++i<f;){var y=a[i],b=c?c(y):y;if(!i||!yl(b,v)){var v=b;h[o++]=y===0?0:y}}return h}function Kk(a){return a&&a.length?O0(a):[]}function qk(a,c){return a&&a.length?O0(a,tr(c)):[]}var Zk=4294967295;function $k(a,c,i){return i&&typeof i!="number"&&Ri(a,c,i)&&(c=i=void 0),i=i===void 0?Zk:i>>>0,i?(a=ln(a),a&&(typeof c=="string"||c!=null&&!Ry(c))&&(c=Rc(c),!c&&Uw(a))?Sp(zc(a),0,i):a.split(c,i)):[]}var Jk="Expected a function",Qk=Math.max;function t2(a,c){if(typeof a!="function")throw new TypeError(Jk);return c=c==null?0:Qk(ir(c),0),gr(function(i){var f=i[c],o=Sp(i,0,c);return f&&Ep(o,f),li(a,this,o)})}var e2=yy(function(a,c,i){return a+(i?" ":"")+Hw(c)});const r2=e2;function n2(a,c,i){return a=ln(a),i=i==null?0:Mu(ir(i),0,a.length),c=Rc(c),a.slice(i,i+c.length)==c}function o2(){return{}}function i2(){return""}function a2(){return!0}var u2=hb(function(a,c){return a-c},0);const c2=u2;function s2(a,c){return a&&a.length?J4(a,tr(c)):0}function l2(a){var c=a==null?0:a.length;return c?sa(a,1,c):[]}function f2(a,c,i){return a&&a.length?(c=i||c===void 0?1:ir(c),sa(a,0,c<0?0:c)):[]}function p2(a,c,i){var f=a==null?0:a.length;return f?(c=i||c===void 0?1:ir(c),c=f-c,sa(a,c<0?0:c,f)):[]}function h2(a,c){return a&&a.length?Lp(a,tr(c),!1,!0):[]}function d2(a,c){return a&&a.length?Lp(a,tr(c)):[]}function y2(a,c){return c(a),a}var w0=Object.prototype,g2=w0.hasOwnProperty;function x0(a,c,i,f){return a===void 0||yl(a,w0[i])&&!g2.call(f,i)?c:a}var v2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function m2(a){return"\\"+v2[a]}var b2=/<%=([\s\S]+?)%>/g;const E0=b2;var _2=/<%-([\s\S]+?)%>/g;const O2=_2;var w2=/<%([\s\S]+?)%>/g,x2={escape:O2,evaluate:w2,interpolate:E0,variable:"",imports:{_:{escape:Kb}}};const Yy=x2;var E2="Invalid `variable` option passed into `_.template`",j2=/\b__p \+= '';/g,S2=/\b(__p \+=) '' \+/g,A2=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P2=/[()=,{}\[\]\/\s]/,k2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yp=/($^)/,T2=/['\n\r\u2028\u2029\\]/g,M2=Object.prototype,j0=M2.hasOwnProperty;function D2(a,c,i){var f=Yy.imports._.templateSettings||Yy;i&&Ri(a,c,i)&&(c=void 0),a=ln(a),c=Ip({},c,f,x0);var o=Ip({},c.imports,f.imports,x0),h=Uo(o),y=Cy(o,h),b,v,E=0,A=c.interpolate||Yp,k="__p += '",T=RegExp((c.escape||Yp).source+"|"+A.source+"|"+(A===E0?k2:Yp).source+"|"+(c.evaluate||Yp).source+"|$","g"),M=j0.call(c,"sourceURL")?"//# sourceURL="+(c.sourceURL+"").replace(/\s/g," ")+`
- `:"";a.replace(T,function(L,G,V,nt,st,at){return V||(V=nt),k+=a.slice(E,at).replace(T2,m2),G&&(b=!0,k+=`' +
- __e(`+G+`) +
- '`),st&&(v=!0,k+=`';
- `+st+`;
- __p += '`),V&&(k+=`' +
- ((__t = (`+V+`)) == null ? '' : __t) +
- '`),E=at+L.length,L}),k+=`';
- `;var I=j0.call(c,"variable")&&c.variable;if(!I)k=`with (obj) {
- `+k+`
- }
- `;else if(P2.test(I))throw new Error(E2);k=(v?k.replace(j2,""):k).replace(S2,"$1").replace(A2,"$1;"),k="function("+(I||"obj")+`) {
- `+(I?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(v?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+k+`return __p
- }`;var C=Mb(function(){return Function(h,M+"return "+k).apply(void 0,y)});if(C.source=k,Ay(C))throw C;return C}var N2="Expected a function";function C2(a,c,i){var f=!0,o=!0;if(typeof a!="function")throw new TypeError(N2);return ca(i)&&(f="leading"in i?!!i.leading:f,o="trailing"in i?!!i.trailing:o),Yw(a,c,{leading:f,maxWait:c,trailing:o})}function El(a,c){return c(a)}var R2=9007199254740991,Xy=4294967295,I2=Math.min;function L2(a,c){if(a=ir(a),a<1||a>R2)return[];var i=Xy,f=I2(a,Xy);c=Ii(c),a-=Xy;for(var o=Xw(f,c);++i<a;)c(i);return o}function z2(){return this}function S0(a,c){var i=a;return i instanceof sr&&(i=i.value()),Jw(c,function(f,o){return o.func.apply(o.thisArg,Ep([f],o.args))},i)}function Gy(){return S0(this.__wrapped__,this.__actions__)}function B2(a){return ln(a).toLowerCase()}function F2(a){return Yr(a)?Qn(a,sy):jp(a)?[a]:si(yI(ln(a)))}var A0=9007199254740991;function U2(a){return a?Mu(ir(a),-A0,A0):a===0?a:0}function H2(a){return ln(a).toUpperCase()}function Y2(a,c,i){var f=Yr(a),o=f||Gw(a)||Ww(a);if(c=tr(c),i==null){var h=a&&a.constructor;o?i=f?new h:[]:ca(a)?i=vl(h)?_p(gI(a)):{}:i={}}return(o?Ni:Fa)(a,function(y,b,v){return c(i,y,b,v)}),i}function X2(a,c,i){if(a=ln(a),a&&(i||c===void 0))return a.slice(0,vI(a)+1);if(!a||!(c=Rc(c)))return a;var f=zc(a),o=W4(f,zc(c))+1;return Sp(f,0,o).join("")}var G2=/^\s+/;function W2(a,c,i){if(a=ln(a),a&&(i||c===void 0))return a.replace(G2,"");if(!a||!(c=Rc(c)))return a;var f=zc(a),o=V4(f,zc(c));return Sp(f,o).join("")}var V2=30,K2="...",q2=/\w*$/;function Z2(a,c){var i=V2,f=K2;if(ca(c)){var o="separator"in c?c.separator:o;i="length"in c?ir(c.length):i,f="omission"in c?Rc(c.omission):f}a=ln(a);var h=a.length;if(Uw(a)){var y=zc(a);h=y.length}if(i>=h)return a;var b=i-ub(f);if(b<1)return f;var v=y?Sp(y,0,b).join(""):a.slice(0,b);if(o===void 0)return v+f;if(y&&(b+=v.length-b),Ry(o)){if(a.slice(b).search(o)){var E,A=v;for(o.global||(o=RegExp(o.source,ln(q2.exec(o))+"g")),o.lastIndex=0;E=o.exec(A);)var k=E.index;v=v.slice(0,k===void 0?b:k)}}else if(a.indexOf(Rc(o),b)!=b){var T=v.lastIndexOf(o);T>-1&&(v=v.slice(0,T))}return v+f}function $2(a){return kb(a,1)}var J2={"&":"&","<":"<",">":">",""":'"',"'":"'"},Q2=$w(J2);const tT=Q2;var P0=/&(?:amp|lt|gt|quot|#39);/g,eT=RegExp(P0.source);function rT(a){return a=ln(a),a&&eT.test(a)?a.replace(P0,tT):a}var nT=gr(function(a){return Ap(fi(a,1,to,!0))});const oT=nT;var iT=gr(function(a){var c=Ci(a);return to(c)&&(c=void 0),Ap(fi(a,1,to,!0),tr(c))});const aT=iT;function uT(a,c){return c=typeof c=="function"?c:void 0,a&&a.length?Ap(a,void 0,c):[]}var cT=0;function sT(a){var c=++cT;return ln(a)+c}function lT(a,c){return a==null?!0:Fw(a,c)}var fT=Math.max;function Wy(a){if(!(a&&a.length))return[];var c=0;return a=Ic(a,function(i){if(to(i))return c=fT(i.length,c),!0}),Xw(c,function(i){return Qn(a,mI(i))})}function k0(a,c){if(!(a&&a.length))return[];var i=Wy(a);return c==null?i:Qn(i,function(f){return li(c,void 0,f)})}function T0(a,c,i,f){return cb(a,c,i(Bw(a,c)),f)}function pT(a,c,i){return a==null?a:T0(a,c,Ii(i))}function hT(a,c,i,f){return f=typeof f=="function"?f:void 0,a==null?a:T0(a,c,Ii(i),f)}var dT=yy(function(a,c,i){return a+(i?" ":"")+c.toUpperCase()});const yT=dT;function gT(a){return a==null?[]:Cy(a,za(a))}var vT=gr(function(a,c){return to(a)?vy(a,c):[]});const mT=vT;function bT(a,c){return d0(Ii(c),a)}var _T=Cc(function(a){var c=a.length,i=c?a[0]:0,f=this.__wrapped__,o=function(h){return Sy(h,a)};return c>1||this.__actions__.length||!(f instanceof sr)||!Op(i)?this.thru(o):(f=f.slice(i,+i+(c?1:0)),f.__actions__.push({func:El,args:[o],thisArg:void 0}),new Ho(f,this.__chain__).thru(function(h){return c&&!h.length&&h.push(void 0),h}))});const OT=_T;function wT(){return Cb(this)}function xT(){var a=this.__wrapped__;if(a instanceof sr){var c=a;return this.__actions__.length&&(c=new sr(this)),c=c.reverse(),c.__actions__.push({func:El,args:[Uy],thisArg:void 0}),new Ho(c,this.__chain__)}return this.thru(Uy)}function Vy(a,c,i){var f=a.length;if(f<2)return f?Ap(a[0]):[];for(var o=-1,h=Array(f);++o<f;)for(var y=a[o],b=-1;++b<f;)b!=o&&(h[o]=vy(h[o]||y,a[b],c,i));return Ap(fi(h,1),c,i)}var ET=gr(function(a){return Vy(Ic(a,to))});const jT=ET;var ST=gr(function(a){var c=Ci(a);return to(c)&&(c=void 0),Vy(Ic(a,to),tr(c))});const AT=ST;var PT=gr(function(a){var c=Ci(a);return c=typeof c=="function"?c:void 0,Vy(Ic(a,to),void 0,c)});const kT=PT;var TT=gr(Wy);const MT=TT;function M0(a,c,i){for(var f=-1,o=a.length,h=c.length,y={};++f<o;){var b=f<h?c[f]:void 0;i(y,a[f],b)}return y}function DT(a,c){return M0(a||[],c||[],Ew)}function NT(a,c){return M0(a||[],c||[],cb)}var CT=gr(function(a){var c=a.length,i=c>1?a[c-1]:void 0;return i=typeof i=="function"?(a.pop(),i):void 0,k0(a,i)});const RT=CT,pe={chunk:TE,compact:zE,concat:BE,difference:E4,differenceBy:pj,differenceWith:dj,drop:vj,dropRight:mj,dropRightWhile:bj,dropWhile:_j,fill:Uj,findIndex:bI,findLastIndex:t0,first:e0,flatten:_I,flattenDeep:tS,flattenDepth:eS,fromPairs:OI,head:e0,indexOf:IS,initial:LS,intersection:wI,intersectionBy:BS,intersectionWith:US,join:CA,last:Ci,lastIndexOf:HA,nth:yP,pull:XP,pullAll:g0,pullAllBy:GP,pullAllWith:WP,pullAt:ZP,remove:fk,reverse:Uy,slice:Nk,sortedIndex:Hk,sortedIndexBy:Yk,sortedIndexOf:Xk,sortedLastIndex:Gk,sortedLastIndexBy:Wk,sortedLastIndexOf:Vk,sortedUniq:Kk,sortedUniqBy:qk,tail:l2,take:f2,takeRight:p2,takeRightWhile:h2,takeWhile:d2,union:oT,unionBy:aT,unionWith:k4,uniq:xI,uniqBy:M4,uniqWith:uT,unzip:Wy,unzipWith:k0,without:mT,xor:jT,xorBy:AT,xorWith:kT,zip:MT,zipObject:DT,zipObjectDeep:NT,zipWith:RT},kr={countBy:qE,each:Fb,eachRight:Yb,every:zj,filter:Hj,find:EI,findLast:Vj,flatMap:qj,flatMapDeep:$j,flatMapDepth:Jj,forEach:Fb,forEachRight:Yb,groupBy:N4,includes:CS,invokeMap:tA,keyBy:zA,map:zp,orderBy:R4,partition:jI,reduce:uk,reduceRight:sk,reject:lk,sample:wk,sampleSize:jk,shuffle:kk,size:Dk,some:Rk,sortBy:B4},IT={now:SI},en={after:my,ary:kb,before:Db,bind:Nb,bindKey:wE,curry:My,curryRight:Dy,debounce:Yw,defer:cj,delay:lj,flip:nS,memoize:AI,negate:xl,once:mP,overArgs:jP,partial:d0,partialRight:zP,rearg:ak,rest:yk,spread:t2,throttle:C2,unary:$2,wrap:bT},ke={castArray:xE,clone:PI,cloneDeep:kI,cloneDeepWith:CE,cloneWith:IE,conformsTo:GE,eq:yl,gt:wS,gte:ES,isArguments:TI,isArray:Yr,isArrayBuffer:oA,isArrayLike:hl,isArrayLikeObject:to,isBoolean:f4,isBuffer:Gw,isDate:cA,isElement:sA,isEmpty:w4,isEqual:MI,isEqualWith:lA,isError:Ay,isFinite:pA,isFunction:vl,isInteger:u0,isLength:DI,isMap:NI,isMatch:hA,isMatchWith:dA,isNaN:yA,isNative:bA,isNil:CI,isNull:_A,isNumber:Rw,isObject:ca,isObjectLike:La,isPlainObject:ib,isRegExp:Ry,isSafeInteger:EA,isSet:RI,isString:gy,isSymbol:jp,isTypedArray:Ww,isUndefined:jA,isWeakMap:AA,isWeakSet:kA,lt:KA,lte:ZA,toArray:f0,toFinite:ml,toInteger:ir,toLength:$b,toNumber:Ba,toPlainObject:p4,toSafeInteger:U2,toString:ln},eo={add:Hn,ceil:AE,divide:gj,floor:iS,max:m4,maxBy:nP,mean:b4,meanBy:oP,min:_4,minBy:sP,multiply:Z4,round:_k,subtract:c2,sum:Q4,sumBy:s2},Ky={clamp:ME,inRange:DS,random:L4},Ye={assign:oE,assignIn:Tb,assignInWith:Ip,assignWith:cE,at:lE,create:ZE,defaults:rj,defaultsDeep:ij,entries:Gb,entriesIn:Wb,extend:Tb,extendWith:Ip,findKey:Yj,findLastKey:Kj,forIn:yS,forInRight:gS,forOwn:vS,forOwnRight:mS,functions:bS,functionsIn:_S,get:jw,has:PS,hasIn:II,invert:WS,invertBy:ZS,invoke:JS,keys:Uo,keysIn:za,mapKeys:$A,mapValues:JA,merge:h4,mergeWith:zb,omit:LI,omitBy:vP,pick:zI,pickBy:h0,result:gk,set:d4,setWith:Sk,toPairs:Gb,toPairsIn:Wb,transform:Y2,unset:lT,update:pT,updateWith:hT,values:Yc,valuesIn:gT},Li={at:OT,chain:Cb,commit:LE,lodash:F,next:dP,plant:BP,reverse:xT,tap:y2,thru:El,toIterator:z2,toJSON:Gy,value:Gy,valueOf:Gy,wrapperChain:wT},wr={camelCase:U4,capitalize:H4,deburr:c4,endsWith:Ej,escape:Kb,escapeRegExp:Ij,kebabCase:IA,lowerCase:XA,lowerFirst:WA,pad:DP,padEnd:BI,padStart:FI,parseInt:RP,repeat:pk,replace:hk,snakeCase:X4,split:$k,startCase:r2,startsWith:n2,template:D2,templateSettings:Yy,toLower:B2,toUpper:H2,trim:K4,trimEnd:X2,trimStart:W2,truncate:Z2,unescape:rT,upperCase:yT,upperFirst:Hw,words:s4},Er={attempt:Mb,bindAll:mE,cond:UE,conforms:XE,constant:Mw,defaultTo:QE,flow:pS,flowRight:dS,identity:Dc,iteratee:MA,matches:tP,matchesProperty:rP,method:aP,methodOf:cP,mixin:l0,noop:xw,nthArg:gP,over:_P,overEvery:AP,overSome:kP,property:UI,propertyOf:FP,range:ek,rangeRight:nk,stubArray:HI,stubFalse:Iw,stubObject:o2,stubString:i2,stubTrue:a2,times:L2,toPath:F2,uniqueId:sT};function LT(){var a=new sr(this.__wrapped__);return a.__actions__=si(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=si(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=si(this.__views__),a}function zT(){if(this.__filtered__){var a=new sr(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}var BT=Math.max,FT=Math.min;function UT(a,c,i){for(var f=-1,o=i.length;++f<o;){var h=i[f],y=h.size;switch(h.type){case"drop":a+=y;break;case"dropRight":c-=y;break;case"take":c=FT(c,a+y);break;case"takeRight":a=BT(a,c-y);break}}return{start:a,end:c}}var HT=1,YT=2,XT=Math.min;function GT(){var a=this.__wrapped__.value(),c=this.__dir__,i=Yr(a),f=c<0,o=i?a.length:0,h=UT(0,o,this.__views__),y=h.start,b=h.end,v=b-y,E=f?b:y-1,A=this.__iteratees__,k=A.length,T=0,M=XT(v,this.__takeCount__);if(!i||!f&&o==v&&M==v)return S0(a,this.__actions__);var I=[];t:for(;v--&&T<M;){E+=c;for(var C=-1,L=a[E];++C<k;){var G=A[C],V=G.iteratee,nt=G.type,st=V(L);if(nt==YT)L=st;else if(!st){if(nt==HT)continue t;break t}}I[T++]=L}return I}var WT="4.17.21",VT=2,KT=1,qT=3,D0=4294967295,ZT=Array.prototype,$T=Object.prototype,N0=$T.hasOwnProperty,C0=fy?fy.iterator:void 0,JT=Math.max,R0=Math.min,qy=function(a){return function(c,i,f){if(f==null){var o=ca(i),h=o&&Uo(i),y=h&&h.length&&Bp(i,h);(y?y.length:o)||(f=i,i=c,c=this)}return a(c,i,f)}}(l0);F.after=en.after,F.ary=en.ary,F.assign=Ye.assign,F.assignIn=Ye.assignIn,F.assignInWith=Ye.assignInWith,F.assignWith=Ye.assignWith,F.at=Ye.at,F.before=en.before,F.bind=en.bind,F.bindAll=Er.bindAll,F.bindKey=en.bindKey,F.castArray=ke.castArray,F.chain=Li.chain,F.chunk=pe.chunk,F.compact=pe.compact,F.concat=pe.concat,F.cond=Er.cond,F.conforms=Er.conforms,F.constant=Er.constant,F.countBy=kr.countBy,F.create=Ye.create,F.curry=en.curry,F.curryRight=en.curryRight,F.debounce=en.debounce,F.defaults=Ye.defaults,F.defaultsDeep=Ye.defaultsDeep,F.defer=en.defer,F.delay=en.delay,F.difference=pe.difference,F.differenceBy=pe.differenceBy,F.differenceWith=pe.differenceWith,F.drop=pe.drop,F.dropRight=pe.dropRight,F.dropRightWhile=pe.dropRightWhile,F.dropWhile=pe.dropWhile,F.fill=pe.fill,F.filter=kr.filter,F.flatMap=kr.flatMap,F.flatMapDeep=kr.flatMapDeep,F.flatMapDepth=kr.flatMapDepth,F.flatten=pe.flatten,F.flattenDeep=pe.flattenDeep,F.flattenDepth=pe.flattenDepth,F.flip=en.flip,F.flow=Er.flow,F.flowRight=Er.flowRight,F.fromPairs=pe.fromPairs,F.functions=Ye.functions,F.functionsIn=Ye.functionsIn,F.groupBy=kr.groupBy,F.initial=pe.initial,F.intersection=pe.intersection,F.intersectionBy=pe.intersectionBy,F.intersectionWith=pe.intersectionWith,F.invert=Ye.invert,F.invertBy=Ye.invertBy,F.invokeMap=kr.invokeMap,F.iteratee=Er.iteratee,F.keyBy=kr.keyBy,F.keys=Uo,F.keysIn=Ye.keysIn,F.map=kr.map,F.mapKeys=Ye.mapKeys,F.mapValues=Ye.mapValues,F.matches=Er.matches,F.matchesProperty=Er.matchesProperty,F.memoize=en.memoize,F.merge=Ye.merge,F.mergeWith=Ye.mergeWith,F.method=Er.method,F.methodOf=Er.methodOf,F.mixin=qy,F.negate=xl,F.nthArg=Er.nthArg,F.omit=Ye.omit,F.omitBy=Ye.omitBy,F.once=en.once,F.orderBy=kr.orderBy,F.over=Er.over,F.overArgs=en.overArgs,F.overEvery=Er.overEvery,F.overSome=Er.overSome,F.partial=en.partial,F.partialRight=en.partialRight,F.partition=kr.partition,F.pick=Ye.pick,F.pickBy=Ye.pickBy,F.property=Er.property,F.propertyOf=Er.propertyOf,F.pull=pe.pull,F.pullAll=pe.pullAll,F.pullAllBy=pe.pullAllBy,F.pullAllWith=pe.pullAllWith,F.pullAt=pe.pullAt,F.range=Er.range,F.rangeRight=Er.rangeRight,F.rearg=en.rearg,F.reject=kr.reject,F.remove=pe.remove,F.rest=en.rest,F.reverse=pe.reverse,F.sampleSize=kr.sampleSize,F.set=Ye.set,F.setWith=Ye.setWith,F.shuffle=kr.shuffle,F.slice=pe.slice,F.sortBy=kr.sortBy,F.sortedUniq=pe.sortedUniq,F.sortedUniqBy=pe.sortedUniqBy,F.split=wr.split,F.spread=en.spread,F.tail=pe.tail,F.take=pe.take,F.takeRight=pe.takeRight,F.takeRightWhile=pe.takeRightWhile,F.takeWhile=pe.takeWhile,F.tap=Li.tap,F.throttle=en.throttle,F.thru=El,F.toArray=ke.toArray,F.toPairs=Ye.toPairs,F.toPairsIn=Ye.toPairsIn,F.toPath=Er.toPath,F.toPlainObject=ke.toPlainObject,F.transform=Ye.transform,F.unary=en.unary,F.union=pe.union,F.unionBy=pe.unionBy,F.unionWith=pe.unionWith,F.uniq=pe.uniq,F.uniqBy=pe.uniqBy,F.uniqWith=pe.uniqWith,F.unset=Ye.unset,F.unzip=pe.unzip,F.unzipWith=pe.unzipWith,F.update=Ye.update,F.updateWith=Ye.updateWith,F.values=Ye.values,F.valuesIn=Ye.valuesIn,F.without=pe.without,F.words=wr.words,F.wrap=en.wrap,F.xor=pe.xor,F.xorBy=pe.xorBy,F.xorWith=pe.xorWith,F.zip=pe.zip,F.zipObject=pe.zipObject,F.zipObjectDeep=pe.zipObjectDeep,F.zipWith=pe.zipWith,F.entries=Ye.toPairs,F.entriesIn=Ye.toPairsIn,F.extend=Ye.assignIn,F.extendWith=Ye.assignInWith,qy(F,F),F.add=eo.add,F.attempt=Er.attempt,F.camelCase=wr.camelCase,F.capitalize=wr.capitalize,F.ceil=eo.ceil,F.clamp=Ky.clamp,F.clone=ke.clone,F.cloneDeep=ke.cloneDeep,F.cloneDeepWith=ke.cloneDeepWith,F.cloneWith=ke.cloneWith,F.conformsTo=ke.conformsTo,F.deburr=wr.deburr,F.defaultTo=Er.defaultTo,F.divide=eo.divide,F.endsWith=wr.endsWith,F.eq=ke.eq,F.escape=wr.escape,F.escapeRegExp=wr.escapeRegExp,F.every=kr.every,F.find=kr.find,F.findIndex=pe.findIndex,F.findKey=Ye.findKey,F.findLast=kr.findLast,F.findLastIndex=pe.findLastIndex,F.findLastKey=Ye.findLastKey,F.floor=eo.floor,F.forEach=kr.forEach,F.forEachRight=kr.forEachRight,F.forIn=Ye.forIn,F.forInRight=Ye.forInRight,F.forOwn=Ye.forOwn,F.forOwnRight=Ye.forOwnRight,F.get=Ye.get,F.gt=ke.gt,F.gte=ke.gte,F.has=Ye.has,F.hasIn=Ye.hasIn,F.head=pe.head,F.identity=Dc,F.includes=kr.includes,F.indexOf=pe.indexOf,F.inRange=Ky.inRange,F.invoke=Ye.invoke,F.isArguments=ke.isArguments,F.isArray=Yr,F.isArrayBuffer=ke.isArrayBuffer,F.isArrayLike=ke.isArrayLike,F.isArrayLikeObject=ke.isArrayLikeObject,F.isBoolean=ke.isBoolean,F.isBuffer=ke.isBuffer,F.isDate=ke.isDate,F.isElement=ke.isElement,F.isEmpty=ke.isEmpty,F.isEqual=ke.isEqual,F.isEqualWith=ke.isEqualWith,F.isError=ke.isError,F.isFinite=ke.isFinite,F.isFunction=ke.isFunction,F.isInteger=ke.isInteger,F.isLength=ke.isLength,F.isMap=ke.isMap,F.isMatch=ke.isMatch,F.isMatchWith=ke.isMatchWith,F.isNaN=ke.isNaN,F.isNative=ke.isNative,F.isNil=ke.isNil,F.isNull=ke.isNull,F.isNumber=ke.isNumber,F.isObject=ca,F.isObjectLike=ke.isObjectLike,F.isPlainObject=ke.isPlainObject,F.isRegExp=ke.isRegExp,F.isSafeInteger=ke.isSafeInteger,F.isSet=ke.isSet,F.isString=ke.isString,F.isSymbol=ke.isSymbol,F.isTypedArray=ke.isTypedArray,F.isUndefined=ke.isUndefined,F.isWeakMap=ke.isWeakMap,F.isWeakSet=ke.isWeakSet,F.join=pe.join,F.kebabCase=wr.kebabCase,F.last=Ci,F.lastIndexOf=pe.lastIndexOf,F.lowerCase=wr.lowerCase,F.lowerFirst=wr.lowerFirst,F.lt=ke.lt,F.lte=ke.lte,F.max=eo.max,F.maxBy=eo.maxBy,F.mean=eo.mean,F.meanBy=eo.meanBy,F.min=eo.min,F.minBy=eo.minBy,F.stubArray=Er.stubArray,F.stubFalse=Er.stubFalse,F.stubObject=Er.stubObject,F.stubString=Er.stubString,F.stubTrue=Er.stubTrue,F.multiply=eo.multiply,F.nth=pe.nth,F.noop=Er.noop,F.now=IT.now,F.pad=wr.pad,F.padEnd=wr.padEnd,F.padStart=wr.padStart,F.parseInt=wr.parseInt,F.random=Ky.random,F.reduce=kr.reduce,F.reduceRight=kr.reduceRight,F.repeat=wr.repeat,F.replace=wr.replace,F.result=Ye.result,F.round=eo.round,F.sample=kr.sample,F.size=kr.size,F.snakeCase=wr.snakeCase,F.some=kr.some,F.sortedIndex=pe.sortedIndex,F.sortedIndexBy=pe.sortedIndexBy,F.sortedIndexOf=pe.sortedIndexOf,F.sortedLastIndex=pe.sortedLastIndex,F.sortedLastIndexBy=pe.sortedLastIndexBy,F.sortedLastIndexOf=pe.sortedLastIndexOf,F.startCase=wr.startCase,F.startsWith=wr.startsWith,F.subtract=eo.subtract,F.sum=eo.sum,F.sumBy=eo.sumBy,F.template=wr.template,F.times=Er.times,F.toFinite=ke.toFinite,F.toInteger=ir,F.toLength=ke.toLength,F.toLower=wr.toLower,F.toNumber=ke.toNumber,F.toSafeInteger=ke.toSafeInteger,F.toString=ke.toString,F.toUpper=wr.toUpper,F.trim=wr.trim,F.trimEnd=wr.trimEnd,F.trimStart=wr.trimStart,F.truncate=wr.truncate,F.unescape=wr.unescape,F.uniqueId=Er.uniqueId,F.upperCase=wr.upperCase,F.upperFirst=wr.upperFirst,F.each=kr.forEach,F.eachRight=kr.forEachRight,F.first=pe.head,qy(F,function(){var a={};return Fa(F,function(c,i){N0.call(F.prototype,i)||(a[i]=c)}),a}(),{chain:!1}),F.VERSION=WT,(F.templateSettings=wr.templateSettings).imports._=F,Ni(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){F[a].placeholder=F}),Ni(["drop","take"],function(a,c){sr.prototype[a]=function(i){i=i===void 0?1:JT(ir(i),0);var f=this.__filtered__&&!c?new sr(this):this.clone();return f.__filtered__?f.__takeCount__=R0(i,f.__takeCount__):f.__views__.push({size:R0(i,D0),type:a+(f.__dir__<0?"Right":"")}),f},sr.prototype[a+"Right"]=function(i){return this.reverse()[a](i).reverse()}}),Ni(["filter","map","takeWhile"],function(a,c){var i=c+1,f=i==KT||i==qT;sr.prototype[a]=function(o){var h=this.clone();return h.__iteratees__.push({iteratee:tr(o),type:i}),h.__filtered__=h.__filtered__||f,h}}),Ni(["head","last"],function(a,c){var i="take"+(c?"Right":"");sr.prototype[a]=function(){return this[i](1).value()[0]}}),Ni(["initial","tail"],function(a,c){var i="drop"+(c?"":"Right");sr.prototype[a]=function(){return this.__filtered__?new sr(this):this[i](1)}}),sr.prototype.compact=function(){return this.filter(Dc)},sr.prototype.find=function(a){return this.filter(a).head()},sr.prototype.findLast=function(a){return this.reverse().find(a)},sr.prototype.invokeMap=gr(function(a,c){return typeof a=="function"?new sr(this):this.map(function(i){return wl(i,a,c)})}),sr.prototype.reject=function(a){return this.filter(xl(tr(a)))},sr.prototype.slice=function(a,c){a=ir(a);var i=this;return i.__filtered__&&(a>0||c<0)?new sr(i):(a<0?i=i.takeRight(-a):a&&(i=i.drop(a)),c!==void 0&&(c=ir(c),i=c<0?i.dropRight(-c):i.take(c-a)),i)},sr.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},sr.prototype.toArray=function(){return this.take(D0)},Fa(sr.prototype,function(a,c){var i=/^(?:filter|find|map|reject)|While$/.test(c),f=/^(?:head|last)$/.test(c),o=F[f?"take"+(c=="last"?"Right":""):c],h=f||/^find/.test(c);o&&(F.prototype[c]=function(){var y=this.__wrapped__,b=f?[1]:arguments,v=y instanceof sr,E=b[0],A=v||Yr(y),k=function(G){var V=o.apply(F,Ep([G],b));return f&&T?V[0]:V};A&&i&&typeof E=="function"&&E.length!=1&&(v=A=!1);var T=this.__chain__,M=!!this.__actions__.length,I=h&&!T,C=v&&!M;if(!h&&A){y=C?y:new sr(this);var L=a.apply(y,b);return L.__actions__.push({func:El,args:[k],thisArg:void 0}),new Ho(L,T)}return I&&C?a.apply(this,b):(L=this.thru(k),I?f?L.value()[0]:L.value():L)})}),Ni(["pop","push","shift","sort","splice","unshift"],function(a){var c=ZT[a],i=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",f=/^(?:pop|shift)$/.test(a);F.prototype[a]=function(){var o=arguments;if(f&&!this.__chain__){var h=this.value();return c.apply(Yr(h)?h:[],o)}return this[i](function(y){return c.apply(Yr(y)?y:[],o)})}}),Fa(sr.prototype,function(a,c){var i=F[c];if(i){var f=i.name+"";N0.call(Uc,f)||(Uc[f]=[]),Uc[f].push({name:c,func:i})}}),Uc[Rp(void 0,VT).name]=[{name:"wrapper",func:void 0}],sr.prototype.clone=LT,sr.prototype.reverse=zT,sr.prototype.value=GT,F.prototype.at=Li.at,F.prototype.chain=Li.wrapperChain,F.prototype.commit=Li.commit,F.prototype.next=Li.next,F.prototype.plant=Li.plant,F.prototype.reverse=Li.reverse,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Li.value,F.prototype.first=F.prototype.head,C0&&(F.prototype[C0]=Li.toIterator);const I0=Symbol("flow-chart");function QT(a){YI(I0,a)}function tM(){return XI(I0)}var Tn=(a=>(a.ZOOM_IN="zoomIn",a.ZOOM_OUT="zoomOut",a.RESET_ZOOM="resetZoom",a.UNDO="undo",a.REDO="redo",a.SNAPSHOT="snapshot",a.VIEW_DATA="viewData",a))(Tn||{});const eM=Vw({name:"FlowChartToolbar",components:{Icon:GI,Divider:WI,Tooltip:VI},props:{prefixCls:String},emits:["view-data"],setup(a,{emit:c}){const i=py([{type:Tn.ZOOM_IN,icon:"codicon:zoom-out",tooltip:"\u7F29\u5C0F"},{type:Tn.ZOOM_OUT,icon:"codicon:zoom-in",tooltip:"\u653E\u5927"},{type:Tn.RESET_ZOOM,icon:"codicon:screen-normal",tooltip:"\u91CD\u7F6E\u6BD4\u4F8B"},{separate:!0},{type:Tn.UNDO,icon:"ion:arrow-undo-outline",tooltip:"\u540E\u9000",disabled:!0},{type:Tn.REDO,icon:"ion:arrow-redo-outline",tooltip:"\u524D\u8FDB",disabled:!0},{separate:!0},{type:Tn.SNAPSHOT,icon:"ion:download-outline",tooltip:"\u4E0B\u8F7D"},{type:Tn.VIEW_DATA,icon:"carbon:document-view",tooltip:"\u67E5\u770B\u6570\u636E"}]),{logicFlow:f}=tM();function o({data:{undoAble:y,redoAble:b}}){const v=go(i),E=v.findIndex(k=>k.type===Tn.UNDO),A=v.findIndex(k=>k.type===Tn.REDO);E!==-1&&(go(i)[E].disabled=!y),A!==-1&&(go(i)[A].disabled=!b)}const h=y=>{const b=go(f);if(b)switch(y.type){case Tn.ZOOM_IN:b.zoom();break;case Tn.ZOOM_OUT:b.zoom(!0);break;case Tn.RESET_ZOOM:b.resetZoom();break;case Tn.UNDO:b.undo();break;case Tn.REDO:b.redo();break;case Tn.SNAPSHOT:b.getSnapshot();break;case Tn.VIEW_DATA:c("view-data");break}};return KI(()=>bp(this,null,function*(){var y;go(f)&&(yield sb(),(y=go(f))==null||y.on("history:change",o))})),qI(()=>{var y;(y=go(f))==null||y.off("history:change",o)}),{toolbarItemList:i,onControl:h}}}),rM=["onClick"];function nM(a,c,i,f,o,h){const y=ku("Icon"),b=ku("Tooltip"),v=ku("Divider");return Tu(),Pp("div",{class:dy([`${a.prefixCls}-toolbar`,"flex items-center px-2 py-1"])},[(Tu(!0),Pp(Kw,null,ZI(a.toolbarItemList,E=>(Tu(),Pp(Kw,{key:E.type},[kp(b,QI({placement:"bottom"},E.disabled?{visible:!1}:{}),{title:hy(()=>[$I(JI(E.tooltip),1)]),default:hy(()=>[E.icon?(Tu(),Pp("span",{key:0,class:dy(`${a.prefixCls}-toolbar__icon`),onClick:A=>a.onControl(E)},[kp(y,{icon:E.icon,class:dy(E.disabled?"cursor-not-allowed disabeld":"cursor-pointer")},null,8,["icon","class"])],10,rM)):fb("",!0)]),_:2},1040),E.separate?(Tu(),pb(v,{key:0,type:"vertical"})):fb("",!0)],64))),128))],2)}const oM=lb(eM,[["render",nM]]);var Zy={exports:{}};(function(a,c){(function(i,f){a.exports=f()})(window,function(){return function(i){var f={};function o(h){if(f[h])return f[h].exports;var y=f[h]={i:h,l:!1,exports:{}};return i[h].call(y.exports,y,y.exports,o),y.l=!0,y.exports}return o.m=i,o.c=f,o.d=function(h,y,b){o.o(h,y)||Object.defineProperty(h,y,{enumerable:!0,get:b})},o.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},o.t=function(h,y){if(1&y&&(h=o(h)),8&y||4&y&&typeof h=="object"&&h&&h.__esModule)return h;var b=Object.create(null);if(o.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:h}),2&y&&typeof h!="string")for(var v in h)o.d(b,v,function(E){return h[E]}.bind(null,v));return b},o.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return o.d(y,"a",y),y},o.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)},o.p="",o(o.s=221)}([function(i,f,o){o.d(f,"a",function(){return at}),o.d(f,"b",function(){return st}),o.d(f,"c",function(){return Zt}),o.d(f,"d",function(){return be}),o.d(f,"e",function(){return G}),o.d(f,"f",function(){return nt}),o.d(f,"g",function(){return G}),o.d(f,"h",function(){return Wt}),o.d(f,"i",function(){return y}),o.d(f,"j",function(){return xe}),o.d(f,"k",function(){return Z});var h,y,b,v,E,A,k,T={},M=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(ft,ct){for(var yt in ct)ft[yt]=ct[yt];return ft}function L(ft){var ct=ft.parentNode;ct&&ct.removeChild(ft)}function G(ft,ct,yt){var Dt,Yt,Lt,_e={};for(Lt in ct)Lt=="key"?Dt=ct[Lt]:Lt=="ref"?Yt=ct[Lt]:_e[Lt]=ct[Lt];if(arguments.length>2&&(_e.children=arguments.length>3?h.call(arguments,2):yt),typeof ft=="function"&&ft.defaultProps!=null)for(Lt in ft.defaultProps)_e[Lt]===void 0&&(_e[Lt]=ft.defaultProps[Lt]);return V(ft,_e,Dt,Yt,null)}function V(ft,ct,yt,Dt,Yt){var Lt={type:ft,props:ct,key:yt,ref:Dt,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Yt!=null?Yt:++b};return Yt==null&&y.vnode!=null&&y.vnode(Lt),Lt}function nt(){return{current:null}}function st(ft){return ft.children}function at(ft,ct){this.props=ft,this.context=ct}function tt(ft,ct){if(ct==null)return ft.__?tt(ft.__,ft.__.__k.indexOf(ft)+1):null;for(var yt;ct<ft.__k.length;ct++)if((yt=ft.__k[ct])!=null&&yt.__e!=null)return yt.__e;return typeof ft.type=="function"?tt(ft):null}function et(ft){var ct,yt;if((ft=ft.__)!=null&&ft.__c!=null){for(ft.__e=ft.__c.base=null,ct=0;ct<ft.__k.length;ct++)if((yt=ft.__k[ct])!=null&&yt.__e!=null){ft.__e=ft.__c.base=yt.__e;break}return et(ft)}}function K(ft){(!ft.__d&&(ft.__d=!0)&&v.push(ft)&&!U.__r++||A!==y.debounceRendering)&&((A=y.debounceRendering)||E)(U)}function U(){for(var ft;U.__r=v.length;)ft=v.sort(function(ct,yt){return ct.__v.__b-yt.__v.__b}),v=[],ft.some(function(ct){var yt,Dt,Yt,Lt,_e,Me;ct.__d&&(_e=(Lt=(yt=ct).__v).__e,(Me=yt.__P)&&(Dt=[],(Yt=C({},Lt)).__v=Lt.__v+1,St(Me,Lt,Yt,yt.__n,Me.ownerSVGElement!==void 0,Lt.__h!=null?[_e]:null,Dt,_e!=null?_e:tt(Lt),Lt.__h),gt(Dt,Lt),Lt.__e!=_e&&et(Lt)))})}function X(ft,ct,yt,Dt,Yt,Lt,_e,Me,Se,ge){var Tt,ce,pt,ae,ze,fr,Be,rr=Dt&&Dt.__k||M,br=rr.length;for(yt.__k=[],Tt=0;Tt<ct.length;Tt++)if((ae=yt.__k[Tt]=(ae=ct[Tt])==null||typeof ae=="boolean"?null:typeof ae=="string"||typeof ae=="number"||typeof ae=="bigint"?V(null,ae,null,null,ae):Array.isArray(ae)?V(st,{children:ae},null,null,null):ae.__b>0?V(ae.type,ae.props,ae.key,null,ae.__v):ae)!=null){if(ae.__=yt,ae.__b=yt.__b+1,(pt=rr[Tt])===null||pt&&ae.key==pt.key&&ae.type===pt.type)rr[Tt]=void 0;else for(ce=0;ce<br;ce++){if((pt=rr[ce])&&ae.key==pt.key&&ae.type===pt.type){rr[ce]=void 0;break}pt=null}St(ft,ae,pt=pt||T,Yt,Lt,_e,Me,Se,ge),ze=ae.__e,(ce=ae.ref)&&pt.ref!=ce&&(Be||(Be=[]),pt.ref&&Be.push(pt.ref,null,ae),Be.push(ce,ae.__c||ze,ae)),ze!=null?(fr==null&&(fr=ze),typeof ae.type=="function"&&ae.__k===pt.__k?ae.__d=Se=W(ae,Se,ft):Se=ut(ft,ae,pt,rr,ze,Se),typeof yt.type=="function"&&(yt.__d=Se)):Se&&pt.__e==Se&&Se.parentNode!=ft&&(Se=tt(pt))}for(yt.__e=fr,Tt=br;Tt--;)rr[Tt]!=null&&(typeof yt.type=="function"&&rr[Tt].__e!=null&&rr[Tt].__e==yt.__d&&(yt.__d=tt(Dt,Tt+1)),Ut(rr[Tt],rr[Tt]));if(Be)for(Tt=0;Tt<Be.length;Tt++)kt(Be[Tt],Be[++Tt],Be[++Tt])}function W(ft,ct,yt){for(var Dt,Yt=ft.__k,Lt=0;Yt&&Lt<Yt.length;Lt++)(Dt=Yt[Lt])&&(Dt.__=ft,ct=typeof Dt.type=="function"?W(Dt,ct,yt):ut(yt,Dt,Dt,Yt,Dt.__e,ct));return ct}function Z(ft,ct){return ct=ct||[],ft==null||typeof ft=="boolean"||(Array.isArray(ft)?ft.some(function(yt){Z(yt,ct)}):ct.push(ft)),ct}function ut(ft,ct,yt,Dt,Yt,Lt){var _e,Me,Se;if(ct.__d!==void 0)_e=ct.__d,ct.__d=void 0;else if(yt==null||Yt!=Lt||Yt.parentNode==null)t:if(Lt==null||Lt.parentNode!==ft)ft.appendChild(Yt),_e=null;else{for(Me=Lt,Se=0;(Me=Me.nextSibling)&&Se<Dt.length;Se+=2)if(Me==Yt)break t;ft.insertBefore(Yt,Lt),_e=Lt}return _e!==void 0?_e:Yt.nextSibling}function Et(ft,ct,yt){ct[0]==="-"?ft.setProperty(ct,yt):ft[ct]=yt==null?"":typeof yt!="number"||I.test(ct)?yt:yt+"px"}function bt(ft,ct,yt,Dt,Yt){var Lt;t:if(ct==="style")if(typeof yt=="string")ft.style.cssText=yt;else{if(typeof Dt=="string"&&(ft.style.cssText=Dt=""),Dt)for(ct in Dt)yt&&ct in yt||Et(ft.style,ct,"");if(yt)for(ct in yt)Dt&&yt[ct]===Dt[ct]||Et(ft.style,ct,yt[ct])}else if(ct[0]==="o"&&ct[1]==="n")Lt=ct!==(ct=ct.replace(/Capture$/,"")),ct=ct.toLowerCase()in ft?ct.toLowerCase().slice(2):ct.slice(2),ft.l||(ft.l={}),ft.l[ct+Lt]=yt,yt?Dt||ft.addEventListener(ct,Lt?Bt:Pt,Lt):ft.removeEventListener(ct,Lt?Bt:Pt,Lt);else if(ct!=="dangerouslySetInnerHTML"){if(Yt)ct=ct.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(ct!=="href"&&ct!=="list"&&ct!=="form"&&ct!=="tabIndex"&&ct!=="download"&&ct in ft)try{ft[ct]=yt!=null?yt:"";break t}catch(_e){}typeof yt=="function"||(yt!=null&&(yt!==!1||ct[0]==="a"&&ct[1]==="r")?ft.setAttribute(ct,yt):ft.removeAttribute(ct))}}function Pt(ft){this.l[ft.type+!1](y.event?y.event(ft):ft)}function Bt(ft){this.l[ft.type+!0](y.event?y.event(ft):ft)}function St(ft,ct,yt,Dt,Yt,Lt,_e,Me,Se){var ge,Tt,ce,pt,ae,ze,fr,Be,rr,br,Tr,Re=ct.type;if(ct.constructor!==void 0)return null;yt.__h!=null&&(Se=yt.__h,Me=ct.__e=yt.__e,ct.__h=null,Lt=[Me]),(ge=y.__b)&&ge(ct);try{t:if(typeof Re=="function"){if(Be=ct.props,rr=(ge=Re.contextType)&&Dt[ge.__c],br=ge?rr?rr.props.value:ge.__:Dt,yt.__c?fr=(Tt=ct.__c=yt.__c).__=Tt.__E:("prototype"in Re&&Re.prototype.render?ct.__c=Tt=new Re(Be,br):(ct.__c=Tt=new at(Be,br),Tt.constructor=Re,Tt.render=re),rr&&rr.sub(Tt),Tt.props=Be,Tt.state||(Tt.state={}),Tt.context=br,Tt.__n=Dt,ce=Tt.__d=!0,Tt.__h=[]),Tt.__s==null&&(Tt.__s=Tt.state),Re.getDerivedStateFromProps!=null&&(Tt.__s==Tt.state&&(Tt.__s=C({},Tt.__s)),C(Tt.__s,Re.getDerivedStateFromProps(Be,Tt.__s))),pt=Tt.props,ae=Tt.state,ce)Re.getDerivedStateFromProps==null&&Tt.componentWillMount!=null&&Tt.componentWillMount(),Tt.componentDidMount!=null&&Tt.__h.push(Tt.componentDidMount);else{if(Re.getDerivedStateFromProps==null&&Be!==pt&&Tt.componentWillReceiveProps!=null&&Tt.componentWillReceiveProps(Be,br),!Tt.__e&&Tt.shouldComponentUpdate!=null&&Tt.shouldComponentUpdate(Be,Tt.__s,br)===!1||ct.__v===yt.__v){Tt.props=Be,Tt.state=Tt.__s,ct.__v!==yt.__v&&(Tt.__d=!1),Tt.__v=ct,ct.__e=yt.__e,ct.__k=yt.__k,ct.__k.forEach(function(Xr){Xr&&(Xr.__=ct)}),Tt.__h.length&&_e.push(Tt);break t}Tt.componentWillUpdate!=null&&Tt.componentWillUpdate(Be,Tt.__s,br),Tt.componentDidUpdate!=null&&Tt.__h.push(function(){Tt.componentDidUpdate(pt,ae,ze)})}Tt.context=br,Tt.props=Be,Tt.state=Tt.__s,(ge=y.__r)&&ge(ct),Tt.__d=!1,Tt.__v=ct,Tt.__P=ft,ge=Tt.render(Tt.props,Tt.state,Tt.context),Tt.state=Tt.__s,Tt.getChildContext!=null&&(Dt=C(C({},Dt),Tt.getChildContext())),ce||Tt.getSnapshotBeforeUpdate==null||(ze=Tt.getSnapshotBeforeUpdate(pt,ae)),Tr=ge!=null&&ge.type===st&&ge.key==null?ge.props.children:ge,X(ft,Array.isArray(Tr)?Tr:[Tr],ct,yt,Dt,Yt,Lt,_e,Me,Se),Tt.base=ct.__e,ct.__h=null,Tt.__h.length&&_e.push(Tt),fr&&(Tt.__E=Tt.__=null),Tt.__e=!1}else Lt==null&&ct.__v===yt.__v?(ct.__k=yt.__k,ct.__e=yt.__e):ct.__e=At(yt.__e,ct,yt,Dt,Yt,Lt,_e,Se);(ge=y.diffed)&&ge(ct)}catch(Xr){ct.__v=null,(Se||Lt!=null)&&(ct.__e=Me,ct.__h=!!Se,Lt[Lt.indexOf(Me)]=null),y.__e(Xr,ct,yt)}}function gt(ft,ct){y.__c&&y.__c(ct,ft),ft.some(function(yt){try{ft=yt.__h,yt.__h=[],ft.some(function(Dt){Dt.call(yt)})}catch(Dt){y.__e(Dt,yt.__v)}})}function At(ft,ct,yt,Dt,Yt,Lt,_e,Me){var Se,ge,Tt,ce=yt.props,pt=ct.props,ae=ct.type,ze=0;if(ae==="svg"&&(Yt=!0),Lt!=null){for(;ze<Lt.length;ze++)if((Se=Lt[ze])&&"setAttribute"in Se==!!ae&&(ae?Se.localName===ae:Se.nodeType===3)){ft=Se,Lt[ze]=null;break}}if(ft==null){if(ae===null)return document.createTextNode(pt);ft=Yt?document.createElementNS("http://www.w3.org/2000/svg",ae):document.createElement(ae,pt.is&&pt),Lt=null,Me=!1}if(ae===null)ce===pt||Me&&ft.data===pt||(ft.data=pt);else{if(Lt=Lt&&h.call(ft.childNodes),ge=(ce=yt.props||T).dangerouslySetInnerHTML,Tt=pt.dangerouslySetInnerHTML,!Me){if(Lt!=null)for(ce={},ze=0;ze<ft.attributes.length;ze++)ce[ft.attributes[ze].name]=ft.attributes[ze].value;(Tt||ge)&&(Tt&&(ge&&Tt.__html==ge.__html||Tt.__html===ft.innerHTML)||(ft.innerHTML=Tt&&Tt.__html||""))}if(function(fr,Be,rr,br,Tr){var Re;for(Re in rr)Re==="children"||Re==="key"||Re in Be||bt(fr,Re,null,rr[Re],br);for(Re in Be)Tr&&typeof Be[Re]!="function"||Re==="children"||Re==="key"||Re==="value"||Re==="checked"||rr[Re]===Be[Re]||bt(fr,Re,Be[Re],rr[Re],br)}(ft,pt,ce,Yt,Me),Tt)ct.__k=[];else if(ze=ct.props.children,X(ft,Array.isArray(ze)?ze:[ze],ct,yt,Dt,Yt&&ae!=="foreignObject",Lt,_e,Lt?Lt[0]:yt.__k&&tt(yt,0),Me),Lt!=null)for(ze=Lt.length;ze--;)Lt[ze]!=null&&L(Lt[ze]);Me||("value"in pt&&(ze=pt.value)!==void 0&&(ze!==ce.value||ze!==ft.value||ae==="progress"&&!ze)&&bt(ft,"value",ze,ce.value,!1),"checked"in pt&&(ze=pt.checked)!==void 0&&ze!==ft.checked&&bt(ft,"checked",ze,ce.checked,!1))}return ft}function kt(ft,ct,yt){try{typeof ft=="function"?ft(ct):ft.current=ct}catch(Dt){y.__e(Dt,yt)}}function Ut(ft,ct,yt){var Dt,Yt;if(y.unmount&&y.unmount(ft),(Dt=ft.ref)&&(Dt.current&&Dt.current!==ft.__e||kt(Dt,null,ct)),(Dt=ft.__c)!=null){if(Dt.componentWillUnmount)try{Dt.componentWillUnmount()}catch(Lt){y.__e(Lt,ct)}Dt.base=Dt.__P=null}if(Dt=ft.__k)for(Yt=0;Yt<Dt.length;Yt++)Dt[Yt]&&Ut(Dt[Yt],ct,typeof ft.type!="function");yt||ft.__e==null||L(ft.__e),ft.__e=ft.__d=void 0}function re(ft,ct,yt){return this.constructor(ft,yt)}function xe(ft,ct,yt){var Dt,Yt,Lt;y.__&&y.__(ft,ct),Yt=(Dt=typeof yt=="function")?null:yt&&yt.__k||ct.__k,Lt=[],St(ct,ft=(!Dt&&yt||ct).__k=G(st,null,[ft]),Yt||T,T,ct.ownerSVGElement!==void 0,!Dt&&yt?[yt]:Yt?null:ct.firstChild?h.call(ct.childNodes):null,Lt,!Dt&&yt?yt:Yt?Yt.__e:ct.firstChild,Dt),gt(Lt,ft)}function Wt(ft,ct){xe(ft,ct,Wt)}function Zt(ft,ct,yt){var Dt,Yt,Lt,_e=C({},ft.props);for(Lt in ct)Lt=="key"?Dt=ct[Lt]:Lt=="ref"?Yt=ct[Lt]:_e[Lt]=ct[Lt];return arguments.length>2&&(_e.children=arguments.length>3?h.call(arguments,2):yt),V(ft.type,_e,Dt||ft.key,Yt||ft.ref,null)}function be(ft,ct){var yt={__c:ct="__cC"+k++,__:ft,Consumer:function(Dt,Yt){return Dt.children(Yt)},Provider:function(Dt){var Yt,Lt;return this.getChildContext||(Yt=[],(Lt={})[ct]=this,this.getChildContext=function(){return Lt},this.shouldComponentUpdate=function(_e){this.props.value!==_e.value&&Yt.some(K)},this.sub=function(_e){Yt.push(_e);var Me=_e.componentWillUnmount;_e.componentWillUnmount=function(){Yt.splice(Yt.indexOf(_e),1),Me&&Me.call(_e)}}),Dt.children}};return yt.Provider.__=yt.Consumer.contextType=yt}h=M.slice,y={__e:function(ft,ct){for(var yt,Dt,Yt;ct=ct.__;)if((yt=ct.__c)&&!yt.__)try{if((Dt=yt.constructor)&&Dt.getDerivedStateFromError!=null&&(yt.setState(Dt.getDerivedStateFromError(ft)),Yt=yt.__d),yt.componentDidCatch!=null&&(yt.componentDidCatch(ft),Yt=yt.__d),Yt)return yt.__E=yt}catch(Lt){ft=Lt}throw ft}},b=0,at.prototype.setState=function(ft,ct){var yt;yt=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof ft=="function"&&(ft=ft(C({},yt),this.props)),ft&&C(yt,ft),ft!=null&&this.__v&&(ct&&this.__h.push(ct),K(this))},at.prototype.forceUpdate=function(ft){this.__v&&(this.__e=!0,ft&&this.__h.push(ft),K(this))},at.prototype.render=st,v=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U.__r=0,k=0},function(i,f,o){(function(h,y){o.d(f,"a",function(){return K}),o.d(f,"b",function(){return $u}),o.d(f,"c",function(){return bo}),o.d(f,"d",function(){return je}),o.d(f,"e",function(){return Kt}),o.d(f,"f",function(){return Vt}),o.d(f,"g",function(){return Oe}),o.d(f,"h",function(){return Do}),o.d(f,"i",function(){return Tr}),o.d(f,"j",function(){return oe}),o.d(f,"k",function(){return Wo}),o.d(f,"l",function(){return Uu}),o.d(f,"m",function(){return fr}),o.d(f,"n",function(){return Fi}),o.d(f,"o",function(){return W}),o.d(f,"p",function(){return os}),o.d(f,"q",function(){return Vo}),o.d(f,"r",function(){return Ga}),o.d(f,"s",function(){return co}),o.d(f,"t",function(){return Ur}),o.d(f,"u",function(){return Xa}),o.d(f,"v",function(){return ns}),o.d(f,"w",function(){return Wu}),o.d(f,"x",function(){return Ui}),o.d(f,"y",function(){return uo}),o.d(f,"z",function(){return $r}),o.d(f,"A",function(){return In}),o.d(f,"B",function(){return Ao}),o.d(f,"C",function(){return ge}),o.d(f,"D",function(){return is}),o.d(f,"E",function(){return pr}),o.d(f,"F",function(){return hr}),o.d(f,"G",function(){return Bu}),o.d(f,"H",function(){return zu}),o.d(f,"I",function(){return Vu}),o.d(f,"J",function(){return nn}),o.d(f,"K",function(){return dt}),o.d(f,"L",function(){return xr}),o.d(f,"M",function(){return Va});var b=[];Object.freeze(b);var v={};function E(){return++se.mobxGuid}function A(O){throw k(!1,O),"X"}function k(O,w){if(!O)throw new Error("[mobx] "+(w||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(v);function T(O){var w=!1;return function(){if(!w)return w=!0,O.apply(this,arguments)}}var M=function(){};function I(O){return O!==null&&typeof O=="object"}function C(O){if(O===null||typeof O!="object")return!1;var w=Object.getPrototypeOf(O);return w===Object.prototype||w===null}function L(O,w,P){Object.defineProperty(O,w,{enumerable:!1,writable:!0,configurable:!0,value:P})}function G(O,w){var P="isMobX"+O;return w.prototype[P]=!0,function(z){return I(z)&&z[P]===!0}}function V(O){return O instanceof Map}function nt(O){return O instanceof Set}function st(O){var w=new Set;for(var P in O)w.add(P);return Object.getOwnPropertySymbols(O).forEach(function(z){Object.getOwnPropertyDescriptor(O,z).enumerable&&w.add(z)}),Array.from(w)}function at(O){return O&&O.toString?O.toString():new String(O).toString()}function tt(O){return O===null?null:typeof O=="object"?""+O:O}var et=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:Object.getOwnPropertyNames,K=Symbol("mobx administration"),U=function(){function O(w){w===void 0&&(w="Atom@"+E()),this.name=w,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=ce.NOT_TRACKING}return O.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(w){return w()})},O.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(w){return w()})},O.prototype.reportObserved=function(){return Ya(this)},O.prototype.reportChanged=function(){Mn(),function(w){w.lowestObserverState!==ce.STALE&&(w.lowestObserverState=ce.STALE,w.observers.forEach(function(P){P.dependenciesState===ce.UP_TO_DATE&&(P.isTracing!==pt.NONE&&mo(P,w),P.onBecomeStale()),P.dependenciesState=ce.STALE}))}(this),Yn()},O.prototype.toString=function(){return this.name},O}(),X=G("Atom",U);function W(O,w,P){w===void 0&&(w=M),P===void 0&&(P=M);var z,q=new U(O);return w!==M&&es("onBecomeObserved",q,w,z),P!==M&&pr(q,P),q}var Z={identity:function(O,w){return O===w},structural:function(O,w){return Nt(O,w)},default:function(O,w){return Object.is(O,w)},shallow:function(O,w){return Nt(O,w,1)}},ut=function(O,w){return ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,z){P.__proto__=z}||function(P,z){for(var q in z)z.hasOwnProperty(q)&&(P[q]=z[q])},ut(O,w)},Et=function(){return Et=Object.assign||function(O){for(var w,P=1,z=arguments.length;P<z;P++)for(var q in w=arguments[P])Object.prototype.hasOwnProperty.call(w,q)&&(O[q]=w[q]);return O},Et.apply(this,arguments)};function bt(O){var w=typeof Symbol=="function"&&O[Symbol.iterator],P=0;return w?w.call(O):{next:function(){return O&&P>=O.length&&(O=void 0),{value:O&&O[P++],done:!O}}}}function Pt(O,w){var P=typeof Symbol=="function"&&O[Symbol.iterator];if(!P)return O;var z,q,ht=P.call(O),jt=[];try{for(;(w===void 0||w-- >0)&&!(z=ht.next()).done;)jt.push(z.value)}catch(Ft){q={error:Ft}}finally{try{z&&!z.done&&(P=ht.return)&&P.call(ht)}finally{if(q)throw q.error}}return jt}function Bt(){for(var O=[],w=0;w<arguments.length;w++)O=O.concat(Pt(arguments[w]));return O}var St=Symbol("mobx did run lazy initializers"),gt=Symbol("mobx pending decorators"),At={},kt={};function Ut(O,w){var P=w?At:kt;return P[O]||(P[O]={configurable:!0,enumerable:w,get:function(){return re(this),this[O]},set:function(z){re(this),this[O]=z}})}function re(O){var w,P;if(O[St]!==!0){var z=O[gt];if(z){L(O,St,!0);var q=Bt(Object.getOwnPropertySymbols(z),Object.keys(z));try{for(var ht=bt(q),jt=ht.next();!jt.done;jt=ht.next()){var Ft=z[jt.value];Ft.propertyCreator(O,Ft.prop,Ft.descriptor,Ft.decoratorTarget,Ft.decoratorArguments)}}catch(ie){w={error:ie}}finally{try{jt&&!jt.done&&(P=ht.return)&&P.call(ht)}finally{if(w)throw w.error}}}}}function xe(O,w){return function(){var P,z=function(q,ht,jt,Ft){if(Ft===!0)return w(q,ht,jt,q,P),null;if(!Object.prototype.hasOwnProperty.call(q,gt)){var ie=q[gt];L(q,gt,Et({},ie))}return q[gt][ht]={prop:ht,propertyCreator:w,descriptor:jt,decoratorTarget:q,decoratorArguments:P},Ut(ht,O)};return Wt(arguments)?(P=b,z.apply(null,arguments)):(P=Array.prototype.slice.call(arguments),z)}}function Wt(O){return(O.length===2||O.length===3)&&(typeof O[1]=="string"||typeof O[1]=="symbol")||O.length===4&&O[3]===!0}function Zt(O,w,P){return Ui(O)?O:Array.isArray(O)?ge.array(O,{name:P}):C(O)?ge.object(O,void 0,{name:P}):V(O)?ge.map(O,{name:P}):nt(O)?ge.set(O,{name:P}):O}function be(O){return O}function ft(O){k(O);var w=xe(!0,function(z,q,ht,jt,Ft){var ie=ht?ht.initializer?ht.initializer.call(z):ht.value:void 0;Xn(z).addObservableProp(q,ie,O)}),P=(h!==void 0&&h.env,w);return P.enhancer=O,P}var ct={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function yt(O){return O==null?ct:typeof O=="string"?{name:O,deep:!0,proxy:!0}:O}Object.freeze(ct);var Dt=ft(Zt),Yt=ft(function(O,w,P){return O==null||In(O)||uo(O)||$r(O)||En(O)?O:Array.isArray(O)?ge.array(O,{name:P,deep:!1}):C(O)?ge.object(O,void 0,{name:P,deep:!1}):V(O)?ge.map(O,{name:P,deep:!1}):nt(O)?ge.set(O,{name:P,deep:!1}):A(!1)}),Lt=ft(be),_e=ft(function(O,w,P){return Nt(O,w)?w:O});function Me(O){return O.defaultDecorator?O.defaultDecorator.enhancer:O.deep===!1?be:Zt}var Se={box:function(O,w){arguments.length>2&&Tt("box");var P=yt(w);return new Ir(O,Me(P),P.name,!0,P.equals)},array:function(O,w){arguments.length>2&&Tt("array");var P=yt(w);return da(O,Me(P),P.name)},map:function(O,w){arguments.length>2&&Tt("map");var P=yt(w);return new $u(O,Me(P),P.name)},set:function(O,w){arguments.length>2&&Tt("set");var P=yt(w);return new To(O,Me(P),P.name)},object:function(O,w,P){typeof arguments[1]=="string"&&Tt("object");var z=yt(P);if(z.proxy===!1)return Vo({},O,w,z);var q=Hu(z),ht=Vo({},void 0,void 0,z),jt=Hi(ht);return rs(jt,O,w,q),jt},ref:Lt,shallow:Yt,deep:Dt,struct:_e},ge=function(O,w,P){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Dt.apply(null,arguments);if(Ui(O))return O;var z=C(O)?ge.object(O,w,P):Array.isArray(O)?ge.array(O,w):V(O)?ge.map(O,w):nt(O)?ge.set(O,w):O;if(z!==O)return z;A(!1)};function Tt(O){A("Expected one or two arguments to observable."+O+". Did you accidentally try to use observable."+O+" as decorator?")}Object.keys(Se).forEach(function(O){return ge[O]=Se[O]});var ce,pt,ae=xe(!1,function(O,w,P,z,q){var ht=P.get,jt=P.set,Ft=q[0]||{};Xn(O).addComputedProp(O,w,Et({get:ht,set:jt,context:O},Ft))}),ze=ae({equals:Z.structural}),fr=function(O,w,P){if(typeof w=="string"||O!==null&&typeof O=="object"&&arguments.length===1)return ae.apply(null,arguments);var z=typeof w=="object"?w:{};return z.get=O,z.set=typeof w=="function"?w:z.set,z.name=z.name||O.name||"",new So(z)};fr.struct=ze,function(O){O[O.NOT_TRACKING=-1]="NOT_TRACKING",O[O.UP_TO_DATE=0]="UP_TO_DATE",O[O.POSSIBLY_STALE=1]="POSSIBLY_STALE",O[O.STALE=2]="STALE"}(ce||(ce={})),function(O){O[O.NONE=0]="NONE",O[O.LOG=1]="LOG",O[O.BREAK=2]="BREAK"}(pt||(pt={}));var Be=function(O){this.cause=O};function rr(O){return O instanceof Be}function br(O){switch(O.dependenciesState){case ce.UP_TO_DATE:return!1;case ce.NOT_TRACKING:case ce.STALE:return!0;case ce.POSSIBLY_STALE:for(var w=Vt(!0),P=it(),z=O.observing,q=z.length,ht=0;ht<q;ht++){var jt=z[ht];if(Go(jt)){if(se.disableErrorBoundaries)jt.get();else try{jt.get()}catch(Ft){return _t(P),Kt(w),!0}if(O.dependenciesState===ce.STALE)return _t(P),Kt(w),!0}}return fe(O),_t(P),Kt(w),!1}}function Tr(){return se.trackingDerivation!==null}function Re(O){var w=O.observers.size>0;se.computationDepth>0&&w&&A(!1),se.allowStateChanges||!w&&se.enforceActions!=="strict"||A(!1)}function Xr(O,w,P){var z=Vt(!0);fe(O),O.newObserving=new Array(O.observing.length+100),O.unboundDepsCount=0,O.runId=++se.runId;var q,ht=se.trackingDerivation;if(se.trackingDerivation=O,se.disableErrorBoundaries===!0)q=w.call(P);else try{q=w.call(P)}catch(jt){q=new Be(jt)}return se.trackingDerivation=ht,function(jt){for(var Ft=jt.observing,ie=jt.observing=jt.newObserving,Ke=ce.UP_TO_DATE,Qt=0,_r=jt.unboundDepsCount,Ue=0;Ue<_r;Ue++)(lr=ie[Ue]).diffValue===0&&(lr.diffValue=1,Qt!==Ue&&(ie[Qt]=lr),Qt++),lr.dependenciesState>Ke&&(Ke=lr.dependenciesState);for(ie.length=Qt,jt.newObserving=null,_r=Ft.length;_r--;)(lr=Ft[_r]).diffValue===0&&Cu(lr,jt),lr.diffValue=0;for(;Qt--;){var lr;(lr=ie[Qt]).diffValue===1&&(lr.diffValue=0,Nl(lr,jt))}Ke!==ce.UP_TO_DATE&&(jt.dependenciesState=Ke,jt.onBecomeStale())}(O),Kt(z),q}function Q(O){var w=O.observing;O.observing=[];for(var P=w.length;P--;)Cu(w[P],O);O.dependenciesState=ce.NOT_TRACKING}function dt(O){var w=it();try{return O()}finally{_t(w)}}function it(){var O=se.trackingDerivation;return se.trackingDerivation=null,O}function _t(O){se.trackingDerivation=O}function Vt(O){var w=se.allowStateReads;return se.allowStateReads=O,w}function Kt(O){se.allowStateReads=O}function fe(O){if(O.dependenciesState!==ce.UP_TO_DATE){O.dependenciesState=ce.UP_TO_DATE;for(var w=O.observing,P=w.length;P--;)w[P].lowestObserverState=ce.UP_TO_DATE}}var Ge=0,rn=1,yn=Object.getOwnPropertyDescriptor(function(){},"name");yn&&yn.configurable;function Gr(O,w,P){var z=function(){return Zr(O,w,P||this,arguments)};return z.isMobxAction=!0,z}function Zr(O,w,P,z){var q=oe();try{return w.apply(P,z)}catch(ht){throw q.error=ht,ht}finally{Oe(q)}}function oe(O,w,P){var z=0,q=it();Mn();var ht={prevDerivation:q,prevAllowStateChanges:Ie(!0),prevAllowStateReads:Vt(!0),notifySpy:!1,startTime:z,actionId:rn++,parentActionId:Ge};return Ge=ht.actionId,ht}function Oe(O){Ge!==O.actionId&&A("invalid action stack. did you forget to finish an action?"),Ge=O.parentActionId,O.error!==void 0&&(se.suppressReactionErrors=!0),vr(O.prevAllowStateChanges),Kt(O.prevAllowStateReads),Yn(),_t(O.prevDerivation),O.notifySpy,se.suppressReactionErrors=!1}function je(O,w){var P,z=Ie(O);try{P=w()}finally{vr(z)}return P}function Ie(O){var w=se.allowStateChanges;return se.allowStateChanges=O,w}function vr(O){se.allowStateChanges=O}var Ir=function(O){function w(P,z,q,ht,jt){q===void 0&&(q="ObservableValue@"+E()),jt===void 0&&(jt=Z.default);var Ft=O.call(this,q)||this;return Ft.enhancer=z,Ft.name=q,Ft.equals=jt,Ft.hasUnreportedChange=!1,Ft.value=z(P,void 0,q),Ft}return function(P,z){function q(){this.constructor=P}ut(P,z),P.prototype=z===null?Object.create(z):(q.prototype=z.prototype,new q)}(w,O),w.prototype.dehanceValue=function(P){return this.dehancer!==void 0?this.dehancer(P):P},w.prototype.set=function(P){this.value,(P=this.prepareNewValue(P))!==se.UNCHANGED&&this.setNewValue(P)},w.prototype.prepareNewValue=function(P){if(Re(this),Cn(this)){var z=nr(this,{object:this,type:"update",newValue:P});if(!z)return se.UNCHANGED;P=z.newValue}return P=this.enhancer(P,this.value,this.name),this.equals(this.value,P)?se.UNCHANGED:P},w.prototype.setNewValue=function(P){var z=this.value;this.value=P,this.reportChanged(),Rn(this)&&fn(this,{type:"update",object:this,newValue:P,oldValue:z})},w.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},w.prototype.intercept=function(P){return qo(this,P)},w.prototype.observe=function(P,z){return z&&P({object:this,type:"update",newValue:this.value,oldValue:void 0}),ko(this,P)},w.prototype.toJSON=function(){return this.get()},w.prototype.toString=function(){return this.name+"["+this.value+"]"},w.prototype.valueOf=function(){return tt(this.get())},w.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},w}(U),Xo=G("ObservableValue",Ir),So=function(){function O(w){this.dependenciesState=ce.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=ce.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+E(),this.value=new Be(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=pt.NONE,k(w.get,"missing option for computed: get"),this.derivation=w.get,this.name=w.name||"ComputedValue@"+E(),w.set&&(this.setter=Gr(this.name+"-setter",w.set)),this.equals=w.equals||(w.compareStructural||w.struct?Z.structural:Z.default),this.scope=w.context,this.requiresReaction=!!w.requiresReaction,this.keepAlive=!!w.keepAlive}return O.prototype.onBecomeStale=function(){(function(w){w.lowestObserverState===ce.UP_TO_DATE&&(w.lowestObserverState=ce.POSSIBLY_STALE,w.observers.forEach(function(P){P.dependenciesState===ce.UP_TO_DATE&&(P.dependenciesState=ce.POSSIBLY_STALE,P.isTracing!==pt.NONE&&mo(P,w),P.onBecomeStale())}))})(this)},O.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(w){return w()})},O.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(w){return w()})},O.prototype.get=function(){this.isComputing&&A("Cycle detected in computation "+this.name+": "+this.derivation),se.inBatch!==0||this.observers.size!==0||this.keepAlive?(Ya(this),br(this)&&this.trackAndCompute()&&function(P){P.lowestObserverState!==ce.STALE&&(P.lowestObserverState=ce.STALE,P.observers.forEach(function(z){z.dependenciesState===ce.POSSIBLY_STALE?z.dependenciesState=ce.STALE:z.dependenciesState===ce.UP_TO_DATE&&(P.lowestObserverState=ce.UP_TO_DATE)}))}(this)):br(this)&&(this.warnAboutUntrackedRead(),Mn(),this.value=this.computeValue(!1),Yn());var w=this.value;if(rr(w))throw w.cause;return w},O.prototype.peek=function(){var w=this.computeValue(!1);if(rr(w))throw w.cause;return w},O.prototype.set=function(w){if(this.setter){k(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,w)}finally{this.isRunningSetter=!1}}else k(!1,!1)},O.prototype.trackAndCompute=function(){var w=this.value,P=this.dependenciesState===ce.NOT_TRACKING,z=this.computeValue(!0),q=P||rr(w)||rr(z)||!this.equals(w,z);return q&&(this.value=z),q},O.prototype.computeValue=function(w){var P;if(this.isComputing=!0,se.computationDepth++,w)P=Xr(this,this.derivation,this.scope);else if(se.disableErrorBoundaries===!0)P=this.derivation.call(this.scope);else try{P=this.derivation.call(this.scope)}catch(z){P=new Be(z)}return se.computationDepth--,this.isComputing=!1,P},O.prototype.suspend=function(){this.keepAlive||(Q(this),this.value=void 0)},O.prototype.observe=function(w,P){var z=this,q=!0,ht=void 0;return Uu(function(){var jt=z.get();if(!q||P){var Ft=it();w({type:"update",object:z,newValue:jt,oldValue:ht}),_t(Ft)}q=!1,ht=jt})},O.prototype.warnAboutUntrackedRead=function(){},O.prototype.toJSON=function(){return this.get()},O.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},O.prototype.valueOf=function(){return tt(this.get())},O.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},O}(),Go=G("ComputedValue",So),Bi=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Dl={};function Nu(){return typeof window<"u"?window:y!==void 0?y:typeof self<"u"?self:Dl}var io=!0,fa=!1,se=function(){var O=Nu();return O.__mobxInstanceCount>0&&!O.__mobxGlobals&&(io=!1),O.__mobxGlobals&&O.__mobxGlobals.version!==new Bi().version&&(io=!1),io?O.__mobxGlobals?(O.__mobxInstanceCount+=1,O.__mobxGlobals.UNCHANGED||(O.__mobxGlobals.UNCHANGED={}),O.__mobxGlobals):(O.__mobxInstanceCount=1,O.__mobxGlobals=new Bi):(setTimeout(function(){fa||A("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Bi)}();function Nl(O,w){O.observers.add(w),O.lowestObserverState>w.dependenciesState&&(O.lowestObserverState=w.dependenciesState)}function Cu(O,w){O.observers.delete(w),O.observers.size===0&&Ru(O)}function Ru(O){O.isPendingUnobservation===!1&&(O.isPendingUnobservation=!0,se.pendingUnobservations.push(O))}function Mn(){se.inBatch++}function Yn(){if(--se.inBatch==0){Lu();for(var O=se.pendingUnobservations,w=0;w<O.length;w++){var P=O[w];P.isPendingUnobservation=!1,P.observers.size===0&&(P.isBeingObserved&&(P.isBeingObserved=!1,P.onBecomeUnobserved()),P instanceof So&&P.suspend())}se.pendingUnobservations=[]}}function Ya(O){var w=se.trackingDerivation;return w!==null?(w.runId!==O.lastAccessedBy&&(O.lastAccessedBy=w.runId,w.newObserving[w.unboundDepsCount++]=O,O.isBeingObserved||(O.isBeingObserved=!0,O.onBecomeObserved())),!0):(O.observers.size===0&&se.inBatch>0&&Ru(O),!1)}function mo(O,w){if(O.isTracing===pt.BREAK){var P=[];ao(Ur(O),P,1),new Function(`debugger;
- /*
- Tracing '`+O.name+`'
- You are entering this break point because derivation '`+O.name+"' is being traced and '"+w.name+`' is now forcing it to update.
- Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
- The stackframe you are looking for is at least ~6-8 stack-frames up.
- `+(O instanceof So?O.derivation.toString().replace(/[*]\//g,"/"):"")+`
- The dependencies for this derivation are:
- `+P.join(`
- `)+`
- */
- `)()}}function ao(O,w,P){w.length>=1e3?w.push("(and many more)"):(w.push(""+new Array(P).join(" ")+O.name),O.dependencies&&O.dependencies.forEach(function(z){return ao(z,w,P+1)}))}var bo=function(){function O(w,P,z,q){w===void 0&&(w="Reaction@"+E()),q===void 0&&(q=!1),this.name=w,this.onInvalidate=P,this.errorHandler=z,this.requiresObservable=q,this.observing=[],this.newObserving=[],this.dependenciesState=ce.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+E(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=pt.NONE}return O.prototype.onBecomeStale=function(){this.schedule()},O.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,se.pendingReactions.push(this),Lu())},O.prototype.isScheduled=function(){return this._isScheduled},O.prototype.runReaction=function(){if(!this.isDisposed){if(Mn(),this._isScheduled=!1,br(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(w){this.reportExceptionInDerivation(w)}}Yn()}},O.prototype.track=function(w){if(!this.isDisposed){Mn(),this._isRunning=!0;var P=Xr(this,w,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Q(this),rr(P)&&this.reportExceptionInDerivation(P.cause),Yn()}},O.prototype.reportExceptionInDerivation=function(w){var P=this;if(this.errorHandler)this.errorHandler(w,this);else{if(se.disableErrorBoundaries)throw w;se.suppressReactionErrors,se.globalReactionErrorHandlers.forEach(function(z){return z(w,P)})}},O.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Mn(),Q(this),Yn()))},O.prototype.getDisposer=function(){var w=this.dispose.bind(this);return w[K]=this,w},O.prototype.toString=function(){return"Reaction["+this.name+"]"},O.prototype.trace=function(w){w===void 0&&(w=!1),function(){for(var P=[],z=0;z<arguments.length;z++)P[z]=arguments[z];var q=!1;typeof P[P.length-1]=="boolean"&&(q=P.pop());var ht=cr(P);if(!ht)return A(!1);ht.isTracing,pt.NONE,ht.isTracing=q?pt.BREAK:pt.LOG}(this,w)},O}(),Iu=function(O){return O()};function Lu(){se.inBatch>0||se.isRunningReactions||Iu($c)}function $c(){se.isRunningReactions=!0;for(var O=se.pendingReactions,w=0;O.length>0;){++w==100&&O.splice(0);for(var P=O.splice(0),z=0,q=P.length;z<q;z++)P[z].runReaction()}se.isRunningReactions=!1}var pa=G("Reaction",bo);function Jc(O){var w=Iu;Iu=function(P){return O(function(){return w(P)})}}function zu(O){return function(){}}function Cl(){A(!1)}function pi(O){return function(w,P,z){if(z){if(z.value)return{value:Gr(O,z.value),enumerable:!1,configurable:!0,writable:!0};var q=z.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Gr(O,q.call(this))}}}return Qc(O).apply(this,arguments)}}function Qc(O){return function(w,P,z){Object.defineProperty(w,P,{configurable:!0,enumerable:!1,get:function(){},set:function(q){L(this,P,Wo(O,q))}})}}var Wo=function(O,w,P,z){return arguments.length===1&&typeof O=="function"?Gr(O.name||"<unnamed action>",O):arguments.length===2&&typeof w=="function"?Gr(O,w):arguments.length===1&&typeof O=="string"?pi(O):z!==!0?pi(w).apply(null,arguments):void L(O,w,Gr(O.name||w,P.value,this))};function Bu(O,w){return Zr(typeof O=="string"?O:O.name||"<unnamed action>",typeof O=="function"?O:w,this,void 0)}function Xa(O){return typeof O=="function"&&O.isMobxAction===!0}function Fu(O,w,P){L(O,w,Gr(w,P.bind(O)))}function Uu(O,w){w===void 0&&(w=v);var P,z=w&&w.name||O.name||"Autorun@"+E();if(!w.scheduler&&!w.delay)P=new bo(z,function(){this.track(jt)},w.onError,w.requiresObservable);else{var q=ts(w),ht=!1;P=new bo(z,function(){ht||(ht=!0,q(function(){ht=!1,P.isDisposed||P.track(jt)}))},w.onError,w.requiresObservable)}function jt(){O(P)}return P.schedule(),P.getDisposer()}Wo.bound=function(O,w,P,z){return z===!0?(Fu(O,w,P.value),null):P?{configurable:!0,enumerable:!1,get:function(){return Fu(this,w,P.value||P.initializer.call(this)),this[w]},set:Cl}:{enumerable:!1,configurable:!0,set:function(q){Fu(this,w,q)},get:function(){}}};var Rl=function(O){return O()};function ts(O){return O.scheduler?O.scheduler:O.delay?function(w){return setTimeout(w,O.delay)}:Rl}function hr(O,w,P){P===void 0&&(P=v);var z,q,ht,jt=P.name||"Reaction@"+E(),Ft=Wo(jt,P.onError?(z=P.onError,q=w,function(){try{return q.apply(this,arguments)}catch(Mr){z.call(this,Mr)}}):w),ie=!P.scheduler&&!P.delay,Ke=ts(P),Qt=!0,_r=!1,Ue=P.compareStructural?Z.structural:P.equals||Z.default,lr=new bo(jt,function(){Qt||ie?so():_r||(_r=!0,Ke(so))},P.onError,P.requiresObservable);function so(){if(_r=!1,!lr.isDisposed){var Mr=!1;lr.track(function(){var Ln=O(lr);Mr=Qt||!Ue(ht,Ln),ht=Ln}),Qt&&P.fireImmediately&&Ft(ht,lr),Qt||Mr!==!0||Ft(ht,lr),Qt&&(Qt=!1)}}return lr.schedule(),lr.getDisposer()}function pr(O,w,P){return es("onBecomeUnobserved",O,w,P)}function es(O,w,P,z){var q=typeof z=="function"?co(w,P):co(w),ht=typeof z=="function"?z:P,jt=O+"Listeners";return q[jt]?q[jt].add(ht):q[jt]=new Set([ht]),typeof q[O]!="function"?A(!1):function(){var Ft=q[jt];Ft&&(Ft.delete(ht),Ft.size===0&&delete q[jt])}}function Fi(O){var w=O.enforceActions,P=O.computedRequiresReaction,z=O.computedConfigurable,q=O.disableErrorBoundaries,ht=O.reactionScheduler,jt=O.reactionRequiresObservable,Ft=O.observableRequiresReaction;if(O.isolateGlobalState===!0&&((se.pendingReactions.length||se.inBatch||se.isRunningReactions)&&A("isolateGlobalState should be called before MobX is running any reactions"),fa=!0,io&&(--Nu().__mobxInstanceCount==0&&(Nu().__mobxGlobals=void 0),se=new Bi)),w!==void 0){var ie=void 0;switch(w){case!0:case"observed":ie=!0;break;case!1:case"never":ie=!1;break;case"strict":case"always":ie="strict";break;default:A("Invalid value for 'enforceActions': '"+w+"', expected 'never', 'always' or 'observed'")}se.enforceActions=ie,se.allowStateChanges=ie!==!0&&ie!=="strict"}P!==void 0&&(se.computedRequiresReaction=!!P),jt!==void 0&&(se.reactionRequiresObservable=!!jt),Ft!==void 0&&(se.observableRequiresReaction=!!Ft,se.allowStateReads=!se.observableRequiresReaction),z!==void 0&&(se.computedConfigurable=!!z),q!==void 0&&(se.disableErrorBoundaries=!!q),ht&&Jc(ht)}function Vo(O,w,P,z){var q=Hu(z=yt(z));return re(O),Xn(O,z.name,q.enhancer),w&&rs(O,w,P,q),O}function Hu(O){return O.defaultDecorator||(O.deep===!1?Lt:Dt)}function rs(O,w,P,z){var q,ht;Mn();try{var jt=et(w);try{for(var Ft=bt(jt),ie=Ft.next();!ie.done;ie=Ft.next()){var Ke=ie.value,Qt=Object.getOwnPropertyDescriptor(w,Ke),_r=(P&&Ke in P?P[Ke]:Qt.get?ae:z)(O,Ke,Qt,!0);_r&&Object.defineProperty(O,Ke,_r)}}catch(Ue){q={error:Ue}}finally{try{ie&&!ie.done&&(ht=Ft.return)&&ht.call(Ft)}finally{if(q)throw q.error}}}finally{Yn()}}function Ur(O,w){return Yu(co(O,w))}function Yu(O){var w,P,z={name:O.name};return O.observing&&O.observing.length>0&&(z.dependencies=(w=O.observing,P=[],w.forEach(function(q){P.indexOf(q)===-1&&P.push(q)}),P).map(Yu)),z}var ha=0;function Xu(){this.message="FLOW_CANCELLED"}function Ga(O){arguments.length!==1&&A("Flow expects 1 argument and cannot be used as decorator");var w=O.name||"<unnamed flow>";return function(){var P,z=this,q=arguments,ht=++ha,jt=Wo(w+" - runid: "+ht+" - init",O).apply(z,q),Ft=void 0,ie=new Promise(function(Ke,Qt){var _r=0;function Ue(Mr){var Ln;Ft=void 0;try{Ln=Wo(w+" - runid: "+ht+" - yield "+_r++,jt.next).call(jt,Mr)}catch($o){return Qt($o)}so(Ln)}function lr(Mr){var Ln;Ft=void 0;try{Ln=Wo(w+" - runid: "+ht+" - yield "+_r++,jt.throw).call(jt,Mr)}catch($o){return Qt($o)}so(Ln)}function so(Mr){if(!Mr||typeof Mr.then!="function")return Mr.done?Ke(Mr.value):(Ft=Promise.resolve(Mr.value)).then(Ue,lr);Mr.then(so,Qt)}P=Qt,Ue(void 0)});return ie.cancel=Wo(w+" - runid: "+ht+" - cancel",function(){try{Ft&&gn(Ft);var Ke=jt.return(void 0),Qt=Promise.resolve(Ke.value);Qt.then(M,M),gn(Qt),P(new Xu)}catch(_r){P(_r)}}),ie}}function gn(O){typeof O.cancel=="function"&&O.cancel()}function Gu(O,w){if(O==null)return!1;if(w!==void 0){if(In(O)===!1||!O[K].values.has(w))return!1;var P=co(O,w);return Go(P)}return Go(O)}function ns(O){return arguments.length>1?A(!1):Gu(O)}function Wu(O,w){return typeof w!="string"?A(!1):Gu(O,w)}function Wa(O,w){return O!=null&&(w!==void 0?!!In(O)&&O[K].values.has(w):In(O)||!!O[K]||X(O)||pa(O)||Go(O))}function Ui(O){return arguments.length!==1&&A(!1),Wa(O)}function Ao(O){return In(O)?O[K].getKeys():$r(O)||En(O)?Array.from(O.keys()):uo(O)?O.map(function(w,P){return P}):A(!1)}function xr(O){return In(O)?Ao(O).map(function(w){return O[w]}):$r(O)?Ao(O).map(function(w){return O.get(w)}):En(O)?Array.from(O.values()):uo(O)?O.slice():A(!1)}function os(O){return In(O)?Ao(O).map(function(w){return[w,O[w]]}):$r(O)?Ao(O).map(function(w){return[w,O.get(w)]}):En(O)?Array.from(O.entries()):uo(O)?O.map(function(w,P){return[P,w]}):A(!1)}function Dn(O,w,P){if(arguments.length!==2||En(O))if(In(O)){var z=O[K],q=z.values.get(w);q?z.write(w,P):z.addObservableProp(w,P,z.defaultEnhancer)}else if($r(O))O.set(w,P);else if(En(O))O.add(w);else{if(!uo(O))return A(!1);typeof w!="number"&&(w=parseInt(w,10)),k(w>=0,"Not a valid index: '"+w+"'"),Mn(),w>=O.length&&(O.length=w+1),O[w]=P,Yn()}else{Mn();var ht=w;try{for(var jt in ht)Dn(O,jt,ht[jt])}finally{Yn()}}}function is(O,w,P,z){return typeof P=="function"?function(q,ht,jt,Ft){return Do(q,ht).observe(jt,Ft)}(O,w,P,z):function(q,ht,jt){return Do(q).observe(ht,jt)}(O,w,P)}Xu.prototype=Object.create(Error.prototype);var as={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function xn(O,w,P,z){return z.detectCycles&&O.set(w,P),P}function Nn(O,w,P){if(!w.recurseEverything&&!Ui(O)||typeof O!="object")return O;if(O===null)return null;if(O instanceof Date)return O;if(Xo(O))return Nn(O.get(),w,P);if(Ui(O)&&Ao(O),w.detectCycles===!0&&O!==null&&P.has(O))return P.get(O);if(uo(O)||Array.isArray(O)){var z=xn(P,O,[],w),q=O.map(function(Ue){return Nn(Ue,w,P)});z.length=q.length;for(var ht=0,jt=q.length;ht<jt;ht++)z[ht]=q[ht];return z}if(En(O)||Object.getPrototypeOf(O)===Set.prototype){if(w.exportMapsAsObjects===!1){var Ft=xn(P,O,new Set,w);return O.forEach(function(Ue){Ft.add(Nn(Ue,w,P))}),Ft}var ie=xn(P,O,[],w);return O.forEach(function(Ue){ie.push(Nn(Ue,w,P))}),ie}if($r(O)||Object.getPrototypeOf(O)===Map.prototype){if(w.exportMapsAsObjects===!1){var Ke=xn(P,O,new Map,w);return O.forEach(function(Ue,lr){Ke.set(lr,Nn(Ue,w,P))}),Ke}var Qt=xn(P,O,{},w);return O.forEach(function(Ue,lr){Qt[lr]=Nn(Ue,w,P)}),Qt}var _r=xn(P,O,{},w);return st(O).forEach(function(Ue){_r[Ue]=Nn(O[Ue],w,P)}),_r}function Vu(O,w){var P;return typeof w=="boolean"&&(w={detectCycles:w}),w||(w=as),w.detectCycles=w.detectCycles===void 0?w.recurseEverything===!0:w.detectCycles===!0,w.detectCycles&&(P=new Map),Nn(O,w,P)}function cr(O){switch(O.length){case 0:return se.trackingDerivation;case 1:return co(O[0]);case 2:return co(O[0],O[1])}}function nn(O,w){w===void 0&&(w=void 0),Mn();try{return O.apply(w)}finally{Yn()}}function Va(O,w,P){return arguments.length===1||w&&typeof w=="object"?Ku(O,w):us(O,w,P||{})}function us(O,w,P){var z;typeof P.timeout=="number"&&(z=setTimeout(function(){if(!ht[K].isDisposed){ht();var jt=new Error("WHEN_TIMEOUT");if(!P.onError)throw jt;P.onError(jt)}},P.timeout)),P.name=P.name||"When@"+E();var q=Gr(P.name+"-effect",w),ht=Uu(function(jt){O()&&(jt.dispose(),z&&clearTimeout(z),q())},P);return ht}function Ku(O,w){var P,z=new Promise(function(q,ht){var jt=us(O,q,Et(Et({},w),{onError:ht}));P=function(){jt(),ht("WHEN_CANCELLED")}});return z.cancel=P,z}function Ka(O){return O[K]}function Po(O){return typeof O=="string"||typeof O=="number"||typeof O=="symbol"}var Ko={has:function(O,w){if(w===K||w==="constructor"||w===St)return!0;var P=Ka(O);return Po(w)?P.has(w):w in O},get:function(O,w){if(w===K||w==="constructor"||w===St)return O[w];var P=Ka(O),z=P.values.get(w);if(z instanceof U){var q=z.get();return q===void 0&&P.has(w),q}return Po(w)&&P.has(w),O[w]},set:function(O,w,P){return!!Po(w)&&(Dn(O,w,P),!0)},deleteProperty:function(O,w){return!!Po(w)&&(Ka(O).remove(w),!0)},ownKeys:function(O){return Ka(O).keysAtom.reportObserved(),Reflect.ownKeys(O)},preventExtensions:function(O){return A("Dynamic observable objects cannot be frozen"),!1}};function Hi(O){var w=new Proxy(O,Ko);return O[K].proxy=w,w}function Cn(O){return O.interceptors!==void 0&&O.interceptors.length>0}function qo(O,w){var P=O.interceptors||(O.interceptors=[]);return P.push(w),T(function(){var z=P.indexOf(w);z!==-1&&P.splice(z,1)})}function nr(O,w){var P=it();try{for(var z=Bt(O.interceptors||[]),q=0,ht=z.length;q<ht&&(k(!(w=z[q](w))||w.type,"Intercept handlers should return nothing or a change object"),w);q++);return w}finally{_t(P)}}function Rn(O){return O.changeListeners!==void 0&&O.changeListeners.length>0}function ko(O,w){var P=O.changeListeners||(O.changeListeners=[]);return P.push(w),T(function(){var z=P.indexOf(w);z!==-1&&P.splice(z,1)})}function fn(O,w){var P=it(),z=O.changeListeners;if(z){for(var q=0,ht=(z=z.slice()).length;q<ht;q++)z[q](w);_t(P)}}var qa={get:function(O,w){return w===K?O[K]:w==="length"?O[K].getArrayLength():typeof w=="number"?Lr.get.call(O,w):typeof w!="string"||isNaN(w)?Lr.hasOwnProperty(w)?Lr[w]:O[w]:Lr.get.call(O,parseInt(w))},set:function(O,w,P){return w==="length"&&O[K].setArrayLength(P),typeof w=="number"&&Lr.set.call(O,w,P),typeof w=="symbol"||isNaN(w)?O[w]=P:Lr.set.call(O,parseInt(w),P),!0},preventExtensions:function(O){return A("Observable arrays cannot be frozen"),!1}};function da(O,w,P,z){P===void 0&&(P="ObservableArray@"+E()),z===void 0&&(z=!1);var q,ht,jt,Ft=new qu(P,w,z);q=Ft.values,ht=K,jt=Ft,Object.defineProperty(q,ht,{enumerable:!1,writable:!1,configurable:!0,value:jt});var ie=new Proxy(Ft.values,qa);if(Ft.proxy=ie,O&&O.length){var Ke=Ie(!0);Ft.spliceWithArray(0,0,O),vr(Ke)}return ie}var qu=function(){function O(w,P,z){this.owned=z,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new U(w||"ObservableArray@"+E()),this.enhancer=function(q,ht){return P(q,ht,w+"[..]")}}return O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.dehanceValues=function(w){return this.dehancer!==void 0&&w.length>0?w.map(this.dehancer):w},O.prototype.intercept=function(w){return qo(this,w)},O.prototype.observe=function(w,P){return P===void 0&&(P=!1),P&&w({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),ko(this,w)},O.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},O.prototype.setArrayLength=function(w){if(typeof w!="number"||w<0)throw new Error("[mobx.array] Out of range: "+w);var P=this.values.length;if(w!==P)if(w>P){for(var z=new Array(w-P),q=0;q<w-P;q++)z[q]=void 0;this.spliceWithArray(P,0,z)}else this.spliceWithArray(w,P-w)},O.prototype.updateArrayLength=function(w,P){if(w!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=P},O.prototype.spliceWithArray=function(w,P,z){var q=this;Re(this.atom);var ht=this.values.length;if(w===void 0?w=0:w>ht?w=ht:w<0&&(w=Math.max(0,ht+w)),P=arguments.length===1?ht-w:P==null?0:Math.max(0,Math.min(P,ht-w)),z===void 0&&(z=b),Cn(this)){var jt=nr(this,{object:this.proxy,type:"splice",index:w,removedCount:P,added:z});if(!jt)return b;P=jt.removedCount,z=jt.added}z=z.length===0?z:z.map(function(ie){return q.enhancer(ie,void 0)});var Ft=this.spliceItemsIntoValues(w,P,z);return P===0&&z.length===0||this.notifyArraySplice(w,z,Ft),this.dehanceValues(Ft)},O.prototype.spliceItemsIntoValues=function(w,P,z){var q;if(z.length<1e4)return(q=this.values).splice.apply(q,Bt([w,P],z));var ht=this.values.slice(w,w+P);return this.values=this.values.slice(0,w).concat(z,this.values.slice(w+P)),ht},O.prototype.notifyArrayChildUpdate=function(w,P,z){var q=!this.owned&&!1,ht=Rn(this),jt=ht||q?{object:this.proxy,type:"update",index:w,newValue:P,oldValue:z}:null;this.atom.reportChanged(),ht&&fn(this,jt)},O.prototype.notifyArraySplice=function(w,P,z){var q=!this.owned&&!1,ht=Rn(this),jt=ht||q?{object:this.proxy,type:"splice",index:w,removed:z,added:P,removedCount:z.length,addedCount:P.length}:null;this.atom.reportChanged(),ht&&fn(this,jt)},O}(),Lr={intercept:function(O){return this[K].intercept(O)},observe:function(O,w){return w===void 0&&(w=!1),this[K].observe(O,w)},clear:function(){return this.splice(0)},replace:function(O){var w=this[K];return w.spliceWithArray(0,w.values.length,O)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(O,w){for(var P=[],z=2;z<arguments.length;z++)P[z-2]=arguments[z];var q=this[K];switch(arguments.length){case 0:return[];case 1:return q.spliceWithArray(O);case 2:return q.spliceWithArray(O,w)}return q.spliceWithArray(O,w,P)},spliceWithArray:function(O,w,P){return this[K].spliceWithArray(O,w,P)},push:function(){for(var O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];var P=this[K];return P.spliceWithArray(P.values.length,0,O),P.values.length},pop:function(){return this.splice(Math.max(this[K].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];var P=this[K];return P.spliceWithArray(0,0,O),P.values.length},reverse:function(){var O=this.slice();return O.reverse.apply(O,arguments)},sort:function(O){var w=this.slice();return w.sort.apply(w,arguments)},remove:function(O){var w=this[K],P=w.dehanceValues(w.values).indexOf(O);return P>-1&&(this.splice(P,1),!0)},get:function(O){var w=this[K];if(w&&O<w.values.length)return w.atom.reportObserved(),w.dehanceValue(w.values[O])},set:function(O,w){var P=this[K],z=P.values;if(O<z.length){Re(P.atom);var q=z[O];if(Cn(P)){var ht=nr(P,{type:"update",object:P.proxy,index:O,newValue:w});if(!ht)return;w=ht.newValue}(w=P.enhancer(w,q))!==q&&(z[O]=w,P.notifyArrayChildUpdate(O,w,q))}else{if(O!==z.length)throw new Error("[mobx.array] Index out of bounds, "+O+" is larger than "+z.length);P.spliceWithArray(O,0,[w])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Lr[O]=function(){var w=this[K];w.atom.reportObserved();var P=w.dehanceValues(w.values);return P[O].apply(P,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Lr[O]=function(w,P){var z=this,q=this[K];return q.atom.reportObserved(),q.dehanceValues(q.values)[O](function(ht,jt){return w.call(P,ht,jt,z)},P)})}),["reduce","reduceRight"].forEach(function(O){Lr[O]=function(){var w=this,P=this[K];P.atom.reportObserved();var z=arguments[0];return arguments[0]=function(q,ht,jt){return ht=P.dehanceValue(ht),z(q,ht,jt,w)},P.values[O].apply(P.values,arguments)}});var Za,Zo=G("ObservableArrayAdministration",qu);function uo(O){return I(O)&&Zo(O[K])}var Zu,Il={},$u=function(){function O(w,P,z){if(P===void 0&&(P=Zt),z===void 0&&(z="ObservableMap@"+E()),this.enhancer=P,this.name=z,this[Za]=Il,this._keysAtom=W(this.name+".keys()"),this[Symbol.toStringTag]="Map",typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(w)}return O.prototype._has=function(w){return this._data.has(w)},O.prototype.has=function(w){var P=this;if(!se.trackingDerivation)return this._has(w);var z=this._hasMap.get(w);if(!z){var q=z=new Ir(this._has(w),be,this.name+"."+at(w)+"?",!1);this._hasMap.set(w,q),pr(q,function(){return P._hasMap.delete(w)})}return z.get()},O.prototype.set=function(w,P){var z=this._has(w);if(Cn(this)){var q=nr(this,{type:z?"update":"add",object:this,newValue:P,name:w});if(!q)return this;P=q.newValue}return z?this._updateValue(w,P):this._addValue(w,P),this},O.prototype.delete=function(w){var P=this;if(Re(this._keysAtom),Cn(this)&&!(q=nr(this,{type:"delete",object:this,name:w})))return!1;if(this._has(w)){var z=Rn(this),q=z?{type:"delete",object:this,oldValue:this._data.get(w).value,name:w}:null;return nn(function(){P._keysAtom.reportChanged(),P._updateHasMapEntry(w,!1),P._data.get(w).setNewValue(void 0),P._data.delete(w)}),z&&fn(this,q),!0}return!1},O.prototype._updateHasMapEntry=function(w,P){var z=this._hasMap.get(w);z&&z.setNewValue(P)},O.prototype._updateValue=function(w,P){var z=this._data.get(w);if((P=z.prepareNewValue(P))!==se.UNCHANGED){var q=Rn(this),ht=q?{type:"update",object:this,oldValue:z.value,name:w,newValue:P}:null;z.setNewValue(P),q&&fn(this,ht)}},O.prototype._addValue=function(w,P){var z=this;Re(this._keysAtom),nn(function(){var jt=new Ir(P,z.enhancer,z.name+"."+at(w),!1);z._data.set(w,jt),P=jt.value,z._updateHasMapEntry(w,!0),z._keysAtom.reportChanged()});var q=Rn(this),ht=q?{type:"add",object:this,name:w,newValue:P}:null;q&&fn(this,ht)},O.prototype.get=function(w){return this.has(w)?this.dehanceValue(this._data.get(w).get()):this.dehanceValue(void 0)},O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},O.prototype.values=function(){var w=this,P=this.keys();return $e({next:function(){var z=P.next(),q=z.done,ht=z.value;return{done:q,value:q?void 0:w.get(ht)}}})},O.prototype.entries=function(){var w=this,P=this.keys();return $e({next:function(){var z=P.next(),q=z.done,ht=z.value;return{done:q,value:q?void 0:[ht,w.get(ht)]}}})},O.prototype[Za=K,Symbol.iterator]=function(){return this.entries()},O.prototype.forEach=function(w,P){var z,q;try{for(var ht=bt(this),jt=ht.next();!jt.done;jt=ht.next()){var Ft=Pt(jt.value,2),ie=Ft[0],Ke=Ft[1];w.call(P,Ke,ie,this)}}catch(Qt){z={error:Qt}}finally{try{jt&&!jt.done&&(q=ht.return)&&q.call(ht)}finally{if(z)throw z.error}}},O.prototype.merge=function(w){var P=this;return $r(w)&&(w=w.toJS()),nn(function(){var z=Ie(!0);try{C(w)?st(w).forEach(function(q){return P.set(q,w[q])}):Array.isArray(w)?w.forEach(function(q){var ht=Pt(q,2),jt=ht[0],Ft=ht[1];return P.set(jt,Ft)}):V(w)?(w.constructor!==Map&&A("Cannot initialize from classes that inherit from Map: "+w.constructor.name),w.forEach(function(q,ht){return P.set(ht,q)})):w!=null&&A("Cannot initialize map from "+w)}finally{vr(z)}}),this},O.prototype.clear=function(){var w=this;nn(function(){dt(function(){var P,z;try{for(var q=bt(w.keys()),ht=q.next();!ht.done;ht=q.next()){var jt=ht.value;w.delete(jt)}}catch(Ft){P={error:Ft}}finally{try{ht&&!ht.done&&(z=q.return)&&z.call(q)}finally{if(P)throw P.error}}})})},O.prototype.replace=function(w){var P=this;return nn(function(){var z,q,ht,jt,Ft=function(jn){if(V(jn)||$r(jn))return jn;if(Array.isArray(jn))return new Map(jn);if(C(jn)){var ga=new Map;for(var Xi in jn)ga.set(Xi,jn[Xi]);return ga}return A("Cannot convert to map from '"+jn+"'")}(w),ie=new Map,Ke=!1;try{for(var Qt=bt(P._data.keys()),_r=Qt.next();!_r.done;_r=Qt.next()){var Ue=_r.value;if(!Ft.has(Ue))if(P.delete(Ue))Ke=!0;else{var lr=P._data.get(Ue);ie.set(Ue,lr)}}}catch(jn){z={error:jn}}finally{try{_r&&!_r.done&&(q=Qt.return)&&q.call(Qt)}finally{if(z)throw z.error}}try{for(var so=bt(Ft.entries()),Mr=so.next();!Mr.done;Mr=so.next()){var Ln=Pt(Mr.value,2),$o=(Ue=Ln[0],lr=Ln[1],P._data.has(Ue));if(P.set(Ue,lr),P._data.has(Ue)){var Jo=P._data.get(Ue);ie.set(Ue,Jo),$o||(Ke=!0)}}}catch(jn){ht={error:jn}}finally{try{Mr&&!Mr.done&&(jt=so.return)&&jt.call(so)}finally{if(ht)throw ht.error}}if(!Ke)if(P._data.size!==ie.size)P._keysAtom.reportChanged();else for(var ya=P._data.keys(),Qu=ie.keys(),di=ya.next(),Ja=Qu.next();!di.done;){if(di.value!==Ja.value){P._keysAtom.reportChanged();break}di=ya.next(),Ja=Qu.next()}P._data=ie}),this},Object.defineProperty(O.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),O.prototype.toPOJO=function(){var w,P,z={};try{for(var q=bt(this),ht=q.next();!ht.done;ht=q.next()){var jt=Pt(ht.value,2),Ft=jt[0],ie=jt[1];z[typeof Ft=="symbol"?Ft:at(Ft)]=ie}}catch(Ke){w={error:Ke}}finally{try{ht&&!ht.done&&(P=q.return)&&P.call(q)}finally{if(w)throw w.error}}return z},O.prototype.toJS=function(){return new Map(this)},O.prototype.toJSON=function(){return this.toPOJO()},O.prototype.toString=function(){var w=this;return this.name+"[{ "+Array.from(this.keys()).map(function(P){return at(P)+": "+w.get(P)}).join(", ")+" }]"},O.prototype.observe=function(w,P){return ko(this,w)},O.prototype.intercept=function(w){return qo(this,w)},O}(),$r=G("ObservableMap",$u),Yi={},To=function(){function O(w,P,z){if(P===void 0&&(P=Zt),z===void 0&&(z="ObservableSet@"+E()),this.name=z,this[Zu]=Yi,this._data=new Set,this._atom=W(this.name),this[Symbol.toStringTag]="Set",typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(q,ht){return P(q,ht,z)},w&&this.replace(w)}return O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.clear=function(){var w=this;nn(function(){dt(function(){var P,z;try{for(var q=bt(w._data.values()),ht=q.next();!ht.done;ht=q.next()){var jt=ht.value;w.delete(jt)}}catch(Ft){P={error:Ft}}finally{try{ht&&!ht.done&&(z=q.return)&&z.call(q)}finally{if(P)throw P.error}}})})},O.prototype.forEach=function(w,P){var z,q;try{for(var ht=bt(this),jt=ht.next();!jt.done;jt=ht.next()){var Ft=jt.value;w.call(P,Ft,Ft,this)}}catch(ie){z={error:ie}}finally{try{jt&&!jt.done&&(q=ht.return)&&q.call(ht)}finally{if(z)throw z.error}}},Object.defineProperty(O.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),O.prototype.add=function(w){var P=this;if(Re(this._atom),Cn(this)&&!(q=nr(this,{type:"add",object:this,newValue:w})))return this;if(!this.has(w)){nn(function(){P._data.add(P.enhancer(w,void 0)),P._atom.reportChanged()});var z=Rn(this),q=z?{type:"add",object:this,newValue:w}:null;z&&fn(this,q)}return this},O.prototype.delete=function(w){var P=this;if(Cn(this)&&!(q=nr(this,{type:"delete",object:this,oldValue:w})))return!1;if(this.has(w)){var z=Rn(this),q=z?{type:"delete",object:this,oldValue:w}:null;return nn(function(){P._atom.reportChanged(),P._data.delete(w)}),z&&fn(this,q),!0}return!1},O.prototype.has=function(w){return this._atom.reportObserved(),this._data.has(this.dehanceValue(w))},O.prototype.entries=function(){var w=0,P=Array.from(this.keys()),z=Array.from(this.values());return $e({next:function(){var q=w;return w+=1,q<z.length?{value:[P[q],z[q]],done:!1}:{done:!0}}})},O.prototype.keys=function(){return this.values()},O.prototype.values=function(){this._atom.reportObserved();var w=this,P=0,z=Array.from(this._data.values());return $e({next:function(){return P<z.length?{value:w.dehanceValue(z[P++]),done:!1}:{done:!0}}})},O.prototype.replace=function(w){var P=this;return En(w)&&(w=w.toJS()),nn(function(){var z=Ie(!0);try{Array.isArray(w)||nt(w)?(P.clear(),w.forEach(function(q){return P.add(q)})):w!=null&&A("Cannot initialize set from "+w)}finally{vr(z)}}),this},O.prototype.observe=function(w,P){return ko(this,w)},O.prototype.intercept=function(w){return qo(this,w)},O.prototype.toJS=function(){return new Set(this)},O.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},O.prototype[Zu=K,Symbol.iterator]=function(){return this.values()},O}(),En=G("ObservableSet",To),Ju=function(){function O(w,P,z,q){P===void 0&&(P=new Map),this.target=w,this.values=P,this.name=z,this.defaultEnhancer=q,this.keysAtom=new U(z+".keys")}return O.prototype.read=function(w){return this.values.get(w).get()},O.prototype.write=function(w,P){var z=this.target,q=this.values.get(w);if(q instanceof So)q.set(P);else{if(Cn(this)){if(!(jt=nr(this,{type:"update",object:this.proxy||z,name:w,newValue:P})))return;P=jt.newValue}if((P=q.prepareNewValue(P))!==se.UNCHANGED){var ht=Rn(this),jt=ht?{type:"update",object:this.proxy||z,oldValue:q.value,name:w,newValue:P}:null;q.setNewValue(P),ht&&fn(this,jt)}}},O.prototype.has=function(w){var P=this.pendingKeys||(this.pendingKeys=new Map),z=P.get(w);if(z)return z.get();var q=!!this.values.get(w);return z=new Ir(q,be,this.name+"."+at(w)+"?",!1),P.set(w,z),z.get()},O.prototype.addObservableProp=function(w,P,z){z===void 0&&(z=this.defaultEnhancer);var q=this.target;if(Cn(this)){var ht=nr(this,{object:this.proxy||q,name:w,type:"add",newValue:P});if(!ht)return;P=ht.newValue}var jt=new Ir(P,z,this.name+"."+at(w),!1);this.values.set(w,jt),P=jt.value,Object.defineProperty(q,w,function(Ft){return hi[Ft]||(hi[Ft]={configurable:!0,enumerable:!0,get:function(){return this[K].read(Ft)},set:function(ie){this[K].write(Ft,ie)}})}(w)),this.notifyPropertyAddition(w,P)},O.prototype.addComputedProp=function(w,P,z){var q,ht,jt,Ft=this.target;z.name=z.name||this.name+"."+at(P),this.values.set(P,new So(z)),(w===Ft||(q=w,ht=P,!(jt=Object.getOwnPropertyDescriptor(q,ht))||jt.configurable!==!1&&jt.writable!==!1))&&Object.defineProperty(w,P,function(ie){return $a[ie]||($a[ie]={configurable:se.computedConfigurable,enumerable:!1,get:function(){return Mo(this).read(ie)},set:function(Ke){Mo(this).write(ie,Ke)}})}(P))},O.prototype.remove=function(w){if(this.values.has(w)){var P=this.target;if(Cn(this)&&!(ie=nr(this,{object:this.proxy||P,name:w,type:"remove"})))return;try{Mn();var z=Rn(this),q=!1,ht=this.values.get(w),jt=ht&&ht.get();if(ht&&ht.set(void 0),this.keysAtom.reportChanged(),this.values.delete(w),this.pendingKeys){var Ft=this.pendingKeys.get(w);Ft&&Ft.set(!1)}delete this.target[w];var ie=z?{type:"remove",object:this.proxy||P,oldValue:jt,name:w}:null;z&&fn(this,ie)}finally{Yn()}}},O.prototype.illegalAccess=function(w,P){},O.prototype.observe=function(w,P){return ko(this,w)},O.prototype.intercept=function(w){return qo(this,w)},O.prototype.notifyPropertyAddition=function(w,P){var z=Rn(this),q=z?{type:"add",object:this.proxy||this.target,name:w,newValue:P}:null;if(z&&fn(this,q),this.pendingKeys){var ht=this.pendingKeys.get(w);ht&&ht.set(!0)}this.keysAtom.reportChanged()},O.prototype.getKeys=function(){var w,P;this.keysAtom.reportObserved();var z=[];try{for(var q=bt(this.values),ht=q.next();!ht.done;ht=q.next()){var jt=Pt(ht.value,2),Ft=jt[0];jt[1]instanceof Ir&&z.push(Ft)}}catch(ie){w={error:ie}}finally{try{ht&&!ht.done&&(P=q.return)&&P.call(q)}finally{if(w)throw w.error}}return z},O}();function Xn(O,w,P){if(w===void 0&&(w=""),P===void 0&&(P=Zt),Object.prototype.hasOwnProperty.call(O,K))return O[K];C(O)||(w=(O.constructor.name||"ObservableObject")+"@"+E()),w||(w="ObservableObject@"+E());var z=new Ju(O,new Map,at(w),P);return L(O,K,z),z}var hi=Object.create(null),$a=Object.create(null);function Mo(O){var w=O[K];return w||(re(O),O[K])}var Gn=G("ObservableObjectAdministration",Ju);function In(O){return!!I(O)&&(re(O),Gn(O[K]))}function co(O,w){if(typeof O=="object"&&O!==null){if(uo(O))return w!==void 0&&A(!1),O[K].atom;if(En(O))return O[K];if($r(O)){var P=O;return w===void 0?P._keysAtom:((z=P._data.get(w)||P._hasMap.get(w))||A(!1),z)}var z;if(re(O),w&&!O[K]&&O[w],In(O))return w?((z=O[K].values.get(w))||A(!1),z):A(!1);if(X(O)||Go(O)||pa(O))return O}else if(typeof O=="function"&&pa(O[K]))return O[K];return A(!1)}function Do(O,w){return O||A("Expecting some object"),w!==void 0?Do(co(O,w)):X(O)||Go(O)||pa(O)||$r(O)||En(O)?O:(re(O),O[K]?O[K]:void A(!1))}var wt=Object.prototype.toString;function Nt(O,w,P){return P===void 0&&(P=-1),It(O,w,P)}function It(O,w,P,z,q){if(O===w)return O!==0||1/O==1/w;if(O==null||w==null)return!1;if(O!=O)return w!=w;var ht=typeof O;if(ht!=="function"&&ht!=="object"&&typeof w!="object")return!1;var jt=wt.call(O);if(jt!==wt.call(w))return!1;switch(jt){case"[object RegExp]":case"[object String]":return""+O==""+w;case"[object Number]":return+O!=+O?+w!=+w:+O==0?1/+O==1/w:+O==+w;case"[object Date]":case"[object Boolean]":return+O==+w;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(O)===Symbol.valueOf.call(w);case"[object Map]":case"[object Set]":P>=0&&P++}O=Jt(O),w=Jt(w);var Ft=jt==="[object Array]";if(!Ft){if(typeof O!="object"||typeof w!="object")return!1;var ie=O.constructor,Ke=w.constructor;if(ie!==Ke&&!(typeof ie=="function"&&ie instanceof ie&&typeof Ke=="function"&&Ke instanceof Ke)&&"constructor"in O&&"constructor"in w)return!1}if(P===0)return!1;P<0&&(P=-1),q=q||[];for(var Qt=(z=z||[]).length;Qt--;)if(z[Qt]===O)return q[Qt]===w;if(z.push(O),q.push(w),Ft){if((Qt=O.length)!==w.length)return!1;for(;Qt--;)if(!It(O[Qt],w[Qt],P-1,z,q))return!1}else{var _r=Object.keys(O),Ue=void 0;if(Qt=_r.length,Object.keys(w).length!==Qt)return!1;for(;Qt--;)if(!Fe(w,Ue=_r[Qt])||!It(O[Ue],w[Ue],P-1,z,q))return!1}return z.pop(),q.pop(),!0}function Jt(O){return uo(O)?O.slice():V(O)||$r(O)||nt(O)||En(O)?Array.from(O.entries()):O}function Fe(O,w){return Object.prototype.hasOwnProperty.call(O,w)}function $e(O){return O[Symbol.iterator]=jr,O}function jr(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:zu,extras:{getDebugName:function(O,w){return(w!==void 0?co(O,w):In(O)||$r(O)||En(O)?Do(O):co(O)).name}},$mobx:K})}).call(this,o(163),o(68))},function(i,f,o){var h=o(113),y=o(42),b=o(179);h||y(Object.prototype,"toString",b,{unsafe:!0})},function(i,f,o){var h=o(41),y=o(100),b=o(80),v=o(58),E=o(116),A="Array Iterator",k=v.set,T=v.getterFor(A);i.exports=E(Array,"Array",function(M,I){k(this,{type:A,target:h(M),index:0,kind:I})},function(){var M=T(this),I=M.target,C=M.kind,L=M.index++;return!I||L>=I.length?(M.target=void 0,{value:void 0,done:!0}):C=="keys"?{value:L,done:!1}:C=="values"?{value:I[L],done:!1}:{value:[L,I[L]],done:!1}},"values"),b.Arguments=b.Array,y("keys"),y("values"),y("entries")},function(i,f,o){var h=o(16),y=o(7),b=o(46),v=o(76),E=o(34),A=o(15),k=o(71),T=o(36),M=o(108),I=o(18),C=o(35),L=o(96),G=o(30),V=o(33),nt=o(54),st=o(87),at=o(32),tt=o(40),et=o(41),K=o(86),U=o(39),X=o(69),W=o(60),Z=o(77),ut=o(74),Et=o(139),bt=o(112),Pt=o(50),Bt=o(38),St=o(84),gt=o(98),At=o(42),kt=o(89),Ut=o(93),re=o(72),xe=o(90),Wt=o(28),Zt=o(140),be=o(141),ft=o(78),ct=o(58),yt=o(79).forEach,Dt=Ut("hidden"),Yt="Symbol",Lt=Wt("toPrimitive"),_e=ct.set,Me=ct.getterFor(Yt),Se=Object.prototype,ge=y.Symbol,Tt=ge&&ge.prototype,ce=y.TypeError,pt=y.QObject,ae=b("JSON","stringify"),ze=Pt.f,fr=Bt.f,Be=Et.f,rr=St.f,br=A([].push),Tr=kt("symbols"),Re=kt("op-symbols"),Xr=kt("string-to-symbol-registry"),Q=kt("symbol-to-string-registry"),dt=kt("wks"),it=!pt||!pt.prototype||!pt.prototype.findChild,_t=T&&I(function(){return W(fr({},"a",{get:function(){return fr(this,"a",{value:7}).a}})).a!=7})?function(oe,Oe,je){var Ie=ze(Se,Oe);Ie&&delete Se[Oe],fr(oe,Oe,je),Ie&&oe!==Se&&fr(Se,Oe,Ie)}:fr,Vt=function(oe,Oe){var je=Tr[oe]=W(Tt);return _e(je,{type:Yt,tag:oe,description:Oe}),T||(je.description=Oe),je},Kt=function(oe,Oe,je){oe===Se&&Kt(Re,Oe,je),at(oe);var Ie=K(Oe);return at(je),C(Tr,Ie)?(je.enumerable?(C(oe,Dt)&&oe[Dt][Ie]&&(oe[Dt][Ie]=!1),je=W(je,{enumerable:X(0,!1)})):(C(oe,Dt)||fr(oe,Dt,X(1,{})),oe[Dt][Ie]=!0),_t(oe,Ie,je)):fr(oe,Ie,je)},fe=function(oe,Oe){at(oe);var je=et(Oe),Ie=Z(je).concat(Gr(je));return yt(Ie,function(vr){T&&!E(Ge,je,vr)||Kt(oe,vr,je[vr])}),oe},Ge=function(oe){var Oe=K(oe),je=E(rr,this,Oe);return!(this===Se&&C(Tr,Oe)&&!C(Re,Oe))&&(!(je||!C(this,Oe)||!C(Tr,Oe)||C(this,Dt)&&this[Dt][Oe])||je)},rn=function(oe,Oe){var je=et(oe),Ie=K(Oe);if(je!==Se||!C(Tr,Ie)||C(Re,Ie)){var vr=ze(je,Ie);return!vr||!C(Tr,Ie)||C(je,Dt)&&je[Dt][Ie]||(vr.enumerable=!0),vr}},yn=function(oe){var Oe=Be(et(oe)),je=[];return yt(Oe,function(Ie){C(Tr,Ie)||C(re,Ie)||br(je,Ie)}),je},Gr=function(oe){var Oe=oe===Se,je=Be(Oe?Re:et(oe)),Ie=[];return yt(je,function(vr){!C(Tr,vr)||Oe&&!C(Se,vr)||br(Ie,Tr[vr])}),Ie};if(M||(ge=function(){if(nt(Tt,this))throw ce("Symbol is not a constructor");var oe=arguments.length&&arguments[0]!==void 0?U(arguments[0]):void 0,Oe=xe(oe),je=function(Ie){this===Se&&E(je,Re,Ie),C(this,Dt)&&C(this[Dt],Oe)&&(this[Dt][Oe]=!1),_t(this,Oe,X(1,Ie))};return T&&it&&_t(Se,Oe,{configurable:!0,set:je}),Vt(Oe,oe)},At(Tt=ge.prototype,"toString",function(){return Me(this).tag}),At(ge,"withoutSetter",function(oe){return Vt(xe(oe),oe)}),St.f=Ge,Bt.f=Kt,Pt.f=rn,ut.f=Et.f=yn,bt.f=Gr,Zt.f=function(oe){return Vt(Wt(oe),oe)},T&&(fr(Tt,"description",{configurable:!0,get:function(){return Me(this).description}}),k||At(Se,"propertyIsEnumerable",Ge,{unsafe:!0}))),h({global:!0,wrap:!0,forced:!M,sham:!M},{Symbol:ge}),yt(Z(dt),function(oe){be(oe)}),h({target:Yt,stat:!0,forced:!M},{for:function(oe){var Oe=U(oe);if(C(Xr,Oe))return Xr[Oe];var je=ge(Oe);return Xr[Oe]=je,Q[je]=Oe,je},keyFor:function(oe){if(!st(oe))throw ce(oe+" is not a symbol");if(C(Q,oe))return Q[oe]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),h({target:"Object",stat:!0,forced:!M,sham:!T},{create:function(oe,Oe){return Oe===void 0?W(oe):fe(W(oe),Oe)},defineProperty:Kt,defineProperties:fe,getOwnPropertyDescriptor:rn}),h({target:"Object",stat:!0,forced:!M},{getOwnPropertyNames:yn,getOwnPropertySymbols:Gr}),h({target:"Object",stat:!0,forced:I(function(){bt.f(1)})},{getOwnPropertySymbols:function(oe){return bt.f(tt(oe))}}),ae&&h({target:"JSON",stat:!0,forced:!M||I(function(){var oe=ge();return ae([oe])!="[null]"||ae({a:oe})!="{}"||ae(Object(oe))!="{}"})},{stringify:function(oe,Oe,je){var Ie=gt(arguments),vr=Oe;if((V(Oe)||oe!==void 0)&&!st(oe))return L(Oe)||(Oe=function(Ir,Xo){if(G(vr)&&(Xo=E(vr,this,Ir,Xo)),!st(Xo))return Xo}),Ie[1]=Oe,v(ae,null,Ie)}}),!Tt[Lt]){var Zr=Tt.valueOf;At(Tt,Lt,function(oe){return E(Zr,this)})}ft(ge,Yt),re[Dt]=!0},function(i,f,o){var h=o(7),y=o(152),b=o(153),v=o(3),E=o(57),A=o(28),k=A("iterator"),T=A("toStringTag"),M=v.values,I=function(L,G){if(L){if(L[k]!==M)try{E(L,k,M)}catch(nt){L[k]=M}if(L[T]||E(L,T,G),y[G]){for(var V in v)if(L[V]!==v[V])try{E(L,V,v[V])}catch(nt){L[V]=v[V]}}}};for(var C in y)I(h[C]&&h[C].prototype,C);I(b,"DOMTokenList")},function(i,f,o){var h=o(151).charAt,y=o(39),b=o(58),v=o(116),E="String Iterator",A=b.set,k=b.getterFor(E);v(String,"String",function(T){A(this,{type:E,string:y(T),index:0})},function(){var T,M=k(this),I=M.string,C=M.index;return C>=I.length?{value:void 0,done:!0}:(T=h(I,C),M.index+=T.length,{value:T,done:!1})})},function(i,f,o){(function(h){var y=function(b){return b&&b.Math==Math&&b};i.exports=y(typeof globalThis=="object"&&globalThis)||y(typeof window=="object"&&window)||y(typeof self=="object"&&self)||y(typeof h=="object"&&h)||function(){return this}()||Function("return this")()}).call(this,o(68))},function(i,f,o){var h=o(16),y=o(36),b=o(7),v=o(15),E=o(35),A=o(30),k=o(54),T=o(39),M=o(38).f,I=o(134),C=b.Symbol,L=C&&C.prototype;if(y&&A(C)&&(!("description"in L)||C().description!==void 0)){var G={},V=function(){var U=arguments.length<1||arguments[0]===void 0?void 0:T(arguments[0]),X=k(L,this)?new C(U):U===void 0?C():C(U);return U===""&&(G[X]=!0),X};I(V,C),V.prototype=L,L.constructor=V;var nt=String(C("test"))=="Symbol(test)",st=v(L.toString),at=v(L.valueOf),tt=/^Symbol\((.*)\)[^)]+$/,et=v("".replace),K=v("".slice);M(L,"description",{configurable:!0,get:function(){var U=at(this),X=st(U);if(E(G,U))return"";var W=nt?K(X,7,-1):et(X,tt,"$1");return W===""?void 0:W}}),h({global:!0,forced:!0},{Symbol:V})}},function(i,f,o){o(141)("iterator")},function(i,f,o){o.d(f,"a",function(){return v.a}),o.d(f,"c",function(){return v.e}),o.d(f,"h",function(){return tt}),o.d(f,"i",function(){return nt}),o.d(f,"j",function(){return G}),o.d(f,"b",function(){return Pt}),o.d(f,"e",function(){return At}),o.d(f,"f",function(){return Bt}),o.d(f,"g",function(){return Tr});var h,y,b,v=o(0),E=0,A=[],k=v.i.__b,T=v.i.__r,M=v.i.diffed,I=v.i.__c,C=v.i.unmount;function L(Q,dt){v.i.__h&&v.i.__h(y,Q,E||dt),E=0;var it=y.__H||(y.__H={__:[],__h:[]});return Q>=it.__.length&&it.__.push({}),it.__[Q]}function G(Q){return E=1,V(ut,Q)}function V(Q,dt,it){var _t=L(h++,2);return _t.t=Q,_t.__c||(_t.__=[it?it(dt):ut(void 0,dt),function(Vt){var Kt=_t.t(_t.__[0],Vt);_t.__[0]!==Kt&&(_t.__=[Kt,_t.__[1]],_t.__c.setState({}))}],_t.__c=y),_t.__}function nt(Q,dt){var it=L(h++,3);!v.i.__s&&Z(it.__H,dt)&&(it.__=Q,it.__H=dt,y.__H.__h.push(it))}function st(Q,dt){var it=L(h++,4);!v.i.__s&&Z(it.__H,dt)&&(it.__=Q,it.__H=dt,y.__h.push(it))}function at(Q,dt){var it=L(h++,7);return Z(it.__H,dt)&&(it.__=Q(),it.__H=dt,it.__h=Q),it.__}function tt(Q,dt){return E=8,at(function(){return Q},dt)}function et(){var Q;for(A.sort(function(dt,it){return dt.__v.__b-it.__v.__b});Q=A.pop();)if(Q.__P)try{Q.__H.__h.forEach(X),Q.__H.__h.forEach(W),Q.__H.__h=[]}catch(dt){Q.__H.__h=[],v.i.__e(dt,Q.__v)}}v.i.__b=function(Q){y=null,k&&k(Q)},v.i.__r=function(Q){T&&T(Q),h=0;var dt=(y=Q.__c).__H;dt&&(dt.__h.forEach(X),dt.__h.forEach(W),dt.__h=[])},v.i.diffed=function(Q){M&&M(Q);var dt=Q.__c;dt&&dt.__H&&dt.__H.__h.length&&(A.push(dt)!==1&&b===v.i.requestAnimationFrame||((b=v.i.requestAnimationFrame)||U)(et)),y=null},v.i.__c=function(Q,dt){dt.some(function(it){try{it.__h.forEach(X),it.__h=it.__h.filter(function(_t){return!_t.__||W(_t)})}catch(_t){dt.some(function(Vt){Vt.__h&&(Vt.__h=[])}),dt=[],v.i.__e(_t,it.__v)}}),I&&I(Q,dt)},v.i.unmount=function(Q){C&&C(Q);var dt,it=Q.__c;it&&it.__H&&(it.__H.__.forEach(function(_t){try{X(_t)}catch(Vt){dt=Vt}}),dt&&v.i.__e(dt,it.__v))};var K=typeof requestAnimationFrame=="function";function U(Q){var dt,it=function(){clearTimeout(_t),K&&cancelAnimationFrame(dt),setTimeout(Q)},_t=setTimeout(it,100);K&&(dt=requestAnimationFrame(it))}function X(Q){var dt=y,it=Q.__c;typeof it=="function"&&(Q.__c=void 0,it()),y=dt}function W(Q){var dt=y;Q.__c=Q.__(),y=dt}function Z(Q,dt){return!Q||Q.length!==dt.length||dt.some(function(it,_t){return it!==Q[_t]})}function ut(Q,dt){return typeof dt=="function"?dt(Q):dt}function Et(Q,dt){for(var it in dt)Q[it]=dt[it];return Q}function bt(Q,dt){for(var it in Q)if(it!=="__source"&&!(it in dt))return!0;for(var _t in dt)if(_t!=="__source"&&Q[_t]!==dt[_t])return!0;return!1}function Pt(Q){this.props=Q}function Bt(Q,dt){function it(Vt){var Kt=this.props.ref,fe=Kt==Vt.ref;return!fe&&Kt&&(Kt.call?Kt(null):Kt.current=null),dt?!dt(this.props,Vt)||!fe:bt(this.props,Vt)}function _t(Vt){return this.shouldComponentUpdate=it,Object(v.e)(Q,Vt)}return _t.displayName="Memo("+(Q.displayName||Q.name)+")",_t.prototype.isReactComponent=!0,_t.__f=!0,_t}(Pt.prototype=new v.a).isPureReactComponent=!0,Pt.prototype.shouldComponentUpdate=function(Q,dt){return bt(this.props,Q)||bt(this.state,dt)};var St=v.i.__b;v.i.__b=function(Q){Q.type&&Q.type.__f&&Q.ref&&(Q.props.ref=Q.ref,Q.ref=null),St&&St(Q)};var gt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function At(Q){function dt(it,_t){var Vt=Et({},it);return delete Vt.ref,Q(Vt,!(_t=it.ref||_t)||typeof _t=="object"&&!("current"in _t)?null:_t)}return dt.$$typeof=gt,dt.render=dt,dt.prototype.isReactComponent=dt.__f=!0,dt.displayName="ForwardRef("+(Q.displayName||Q.name)+")",dt}var kt=function(Q,dt){return Q==null?null:Object(v.k)(Object(v.k)(Q).map(dt))},Ut={map:kt,forEach:kt,count:function(Q){return Q?Object(v.k)(Q).length:0},only:function(Q){var dt=Object(v.k)(Q);if(dt.length!==1)throw"Children.only";return dt[0]},toArray:v.k},re=v.i.__e;v.i.__e=function(Q,dt,it){if(Q.then){for(var _t,Vt=dt;Vt=Vt.__;)if((_t=Vt.__c)&&_t.__c)return dt.__e==null&&(dt.__e=it.__e,dt.__k=it.__k),_t.__c(Q,dt)}re(Q,dt,it)};var xe=v.i.unmount;function Wt(Q,dt,it){return Q&&(Q.__c&&Q.__c.__H&&(Q.__c.__H.__.forEach(function(_t){typeof _t.__c=="function"&&_t.__c()}),Q.__c.__H=null),(Q=Et({},Q)).__c!=null&&(Q.__c.__P===it&&(Q.__c.__P=dt),Q.__c=null),Q.__k=Q.__k&&Q.__k.map(function(_t){return Wt(_t,dt,it)})),Q}function Zt(Q,dt,it){return Q&&(Q.__v=null,Q.__k=Q.__k&&Q.__k.map(function(_t){return Zt(_t,dt,it)}),Q.__c&&Q.__c.__P===dt&&(Q.__e&&it.insertBefore(Q.__e,Q.__d),Q.__c.__e=!0,Q.__c.__P=it)),Q}function be(){this.__u=0,this.t=null,this.__b=null}function ft(Q){var dt=Q.__.__c;return dt&&dt.__e&&dt.__e(Q)}function ct(){this.u=null,this.o=null}v.i.unmount=function(Q){var dt=Q.__c;dt&&dt.__R&&dt.__R(),dt&&Q.__h===!0&&(Q.type=null),xe&&xe(Q)},(be.prototype=new v.a).__c=function(Q,dt){var it=dt.__c,_t=this;_t.t==null&&(_t.t=[]),_t.t.push(it);var Vt=ft(_t.__v),Kt=!1,fe=function(){Kt||(Kt=!0,it.__R=null,Vt?Vt(Ge):Ge())};it.__R=fe;var Ge=function(){if(!--_t.__u){if(_t.state.__e){var yn=_t.state.__e;_t.__v.__k[0]=Zt(yn,yn.__c.__P,yn.__c.__O)}var Gr;for(_t.setState({__e:_t.__b=null});Gr=_t.t.pop();)Gr.forceUpdate()}},rn=dt.__h===!0;_t.__u++||rn||_t.setState({__e:_t.__b=_t.__v.__k[0]}),Q.then(fe,fe)},be.prototype.componentWillUnmount=function(){this.t=[]},be.prototype.render=function(Q,dt){if(this.__b){if(this.__v.__k){var it=document.createElement("div"),_t=this.__v.__k[0].__c;this.__v.__k[0]=Wt(this.__b,it,_t.__O=_t.__P)}this.__b=null}var Vt=dt.__e&&Object(v.e)(v.b,null,Q.fallback);return Vt&&(Vt.__h=null),[Object(v.e)(v.b,null,dt.__e?null:Q.children),Vt]};var yt=function(Q,dt,it){if(++it[1]===it[0]&&Q.o.delete(dt),Q.props.revealOrder&&(Q.props.revealOrder[0]!=="t"||!Q.o.size))for(it=Q.u;it;){for(;it.length>3;)it.pop()();if(it[1]<it[0])break;Q.u=it=it[2]}};function Dt(Q){return this.getChildContext=function(){return Q.context},Q.children}function Yt(Q){var dt=this,it=Q.i;dt.componentWillUnmount=function(){Object(v.j)(null,dt.l),dt.l=null,dt.i=null},dt.i&&dt.i!==it&&dt.componentWillUnmount(),Q.__v?(dt.l||(dt.i=it,dt.l={nodeType:1,parentNode:it,childNodes:[],appendChild:function(_t){this.childNodes.push(_t),dt.i.appendChild(_t)},insertBefore:function(_t,Vt){this.childNodes.push(_t),dt.i.appendChild(_t)},removeChild:function(_t){this.childNodes.splice(this.childNodes.indexOf(_t)>>>1,1),dt.i.removeChild(_t)}}),Object(v.j)(Object(v.e)(Dt,{context:dt.context},Q.__v),dt.l)):dt.l&&dt.componentWillUnmount()}(ct.prototype=new v.a).__e=function(Q){var dt=this,it=ft(dt.__v),_t=dt.o.get(Q);return _t[0]++,function(Vt){var Kt=function(){dt.props.revealOrder?(_t.push(Vt),yt(dt,Q,_t)):Vt()};it?it(Kt):Kt()}},ct.prototype.render=function(Q){this.u=null,this.o=new Map;var dt=Object(v.k)(Q.children);Q.revealOrder&&Q.revealOrder[0]==="b"&&dt.reverse();for(var it=dt.length;it--;)this.o.set(dt[it],this.u=[1,0,this.u]);return Q.children},ct.prototype.componentDidUpdate=ct.prototype.componentDidMount=function(){var Q=this;this.o.forEach(function(dt,it){yt(Q,it,dt)})};var Lt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,_e=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Me=typeof document<"u",Se=function(Q){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(Q)};v.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(Q){Object.defineProperty(v.a.prototype,Q,{configurable:!0,get:function(){return this["UNSAFE_"+Q]},set:function(dt){Object.defineProperty(this,Q,{configurable:!0,writable:!0,value:dt})}})});var ge=v.i.event;function Tt(){}function ce(){return this.cancelBubble}function pt(){return this.defaultPrevented}v.i.event=function(Q){return ge&&(Q=ge(Q)),Q.persist=Tt,Q.isPropagationStopped=ce,Q.isDefaultPrevented=pt,Q.nativeEvent=Q};var ae,ze={configurable:!0,get:function(){return this.class}},fr=v.i.vnode;v.i.vnode=function(Q){var dt=Q.type,it=Q.props,_t=it;if(typeof dt=="string"){var Vt=dt.indexOf("-")===-1;for(var Kt in _t={},it){var fe=it[Kt];Me&&Kt==="children"&&dt==="noscript"||Kt==="value"&&"defaultValue"in it&&fe==null||(Kt==="defaultValue"&&"value"in it&&it.value==null?Kt="value":Kt==="download"&&fe===!0?fe="":/ondoubleclick/i.test(Kt)?Kt="ondblclick":/^onchange(textarea|input)/i.test(Kt+dt)&&!Se(it.type)?Kt="oninput":/^onfocus$/i.test(Kt)?Kt="onfocusin":/^onblur$/i.test(Kt)?Kt="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Kt)?Kt=Kt.toLowerCase():Vt&&_e.test(Kt)?Kt=Kt.replace(/[A-Z0-9]/,"-$&").toLowerCase():fe===null&&(fe=void 0),_t[Kt]=fe)}dt=="select"&&_t.multiple&&Array.isArray(_t.value)&&(_t.value=Object(v.k)(it.children).forEach(function(Ge){Ge.props.selected=_t.value.indexOf(Ge.props.value)!=-1})),dt=="select"&&_t.defaultValue!=null&&(_t.value=Object(v.k)(it.children).forEach(function(Ge){Ge.props.selected=_t.multiple?_t.defaultValue.indexOf(Ge.props.value)!=-1:_t.defaultValue==Ge.props.value})),Q.props=_t,it.class!=it.className&&(ze.enumerable="className"in it,it.className!=null&&(_t.class=it.className),Object.defineProperty(_t,"className",ze))}Q.$$typeof=Lt,fr&&fr(Q)};var Be=v.i.__r;v.i.__r=function(Q){Be&&Be(Q),ae=Q.__c};var rr={ReactCurrentDispatcher:{current:{readContext:function(Q){return ae.__n[Q.__c].props.value}}}};function br(Q){return!!Q&&Q.$$typeof===Lt}var Tr=function(Q,dt){return Q(dt)},Re=v.b,Xr={useState:G,useReducer:V,useEffect:nt,useLayoutEffect:st,useRef:function(Q){return E=5,at(function(){return{current:Q}},[])},useImperativeHandle:function(Q,dt,it){E=6,st(function(){typeof Q=="function"?Q(dt()):Q&&(Q.current=dt())},it==null?it:it.concat(Q))},useMemo:at,useCallback:tt,useContext:function(Q){var dt=y.context[Q.__c],it=L(h++,9);return it.c=Q,dt?(it.__==null&&(it.__=!0,dt.sub(y)),dt.props.value):Q.__},useDebugValue:function(Q,dt){v.i.useDebugValue&&v.i.useDebugValue(dt?dt(Q):Q)},version:"17.0.2",Children:Ut,render:function(Q,dt,it){return dt.__k==null&&(dt.textContent=""),Object(v.j)(Q,dt),typeof it=="function"&&it(),Q?Q.__c:null},hydrate:function(Q,dt,it){return Object(v.h)(Q,dt),typeof it=="function"&&it(),Q?Q.__c:null},unmountComponentAtNode:function(Q){return!!Q.__k&&(Object(v.j)(null,Q),!0)},createPortal:function(Q,dt){return Object(v.e)(Yt,{__v:Q,i:dt})},createElement:v.e,createContext:v.d,createFactory:function(Q){return v.e.bind(null,Q)},cloneElement:function(Q){return br(Q)?v.c.apply(null,arguments):Q},createRef:v.f,Fragment:v.b,isValidElement:br,findDOMNode:function(Q){return Q&&(Q.base||Q.nodeType===1&&Q)||null},Component:v.a,PureComponent:Pt,memo:Bt,forwardRef:At,flushSync:function(Q,dt){return Q(dt)},unstable_batchedUpdates:Tr,StrictMode:Re,Suspense:be,SuspenseList:ct,lazy:function(Q){var dt,it,_t;function Vt(Kt){if(dt||(dt=Q()).then(function(fe){it=fe.default||fe},function(fe){_t=fe}),_t)throw _t;if(!it)throw dt;return Object(v.e)(it,Kt)}return Vt.displayName="Lazy",Vt.__f=!0,Vt},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rr};f.d=Xr},function(i,f,o){var h=o(7),y=o(152),b=o(153),v=o(187),E=o(57),A=function(T){if(T&&T.forEach!==v)try{E(T,"forEach",v)}catch(M){T.forEach=v}};for(var k in y)y[k]&&A(h[k]&&h[k].prototype);A(b)},function(i,f,o){o(16)({target:"Object",stat:!0},{setPrototypeOf:o(102)})},function(i,f,o){var h=o(16),y=o(18),b=o(40),v=o(101),E=o(143);h({target:"Object",stat:!0,forced:y(function(){v(1)}),sham:!E},{getPrototypeOf:function(A){return v(b(A))}})},function(i,f,o){var h=o(16),y=o(46),b=o(76),v=o(203),E=o(165),A=o(32),k=o(33),T=o(60),M=o(18),I=y("Reflect","construct"),C=Object.prototype,L=[].push,G=M(function(){function st(){}return!(I(function(){},[],st)instanceof st)}),V=!M(function(){I(function(){})}),nt=G||V;h({target:"Reflect",stat:!0,forced:nt,sham:nt},{construct:function(st,at){E(st),A(at);var tt=arguments.length<3?st:E(arguments[2]);if(V&&!G)return I(st,at,tt);if(st==tt){switch(at.length){case 0:return new st;case 1:return new st(at[0]);case 2:return new st(at[0],at[1]);case 3:return new st(at[0],at[1],at[2]);case 4:return new st(at[0],at[1],at[2],at[3])}var et=[null];return b(L,et,at),new(b(v,st,et))}var K=tt.prototype,U=T(k(K)?K:C),X=b(st,U,at);return k(X)?X:U}})},function(i,f){var o=Function.prototype,h=o.bind,y=o.call,b=h&&h.bind(y);i.exports=h?function(v){return v&&b(y,v)}:function(v){return v&&function(){return y.apply(v,arguments)}}},function(i,f,o){var h=o(7),y=o(50).f,b=o(57),v=o(42),E=o(110),A=o(134),k=o(95);i.exports=function(T,M){var I,C,L,G,V,nt=T.target,st=T.global,at=T.stat;if(I=st?h:at?h[nt]||E(nt,{}):(h[nt]||{}).prototype)for(C in M){if(G=M[C],L=T.noTargetGet?(V=y(I,C))&&V.value:I[C],!k(st?C:nt+(at?".":"#")+C,T.forced)&&L!==void 0){if(typeof G==typeof L)continue;A(G,L)}(T.sham||L&&L.sham)&&b(G,"sham",!0),v(I,C,G,T)}}},function(i,f,o){var h=o(16),y=o(7),b=o(96),v=o(99),E=o(33),A=o(75),k=o(45),T=o(41),M=o(62),I=o(28),C=o(81),L=o(98),G=C("slice"),V=I("species"),nt=y.Array,st=Math.max;h({target:"Array",proto:!0,forced:!G},{slice:function(at,tt){var et,K,U,X=T(this),W=k(X),Z=A(at,W),ut=A(tt===void 0?W:tt,W);if(b(X)&&(et=X.constructor,(v(et)&&(et===nt||b(et.prototype))||E(et)&&(et=et[V])===null)&&(et=void 0),et===nt||et===void 0))return L(X,Z,ut);for(K=new(et===void 0?nt:et)(st(ut-Z,0)),U=0;Z<ut;Z++,U++)Z in X&&M(K,U,X[Z]);return K.length=U,K}})},function(i,f){i.exports=function(o){try{return!!o()}catch(h){return!0}}},function(i,f,o){var h=o(16),y=o(103);h({target:"RegExp",proto:!0,forced:/./.exec!==y},{exec:y})},function(i,f,o){var h=o(16),y=o(40),b=o(77);h({target:"Object",stat:!0,forced:o(18)(function(){b(1)})},{keys:function(v){return b(y(v))}})},function(i,f,o){var h=o(36),y=o(73).EXISTS,b=o(15),v=o(38).f,E=Function.prototype,A=b(E.toString),k=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,T=b(k.exec);h&&!y&&v(E,"name",{configurable:!0,get:function(){try{return T(k,A(this))[1]}catch(M){return""}}})},function(i,f,o){var h=o(16),y=o(18),b=o(41),v=o(50).f,E=o(36),A=y(function(){v(1)});h({target:"Object",stat:!0,forced:!E||A,sham:!E},{getOwnPropertyDescriptor:function(k,T){return v(b(k),T)}})},function(i,f,o){var h=o(16),y=o(188);h({target:"Array",stat:!0,forced:!o(120)(function(b){Array.from(b)})},{from:y})},function(i,f,o){var h=o(16),y=o(79).filter;h({target:"Array",proto:!0,forced:!o(81)("filter")},{filter:function(b){return y(this,b,arguments.length>1?arguments[1]:void 0)}})},function(i,f,o){var h=o(16),y=o(36),b=o(135),v=o(41),E=o(50),A=o(62);h({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(k){for(var T,M,I=v(k),C=E.f,L=b(I),G={},V=0;L.length>V;)(M=C(I,T=L[V++]))!==void 0&&A(G,T,M);return G}})},function(i,f,o){var h=o(16),y=o(7),b=o(18),v=o(96),E=o(33),A=o(40),k=o(45),T=o(62),M=o(115),I=o(81),C=o(28),L=o(70),G=C("isConcatSpreadable"),V=9007199254740991,nt="Maximum allowed index exceeded",st=y.TypeError,at=L>=51||!b(function(){var K=[];return K[G]=!1,K.concat()[0]!==K}),tt=I("concat"),et=function(K){if(!E(K))return!1;var U=K[G];return U!==void 0?!!U:v(K)};h({target:"Array",proto:!0,forced:!at||!tt},{concat:function(K){var U,X,W,Z,ut,Et=A(this),bt=M(Et,0),Pt=0;for(U=-1,W=arguments.length;U<W;U++)if(et(ut=U===-1?Et:arguments[U])){if(Pt+(Z=k(ut))>V)throw st(nt);for(X=0;X<Z;X++,Pt++)X in ut&&T(bt,Pt,ut[X])}else{if(Pt>=V)throw st(nt);T(bt,Pt++,ut)}return bt.length=Pt,bt}})},,function(i,f,o){var h=o(7),y=o(89),b=o(35),v=o(90),E=o(108),A=o(132),k=y("wks"),T=h.Symbol,M=T&&T.for,I=A?T:T&&T.withoutSetter||v;i.exports=function(C){if(!b(k,C)||!E&&typeof k[C]!="string"){var L="Symbol."+C;E&&b(T,C)?k[C]=T[C]:k[C]=A&&M?M(L):I(L)}return k[C]}},function(i,f,o){var h=o(16),y=o(202);h({target:"Object",stat:!0,forced:Object.assign!==y},{assign:y})},function(i,f){i.exports=function(o){return typeof o=="function"}},function(i,f,o){var h=o(106),y=typeof self=="object"&&self&&self.Object===Object&&self,b=h.a||y||Function("return this")();f.a=b},function(i,f,o){var h=o(7),y=o(33),b=h.String,v=h.TypeError;i.exports=function(E){if(y(E))return E;throw v(b(E)+" is not an object")}},function(i,f,o){var h=o(30);i.exports=function(y){return typeof y=="object"?y!==null:h(y)}},function(i,f){var o=Function.prototype.call;i.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(i,f,o){var h=o(15),y=o(40),b=h({}.hasOwnProperty);i.exports=Object.hasOwn||function(v,E){return b(y(v),E)}},function(i,f,o){var h=o(18);i.exports=!h(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(i,f,o){var h=o(16),y=o(79).map;h({target:"Array",proto:!0,forced:!o(81)("map")},{map:function(b){return y(this,b,arguments.length>1?arguments[1]:void 0)}})},function(i,f,o){var h=o(7),y=o(36),b=o(133),v=o(32),E=o(86),A=h.TypeError,k=Object.defineProperty;f.f=y?k:function(T,M,I){if(v(T),M=E(M),v(I),b)try{return k(T,M,I)}catch(C){}if("get"in I||"set"in I)throw A("Accessors not supported");return"value"in I&&(T[M]=I.value),T}},function(i,f,o){var h=o(7),y=o(97),b=h.String;i.exports=function(v){if(y(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b(v)}},function(i,f,o){var h=o(7),y=o(44),b=h.Object;i.exports=function(v){return b(y(v))}},function(i,f,o){var h=o(85),y=o(44);i.exports=function(b){return h(y(b))}},function(i,f,o){var h=o(7),y=o(30),b=o(35),v=o(57),E=o(110),A=o(92),k=o(58),T=o(73).CONFIGURABLE,M=k.get,I=k.enforce,C=String(String).split("String");(i.exports=function(L,G,V,nt){var st,at=!!nt&&!!nt.unsafe,tt=!!nt&&!!nt.enumerable,et=!!nt&&!!nt.noTargetGet,K=nt&&nt.name!==void 0?nt.name:G;y(V)&&(String(K).slice(0,7)==="Symbol("&&(K="["+String(K).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b(V,"name")||T&&V.name!==K)&&v(V,"name",K),(st=I(V)).source||(st.source=C.join(typeof K=="string"?K:""))),L!==h?(at?!et&&L[G]&&(tt=!0):delete L[G],tt?L[G]=V:v(L,G,V)):tt?L[G]=V:E(G,V)})(Function.prototype,"toString",function(){return y(this)&&M(this).source||A(this)})},function(i,f,o){(function(h){o.d(f,"d",function(){return v}),o.d(f,"c",function(){return E}),o.d(f,"b",function(){return A}),o.d(f,"a",function(){return T});var y=o(10),b=function(M,I){var C=typeof Symbol=="function"&&M[Symbol.iterator];if(!C)return M;var L,G,V=C.call(M),nt=[];try{for(;(I===void 0||I-- >0)&&!(L=V.next()).done;)nt.push(L.value)}catch(st){G={error:st}}finally{try{L&&!L.done&&(C=V.return)&&C.call(V)}finally{if(G)throw G.error}}return nt};function v(){var M=b(Object(y.j)(0),2)[1];return Object(y.h)(function(){M(function(I){return I+1})},[])}function E(M){if(!M||typeof M!="object")return!1;var I=Object.getPrototypeOf(M);return!I||I===Object.prototype}function A(M){return typeof Symbol=="function"?Symbol.for(M):"__$mobx-react "+M+"__"}var k={};function T(){return typeof window<"u"?window:h!==void 0?h:typeof self<"u"?self:k}}).call(this,o(68))},function(i,f,o){var h=o(7).TypeError;i.exports=function(y){if(y==null)throw h("Can't call method on "+y);return y}},function(i,f,o){var h=o(94);i.exports=function(y){return h(y.length)}},function(i,f,o){var h=o(7),y=o(30),b=function(v){return y(v)?v:void 0};i.exports=function(v,E){return arguments.length<2?b(h[v]):h[v]&&h[v][E]}},function(i,f,o){var h=o(16),y=o(34),b=o(33),v=o(32),E=o(204),A=o(50),k=o(101);h({target:"Reflect",stat:!0},{get:function T(M,I){var C,L,G=arguments.length<3?M:arguments[2];return v(M)===G?M[I]:(C=A.f(M,I))?E(C)?C.value:C.get===void 0?void 0:y(C.get,G):b(L=k(M))?T(L,I,G):void 0}})},function(i,f,o){(function(h){var y=o(31),b=o(171),v=c&&!c.nodeType&&c,E=v&&typeof h=="object"&&h&&!h.nodeType&&h,A=E&&E.exports===v?y.a.Buffer:void 0,k=(A?A.isBuffer:void 0)||b.a;f.a=k}).call(this,o(122)(i))},function(i,f,o){(function(h){var y=o(106),b=c&&!c.nodeType&&c,v=b&&typeof h=="object"&&h&&!h.nodeType&&h,E=v&&v.exports===b&&y.a.process,A=function(){try{var k=v&&v.require&&v.require("util").types;return k||E&&E.binding&&E.binding("util")}catch(T){}}();f.a=A}).call(this,o(122)(i))},function(i,f,o){var h=o(36),y=o(34),b=o(84),v=o(69),E=o(41),A=o(86),k=o(35),T=o(133),M=Object.getOwnPropertyDescriptor;f.f=h?M:function(I,C){if(I=E(I),C=A(C),T)try{return M(I,C)}catch(L){}if(k(I,C))return v(!y(b.f,I,C),I[C])}},function(i,f,o){var h=o(15),y=h({}.toString),b=h("".slice);i.exports=function(v){return b(y(v),8,-1)}},function(i,f,o){o(182)("Map",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},o(186))},function(i,f,o){var h=o(16),y=o(219).entries;h({target:"Object",stat:!0},{entries:function(b){return y(b)}})},function(i,f,o){var h=o(15);i.exports=h({}.isPrototypeOf)},function(i,f,o){var h=o(46);i.exports=h("navigator","userAgent")||""},function(i,f,o){var h=o(7),y=o(30),b=o(88),v=h.TypeError;i.exports=function(E){if(y(E))return E;throw v(b(E)+" is not a function")}},function(i,f,o){var h=o(36),y=o(38),b=o(69);i.exports=h?function(v,E,A){return y.f(v,E,b(1,A))}:function(v,E,A){return v[E]=A,v}},function(i,f,o){var h,y,b,v=o(175),E=o(7),A=o(15),k=o(33),T=o(57),M=o(35),I=o(109),C=o(93),L=o(72),G="Object already initialized",V=E.TypeError,nt=E.WeakMap;if(v||I.state){var st=I.state||(I.state=new nt),at=A(st.get),tt=A(st.has),et=A(st.set);h=function(U,X){if(tt(st,U))throw new V(G);return X.facade=U,et(st,U,X),X},y=function(U){return at(st,U)||{}},b=function(U){return tt(st,U)}}else{var K=C("state");L[K]=!0,h=function(U,X){if(M(U,K))throw new V(G);return X.facade=U,T(U,K,X),X},y=function(U){return M(U,K)?U[K]:{}},b=function(U){return M(U,K)}}i.exports={set:h,get:y,has:b,enforce:function(U){return b(U)?y(U):h(U,{})},getterFor:function(U){return function(X){var W;if(!k(X)||(W=y(X)).type!==U)throw V("Incompatible receiver, "+U+" required");return W}}}},function(i,f){var o=Math.ceil,h=Math.floor;i.exports=function(y){var b=+y;return b!=b||b===0?0:(b>0?h:o)(b)}},function(i,f,o){var h,y=o(32),b=o(176),v=o(111),E=o(72),A=o(138),k=o(91),T=o(93),M=T("IE_PROTO"),I=function(){},C=function(V){return"<script>"+V+"<\/script>"},L=function(V){V.write(C("")),V.close();var nt=V.parentWindow.Object;return V=null,nt},G=function(){try{h=new ActiveXObject("htmlfile")}catch(at){}var V,nt;G=typeof document<"u"?document.domain&&h?L(h):((nt=k("iframe")).style.display="none",A.appendChild(nt),nt.src="javascript:",(V=nt.contentWindow.document).open(),V.write(C("document.F=Object")),V.close(),V.F):L(h);for(var st=v.length;st--;)delete G.prototype[v[st]];return G()};E[M]=!0,i.exports=Object.create||function(V,nt){var st;return V!==null?(I.prototype=y(V),st=new I,I.prototype=null,st[M]=V):st=G(),nt===void 0?st:b(st,nt)}},function(i,f,o){var h=o(56);i.exports=function(y,b){var v=y[b];return v==null?void 0:h(v)}},function(i,f,o){var h=o(86),y=o(38),b=o(69);i.exports=function(v,E,A){var k=h(E);k in v?y.f(v,k,b(0,A)):v[k]=A}},function(i,f,o){var h=o(15),y=o(56),b=h(h.bind);i.exports=function(v,E){return y(v),E===void 0?v:b?b(v,E):function(){return v.apply(E,arguments)}}},function(i,f,o){var h=o(36),y=o(7),b=o(15),v=o(95),E=o(42),A=o(35),k=o(148),T=o(54),M=o(87),I=o(131),C=o(18),L=o(74).f,G=o(50).f,V=o(38).f,nt=o(160),st=o(161).trim,at="Number",tt=y.Number,et=tt.prototype,K=y.TypeError,U=b("".slice),X=b("".charCodeAt),W=function(Bt){var St=I(Bt,"number");return typeof St=="bigint"?St:Z(St)},Z=function(Bt){var St,gt,At,kt,Ut,re,xe,Wt,Zt=I(Bt,"number");if(M(Zt))throw K("Cannot convert a Symbol value to a number");if(typeof Zt=="string"&&Zt.length>2){if(Zt=st(Zt),(St=X(Zt,0))===43||St===45){if((gt=X(Zt,2))===88||gt===120)return NaN}else if(St===48){switch(X(Zt,1)){case 66:case 98:At=2,kt=49;break;case 79:case 111:At=8,kt=55;break;default:return+Zt}for(re=(Ut=U(Zt,2)).length,xe=0;xe<re;xe++)if((Wt=X(Ut,xe))<48||Wt>kt)return NaN;return parseInt(Ut,At)}}return+Zt};if(v(at,!tt(" 0o1")||!tt("0b1")||tt("+0x1"))){for(var ut,Et=function(Bt){var St=arguments.length<1?0:tt(W(Bt)),gt=this;return T(et,gt)&&C(function(){nt(gt)})?k(Object(St),gt,Et):St},bt=h?L(tt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Pt=0;bt.length>Pt;Pt++)A(tt,ut=bt[Pt])&&!A(Et,ut)&&V(Et,ut,G(tt,ut));Et.prototype=et,et.constructor=Et,E(y,at,Et)}},function(i,f,o){var h=o(16),y=o(15),b=o(85),v=o(41),E=o(121),A=y([].join),k=b!=Object,T=E("join",",");h({target:"Array",proto:!0,forced:k||!T},{join:function(M){return A(v(this),M===void 0?",":M)}})},function(i,f,o){var h=o(15),y=o(73).PROPER,b=o(42),v=o(32),E=o(54),A=o(39),k=o(18),T=o(154),M="toString",I=RegExp.prototype,C=I.toString,L=h(T),G=k(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),V=y&&C.name!=M;(G||V)&&b(RegExp.prototype,M,function(){var nt=v(this),st=A(nt.source),at=nt.flags;return"/"+st+"/"+A(at===void 0&&E(I,nt)&&!("flags"in I)?L(nt):at)},{unsafe:!0})},function(i,f,o){var h=o(16),y=o(216),b=o(100);h({target:"Array",proto:!0},{fill:y}),b("fill")},function(i,f){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(h){typeof window=="object"&&(o=window)}i.exports=o},function(i,f){i.exports=function(o,h){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:h}}},function(i,f,o){var h,y,b=o(7),v=o(55),E=b.process,A=b.Deno,k=E&&E.versions||A&&A.version,T=k&&k.v8;T&&(y=(h=T.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!y&&v&&(!(h=v.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=v.match(/Chrome\/(\d+)/))&&(y=+h[1]),i.exports=y},function(i,f){i.exports=!1},function(i,f){i.exports={}},function(i,f,o){var h=o(36),y=o(35),b=Function.prototype,v=h&&Object.getOwnPropertyDescriptor,E=y(b,"name"),A=E&&function(){}.name==="something",k=E&&(!h||h&&v(b,"name").configurable);i.exports={EXISTS:E,PROPER:A,CONFIGURABLE:k}},function(i,f,o){var h=o(136),y=o(111).concat("length","prototype");f.f=Object.getOwnPropertyNames||function(b){return h(b,y)}},function(i,f,o){var h=o(59),y=Math.max,b=Math.min;i.exports=function(v,E){var A=h(v);return A<0?y(A+E,0):b(A,E)}},function(i,f){var o=Function.prototype,h=o.apply,y=o.bind,b=o.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(y?b.bind(h):function(){return b.apply(h,arguments)})},function(i,f,o){var h=o(136),y=o(111);i.exports=Object.keys||function(b){return h(b,y)}},function(i,f,o){var h=o(38).f,y=o(35),b=o(28)("toStringTag");i.exports=function(v,E,A){v&&!y(v=A?v:v.prototype,b)&&h(v,b,{configurable:!0,value:E})}},function(i,f,o){var h=o(63),y=o(15),b=o(85),v=o(40),E=o(45),A=o(115),k=y([].push),T=function(M){var I=M==1,C=M==2,L=M==3,G=M==4,V=M==6,nt=M==7,st=M==5||V;return function(at,tt,et,K){for(var U,X,W=v(at),Z=b(W),ut=h(tt,et),Et=E(Z),bt=0,Pt=K||A,Bt=I?Pt(at,Et):C||nt?Pt(at,0):void 0;Et>bt;bt++)if((st||bt in Z)&&(X=ut(U=Z[bt],bt,W),M))if(I)Bt[bt]=X;else if(X)switch(M){case 3:return!0;case 5:return U;case 6:return bt;case 2:k(Bt,U)}else switch(M){case 4:return!1;case 7:k(Bt,U)}return V?-1:L||G?G:Bt}};i.exports={forEach:T(0),map:T(1),filter:T(2),some:T(3),every:T(4),find:T(5),findIndex:T(6),filterReject:T(7)}},function(i,f){i.exports={}},function(i,f,o){var h=o(18),y=o(28),b=o(70),v=y("species");i.exports=function(E){return b>=51||!h(function(){var A=[];return(A.constructor={})[v]=function(){return{foo:1}},A[E](Boolean).foo!==1})}},function(i,f,o){var h=o(76),y=o(34),b=o(15),v=o(123),E=o(159),A=o(32),k=o(44),T=o(164),M=o(124),I=o(94),C=o(39),L=o(61),G=o(114),V=o(125),nt=o(103),st=o(155),at=o(18),tt=st.UNSUPPORTED_Y,et=4294967295,K=Math.min,U=[].push,X=b(/./.exec),W=b(U),Z=b("".slice),ut=!at(function(){var Et=/(?:)/,bt=Et.exec;Et.exec=function(){return bt.apply(this,arguments)};var Pt="ab".split(Et);return Pt.length!==2||Pt[0]!=="a"||Pt[1]!=="b"});v("split",function(Et,bt,Pt){var Bt;return Bt="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(St,gt){var At=C(k(this)),kt=gt===void 0?et:gt>>>0;if(kt===0)return[];if(St===void 0)return[At];if(!E(St))return y(bt,At,St,kt);for(var Ut,re,xe,Wt=[],Zt=(St.ignoreCase?"i":"")+(St.multiline?"m":"")+(St.unicode?"u":"")+(St.sticky?"y":""),be=0,ft=new RegExp(St.source,Zt+"g");(Ut=y(nt,ft,At))&&!((re=ft.lastIndex)>be&&(W(Wt,Z(At,be,Ut.index)),Ut.length>1&&Ut.index<At.length&&h(U,Wt,G(Ut,1)),xe=Ut[0].length,be=re,Wt.length>=kt));)ft.lastIndex===Ut.index&&ft.lastIndex++;return be===At.length?!xe&&X(ft,"")||W(Wt,""):W(Wt,Z(At,be)),Wt.length>kt?G(Wt,0,kt):Wt}:"0".split(void 0,0).length?function(St,gt){return St===void 0&>===0?[]:y(bt,this,St,gt)}:bt,[function(St,gt){var At=k(this),kt=St==null?void 0:L(St,Et);return kt?y(kt,St,At,gt):y(Bt,C(At),St,gt)},function(St,gt){var At=A(this),kt=C(St),Ut=Pt(Bt,At,kt,gt,Bt!==bt);if(Ut.done)return Ut.value;var re=T(At,RegExp),xe=At.unicode,Wt=(At.ignoreCase?"i":"")+(At.multiline?"m":"")+(At.unicode?"u":"")+(tt?"g":"y"),Zt=new re(tt?"^(?:"+At.source+")":At,Wt),be=gt===void 0?et:gt>>>0;if(be===0)return[];if(kt.length===0)return V(Zt,kt)===null?[kt]:[];for(var ft=0,ct=0,yt=[];ct<kt.length;){Zt.lastIndex=tt?0:ct;var Dt,Yt=V(Zt,tt?Z(kt,ct):kt);if(Yt===null||(Dt=K(I(Zt.lastIndex+(tt?ct:0)),kt.length))===ft)ct=M(kt,ct,xe);else{if(W(yt,Z(kt,ft,ct)),yt.length===be)return yt;for(var Lt=1;Lt<=Yt.length-1;Lt++)if(W(yt,Yt[Lt]),yt.length===be)return yt;ct=ft=Dt}}return W(yt,Z(kt,ft)),yt}]},!ut,tt)},function(i,f,o){o(16)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(i,f,o){var h={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!h.call({1:2},1);f.f=b?function(v){var E=y(this,v);return!!E&&E.enumerable}:h},function(i,f,o){var h=o(7),y=o(15),b=o(18),v=o(51),E=h.Object,A=y("".split);i.exports=b(function(){return!E("z").propertyIsEnumerable(0)})?function(k){return v(k)=="String"?A(k,""):E(k)}:E},function(i,f,o){var h=o(131),y=o(87);i.exports=function(b){var v=h(b,"string");return y(v)?v:v+""}},function(i,f,o){var h=o(7),y=o(46),b=o(30),v=o(54),E=o(132),A=h.Object;i.exports=E?function(k){return typeof k=="symbol"}:function(k){var T=y("Symbol");return b(T)&&v(T.prototype,A(k))}},function(i,f,o){var h=o(7).String;i.exports=function(y){try{return h(y)}catch(b){return"Object"}}},function(i,f,o){var h=o(71),y=o(109);(i.exports=function(b,v){return y[b]||(y[b]=v!==void 0?v:{})})("versions",[]).push({version:"3.19.3",mode:h?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(i,f,o){var h=o(15),y=0,b=Math.random(),v=h(1 .toString);i.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+v(++y+b,36)}},function(i,f,o){var h=o(7),y=o(33),b=h.document,v=y(b)&&y(b.createElement);i.exports=function(E){return v?b.createElement(E):{}}},function(i,f,o){var h=o(15),y=o(30),b=o(109),v=h(Function.toString);y(b.inspectSource)||(b.inspectSource=function(E){return v(E)}),i.exports=b.inspectSource},function(i,f,o){var h=o(89),y=o(90),b=h("keys");i.exports=function(v){return b[v]||(b[v]=y(v))}},function(i,f,o){var h=o(59),y=Math.min;i.exports=function(b){return b>0?y(h(b),9007199254740991):0}},function(i,f,o){var h=o(18),y=o(30),b=/#|\.prototype\./,v=function(M,I){var C=A[E(M)];return C==T||C!=k&&(y(I)?h(I):!!I)},E=v.normalize=function(M){return String(M).replace(b,".").toLowerCase()},A=v.data={},k=v.NATIVE="N",T=v.POLYFILL="P";i.exports=v},function(i,f,o){var h=o(51);i.exports=Array.isArray||function(y){return h(y)=="Array"}},function(i,f,o){var h=o(7),y=o(113),b=o(30),v=o(51),E=o(28)("toStringTag"),A=h.Object,k=v(function(){return arguments}())=="Arguments";i.exports=y?v:function(T){var M,I,C;return T===void 0?"Undefined":T===null?"Null":typeof(I=function(L,G){try{return L[G]}catch(V){}}(M=A(T),E))=="string"?I:k?v(M):(C=v(M))=="Object"&&b(M.callee)?"Arguments":C}},function(i,f,o){var h=o(15);i.exports=h([].slice)},function(i,f,o){var h=o(15),y=o(18),b=o(30),v=o(97),E=o(46),A=o(92),k=function(){},T=[],M=E("Reflect","construct"),I=/^\s*(?:class|function)\b/,C=h(I.exec),L=!I.exec(k),G=function(V){if(!b(V))return!1;try{return M(k,T,V),!0}catch(nt){return!1}};i.exports=!M||y(function(){var V;return G(G.call)||!G(Object)||!G(function(){V=!0})||V})?function(V){if(!b(V))return!1;switch(v(V)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return L||!!C(I,A(V))}:G},function(i,f,o){var h=o(28),y=o(60),b=o(38),v=h("unscopables"),E=Array.prototype;E[v]==null&&b.f(E,v,{configurable:!0,value:y(null)}),i.exports=function(A){E[v][A]=!0}},function(i,f,o){var h=o(7),y=o(35),b=o(30),v=o(40),E=o(93),A=o(143),k=E("IE_PROTO"),T=h.Object,M=T.prototype;i.exports=A?T.getPrototypeOf:function(I){var C=v(I);if(y(C,k))return C[k];var L=C.constructor;return b(L)&&C instanceof L?L.prototype:C instanceof T?M:null}},function(i,f,o){var h=o(15),y=o(32),b=o(181);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var v,E=!1,A={};try{(v=h(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(A,[]),E=A instanceof Array}catch(k){}return function(k,T){return y(k),b(T),E?v(k,T):k.__proto__=T,k}}():void 0)},function(i,f,o){var h,y,b=o(34),v=o(15),E=o(39),A=o(154),k=o(155),T=o(89),M=o(60),I=o(58).get,C=o(190),L=o(191),G=T("native-string-replace",String.prototype.replace),V=RegExp.prototype.exec,nt=V,st=v("".charAt),at=v("".indexOf),tt=v("".replace),et=v("".slice),K=(y=/b*/g,b(V,h=/a/,"a"),b(V,y,"a"),h.lastIndex!==0||y.lastIndex!==0),U=k.BROKEN_CARET,X=/()??/.exec("")[1]!==void 0;(K||X||U||C||L)&&(nt=function(W){var Z,ut,Et,bt,Pt,Bt,St,gt=this,At=I(gt),kt=E(W),Ut=At.raw;if(Ut)return Ut.lastIndex=gt.lastIndex,Z=b(nt,Ut,kt),gt.lastIndex=Ut.lastIndex,Z;var re=At.groups,xe=U&>.sticky,Wt=b(A,gt),Zt=gt.source,be=0,ft=kt;if(xe&&(Wt=tt(Wt,"y",""),at(Wt,"g")===-1&&(Wt+="g"),ft=et(kt,gt.lastIndex),gt.lastIndex>0&&(!gt.multiline||gt.multiline&&st(kt,gt.lastIndex-1)!==`
- `)&&(Zt="(?: "+Zt+")",ft=" "+ft,be++),ut=new RegExp("^(?:"+Zt+")",Wt)),X&&(ut=new RegExp("^"+Zt+"$(?!\\s)",Wt)),K&&(Et=gt.lastIndex),bt=b(V,xe?ut:gt,ft),xe?bt?(bt.input=et(bt.input,be),bt[0]=et(bt[0],be),bt.index=gt.lastIndex,gt.lastIndex+=bt[0].length):gt.lastIndex=0:K&&bt&&(gt.lastIndex=gt.global?bt.index+bt[0].length:Et),X&&bt&&bt.length>1&&b(G,bt[0],ut,function(){for(Pt=1;Pt<arguments.length-2;Pt++)arguments[Pt]===void 0&&(bt[Pt]=void 0)}),bt&&re)for(bt.groups=Bt=M(null),Pt=0;Pt<re.length;Pt++)Bt[(St=re[Pt])[0]]=bt[St[1]];return bt}),i.exports=nt},function(i,f,o){var h=o(16),y=o(7),b=o(75),v=o(59),E=o(45),A=o(40),k=o(115),T=o(62),M=o(81)("splice"),I=y.TypeError,C=Math.max,L=Math.min,G=9007199254740991,V="Maximum allowed length exceeded";h({target:"Array",proto:!0,forced:!M},{splice:function(nt,st){var at,tt,et,K,U,X,W=A(this),Z=E(W),ut=b(nt,Z),Et=arguments.length;if(Et===0?at=tt=0:Et===1?(at=0,tt=Z-ut):(at=Et-2,tt=L(C(v(st),0),Z-ut)),Z+at-tt>G)throw I(V);for(et=k(W,tt),K=0;K<tt;K++)(U=ut+K)in W&&T(et,K,W[U]);if(et.length=tt,at<tt){for(K=ut;K<Z-tt;K++)X=K+at,(U=K+tt)in W?W[X]=W[U]:delete W[X];for(K=Z;K>Z-tt+at;K--)delete W[K-1]}else if(at>tt)for(K=Z-tt;K>ut;K--)X=K+at-1,(U=K+tt-1)in W?W[X]=W[U]:delete W[X];for(K=0;K<at;K++)W[K+ut]=arguments[K+2];return W.length=Z-tt+at,et}})},function(i,f,o){var h=o(16),y=o(205);h({target:"String",proto:!0,forced:o(206)("anchor")},{anchor:function(b){return y(this,"a","name",b)}})},function(i,f,o){(function(h){var y=typeof h=="object"&&h&&h.Object===Object&&h;f.a=y}).call(this,o(68))},function(i,f,o){(function(h){var y=o(31),b=c&&!c.nodeType&&c,v=b&&typeof h=="object"&&h&&!h.nodeType&&h,E=v&&v.exports===b?y.a.Buffer:void 0,A=E?E.allocUnsafe:void 0;f.a=function(k,T){if(T)return k.slice();var M=k.length,I=A?A(M):new k.constructor(M);return k.copy(I),I}}).call(this,o(122)(i))},function(i,f,o){var h=o(70),y=o(18);i.exports=!!Object.getOwnPropertySymbols&&!y(function(){var b=Symbol();return!String(b)||!(Object(b)instanceof Symbol)||!Symbol.sham&&h&&h<41})},function(i,f,o){var h=o(7),y=o(110),b="__core-js_shared__",v=h[b]||y(b,{});i.exports=v},function(i,f,o){var h=o(7),y=Object.defineProperty;i.exports=function(b,v){try{y(h,b,{value:v,configurable:!0,writable:!0})}catch(E){h[b]=v}return v}},function(i,f){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(i,f){f.f=Object.getOwnPropertySymbols},function(i,f,o){var h={};h[o(28)("toStringTag")]="z",i.exports=String(h)==="[object z]"},function(i,f,o){var h=o(7),y=o(75),b=o(45),v=o(62),E=h.Array,A=Math.max;i.exports=function(k,T,M){for(var I=b(k),C=y(T,I),L=y(M===void 0?I:M,I),G=E(A(L-C,0)),V=0;C<L;C++,V++)v(G,V,k[C]);return G.length=V,G}},function(i,f,o){var h=o(178);i.exports=function(y,b){return new(h(y))(b===0?0:b)}},function(i,f,o){var h=o(16),y=o(34),b=o(71),v=o(73),E=o(30),A=o(180),k=o(101),T=o(102),M=o(78),I=o(57),C=o(42),L=o(28),G=o(80),V=o(142),nt=v.PROPER,st=v.CONFIGURABLE,at=V.IteratorPrototype,tt=V.BUGGY_SAFARI_ITERATORS,et=L("iterator"),K="keys",U="values",X="entries",W=function(){return this};i.exports=function(Z,ut,Et,bt,Pt,Bt,St){A(Et,ut,bt);var gt,At,kt,Ut=function(ct){if(ct===Pt&&be)return be;if(!tt&&ct in Wt)return Wt[ct];switch(ct){case K:case U:case X:return function(){return new Et(this,ct)}}return function(){return new Et(this)}},re=ut+" Iterator",xe=!1,Wt=Z.prototype,Zt=Wt[et]||Wt["@@iterator"]||Pt&&Wt[Pt],be=!tt&&Zt||Ut(Pt),ft=ut=="Array"&&Wt.entries||Zt;if(ft&&(gt=k(ft.call(new Z)))!==Object.prototype&>.next&&(b||k(gt)===at||(T?T(gt,at):E(gt[et])||C(gt,et,W)),M(gt,re,!0,!0),b&&(G[re]=W)),nt&&Pt==U&&Zt&&Zt.name!==U&&(!b&&st?I(Wt,"name",U):(xe=!0,be=function(){return y(Zt,this)})),Pt)if(At={values:Ut(U),keys:Bt?be:Ut(K),entries:Ut(X)},St)for(kt in At)(tt||xe||!(kt in Wt))&&C(Wt,kt,At[kt]);else h({target:ut,proto:!0,forced:tt||xe},At);return b&&!St||Wt[et]===be||C(Wt,et,be,{name:Pt}),G[ut]=be,At}},function(i,f,o){var h=o(7),y=o(63),b=o(34),v=o(32),E=o(88),A=o(145),k=o(45),T=o(54),M=o(146),I=o(118),C=o(147),L=h.TypeError,G=function(nt,st){this.stopped=nt,this.result=st},V=G.prototype;i.exports=function(nt,st,at){var tt,et,K,U,X,W,Z,ut=at&&at.that,Et=!(!at||!at.AS_ENTRIES),bt=!(!at||!at.IS_ITERATOR),Pt=!(!at||!at.INTERRUPTED),Bt=y(st,ut),St=function(At){return tt&&C(tt,"normal",At),new G(!0,At)},gt=function(At){return Et?(v(At),Pt?Bt(At[0],At[1],St):Bt(At[0],At[1])):Pt?Bt(At,St):Bt(At)};if(bt)tt=nt;else{if(!(et=I(nt)))throw L(E(nt)+" is not iterable");if(A(et)){for(K=0,U=k(nt);U>K;K++)if((X=gt(nt[K]))&&T(V,X))return X;return new G(!1)}tt=M(nt,et)}for(W=tt.next;!(Z=b(W,tt)).done;){try{X=gt(Z.value)}catch(At){C(tt,"throw",At)}if(typeof X=="object"&&X&&T(V,X))return X}return new G(!1)}},function(i,f,o){var h=o(97),y=o(61),b=o(80),v=o(28)("iterator");i.exports=function(E){if(E!=null)return y(E,v)||y(E,"@@iterator")||b[h(E)]}},function(i,f,o){var h=o(7),y=o(54),b=h.TypeError;i.exports=function(v,E){if(y(E,v))return v;throw b("Incorrect invocation")}},function(i,f,o){var h=o(28)("iterator"),y=!1;try{var b=0,v={next:function(){return{done:!!b++}},return:function(){y=!0}};v[h]=function(){return this},Array.from(v,function(){throw 2})}catch(E){}i.exports=function(E,A){if(!A&&!y)return!1;var k=!1;try{var T={};T[h]=function(){return{next:function(){return{done:k=!0}}}},E(T)}catch(M){}return k}},function(i,f,o){var h=o(18);i.exports=function(y,b){var v=[][y];return!!v&&h(function(){v.call(null,b||function(){throw 1},1)})}},function(i,f){i.exports=function(o){if(!o.webpackPolyfill){var h=Object.create(o);h.children||(h.children=[]),Object.defineProperty(h,"loaded",{enumerable:!0,get:function(){return h.l}}),Object.defineProperty(h,"id",{enumerable:!0,get:function(){return h.i}}),Object.defineProperty(h,"exports",{enumerable:!0}),h.webpackPolyfill=1}return h}},function(i,f,o){o(19);var h=o(15),y=o(42),b=o(103),v=o(18),E=o(28),A=o(57),k=E("species"),T=RegExp.prototype;i.exports=function(M,I,C,L){var G=E(M),V=!v(function(){var tt={};return tt[G]=function(){return 7},""[M](tt)!=7}),nt=V&&!v(function(){var tt=!1,et=/a/;return M==="split"&&((et={}).constructor={},et.constructor[k]=function(){return et},et.flags="",et[G]=/./[G]),et.exec=function(){return tt=!0,null},et[G](""),!tt});if(!V||!nt||C){var st=h(/./[G]),at=I(G,""[M],function(tt,et,K,U,X){var W=h(tt),Z=et.exec;return Z===b||Z===T.exec?V&&!X?{done:!0,value:st(et,K,U)}:{done:!0,value:W(K,et,U)}:{done:!1}});y(String.prototype,M,at[0]),y(T,G,at[1])}L&&A(T[G],"sham",!0)}},function(i,f,o){var h=o(151).charAt;i.exports=function(y,b,v){return b+(v?h(y,b).length:1)}},function(i,f,o){var h=o(7),y=o(34),b=o(32),v=o(30),E=o(51),A=o(103),k=h.TypeError;i.exports=function(T,M){var I=T.exec;if(v(I)){var C=y(I,T,M);return C!==null&&b(C),C}if(E(T)==="RegExp")return y(A,T,M);throw k("RegExp#exec called on incompatible receiver")}},function(i,f,o){var h=o(76),y=o(34),b=o(15),v=o(123),E=o(18),A=o(32),k=o(30),T=o(59),M=o(94),I=o(39),C=o(44),L=o(124),G=o(61),V=o(201),nt=o(125),st=o(28)("replace"),at=Math.max,tt=Math.min,et=b([].concat),K=b([].push),U=b("".indexOf),X=b("".slice),W="a".replace(/./,"$0")==="$0",Z=!!/./[st]&&/./[st]("a","$0")==="";v("replace",function(ut,Et,bt){var Pt=Z?"$":"$0";return[function(Bt,St){var gt=C(this),At=Bt==null?void 0:G(Bt,st);return At?y(At,Bt,gt,St):y(Et,I(gt),Bt,St)},function(Bt,St){var gt=A(this),At=I(Bt);if(typeof St=="string"&&U(St,Pt)===-1&&U(St,"$<")===-1){var kt=bt(Et,gt,At,St);if(kt.done)return kt.value}var Ut=k(St);Ut||(St=I(St));var re=gt.global;if(re){var xe=gt.unicode;gt.lastIndex=0}for(var Wt=[];;){var Zt=nt(gt,At);if(Zt===null||(K(Wt,Zt),!re))break;I(Zt[0])===""&&(gt.lastIndex=L(At,M(gt.lastIndex),xe))}for(var be,ft="",ct=0,yt=0;yt<Wt.length;yt++){for(var Dt=I((Zt=Wt[yt])[0]),Yt=at(tt(T(Zt.index),At.length),0),Lt=[],_e=1;_e<Zt.length;_e++)K(Lt,(be=Zt[_e])===void 0?be:String(be));var Me=Zt.groups;if(Ut){var Se=et([Dt],Lt,Yt,At);Me!==void 0&&K(Se,Me);var ge=I(h(St,void 0,Se))}else ge=V(Dt,At,Yt,Lt,Me,St);Yt>=ct&&(ft+=X(At,ct,Yt)+ge,ct=Yt+Dt.length)}return ft+X(At,ct)}]},!!E(function(){var ut=/./;return ut.exec=function(){var Et=[];return Et.groups={a:"7"},Et},"".replace(ut,"$<a>")!=="7"})||!W||Z)},function(i,f,o){var h=o(16),y=Math.hypot,b=Math.abs,v=Math.sqrt;h({target:"Math",stat:!0,forced:!!y&&y(1/0,NaN)!==1/0},{hypot:function(E,A){for(var k,T,M=0,I=0,C=arguments.length,L=0;I<C;)L<(k=b(arguments[I++]))?(M=M*(T=L/k)*T+1,L=k):M+=k>0?(T=k/L)*T:k;return L===1/0?1/0:L*v(M)}})},function(i,f,o){var h=o(51),y=o(7);i.exports=h(y.process)=="process"},function(i,f,o){o(16)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(i,f,o){(function(h,y){var b;(function(){var v,E="Expected a function",A="__lodash_hash_undefined__",k="__lodash_placeholder__",T=16,M=32,I=64,C=128,L=256,G=1/0,V=9007199254740991,nt=NaN,st=4294967295,at=[["ary",C],["bind",1],["bindKey",2],["curry",8],["curryRight",T],["flip",512],["partial",M],["partialRight",I],["rearg",L]],tt="[object Arguments]",et="[object Array]",K="[object Boolean]",U="[object Date]",X="[object Error]",W="[object Function]",Z="[object GeneratorFunction]",ut="[object Map]",Et="[object Number]",bt="[object Object]",Pt="[object Promise]",Bt="[object RegExp]",St="[object Set]",gt="[object String]",At="[object Symbol]",kt="[object WeakMap]",Ut="[object ArrayBuffer]",re="[object DataView]",xe="[object Float32Array]",Wt="[object Float64Array]",Zt="[object Int8Array]",be="[object Int16Array]",ft="[object Int32Array]",ct="[object Uint8Array]",yt="[object Uint8ClampedArray]",Dt="[object Uint16Array]",Yt="[object Uint32Array]",Lt=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,Me=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,ge=/[&<>"']/g,Tt=RegExp(Se.source),ce=RegExp(ge.source),pt=/<%-([\s\S]+?)%>/g,ae=/<%([\s\S]+?)%>/g,ze=/<%=([\s\S]+?)%>/g,fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Be=/^\w*$/,rr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,Tr=RegExp(br.source),Re=/^\s+/,Xr=/\s/,Q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,dt=/\{\n\/\* \[wrapped with (.+)\] \*/,it=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vt=/[()=,{}\[\]\/\s]/,Kt=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,rn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,Gr=/^\[object .+?Constructor\]$/,Zr=/^0o[0-7]+$/i,oe=/^(?:0|[1-9]\d*)$/,Oe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,je=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,vr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ir="\\u2700-\\u27bf",Xo="a-z\\xdf-\\xf6\\xf8-\\xff",So="A-Z\\xc0-\\xd6\\xd8-\\xde",Go="\\ufe0e\\ufe0f",Bi="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dl="['\u2019]",Nu="[\uD800-\uDFFF]",io="["+Bi+"]",fa="["+vr+"]",se="\\d+",Nl="[\\u2700-\\u27bf]",Cu="["+Xo+"]",Ru="[^\uD800-\uDFFF"+Bi+se+Ir+Xo+So+"]",Mn="\uD83C[\uDFFB-\uDFFF]",Yn="[^\uD800-\uDFFF]",Ya="(?:\uD83C[\uDDE6-\uDDFF]){2}",mo="[\uD800-\uDBFF][\uDC00-\uDFFF]",ao="["+So+"]",bo="(?:"+Cu+"|"+Ru+")",Iu="(?:"+ao+"|"+Ru+")",Lu="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",$c="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",pa="(?:"+fa+"|"+Mn+")?",Jc="[\\ufe0e\\ufe0f]?",zu=Jc+pa+("(?:\\u200d(?:"+[Yn,Ya,mo].join("|")+")"+Jc+pa+")*"),Cl="(?:"+[Nl,Ya,mo].join("|")+")"+zu,pi="(?:"+[Yn+fa+"?",fa,Ya,mo,Nu].join("|")+")",Qc=RegExp(Dl,"g"),Wo=RegExp(fa,"g"),Bu=RegExp(Mn+"(?="+Mn+")|"+pi+zu,"g"),Xa=RegExp([ao+"?"+Cu+"+"+Lu+"(?="+[io,ao,"$"].join("|")+")",Iu+"+"+$c+"(?="+[io,ao+bo,"$"].join("|")+")",ao+"?"+bo+"+"+Lu,ao+"+"+$c,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",se,Cl].join("|"),"g"),Fu=RegExp("[\\u200d\uD800-\uDFFF"+vr+Go+"]"),Uu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ts=-1,hr={};hr[xe]=hr[Wt]=hr[Zt]=hr[be]=hr[ft]=hr[ct]=hr[yt]=hr[Dt]=hr[Yt]=!0,hr[tt]=hr[et]=hr[Ut]=hr[K]=hr[re]=hr[U]=hr[X]=hr[W]=hr[ut]=hr[Et]=hr[bt]=hr[Bt]=hr[St]=hr[gt]=hr[kt]=!1;var pr={};pr[tt]=pr[et]=pr[Ut]=pr[re]=pr[K]=pr[U]=pr[xe]=pr[Wt]=pr[Zt]=pr[be]=pr[ft]=pr[ut]=pr[Et]=pr[bt]=pr[Bt]=pr[St]=pr[gt]=pr[At]=pr[ct]=pr[yt]=pr[Dt]=pr[Yt]=!0,pr[X]=pr[W]=pr[kt]=!1;var es={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fi=parseFloat,Vo=parseInt,Hu=typeof h=="object"&&h&&h.Object===Object&&h,rs=typeof self=="object"&&self&&self.Object===Object&&self,Ur=Hu||rs||Function("return this")(),Yu=f&&!f.nodeType&&f,ha=Yu&&typeof y=="object"&&y&&!y.nodeType&&y,Xu=ha&&ha.exports===Yu,Ga=Xu&&Hu.process,gn=function(){try{var wt=ha&&ha.require&&ha.require("util").types;return wt||Ga&&Ga.binding&&Ga.binding("util")}catch(Nt){}}(),Gu=gn&&gn.isArrayBuffer,ns=gn&&gn.isDate,Wu=gn&&gn.isMap,Wa=gn&&gn.isRegExp,Ui=gn&&gn.isSet,Ao=gn&&gn.isTypedArray;function xr(wt,Nt,It){switch(It.length){case 0:return wt.call(Nt);case 1:return wt.call(Nt,It[0]);case 2:return wt.call(Nt,It[0],It[1]);case 3:return wt.call(Nt,It[0],It[1],It[2])}return wt.apply(Nt,It)}function os(wt,Nt,It,Jt){for(var Fe=-1,$e=wt==null?0:wt.length;++Fe<$e;){var jr=wt[Fe];Nt(Jt,jr,It(jr),wt)}return Jt}function Dn(wt,Nt){for(var It=-1,Jt=wt==null?0:wt.length;++It<Jt&&Nt(wt[It],It,wt)!==!1;);return wt}function is(wt,Nt){for(var It=wt==null?0:wt.length;It--&&Nt(wt[It],It,wt)!==!1;);return wt}function as(wt,Nt){for(var It=-1,Jt=wt==null?0:wt.length;++It<Jt;)if(!Nt(wt[It],It,wt))return!1;return!0}function xn(wt,Nt){for(var It=-1,Jt=wt==null?0:wt.length,Fe=0,$e=[];++It<Jt;){var jr=wt[It];Nt(jr,It,wt)&&($e[Fe++]=jr)}return $e}function Nn(wt,Nt){return!!(wt!=null&&wt.length)&&Hi(wt,Nt,0)>-1}function Vu(wt,Nt,It){for(var Jt=-1,Fe=wt==null?0:wt.length;++Jt<Fe;)if(It(Nt,wt[Jt]))return!0;return!1}function cr(wt,Nt){for(var It=-1,Jt=wt==null?0:wt.length,Fe=Array(Jt);++It<Jt;)Fe[It]=Nt(wt[It],It,wt);return Fe}function nn(wt,Nt){for(var It=-1,Jt=Nt.length,Fe=wt.length;++It<Jt;)wt[Fe+It]=Nt[It];return wt}function Va(wt,Nt,It,Jt){var Fe=-1,$e=wt==null?0:wt.length;for(Jt&&$e&&(It=wt[++Fe]);++Fe<$e;)It=Nt(It,wt[Fe],Fe,wt);return It}function us(wt,Nt,It,Jt){var Fe=wt==null?0:wt.length;for(Jt&&Fe&&(It=wt[--Fe]);Fe--;)It=Nt(It,wt[Fe],Fe,wt);return It}function Ku(wt,Nt){for(var It=-1,Jt=wt==null?0:wt.length;++It<Jt;)if(Nt(wt[It],It,wt))return!0;return!1}var Ka=Rn("length");function Po(wt,Nt,It){var Jt;return It(wt,function(Fe,$e,jr){if(Nt(Fe,$e,jr))return Jt=$e,!1}),Jt}function Ko(wt,Nt,It,Jt){for(var Fe=wt.length,$e=It+(Jt?1:-1);Jt?$e--:++$e<Fe;)if(Nt(wt[$e],$e,wt))return $e;return-1}function Hi(wt,Nt,It){return Nt==Nt?function(Jt,Fe,$e){for(var jr=$e-1,O=Jt.length;++jr<O;)if(Jt[jr]===Fe)return jr;return-1}(wt,Nt,It):Ko(wt,qo,It)}function Cn(wt,Nt,It,Jt){for(var Fe=It-1,$e=wt.length;++Fe<$e;)if(Jt(wt[Fe],Nt))return Fe;return-1}function qo(wt){return wt!=wt}function nr(wt,Nt){var It=wt==null?0:wt.length;return It?qa(wt,Nt)/It:nt}function Rn(wt){return function(Nt){return Nt==null?v:Nt[wt]}}function ko(wt){return function(Nt){return wt==null?v:wt[Nt]}}function fn(wt,Nt,It,Jt,Fe){return Fe(wt,function($e,jr,O){It=Jt?(Jt=!1,$e):Nt(It,$e,jr,O)}),It}function qa(wt,Nt){for(var It,Jt=-1,Fe=wt.length;++Jt<Fe;){var $e=Nt(wt[Jt]);$e!==v&&(It=It===v?$e:It+$e)}return It}function da(wt,Nt){for(var It=-1,Jt=Array(wt);++It<wt;)Jt[It]=Nt(It);return Jt}function qu(wt){return wt&&wt.slice(0,In(wt)+1).replace(Re,"")}function Lr(wt){return function(Nt){return wt(Nt)}}function Za(wt,Nt){return cr(Nt,function(It){return wt[It]})}function Zo(wt,Nt){return wt.has(Nt)}function uo(wt,Nt){for(var It=-1,Jt=wt.length;++It<Jt&&Hi(Nt,wt[It],0)>-1;);return It}function Zu(wt,Nt){for(var It=wt.length;It--&&Hi(Nt,wt[It],0)>-1;);return It}function Il(wt,Nt){for(var It=wt.length,Jt=0;It--;)wt[It]===Nt&&++Jt;return Jt}var $u=ko({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),$r=ko({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yi(wt){return"\\"+es[wt]}function To(wt){return Fu.test(wt)}function En(wt){var Nt=-1,It=Array(wt.size);return wt.forEach(function(Jt,Fe){It[++Nt]=[Fe,Jt]}),It}function Ju(wt,Nt){return function(It){return wt(Nt(It))}}function Xn(wt,Nt){for(var It=-1,Jt=wt.length,Fe=0,$e=[];++It<Jt;){var jr=wt[It];jr!==Nt&&jr!==k||(wt[It]=k,$e[Fe++]=It)}return $e}function hi(wt){var Nt=-1,It=Array(wt.size);return wt.forEach(function(Jt){It[++Nt]=Jt}),It}function $a(wt){var Nt=-1,It=Array(wt.size);return wt.forEach(function(Jt){It[++Nt]=[Jt,Jt]}),It}function Mo(wt){return To(wt)?function(Nt){for(var It=Bu.lastIndex=0;Bu.test(Nt);)++It;return It}(wt):Ka(wt)}function Gn(wt){return To(wt)?function(Nt){return Nt.match(Bu)||[]}(wt):function(Nt){return Nt.split("")}(wt)}function In(wt){for(var Nt=wt.length;Nt--&&Xr.test(wt.charAt(Nt)););return Nt}var co=ko({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Do=function wt(Nt){var It,Jt=(Nt=Nt==null?Ur:Do.defaults(Ur.Object(),Nt,Do.pick(Ur,Rl))).Array,Fe=Nt.Date,$e=Nt.Error,jr=Nt.Function,O=Nt.Math,w=Nt.Object,P=Nt.RegExp,z=Nt.String,q=Nt.TypeError,ht=Jt.prototype,jt=jr.prototype,Ft=w.prototype,ie=Nt["__core-js_shared__"],Ke=jt.toString,Qt=Ft.hasOwnProperty,_r=0,Ue=(It=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||""))?"Symbol(src)_1."+It:"",lr=Ft.toString,so=Ke.call(w),Mr=Ur._,Ln=P("^"+Ke.call(Qt).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$o=Xu?Nt.Buffer:v,Jo=Nt.Symbol,ya=Nt.Uint8Array,Qu=$o?$o.allocUnsafe:v,di=Ju(w.getPrototypeOf,w),Ja=w.create,jn=Ft.propertyIsEnumerable,ga=ht.splice,Xi=Jo?Jo.isConcatSpreadable:v,yi=Jo?Jo.iterator:v,gi=Jo?Jo.toStringTag:v,tc=function(){try{var l=$i(w,"defineProperty");return l({},"",{}),l}catch(d){}}(),og=Nt.clearTimeout!==Ur.clearTimeout&&Nt.clearTimeout,ig=Fe&&Fe.now!==Ur.Date.now&&Fe.now,oh=Nt.setTimeout!==Ur.setTimeout&&Nt.setTimeout,cs=O.ceil,Qa=O.floor,Ll=w.getOwnPropertySymbols,ag=$o?$o.isBuffer:v,ih=Nt.isFinite,ug=ht.join,ah=Ju(w.keys,w),pn=O.max,Sn=O.min,ss=Fe.now,ls=Nt.parseInt,fs=O.random,cg=ht.reverse,tu=$i(Nt,"DataView"),Qo=$i(Nt,"Map"),zl=$i(Nt,"Promise"),va=$i(Nt,"Set"),eu=$i(Nt,"WeakMap"),ec=$i(w,"create"),ps=eu&&new eu,ru={},sg=Kn(tu),uh=Kn(Qo),lg=Kn(zl),fg=Kn(va),ch=Kn(eu),hs=Jo?Jo.prototype:v,hn=hs?hs.valueOf:v,sh=hs?hs.toString:v;function B(l){if(Fr(l)&&!Xe(l)&&!(l instanceof ar)){if(l instanceof _o)return l;if(Qt.call(l,"__wrapped__"))return Hh(l)}return new _o(l)}var nu=function(){function l(){}return function(d){if(!Br(d))return{};if(Ja)return Ja(d);l.prototype=d;var _=new l;return l.prototype=v,_}}();function rc(){}function _o(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=v}function ar(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=st,this.__views__=[]}function ma(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var S=l[d];this.set(S[0],S[1])}}function Or(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var S=l[d];this.set(S[0],S[1])}}function ti(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var S=l[d];this.set(S[0],S[1])}}function Gi(l){var d=-1,_=l==null?0:l.length;for(this.__data__=new ti;++d<_;)this.add(l[d])}function Oo(l){var d=this.__data__=new Or(l);this.size=d.size}function Bl(l,d){var _=Xe(l),S=!_&&Ea(l),N=!_&&!S&&wi(l),H=!_&&!S&&!N&&Ji(l),rt=_||S||N||H,lt=rt?da(l.length,z):[],Ot=lt.length;for(var $ in l)!d&&!Qt.call(l,$)||rt&&($=="length"||N&&($=="offset"||$=="parent")||H&&($=="buffer"||$=="byteLength"||$=="byteOffset")||ii($,Ot))||lt.push($);return lt}function Fl(l){var d=l.length;return d?l[Kl(0,d-1)]:v}function lh(l,d){return _a(Vn(l),Wi(d,0,l.length))}function fh(l){return _a(Vn(l))}function ds(l,d,_){(_!==v&&!Rr(l[d],_)||_===v&&!(d in l))&&ei(l,d,_)}function ou(l,d,_){var S=l[d];Qt.call(l,d)&&Rr(S,_)&&(_!==v||d in l)||ei(l,d,_)}function nc(l,d){for(var _=l.length;_--;)if(Rr(l[_][0],d))return _;return-1}function ph(l,d,_,S){return Dr(l,function(N,H,rt){d(S,N,_(N),rt)}),S}function Ul(l,d){return l&&ri(d,un(d),l)}function ei(l,d,_){d=="__proto__"&&tc?tc(l,d,{configurable:!0,enumerable:!0,value:_,writable:!0}):l[d]=_}function ys(l,d){for(var _=-1,S=d.length,N=Jt(S),H=l==null;++_<S;)N[_]=H?v:gc(l,d[_]);return N}function Wi(l,d,_){return l==l&&(_!==v&&(l=l<=_?l:_),d!==v&&(l=l>=d?l:d)),l}function lo(l,d,_,S,N,H){var rt,lt=1&d,Ot=2&d,$=4&d;if(_&&(rt=N?_(l,S,N,H):_(l)),rt!==v)return rt;if(!Br(l))return l;var Ct=Xe(l);if(Ct){if(rt=function(zt){var Xt=zt.length,De=new zt.constructor(Xt);return Xt&&typeof zt[0]=="string"&&Qt.call(zt,"index")&&(De.index=zt.index,De.input=zt.input),De}(l),!lt)return Vn(l,rt)}else{var Ht=_n(l),le=Ht==W||Ht==Z;if(wi(l))return ef(l,lt);if(Ht==bt||Ht==tt||le&&!N){if(rt=Ot||le?{}:sf(l),!lt)return Ot?function(zt,Xt){return ri(zt,Mt(zt),Xt)}(l,function(zt,Xt){return zt&&ri(Xt,mn(Xt),zt)}(rt,l)):function(zt,Xt){return ri(zt,uf(zt),Xt)}(l,Ul(rt,l))}else{if(!pr[Ht])return N?l:{};rt=function(zt,Xt,De){var ue=zt.constructor;switch(Xt){case Ut:return rf(zt);case K:case U:return new ue(+zt);case re:return function(Le,Qe){var ve=Qe?rf(Le.buffer):Le.buffer;return new Le.constructor(ve,Le.byteOffset,Le.byteLength)}(zt,De);case xe:case Wt:case Zt:case be:case ft:case ct:case yt:case Dt:case Yt:return Ar(zt,De);case ut:return new ue;case Et:case gt:return new ue(zt);case Bt:return function(Le){var Qe=new Le.constructor(Le.source,Ge.exec(Le));return Qe.lastIndex=Le.lastIndex,Qe}(zt);case St:return new ue;case At:return Ne=zt,hn?w(hn.call(Ne)):{}}var Ne}(l,Ht,lt)}}H||(H=new Oo);var ye=H.get(l);if(ye)return ye;H.set(l,rt),vu(l)?l.forEach(function(zt){rt.add(lo(zt,d,_,zt,l,H))}):td(l)&&l.forEach(function(zt,Xt){rt.set(Xt,lo(zt,d,_,Xt,l,H))});var Pe=Ct?v:($?Ot?af:cc:Ot?mn:un)(l);return Dn(Pe||l,function(zt,Xt){Pe&&(zt=l[Xt=zt]),ou(rt,Xt,lo(zt,d,_,Xt,l,H))}),rt}function Hl(l,d,_){var S=_.length;if(l==null)return!S;for(l=w(l);S--;){var N=_[S],H=d[N],rt=l[N];if(rt===v&&!(N in l)||!H(rt))return!1}return!0}function Yl(l,d,_){if(typeof l!="function")throw new q(E);return du(function(){l.apply(v,_)},d)}function vi(l,d,_,S){var N=-1,H=Nn,rt=!0,lt=l.length,Ot=[],$=d.length;if(!lt)return Ot;_&&(d=cr(d,Lr(_))),S?(H=Vu,rt=!1):d.length>=200&&(H=Zo,rt=!1,d=new Gi(d));t:for(;++N<lt;){var Ct=l[N],Ht=_==null?Ct:_(Ct);if(Ct=S||Ct!==0?Ct:0,rt&&Ht==Ht){for(var le=$;le--;)if(d[le]===Ht)continue t;Ot.push(Ct)}else H(d,Ht,S)||Ot.push(Ct)}return Ot}B.templateSettings={escape:pt,evaluate:ae,interpolate:ze,variable:"",imports:{_:B}},B.prototype=rc.prototype,B.prototype.constructor=B,_o.prototype=nu(rc.prototype),_o.prototype.constructor=_o,ar.prototype=nu(rc.prototype),ar.prototype.constructor=ar,ma.prototype.clear=function(){this.__data__=ec?ec(null):{},this.size=0},ma.prototype.delete=function(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d},ma.prototype.get=function(l){var d=this.__data__;if(ec){var _=d[l];return _===A?v:_}return Qt.call(d,l)?d[l]:v},ma.prototype.has=function(l){var d=this.__data__;return ec?d[l]!==v:Qt.call(d,l)},ma.prototype.set=function(l,d){var _=this.__data__;return this.size+=this.has(l)?0:1,_[l]=ec&&d===v?A:d,this},Or.prototype.clear=function(){this.__data__=[],this.size=0},Or.prototype.delete=function(l){var d=this.__data__,_=nc(d,l);return!(_<0)&&(_==d.length-1?d.pop():ga.call(d,_,1),--this.size,!0)},Or.prototype.get=function(l){var d=this.__data__,_=nc(d,l);return _<0?v:d[_][1]},Or.prototype.has=function(l){return nc(this.__data__,l)>-1},Or.prototype.set=function(l,d){var _=this.__data__,S=nc(_,l);return S<0?(++this.size,_.push([l,d])):_[S][1]=d,this},ti.prototype.clear=function(){this.size=0,this.__data__={hash:new ma,map:new(Qo||Or),string:new ma}},ti.prototype.delete=function(l){var d=pu(this,l).delete(l);return this.size-=d?1:0,d},ti.prototype.get=function(l){return pu(this,l).get(l)},ti.prototype.has=function(l){return pu(this,l).has(l)},ti.prototype.set=function(l,d){var _=pu(this,l),S=_.size;return _.set(l,d),this.size+=_.size==S?0:1,this},Gi.prototype.add=Gi.prototype.push=function(l){return this.__data__.set(l,A),this},Gi.prototype.has=function(l){return this.__data__.has(l)},Oo.prototype.clear=function(){this.__data__=new Or,this.size=0},Oo.prototype.delete=function(l){var d=this.__data__,_=d.delete(l);return this.size=d.size,_},Oo.prototype.get=function(l){return this.__data__.get(l)},Oo.prototype.has=function(l){return this.__data__.has(l)},Oo.prototype.set=function(l,d){var _=this.__data__;if(_ instanceof Or){var S=_.__data__;if(!Qo||S.length<199)return S.push([l,d]),this.size=++_.size,this;_=this.__data__=new ti(S)}return _.set(l,d),this.size=_.size,this};var Dr=kh(he),hh=kh(Sr,!0);function dh(l,d){var _=!0;return Dr(l,function(S,N,H){return _=!!d(S,N,H)}),_}function Wr(l,d,_){for(var S=-1,N=l.length;++S<N;){var H=l[S],rt=d(H);if(rt!=null&&(lt===v?rt==rt&&!On(rt):_(rt,lt)))var lt=rt,Ot=H}return Ot}function dr(l,d){var _=[];return Dr(l,function(S,N,H){d(S,N,H)&&_.push(S)}),_}function vn(l,d,_,S,N){var H=-1,rt=l.length;for(_||(_=zh),N||(N=[]);++H<rt;){var lt=l[H];d>0&&_(lt)?d>1?vn(lt,d-1,_,S,N):nn(N,lt):S||(N[N.length]=lt)}return N}var qe=Th(),Jr=Th(!0);function he(l,d){return l&&qe(l,d,un)}function Sr(l,d){return l&&Jr(l,d,un)}function gs(l,d){return xn(d,function(_){return xi(l[_])})}function mi(l,d){for(var _=0,S=(d=Ki(d,l)).length;l!=null&&_<S;)l=l[on(d[_++])];return _&&_==S?l:v}function Xl(l,d,_){var S=d(l);return Xe(l)?S:nn(S,_(l))}function zr(l){return l==null?l===v?"[object Undefined]":"[object Null]":gi&&gi in w(l)?function(d){var _=Qt.call(d,gi),S=d[gi];try{d[gi]=v;var N=!0}catch(rt){}var H=lr.call(d);return N&&(_?d[gi]=S:delete d[gi]),H}(l):function(d){return lr.call(d)}(l)}function Hr(l,d){return l>d}function yh(l,d){return l!=null&&Qt.call(l,d)}function gh(l,d){return l!=null&&d in w(l)}function vs(l,d,_){for(var S=_?Vu:Nn,N=l[0].length,H=l.length,rt=H,lt=Jt(H),Ot=1/0,$=[];rt--;){var Ct=l[rt];rt&&d&&(Ct=cr(Ct,Lr(d))),Ot=Sn(Ct.length,Ot),lt[rt]=!_&&(d||N>=120&&Ct.length>=120)?new Gi(rt&&Ct):v}Ct=l[0];var Ht=-1,le=lt[0];t:for(;++Ht<N&&$.length<Ot;){var ye=Ct[Ht],Pe=d?d(ye):ye;if(ye=_||ye!==0?ye:0,!(le?Zo(le,Pe):S($,Pe,_))){for(rt=H;--rt;){var zt=lt[rt];if(!(zt?Zo(zt,Pe):S(l[rt],Pe,_)))continue t}le&&le.push(Pe),$.push(ye)}}return $}function iu(l,d,_){var S=(l=hf(l,d=Ki(d,l)))==null?l:l[on(Pr(d))];return S==null?v:xr(S,l,_)}function Gl(l){return Fr(l)&&zr(l)==tt}function au(l,d,_,S,N){return l===d||(l==null||d==null||!Fr(l)&&!Fr(d)?l!=l&&d!=d:function(H,rt,lt,Ot,$,Ct){var Ht=Xe(H),le=Xe(rt),ye=Ht?et:_n(H),Pe=le?et:_n(rt),zt=(ye=ye==tt?bt:ye)==bt,Xt=(Pe=Pe==tt?bt:Pe)==bt,De=ye==Pe;if(De&&wi(H)){if(!wi(rt))return!1;Ht=!0,zt=!1}if(De&&!zt)return Ct||(Ct=new Oo),Ht||Ji(H)?Lh(H,rt,lt,Ot,$,Ct):function(ve,Te,cn,wn,Ro,dn,ui){switch(cn){case re:if(ve.byteLength!=Te.byteLength||ve.byteOffset!=Te.byteOffset)return!1;ve=ve.buffer,Te=Te.buffer;case Ut:return!(ve.byteLength!=Te.byteLength||!dn(new ya(ve),new ya(Te)));case K:case U:case Et:return Rr(+ve,+Te);case X:return ve.name==Te.name&&ve.message==Te.message;case Bt:case gt:return ve==Te+"";case ut:var Io=En;case St:var Si=1&wn;if(Io||(Io=hi),ve.size!=Te.size&&!Si)return!1;var Ai=ui.get(ve);if(Ai)return Ai==Te;wn|=2,ui.set(ve,Te);var Aa=Lh(Io(ve),Io(Te),wn,Ro,dn,ui);return ui.delete(ve),Aa;case At:if(hn)return hn.call(ve)==hn.call(Te)}return!1}(H,rt,ye,lt,Ot,$,Ct);if(!(1<)){var ue=zt&&Qt.call(H,"__wrapped__"),Ne=Xt&&Qt.call(rt,"__wrapped__");if(ue||Ne){var Le=ue?H.value():H,Qe=Ne?rt.value():rt;return Ct||(Ct=new Oo),$(Le,Qe,lt,Ot,Ct)}}return De?(Ct||(Ct=new Oo),function(ve,Te,cn,wn,Ro,dn){var ui=1&cn,Io=cc(ve),Si=Io.length,Ai=cc(Te).length;if(Si!=Ai&&!ui)return!1;for(var Aa=Si;Aa--;){var Pi=Io[Aa];if(!(ui?Pi in Te:Qt.call(Te,Pi)))return!1}var xc=dn.get(ve),po=dn.get(Te);if(xc&&po)return xc==Te&&po==ve;var Zs=!0;dn.set(ve,Te),dn.set(Te,ve);for(var ho=ui;++Aa<Si;){var me=ve[Pi=Io[Aa]],Ec=Te[Pi];if(wn)var op=ui?wn(Ec,me,Pi,Te,ve,dn):wn(me,Ec,Pi,ve,Te,dn);if(!(op===v?me===Ec||Ro(me,Ec,cn,wn,dn):op)){Zs=!1;break}ho||(ho=Pi=="constructor")}if(Zs&&!ho){var jc=ve.constructor,$s=Te.constructor;jc==$s||!("constructor"in ve)||!("constructor"in Te)||typeof jc=="function"&&jc instanceof jc&&typeof $s=="function"&&$s instanceof $s||(Zs=!1)}return dn.delete(ve),dn.delete(Te),Zs}(H,rt,lt,Ot,$,Ct)):!1}(l,d,_,S,au,N))}function ms(l,d,_,S){var N=_.length,H=N,rt=!S;if(l==null)return!H;for(l=w(l);N--;){var lt=_[N];if(rt&<[2]?lt[1]!==l[lt[0]]:!(lt[0]in l))return!1}for(;++N<H;){var Ot=(lt=_[N])[0],$=l[Ot],Ct=lt[1];if(rt&<[2]){if($===v&&!(Ot in l))return!1}else{var Ht=new Oo;if(S)var le=S($,Ct,Ot,l,d,Ht);if(!(le===v?au(Ct,$,3,S,Ht):le))return!1}}return!0}function uu(l){return!(!Br(l)||(d=l,Ue&&Ue in d))&&(xi(l)?Ln:Gr).test(Kn(l));var d}function Wl(l){return typeof l=="function"?l:l==null?Pn:typeof l=="object"?Xe(l)?mh(l[0],l[1]):vh(l):ep(l)}function bi(l){if(!hu(l))return ah(l);var d=[];for(var _ in w(l))Qt.call(l,_)&&_!="constructor"&&d.push(_);return d}function pg(l){if(!Br(l))return function(N){var H=[];if(N!=null)for(var rt in w(N))H.push(rt);return H}(l);var d=hu(l),_=[];for(var S in l)(S!="constructor"||!d&&Qt.call(l,S))&&_.push(S);return _}function _i(l,d){return l<d}function wo(l,d){var _=-1,S=zn(l)?Jt(l.length):[];return Dr(l,function(N,H,rt){S[++_]=d(N,H,rt)}),S}function vh(l){var d=Ms(l);return d.length==1&&d[0][2]?ff(d[0][0],d[0][1]):function(_){return _===l||ms(_,l,d)}}function mh(l,d){return Ds(l)&&lf(d)?ff(on(l),d):function(_){var S=gc(_,l);return S===v&&S===d?vc(_,l):au(d,S,3)}}function bs(l,d,_,S,N){l!==d&&qe(d,function(H,rt){if(N||(N=new Oo),Br(H))(function(Ot,$,Ct,Ht,le,ye,Pe){var zt=Cs(Ot,Ct),Xt=Cs($,Ct),De=Pe.get(Xt);if(De)return void ds(Ot,Ct,De);var ue=ye?ye(zt,Xt,Ct+"",Ot,$,Pe):v,Ne=ue===v;if(Ne){var Le=Xe(Xt),Qe=!Le&&wi(Xt),ve=!Le&&!Qe&&Ji(Xt);ue=Xt,Le||Qe||ve?Xe(zt)?ue=zt:Vr(zt)?ue=Vn(zt):Qe?(Ne=!1,ue=ef(Xt,!0)):ve?(Ne=!1,ue=Ar(Xt,!0)):ue=[]:Ei(Xt)||Ea(Xt)?(ue=zt,Ea(zt)?ue=Lf(zt):Br(zt)&&!xi(zt)||(ue=sf(Xt))):Ne=!1}Ne&&(Pe.set(Xt,ue),le(ue,Xt,Ht,ye,Pe),Pe.delete(Xt)),ds(Ot,Ct,ue)})(l,d,rt,_,bs,S,N);else{var lt=S?S(Cs(l,rt),H,rt+"",l,d,N):v;lt===v&&(lt=H),ds(l,rt,lt)}},mn)}function bh(l,d){var _=l.length;if(_)return ii(d+=d<0?_:0,_)?l[d]:v}function _h(l,d,_){d=d.length?cr(d,function(H){return Xe(H)?function(rt){return mi(rt,H.length===1?H[0]:H)}:H}):[Pn];var S=-1;d=cr(d,Lr(Ee()));var N=wo(l,function(H,rt,lt){var Ot=cr(d,function($){return $(H)});return{criteria:Ot,index:++S,value:H}});return function(H,rt){var lt=H.length;for(H.sort(rt);lt--;)H[lt]=H[lt].value;return H}(N,function(H,rt){return function(lt,Ot,$){for(var Ct=-1,Ht=lt.criteria,le=Ot.criteria,ye=Ht.length,Pe=$.length;++Ct<ye;){var zt=Ph(Ht[Ct],le[Ct]);if(zt)return Ct>=Pe?zt:zt*($[Ct]=="desc"?-1:1)}return lt.index-Ot.index}(H,rt,_)})}function Oh(l,d,_){for(var S=-1,N=d.length,H={};++S<N;){var rt=d[S],lt=mi(l,rt);_(lt,rt)&&su(H,Ki(rt,l),lt)}return H}function Vl(l,d,_,S){var N=S?Cn:Hi,H=-1,rt=d.length,lt=l;for(l===d&&(d=Vn(d)),_&&(lt=cr(l,Lr(_)));++H<rt;)for(var Ot=0,$=d[H],Ct=_?_($):$;(Ot=N(lt,Ct,Ot,S))>-1;)lt!==l&&ga.call(lt,Ot,1),ga.call(l,Ot,1);return l}function cu(l,d){for(var _=l?d.length:0,S=_-1;_--;){var N=d[_];if(_==S||N!==H){var H=N;ii(N)?ga.call(l,N,1):ws(l,N)}}return l}function Kl(l,d){return l+Qa(fs()*(d-l+1))}function _s(l,d){var _="";if(!l||d<1||d>V)return _;do d%2&&(_+=l),(d=Qa(d/2))&&(l+=l);while(d);return _}function Ze(l,d){return Rs(pf(l,d,Pn),l+"")}function hg(l){return Fl(ta(l))}function ql(l,d){var _=ta(l);return _a(_,Wi(d,0,_.length))}function su(l,d,_,S){if(!Br(l))return l;for(var N=-1,H=(d=Ki(d,l)).length,rt=H-1,lt=l;lt!=null&&++N<H;){var Ot=on(d[N]),$=_;if(Ot==="__proto__"||Ot==="constructor"||Ot==="prototype")return l;if(N!=rt){var Ct=lt[Ot];($=S?S(Ct,Ot,lt):v)===v&&($=Br(Ct)?Ct:ii(d[N+1])?[]:{})}ou(lt,Ot,$),lt=lt[Ot]}return l}var wh=ps?function(l,d){return ps.set(l,d),l}:Pn,dg=tc?function(l,d){return tc(l,"toString",{configurable:!0,enumerable:!1,value:Ws(d),writable:!0})}:Pn;function yg(l){return _a(ta(l))}function xo(l,d,_){var S=-1,N=l.length;d<0&&(d=-d>N?0:N+d),(_=_>N?N:_)<0&&(_+=N),N=d>_?0:_-d>>>0,d>>>=0;for(var H=Jt(N);++S<N;)H[S]=l[S+d];return H}function Zl(l,d){var _;return Dr(l,function(S,N,H){return!(_=d(S,N,H))}),!!_}function Os(l,d,_){var S=0,N=l==null?S:l.length;if(typeof d=="number"&&d==d&&N<=2147483647){for(;S<N;){var H=S+N>>>1,rt=l[H];rt!==null&&!On(rt)&&(_?rt<=d:rt<d)?S=H+1:N=H}return N}return $l(l,d,Pn,_)}function $l(l,d,_,S){var N=0,H=l==null?0:l.length;if(H===0)return 0;for(var rt=(d=_(d))!=d,lt=d===null,Ot=On(d),$=d===v;N<H;){var Ct=Qa((N+H)/2),Ht=_(l[Ct]),le=Ht!==v,ye=Ht===null,Pe=Ht==Ht,zt=On(Ht);if(rt)var Xt=S||Pe;else Xt=$?Pe&&(S||le):lt?Pe&&le&&(S||!ye):Ot?Pe&&le&&!ye&&(S||!zt):!ye&&!zt&&(S?Ht<=d:Ht<d);Xt?N=Ct+1:H=Ct}return Sn(H,4294967294)}function xh(l,d){for(var _=-1,S=l.length,N=0,H=[];++_<S;){var rt=l[_],lt=d?d(rt):rt;if(!_||!Rr(lt,Ot)){var Ot=lt;H[N++]=rt===0?0:rt}}return H}function Jl(l){return typeof l=="number"?l:On(l)?nt:+l}function Wn(l){if(typeof l=="string")return l;if(Xe(l))return cr(l,Wn)+"";if(On(l))return sh?sh.call(l):"";var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function Vi(l,d,_){var S=-1,N=Nn,H=l.length,rt=!0,lt=[],Ot=lt;if(_)rt=!1,N=Vu;else if(H>=200){var $=d?null:of(l);if($)return hi($);rt=!1,N=Zo,Ot=new Gi}else Ot=d?[]:lt;t:for(;++S<H;){var Ct=l[S],Ht=d?d(Ct):Ct;if(Ct=_||Ct!==0?Ct:0,rt&&Ht==Ht){for(var le=Ot.length;le--;)if(Ot[le]===Ht)continue t;d&&Ot.push(Ht),lt.push(Ct)}else N(Ot,Ht,_)||(Ot!==lt&&Ot.push(Ht),lt.push(Ct))}return lt}function ws(l,d){return(l=hf(l,d=Ki(d,l)))==null||delete l[on(Pr(d))]}function Eh(l,d,_,S){return su(l,d,_(mi(l,d)),S)}function oc(l,d,_,S){for(var N=l.length,H=S?N:-1;(S?H--:++H<N)&&d(l[H],H,l););return _?xo(l,S?0:H,S?H+1:N):xo(l,S?H+1:0,S?N:H)}function jh(l,d){var _=l;return _ instanceof ar&&(_=_.value()),Va(d,function(S,N){return N.func.apply(N.thisArg,nn([S],N.args))},_)}function xs(l,d,_){var S=l.length;if(S<2)return S?Vi(l[0]):[];for(var N=-1,H=Jt(S);++N<S;)for(var rt=l[N],lt=-1;++lt<S;)lt!=N&&(H[N]=vi(H[N]||rt,l[lt],d,_));return Vi(vn(H,1),d,_)}function Sh(l,d,_){for(var S=-1,N=l.length,H=d.length,rt={};++S<N;){var lt=S<H?d[S]:v;_(rt,l[S],lt)}return rt}function Es(l){return Vr(l)?l:[]}function Ql(l){return typeof l=="function"?l:Pn}function Ki(l,d){return Xe(l)?l:Ds(l,d)?[l]:Uh(yr(l))}var Ah=Ze;function qi(l,d,_){var S=l.length;return _=_===v?S:_,!d&&_>=S?l:xo(l,d,_)}var tf=og||function(l){return Ur.clearTimeout(l)};function ef(l,d){if(d)return l.slice();var _=l.length,S=Qu?Qu(_):new l.constructor(_);return l.copy(S),S}function rf(l){var d=new l.constructor(l.byteLength);return new ya(d).set(new ya(l)),d}function Ar(l,d){var _=d?rf(l.buffer):l.buffer;return new l.constructor(_,l.byteOffset,l.length)}function Ph(l,d){if(l!==d){var _=l!==v,S=l===null,N=l==l,H=On(l),rt=d!==v,lt=d===null,Ot=d==d,$=On(d);if(!lt&&!$&&!H&&l>d||H&&rt&&Ot&&!lt&&!$||S&&rt&&Ot||!_&&Ot||!N)return 1;if(!S&&!H&&!$&&l<d||$&&_&&N&&!S&&!H||lt&&_&&N||!rt&&N||!Ot)return-1}return 0}function Nr(l,d,_,S){for(var N=-1,H=l.length,rt=_.length,lt=-1,Ot=d.length,$=pn(H-rt,0),Ct=Jt(Ot+$),Ht=!S;++lt<Ot;)Ct[lt]=d[lt];for(;++N<rt;)(Ht||N<H)&&(Ct[_[N]]=l[N]);for(;$--;)Ct[lt++]=l[N++];return Ct}function js(l,d,_,S){for(var N=-1,H=l.length,rt=-1,lt=_.length,Ot=-1,$=d.length,Ct=pn(H-lt,0),Ht=Jt(Ct+$),le=!S;++N<Ct;)Ht[N]=l[N];for(var ye=N;++Ot<$;)Ht[ye+Ot]=d[Ot];for(;++rt<lt;)(le||N<H)&&(Ht[ye+_[rt]]=l[N++]);return Ht}function Vn(l,d){var _=-1,S=l.length;for(d||(d=Jt(S));++_<S;)d[_]=l[_];return d}function ri(l,d,_,S){var N=!_;_||(_={});for(var H=-1,rt=d.length;++H<rt;){var lt=d[H],Ot=S?S(_[lt],l[lt],lt,_,l):v;Ot===v&&(Ot=l[lt]),N?ei(_,lt,Ot):ou(_,lt,Ot)}return _}function Ss(l,d){return function(_,S){var N=Xe(_)?os:ph,H=d?d():{};return N(_,l,Ee(S,2),H)}}function ba(l){return Ze(function(d,_){var S=-1,N=_.length,H=N>1?_[N-1]:v,rt=N>2?_[2]:v;for(H=l.length>3&&typeof H=="function"?(N--,H):v,rt&&An(_[0],_[1],rt)&&(H=N<3?v:H,N=1),d=w(d);++S<N;){var lt=_[S];lt&&l(d,lt,S,H)}return d})}function kh(l,d){return function(_,S){if(_==null)return _;if(!zn(_))return l(_,S);for(var N=_.length,H=d?N:-1,rt=w(_);(d?H--:++H<N)&&S(rt[H],H,rt)!==!1;);return _}}function Th(l){return function(d,_,S){for(var N=-1,H=w(d),rt=S(d),lt=rt.length;lt--;){var Ot=rt[l?lt:++N];if(_(H[Ot],Ot,H)===!1)break}return d}}function Mh(l){return function(d){var _=To(d=yr(d))?Gn(d):v,S=_?_[0]:d.charAt(0),N=_?qi(_,1).join(""):d.slice(1);return S[l]()+N}}function Zi(l){return function(d){return Va(Co(Xs(d).replace(Qc,"")),l,"")}}function ic(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var _=nu(l.prototype),S=l.apply(_,d);return Br(S)?S:_}}function Dh(l){return function(d,_,S){var N=w(d);if(!zn(d)){var H=Ee(_,3);d=un(d),_=function(lt){return H(N[lt],lt,N)}}var rt=l(d,_,S);return rt>-1?N[H?d[rt]:rt]:v}}function Nh(l){return Cr(function(d){var _=d.length,S=_,N=_o.prototype.thru;for(l&&d.reverse();S--;){var H=d[S];if(typeof H!="function")throw new q(E);if(N&&!rt&&No(H)=="wrapper")var rt=new _o([],!0)}for(S=rt?S:_;++S<_;){var lt=No(H=d[S]),Ot=lt=="wrapper"?sc(H):v;rt=Ot&&Ns(Ot[0])&&Ot[1]==424&&!Ot[4].length&&Ot[9]==1?rt[No(Ot[0])].apply(rt,Ot[3]):H.length==1&&Ns(H)?rt[lt]():rt.thru(H)}return function(){var $=arguments,Ct=$[0];if(rt&&$.length==1&&Xe(Ct))return rt.plant(Ct).value();for(var Ht=0,le=_?d[Ht].apply(this,$):Ct;++Ht<_;)le=d[Ht].call(this,le);return le}})}function ac(l,d,_,S,N,H,rt,lt,Ot,$){var Ct=d&C,Ht=1&d,le=2&d,ye=24&d,Pe=512&d,zt=le?v:ic(l);return function Xt(){for(var De=arguments.length,ue=Jt(De),Ne=De;Ne--;)ue[Ne]=arguments[Ne];if(ye)var Le=fu(Xt),Qe=Il(ue,Le);if(S&&(ue=Nr(ue,S,N,ye)),H&&(ue=js(ue,H,rt,ye)),De-=Qe,ye&&De<$){var ve=Xn(ue,Le);return Ps(l,d,ac,Xt.placeholder,_,ue,ve,lt,Ot,$-De)}var Te=Ht?_:this,cn=le?Te[l]:l;return De=ue.length,lt?ue=Fh(ue,lt):Pe&&De>1&&ue.reverse(),Ct&&Ot<De&&(ue.length=Ot),this&&this!==Ur&&this instanceof Xt&&(cn=zt||ic(cn)),cn.apply(Te,ue)}}function Ch(l,d){return function(_,S){return function(N,H,rt,lt){return he(N,function(Ot,$,Ct){H(lt,rt(Ot),$,Ct)}),lt}(_,l,d(S),{})}}function uc(l,d){return function(_,S){var N;if(_===v&&S===v)return d;if(_!==v&&(N=_),S!==v){if(N===v)return S;typeof _=="string"||typeof S=="string"?(_=Wn(_),S=Wn(S)):(_=Jl(_),S=Jl(S)),N=l(_,S)}return N}}function nf(l){return Cr(function(d){return d=cr(d,Lr(Ee())),Ze(function(_){var S=this;return l(d,function(N){return xr(N,S,_)})})})}function As(l,d){var _=(d=d===v?" ":Wn(d)).length;if(_<2)return _?_s(d,l):d;var S=_s(d,cs(l/Mo(d)));return To(d)?qi(Gn(S),0,l).join(""):S.slice(0,l)}function ni(l){return function(d,_,S){return S&&typeof S!="number"&&An(d,_,S)&&(_=S=v),d=ai(d),_===v?(_=d,d=0):_=ai(_),function(N,H,rt,lt){for(var Ot=-1,$=pn(cs((H-N)/(rt||1)),0),Ct=Jt($);$--;)Ct[lt?$:++Ot]=N,N+=rt;return Ct}(d,_,S=S===v?d<_?1:-1:ai(S),l)}}function lu(l){return function(d,_){return typeof d=="string"&&typeof _=="string"||(d=Bn(d),_=Bn(_)),l(d,_)}}function Ps(l,d,_,S,N,H,rt,lt,Ot,$){var Ct=8&d;d|=Ct?M:I,4&(d&=~(Ct?I:M))||(d&=-4);var Ht=[l,d,N,Ct?H:v,Ct?rt:v,Ct?v:H,Ct?v:rt,lt,Ot,$],le=_.apply(v,Ht);return Ns(l)&&df(le,Ht),le.placeholder=S,yf(le,l,d)}function ks(l){var d=O[l];return function(_,S){if(_=Bn(_),(S=S==null?0:Sn(We(S),292))&&ih(_)){var N=(yr(_)+"e").split("e");return+((N=(yr(d(N[0]+"e"+(+N[1]+S)))+"e").split("e"))[0]+"e"+(+N[1]-S))}return d(_)}}var of=va&&1/hi(new va([,-0]))[1]==G?function(l){return new va(l)}:Vs;function Ts(l){return function(d){var _=_n(d);return _==ut?En(d):_==St?$a(d):function(S,N){return cr(N,function(H){return[H,S[H]]})}(d,l(d))}}function oi(l,d,_,S,N,H,rt,lt){var Ot=2&d;if(!Ot&&typeof l!="function")throw new q(E);var $=S?S.length:0;if($||(d&=-97,S=N=v),rt=rt===v?rt:pn(We(rt),0),lt=lt===v?lt:We(lt),$-=N?N.length:0,d&I){var Ct=S,Ht=N;S=N=v}var le=Ot?v:sc(l),ye=[l,d,_,S,N,Ct,Ht,H,rt,lt];if(le&&function(zt,Xt){var De=zt[1],ue=Xt[1],Ne=De|ue,Le=Ne<131,Qe=ue==C&&De==8||ue==C&&De==L&&zt[7].length<=Xt[8]||ue==384&&Xt[7].length<=Xt[8]&&De==8;if(!Le&&!Qe)return zt;1&ue&&(zt[2]=Xt[2],Ne|=1&De?0:4);var ve=Xt[3];if(ve){var Te=zt[3];zt[3]=Te?Nr(Te,ve,Xt[4]):ve,zt[4]=Te?Xn(zt[3],k):Xt[4]}(ve=Xt[5])&&(Te=zt[5],zt[5]=Te?js(Te,ve,Xt[6]):ve,zt[6]=Te?Xn(zt[5],k):Xt[6]),(ve=Xt[7])&&(zt[7]=ve),ue&C&&(zt[8]=zt[8]==null?Xt[8]:Sn(zt[8],Xt[8])),zt[9]==null&&(zt[9]=Xt[9]),zt[0]=Xt[0],zt[1]=Ne}(ye,le),l=ye[0],d=ye[1],_=ye[2],S=ye[3],N=ye[4],!(lt=ye[9]=ye[9]===v?Ot?0:l.length:pn(ye[9]-$,0))&&24&d&&(d&=-25),d&&d!=1)Pe=d==8||d==T?function(zt,Xt,De){var ue=ic(zt);return function Ne(){for(var Le=arguments.length,Qe=Jt(Le),ve=Le,Te=fu(Ne);ve--;)Qe[ve]=arguments[ve];var cn=Le<3&&Qe[0]!==Te&&Qe[Le-1]!==Te?[]:Xn(Qe,Te);return(Le-=cn.length)<De?Ps(zt,Xt,ac,Ne.placeholder,v,Qe,cn,v,v,De-Le):xr(this&&this!==Ur&&this instanceof Ne?ue:zt,this,Qe)}}(l,d,lt):d!=M&&d!=33||N.length?ac.apply(v,ye):function(zt,Xt,De,ue){var Ne=1&Xt,Le=ic(zt);return function Qe(){for(var ve=-1,Te=arguments.length,cn=-1,wn=ue.length,Ro=Jt(wn+Te),dn=this&&this!==Ur&&this instanceof Qe?Le:zt;++cn<wn;)Ro[cn]=ue[cn];for(;Te--;)Ro[cn++]=arguments[++ve];return xr(dn,Ne?De:this,Ro)}}(l,d,_,S);else var Pe=function(zt,Xt,De){var ue=1&Xt,Ne=ic(zt);return function Le(){return(this&&this!==Ur&&this instanceof Le?Ne:zt).apply(ue?De:this,arguments)}}(l,d,_);return yf((le?wh:df)(Pe,ye),l,d)}function Rh(l,d,_,S){return l===v||Rr(l,Ft[_])&&!Qt.call(S,_)?d:l}function Ih(l,d,_,S,N,H){return Br(l)&&Br(d)&&(H.set(d,l),bs(l,d,v,Ih,H),H.delete(d)),l}function gg(l){return Ei(l)?v:l}function Lh(l,d,_,S,N,H){var rt=1&_,lt=l.length,Ot=d.length;if(lt!=Ot&&!(rt&&Ot>lt))return!1;var $=H.get(l),Ct=H.get(d);if($&&Ct)return $==d&&Ct==l;var Ht=-1,le=!0,ye=2&_?new Gi:v;for(H.set(l,d),H.set(d,l);++Ht<lt;){var Pe=l[Ht],zt=d[Ht];if(S)var Xt=rt?S(zt,Pe,Ht,d,l,H):S(Pe,zt,Ht,l,d,H);if(Xt!==v){if(Xt)continue;le=!1;break}if(ye){if(!Ku(d,function(De,ue){if(!Zo(ye,ue)&&(Pe===De||N(Pe,De,_,S,H)))return ye.push(ue)})){le=!1;break}}else if(Pe!==zt&&!N(Pe,zt,_,S,H)){le=!1;break}}return H.delete(l),H.delete(d),le}function Cr(l){return Rs(pf(l,v,bf),l+"")}function cc(l){return Xl(l,un,uf)}function af(l){return Xl(l,mn,Mt)}var sc=ps?function(l){return ps.get(l)}:Vs;function No(l){for(var d=l.name+"",_=ru[d],S=Qt.call(ru,d)?_.length:0;S--;){var N=_[S],H=N.func;if(H==null||H==l)return N.name}return d}function fu(l){return(Qt.call(B,"placeholder")?B:l).placeholder}function Ee(){var l=B.iteratee||Jf;return l=l===Jf?Wl:l,arguments.length?l(arguments[0],arguments[1]):l}function pu(l,d){var _,S,N=l.__data__;return((S=typeof(_=d))=="string"||S=="number"||S=="symbol"||S=="boolean"?_!=="__proto__":_===null)?N[typeof d=="string"?"string":"hash"]:N.map}function Ms(l){for(var d=un(l),_=d.length;_--;){var S=d[_],N=l[S];d[_]=[S,N,lf(N)]}return d}function $i(l,d){var _=function(S,N){return S==null?v:S[N]}(l,d);return uu(_)?_:v}var uf=Ll?function(l){return l==null?[]:(l=w(l),xn(Ll(l),function(d){return jn.call(l,d)}))}:_u,Mt=Ll?function(l){for(var d=[];l;)nn(d,uf(l)),l=di(l);return d}:_u,_n=zr;function cf(l,d,_){for(var S=-1,N=(d=Ki(d,l)).length,H=!1;++S<N;){var rt=on(d[S]);if(!(H=l!=null&&_(l,rt)))break;l=l[rt]}return H||++S!=N?H:!!(N=l==null?0:l.length)&&ja(N)&&ii(rt,N)&&(Xe(l)||Ea(l))}function sf(l){return typeof l.constructor!="function"||hu(l)?{}:nu(di(l))}function zh(l){return Xe(l)||Ea(l)||!!(Xi&&l&&l[Xi])}function ii(l,d){var _=typeof l;return!!(d=d!=null?d:V)&&(_=="number"||_!="symbol"&&oe.test(l))&&l>-1&&l%1==0&&l<d}function An(l,d,_){if(!Br(_))return!1;var S=typeof d;return!!(S=="number"?zn(_)&&ii(d,_.length):S=="string"&&d in _)&&Rr(_[d],l)}function Ds(l,d){if(Xe(l))return!1;var _=typeof l;return!(_!="number"&&_!="symbol"&&_!="boolean"&&l!=null&&!On(l))||Be.test(l)||!fr.test(l)||d!=null&&l in w(d)}function Ns(l){var d=No(l),_=B[d];if(typeof _!="function"||!(d in ar.prototype))return!1;if(l===_)return!0;var S=sc(_);return!!S&&l===S[0]}(tu&&_n(new tu(new ArrayBuffer(1)))!=re||Qo&&_n(new Qo)!=ut||zl&&_n(zl.resolve())!=Pt||va&&_n(new va)!=St||eu&&_n(new eu)!=kt)&&(_n=function(l){var d=zr(l),_=d==bt?l.constructor:v,S=_?Kn(_):"";if(S)switch(S){case sg:return re;case uh:return ut;case lg:return Pt;case fg:return St;case ch:return kt}return d});var Bh=ie?xi:wc;function hu(l){var d=l&&l.constructor;return l===(typeof d=="function"&&d.prototype||Ft)}function lf(l){return l==l&&!Br(l)}function ff(l,d){return function(_){return _!=null&&_[l]===d&&(d!==v||l in w(_))}}function pf(l,d,_){return d=pn(d===v?l.length-1:d,0),function(){for(var S=arguments,N=-1,H=pn(S.length-d,0),rt=Jt(H);++N<H;)rt[N]=S[d+N];N=-1;for(var lt=Jt(d+1);++N<d;)lt[N]=S[N];return lt[d]=_(rt),xr(l,this,lt)}}function hf(l,d){return d.length<2?l:mi(l,xo(d,0,-1))}function Fh(l,d){for(var _=l.length,S=Sn(d.length,_),N=Vn(l);S--;){var H=d[S];l[S]=ii(H,_)?N[H]:v}return l}function Cs(l,d){if((d!=="constructor"||typeof l[d]!="function")&&d!="__proto__")return l[d]}var df=Is(wh),du=oh||function(l,d){return Ur.setTimeout(l,d)},Rs=Is(dg);function yf(l,d,_){var S=d+"";return Rs(l,function(N,H){var rt=H.length;if(!rt)return N;var lt=rt-1;return H[lt]=(rt>1?"& ":"")+H[lt],H=H.join(rt>2?", ":" "),N.replace(Q,`{
- /* [wrapped with `+H+`] */
- `)}(S,function(N,H){return Dn(at,function(rt){var lt="_."+rt[0];H&rt[1]&&!Nn(N,lt)&&N.push(lt)}),N.sort()}(function(N){var H=N.match(dt);return H?H[1].split(it):[]}(S),_)))}function Is(l){var d=0,_=0;return function(){var S=ss(),N=16-(S-_);if(_=S,N>0){if(++d>=800)return arguments[0]}else d=0;return l.apply(v,arguments)}}function _a(l,d){var _=-1,S=l.length,N=S-1;for(d=d===v?S:d;++_<d;){var H=Kl(_,N),rt=l[H];l[H]=l[_],l[_]=rt}return l.length=d,l}var Uh=function(l){var d=gu(l,function(S){return _.size===500&&_.clear(),S}),_=d.cache;return d}(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(rr,function(_,S,N,H){d.push(N?H.replace(Kt,"$1"):S||_)}),d});function on(l){if(typeof l=="string"||On(l))return l;var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function Kn(l){if(l!=null){try{return Ke.call(l)}catch(d){}try{return l+""}catch(d){}}return""}function Hh(l){if(l instanceof ar)return l.clone();var d=new _o(l.__wrapped__,l.__chain__);return d.__actions__=Vn(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}var fo=Ze(function(l,d){return Vr(l)?vi(l,vn(d,1,Vr,!0)):[]}),Yh=Ze(function(l,d){var _=Pr(d);return Vr(_)&&(_=v),Vr(l)?vi(l,vn(d,1,Vr,!0),Ee(_,2)):[]}),gf=Ze(function(l,d){var _=Pr(d);return Vr(_)&&(_=v),Vr(l)?vi(l,vn(d,1,Vr,!0),v,_):[]});function vf(l,d,_){var S=l==null?0:l.length;if(!S)return-1;var N=_==null?0:We(_);return N<0&&(N=pn(S+N,0)),Ko(l,Ee(d,3),N)}function mf(l,d,_){var S=l==null?0:l.length;if(!S)return-1;var N=S-1;return _!==v&&(N=We(_),N=_<0?pn(S+N,0):Sn(N,S-1)),Ko(l,Ee(d,3),N,!0)}function bf(l){return l!=null&&l.length?vn(l,1):[]}function _f(l){return l&&l.length?l[0]:v}var Xh=Ze(function(l){var d=cr(l,Es);return d.length&&d[0]===l[0]?vs(d):[]}),Of=Ze(function(l){var d=Pr(l),_=cr(l,Es);return d===Pr(_)?d=v:_.pop(),_.length&&_[0]===l[0]?vs(_,Ee(d,2)):[]}),lc=Ze(function(l){var d=Pr(l),_=cr(l,Es);return(d=typeof d=="function"?d:v)&&_.pop(),_.length&&_[0]===l[0]?vs(_,v,d):[]});function Pr(l){var d=l==null?0:l.length;return d?l[d-1]:v}var vg=Ze(Gh);function Gh(l,d){return l&&l.length&&d&&d.length?Vl(l,d):l}var wf=Cr(function(l,d){var _=l==null?0:l.length,S=ys(l,d);return cu(l,cr(d,function(N){return ii(N,_)?+N:N}).sort(Ph)),S});function Ls(l){return l==null?l:cg.call(l)}var qn=Ze(function(l){return Vi(vn(l,1,Vr,!0))}),an=Ze(function(l){var d=Pr(l);return Vr(d)&&(d=v),Vi(vn(l,1,Vr,!0),Ee(d,2))}),mg=Ze(function(l){var d=Pr(l);return d=typeof d=="function"?d:v,Vi(vn(l,1,Vr,!0),v,d)});function Zn(l){if(!l||!l.length)return[];var d=0;return l=xn(l,function(_){if(Vr(_))return d=pn(_.length,d),!0}),da(d,function(_){return cr(l,Rn(_))})}function Ae(l,d){if(!l||!l.length)return[];var _=Zn(l);return d==null?_:cr(_,function(S){return xr(d,v,S)})}var xf=Ze(function(l,d){return Vr(l)?vi(l,d):[]}),Ef=Ze(function(l){return xs(xn(l,Vr))}),jf=Ze(function(l){var d=Pr(l);return Vr(d)&&(d=v),xs(xn(l,Vr),Ee(d,2))}),Wh=Ze(function(l){var d=Pr(l);return d=typeof d=="function"?d:v,xs(xn(l,Vr),v,d)}),Vh=Ze(Zn),bg=Ze(function(l){var d=l.length,_=d>1?l[d-1]:v;return _=typeof _=="function"?(l.pop(),_):v,Ae(l,_)});function Kh(l){var d=B(l);return d.__chain__=!0,d}function yu(l,d){return d(l)}var _g=Cr(function(l){var d=l.length,_=d?l[0]:0,S=this.__wrapped__,N=function(H){return ys(H,l)};return!(d>1||this.__actions__.length)&&S instanceof ar&&ii(_)?((S=S.slice(_,+_+(d?1:0))).__actions__.push({func:yu,args:[N],thisArg:v}),new _o(S,this.__chain__).thru(function(H){return d&&!H.length&&H.push(v),H})):this.thru(N)}),Sf=Ss(function(l,d,_){Qt.call(l,_)?++l[_]:ei(l,_,1)}),Og=Dh(vf),wg=Dh(mf);function Af(l,d){return(Xe(l)?Dn:Dr)(l,Ee(d,3))}function Oa(l,d){return(Xe(l)?is:hh)(l,Ee(d,3))}var qh=Ss(function(l,d,_){Qt.call(l,_)?l[_].push(d):ei(l,_,[d])}),He=Ze(function(l,d,_){var S=-1,N=typeof d=="function",H=zn(l)?Jt(l.length):[];return Dr(l,function(rt){H[++S]=N?xr(d,rt,_):iu(rt,d,_)}),H}),Zh=Ss(function(l,d,_){ei(l,_,d)});function wa(l,d){return(Xe(l)?cr:wo)(l,Ee(d,3))}var Pf=Ss(function(l,d,_){l[_?0:1].push(d)},function(){return[[],[]]}),xg=Ze(function(l,d){if(l==null)return[];var _=d.length;return _>1&&An(l,d[0],d[1])?d=[]:_>2&&An(d[0],d[1],d[2])&&(d=[d[0]]),_h(l,vn(d,1),[])}),fc=ig||function(){return Ur.Date.now()};function kf(l,d,_){return d=_?v:d,d=l&&d==null?l.length:d,oi(l,C,v,v,v,v,d)}function Tf(l,d){var _;if(typeof d!="function")throw new q(E);return l=We(l),function(){return--l>0&&(_=d.apply(this,arguments)),l<=1&&(d=v),_}}var Mf=Ze(function(l,d,_){var S=1;if(_.length){var N=Xn(_,fu(Mf));S|=M}return oi(l,S,d,_,N)}),$h=Ze(function(l,d,_){var S=3;if(_.length){var N=Xn(_,fu($h));S|=M}return oi(d,S,l,_,N)});function Jh(l,d,_){var S,N,H,rt,lt,Ot,$=0,Ct=!1,Ht=!1,le=!0;if(typeof l!="function")throw new q(E);function ye(Ne){var Le=S,Qe=N;return S=N=v,$=Ne,rt=l.apply(Qe,Le)}function Pe(Ne){return $=Ne,lt=du(Xt,d),Ct?ye(Ne):rt}function zt(Ne){var Le=Ne-Ot;return Ot===v||Le>=d||Le<0||Ht&&Ne-$>=H}function Xt(){var Ne=fc();if(zt(Ne))return De(Ne);lt=du(Xt,function(Le){var Qe=d-(Le-Ot);return Ht?Sn(Qe,H-(Le-$)):Qe}(Ne))}function De(Ne){return lt=v,le&&S?ye(Ne):(S=N=v,rt)}function ue(){var Ne=fc(),Le=zt(Ne);if(S=arguments,N=this,Ot=Ne,Le){if(lt===v)return Pe(Ot);if(Ht)return tf(lt),lt=du(Xt,d),ye(Ot)}return lt===v&&(lt=du(Xt,d)),rt}return d=Bn(d)||0,Br(_)&&(Ct=!!_.leading,H=(Ht="maxWait"in _)?pn(Bn(_.maxWait)||0,d):H,le="trailing"in _?!!_.trailing:le),ue.cancel=function(){lt!==v&&tf(lt),$=0,S=Ot=N=lt=v},ue.flush=function(){return lt===v?rt:De(fc())},ue}var pc=Ze(function(l,d){return Yl(l,1,d)}),Eg=Ze(function(l,d,_){return Yl(l,Bn(d)||0,_)});function gu(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new q(E);var _=function(){var S=arguments,N=d?d.apply(this,S):S[0],H=_.cache;if(H.has(N))return H.get(N);var rt=l.apply(this,S);return _.cache=H.set(N,rt)||H,rt};return _.cache=new(gu.Cache||ti),_}function zs(l){if(typeof l!="function")throw new q(E);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}gu.Cache=ti;var jg=Ah(function(l,d){var _=(d=d.length==1&&Xe(d[0])?cr(d[0],Lr(Ee())):cr(vn(d,1),Lr(Ee()))).length;return Ze(function(S){for(var N=-1,H=Sn(S.length,_);++N<H;)S[N]=d[N].call(this,S[N]);return xr(l,this,S)})}),xa=Ze(function(l,d){var _=Xn(d,fu(xa));return oi(l,M,v,d,_)}),Oi=Ze(function(l,d){var _=Xn(d,fu(Oi));return oi(l,I,v,d,_)}),Df=Cr(function(l,d){return oi(l,L,v,v,v,d)});function Rr(l,d){return l===d||l!=l&&d!=d}var Bs=lu(Hr),hc=lu(function(l,d){return l>=d}),Ea=Gl(function(){return arguments}())?Gl:function(l){return Fr(l)&&Qt.call(l,"callee")&&!jn.call(l,"callee")},Xe=Jt.isArray,Qh=Gu?Lr(Gu):function(l){return Fr(l)&&zr(l)==Ut};function zn(l){return l!=null&&ja(l.length)&&!xi(l)}function Vr(l){return Fr(l)&&zn(l)}var wi=ag||wc,Fs=ns?Lr(ns):function(l){return Fr(l)&&zr(l)==U};function Nf(l){if(!Fr(l))return!1;var d=zr(l);return d==X||d=="[object DOMException]"||typeof l.message=="string"&&typeof l.name=="string"&&!Ei(l)}function xi(l){if(!Br(l))return!1;var d=zr(l);return d==W||d==Z||d=="[object AsyncFunction]"||d=="[object Proxy]"}function Us(l){return typeof l=="number"&&l==We(l)}function ja(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=V}function Br(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Fr(l){return l!=null&&typeof l=="object"}var td=Wu?Lr(Wu):function(l){return Fr(l)&&_n(l)==ut};function Cf(l){return typeof l=="number"||Fr(l)&&zr(l)==Et}function Ei(l){if(!Fr(l)||zr(l)!=bt)return!1;var d=di(l);if(d===null)return!0;var _=Qt.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&Ke.call(_)==so}var Rf=Wa?Lr(Wa):function(l){return Fr(l)&&zr(l)==Bt},vu=Ui?Lr(Ui):function(l){return Fr(l)&&_n(l)==St};function dc(l){return typeof l=="string"||!Xe(l)&&Fr(l)&&zr(l)==gt}function On(l){return typeof l=="symbol"||Fr(l)&&zr(l)==At}var Ji=Ao?Lr(Ao):function(l){return Fr(l)&&ja(l.length)&&!!hr[zr(l)]},mu=lu(_i),yc=lu(function(l,d){return l<=d});function bu(l){if(!l)return[];if(zn(l))return dc(l)?Gn(l):Vn(l);if(yi&&l[yi])return function(_){for(var S,N=[];!(S=_.next()).done;)N.push(S.value);return N}(l[yi]());var d=_n(l);return(d==ut?En:d==St?hi:ta)(l)}function ai(l){return l?(l=Bn(l))===G||l===-1/0?17976931348623157e292*(l<0?-1:1):l==l?l:0:l===0?l:0}function We(l){var d=ai(l),_=d%1;return d==d?_?d-_:d:0}function If(l){return l?Wi(We(l),0,st):0}function Bn(l){if(typeof l=="number")return l;if(On(l))return nt;if(Br(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Br(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=qu(l);var _=yn.test(l);return _||Zr.test(l)?Vo(l.slice(2),_?2:8):rn.test(l)?nt:+l}function Lf(l){return ri(l,mn(l))}function yr(l){return l==null?"":Wn(l)}var ed=ba(function(l,d){if(hu(d)||zn(d))ri(d,un(d),l);else for(var _ in d)Qt.call(d,_)&&ou(l,_,d[_])}),zf=ba(function(l,d){ri(d,mn(d),l)}),ji=ba(function(l,d,_,S){ri(d,mn(d),l,S)}),Bf=ba(function(l,d,_,S){ri(d,un(d),l,S)}),rd=Cr(ys),nd=Ze(function(l,d){l=w(l);var _=-1,S=d.length,N=S>2?d[2]:v;for(N&&An(d[0],d[1],N)&&(S=1);++_<S;)for(var H=d[_],rt=mn(H),lt=-1,Ot=rt.length;++lt<Ot;){var $=rt[lt],Ct=l[$];(Ct===v||Rr(Ct,Ft[$])&&!Qt.call(l,$))&&(l[$]=H[$])}return l}),Ff=Ze(function(l){return l.push(v,Ih),xr(Yf,v,l)});function gc(l,d,_){var S=l==null?v:mi(l,d);return S===v?_:S}function vc(l,d){return l!=null&&cf(l,d,gh)}var od=Ch(function(l,d,_){d!=null&&typeof d.toString!="function"&&(d=lr.call(d)),l[d]=_},Ws(Pn)),Uf=Ch(function(l,d,_){d!=null&&typeof d.toString!="function"&&(d=lr.call(d)),Qt.call(l,d)?l[d].push(_):l[d]=[_]},Ee),Hf=Ze(iu);function un(l){return zn(l)?Bl(l):bi(l)}function mn(l){return zn(l)?Bl(l,!0):pg(l)}var Qi=ba(function(l,d,_){bs(l,d,_)}),Yf=ba(function(l,d,_,S){bs(l,d,_,S)}),id=Cr(function(l,d){var _={};if(l==null)return _;var S=!1;d=cr(d,function(H){return H=Ki(H,l),S||(S=H.length>1),H}),ri(l,af(l),_),S&&(_=lo(_,7,gg));for(var N=d.length;N--;)ws(_,d[N]);return _}),Xf=Cr(function(l,d){return l==null?{}:function(_,S){return Oh(_,S,function(N,H){return vc(_,H)})}(l,d)});function Hs(l,d){if(l==null)return{};var _=cr(af(l),function(S){return[S]});return d=Ee(d),Oh(l,_,function(S,N){return d(S,N[0])})}var ad=Ts(un),Gf=Ts(mn);function ta(l){return l==null?[]:Za(l,un(l))}var Ys=Zi(function(l,d,_){return d=d.toLowerCase(),l+(_?mc(d):d)});function mc(l){return Kr(yr(l).toLowerCase())}function Xs(l){return(l=yr(l))&&l.replace(Oe,$u).replace(Wo,"")}var Wf=Zi(function(l,d,_){return l+(_?"-":"")+d.toLowerCase()}),ud=Zi(function(l,d,_){return l+(_?" ":"")+d.toLowerCase()}),Vf=Mh("toLowerCase"),cd=Zi(function(l,d,_){return l+(_?"_":"")+d.toLowerCase()}),Kf=Zi(function(l,d,_){return l+(_?" ":"")+Kr(d)}),Sg=Zi(function(l,d,_){return l+(_?" ":"")+d.toUpperCase()}),Kr=Mh("toUpperCase");function Co(l,d,_){return l=yr(l),(d=_?v:d)===v?function(S){return Uu.test(S)}(l)?function(S){return S.match(Xa)||[]}(l):function(S){return S.match(_t)||[]}(l):l.match(d)||[]}var Gs=Ze(function(l,d){try{return xr(l,v,d)}catch(_){return Nf(_)?_:new $e(_)}}),qf=Cr(function(l,d){return Dn(d,function(_){_=on(_),ei(l,_,Mf(l[_],l))}),l});function Ws(l){return function(){return l}}var Zf=Nh(),$f=Nh(!0);function Pn(l){return l}function Jf(l){return Wl(typeof l=="function"?l:lo(l,1))}var Sa=Ze(function(l,d){return function(_){return iu(_,l,d)}}),Qf=Ze(function(l,d){return function(_){return iu(l,_,d)}});function bc(l,d,_){var S=un(d),N=gs(d,S);_!=null||Br(d)&&(N.length||!S.length)||(_=d,d=l,l=this,N=gs(d,un(d)));var H=!(Br(_)&&"chain"in _&&!_.chain),rt=xi(l);return Dn(N,function(lt){var Ot=d[lt];l[lt]=Ot,rt&&(l.prototype[lt]=function(){var $=this.__chain__;if(H||$){var Ct=l(this.__wrapped__),Ht=Ct.__actions__=Vn(this.__actions__);return Ht.push({func:Ot,args:arguments,thisArg:l}),Ct.__chain__=$,Ct}return Ot.apply(l,nn([this.value()],arguments))})}),l}function Vs(){}var _c=nf(cr),Oc=nf(as),tp=nf(Ku);function ep(l){return Ds(l)?Rn(on(l)):function(d){return function(_){return mi(_,d)}}(l)}var sd=ni(),bn=ni(!0);function _u(){return[]}function wc(){return!1}var rp=uc(function(l,d){return l+d},0),ld=ks("ceil"),fd=uc(function(l,d){return l/d},1),np=ks("floor"),Ou,pd=uc(function(l,d){return l*d},1),Ks=ks("round"),qs=uc(function(l,d){return l-d},0);return B.after=function(l,d){if(typeof d!="function")throw new q(E);return l=We(l),function(){if(--l<1)return d.apply(this,arguments)}},B.ary=kf,B.assign=ed,B.assignIn=zf,B.assignInWith=ji,B.assignWith=Bf,B.at=rd,B.before=Tf,B.bind=Mf,B.bindAll=qf,B.bindKey=$h,B.castArray=function(){if(!arguments.length)return[];var l=arguments[0];return Xe(l)?l:[l]},B.chain=Kh,B.chunk=function(l,d,_){d=(_?An(l,d,_):d===v)?1:pn(We(d),0);var S=l==null?0:l.length;if(!S||d<1)return[];for(var N=0,H=0,rt=Jt(cs(S/d));N<S;)rt[H++]=xo(l,N,N+=d);return rt},B.compact=function(l){for(var d=-1,_=l==null?0:l.length,S=0,N=[];++d<_;){var H=l[d];H&&(N[S++]=H)}return N},B.concat=function(){var l=arguments.length;if(!l)return[];for(var d=Jt(l-1),_=arguments[0],S=l;S--;)d[S-1]=arguments[S];return nn(Xe(_)?Vn(_):[_],vn(d,1))},B.cond=function(l){var d=l==null?0:l.length,_=Ee();return l=d?cr(l,function(S){if(typeof S[1]!="function")throw new q(E);return[_(S[0]),S[1]]}):[],Ze(function(S){for(var N=-1;++N<d;){var H=l[N];if(xr(H[0],this,S))return xr(H[1],this,S)}})},B.conforms=function(l){return function(d){var _=un(d);return function(S){return Hl(S,d,_)}}(lo(l,1))},B.constant=Ws,B.countBy=Sf,B.create=function(l,d){var _=nu(l);return d==null?_:Ul(_,d)},B.curry=function l(d,_,S){var N=oi(d,8,v,v,v,v,v,_=S?v:_);return N.placeholder=l.placeholder,N},B.curryRight=function l(d,_,S){var N=oi(d,T,v,v,v,v,v,_=S?v:_);return N.placeholder=l.placeholder,N},B.debounce=Jh,B.defaults=nd,B.defaultsDeep=Ff,B.defer=pc,B.delay=Eg,B.difference=fo,B.differenceBy=Yh,B.differenceWith=gf,B.drop=function(l,d,_){var S=l==null?0:l.length;return S?xo(l,(d=_||d===v?1:We(d))<0?0:d,S):[]},B.dropRight=function(l,d,_){var S=l==null?0:l.length;return S?xo(l,0,(d=S-(d=_||d===v?1:We(d)))<0?0:d):[]},B.dropRightWhile=function(l,d){return l&&l.length?oc(l,Ee(d,3),!0,!0):[]},B.dropWhile=function(l,d){return l&&l.length?oc(l,Ee(d,3),!0):[]},B.fill=function(l,d,_,S){var N=l==null?0:l.length;return N?(_&&typeof _!="number"&&An(l,d,_)&&(_=0,S=N),function(H,rt,lt,Ot){var $=H.length;for((lt=We(lt))<0&&(lt=-lt>$?0:$+lt),(Ot=Ot===v||Ot>$?$:We(Ot))<0&&(Ot+=$),Ot=lt>Ot?0:If(Ot);lt<Ot;)H[lt++]=rt;return H}(l,d,_,S)):[]},B.filter=function(l,d){return(Xe(l)?xn:dr)(l,Ee(d,3))},B.flatMap=function(l,d){return vn(wa(l,d),1)},B.flatMapDeep=function(l,d){return vn(wa(l,d),G)},B.flatMapDepth=function(l,d,_){return _=_===v?1:We(_),vn(wa(l,d),_)},B.flatten=bf,B.flattenDeep=function(l){return l!=null&&l.length?vn(l,G):[]},B.flattenDepth=function(l,d){return l!=null&&l.length?vn(l,d=d===v?1:We(d)):[]},B.flip=function(l){return oi(l,512)},B.flow=Zf,B.flowRight=$f,B.fromPairs=function(l){for(var d=-1,_=l==null?0:l.length,S={};++d<_;){var N=l[d];S[N[0]]=N[1]}return S},B.functions=function(l){return l==null?[]:gs(l,un(l))},B.functionsIn=function(l){return l==null?[]:gs(l,mn(l))},B.groupBy=qh,B.initial=function(l){return l!=null&&l.length?xo(l,0,-1):[]},B.intersection=Xh,B.intersectionBy=Of,B.intersectionWith=lc,B.invert=od,B.invertBy=Uf,B.invokeMap=He,B.iteratee=Jf,B.keyBy=Zh,B.keys=un,B.keysIn=mn,B.map=wa,B.mapKeys=function(l,d){var _={};return d=Ee(d,3),he(l,function(S,N,H){ei(_,d(S,N,H),S)}),_},B.mapValues=function(l,d){var _={};return d=Ee(d,3),he(l,function(S,N,H){ei(_,N,d(S,N,H))}),_},B.matches=function(l){return vh(lo(l,1))},B.matchesProperty=function(l,d){return mh(l,lo(d,1))},B.memoize=gu,B.merge=Qi,B.mergeWith=Yf,B.method=Sa,B.methodOf=Qf,B.mixin=bc,B.negate=zs,B.nthArg=function(l){return l=We(l),Ze(function(d){return bh(d,l)})},B.omit=id,B.omitBy=function(l,d){return Hs(l,zs(Ee(d)))},B.once=function(l){return Tf(2,l)},B.orderBy=function(l,d,_,S){return l==null?[]:(Xe(d)||(d=d==null?[]:[d]),Xe(_=S?v:_)||(_=_==null?[]:[_]),_h(l,d,_))},B.over=_c,B.overArgs=jg,B.overEvery=Oc,B.overSome=tp,B.partial=xa,B.partialRight=Oi,B.partition=Pf,B.pick=Xf,B.pickBy=Hs,B.property=ep,B.propertyOf=function(l){return function(d){return l==null?v:mi(l,d)}},B.pull=vg,B.pullAll=Gh,B.pullAllBy=function(l,d,_){return l&&l.length&&d&&d.length?Vl(l,d,Ee(_,2)):l},B.pullAllWith=function(l,d,_){return l&&l.length&&d&&d.length?Vl(l,d,v,_):l},B.pullAt=wf,B.range=sd,B.rangeRight=bn,B.rearg=Df,B.reject=function(l,d){return(Xe(l)?xn:dr)(l,zs(Ee(d,3)))},B.remove=function(l,d){var _=[];if(!l||!l.length)return _;var S=-1,N=[],H=l.length;for(d=Ee(d,3);++S<H;){var rt=l[S];d(rt,S,l)&&(_.push(rt),N.push(S))}return cu(l,N),_},B.rest=function(l,d){if(typeof l!="function")throw new q(E);return Ze(l,d=d===v?d:We(d))},B.reverse=Ls,B.sampleSize=function(l,d,_){return d=(_?An(l,d,_):d===v)?1:We(d),(Xe(l)?lh:ql)(l,d)},B.set=function(l,d,_){return l==null?l:su(l,d,_)},B.setWith=function(l,d,_,S){return S=typeof S=="function"?S:v,l==null?l:su(l,d,_,S)},B.shuffle=function(l){return(Xe(l)?fh:yg)(l)},B.slice=function(l,d,_){var S=l==null?0:l.length;return S?(_&&typeof _!="number"&&An(l,d,_)?(d=0,_=S):(d=d==null?0:We(d),_=_===v?S:We(_)),xo(l,d,_)):[]},B.sortBy=xg,B.sortedUniq=function(l){return l&&l.length?xh(l):[]},B.sortedUniqBy=function(l,d){return l&&l.length?xh(l,Ee(d,2)):[]},B.split=function(l,d,_){return _&&typeof _!="number"&&An(l,d,_)&&(d=_=v),(_=_===v?st:_>>>0)?(l=yr(l))&&(typeof d=="string"||d!=null&&!Rf(d))&&!(d=Wn(d))&&To(l)?qi(Gn(l),0,_):l.split(d,_):[]},B.spread=function(l,d){if(typeof l!="function")throw new q(E);return d=d==null?0:pn(We(d),0),Ze(function(_){var S=_[d],N=qi(_,0,d);return S&&nn(N,S),xr(l,this,N)})},B.tail=function(l){var d=l==null?0:l.length;return d?xo(l,1,d):[]},B.take=function(l,d,_){return l&&l.length?xo(l,0,(d=_||d===v?1:We(d))<0?0:d):[]},B.takeRight=function(l,d,_){var S=l==null?0:l.length;return S?xo(l,(d=S-(d=_||d===v?1:We(d)))<0?0:d,S):[]},B.takeRightWhile=function(l,d){return l&&l.length?oc(l,Ee(d,3),!1,!0):[]},B.takeWhile=function(l,d){return l&&l.length?oc(l,Ee(d,3)):[]},B.tap=function(l,d){return d(l),l},B.throttle=function(l,d,_){var S=!0,N=!0;if(typeof l!="function")throw new q(E);return Br(_)&&(S="leading"in _?!!_.leading:S,N="trailing"in _?!!_.trailing:N),Jh(l,d,{leading:S,maxWait:d,trailing:N})},B.thru=yu,B.toArray=bu,B.toPairs=ad,B.toPairsIn=Gf,B.toPath=function(l){return Xe(l)?cr(l,on):On(l)?[l]:Vn(Uh(yr(l)))},B.toPlainObject=Lf,B.transform=function(l,d,_){var S=Xe(l),N=S||wi(l)||Ji(l);if(d=Ee(d,4),_==null){var H=l&&l.constructor;_=N?S?new H:[]:Br(l)&&xi(H)?nu(di(l)):{}}return(N?Dn:he)(l,function(rt,lt,Ot){return d(_,rt,lt,Ot)}),_},B.unary=function(l){return kf(l,1)},B.union=qn,B.unionBy=an,B.unionWith=mg,B.uniq=function(l){return l&&l.length?Vi(l):[]},B.uniqBy=function(l,d){return l&&l.length?Vi(l,Ee(d,2)):[]},B.uniqWith=function(l,d){return d=typeof d=="function"?d:v,l&&l.length?Vi(l,v,d):[]},B.unset=function(l,d){return l==null||ws(l,d)},B.unzip=Zn,B.unzipWith=Ae,B.update=function(l,d,_){return l==null?l:Eh(l,d,Ql(_))},B.updateWith=function(l,d,_,S){return S=typeof S=="function"?S:v,l==null?l:Eh(l,d,Ql(_),S)},B.values=ta,B.valuesIn=function(l){return l==null?[]:Za(l,mn(l))},B.without=xf,B.words=Co,B.wrap=function(l,d){return xa(Ql(d),l)},B.xor=Ef,B.xorBy=jf,B.xorWith=Wh,B.zip=Vh,B.zipObject=function(l,d){return Sh(l||[],d||[],ou)},B.zipObjectDeep=function(l,d){return Sh(l||[],d||[],su)},B.zipWith=bg,B.entries=ad,B.entriesIn=Gf,B.extend=zf,B.extendWith=ji,bc(B,B),B.add=rp,B.attempt=Gs,B.camelCase=Ys,B.capitalize=mc,B.ceil=ld,B.clamp=function(l,d,_){return _===v&&(_=d,d=v),_!==v&&(_=(_=Bn(_))==_?_:0),d!==v&&(d=(d=Bn(d))==d?d:0),Wi(Bn(l),d,_)},B.clone=function(l){return lo(l,4)},B.cloneDeep=function(l){return lo(l,5)},B.cloneDeepWith=function(l,d){return lo(l,5,d=typeof d=="function"?d:v)},B.cloneWith=function(l,d){return lo(l,4,d=typeof d=="function"?d:v)},B.conformsTo=function(l,d){return d==null||Hl(l,d,un(d))},B.deburr=Xs,B.defaultTo=function(l,d){return l==null||l!=l?d:l},B.divide=fd,B.endsWith=function(l,d,_){l=yr(l),d=Wn(d);var S=l.length,N=_=_===v?S:Wi(We(_),0,S);return(_-=d.length)>=0&&l.slice(_,N)==d},B.eq=Rr,B.escape=function(l){return(l=yr(l))&&ce.test(l)?l.replace(ge,$r):l},B.escapeRegExp=function(l){return(l=yr(l))&&Tr.test(l)?l.replace(br,"\\$&"):l},B.every=function(l,d,_){var S=Xe(l)?as:dh;return _&&An(l,d,_)&&(d=v),S(l,Ee(d,3))},B.find=Og,B.findIndex=vf,B.findKey=function(l,d){return Po(l,Ee(d,3),he)},B.findLast=wg,B.findLastIndex=mf,B.findLastKey=function(l,d){return Po(l,Ee(d,3),Sr)},B.floor=np,B.forEach=Af,B.forEachRight=Oa,B.forIn=function(l,d){return l==null?l:qe(l,Ee(d,3),mn)},B.forInRight=function(l,d){return l==null?l:Jr(l,Ee(d,3),mn)},B.forOwn=function(l,d){return l&&he(l,Ee(d,3))},B.forOwnRight=function(l,d){return l&&Sr(l,Ee(d,3))},B.get=gc,B.gt=Bs,B.gte=hc,B.has=function(l,d){return l!=null&&cf(l,d,yh)},B.hasIn=vc,B.head=_f,B.identity=Pn,B.includes=function(l,d,_,S){l=zn(l)?l:ta(l),_=_&&!S?We(_):0;var N=l.length;return _<0&&(_=pn(N+_,0)),dc(l)?_<=N&&l.indexOf(d,_)>-1:!!N&&Hi(l,d,_)>-1},B.indexOf=function(l,d,_){var S=l==null?0:l.length;if(!S)return-1;var N=_==null?0:We(_);return N<0&&(N=pn(S+N,0)),Hi(l,d,N)},B.inRange=function(l,d,_){return d=ai(d),_===v?(_=d,d=0):_=ai(_),function(S,N,H){return S>=Sn(N,H)&&S<pn(N,H)}(l=Bn(l),d,_)},B.invoke=Hf,B.isArguments=Ea,B.isArray=Xe,B.isArrayBuffer=Qh,B.isArrayLike=zn,B.isArrayLikeObject=Vr,B.isBoolean=function(l){return l===!0||l===!1||Fr(l)&&zr(l)==K},B.isBuffer=wi,B.isDate=Fs,B.isElement=function(l){return Fr(l)&&l.nodeType===1&&!Ei(l)},B.isEmpty=function(l){if(l==null)return!0;if(zn(l)&&(Xe(l)||typeof l=="string"||typeof l.splice=="function"||wi(l)||Ji(l)||Ea(l)))return!l.length;var d=_n(l);if(d==ut||d==St)return!l.size;if(hu(l))return!bi(l).length;for(var _ in l)if(Qt.call(l,_))return!1;return!0},B.isEqual=function(l,d){return au(l,d)},B.isEqualWith=function(l,d,_){var S=(_=typeof _=="function"?_:v)?_(l,d):v;return S===v?au(l,d,v,_):!!S},B.isError=Nf,B.isFinite=function(l){return typeof l=="number"&&ih(l)},B.isFunction=xi,B.isInteger=Us,B.isLength=ja,B.isMap=td,B.isMatch=function(l,d){return l===d||ms(l,d,Ms(d))},B.isMatchWith=function(l,d,_){return _=typeof _=="function"?_:v,ms(l,d,Ms(d),_)},B.isNaN=function(l){return Cf(l)&&l!=+l},B.isNative=function(l){if(Bh(l))throw new $e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return uu(l)},B.isNil=function(l){return l==null},B.isNull=function(l){return l===null},B.isNumber=Cf,B.isObject=Br,B.isObjectLike=Fr,B.isPlainObject=Ei,B.isRegExp=Rf,B.isSafeInteger=function(l){return Us(l)&&l>=-9007199254740991&&l<=V},B.isSet=vu,B.isString=dc,B.isSymbol=On,B.isTypedArray=Ji,B.isUndefined=function(l){return l===v},B.isWeakMap=function(l){return Fr(l)&&_n(l)==kt},B.isWeakSet=function(l){return Fr(l)&&zr(l)=="[object WeakSet]"},B.join=function(l,d){return l==null?"":ug.call(l,d)},B.kebabCase=Wf,B.last=Pr,B.lastIndexOf=function(l,d,_){var S=l==null?0:l.length;if(!S)return-1;var N=S;return _!==v&&(N=(N=We(_))<0?pn(S+N,0):Sn(N,S-1)),d==d?function(H,rt,lt){for(var Ot=lt+1;Ot--;)if(H[Ot]===rt)return Ot;return Ot}(l,d,N):Ko(l,qo,N,!0)},B.lowerCase=ud,B.lowerFirst=Vf,B.lt=mu,B.lte=yc,B.max=function(l){return l&&l.length?Wr(l,Pn,Hr):v},B.maxBy=function(l,d){return l&&l.length?Wr(l,Ee(d,2),Hr):v},B.mean=function(l){return nr(l,Pn)},B.meanBy=function(l,d){return nr(l,Ee(d,2))},B.min=function(l){return l&&l.length?Wr(l,Pn,_i):v},B.minBy=function(l,d){return l&&l.length?Wr(l,Ee(d,2),_i):v},B.stubArray=_u,B.stubFalse=wc,B.stubObject=function(){return{}},B.stubString=function(){return""},B.stubTrue=function(){return!0},B.multiply=pd,B.nth=function(l,d){return l&&l.length?bh(l,We(d)):v},B.noConflict=function(){return Ur._===this&&(Ur._=Mr),this},B.noop=Vs,B.now=fc,B.pad=function(l,d,_){l=yr(l);var S=(d=We(d))?Mo(l):0;if(!d||S>=d)return l;var N=(d-S)/2;return As(Qa(N),_)+l+As(cs(N),_)},B.padEnd=function(l,d,_){l=yr(l);var S=(d=We(d))?Mo(l):0;return d&&S<d?l+As(d-S,_):l},B.padStart=function(l,d,_){l=yr(l);var S=(d=We(d))?Mo(l):0;return d&&S<d?As(d-S,_)+l:l},B.parseInt=function(l,d,_){return _||d==null?d=0:d&&(d=+d),ls(yr(l).replace(Re,""),d||0)},B.random=function(l,d,_){if(_&&typeof _!="boolean"&&An(l,d,_)&&(d=_=v),_===v&&(typeof d=="boolean"?(_=d,d=v):typeof l=="boolean"&&(_=l,l=v)),l===v&&d===v?(l=0,d=1):(l=ai(l),d===v?(d=l,l=0):d=ai(d)),l>d){var S=l;l=d,d=S}if(_||l%1||d%1){var N=fs();return Sn(l+N*(d-l+Fi("1e-"+((N+"").length-1))),d)}return Kl(l,d)},B.reduce=function(l,d,_){var S=Xe(l)?Va:fn,N=arguments.length<3;return S(l,Ee(d,4),_,N,Dr)},B.reduceRight=function(l,d,_){var S=Xe(l)?us:fn,N=arguments.length<3;return S(l,Ee(d,4),_,N,hh)},B.repeat=function(l,d,_){return d=(_?An(l,d,_):d===v)?1:We(d),_s(yr(l),d)},B.replace=function(){var l=arguments,d=yr(l[0]);return l.length<3?d:d.replace(l[1],l[2])},B.result=function(l,d,_){var S=-1,N=(d=Ki(d,l)).length;for(N||(N=1,l=v);++S<N;){var H=l==null?v:l[on(d[S])];H===v&&(S=N,H=_),l=xi(H)?H.call(l):H}return l},B.round=Ks,B.runInContext=wt,B.sample=function(l){return(Xe(l)?Fl:hg)(l)},B.size=function(l){if(l==null)return 0;if(zn(l))return dc(l)?Mo(l):l.length;var d=_n(l);return d==ut||d==St?l.size:bi(l).length},B.snakeCase=cd,B.some=function(l,d,_){var S=Xe(l)?Ku:Zl;return _&&An(l,d,_)&&(d=v),S(l,Ee(d,3))},B.sortedIndex=function(l,d){return Os(l,d)},B.sortedIndexBy=function(l,d,_){return $l(l,d,Ee(_,2))},B.sortedIndexOf=function(l,d){var _=l==null?0:l.length;if(_){var S=Os(l,d);if(S<_&&Rr(l[S],d))return S}return-1},B.sortedLastIndex=function(l,d){return Os(l,d,!0)},B.sortedLastIndexBy=function(l,d,_){return $l(l,d,Ee(_,2),!0)},B.sortedLastIndexOf=function(l,d){if(l!=null&&l.length){var _=Os(l,d,!0)-1;if(Rr(l[_],d))return _}return-1},B.startCase=Kf,B.startsWith=function(l,d,_){return l=yr(l),_=_==null?0:Wi(We(_),0,l.length),d=Wn(d),l.slice(_,_+d.length)==d},B.subtract=qs,B.sum=function(l){return l&&l.length?qa(l,Pn):0},B.sumBy=function(l,d){return l&&l.length?qa(l,Ee(d,2)):0},B.template=function(l,d,_){var S=B.templateSettings;_&&An(l,d,_)&&(d=v),l=yr(l),d=ji({},d,S,Rh);var N,H,rt=ji({},d.imports,S.imports,Rh),lt=un(rt),Ot=Za(rt,lt),$=0,Ct=d.interpolate||je,Ht="__p += '",le=P((d.escape||je).source+"|"+Ct.source+"|"+(Ct===ze?fe:je).source+"|"+(d.evaluate||je).source+"|$","g"),ye="//# sourceURL="+(Qt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ts+"]")+`
- `;l.replace(le,function(Xt,De,ue,Ne,Le,Qe){return ue||(ue=Ne),Ht+=l.slice($,Qe).replace(Ie,Yi),De&&(N=!0,Ht+=`' +
- __e(`+De+`) +
- '`),Le&&(H=!0,Ht+=`';
- `+Le+`;
- __p += '`),ue&&(Ht+=`' +
- ((__t = (`+ue+`)) == null ? '' : __t) +
- '`),$=Qe+Xt.length,Xt}),Ht+=`';
- `;var Pe=Qt.call(d,"variable")&&d.variable;if(Pe){if(Vt.test(Pe))throw new $e("Invalid `variable` option passed into `_.template`")}else Ht=`with (obj) {
- `+Ht+`
- }
- `;Ht=(H?Ht.replace(Lt,""):Ht).replace(_e,"$1").replace(Me,"$1;"),Ht="function("+(Pe||"obj")+`) {
- `+(Pe?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+Ht+`return __p
- }`;var zt=Gs(function(){return jr(lt,ye+"return "+Ht).apply(v,Ot)});if(zt.source=Ht,Nf(zt))throw zt;return zt},B.times=function(l,d){if((l=We(l))<1||l>V)return[];var _=st,S=Sn(l,st);d=Ee(d),l-=st;for(var N=da(S,d);++_<l;)d(_);return N},B.toFinite=ai,B.toInteger=We,B.toLength=If,B.toLower=function(l){return yr(l).toLowerCase()},B.toNumber=Bn,B.toSafeInteger=function(l){return l?Wi(We(l),-9007199254740991,V):l===0?l:0},B.toString=yr,B.toUpper=function(l){return yr(l).toUpperCase()},B.trim=function(l,d,_){if((l=yr(l))&&(_||d===v))return qu(l);if(!l||!(d=Wn(d)))return l;var S=Gn(l),N=Gn(d);return qi(S,uo(S,N),Zu(S,N)+1).join("")},B.trimEnd=function(l,d,_){if((l=yr(l))&&(_||d===v))return l.slice(0,In(l)+1);if(!l||!(d=Wn(d)))return l;var S=Gn(l);return qi(S,0,Zu(S,Gn(d))+1).join("")},B.trimStart=function(l,d,_){if((l=yr(l))&&(_||d===v))return l.replace(Re,"");if(!l||!(d=Wn(d)))return l;var S=Gn(l);return qi(S,uo(S,Gn(d))).join("")},B.truncate=function(l,d){var _=30,S="...";if(Br(d)){var N="separator"in d?d.separator:N;_="length"in d?We(d.length):_,S="omission"in d?Wn(d.omission):S}var H=(l=yr(l)).length;if(To(l)){var rt=Gn(l);H=rt.length}if(_>=H)return l;var lt=_-Mo(S);if(lt<1)return S;var Ot=rt?qi(rt,0,lt).join(""):l.slice(0,lt);if(N===v)return Ot+S;if(rt&&(lt+=Ot.length-lt),Rf(N)){if(l.slice(lt).search(N)){var $,Ct=Ot;for(N.global||(N=P(N.source,yr(Ge.exec(N))+"g")),N.lastIndex=0;$=N.exec(Ct);)var Ht=$.index;Ot=Ot.slice(0,Ht===v?lt:Ht)}}else if(l.indexOf(Wn(N),lt)!=lt){var le=Ot.lastIndexOf(N);le>-1&&(Ot=Ot.slice(0,le))}return Ot+S},B.unescape=function(l){return(l=yr(l))&&Tt.test(l)?l.replace(Se,co):l},B.uniqueId=function(l){var d=++_r;return yr(l)+d},B.upperCase=Sg,B.upperFirst=Kr,B.each=Af,B.eachRight=Oa,B.first=_f,bc(B,(Ou={},he(B,function(l,d){Qt.call(B.prototype,d)||(Ou[d]=l)}),Ou),{chain:!1}),B.VERSION="4.17.21",Dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){B[l].placeholder=B}),Dn(["drop","take"],function(l,d){ar.prototype[l]=function(_){_=_===v?1:pn(We(_),0);var S=this.__filtered__&&!d?new ar(this):this.clone();return S.__filtered__?S.__takeCount__=Sn(_,S.__takeCount__):S.__views__.push({size:Sn(_,st),type:l+(S.__dir__<0?"Right":"")}),S},ar.prototype[l+"Right"]=function(_){return this.reverse()[l](_).reverse()}}),Dn(["filter","map","takeWhile"],function(l,d){var _=d+1,S=_==1||_==3;ar.prototype[l]=function(N){var H=this.clone();return H.__iteratees__.push({iteratee:Ee(N,3),type:_}),H.__filtered__=H.__filtered__||S,H}}),Dn(["head","last"],function(l,d){var _="take"+(d?"Right":"");ar.prototype[l]=function(){return this[_](1).value()[0]}}),Dn(["initial","tail"],function(l,d){var _="drop"+(d?"":"Right");ar.prototype[l]=function(){return this.__filtered__?new ar(this):this[_](1)}}),ar.prototype.compact=function(){return this.filter(Pn)},ar.prototype.find=function(l){return this.filter(l).head()},ar.prototype.findLast=function(l){return this.reverse().find(l)},ar.prototype.invokeMap=Ze(function(l,d){return typeof l=="function"?new ar(this):this.map(function(_){return iu(_,l,d)})}),ar.prototype.reject=function(l){return this.filter(zs(Ee(l)))},ar.prototype.slice=function(l,d){l=We(l);var _=this;return _.__filtered__&&(l>0||d<0)?new ar(_):(l<0?_=_.takeRight(-l):l&&(_=_.drop(l)),d!==v&&(_=(d=We(d))<0?_.dropRight(-d):_.take(d-l)),_)},ar.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},ar.prototype.toArray=function(){return this.take(st)},he(ar.prototype,function(l,d){var _=/^(?:filter|find|map|reject)|While$/.test(d),S=/^(?:head|last)$/.test(d),N=B[S?"take"+(d=="last"?"Right":""):d],H=S||/^find/.test(d);N&&(B.prototype[d]=function(){var rt=this.__wrapped__,lt=S?[1]:arguments,Ot=rt instanceof ar,$=lt[0],Ct=Ot||Xe(rt),Ht=function(De){var ue=N.apply(B,nn([De],lt));return S&&le?ue[0]:ue};Ct&&_&&typeof $=="function"&&$.length!=1&&(Ot=Ct=!1);var le=this.__chain__,ye=!!this.__actions__.length,Pe=H&&!le,zt=Ot&&!ye;if(!H&&Ct){rt=zt?rt:new ar(this);var Xt=l.apply(rt,lt);return Xt.__actions__.push({func:yu,args:[Ht],thisArg:v}),new _o(Xt,le)}return Pe&&zt?l.apply(this,lt):(Xt=this.thru(Ht),Pe?S?Xt.value()[0]:Xt.value():Xt)})}),Dn(["pop","push","shift","sort","splice","unshift"],function(l){var d=ht[l],_=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",S=/^(?:pop|shift)$/.test(l);B.prototype[l]=function(){var N=arguments;if(S&&!this.__chain__){var H=this.value();return d.apply(Xe(H)?H:[],N)}return this[_](function(rt){return d.apply(Xe(rt)?rt:[],N)})}}),he(ar.prototype,function(l,d){var _=B[d];if(_){var S=_.name+"";Qt.call(ru,S)||(ru[S]=[]),ru[S].push({name:d,func:_})}}),ru[ac(v,2).name]=[{name:"wrapper",func:v}],ar.prototype.clone=function(){var l=new ar(this.__wrapped__);return l.__actions__=Vn(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Vn(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Vn(this.__views__),l},ar.prototype.reverse=function(){if(this.__filtered__){var l=new ar(this);l.__dir__=-1,l.__filtered__=!0}else(l=this.clone()).__dir__*=-1;return l},ar.prototype.value=function(){var l=this.__wrapped__.value(),d=this.__dir__,_=Xe(l),S=d<0,N=_?l.length:0,H=function(Qe,ve,Te){for(var cn=-1,wn=Te.length;++cn<wn;){var Ro=Te[cn],dn=Ro.size;switch(Ro.type){case"drop":Qe+=dn;break;case"dropRight":ve-=dn;break;case"take":ve=Sn(ve,Qe+dn);break;case"takeRight":Qe=pn(Qe,ve-dn)}}return{start:Qe,end:ve}}(0,N,this.__views__),rt=H.start,lt=H.end,Ot=lt-rt,$=S?lt:rt-1,Ct=this.__iteratees__,Ht=Ct.length,le=0,ye=Sn(Ot,this.__takeCount__);if(!_||!S&&N==Ot&&ye==Ot)return jh(l,this.__actions__);var Pe=[];t:for(;Ot--&&le<ye;){for(var zt=-1,Xt=l[$+=d];++zt<Ht;){var De=Ct[zt],ue=De.iteratee,Ne=De.type,Le=ue(Xt);if(Ne==2)Xt=Le;else if(!Le){if(Ne==1)continue t;break t}}Pe[le++]=Xt}return Pe},B.prototype.at=_g,B.prototype.chain=function(){return Kh(this)},B.prototype.commit=function(){return new _o(this.value(),this.__chain__)},B.prototype.next=function(){this.__values__===v&&(this.__values__=bu(this.value()));var l=this.__index__>=this.__values__.length;return{done:l,value:l?v:this.__values__[this.__index__++]}},B.prototype.plant=function(l){for(var d,_=this;_ instanceof rc;){var S=Hh(_);S.__index__=0,S.__values__=v,d?N.__wrapped__=S:d=S;var N=S;_=_.__wrapped__}return N.__wrapped__=l,d},B.prototype.reverse=function(){var l=this.__wrapped__;if(l instanceof ar){var d=l;return this.__actions__.length&&(d=new ar(this)),(d=d.reverse()).__actions__.push({func:yu,args:[Ls],thisArg:v}),new _o(d,this.__chain__)}return this.thru(Ls)},B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=function(){return jh(this.__wrapped__,this.__actions__)},B.prototype.first=B.prototype.head,yi&&(B.prototype[yi]=function(){return this}),B}();Ur._=Do,(b=function(){return Do}.call(f,o,f,y))===v||(y.exports=b)}).call(this)}).call(this,o(68),o(220)(i))},function(i,f,o){var h=o(7),y=o(34),b=o(33),v=o(87),E=o(61),A=o(174),k=o(28),T=h.TypeError,M=k("toPrimitive");i.exports=function(I,C){if(!b(I)||v(I))return I;var L,G=E(I,M);if(G){if(C===void 0&&(C="default"),L=y(G,I,C),!b(L)||v(L))return L;throw T("Can't convert object to primitive value")}return C===void 0&&(C="number"),A(I,C)}},function(i,f,o){var h=o(108);i.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(i,f,o){var h=o(36),y=o(18),b=o(91);i.exports=!h&&!y(function(){return Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a!=7})},function(i,f,o){var h=o(35),y=o(135),b=o(50),v=o(38);i.exports=function(E,A){for(var k=y(A),T=v.f,M=b.f,I=0;I<k.length;I++){var C=k[I];h(E,C)||T(E,C,M(A,C))}}},function(i,f,o){var h=o(46),y=o(15),b=o(74),v=o(112),E=o(32),A=y([].concat);i.exports=h("Reflect","ownKeys")||function(k){var T=b.f(E(k)),M=v.f;return M?A(T,M(k)):T}},function(i,f,o){var h=o(15),y=o(35),b=o(41),v=o(137).indexOf,E=o(72),A=h([].push);i.exports=function(k,T){var M,I=b(k),C=0,L=[];for(M in I)!y(E,M)&&y(I,M)&&A(L,M);for(;T.length>C;)y(I,M=T[C++])&&(~v(L,M)||A(L,M));return L}},function(i,f,o){var h=o(41),y=o(75),b=o(45),v=function(E){return function(A,k,T){var M,I=h(A),C=b(I),L=y(T,C);if(E&&k!=k){for(;C>L;)if((M=I[L++])!=M)return!0}else for(;C>L;L++)if((E||L in I)&&I[L]===k)return E||L||0;return!E&&-1}};i.exports={includes:v(!0),indexOf:v(!1)}},function(i,f,o){var h=o(46);i.exports=h("document","documentElement")},function(i,f,o){var h=o(51),y=o(41),b=o(74).f,v=o(114),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(A){return E&&h(A)=="Window"?function(k){try{return b(k)}catch(T){return v(E)}}(A):b(y(A))}},function(i,f,o){var h=o(28);f.f=h},function(i,f,o){var h=o(177),y=o(35),b=o(140),v=o(38).f;i.exports=function(E){var A=h.Symbol||(h.Symbol={});y(A,E)||v(A,E,{value:b.f(E)})}},function(i,f,o){var h,y,b,v=o(18),E=o(30),A=o(60),k=o(101),T=o(42),M=o(28),I=o(71),C=M("iterator"),L=!1;[].keys&&("next"in(b=[].keys())?(y=k(k(b)))!==Object.prototype&&(h=y):L=!0),h==null||v(function(){var G={};return h[C].call(G)!==G})?h={}:I&&(h=A(h)),E(h[C])||T(h,C,function(){return this}),i.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:L}},function(i,f,o){var h=o(18);i.exports=!h(function(){function y(){}return y.prototype.constructor=null,Object.getPrototypeOf(new y)!==y.prototype})},function(i,f,o){var h=o(16),y=o(15),b=o(72),v=o(33),E=o(35),A=o(38).f,k=o(74),T=o(139),M=o(183),I=o(90),C=o(185),L=!1,G=I("meta"),V=0,nt=function(at){A(at,G,{value:{objectID:"O"+V++,weakData:{}}})},st=i.exports={enable:function(){st.enable=function(){},L=!0;var at=k.f,tt=y([].splice),et={};et[G]=1,at(et).length&&(k.f=function(K){for(var U=at(K),X=0,W=U.length;X<W;X++)if(U[X]===G){tt(U,X,1);break}return U},h({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:T.f}))},fastKey:function(at,tt){if(!v(at))return typeof at=="symbol"?at:(typeof at=="string"?"S":"P")+at;if(!E(at,G)){if(!M(at))return"F";if(!tt)return"E";nt(at)}return at[G].objectID},getWeakData:function(at,tt){if(!E(at,G)){if(!M(at))return!0;if(!tt)return!1;nt(at)}return at[G].weakData},onFreeze:function(at){return C&&L&&M(at)&&!E(at,G)&&nt(at),at}};b[G]=!0},function(i,f,o){var h=o(28),y=o(80),b=h("iterator"),v=Array.prototype;i.exports=function(E){return E!==void 0&&(y.Array===E||v[b]===E)}},function(i,f,o){var h=o(7),y=o(34),b=o(56),v=o(32),E=o(88),A=o(118),k=h.TypeError;i.exports=function(T,M){var I=arguments.length<2?A(T):M;if(b(I))return v(y(I,T));throw k(E(T)+" is not iterable")}},function(i,f,o){var h=o(34),y=o(32),b=o(61);i.exports=function(v,E,A){var k,T;y(v);try{if(!(k=b(v,"return"))){if(E==="throw")throw A;return A}k=h(k,v)}catch(M){T=!0,k=M}if(E==="throw")throw A;if(T)throw k;return y(k),A}},function(i,f,o){var h=o(30),y=o(33),b=o(102);i.exports=function(v,E,A){var k,T;return b&&h(k=E.constructor)&&k!==A&&y(T=k.prototype)&&T!==A.prototype&&b(v,T),v}},function(i,f,o){var h=o(42);i.exports=function(y,b,v){for(var E in b)h(y,E,b[E],v);return y}},function(i,f,o){var h=o(46),y=o(38),b=o(28),v=o(36),E=b("species");i.exports=function(A){var k=h(A),T=y.f;v&&k&&!k[E]&&T(k,E,{configurable:!0,get:function(){return this}})}},function(i,f,o){var h=o(15),y=o(59),b=o(39),v=o(44),E=h("".charAt),A=h("".charCodeAt),k=h("".slice),T=function(M){return function(I,C){var L,G,V=b(v(I)),nt=y(C),st=V.length;return nt<0||nt>=st?M?"":void 0:(L=A(V,nt))<55296||L>56319||nt+1===st||(G=A(V,nt+1))<56320||G>57343?M?E(V,nt):L:M?k(V,nt,nt+2):G-56320+(L-55296<<10)+65536}};i.exports={codeAt:T(!1),charAt:T(!0)}},function(i,f){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(i,f,o){var h=o(91)("span").classList,y=h&&h.constructor&&h.constructor.prototype;i.exports=y===Object.prototype?void 0:y},function(i,f,o){var h=o(32);i.exports=function(){var y=h(this),b="";return y.global&&(b+="g"),y.ignoreCase&&(b+="i"),y.multiline&&(b+="m"),y.dotAll&&(b+="s"),y.unicode&&(b+="u"),y.sticky&&(b+="y"),b}},function(i,f,o){var h=o(18),y=o(7).RegExp,b=h(function(){var A=y("a","y");return A.lastIndex=2,A.exec("abcd")!=null}),v=b||h(function(){return!y("a","y").sticky}),E=b||h(function(){var A=y("^r","gy");return A.lastIndex=2,A.exec("str")!=null});i.exports={BROKEN_CARET:E,MISSED_STICKY:v,UNSUPPORTED_Y:b}},function(i,f,o){var h=o(16),y=o(79).find,b=o(100),v="find",E=!0;v in[]&&Array(1).find(function(){E=!1}),h({target:"Array",proto:!0,forced:E},{find:function(A){return y(this,A,arguments.length>1?arguments[1]:void 0)}}),b(v)},function(i,f,o){var h=o(16),y=o(137).includes,b=o(100);h({target:"Array",proto:!0},{includes:function(v){return y(this,v,arguments.length>1?arguments[1]:void 0)}}),b("includes")},function(i,f,o){var h=o(16),y=o(15),b=o(197),v=o(44),E=o(39),A=o(198),k=y("".indexOf);h({target:"String",proto:!0,forced:!A("includes")},{includes:function(T){return!!~k(E(v(this)),E(b(T)),arguments.length>1?arguments[1]:void 0)}})},function(i,f,o){var h=o(33),y=o(51),b=o(28)("match");i.exports=function(v){var E;return h(v)&&((E=v[b])!==void 0?!!E:y(v)=="RegExp")}},function(i,f,o){var h=o(15);i.exports=h(1 .valueOf)},function(i,f,o){var h=o(15),y=o(44),b=o(39),v=o(162),E=h("".replace),A="["+v+"]",k=RegExp("^"+A+A+"*"),T=RegExp(A+A+"*$"),M=function(I){return function(C){var L=b(y(C));return 1&I&&(L=E(L,k,"")),2&I&&(L=E(L,T,"")),L}};i.exports={start:M(1),end:M(2),trim:M(3)}},function(i,f){i.exports=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(i,f){var o,h,y=i.exports={};function b(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function E(V){if(o===setTimeout)return setTimeout(V,0);if((o===b||!o)&&setTimeout)return o=setTimeout,setTimeout(V,0);try{return o(V,0)}catch(nt){try{return o.call(null,V,0)}catch(st){return o.call(this,V,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:b}catch(V){o=b}try{h=typeof clearTimeout=="function"?clearTimeout:v}catch(V){h=v}})();var A,k=[],T=!1,M=-1;function I(){T&&A&&(T=!1,A.length?k=A.concat(k):M=-1,k.length&&C())}function C(){if(!T){var V=E(I);T=!0;for(var nt=k.length;nt;){for(A=k,k=[];++M<nt;)A&&A[M].run();M=-1,nt=k.length}A=null,T=!1,function(st){if(h===clearTimeout)return clearTimeout(st);if((h===v||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(st);try{h(st)}catch(at){try{return h.call(null,st)}catch(tt){return h.call(this,st)}}}(V)}}function L(V,nt){this.fun=V,this.array=nt}function G(){}y.nextTick=function(V){var nt=new Array(arguments.length-1);if(arguments.length>1)for(var st=1;st<arguments.length;st++)nt[st-1]=arguments[st];k.push(new L(V,nt)),k.length!==1||T||E(C)},L.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={},y.on=G,y.addListener=G,y.once=G,y.off=G,y.removeListener=G,y.removeAllListeners=G,y.emit=G,y.prependListener=G,y.prependOnceListener=G,y.listeners=function(V){return[]},y.binding=function(V){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(V){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},function(i,f,o){var h=o(32),y=o(165),b=o(28)("species");i.exports=function(v,E){var A,k=h(v).constructor;return k===void 0||(A=h(k)[b])==null?E:y(A)}},function(i,f,o){var h=o(7),y=o(99),b=o(88),v=h.TypeError;i.exports=function(E){if(y(E))return E;throw v(b(E)+" is not a constructor")}},function(i,f,o){var h=o(16),y=o(161).trim;h({target:"String",proto:!0,forced:o(200)("trim")},{trim:function(){return y(this)}})},function(i,f,o){var h=o(34),y=o(123),b=o(32),v=o(94),E=o(39),A=o(44),k=o(61),T=o(124),M=o(125);y("match",function(I,C,L){return[function(G){var V=A(this),nt=G==null?void 0:k(G,I);return nt?h(nt,G,V):new RegExp(G)[I](E(V))},function(G){var V=b(this),nt=E(G),st=L(C,V,nt);if(st.done)return st.value;if(!V.global)return M(V,nt);var at=V.unicode;V.lastIndex=0;for(var tt,et=[],K=0;(tt=M(V,nt))!==null;){var U=E(tt[0]);et[K]=U,U===""&&(V.lastIndex=T(nt,v(V.lastIndex),at)),K++}return K===0?null:et}]})},function(i,f,o){var h,y,b,v,E=o(7),A=o(76),k=o(63),T=o(30),M=o(35),I=o(18),C=o(138),L=o(98),G=o(91),V=o(169),nt=o(128),st=E.setImmediate,at=E.clearImmediate,tt=E.process,et=E.Dispatch,K=E.Function,U=E.MessageChannel,X=E.String,W=0,Z={},ut="onreadystatechange";try{h=E.location}catch(St){}var Et=function(St){if(M(Z,St)){var gt=Z[St];delete Z[St],gt()}},bt=function(St){return function(){Et(St)}},Pt=function(St){Et(St.data)},Bt=function(St){E.postMessage(X(St),h.protocol+"//"+h.host)};st&&at||(st=function(St){var gt=L(arguments,1);return Z[++W]=function(){A(T(St)?St:K(St),void 0,gt)},y(W),W},at=function(St){delete Z[St]},nt?y=function(St){tt.nextTick(bt(St))}:et&&et.now?y=function(St){et.now(bt(St))}:U&&!V?(v=(b=new U).port2,b.port1.onmessage=Pt,y=k(v.postMessage,v)):E.addEventListener&&T(E.postMessage)&&!E.importScripts&&h&&h.protocol!=="file:"&&!I(Bt)?(y=Bt,E.addEventListener("message",Pt,!1)):y=ut in G("script")?function(St){C.appendChild(G("script")).onreadystatechange=function(){C.removeChild(this),Et(St)}}:function(St){setTimeout(bt(St),0)}),i.exports={set:st,clear:at}},function(i,f,o){var h=o(55);i.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(h)},function(i,f,o){var h=o(56),y=function(b){var v,E;this.promise=new b(function(A,k){if(v!==void 0||E!==void 0)throw TypeError("Bad Promise constructor");v=A,E=k}),this.resolve=h(v),this.reject=h(E)};i.exports.f=function(b){return new y(b)}},function(i,f,o){f.a=function(){return!1}},function(i,f,o){(function(h){o.d(f,"a",function(){return tt});var y=o(1);function b(U){throw new Error("[mobx-utils] "+U)}function v(U,X){X===void 0&&(X="Illegal state"),U||b(X)}var E=function(U){return U&&U!==Object.prototype&&Object.getOwnPropertyNames(U).concat(E(Object.getPrototypeOf(U))||[])},A=function(U){return function(X){var W=E(X);return W.filter(function(Z,ut){return W.indexOf(Z)===ut})}(U).filter(function(X){return X!=="constructor"&&!~X.indexOf("__")})},k="pending",T="fulfilled",M="rejected";function I(U){switch(this.state){case k:return U.pending&&U.pending(this.value);case M:return U.rejected&&U.rejected(this.value);case T:return U.fulfilled?U.fulfilled(this.value):this.value}}function C(U,X){if(v(arguments.length<=2,"fromPromise expects up to two arguments"),v(typeof U=="function"||typeof U=="object"&&U&&typeof U.then=="function","Please pass a promise or function to fromPromise"),U.isPromiseBasedObservable===!0)return U;typeof U=="function"&&(U=new Promise(U));var W=U;U.then(Object(y.k)("observableFromPromise-resolve",function(ut){W.value=ut,W.state=T}),Object(y.k)("observableFromPromise-reject",function(ut){W.value=ut,W.state=M})),W.isPromiseBasedObservable=!0,W.case=I;var Z=X&&X.state===T?X.value:void 0;return Object(y.q)(W,{value:Z,state:k},{},{deep:!1}),W}(function(U){U.reject=Object(y.k)("fromPromise.reject",function(X){var W=U(Promise.reject(X));return W.state=M,W.value=X,W}),U.resolve=Object(y.k)("fromPromise.resolve",function(X){X===void 0&&(X=void 0);var W=U(Promise.resolve(X));return W.state=T,W.value=X,W})})(C||(C={}));var L=function(U,X,W,Z){var ut,Et=arguments.length,bt=Et<3?X:Z===null?Z=Object.getOwnPropertyDescriptor(X,W):Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")bt=Reflect.decorate(U,X,W,Z);else for(var Pt=U.length-1;Pt>=0;Pt--)(ut=U[Pt])&&(bt=(Et<3?ut(bt):Et>3?ut(X,W,bt):ut(X,W))||bt);return Et>3&&bt&&Object.defineProperty(X,W,bt),bt};(function(){function U(X,W){var Z=this;Object(y.G)(function(){Z.current=W,Z.subscription=X.subscribe(Z)})}U.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},U.prototype.next=function(X){this.current=X},U.prototype.complete=function(){this.dispose()},U.prototype.error=function(X){this.current=X,this.dispose()},L([y.C.ref],U.prototype,"current",void 0),L([y.k.bound],U.prototype,"next",null),L([y.k.bound],U.prototype,"complete",null),L([y.k.bound],U.prototype,"error",null)})();var G=function(){return G=Object.assign||function(U){for(var X,W=1,Z=arguments.length;W<Z;W++)for(var ut in X=arguments[W])Object.prototype.hasOwnProperty.call(X,ut)&&(U[ut]=X[ut]);return U},G.apply(this,arguments)},V=function(U,X,W,Z){var ut,Et=arguments.length,bt=Et<3?X:Z===null?Z=Object.getOwnPropertyDescriptor(X,W):Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")bt=Reflect.decorate(U,X,W,Z);else for(var Pt=U.length-1;Pt>=0;Pt--)(ut=U[Pt])&&(bt=(Et<3?ut(bt):Et>3?ut(X,W,bt):ut(X,W))||bt);return Et>3&&bt&&Object.defineProperty(X,W,bt),bt},nt=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function U(X){var W=this;this.model=X,this.localValues=y.C.map({}),this.localComputedValues=y.C.map({}),this.isPropertyDirty=function(Z){return W.localValues.has(Z)},v(Object(y.A)(X),"createViewModel expects an observable object"),A(X).forEach(function(Z){if(Z!==y.a&&Z!=="__mobxDidRunLazyInitializers"){if(v(nt.indexOf(Z)===-1,"The propertyname "+Z+" is reserved and cannot be used with viewModels"),Object(y.w)(X,Z)){var ut=Object(y.h)(X,Z).derivation;W.localComputedValues.set(Z,Object(y.m)(ut.bind(W)))}var Et=Object.getOwnPropertyDescriptor(X,Z),bt=Et?{enumerable:Et.enumerable}:{};Object.defineProperty(W,Z,G(G({},bt),{configurable:!0,get:function(){return Object(y.w)(X,Z)?W.localComputedValues.get(Z).get():W.isPropertyDirty(Z)?W.localValues.get(Z):W.model[Z]},set:Object(y.k)(function(Pt){Pt!==W.model[Z]?W.localValues.set(Z,Pt):W.localValues.delete(Z)})}))}})}Object.defineProperty(U.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),U.prototype.submit=function(){var X=this;Object(y.B)(this.localValues).forEach(function(W){var Z=X.localValues.get(W),ut=X.model[W];Object(y.y)(ut)?ut.replace(Z):Object(y.z)(ut)?(ut.clear(),ut.merge(Z)):Object(y.v)(Z)||(X.model[W]=Z)}),this.localValues.clear()},U.prototype.reset=function(){this.localValues.clear()},U.prototype.resetProperty=function(X){this.localValues.delete(X)},V([y.m],U.prototype,"isDirty",null),V([y.m],U.prototype,"changedValues",null),V([y.k.bound],U.prototype,"submit",null),V([y.k.bound],U.prototype,"reset",null),V([y.k.bound],U.prototype,"resetProperty",null)})();function st(U){if(!U)return"ROOT";for(var X=[];U.parent;)X.push(U.path),U=U.parent;return X.reverse().join("/")}function at(U){return Object(y.A)(U)||Object(y.y)(U)||Object(y.z)(U)}function tt(U,X){var W=new WeakMap;function Z(bt){var Pt=W.get(bt.object);(function(Bt,St){switch(Bt.type){case"add":ut(Bt.newValue,St,Bt.name);break;case"update":Et(Bt.oldValue),ut(Bt.newValue,St,Bt.name||""+Bt.index);break;case"remove":case"delete":Et(Bt.oldValue);break;case"splice":Bt.removed.map(Et),Bt.added.forEach(function(kt,Ut){return ut(kt,St,""+(Bt.index+Ut))});for(var gt=Bt.index+Bt.addedCount;gt<Bt.object.length;gt++)if(at(Bt.object[gt])){var At=W.get(Bt.object[gt]);At&&(At.path=""+gt)}}})(bt,Pt),X(bt,st(Pt),U)}function ut(bt,Pt,Bt){if(at(bt)){var St=W.get(bt);if(St){if(St.parent!==Pt||St.path!==Bt)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+st(Pt)+"/"+Bt+"', but it already exists at '"+st(St.parent)+"/"+St.path+"'")}else{var gt={parent:Pt,path:Bt,dispose:Object(y.D)(bt,Z)};W.set(bt,gt),Object(y.p)(bt).forEach(function(At){var kt=At[0];return ut(At[1],gt,kt)})}}}function Et(bt){if(at(bt)){var Pt=W.get(bt);if(!Pt)return;W.delete(bt),Pt.dispose(),Object(y.L)(bt).forEach(Et)}}return ut(U,void 0,""),function(){Et(U)}}var et,K=(et=function(U,X){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,Z){W.__proto__=Z}||function(W,Z){for(var ut in Z)Z.hasOwnProperty(ut)&&(W[ut]=Z[ut])},et(U,X)},function(U,X){function W(){this.constructor=U}et(U,X),U.prototype=X===null?Object.create(X):(W.prototype=X.prototype,new W)});(function(U){function X(W,Z,ut){var Et=ut===void 0?{}:ut,bt=Et.name,Pt=bt===void 0?"ogm"+(1e3*Math.random()|0):bt,Bt=Et.keyToName,St=Bt===void 0?function(kt){return""+kt}:Bt,gt=U.call(this)||this;gt._keyToName=St,gt._groupBy=Z,gt._ogmInfoKey=Symbol("ogmInfo"+Pt),gt._base=W;for(var At=0;At<W.length;At++)gt._addItem(W[At]);return gt._disposeBaseObserver=Object(y.D)(gt._base,function(kt){if(kt.type==="splice")Object(y.J)(function(){for(var Ut=0,re=kt.removed;Ut<re.length;Ut++){var xe=re[Ut];gt._removeItem(xe)}for(var Wt=0,Zt=kt.added;Wt<Zt.length;Wt++){var be=Zt[Wt];gt._addItem(be)}});else{if(kt.type!=="update")throw new Error("illegal state");Object(y.J)(function(){gt._removeItem(kt.oldValue),gt._addItem(kt.newValue)})}}),gt}K(X,U),X.prototype.clear=function(){throw new Error("not supported")},X.prototype.delete=function(W){throw new Error("not supported")},X.prototype.set=function(W,Z){throw new Error("not supported")},X.prototype.dispose=function(){this._disposeBaseObserver();for(var W=0;W<this._base.length;W++){var Z=this._base[W];Z[this._ogmInfoKey].reaction(),delete Z[this._ogmInfoKey]}},X.prototype._getGroupArr=function(W){var Z=U.prototype.get.call(this,W);return Z===void 0&&(Z=Object(y.C)([],{name:"GroupArray["+this._keyToName(W)+"]",deep:!1}),U.prototype.set.call(this,W,Z)),Z},X.prototype._removeFromGroupArr=function(W,Z){var ut=U.prototype.get.call(this,W);ut.length===1?U.prototype.delete.call(this,W):(Z===ut.length-1||(ut[Z]=ut[ut.length-1],ut[Z][this._ogmInfoKey].groupArrIndex=Z),ut.length--)},X.prototype._addItem=function(W){var Z=this,ut=this._groupBy(W),Et=this._getGroupArr(ut),bt={groupByValue:ut,groupArrIndex:Et.length,reaction:Object(y.F)(function(){return Z._groupBy(W)},function(Pt,Bt){var St=W[Z._ogmInfoKey];Z._removeFromGroupArr(St.groupByValue,St.groupArrIndex);var gt=Z._getGroupArr(Pt),At=gt.length;gt.push(W),St.groupByValue=Pt,St.groupArrIndex=At})};Object.defineProperty(W,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:bt}),Et.push(W)},X.prototype._removeItem=function(W){var Z=W[this._ogmInfoKey];this._removeFromGroupArr(Z.groupByValue,Z.groupArrIndex),Z.reaction(),delete W[this._ogmInfoKey]}})(y.b),function(){function U(X,W){this.base=X,this.args=W,this.closestIdx=0,this.isDisposed=!1;for(var Z=this.closest=this.root=X,ut=0;ut<this.args.length-1&&(Z=Z.get(W[ut]));ut++)this.closest=Z;this.closestIdx=ut}return U.prototype.exists=function(){this.assertNotDisposed();var X=this.args.length;return this.closestIdx>=X-1&&this.closest.has(this.args[X-1])},U.prototype.get=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])},U.prototype.set=function(X){this.assertNotDisposed();for(var W=this.args.length,Z=this.closest,ut=this.closestIdx;ut<W-1;ut++){var Et=new Map;Z.set(this.args[ut],Et),Z=Et}this.closestIdx=W-1,this.closest=Z,Z.set(this.args[W-1],X)},U.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var X=this.args.length;this.closest.delete(this.args[X-1]);for(var W=this.root,Z=[W],ut=0;ut<X-1;ut++)W=W.get(this.args[ut]),Z.push(W);for(ut=Z.length-1;ut>0;ut--)Z[ut].size===0&&Z[ut-1].delete(this.args[ut-1]);this.isDisposed=!0},U.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},U}(),Promise.resolve(),typeof queueMicrotask<"u"||h!==void 0&&h.nextTick}).call(this,o(163))},function(i,f,o){var h;(function(y,b,v){if(y){for(var E,A={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},k={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},T={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},M={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},I=1;I<20;++I)A[111+I]="f"+I;for(I=0;I<=9;++I)A[I+96]=I.toString();at.prototype.bind=function(tt,et,K){var U=this;return tt=tt instanceof Array?tt:[tt],U._bindMultiple.call(U,tt,et,K),U},at.prototype.unbind=function(tt,et){return this.bind.call(this,tt,function(){},et)},at.prototype.trigger=function(tt,et){var K=this;return K._directMap[tt+":"+et]&&K._directMap[tt+":"+et]({},tt),K},at.prototype.reset=function(){var tt=this;return tt._callbacks={},tt._directMap={},tt},at.prototype.stopCallback=function(tt,et){if((" "+et.className+" ").indexOf(" mousetrap ")>-1||st(et,this.target))return!1;if("composedPath"in tt&&typeof tt.composedPath=="function"){var K=tt.composedPath()[0];K!==tt.target&&(et=K)}return et.tagName=="INPUT"||et.tagName=="SELECT"||et.tagName=="TEXTAREA"||et.isContentEditable},at.prototype.handleKey=function(){var tt=this;return tt._handleKey.apply(tt,arguments)},at.addKeycodes=function(tt){for(var et in tt)tt.hasOwnProperty(et)&&(A[et]=tt[et]);E=null},at.init=function(){var tt=at(b);for(var et in tt)et.charAt(0)!=="_"&&(at[et]=function(K){return function(){return tt[K].apply(tt,arguments)}}(et))},at.init(),y.Mousetrap=at,i.exports&&(i.exports=at),(h=function(){return at}.call(f,o,f,i))===void 0||(i.exports=h)}function C(tt,et,K){tt.addEventListener?tt.addEventListener(et,K,!1):tt.attachEvent("on"+et,K)}function L(tt){if(tt.type=="keypress"){var et=String.fromCharCode(tt.which);return tt.shiftKey||(et=et.toLowerCase()),et}return A[tt.which]?A[tt.which]:k[tt.which]?k[tt.which]:String.fromCharCode(tt.which).toLowerCase()}function G(tt){return tt=="shift"||tt=="ctrl"||tt=="alt"||tt=="meta"}function V(tt,et,K){return K||(K=function(){if(!E)for(var U in E={},A)U>95&&U<112||A.hasOwnProperty(U)&&(E[A[U]]=U);return E}()[tt]?"keydown":"keypress"),K=="keypress"&&et.length&&(K="keydown"),K}function nt(tt,et){var K,U,X,W=[];for(K=function(Z){return Z==="+"?["+"]:(Z=Z.replace(/\+{2}/g,"+plus")).split("+")}(tt),X=0;X<K.length;++X)U=K[X],M[U]&&(U=M[U]),et&&et!="keypress"&&T[U]&&(U=T[U],W.push("shift")),G(U)&&W.push(U);return{key:U,modifiers:W,action:et=V(U,W,et)}}function st(tt,et){return tt!==null&&tt!==b&&(tt===et||st(tt.parentNode,et))}function at(tt){var et=this;if(tt=tt||b,!(et instanceof at))return new at(tt);et.target=tt,et._callbacks={},et._directMap={};var K,U={},X=!1,W=!1,Z=!1;function ut(gt){gt=gt||{};var At,kt=!1;for(At in U)gt[At]?kt=!0:U[At]=0;kt||(Z=!1)}function Et(gt,At,kt,Ut,re,xe){var Wt,Zt,be,ft,ct=[],yt=kt.type;if(!et._callbacks[gt])return[];for(yt=="keyup"&&G(gt)&&(At=[gt]),Wt=0;Wt<et._callbacks[gt].length;++Wt)if(Zt=et._callbacks[gt][Wt],(Ut||!Zt.seq||U[Zt.seq]==Zt.level)&&yt==Zt.action&&(yt=="keypress"&&!kt.metaKey&&!kt.ctrlKey||(be=At,ft=Zt.modifiers,be.sort().join(",")===ft.sort().join(",")))){var Dt=!Ut&&Zt.combo==re,Yt=Ut&&Zt.seq==Ut&&Zt.level==xe;(Dt||Yt)&&et._callbacks[gt].splice(Wt,1),ct.push(Zt)}return ct}function bt(gt,At,kt,Ut){et.stopCallback(At,At.target||At.srcElement,kt,Ut)||gt(At,kt)===!1&&(function(re){re.preventDefault?re.preventDefault():re.returnValue=!1}(At),function(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0}(At))}function Pt(gt){typeof gt.which!="number"&&(gt.which=gt.keyCode);var At=L(gt);At&&(gt.type!="keyup"||X!==At?et.handleKey(At,function(kt){var Ut=[];return kt.shiftKey&&Ut.push("shift"),kt.altKey&&Ut.push("alt"),kt.ctrlKey&&Ut.push("ctrl"),kt.metaKey&&Ut.push("meta"),Ut}(gt),gt):X=!1)}function Bt(gt,At,kt,Ut){function re(be){return function(){Z=be,++U[gt],clearTimeout(K),K=setTimeout(ut,1e3)}}function xe(be){bt(kt,be,gt),Ut!=="keyup"&&(X=L(be)),setTimeout(ut,10)}U[gt]=0;for(var Wt=0;Wt<At.length;++Wt){var Zt=Wt+1===At.length?xe:re(Ut||nt(At[Wt+1]).action);St(At[Wt],Zt,Ut,gt,Wt)}}function St(gt,At,kt,Ut,re){et._directMap[gt+":"+kt]=At;var xe,Wt=(gt=gt.replace(/\s+/g," ")).split(" ");Wt.length>1?Bt(gt,Wt,At,kt):(xe=nt(gt,kt),et._callbacks[xe.key]=et._callbacks[xe.key]||[],Et(xe.key,xe.modifiers,{type:xe.action},Ut,gt,re),et._callbacks[xe.key][Ut?"unshift":"push"]({callback:At,modifiers:xe.modifiers,action:xe.action,seq:Ut,level:re,combo:gt}))}et._handleKey=function(gt,At,kt){var Ut,re=Et(gt,At,kt),xe={},Wt=0,Zt=!1;for(Ut=0;Ut<re.length;++Ut)re[Ut].seq&&(Wt=Math.max(Wt,re[Ut].level));for(Ut=0;Ut<re.length;++Ut)if(re[Ut].seq){if(re[Ut].level!=Wt)continue;Zt=!0,xe[re[Ut].seq]=1,bt(re[Ut].callback,kt,re[Ut].combo,re[Ut].seq)}else Zt||bt(re[Ut].callback,kt,re[Ut].combo);var be=kt.type=="keypress"&&W;kt.type!=Z||G(gt)||be||ut(xe),W=Zt&&kt.type=="keydown"},et._bindMultiple=function(gt,At,kt){for(var Ut=0;Ut<gt.length;++Ut)St(gt[Ut],At,kt)},C(tt,"keypress",Pt),C(tt,"keydown",Pt),C(tt,"keyup",Pt)}})(typeof window<"u"?window:null,typeof window<"u"?document:null)},function(i,f,o){var h=o(7),y=o(34),b=o(30),v=o(33),E=h.TypeError;i.exports=function(A,k){var T,M;if(k==="string"&&b(T=A.toString)&&!v(M=y(T,A))||b(T=A.valueOf)&&!v(M=y(T,A))||k!=="string"&&b(T=A.toString)&&!v(M=y(T,A)))return M;throw E("Can't convert object to primitive value")}},function(i,f,o){var h=o(7),y=o(30),b=o(92),v=h.WeakMap;i.exports=y(v)&&/native code/.test(b(v))},function(i,f,o){var h=o(36),y=o(38),b=o(32),v=o(41),E=o(77);i.exports=h?Object.defineProperties:function(A,k){b(A);for(var T,M=v(k),I=E(k),C=I.length,L=0;C>L;)y.f(A,T=I[L++],M[T]);return A}},function(i,f,o){var h=o(7);i.exports=h},function(i,f,o){var h=o(7),y=o(96),b=o(99),v=o(33),E=o(28)("species"),A=h.Array;i.exports=function(k){var T;return y(k)&&(T=k.constructor,(b(T)&&(T===A||y(T.prototype))||v(T)&&(T=T[E])===null)&&(T=void 0)),T===void 0?A:T}},function(i,f,o){var h=o(113),y=o(97);i.exports=h?{}.toString:function(){return"[object "+y(this)+"]"}},function(i,f,o){var h=o(142).IteratorPrototype,y=o(60),b=o(69),v=o(78),E=o(80),A=function(){return this};i.exports=function(k,T,M,I){var C=T+" Iterator";return k.prototype=y(h,{next:b(+!I,M)}),v(k,C,!1,!0),E[C]=A,k}},function(i,f,o){var h=o(7),y=o(30),b=h.String,v=h.TypeError;i.exports=function(E){if(typeof E=="object"||y(E))return E;throw v("Can't set "+b(E)+" as a prototype")}},function(i,f,o){var h=o(16),y=o(7),b=o(15),v=o(95),E=o(42),A=o(144),k=o(117),T=o(119),M=o(30),I=o(33),C=o(18),L=o(120),G=o(78),V=o(148);i.exports=function(nt,st,at){var tt=nt.indexOf("Map")!==-1,et=nt.indexOf("Weak")!==-1,K=tt?"set":"add",U=y[nt],X=U&&U.prototype,W=U,Z={},ut=function(gt){var At=b(X[gt]);E(X,gt,gt=="add"?function(kt){return At(this,kt===0?0:kt),this}:gt=="delete"?function(kt){return!(et&&!I(kt))&&At(this,kt===0?0:kt)}:gt=="get"?function(kt){return et&&!I(kt)?void 0:At(this,kt===0?0:kt)}:gt=="has"?function(kt){return!(et&&!I(kt))&&At(this,kt===0?0:kt)}:function(kt,Ut){return At(this,kt===0?0:kt,Ut),this})};if(v(nt,!M(U)||!(et||X.forEach&&!C(function(){new U().entries().next()}))))W=at.getConstructor(st,nt,tt,K),A.enable();else if(v(nt,!0)){var Et=new W,bt=Et[K](et?{}:-0,1)!=Et,Pt=C(function(){Et.has(1)}),Bt=L(function(gt){new U(gt)}),St=!et&&C(function(){for(var gt=new U,At=5;At--;)gt[K](At,At);return!gt.has(-0)});Bt||((W=st(function(gt,At){T(gt,X);var kt=V(new U,gt,W);return At!=null&&k(At,kt[K],{that:kt,AS_ENTRIES:tt}),kt})).prototype=X,X.constructor=W),(Pt||St)&&(ut("delete"),ut("has"),tt&&ut("get")),(St||bt)&&ut(K),et&&X.clear&&delete X.clear}return Z[nt]=W,h({global:!0,forced:W!=U},Z),G(W,nt),et||at.setStrong(W,nt,tt),W}},function(i,f,o){var h=o(18),y=o(33),b=o(51),v=o(184),E=Object.isExtensible,A=h(function(){});i.exports=A||v?function(k){return!!y(k)&&(!v||b(k)!="ArrayBuffer")&&(!E||E(k))}:E},function(i,f,o){var h=o(18);i.exports=h(function(){if(typeof ArrayBuffer=="function"){var y=new ArrayBuffer(8);Object.isExtensible(y)&&Object.defineProperty(y,"a",{value:8})}})},function(i,f,o){var h=o(18);i.exports=!h(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(i,f,o){var h=o(38).f,y=o(60),b=o(149),v=o(63),E=o(119),A=o(117),k=o(116),T=o(150),M=o(36),I=o(144).fastKey,C=o(58),L=C.set,G=C.getterFor;i.exports={getConstructor:function(V,nt,st,at){var tt=V(function(W,Z){E(W,et),L(W,{type:nt,index:y(null),first:void 0,last:void 0,size:0}),M||(W.size=0),Z!=null&&A(Z,W[at],{that:W,AS_ENTRIES:st})}),et=tt.prototype,K=G(nt),U=function(W,Z,ut){var Et,bt,Pt=K(W),Bt=X(W,Z);return Bt?Bt.value=ut:(Pt.last=Bt={index:bt=I(Z,!0),key:Z,value:ut,previous:Et=Pt.last,next:void 0,removed:!1},Pt.first||(Pt.first=Bt),Et&&(Et.next=Bt),M?Pt.size++:W.size++,bt!=="F"&&(Pt.index[bt]=Bt)),W},X=function(W,Z){var ut,Et=K(W),bt=I(Z);if(bt!=="F")return Et.index[bt];for(ut=Et.first;ut;ut=ut.next)if(ut.key==Z)return ut};return b(et,{clear:function(){for(var W=K(this),Z=W.index,ut=W.first;ut;)ut.removed=!0,ut.previous&&(ut.previous=ut.previous.next=void 0),delete Z[ut.index],ut=ut.next;W.first=W.last=void 0,M?W.size=0:this.size=0},delete:function(W){var Z=this,ut=K(Z),Et=X(Z,W);if(Et){var bt=Et.next,Pt=Et.previous;delete ut.index[Et.index],Et.removed=!0,Pt&&(Pt.next=bt),bt&&(bt.previous=Pt),ut.first==Et&&(ut.first=bt),ut.last==Et&&(ut.last=Pt),M?ut.size--:Z.size--}return!!Et},forEach:function(W){for(var Z,ut=K(this),Et=v(W,arguments.length>1?arguments[1]:void 0);Z=Z?Z.next:ut.first;)for(Et(Z.value,Z.key,this);Z&&Z.removed;)Z=Z.previous},has:function(W){return!!X(this,W)}}),b(et,st?{get:function(W){var Z=X(this,W);return Z&&Z.value},set:function(W,Z){return U(this,W===0?0:W,Z)}}:{add:function(W){return U(this,W=W===0?0:W,W)}}),M&&h(et,"size",{get:function(){return K(this).size}}),tt},setStrong:function(V,nt,st){var at=nt+" Iterator",tt=G(nt),et=G(at);k(V,nt,function(K,U){L(this,{type:at,target:K,state:tt(K),kind:U,last:void 0})},function(){for(var K=et(this),U=K.kind,X=K.last;X&&X.removed;)X=X.previous;return K.target&&(K.last=X=X?X.next:K.state.first)?U=="keys"?{value:X.key,done:!1}:U=="values"?{value:X.value,done:!1}:{value:[X.key,X.value],done:!1}:(K.target=void 0,{value:void 0,done:!0})},st?"entries":"values",!st,!0),T(nt)}}},function(i,f,o){var h=o(79).forEach,y=o(121)("forEach");i.exports=y?[].forEach:function(b){return h(this,b,arguments.length>1?arguments[1]:void 0)}},function(i,f,o){var h=o(7),y=o(63),b=o(34),v=o(40),E=o(189),A=o(145),k=o(99),T=o(45),M=o(62),I=o(146),C=o(118),L=h.Array;i.exports=function(G){var V=v(G),nt=k(this),st=arguments.length,at=st>1?arguments[1]:void 0,tt=at!==void 0;tt&&(at=y(at,st>2?arguments[2]:void 0));var et,K,U,X,W,Z,ut=C(V),Et=0;if(!ut||this==L&&A(ut))for(et=T(V),K=nt?new this(et):L(et);et>Et;Et++)Z=tt?at(V[Et],Et):V[Et],M(K,Et,Z);else for(W=(X=I(V,ut)).next,K=nt?new this:[];!(U=b(W,X)).done;Et++)Z=tt?E(X,at,[U.value,Et],!0):U.value,M(K,Et,Z);return K.length=Et,K}},function(i,f,o){var h=o(32),y=o(147);i.exports=function(b,v,E,A){try{return A?v(h(E)[0],E[1]):v(E)}catch(k){y(b,"throw",k)}}},function(i,f,o){var h=o(18),y=o(7).RegExp;i.exports=h(function(){var b=y(".","s");return!(b.dotAll&&b.exec(`
- `)&&b.flags==="s")})},function(i,f,o){var h=o(18),y=o(7).RegExp;i.exports=h(function(){var b=y("(?<a>b)","g");return b.exec("b").groups.a!=="b"||"b".replace(b,"$<a>c")!=="bc"})},function(i,f,o){var h=o(16),y=o(15),b=o(56),v=o(40),E=o(45),A=o(39),k=o(18),T=o(193),M=o(121),I=o(194),C=o(195),L=o(70),G=o(196),V=[],nt=y(V.sort),st=y(V.push),at=k(function(){V.sort(void 0)}),tt=k(function(){V.sort(null)}),et=M("sort"),K=!k(function(){if(L)return L<70;if(!(I&&I>3)){if(C)return!0;if(G)return G<603;var U,X,W,Z,ut="";for(U=65;U<76;U++){switch(X=String.fromCharCode(U),U){case 66:case 69:case 70:case 72:W=3;break;case 68:case 71:W=4;break;default:W=2}for(Z=0;Z<47;Z++)V.push({k:X+Z,v:W})}for(V.sort(function(Et,bt){return bt.v-Et.v}),Z=0;Z<V.length;Z++)X=V[Z].k.charAt(0),ut.charAt(ut.length-1)!==X&&(ut+=X);return ut!=="DGBEFHACIJK"}});h({target:"Array",proto:!0,forced:at||!tt||!et||!K},{sort:function(U){U!==void 0&&b(U);var X=v(this);if(K)return U===void 0?nt(X):nt(X,U);var W,Z,ut=[],Et=E(X);for(Z=0;Z<Et;Z++)Z in X&&st(ut,X[Z]);for(T(ut,function(bt){return function(Pt,Bt){return Bt===void 0?-1:Pt===void 0?1:bt!==void 0?+bt(Pt,Bt)||0:A(Pt)>A(Bt)?1:-1}}(U)),W=ut.length,Z=0;Z<W;)X[Z]=ut[Z++];for(;Z<Et;)delete X[Z++];return X}})},function(i,f,o){var h=o(114),y=Math.floor,b=function(A,k){var T=A.length,M=y(T/2);return T<8?v(A,k):E(A,b(h(A,0,M),k),b(h(A,M),k),k)},v=function(A,k){for(var T,M,I=A.length,C=1;C<I;){for(M=C,T=A[C];M&&k(A[M-1],T)>0;)A[M]=A[--M];M!==C++&&(A[M]=T)}return A},E=function(A,k,T,M){for(var I=k.length,C=T.length,L=0,G=0;L<I||G<C;)A[L+G]=L<I&&G<C?M(k[L],T[G])<=0?k[L++]:T[G++]:L<I?k[L++]:T[G++];return A};i.exports=b},function(i,f,o){var h=o(55).match(/firefox\/(\d+)/i);i.exports=!!h&&+h[1]},function(i,f,o){var h=o(55);i.exports=/MSIE|Trident/.test(h)},function(i,f,o){var h=o(55).match(/AppleWebKit\/(\d+)\./);i.exports=!!h&&+h[1]},function(i,f,o){var h=o(7),y=o(159),b=h.TypeError;i.exports=function(v){if(y(v))throw b("The method doesn't accept regular expressions");return v}},function(i,f,o){var h=o(28)("match");i.exports=function(y){var b=/./;try{"/./"[y](b)}catch(v){try{return b[h]=!1,"/./"[y](b)}catch(E){}}return!1}},function(i,f,o){o(16)({target:"Number",stat:!0},{isNaN:function(h){return h!=h}})},function(i,f,o){var h=o(73).PROPER,y=o(18),b=o(162);i.exports=function(v){return y(function(){return!!b[v]()||"\u200B\x85\u180E"[v]()!=="\u200B\x85\u180E"||h&&b[v].name!==v})}},function(i,f,o){var h=o(15),y=o(40),b=Math.floor,v=h("".charAt),E=h("".replace),A=h("".slice),k=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,T=/\$([$&'`]|\d{1,2})/g;i.exports=function(M,I,C,L,G,V){var nt=C+M.length,st=L.length,at=T;return G!==void 0&&(G=y(G),at=k),E(V,at,function(tt,et){var K;switch(v(et,0)){case"$":return"$";case"&":return M;case"`":return A(I,0,C);case"'":return A(I,nt);case"<":K=G[A(et,1,-1)];break;default:var U=+et;if(U===0)return tt;if(U>st){var X=b(U/10);return X===0?tt:X<=st?L[X-1]===void 0?v(et,1):L[X-1]+v(et,1):tt}K=L[U-1]}return K===void 0?"":K})}},function(i,f,o){var h=o(36),y=o(15),b=o(34),v=o(18),E=o(77),A=o(112),k=o(84),T=o(40),M=o(85),I=Object.assign,C=Object.defineProperty,L=y([].concat);i.exports=!I||v(function(){if(h&&I({b:1},I(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var G={},V={},nt=Symbol(),st="abcdefghijklmnopqrst";return G[nt]=7,st.split("").forEach(function(at){V[at]=at}),I({},G)[nt]!=7||E(I({},V)).join("")!=st})?function(G,V){for(var nt=T(G),st=arguments.length,at=1,tt=A.f,et=k.f;st>at;)for(var K,U=M(arguments[at++]),X=tt?L(E(U),tt(U)):E(U),W=X.length,Z=0;W>Z;)K=X[Z++],h&&!b(et,U,K)||(nt[K]=U[K]);return nt}:I},function(i,f,o){var h=o(7),y=o(15),b=o(56),v=o(33),E=o(35),A=o(98),k=h.Function,T=y([].concat),M=y([].join),I={},C=function(L,G,V){if(!E(I,G)){for(var nt=[],st=0;st<G;st++)nt[st]="a["+st+"]";I[G]=k("C,a","return new C("+M(nt,",")+")")}return I[G](L,V)};i.exports=k.bind||function(L){var G=b(this),V=G.prototype,nt=A(arguments,1),st=function(){var at=T(nt,A(arguments));return this instanceof st?C(G,at.length,at):G.apply(L,at)};return v(V)&&(st.prototype=V),st}},function(i,f,o){var h=o(35);i.exports=function(y){return y!==void 0&&(h(y,"value")||h(y,"writable"))}},function(i,f,o){var h=o(15),y=o(44),b=o(39),v=/"/g,E=h("".replace);i.exports=function(A,k,T,M){var I=b(y(A)),C="<"+k;return T!==""&&(C+=" "+T+'="'+E(b(M),v,""")+'"'),C+">"+I+"</"+k+">"}},function(i,f,o){var h=o(18);i.exports=function(y){return h(function(){var b=""[y]('"');return b!==b.toLowerCase()||b.split('"').length>3})}},function(i,f,o){var h,y,b,v,E=o(16),A=o(71),k=o(7),T=o(46),M=o(34),I=o(208),C=o(42),L=o(149),G=o(102),V=o(78),nt=o(150),st=o(56),at=o(30),tt=o(33),et=o(119),K=o(92),U=o(117),X=o(120),W=o(164),Z=o(168).set,ut=o(209),Et=o(212),bt=o(213),Pt=o(170),Bt=o(214),St=o(58),gt=o(95),At=o(28),kt=o(215),Ut=o(128),re=o(70),xe=At("species"),Wt="Promise",Zt=St.getterFor(Wt),be=St.set,ft=St.getterFor(Wt),ct=I&&I.prototype,yt=I,Dt=ct,Yt=k.TypeError,Lt=k.document,_e=k.process,Me=Pt.f,Se=Me,ge=!!(Lt&&Lt.createEvent&&k.dispatchEvent),Tt=at(k.PromiseRejectionEvent),ce="unhandledrejection",pt=!1,ae=gt(Wt,function(){var it=K(yt),_t=it!==String(yt);if(!_t&&re===66||A&&!Dt.finally)return!0;if(re>=51&&/native code/.test(it))return!1;var Vt=new yt(function(fe){fe(1)}),Kt=function(fe){fe(function(){},function(){})};return(Vt.constructor={})[xe]=Kt,!(pt=Vt.then(function(){})instanceof Kt)||!_t&&kt&&!Tt}),ze=ae||!X(function(it){yt.all(it).catch(function(){})}),fr=function(it){var _t;return!(!tt(it)||!at(_t=it.then))&&_t},Be=function(it,_t){if(!it.notified){it.notified=!0;var Vt=it.reactions;ut(function(){for(var Kt=it.value,fe=it.state==1,Ge=0;Vt.length>Ge;){var rn,yn,Gr,Zr=Vt[Ge++],oe=fe?Zr.ok:Zr.fail,Oe=Zr.resolve,je=Zr.reject,Ie=Zr.domain;try{oe?(fe||(it.rejection===2&&Re(it),it.rejection=1),oe===!0?rn=Kt:(Ie&&Ie.enter(),rn=oe(Kt),Ie&&(Ie.exit(),Gr=!0)),rn===Zr.promise?je(Yt("Promise-chain cycle")):(yn=fr(rn))?M(yn,rn,Oe,je):Oe(rn)):je(Kt)}catch(vr){Ie&&!Gr&&Ie.exit(),je(vr)}}it.reactions=[],it.notified=!1,_t&&!it.rejection&&br(it)})}},rr=function(it,_t,Vt){var Kt,fe;ge?((Kt=Lt.createEvent("Event")).promise=_t,Kt.reason=Vt,Kt.initEvent(it,!1,!0),k.dispatchEvent(Kt)):Kt={promise:_t,reason:Vt},!Tt&&(fe=k["on"+it])?fe(Kt):it===ce&&bt("Unhandled promise rejection",Vt)},br=function(it){M(Z,k,function(){var _t,Vt=it.facade,Kt=it.value;if(Tr(it)&&(_t=Bt(function(){Ut?_e.emit("unhandledRejection",Kt,Vt):rr(ce,Vt,Kt)}),it.rejection=Ut||Tr(it)?2:1,_t.error))throw _t.value})},Tr=function(it){return it.rejection!==1&&!it.parent},Re=function(it){M(Z,k,function(){var _t=it.facade;Ut?_e.emit("rejectionHandled",_t):rr("rejectionhandled",_t,it.value)})},Xr=function(it,_t,Vt){return function(Kt){it(_t,Kt,Vt)}},Q=function(it,_t,Vt){it.done||(it.done=!0,Vt&&(it=Vt),it.value=_t,it.state=2,Be(it,!0))},dt=function(it,_t,Vt){if(!it.done){it.done=!0,Vt&&(it=Vt);try{if(it.facade===_t)throw Yt("Promise can't be resolved itself");var Kt=fr(_t);Kt?ut(function(){var fe={done:!1};try{M(Kt,_t,Xr(dt,fe,it),Xr(Q,fe,it))}catch(Ge){Q(fe,Ge,it)}}):(it.value=_t,it.state=1,Be(it,!1))}catch(fe){Q({done:!1},fe,it)}}};if(ae&&(Dt=(yt=function(it){et(this,Dt),st(it),M(h,this);var _t=Zt(this);try{it(Xr(dt,_t),Xr(Q,_t))}catch(Vt){Q(_t,Vt)}}).prototype,(h=function(it){be(this,{type:Wt,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=L(Dt,{then:function(it,_t){var Vt=ft(this),Kt=Vt.reactions,fe=Me(W(this,yt));return fe.ok=!at(it)||it,fe.fail=at(_t)&&_t,fe.domain=Ut?_e.domain:void 0,Vt.parent=!0,Kt[Kt.length]=fe,Vt.state!=0&&Be(Vt,!1),fe.promise},catch:function(it){return this.then(void 0,it)}}),y=function(){var it=new h,_t=Zt(it);this.promise=it,this.resolve=Xr(dt,_t),this.reject=Xr(Q,_t)},Pt.f=Me=function(it){return it===yt||it===b?new y(it):Se(it)},!A&&at(I)&&ct!==Object.prototype)){v=ct.then,pt||(C(ct,"then",function(it,_t){var Vt=this;return new yt(function(Kt,fe){M(v,Vt,Kt,fe)}).then(it,_t)},{unsafe:!0}),C(ct,"catch",Dt.catch,{unsafe:!0}));try{delete ct.constructor}catch(it){}G&&G(ct,Dt)}E({global:!0,wrap:!0,forced:ae},{Promise:yt}),V(yt,Wt,!1,!0),nt(Wt),b=T(Wt),E({target:Wt,stat:!0,forced:ae},{reject:function(it){var _t=Me(this);return M(_t.reject,void 0,it),_t.promise}}),E({target:Wt,stat:!0,forced:A||ae},{resolve:function(it){return Et(A&&this===b?yt:this,it)}}),E({target:Wt,stat:!0,forced:ze},{all:function(it){var _t=this,Vt=Me(_t),Kt=Vt.resolve,fe=Vt.reject,Ge=Bt(function(){var rn=st(_t.resolve),yn=[],Gr=0,Zr=1;U(it,function(oe){var Oe=Gr++,je=!1;Zr++,M(rn,_t,oe).then(function(Ie){je||(je=!0,yn[Oe]=Ie,--Zr||Kt(yn))},fe)}),--Zr||Kt(yn)});return Ge.error&&fe(Ge.value),Vt.promise},race:function(it){var _t=this,Vt=Me(_t),Kt=Vt.reject,fe=Bt(function(){var Ge=st(_t.resolve);U(it,function(rn){M(Ge,_t,rn).then(Vt.resolve,Kt)})});return fe.error&&Kt(fe.value),Vt.promise}})},function(i,f,o){var h=o(7);i.exports=h.Promise},function(i,f,o){var h,y,b,v,E,A,k,T,M=o(7),I=o(63),C=o(50).f,L=o(168).set,G=o(169),V=o(210),nt=o(211),st=o(128),at=M.MutationObserver||M.WebKitMutationObserver,tt=M.document,et=M.process,K=M.Promise,U=C(M,"queueMicrotask"),X=U&&U.value;X||(h=function(){var W,Z;for(st&&(W=et.domain)&&W.exit();y;){Z=y.fn,y=y.next;try{Z()}catch(ut){throw y?v():b=void 0,ut}}b=void 0,W&&W.enter()},G||st||nt||!at||!tt?!V&&K&&K.resolve?((k=K.resolve(void 0)).constructor=K,T=I(k.then,k),v=function(){T(h)}):st?v=function(){et.nextTick(h)}:(L=I(L,M),v=function(){L(h)}):(E=!0,A=tt.createTextNode(""),new at(h).observe(A,{characterData:!0}),v=function(){A.data=E=!E})),i.exports=X||function(W){var Z={fn:W,next:void 0};b&&(b.next=Z),y||(y=Z,v()),b=Z}},function(i,f,o){var h=o(55),y=o(7);i.exports=/ipad|iphone|ipod/i.test(h)&&y.Pebble!==void 0},function(i,f,o){var h=o(55);i.exports=/web0s(?!.*chrome)/i.test(h)},function(i,f,o){var h=o(32),y=o(33),b=o(170);i.exports=function(v,E){if(h(v),y(E)&&E.constructor===v)return E;var A=b.f(v);return(0,A.resolve)(E),A.promise}},function(i,f,o){var h=o(7);i.exports=function(y,b){var v=h.console;v&&v.error&&(arguments.length==1?v.error(y):v.error(y,b))}},function(i,f){i.exports=function(o){try{return{error:!1,value:o()}}catch(h){return{error:!0,value:h}}}},function(i,f){i.exports=typeof window=="object"},function(i,f,o){var h=o(40),y=o(75),b=o(45);i.exports=function(v){for(var E=h(this),A=b(E),k=arguments.length,T=y(k>1?arguments[1]:void 0,A),M=k>2?arguments[2]:void 0,I=M===void 0?A:y(M,A);I>T;)E[T++]=v;return E}},function(i,f,o){var h=o(16),y=o(7),b=o(15),v=o(59),E=o(160),A=o(218),k=o(18),T=y.RangeError,M=y.String,I=Math.floor,C=b(A),L=b("".slice),G=b(1 .toFixed),V=function(tt,et,K){return et===0?K:et%2==1?V(tt,et-1,K*tt):V(tt*tt,et/2,K)},nt=function(tt,et,K){for(var U=-1,X=K;++U<6;)X+=et*tt[U],tt[U]=X%1e7,X=I(X/1e7)},st=function(tt,et){for(var K=6,U=0;--K>=0;)U+=tt[K],tt[K]=I(U/et),U=U%et*1e7},at=function(tt){for(var et=6,K="";--et>=0;)if(K!==""||et===0||tt[et]!==0){var U=M(tt[et]);K=K===""?U:K+C("0",7-U.length)+U}return K};h({target:"Number",proto:!0,forced:k(function(){return G(8e-5,3)!=="0.000"||G(.9,0)!=="1"||G(1.255,2)!=="1.25"||G(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!k(function(){G({})})},{toFixed:function(tt){var et,K,U,X,W=E(this),Z=v(tt),ut=[0,0,0,0,0,0],Et="",bt="0";if(Z<0||Z>20)throw T("Incorrect fraction digits");if(W!=W)return"NaN";if(W<=-1e21||W>=1e21)return M(W);if(W<0&&(Et="-",W=-W),W>1e-21)if(K=(et=function(Pt){for(var Bt=0,St=Pt;St>=4096;)Bt+=12,St/=4096;for(;St>=2;)Bt+=1,St/=2;return Bt}(W*V(2,69,1))-69)<0?W*V(2,-et,1):W/V(2,et,1),K*=4503599627370496,(et=52-et)>0){for(nt(ut,0,K),U=Z;U>=7;)nt(ut,1e7,0),U-=7;for(nt(ut,V(10,U,1),0),U=et-1;U>=23;)st(ut,1<<23),U-=23;st(ut,1<<U),nt(ut,1,1),st(ut,2),bt=at(ut)}else nt(ut,0,K),nt(ut,1<<-et,0),bt=at(ut)+C("0",Z);return bt=Z>0?Et+((X=bt.length)<=Z?"0."+C("0",Z-X)+bt:L(bt,0,X-Z)+"."+L(bt,X-Z)):Et+bt}})},function(i,f,o){var h=o(7),y=o(59),b=o(39),v=o(44),E=h.RangeError;i.exports=function(A){var k=b(v(this)),T="",M=y(A);if(M<0||M==1/0)throw E("Wrong number of repetitions");for(;M>0;(M>>>=1)&&(k+=k))1&M&&(T+=k);return T}},function(i,f,o){var h=o(36),y=o(15),b=o(77),v=o(41),E=y(o(84).f),A=y([].push),k=function(T){return function(M){for(var I,C=v(M),L=b(C),G=L.length,V=0,nt=[];G>V;)I=L[V++],h&&!E(C,I)||A(nt,T?[I,C[I]]:C[I]);return nt}};i.exports={entries:k(!0),values:k(!1)}},function(i,f){i.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(i,f,o){o.r(f),o.d(f,"observer",function(){return Di}),o.d(f,"LogicFlow",function(){return nb}),o.d(f,"h",function(){return pt.g}),o.d(f,"LogicFlowUtil",function(){return h}),o.d(f,"BaseNode",function(){return Da}),o.d(f,"RectNode",function(){return Kv}),o.d(f,"CircleNode",function(){return Jv}),o.d(f,"PolygonNode",function(){return nm}),o.d(f,"DiamondNode",function(){return um}),o.d(f,"EllipseNode",function(){return pm}),o.d(f,"TextNode",function(){return ym}),o.d(f,"HtmlNode",function(){return bm}),o.d(f,"BaseEdge",function(){return dp}),o.d(f,"LineEdge",function(){return Nm}),o.d(f,"PolylineEdge",function(){return zm}),o.d(f,"BezierEdge",function(){return Hm}),o.d(f,"Arrow",function(){return c3}),o.d(f,"BaseEdgeModel",function(){return xf}),o.d(f,"BezierEdgeModel",function(){return tv}),o.d(f,"LineEdgeModel",function(){return wa}),o.d(f,"PolylineEdgeModel",function(){return Bs}),o.d(f,"BaseNodeModel",function(){return Ma}),o.d(f,"CircleNodeModel",function(){return av}),o.d(f,"DiamondNodeModel",function(){return fv}),o.d(f,"EllipseNodeModel",function(){return yv}),o.d(f,"PolygonNodeModel",function(){return Ov}),o.d(f,"RectNodeModel",function(){return jv}),o.d(f,"TextNodeModel",function(){return kv}),o.d(f,"HtmlNodeModel",function(){return Dv}),o.d(f,"EditConfigModel",function(){return Xl}),o.d(f,"GraphModel",function(){return jc}),o.d(f,"SnaplineModel",function(){return jO}),o.d(f,"Keyboard",function(){return pw}),o.d(f,"get",function(){return f1}),o.d(f,"defaults",function(){return h1}),o.d(f,"ElementState",function(){return dr}),o.d(f,"ModelType",function(){return qe}),o.d(f,"ElementType",function(){return Jr}),o.d(f,"EventType",function(){return he}),o.d(f,"formateAnchorConnectValidateData",function(){return lc});var h={};o.r(h),o.d(h,"createUuid",function(){return No}),o.d(h,"refreshGraphId",function(){return fu}),o.d(h,"StepDrag",function(){return Co}),o.d(h,"setupEdgeModel",function(){return td}),o.d(h,"isBboxOverLapping",function(){return Cf}),o.d(h,"filterRepeatPoints",function(){return Ei}),o.d(h,"getSimplePolyline",function(){return Rf}),o.d(h,"getExpandedBBox",function(){return vu}),o.d(h,"pointDirection",function(){return dc}),o.d(h,"getExpandedBBoxPoint",function(){return On}),o.d(h,"mergeBBox",function(){return Ji}),o.d(h,"getBBoxOfPoints",function(){return mu}),o.d(h,"getPointsFromBBox",function(){return yc}),o.d(h,"isPointOutsideBBox",function(){return bu}),o.d(h,"getBBoxXCrossPoints",function(){return ai}),o.d(h,"getBBoxYCrossPoints",function(){return We}),o.d(h,"getBBoxCrossPointsByPoint",function(){return If}),o.d(h,"estimateDistance",function(){return Bn}),o.d(h,"costByPoints",function(){return Lf}),o.d(h,"heuristicCostEstimate",function(){return yr}),o.d(h,"rebuildPath",function(){return ed}),o.d(h,"removeClosePointFromOpenList",function(){return zf}),o.d(h,"isSegmentsIntersected",function(){return ji}),o.d(h,"isSegmentCrossingBBox",function(){return Bf}),o.d(h,"getNextNeighborPoints",function(){return rd}),o.d(h,"pathFinder",function(){return nd}),o.d(h,"getBoxByOriginNode",function(){return Ff}),o.d(h,"pointFilter",function(){return gc}),o.d(h,"getPolylinePoints",function(){return vc}),o.d(h,"getLongestEdge",function(){return od}),o.d(h,"isSegmentsInNode",function(){return Uf}),o.d(h,"isSegmentsCrossNode",function(){return Hf}),o.d(h,"getCrossPointInRect",function(){return un}),o.d(h,"segmentDirection",function(){return mn}),o.d(h,"points2PointsList",function(){return Qi}),o.d(h,"getSimplePoints",function(){return Yf}),o.d(h,"getBytesLength",function(){return Xf}),o.d(h,"getTextWidth",function(){return ad}),o.d(h,"getAppendAttributes",function(){return Gf}),o.d(h,"getBezierControlPoints",function(){return ta}),o.d(h,"getBezierPoints",function(){return Ys}),o.d(h,"getEndTangent",function(){return Xs}),o.d(h,"getClosestPointOfPolyline",function(){return Wf}),o.d(h,"pickEdgeConfig",function(){return ud}),o.d(h,"twoPointDistance",function(){return Vf}),o.d(h,"createEdgeGenerator",function(){return cd}),o.d(h,"snapToGrid",function(){return ni}),o.d(h,"getGridOffset",function(){return lu}),o.d(h,"sampleCubic",function(){return Xe}),o.d(h,"getThetaOfVector",function(){return zn}),o.d(h,"degrees",function(){return Vr}),o.d(h,"Vector",function(){return bn}),o.d(h,"Point",function(){return _u}),o.d(h,"Matrix",function(){return ve}),o.d(h,"RotateMatrix",function(){return Te}),o.d(h,"ScaleMatrix",function(){return cn}),o.d(h,"TranslateMatrix",function(){return wn});var y=o(1),b=o(10);if(!b.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!y.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var v=o(43),E=Object(v.b)("observerBatching");function A(e){e()}var k=!1;function T(){return k}function M(e){return Object(y.t)(e)}var I,C=1e4,L=new Set;function G(){I===void 0&&(I=setTimeout(V,1e4))}function V(){I=void 0;var e=Date.now();L.forEach(function(t){var r=t.current;r&&e>=r.cleanAt&&(r.reaction.dispose(),t.current=null,L.delete(t))}),L.size>0&&G()}var nt=!1,st=[],at={};function tt(e){return"observer"+e}function et(e,t,r){t===void 0&&(t="observed"),r===void 0&&(r=at),T();var n,s=function(x){return function(){nt?st.push(x):x()}}((r.useForceUpdate||v.d)()),u=b.d.useRef(null);if(!u.current){var p=new y.c(tt(t),function(){g.mounted?s():(p.dispose(),u.current=null)}),g=function(x){return{cleanAt:Date.now()+C,reaction:x}}(p);u.current=g,n=u,L.add(n),G()}var m=u.current.reaction;return b.d.useDebugValue(m,M),b.d.useEffect(function(){var x;return x=u,L.delete(x),u.current?u.current.mounted=!0:(u.current={reaction:new y.c(tt(t),function(){s()}),cleanAt:1/0},s()),function(){u.current.reaction.dispose(),u.current=null}},[]),function(x){nt=!0,st=[];try{var j=x();nt=!1;var D=st.length>0?st:void 0;return b.d.useLayoutEffect(function(){D&&D.forEach(function(R){return R()})},[D]),j}finally{nt=!1}}(function(){var x,j;if(m.track(function(){try{x=e()}catch(D){j=D}}),j)throw j;return x})}var K=function(){return K=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},K.apply(this,arguments)};function U(e,t){var r,n,s,u=K({forwardRef:!1},t),p=e.displayName||e.name,g=function(m,x){return et(function(){return e(m,x)},p)};return g.displayName=p,r=u.forwardRef?Object(b.f)(Object(b.e)(g)):Object(b.f)(g),n=e,s=r,Object.keys(n).forEach(function(m){X[m]||Object.defineProperty(s,m,Object.getOwnPropertyDescriptor(n,m))}),r.displayName=p,r}var X={$$typeof:!0,render:!0,compare:!0,type:!0};function W(e){var t=e.children,r=e.render,n=t||r;return typeof n!="function"?null:et(n)}function Z(e,t,r,n,s){var u=t==="children"?"render":"children",p=typeof e[t]=="function",g=typeof e[u]=="function";return p&&g?new Error("MobX Observer: Do not use children and render in the same time in`"+r):p||g?null:new Error("Invalid prop `"+s+"` of type `"+typeof e[t]+"` supplied to `"+r+"`, expected `function`.")}W.propTypes={children:Z,render:Z},W.displayName="Observer";var ut;(ut=b.g)||(ut=A),Object(y.n)({reactionScheduler:ut}),Object(v.a)()[E]=!0;var Et=0,bt={};function Pt(e){return bt[e]||(bt[e]=function(t){if(typeof Symbol=="function")return Symbol(t);var r="__$mobx-react "+t+" ("+Et+")";return Et++,r}(e)),bt[e]}function Bt(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var s=0;s<r.length;s++)if(!Object.hasOwnProperty.call(t,r[s])||!St(e[r[s]],t[r[s]]))return!1;return!0}function St(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function gt(e,t,r){Object.hasOwnProperty.call(e,t)?e[t]=r:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})}var At=Pt("patchMixins"),kt=Pt("patchedDefinition");function Ut(e,t){for(var r=this,n=arguments.length,s=new Array(n>2?n-2:0),u=2;u<n;u++)s[u-2]=arguments[u];t.locks++;try{var p;return e!=null&&(p=e.apply(this,s)),p}finally{t.locks--,t.locks===0&&t.methods.forEach(function(g){g.apply(r,s)})}}function re(e,t){return function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];Ut.call.apply(Ut,[this,e,t].concat(n))}}function xe(e,t,r){var n=function(g,m){var x=g[At]=g[At]||{},j=x[m]=x[m]||{};return j.locks=j.locks||0,j.methods=j.methods||[],j}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var s=Object.getOwnPropertyDescriptor(e,t);if(!s||!s[kt]){var u=e[t],p=Wt(e,t,s?s.enumerable:void 0,n,u);Object.defineProperty(e,t,p)}}function Wt(e,t,r,n,s){var u,p=re(s,n);return(u={})[kt]=!0,u.get=function(){return p},u.set=function(g){if(this===e)p=re(g,n);else{var m=Wt(this,t,r,n,g);Object.defineProperty(this,t,m)}},u.configurable=!0,u.enumerable=r,u}var Zt=y.a||"$mobx",be=Pt("isMobXReactObserver"),ft=Pt("isUnmounted"),ct=Pt("skipRender"),yt=Pt("isForcingUpdate");function Dt(e){var t=e.prototype;if(e[be]?Yt(t):e[be]=!0,t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==b.b)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==_e)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=_e;Me(t,"props"),Me(t,"state");var r=t.render;return t.render=function(){return Lt.call(this,r)},xe(t,"componentWillUnmount",function(){var n;(n=this.render[Zt])===null||n===void 0||n.dispose(),this[ft]=!0,!this.render[Zt]&&Yt(this)}),e}function Yt(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function Lt(e){var t=this;gt(this,ct,!1),gt(this,yt,!1);var r=Yt(this),n=e.bind(this),s=!1,u=new y.c(r+".render()",function(){if(!s&&(s=!0,t[ft]!==!0)){var g=!0;try{gt(t,yt,!0),t[ct]||b.a.prototype.forceUpdate.call(t),g=!1}finally{gt(t,yt,!1),g&&u.dispose()}}});function p(){s=!1;var g=void 0,m=void 0;if(u.track(function(){try{m=Object(y.d)(!1,n)}catch(x){g=x}}),g)throw g;return m}return u.reactComponent=this,p[Zt]=u,this.render=p,p.call(this)}function _e(e,t){return this.state!==t||!Bt(this.props,e)}function Me(e,t){var r=Pt("reactProp_"+t+"_valueHolder"),n=Pt("reactProp_"+t+"_atomHolder");function s(){return this[n]||gt(this,n,Object(y.o)("reactive "+t)),this[n]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var u=!1;return y.f&&y.e&&(u=Object(y.f)(!0)),s.call(this).reportObserved(),y.f&&y.e&&Object(y.e)(u),this[r]},set:function(u){this[yt]||Bt(this[r],u)?gt(this,r,u):(gt(this,r,u),gt(this,ct,!0),s.call(this).reportChanged(),gt(this,ct,!1))}})}var Se=typeof Symbol=="function"&&Symbol.for,ge=Se?Symbol.for("react.forward_ref"):typeof b.e=="function"&&Object(b.e)(function(e){return null}).$$typeof,Tt=Se?Symbol.for("react.memo"):typeof b.f=="function"&&Object(b.f)(function(e){return null}).$$typeof;function ce(e){if(e.isMobxInjector,Tt&&e.$$typeof===Tt)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(ge&&e.$$typeof===ge){var t=e.render;if(typeof t!="function")throw new Error("render property of ForwardRef was not a function");return Object(b.e)(function(){var r=arguments;return Object(b.c)(W,null,function(){return t.apply(void 0,r)})})}return typeof e!="function"||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(b.a,e)?Dt(e):U(e)}if(!b.a)throw new Error("mobx-react requires React to be available");if(!y.C)throw new Error("mobx-react requires mobx to be available");var pt=o(0);o(4),o(8),o(2),o(3),o(52),o(6),o(5),o(11),o(37),o(26),o(21),o(20),o(24),o(22),o(25),o(9),o(17),o(23),o(19),o(192),o(156),o(104),o(157),o(158),o(199),o(64);var ae=function(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s},ze=function(){this.__data__=[],this.size=0},fr=function(e,t){return e===t||e!=e&&t!=t},Be=function(e,t){for(var r=e.length;r--;)if(fr(e[r][0],t))return r;return-1},rr=Array.prototype.splice,br=function(e){var t=this.__data__,r=Be(t,e);return!(r<0)&&(r==t.length-1?t.pop():rr.call(t,r,1),--this.size,!0)},Tr=function(e){var t=this.__data__,r=Be(t,e);return r<0?void 0:t[r][1]},Re=function(e){return Be(this.__data__,e)>-1},Xr=function(e,t){var r=this.__data__,n=Be(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Q(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Q.prototype.clear=ze,Q.prototype.delete=br,Q.prototype.get=Tr,Q.prototype.has=Re,Q.prototype.set=Xr;var dt=Q,it=function(){this.__data__=new dt,this.size=0},_t=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Vt=function(e){return this.__data__.get(e)},Kt=function(e){return this.__data__.has(e)},fe=o(31),Ge=fe.a.Symbol,rn=Object.prototype,yn=rn.hasOwnProperty,Gr=rn.toString,Zr=Ge?Ge.toStringTag:void 0,oe=function(e){var t=yn.call(e,Zr),r=e[Zr];try{e[Zr]=void 0;var n=!0}catch(u){}var s=Gr.call(e);return n&&(t?e[Zr]=r:delete e[Zr]),s},Oe=Object.prototype.toString,je=function(e){return Oe.call(e)},Ie=Ge?Ge.toStringTag:void 0,vr=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Ie&&Ie in Object(e)?oe(e):je(e)},Ir=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")},Xo,So=function(e){if(!Ir(e))return!1;var t=vr(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},Go=fe.a["__core-js_shared__"],Bi=(Xo=/[^.]+$/.exec(Go&&Go.keys&&Go.keys.IE_PROTO||""))?"Symbol(src)_1."+Xo:"",Dl=function(e){return!!Bi&&Bi in e},Nu=Function.prototype.toString,io=function(e){if(e!=null){try{return Nu.call(e)}catch(t){}try{return e+""}catch(t){}}return""},fa=/^\[object .+?Constructor\]$/,se=Function.prototype,Nl=Object.prototype,Cu=se.toString,Ru=Nl.hasOwnProperty,Mn=RegExp("^"+Cu.call(Ru).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yn=function(e){return!(!Ir(e)||Dl(e))&&(So(e)?Mn:fa).test(io(e))},Ya=function(e,t){return e==null?void 0:e[t]},mo=function(e,t){var r=Ya(e,t);return Yn(r)?r:void 0},ao=mo(fe.a,"Map"),bo=mo(Object,"create"),Iu=function(){this.__data__=bo?bo(null):{},this.size=0},Lu=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$c=Object.prototype.hasOwnProperty,pa=function(e){var t=this.__data__;if(bo){var r=t[e];return r==="__lodash_hash_undefined__"?void 0:r}return $c.call(t,e)?t[e]:void 0},Jc=Object.prototype.hasOwnProperty,zu=function(e){var t=this.__data__;return bo?t[e]!==void 0:Jc.call(t,e)},Cl=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=bo&&t===void 0?"__lodash_hash_undefined__":t,this};function pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}pi.prototype.clear=Iu,pi.prototype.delete=Lu,pi.prototype.get=pa,pi.prototype.has=zu,pi.prototype.set=Cl;var Qc=pi,Wo=function(){this.size=0,this.__data__={hash:new Qc,map:new(ao||dt),string:new Qc}},Bu=function(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null},Xa=function(e,t){var r=e.__data__;return Bu(t)?r[typeof t=="string"?"string":"hash"]:r.map},Fu=function(e){var t=Xa(this,e).delete(e);return this.size-=t?1:0,t},Uu=function(e){return Xa(this,e).get(e)},Rl=function(e){return Xa(this,e).has(e)},ts=function(e,t){var r=Xa(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hr.prototype.clear=Wo,hr.prototype.delete=Fu,hr.prototype.get=Uu,hr.prototype.has=Rl,hr.prototype.set=ts;var pr=hr,es=function(e,t){var r=this.__data__;if(r instanceof dt){var n=r.__data__;if(!ao||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new pr(n)}return r.set(e,t),this.size=r.size,this};function Fi(e){var t=this.__data__=new dt(e);this.size=t.size}Fi.prototype.clear=it,Fi.prototype.delete=_t,Fi.prototype.get=Vt,Fi.prototype.has=Kt,Fi.prototype.set=es;var Vo=Fi,Hu=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},rs=function(e){return this.__data__.has(e)};function Ur(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new pr;++t<r;)this.add(e[t])}Ur.prototype.add=Ur.prototype.push=Hu,Ur.prototype.has=rs;var Yu=Ur,ha=function(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Xu=function(e,t){return e.has(t)},Ga=function(e,t,r,n,s,u){var p=1&r,g=e.length,m=t.length;if(g!=m&&!(p&&m>g))return!1;var x=u.get(e),j=u.get(t);if(x&&j)return x==t&&j==e;var D=-1,R=!0,Y=2&r?new Yu:void 0;for(u.set(e,t),u.set(t,e);++D<g;){var J=e[D],ot=t[D];if(n)var vt=p?n(ot,J,D,t,e,u):n(J,ot,D,e,t,u);if(vt!==void 0){if(vt)continue;R=!1;break}if(Y){if(!ha(t,function(mt,xt){if(!Xu(Y,xt)&&(J===mt||s(J,mt,r,n,u)))return Y.push(xt)})){R=!1;break}}else if(J!==ot&&!s(J,ot,r,n,u)){R=!1;break}}return u.delete(e),u.delete(t),R},gn=fe.a.Uint8Array,Gu=function(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r},ns=function(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r},Wu=Ge?Ge.prototype:void 0,Wa=Wu?Wu.valueOf:void 0,Ui=function(e,t,r,n,s,u,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new gn(e),new gn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var g=Gu;case"[object Set]":var m=1&n;if(g||(g=ns),e.size!=t.size&&!m)return!1;var x=p.get(e);if(x)return x==t;n|=2,p.set(e,t);var j=Ga(g(e),g(t),n,s,u,p);return p.delete(e),j;case"[object Symbol]":if(Wa)return Wa.call(e)==Wa.call(t)}return!1},Ao=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e},xr=Array.isArray,os=function(e,t,r){var n=t(e);return xr(e)?n:Ao(n,r(e))},Dn=function(e,t){for(var r=-1,n=e==null?0:e.length,s=0,u=[];++r<n;){var p=e[r];t(p,r,e)&&(u[s++]=p)}return u},is=function(){return[]},as=Object.prototype.propertyIsEnumerable,xn=Object.getOwnPropertySymbols,Nn=xn?function(e){return e==null?[]:(e=Object(e),Dn(xn(e),function(t){return as.call(e,t)}))}:is,Vu=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},cr=function(e){return e!=null&&typeof e=="object"},nn=function(e){return cr(e)&&vr(e)=="[object Arguments]"},Va=Object.prototype,us=Va.hasOwnProperty,Ku=Va.propertyIsEnumerable,Ka=nn(function(){return arguments}())?nn:function(e){return cr(e)&&us.call(e,"callee")&&!Ku.call(e,"callee")},Po=Ka,Ko=o(48),Hi=/^(?:0|[1-9]\d*)$/,Cn=function(e,t){var r=typeof e;return!!(t=t!=null?t:9007199254740991)&&(r=="number"||r!="symbol"&&Hi.test(e))&&e>-1&&e%1==0&&e<t},qo=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},nr={};nr["[object Float32Array]"]=nr["[object Float64Array]"]=nr["[object Int8Array]"]=nr["[object Int16Array]"]=nr["[object Int32Array]"]=nr["[object Uint8Array]"]=nr["[object Uint8ClampedArray]"]=nr["[object Uint16Array]"]=nr["[object Uint32Array]"]=!0,nr["[object Arguments]"]=nr["[object Array]"]=nr["[object ArrayBuffer]"]=nr["[object Boolean]"]=nr["[object DataView]"]=nr["[object Date]"]=nr["[object Error]"]=nr["[object Function]"]=nr["[object Map]"]=nr["[object Number]"]=nr["[object Object]"]=nr["[object RegExp]"]=nr["[object Set]"]=nr["[object String]"]=nr["[object WeakMap]"]=!1;var Rn=function(e){return cr(e)&&qo(e.length)&&!!nr[vr(e)]},ko=function(e){return function(t){return e(t)}},fn=o(49),qa=fn.a&&fn.a.isTypedArray,da=qa?ko(qa):Rn,qu=Object.prototype.hasOwnProperty,Lr=function(e,t){var r=xr(e),n=!r&&Po(e),s=!r&&!n&&Object(Ko.a)(e),u=!r&&!n&&!s&&da(e),p=r||n||s||u,g=p?Vu(e.length,String):[],m=g.length;for(var x in e)!t&&!qu.call(e,x)||p&&(x=="length"||s&&(x=="offset"||x=="parent")||u&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||Cn(x,m))||g.push(x);return g},Za=Object.prototype,Zo=function(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||Za)},uo=function(e,t){return function(r){return e(t(r))}},Zu=uo(Object.keys,Object),Il=Object.prototype.hasOwnProperty,$u=function(e){if(!Zo(e))return Zu(e);var t=[];for(var r in Object(e))Il.call(e,r)&&r!="constructor"&&t.push(r);return t},$r=function(e){return e!=null&&qo(e.length)&&!So(e)},Yi=function(e){return $r(e)?Lr(e):$u(e)},To=function(e){return os(e,Yi,Nn)},En=Object.prototype.hasOwnProperty,Ju=function(e,t,r,n,s,u){var p=1&r,g=To(e),m=g.length;if(m!=To(t).length&&!p)return!1;for(var x=m;x--;){var j=g[x];if(!(p?j in t:En.call(t,j)))return!1}var D=u.get(e),R=u.get(t);if(D&&R)return D==t&&R==e;var Y=!0;u.set(e,t),u.set(t,e);for(var J=p;++x<m;){var ot=e[j=g[x]],vt=t[j];if(n)var mt=p?n(vt,ot,j,t,e,u):n(ot,vt,j,e,t,u);if(!(mt===void 0?ot===vt||s(ot,vt,r,n,u):mt)){Y=!1;break}J||(J=j=="constructor")}if(Y&&!J){var xt=e.constructor,Rt=t.constructor;xt==Rt||!("constructor"in e)||!("constructor"in t)||typeof xt=="function"&&xt instanceof xt&&typeof Rt=="function"&&Rt instanceof Rt||(Y=!1)}return u.delete(e),u.delete(t),Y},Xn=mo(fe.a,"DataView"),hi=mo(fe.a,"Promise"),$a=mo(fe.a,"Set"),Mo=mo(fe.a,"WeakMap"),Gn="[object Map]",In="[object Promise]",co="[object Set]",Do="[object WeakMap]",wt="[object DataView]",Nt=io(Xn),It=io(ao),Jt=io(hi),Fe=io($a),$e=io(Mo),jr=vr;(Xn&&jr(new Xn(new ArrayBuffer(1)))!=wt||ao&&jr(new ao)!=Gn||hi&&jr(hi.resolve())!=In||$a&&jr(new $a)!=co||Mo&&jr(new Mo)!=Do)&&(jr=function(e){var t=vr(e),r=t=="[object Object]"?e.constructor:void 0,n=r?io(r):"";if(n)switch(n){case Nt:return wt;case It:return Gn;case Jt:return In;case Fe:return co;case $e:return Do}return t});var O=jr,w="[object Arguments]",P="[object Array]",z="[object Object]",q=Object.prototype.hasOwnProperty,ht=function(e,t,r,n,s,u){var p=xr(e),g=xr(t),m=p?P:O(e),x=g?P:O(t),j=(m=m==w?z:m)==z,D=(x=x==w?z:x)==z,R=m==x;if(R&&Object(Ko.a)(e)){if(!Object(Ko.a)(t))return!1;p=!0,j=!1}if(R&&!j)return u||(u=new Vo),p||da(e)?Ga(e,t,r,n,s,u):Ui(e,t,m,r,n,s,u);if(!(1&r)){var Y=j&&q.call(e,"__wrapped__"),J=D&&q.call(t,"__wrapped__");if(Y||J){var ot=Y?e.value():e,vt=J?t.value():t;return u||(u=new Vo),s(ot,vt,r,n,u)}}return!!R&&(u||(u=new Vo),Ju(e,t,r,n,s,u))},jt=function e(t,r,n,s,u){return t===r||(t==null||r==null||!cr(t)&&!cr(r)?t!=t&&r!=r:ht(t,r,n,s,e,u))},Ft=function(e,t,r,n){var s=r.length,u=s,p=!n;if(e==null)return!u;for(e=Object(e);s--;){var g=r[s];if(p&&g[2]?g[1]!==e[g[0]]:!(g[0]in e))return!1}for(;++s<u;){var m=(g=r[s])[0],x=e[m],j=g[1];if(p&&g[2]){if(x===void 0&&!(m in e))return!1}else{var D=new Vo;if(n)var R=n(x,j,m,e,t,D);if(!(R===void 0?jt(j,x,3,n,D):R))return!1}}return!0},ie=function(e){return e==e&&!Ir(e)},Ke=function(e){for(var t=Yi(e),r=t.length;r--;){var n=t[r],s=e[n];t[r]=[n,s,ie(s)]}return t},Qt=function(e,t){return function(r){return r!=null&&r[e]===t&&(t!==void 0||e in Object(r))}},_r=function(e){var t=Ke(e);return t.length==1&&t[0][2]?Qt(t[0][0],t[0][1]):function(r){return r===e||Ft(r,e,t)}},Ue=function(e){return typeof e=="symbol"||cr(e)&&vr(e)=="[object Symbol]"},lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/,Mr=function(e,t){if(xr(e))return!1;var r=typeof e;return!(r!="number"&&r!="symbol"&&r!="boolean"&&e!=null&&!Ue(e))||so.test(e)||!lr.test(e)||t!=null&&e in Object(t)};function Ln(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],u=r.cache;if(u.has(s))return u.get(s);var p=e.apply(this,n);return r.cache=u.set(s,p)||u,p};return r.cache=new(Ln.Cache||pr),r}Ln.Cache=pr;var $o=Ln,Jo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ya=/\\(\\)?/g,Qu=function(e){var t=$o(e,function(n){return r.size===500&&r.clear(),n}),r=t.cache;return t}(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jo,function(r,n,s,u){t.push(s?u.replace(ya,"$1"):n||r)}),t}),di=Ge?Ge.prototype:void 0,Ja=di?di.toString:void 0,jn=function e(t){if(typeof t=="string")return t;if(xr(t))return ae(t,e)+"";if(Ue(t))return Ja?Ja.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r},ga=function(e){return e==null?"":jn(e)},Xi=function(e,t){return xr(e)?e:Mr(e,t)?[e]:Qu(ga(e))},yi=function(e){if(typeof e=="string"||Ue(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t},gi=function(e,t){for(var r=0,n=(t=Xi(t,e)).length;e!=null&&r<n;)e=e[yi(t[r++])];return r&&r==n?e:void 0},tc=function(e,t,r){var n=e==null?void 0:gi(e,t);return n===void 0?r:n},og=function(e,t){return e!=null&&t in Object(e)},ig=function(e,t,r){for(var n=-1,s=(t=Xi(t,e)).length,u=!1;++n<s;){var p=yi(t[n]);if(!(u=e!=null&&r(e,p)))break;e=e[p]}return u||++n!=s?u:!!(s=e==null?0:e.length)&&qo(s)&&Cn(p,s)&&(xr(e)||Po(e))},oh=function(e,t){return e!=null&&ig(e,t,og)},cs=function(e,t){return Mr(e)&&ie(t)?Qt(yi(e),t):function(r){var n=tc(r,e);return n===void 0&&n===t?oh(r,e):jt(t,n,3)}},Qa=function(e){return e},Ll=function(e){return function(t){return t==null?void 0:t[e]}},ag=function(e){return function(t){return gi(t,e)}},ih=function(e){return Mr(e)?Ll(yi(e)):ag(e)},ug=function(e){return typeof e=="function"?e:e==null?Qa:typeof e=="object"?xr(e)?cs(e[0],e[1]):_r(e):ih(e)},ah=function(e){return function(t,r,n){for(var s=-1,u=Object(t),p=n(t),g=p.length;g--;){var m=p[e?g:++s];if(r(u[m],m,u)===!1)break}return t}}(),pn=function(e,t){return function(r,n){if(r==null)return r;if(!$r(r))return e(r,n);for(var s=r.length,u=t?s:-1,p=Object(r);(t?u--:++u<s)&&n(p[u],u,p)!==!1;);return r}}(function(e,t){return e&&ah(e,t,Yi)}),Sn=function(e,t){var r=-1,n=$r(e)?Array(e.length):[];return pn(e,function(s,u,p){n[++r]=t(s,u,p)}),n},ss=function(e,t){return(xr(e)?ae:Sn)(e,ug(t))};Object(y.n)({isolateGlobalState:!0});var ls=function(){try{var e=mo(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),fs=function(e,t,r){t=="__proto__"&&ls?ls(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},cg=Object.prototype.hasOwnProperty,tu=function(e,t,r){var n=e[t];cg.call(e,t)&&fr(n,r)&&(r!==void 0||t in e)||fs(e,t,r)},Qo=function(e,t,r,n){var s=!r;r||(r={});for(var u=-1,p=t.length;++u<p;){var g=t[u],m=n?n(r[g],e[g],g,r,e):void 0;m===void 0&&(m=e[g]),s?fs(r,g,m):tu(r,g,m)}return r},zl=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},va=Math.max,eu=function(e,t,r){return t=va(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,u=va(n.length-t,0),p=Array(u);++s<u;)p[s]=n[t+s];s=-1;for(var g=Array(t+1);++s<t;)g[s]=n[s];return g[t]=r(p),zl(e,this,g)}},ec=function(e){return function(){return e}},ps=ls?function(e,t){return ls(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:Qa,ru=Date.now,sg=function(e){var t=0,r=0;return function(){var n=ru(),s=16-(n-r);if(r=n,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},uh=sg(ps),lg=function(e,t){return uh(eu(e,t,Qa),e+"")},fg=function(e,t,r){if(!Ir(r))return!1;var n=typeof t;return!!(n=="number"?$r(r)&&Cn(t,r.length):n=="string"&&t in r)&&fr(r[t],e)},ch=function(e){return lg(function(t,r){var n=-1,s=r.length,u=s>1?r[s-1]:void 0,p=s>2?r[2]:void 0;for(u=e.length>3&&typeof u=="function"?(s--,u):void 0,p&&fg(r[0],r[1],p)&&(u=s<3?void 0:u,s=1),t=Object(t);++n<s;){var g=r[n];g&&e(t,g,n,u)}return t})},hs=Object.prototype.hasOwnProperty,hn=ch(function(e,t){if(Zo(t)||$r(t))Qo(t,Yi(t),e);else for(var r in t)hs.call(t,r)&&tu(e,r,t[r])}),sh=function(e,t,r,n){if(!Ir(e))return e;for(var s=-1,u=(t=Xi(t,e)).length,p=u-1,g=e;g!=null&&++s<u;){var m=yi(t[s]),x=r;if(m==="__proto__"||m==="constructor"||m==="prototype")return e;if(s!=p){var j=g[m];(x=n?n(j,m,g):void 0)===void 0&&(x=Ir(j)?j:Cn(t[s+1])?[]:{})}tu(g,m,x),g=g[m]}return e},B=function(e,t,r){for(var n=-1,s=t.length,u={};++n<s;){var p=t[n],g=gi(e,p);r(g,p)&&sh(u,Xi(p,e),g)}return u},nu=function(e,t){return B(e,t,function(r,n){return oh(e,n)})},rc=Ge?Ge.isConcatSpreadable:void 0,_o=function(e){return xr(e)||Po(e)||!!(rc&&e&&e[rc])},ar=function e(t,r,n,s,u){var p=-1,g=t.length;for(n||(n=_o),u||(u=[]);++p<g;){var m=t[p];r>0&&n(m)?r>1?e(m,r-1,n,s,u):Ao(u,m):s||(u[u.length]=m)}return u},ma=function(e){return e!=null&&e.length?ar(e,1):[]},Or,ti,Gi,Oo,Bl,Fl,lh,fh,ds,ou,nc,ph,Ul,ei,ys,Wi,lo,Hl,Yl,vi=function(e){return uh(eu(e,void 0,ma),e+"")}(function(e,t){return e==null?{}:nu(e,t)});function Dr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function hh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wr(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var dr,vn,qe,Jr,he,Sr,gs={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotation:!1,nodeSelectedOutline:!0,nodeTextEdit:!1,edgeTextEdit:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},mi=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],Xl=(ti=Wr((Or=function(){function e(n){(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),Dr(this,"isSilentMode",ti,this),Dr(this,"stopZoomGraph",Gi,this),Dr(this,"stopScrollGraph",Oo,this),Dr(this,"stopMoveGraph",Bl,this),Dr(this,"adjustEdge",Fl,this),Dr(this,"adjustEdgeMiddle",lh,this),Dr(this,"adjustEdgeStartAndEnd",fh,this),Dr(this,"adjustNodePosition",ds,this),Dr(this,"hideAnchors",ou,this),Dr(this,"allowRotation",nc,this),Dr(this,"hoverOutline",ph,this),Dr(this,"nodeSelectedOutline",Ul,this),Dr(this,"edgeSelectedOutline",ei,this),Dr(this,"nodeTextEdit",ys,this),Dr(this,"edgeTextEdit",Wi,this),Dr(this,"nodeTextDraggable",lo,this),Dr(this,"edgeTextDraggable",Hl,this),Dr(this,"autoExpand",Yl,this),dh(this,"multipleSelectKey",""),dh(this,"defaultConfig",{}),hn(this,this.getConfigDetail(n))}var t,r;return t=e,(r=[{key:"updateEditConfig",value:function(n){var s=this.getConfigDetail(n);hn(this,s)}},{key:"getConfigDetail",value:function(n){var s=n.isSilentMode,u=n.textEdit,p={};if(s===!1&&hn(p,this.defaultConfig),s===!0&&s!==this.isSilentMode){var g=vi(gs,mi);this.defaultConfig={stopZoomGraph:this.stopZoomGraph,stopScrollGraph:this.stopScrollGraph,stopMoveGraph:this.stopMoveGraph,adjustEdge:this.adjustEdge,adjustEdgeMiddle:this.adjustEdgeMiddle,adjustEdgeStartAndEnd:this.adjustEdgeStartAndEnd,adjustNodePosition:this.adjustNodePosition,hideAnchors:this.hideAnchors,allowRotation:this.allowRotation,hoverOutline:this.hoverOutline,nodeSelectedOutline:this.nodeSelectedOutline,edgeSelectedOutline:this.edgeSelectedOutline,nodeTextEdit:this.nodeTextEdit,edgeTextEdit:this.edgeTextEdit,nodeTextDraggable:this.nodeTextDraggable,edgeTextDraggable:this.edgeTextDraggable,autoExpand:this.autoExpand},hn(p,g)}u===!1&&hn(p,{nodeTextEdit:!1,edgeTextEdit:!1});var m=vi(n,mi);return hn(p,m)}},{key:"getConfig",value:function(){return vi(this,mi)}}])&&hh(t.prototype,r),e}()).prototype,"isSilentMode",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Gi=Wr(Or.prototype,"stopZoomGraph",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Oo=Wr(Or.prototype,"stopScrollGraph",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bl=Wr(Or.prototype,"stopMoveGraph",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fl=Wr(Or.prototype,"adjustEdge",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),lh=Wr(Or.prototype,"adjustEdgeMiddle",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fh=Wr(Or.prototype,"adjustEdgeStartAndEnd",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ds=Wr(Or.prototype,"adjustNodePosition",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ou=Wr(Or.prototype,"hideAnchors",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nc=Wr(Or.prototype,"allowRotation",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ph=Wr(Or.prototype,"hoverOutline",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ul=Wr(Or.prototype,"nodeSelectedOutline",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ei=Wr(Or.prototype,"edgeSelectedOutline",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ys=Wr(Or.prototype,"nodeTextEdit",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Wi=Wr(Or.prototype,"edgeTextEdit",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),lo=Wr(Or.prototype,"nodeTextDraggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Hl=Wr(Or.prototype,"edgeTextDraggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yl=Wr(Or.prototype,"autoExpand",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wr(Or.prototype,"updateEditConfig",[y.k],Object.getOwnPropertyDescriptor(Or.prototype,"updateEditConfig"),Or.prototype),Or);o(65),o(66),function(e){e[e.DEFAULT=1]="DEFAULT",e[e.TEXT_EDIT=2]="TEXT_EDIT",e[e.SHOW_MENU=3]="SHOW_MENU",e[e.ALLOW_CONNECT=4]="ALLOW_CONNECT",e[e.NOT_ALLOW_CONNECT=5]="NOT_ALLOW_CONNECT"}(dr||(dr={})),function(e){e.KEY="logic-flow",e.NODE_NAME="lf-node",e.EDGE_NAME="lf-edge"}(vn||(vn={})),function(e){e.NODE="node",e.CIRCLE_NODE="circle-node",e.POLYGON_NODE="polygon-node",e.RECT_NODE="rect-node",e.TEXT_NODE="text-node",e.ELLIPSE_NODE="ellipse-node",e.DIAMOND_NODE="diamond-node",e.HTML_NODE="html-node",e.EDGE="edge",e.LINE_EDGE="line-edge",e.POLYLINE_EDGE="polyline-edge",e.BEZIER_EDGE="bezier-edge",e.GRAPH="graph"}(qe||(qe={})),function(e){e.NODE="node",e.EDGE="edge",e.GRAPH="graph"}(Jr||(Jr={})),function(e){e.ELEMENT_CLICK="element:click",e.NODE_CLICK="node:click",e.NODE_DBCLICK="node:dbclick",e.NODE_DELETE="node:delete",e.NODE_ADD="node:add",e.NODE_GROUP_COPY="node:group-copy-add",e.NODE_DND_ADD="node:dnd-add",e.NODE_DND_DRAG="node:dnd-drag",e.NODE_MOUSEDOWN="node:mousedown",e.NODE_DRAGSTART="node:dragstart",e.NODE_DRAG="node:drag",e.NODE_DROP="node:drop",e.NODE_MOUSEUP="node:mouseup",e.NODE_MOUSEMOVE="node:mousemove",e.NODE_MOUSEENTER="node:mouseenter",e.NODE_MOUSELEAVE="node:mouseleave",e.NODE_CONTEXTMENU="node:contextmenu",e.NODE_ROTATE="node:rotate",e.EDGE_DELETE="edge:delete",e.EDGE_ADD="edge:add",e.EDGE_CLICK="edge:click",e.EDGE_DBCLICK="edge:dbclick",e.EDGE_MOUSEENTER="edge:mouseenter",e.EDGE_MOUSELEAVE="edge:mouseleave",e.EDGE_CONTEXTMENU="edge:contextmenu",e.EDGE_ADJUST="edge:adjust",e.EDGE_EXCHANGE_NODE="edge:exchange-node",e.ANCHOR_DRAGSTART="anchor:dragstart",e.ANCHOR_DRAG="anchor:drag",e.ANCHOR_DROP="anchor:drop",e.ANCHOR_DRAGEND="anchor:dragend",e.ADJUST_POINT_MOUSEDOWN="adjustPoint:mousedown",e.ADJUST_POINT_MOUSEUP="adjustPoint:mouseup",e.ADJUST_POINT_MOUSEMOVE="adjustPoint:mousemove",e.ADJUST_POINT_DRAGSTART="adjustPoint:dragstart",e.ADJUST_POINT_DRAG="adjustPoint:drag",e.ADJUST_POINT_DROP="adjustPoint:drop",e.ADJUST_POINT_DRAGEND="adjustPoint:dragend",e.BLANK_MOUSEDOWN="blank:mousedown",e.BLANK_DRAGSTART="blank:dragstart",e.BLANK_DRAG="blank:drag",e.BLANK_DROP="blank:drop",e.BLANK_MOUSEMOVE="blank:mousemove",e.BLANK_MOUSEUP="blank:mouseup",e.BLANK_CLICK="blank:click",e.BLANK_CONTEXTMENU="blank:contextmenu",e.SELECTION_MOUSEDOWN="selection:mousedown",e.SELECTION_DRAGSTART="selection:dragstart",e.SELECTION_DRAG="selection:drag",e.SELECTION_DROP="selection:drop",e.SELECTION_MOUSEMOVE="selection:mousemove",e.SELECTION_MOUSEUP="selection:mouseup",e.SELECTION_CONTEXTMENU="selection:contextmenu",e.CONNECTION_NOT_ALLOWED="connection:not-allowed",e.HISTORY_CHANGE="history:change",e.TEXT_UPDATE="text:update",e.GRAPH_TRANSFORM="graph:transform",e.GRAPH_RENDERED="graph:rendered"}(he||(he={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Sr||(Sr={}));var zr,Hr,yh,gh,vs,iu,Gl,au,ms;function uu(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return Wl(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Wl(r,n)}}(e,t)||function(){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 Wl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bi(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function pg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wo(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.INCREASE=1]="INCREASE"})(zr||(zr={}));var vh={false:[-1/0,-1/0,1/0,1/0],true:[0,0,0,0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},mh=(Hr=function(){function e(n,s){(function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")})(this,e),_i(this,"MINI_SCALE_SIZE",.2),_i(this,"MAX_SCALE_SIZE",16),bi(this,"SCALE_X",yh,this),bi(this,"SKEW_Y",gh,this),bi(this,"SKEW_X",vs,this),bi(this,"SCALE_Y",iu,this),bi(this,"TRANSLATE_X",Gl,this),bi(this,"TRANSLATE_Y",au,this),bi(this,"ZOOM_SIZE",ms,this),_i(this,"eventCenter",void 0),_i(this,"translateLimitMinX",void 0),_i(this,"translateLimitMinY",void 0),_i(this,"translateLimitMaxX",void 0),_i(this,"translateLimitMaxY",void 0),this.eventCenter=n;var u=s.stopMoveGraph,p=u!==void 0&&u;this.updateTranslateLimits(p)}var t,r;return t=e,r=[{key:"setZoomMiniSize",value:function(n){this.MINI_SCALE_SIZE=n}},{key:"setZoomMaxSize",value:function(n){this.MAX_SCALE_SIZE=n}},{key:"HtmlPointToCanvasPoint",value:function(n){var s=uu(n,2),u=s[0],p=s[1];return[(u-this.TRANSLATE_X)/this.SCALE_X,(p-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(n){var s=uu(n,2),u=s[0],p=s[1];return[u*this.SCALE_X+this.TRANSLATE_X,p*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(n,s,u){var p=uu(n,2),g=p[0],m=p[1];return[g+s/this.SCALE_X,m+u/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(n,s){return[n/this.SCALE_X,s/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var n=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(n,")")}}},{key:"zoom",value:function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=arguments.length>1?arguments[1]:void 0,u=this.SCALE_X,p=this.SCALE_Y;return n===!0?(u+=this.ZOOM_SIZE,p+=this.ZOOM_SIZE):n===!1?(u-=this.ZOOM_SIZE,p-=this.ZOOM_SIZE):typeof n=="number"&&(u=n,p=n),u<this.MINI_SCALE_SIZE||u>this.MAX_SCALE_SIZE||(s&&(this.TRANSLATE_X-=(u-this.SCALE_X)*s[0],this.TRANSLATE_Y-=(p-this.SCALE_Y)*s[1]),this.SCALE_X=u,this.SCALE_Y=p,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(n){this.eventCenter.emit(he.GRAPH_TRANSFORM,{type:n,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})}},{key:"resetZoom",value:function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")}},{key:"translate",value:function(n,s){this.TRANSLATE_X+n<=this.translateLimitMaxX&&this.TRANSLATE_X+n>=this.translateLimitMinX&&(this.TRANSLATE_X+=n),this.TRANSLATE_Y+s<=this.translateLimitMaxY&&this.TRANSLATE_Y+s>=this.translateLimitMinY&&(this.TRANSLATE_Y+=s),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(n,s,u,p){var g=uu(this.CanvasPointToHtmlPoint([n,s]),2),m=u/2-g[0],x=p/2-g[1];this.TRANSLATE_X+=m,this.TRANSLATE_Y+=x,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(n){var s=uu(Array.isArray(n)&&n.length===4?n:vh[n.toString()],4);this.translateLimitMinX=s[0],this.translateLimitMinY=s[1],this.translateLimitMaxX=s[2],this.translateLimitMaxY=s[3]}}],r&&pg(t.prototype,r),e}(),yh=wo(Hr.prototype,"SCALE_X",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),gh=wo(Hr.prototype,"SKEW_Y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vs=wo(Hr.prototype,"SKEW_X",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),iu=wo(Hr.prototype,"SCALE_Y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Gl=wo(Hr.prototype,"TRANSLATE_X",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),au=wo(Hr.prototype,"TRANSLATE_Y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ms=wo(Hr.prototype,"ZOOM_SIZE",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),wo(Hr.prototype,"zoom",[y.k],Object.getOwnPropertyDescriptor(Hr.prototype,"zoom"),Hr.prototype),wo(Hr.prototype,"resetZoom",[y.k],Object.getOwnPropertyDescriptor(Hr.prototype,"resetZoom"),Hr.prototype),wo(Hr.prototype,"translate",[y.k],Object.getOwnPropertyDescriptor(Hr.prototype,"translate"),Hr.prototype),wo(Hr.prototype,"focusOn",[y.k],Object.getOwnPropertyDescriptor(Hr.prototype,"focusOn"),Hr.prototype),Hr),bs=function(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e},bh=function(e,t){return e&&Qo(t,Yi(t),e)},_h=function(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t},Oh=Object.prototype.hasOwnProperty,Vl=function(e){if(!Ir(e))return _h(e);var t=Zo(e),r=[];for(var n in e)(n!="constructor"||!t&&Oh.call(e,n))&&r.push(n);return r},cu=function(e){return $r(e)?Lr(e,!0):Vl(e)},Kl=function(e,t){return e&&Qo(t,cu(t),e)},_s=o(107),Ze=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},hg=function(e,t){return Qo(e,Nn(e),t)},ql=uo(Object.getPrototypeOf,Object),su=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ao(t,Nn(e)),e=ql(e);return t}:is,wh=function(e,t){return Qo(e,su(e),t)},dg=function(e){return os(e,cu,su)},yg=Object.prototype.hasOwnProperty,xo=function(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&yg.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Zl=function(e){var t=new e.constructor(e.byteLength);return new gn(t).set(new gn(e)),t},Os=function(e,t){var r=t?Zl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},$l=/\w*$/,xh=function(e){var t=new e.constructor(e.source,$l.exec(e));return t.lastIndex=e.lastIndex,t},Jl=Ge?Ge.prototype:void 0,Wn=Jl?Jl.valueOf:void 0,Vi=function(e){return Wn?Object(Wn.call(e)):{}},ws=function(e,t){var r=t?Zl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},Eh=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Zl(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Os(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ws(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return xh(e);case"[object Symbol]":return Vi(e)}},oc=Object.create,jh=function(){function e(){}return function(t){if(!Ir(t))return{};if(oc)return oc(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),xs=function(e){return typeof e.constructor!="function"||Zo(e)?{}:jh(ql(e))},Sh=function(e){return cr(e)&&O(e)=="[object Map]"},Es=fn.a&&fn.a.isMap,Ql=Es?ko(Es):Sh,Ki=function(e){return cr(e)&&O(e)=="[object Set]"},Ah=fn.a&&fn.a.isSet,qi=Ah?ko(Ah):Ki,tf="[object Arguments]",ef="[object Function]",rf="[object Object]",Ar={};Ar[tf]=Ar["[object Array]"]=Ar["[object ArrayBuffer]"]=Ar["[object DataView]"]=Ar["[object Boolean]"]=Ar["[object Date]"]=Ar["[object Float32Array]"]=Ar["[object Float64Array]"]=Ar["[object Int8Array]"]=Ar["[object Int16Array]"]=Ar["[object Int32Array]"]=Ar["[object Map]"]=Ar["[object Number]"]=Ar["[object Object]"]=Ar["[object RegExp]"]=Ar["[object Set]"]=Ar["[object String]"]=Ar["[object Symbol]"]=Ar["[object Uint8Array]"]=Ar["[object Uint8ClampedArray]"]=Ar["[object Uint16Array]"]=Ar["[object Uint32Array]"]=!0,Ar["[object Error]"]=Ar[ef]=Ar["[object WeakMap]"]=!1;var Ph=function e(t,r,n,s,u,p){var g,m=1&r,x=2&r,j=4&r;if(n&&(g=u?n(t,s,u,p):n(t)),g!==void 0)return g;if(!Ir(t))return t;var D=xr(t);if(D){if(g=xo(t),!m)return Ze(t,g)}else{var R=O(t),Y=R==ef||R=="[object GeneratorFunction]";if(Object(Ko.a)(t))return Object(_s.a)(t,m);if(R==rf||R==tf||Y&&!u){if(g=x||Y?{}:xs(t),!m)return x?wh(t,Kl(g,t)):hg(t,bh(g,t))}else{if(!Ar[R])return u?t:{};g=Eh(t,R,m)}}p||(p=new Vo);var J=p.get(t);if(J)return J;p.set(t,g),qi(t)?t.forEach(function(vt){g.add(e(vt,r,n,vt,t,p))}):Ql(t)&&t.forEach(function(vt,mt){g.set(mt,e(vt,r,n,mt,t,p))});var ot=D?void 0:(j?x?dg:To:x?cu:Yi)(t);return bs(ot||t,function(vt,mt){ot&&(vt=t[mt=vt]),tu(g,mt,e(vt,r,n,mt,t,p))}),g},Nr=function(e){return Ph(e,5)},js=function(e,t,r){(r!==void 0&&!fr(e[t],r)||r===void 0&&!(t in e))&&fs(e,t,r)},Vn=function(e){return cr(e)&&$r(e)},ri=Function.prototype,Ss=Object.prototype,ba=ri.toString,kh=Ss.hasOwnProperty,Th=ba.call(Object),Mh=function(e){if(!cr(e)||vr(e)!="[object Object]")return!1;var t=ql(e);if(t===null)return!0;var r=kh.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ba.call(r)==Th},Zi=function(e,t){if((t!=="constructor"||typeof e[t]!="function")&&t!="__proto__")return e[t]},ic=function(e){return Qo(e,cu(e))},Dh=function(e,t,r,n,s,u,p){var g=Zi(e,r),m=Zi(t,r),x=p.get(m);if(x)js(e,r,x);else{var j=u?u(g,m,r+"",e,t,p):void 0,D=j===void 0;if(D){var R=xr(m),Y=!R&&Object(Ko.a)(m),J=!R&&!Y&&da(m);j=m,R||Y||J?xr(g)?j=g:Vn(g)?j=Ze(g):Y?(D=!1,j=Object(_s.a)(m,!0)):J?(D=!1,j=ws(m,!0)):j=[]:Mh(m)||Po(m)?(j=g,Po(g)?j=ic(g):Ir(g)&&!So(g)||(j=xs(m))):D=!1}D&&(p.set(m,j),s(j,m,n,u,p),p.delete(m)),js(e,r,j)}},Nh=function e(t,r,n,s,u){t!==r&&ah(r,function(p,g){if(u||(u=new Vo),Ir(p))Dh(t,r,g,n,e,s,u);else{var m=s?s(Zi(t,g),p,g+"",t,r,u):void 0;m===void 0&&(m=p),js(t,g,m)}},cu)},ac=ch(function(e,t,r){Nh(e,t,r)}),Ch={baseNode:{fill:"#FFFFFF",stroke:"#000000",strokeWidth:2},baseEdge:{stroke:"#000000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000000",fill:"#FFFFFF",r:4,hover:{fill:"#949494",fillOpacity:.5,stroke:"#949494",r:10}},nodeText:{color:"#000000",overflowMode:"default",lineHeight:1.2,fontSize:12},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#FFFFFF"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",stroke:"#949494",fillOpacity:1}},arrow:{offset:10,verticalLength:5},anchorLine:{stroke:"#000000",strokeWidth:2,strokeDasharray:"3,2"},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#FFFFFF",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10 10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5}},uc=function(e){var t=Nr(Ch);return e&&(t=ac(t,e)),t};o(82),o(166);function nf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var As=function(){function e(){var n,s,u;(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,e),u={},(s="_events")in(n=this)?Object.defineProperty(n,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[s]=u}var t,r;return t=e,(r=[{key:"on",value:function(n,s,u){var p=this;return n==null||n.split(",").forEach(function(g){g=g.trim(),p._events[g]||(p._events[g]=[]),p._events[g].push({callback:s,once:!!u})}),this}},{key:"once",value:function(n,s){var u=this;n==null||n.split(",").forEach(function(p){return p=p.trim(),u.on(p,s,!0)})}},{key:"emit",value:function(n,s){var u=this;n==null||n.split(",").forEach(function(p){var g=u._events[p]||[],m=u._events["*"]||[],x=function(j){for(var D=j.length,R=0;R<D;R++)if(j[R]){var Y=j[R],J=Y.callback;Y.once&&(j.splice(R,1),j.length===0&&delete u._events[p],D--,R--),J.apply(u,[s])}};x(g),x(m)})}},{key:"off",value:function(n,s){var u=this;return n||(this._events={}),n.split(",").forEach(function(p){if(s){for(var g=u._events[p]||[],m=g.length,x=0;x<m;x++)g[x].callback===s&&(g.splice(x,1),m--,x--);g.length===0&&delete u._events[p]}else delete u._events[p]}),this}},{key:"getEvents",value:function(){return this._events}}])&&nf(t.prototype,r),e}();function ni(e,t){return t*Math.round(e/t)||e}function lu(e,t){return e%t}function Ps(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return ks(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return ks(r,n)}}(e,t)||function(){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 ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var of,Ts=function(e,t,r){var n=Ps(e,2),s=n[0],u=n[1],p=Ps(t,2),g=p[0],m=p[1],x=Ps(r,2),j=x[0],D=x[1];return s>g&&s<j&&u>m&&u<D},oi=function(e,t){var r=!1;switch(t.multipleSelectKey){case"meta":r=e.metaKey;break;case"alt":r=e.altKey;break;case"shift":r=e.shiftKey;break;case"ctrl":r=e.ctrlKey;break;default:r=!1}return r},Rh=(o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47),new Uint8Array(16));function Ih(){if(!of&&!(of=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return of(Rh)}for(var gg=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Lh=function(e){return typeof e=="string"&&gg.test(e)},Cr=[],cc=0;cc<256;++cc)Cr.push((cc+256).toString(16).substr(1));var af=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Cr[e[t+0]]+Cr[e[t+1]]+Cr[e[t+2]]+Cr[e[t+3]]+"-"+Cr[e[t+4]]+Cr[e[t+5]]+"-"+Cr[e[t+6]]+Cr[e[t+7]]+"-"+Cr[e[t+8]]+Cr[e[t+9]]+"-"+Cr[e[t+10]]+Cr[e[t+11]]+Cr[e[t+12]]+Cr[e[t+13]]+Cr[e[t+14]]+Cr[e[t+15]]).toLowerCase();if(!Lh(r))throw TypeError("Stringified UUID is invalid");return r},sc=function(e,t,r){var n=(e=e||{}).random||(e.rng||Ih)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=n[s];return t}return af(n)},No=function(){return sc()},fu=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=e.nodes.reduce(function(n,s){return n[s.id]=t+sc(),s.id=n[s.id],n},{});return e.edges.forEach(function(n){n.id=t+sc(),n.sourceNodeId=r[n.sourceNodeId],n.targetNodeId=r[n.targetNodeId]}),e},Ee=(o(105),o(127),function(e,t,r){var n=e.x,s=e.y;return(n-t.x)*(n-r.x)<=0&&(s-t.y)*(s-r.y)<=0});function pu(e){return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function Ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function $i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ms(Object(r),!0).forEach(function(n){uf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mt,_n,cf,sf,zh,ii,An,Ds,Ns,Bh,hu,lf,ff,pf,hf,Fh,Cs,df,du,Rs,yf,Is=function(e){return e.anchors},_a=function(e,t){for(var r,n=t.nodes,s=n.length-1;s>=0;s--){var u=n[s];if(Hh(e,u)){var p=u.getTargetAnchor(e);if(p){var g={node:u,anchorIndex:p.index,anchor:p.anchor};r&&!Uh(u,r.node,t)||(r=g)}}}return r},Uh=function(e,t,r){return e.zIndex>t.zIndex||r.nodesMap[e.id].index>r.nodesMap[t.id].index},on=function(e,t,r,n){return Math.hypot(e-r,t-n)},Kn=function(e,t){var r=!1,n=fo(t);return e.x>=n.minX-0&&e.x<=n.maxX+0&&e.y>=n.minY-0&&e.y<=n.maxY+0&&(r=!0),r},Hh=function(e,t){var r=!1,n=fo(t);return e.x>=n.minX-5&&e.x<=n.maxX+5&&e.y>=n.minY-5&&e.y<=n.maxY+5&&(r=!0),r},fo=function(e){var t=e.x,r=e.y,n=e.width,s=e.height;return{minX:t-n/2,minY:r-s/2,maxX:t+n/2,maxY:r+s/2,x:t,y:r,width:n,height:s,centerX:t,centerY:r}},Yh=function(e,t,r){var n,s=function(p){var g=p,m=g.x,x=g.y,j=g.width,D=g.height,R=g.radius;return[{x:m-j/2+R,y:x-D/2+R,r:R},{x:m+j/2-R,y:x-D/2+R,r:R},{x:m-j/2+R,y:x+D/2-R,r:R},{x:m+j/2-R,y:x+D/2-R,r:R}]}(r),u=Number.MAX_SAFE_INTEGER;return s.forEach(function(p){var g=on(e.x,e.y,p.x,p.y);g<u&&(u=g,n=p)}),gf(e,t,n)},gf=function(e,t,r){var n,s=r,u=s.x,p=s.y,g=s.r;if(t===Sr.HORIZONTAL){var m=u-Math.sqrt(g*g-(e.y-p)*(e.y-p)),x=u+Math.sqrt(g*g-(e.y-p)*(e.y-p));n={x:Math.abs(m-e.x)<Math.abs(x-e.x)?m:x,y:e.y}}else if(t===Sr.VERTICAL){var j=p-Math.sqrt(g*g-(e.x-u)*(e.x-u)),D=p+Math.sqrt(g*g-(e.x-u)*(e.x-u)),R=Math.abs(j-e.y)<Math.abs(D-e.y)?j:D;n={x:e.x,y:R}}return n},vf=function(e,t){var r=t,n=!1,s=r.x-r.width/2+r.radius,u=r.x+r.width/2-r.radius,p=r.y-r.height/2+r.radius,g=r.y+r.height/2-r.radius,m=r.x,x=r.y,j=r.width,D=r.height;return e.y===x+D/2||e.y===x-D/2?n=e.x>s&&e.x<u:e.x!==m+j/2&&e.x!==m-j/2||(n=e.y>p&&e.y<g),n},mf=function(e,t,r){var n,s=r,u=s.x,p=s.y,g=s.rx,m=s.ry;if(t===Sr.HORIZONTAL){var x=u-Math.sqrt(g*g-(e.y-p)*(e.y-p)*g*g/(m*m)),j=u+Math.sqrt(g*g-(e.y-p)*(e.y-p)*g*g/(m*m));n={x:Math.abs(x-e.x)<Math.abs(j-e.x)?x:j,y:e.y}}else if(t===Sr.VERTICAL){var D=p-Math.sqrt(m*m-(e.x-u)*(e.x-u)*m*m/(g*g)),R=p+Math.sqrt(m*m-(e.x-u)*(e.x-u)*m*m/(g*g)),Y=Math.abs(D-e.y)<Math.abs(R-e.y)?D:R;n={x:e.x,y:Y}}return n},bf=function(e,t,r){for(var n,s=r.pointsPosition,u=Number.MAX_SAFE_INTEGER,p=[],g=0;g<s.length;g++)p.push({start:s[g],end:s[(g+1)%s.length]});return p.forEach(function(m){var x=m.start,j=m.end,D=x,R=j;x.x>j.x&&(D=j,R=x);var Y={x:e.x,y:e.y};if(D.x===R.x&&t===Sr.HORIZONTAL&&(Y={x:D.x,y:e.y}),D.y===R.y&&t===Sr.VERTICAL&&(Y={x:e.x,y:D.y}),D.x!==R.x&&D.y!==R.y){var J=(R.y-D.y)/(R.x-D.x),ot=(D.x*R.y-R.x*D.y)/(D.x-R.x);t===Sr.HORIZONTAL?Y={x:(e.y-ot)/J,y:e.y}:t===Sr.VERTICAL&&(Y={x:e.x,y:J*e.x+ot})}if(Ee(Y,x,j)){var vt=on(Y.x,Y.y,e.x,e.y);vt<u&&(u=vt,n=Y)}}),n},_f=function(e,t,r,n){var s=e.x,u=e.y;return t.x>e.x?s=e.x+r/2:t.x<e.x&&(s=e.x-r/2),t.y>e.y?u=e.y+n/2:t.y<e.y&&(u=e.y-n/2),{x:s,y:u}},Xh=function(e){var t=e.rows,r=e.style,n=e.rowsLength,s=e.className,u=document.createElement("div");u.style.fontSize=r.fontSize,u.style.width=r.width,u.className=s,u.style.lineHeight=r.lineHeight,u.style.padding=r.padding,r.fontFamily&&(u.style.fontFamily=r.fontFamily),n>1?t.forEach(function(g){var m=document.createElement("div");m.textContent=g,u.appendChild(m)}):u.textContent=t,document.body.appendChild(u);var p=u.clientHeight;return document.body.removeChild(u),p},Of=function(e){var t=e.rows,r=e.rowsLength,n=e.fontSize,s=0;return t&&t.forEach(function(u){var p=Xf(u);s=p>s?p:s}),{width:Math.ceil(s/2)*n+n/4,height:r*(n+2)+n/4}},lc=function(e){return pu(e)!=="object"?{isAllPass:!!e,msg:e?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:e},Pr=function(e){try{return JSON.parse(JSON.stringify(e))}catch(t){return e}},vg=1e3,Gh=999,wf=function(){return++vg};function Ls(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ls(Object(r),!0).forEach(function(n){Zn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ls(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function an(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function mg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ae(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var xf=(Mt=function(){function e(n,s){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),Zn(this,"id",""),an(this,"type",_n,this),an(this,"sourceNodeId",cf,this),an(this,"targetNodeId",sf,this),an(this,"startPoint",zh,this),an(this,"endPoint",ii,this),an(this,"text",An,this),an(this,"properties",Ds,this),an(this,"points",Ns,this),an(this,"pointsList",Bh,this),an(this,"isSelected",hu,this),an(this,"isHovered",lf,this),an(this,"isHitable",ff,this),an(this,"draggable",pf,this),an(this,"visible",hf,this),Zn(this,"virtual",!1),an(this,"isAnimation",Fh,this),an(this,"isShowAdjustPoint",Cs,this),Zn(this,"graphModel",void 0),an(this,"zIndex",df,this),Zn(this,"BaseType",Jr.EDGE),Zn(this,"modelType",qe.EDGE),an(this,"state",du,this),Zn(this,"additionStateData",void 0),Zn(this,"sourceAnchorId",""),Zn(this,"targetAnchorId",""),Zn(this,"menu",void 0),Zn(this,"customTextPosition",!1),an(this,"style",Rs,this),an(this,"arrowConfig",yf,this),this.graphModel=s,this.initEdgeData(n),this.setAttributes()}var t,r;return t=e,r=[{key:"initEdgeData",value:function(n){if(n.properties||(n.properties={}),!n.id){var s=this.graphModel.idGenerator,u=s&&s(n.type),p=this.createId();n.id=p||u||No()}this.arrowConfig.markerEnd="url(#marker-end-".concat(n.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(n.id,")");var g=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=g,hn(this,ud(n)),this.graphModel.overlapMode===zr.INCREASE&&(this.zIndex=n.zIndex||wf()),this.setAnchors(),this.initPoints(),this.formatText(n)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return qn(qn({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return qn({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var n=this.graphModel.theme.edgeText;return Nr(n)}},{key:"getEdgeAnimationStyle",value:function(){var n=this.graphModel.theme.edgeAnimation;return Nr(n)}},{key:"getArrowStyle",value:function(){var n=this.getEdgeStyle(),s=this.getEdgeAnimationStyle(),u=this.graphModel.theme.arrow,p=this.isAnimation?s.stroke:n.stroke;return qn(qn({},n),{},{fill:p,stroke:p},u)}},{key:"getOutlineStyle",value:function(){var n=this.graphModel.theme.outline;return Nr(n)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var n,s;return(n=this.graphModel)===null||n===void 0||(s=n.nodesMap[this.sourceNodeId])===null||s===void 0?void 0:s.model}},{key:"targetNode",get:function(){var n,s;return(n=this.graphModel)===null||n===void 0||(s=n.nodesMap[this.targetNodeId])===null||s===void 0?void 0:s.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(n,s){var u,p;return Is(n).forEach(function(g){var m=Vf(g,s);(p===void 0||m<p)&&(p=m,u=g)}),u}},{key:"getEndAnchor",value:function(n){var s,u,p=this;return Is(n).forEach(function(g){var m=Vf(g,p.startPoint);(u===void 0||m<u)&&(u=m,s=g)}),s}},{key:"getProperties",value:function(){return Object(y.I)(this.properties)}},{key:"getData",value:function(){var n=this.text,s=n.x,u=n.y,p=n.value,g={id:this.id,type:this.type,sourceNodeId:this.sourceNode.id,targetNodeId:this.targetNode.id,startPoint:Object.assign({},this.startPoint),endPoint:Object.assign({},this.endPoint),properties:Object(y.I)(this.properties)};return p&&(g.text={x:s,y:u,value:p}),this.graphModel.overlapMode===zr.INCREASE&&(g.zIndex=this.zIndex),g}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(n,s){this.properties[n]=Pr(s),this.setAttributes()}},{key:"deleteProperty",value:function(n){delete this.properties[n],this.setAttributes()}},{key:"setProperties",value:function(n){this.properties=qn(qn({},Object(y.I)(this.properties)),Pr(n)),this.setAttributes()}},{key:"changeEdgeId",value:function(n){var s=this.arrowConfig,u=s.markerEnd,p=s.markerStart;p&&p==="url(#marker-start-".concat(this.id,")")&&(this.arrowConfig.markerStart="url(#marker-start-".concat(n,")")),u&&u==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(n,")")),this.id=n}},{key:"setStyle",value:function(n,s){this.style=qn(qn({},this.style),{},Zn({},n,Pr(s)))}},{key:"setStyles",value:function(n){this.style=qn(qn({},this.style),Pr(n))}},{key:"updateStyles",value:function(n){this.style=qn({},Pr(n))}},{key:"formatText",value:function(n){var s=this.textPosition,u=s.x,p=s.y;n.text&&typeof n.text!="string"?Object.prototype.toString.call(n.text)==="[object Object]"&&(this.text={x:n.text.x||u,y:n.text.y||p,value:n.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:n.text||"",x:u,y:p,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var n=this.textPosition,s=n.x,u=n.y;this.text.x=s,this.text.y=u}},{key:"moveText",value:function(n,s){if(this.text){var u=this.text,p=u.x,g=u.y,m=u.value,x=u.draggable,j=u.editable;this.text={value:m,draggable:x,x:p+n,y:g+s,editable:j}}}},{key:"setText",value:function(n){n&&hn(this.text,n)}},{key:"updateText",value:function(n){this.text=qn(qn({},Object(y.I)(this.text)),{},{value:n})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var n=this.getBeginAnchor(this.sourceNode,this.targetNode);if(!(n||this.startPoint&&this.sourceAnchorId))throw new Error("\u65E0\u6CD5\u83B7\u53D6beginAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.startPoint||(this.startPoint={x:n.x,y:n.y}),this.sourceAnchorId||(this.sourceAnchorId=n.id)}if(!this.targetAnchorId||!this.endPoint){var s=this.getEndAnchor(this.targetNode);if(!(s||this.endPoint&&this.targetAnchorId))throw new Error("\u65E0\u6CD5\u83B7\u53D6endAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.endPoint||(this.endPoint={x:s.x,y:s.y}),this.targetAnchorId||(this.targetAnchorId=s.id)}}},{key:"setSelected",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=n}},{key:"setHovered",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=n}},{key:"setHitable",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=n}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(n,s){this.state=n,this.additionStateData=s}},{key:"updateStartPoint",value:function(n){this.startPoint=n}},{key:"moveStartPoint",value:function(n,s){this.startPoint.x+=n,this.startPoint.y+=s}},{key:"updateEndPoint",value:function(n){this.endPoint=n}},{key:"moveEndPoint",value:function(n,s){this.endPoint.x+=n,this.endPoint.y+=s}},{key:"setZIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=n}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(n){hn(this,n)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(n){var s=n.startPoint,u=n.endPoint;this.updateStartPoint({x:s.x,y:s.y}),this.updateEndPoint({x:u.x,y:u.y})}}],r&&mg(t.prototype,r),e}(),_n=Ae(Mt.prototype,"type",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),cf=Ae(Mt.prototype,"sourceNodeId",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),sf=Ae(Mt.prototype,"targetNodeId",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),zh=Ae(Mt.prototype,"startPoint",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ii=Ae(Mt.prototype,"endPoint",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),An=Ae(Mt.prototype,"text",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),Ds=Ae(Mt.prototype,"properties",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ns=Ae(Mt.prototype,"points",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Bh=Ae(Mt.prototype,"pointsList",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),hu=Ae(Mt.prototype,"isSelected",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lf=Ae(Mt.prototype,"isHovered",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ff=Ae(Mt.prototype,"isHitable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),pf=Ae(Mt.prototype,"draggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),hf=Ae(Mt.prototype,"visible",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Fh=Ae(Mt.prototype,"isAnimation",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cs=Ae(Mt.prototype,"isShowAdjustPoint",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),df=Ae(Mt.prototype,"zIndex",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),du=Ae(Mt.prototype,"state",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Rs=Ae(Mt.prototype,"style",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),yf=Ae(Mt.prototype,"arrowConfig",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),Ae(Mt.prototype,"sourceNode",[y.m],Object.getOwnPropertyDescriptor(Mt.prototype,"sourceNode"),Mt.prototype),Ae(Mt.prototype,"targetNode",[y.m],Object.getOwnPropertyDescriptor(Mt.prototype,"targetNode"),Mt.prototype),Ae(Mt.prototype,"textPosition",[y.m],Object.getOwnPropertyDescriptor(Mt.prototype,"textPosition"),Mt.prototype),Ae(Mt.prototype,"setProperty",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setProperty"),Mt.prototype),Ae(Mt.prototype,"deleteProperty",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"deleteProperty"),Mt.prototype),Ae(Mt.prototype,"setProperties",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setProperties"),Mt.prototype),Ae(Mt.prototype,"changeEdgeId",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"changeEdgeId"),Mt.prototype),Ae(Mt.prototype,"setStyle",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setStyle"),Mt.prototype),Ae(Mt.prototype,"setStyles",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setStyles"),Mt.prototype),Ae(Mt.prototype,"updateStyles",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateStyles"),Mt.prototype),Ae(Mt.prototype,"formatText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"formatText"),Mt.prototype),Ae(Mt.prototype,"resetTextPosition",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"resetTextPosition"),Mt.prototype),Ae(Mt.prototype,"moveText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"moveText"),Mt.prototype),Ae(Mt.prototype,"setText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setText"),Mt.prototype),Ae(Mt.prototype,"updateText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateText"),Mt.prototype),Ae(Mt.prototype,"setAnchors",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setAnchors"),Mt.prototype),Ae(Mt.prototype,"setSelected",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setSelected"),Mt.prototype),Ae(Mt.prototype,"setHovered",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setHovered"),Mt.prototype),Ae(Mt.prototype,"setHitable",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setHitable"),Mt.prototype),Ae(Mt.prototype,"openEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"openEdgeAnimation"),Mt.prototype),Ae(Mt.prototype,"closeEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"closeEdgeAnimation"),Mt.prototype),Ae(Mt.prototype,"setElementState",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setElementState"),Mt.prototype),Ae(Mt.prototype,"updateStartPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateStartPoint"),Mt.prototype),Ae(Mt.prototype,"moveStartPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"moveStartPoint"),Mt.prototype),Ae(Mt.prototype,"updateEndPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateEndPoint"),Mt.prototype),Ae(Mt.prototype,"moveEndPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"moveEndPoint"),Mt.prototype),Ae(Mt.prototype,"setZIndex",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setZIndex"),Mt.prototype),Ae(Mt.prototype,"initPoints",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"initPoints"),Mt.prototype),Ae(Mt.prototype,"updateAttributes",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateAttributes"),Mt.prototype),Ae(Mt.prototype,"getAdjustStart",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"getAdjustStart"),Mt.prototype),Ae(Mt.prototype,"getAdjustEnd",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"getAdjustEnd"),Mt.prototype),Ae(Mt.prototype,"updateAfterAdjustStartAndEnd",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateAfterAdjustStartAndEnd"),Mt.prototype),Mt),Ef=xf;function jf(e){return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function Wh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Vh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wh(Object(r),!0).forEach(function(n){qh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yu(){return yu=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=_g(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},yu.apply(this,arguments)}function _g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Oa(e))!==null;);return e}function Sf(e,t){return Sf=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Sf(e,t)}function Og(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Oa(e);if(t){var s=Oa(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return wg(this,r)}}function wg(e,t){if(t&&(jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Af(e)}function Af(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Oa(e)}function qh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var He,Zh,wa=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Sf(u,p)})(s,e);var t,r,n=Og(s);function s(){var u;bg(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return qh(Af(u=n.call.apply(n,[this].concat(g))),"modelType",qe.LINE_EDGE),u}return t=s,(r=[{key:"getEdgeStyle",value:function(){var u=this.graphModel.theme.line;return Vh(Vh({},yu(Oa(s.prototype),"getEdgeStyle",this).call(this)),Nr(u))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&Kh(t.prototype,r),s}(Ef);function Pf(e){return Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pf(e)}function xg(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return fc(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return fc(r,n)}}(e,t)||function(){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 fc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Tf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kf(Object(r),!0).forEach(function(n){Df(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mf(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function $h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pc(){return pc=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=Eg(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},pc.apply(this,arguments)}function Eg(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Oi(e))!==null;);return e}function gu(e,t){return gu=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},gu(e,t)}function zs(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Oi(e);if(t){var s=Oi(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return jg(this,r)}}function jg(e,t){if(t&&(Pf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function xa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oi(e){return Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Oi(e)}function Df(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rr(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Bs=(He=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&gu(u,p)})(s,e);var t,r,n=zs(s);function s(){var u;$h(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return Df(xa(u=n.call.apply(n,[this].concat(g))),"modelType",qe.POLYLINE_EDGE),Df(xa(u),"draggingPointList",void 0),Mf(xa(u),"dbClickPosition",Zh,xa(u)),u}return t=s,(r=[{key:"initEdgeData",value:function(u){this.offset=30,pc(Oi(s.prototype),"initEdgeData",this).call(this,u)}},{key:"getEdgeStyle",value:function(){var u=this.graphModel.theme.polyline;return Tf(Tf({},pc(Oi(s.prototype),"getEdgeStyle",this).call(this)),Nr(u))}},{key:"getTextPosition",value:function(){var u,p=(u=this.text)===null||u===void 0?void 0:u.value;if(this.dbClickPosition&&!p){var g=this.dbClickPosition;return{x:g.x,y:g.y}}var m=Qi(this.points),x=xg(od(m),2),j=x[0],D=x[1];return{x:(j.x+D.x)/2,y:(j.y+D.y)/2}}},{key:"getAfterAnchor",value:function(u,p,g){var m,x;return g.forEach(function(j){var D;u===Sr.HORIZONTAL?D=Math.abs(p.y-j.y):u===Sr.VERTICAL&&(D=Math.abs(p.x-j.x)),(!x||x>D)&&(x=D,m=j)}),m}},{key:"getCrossPoint",value:function(u,p,g){var m;return u===Sr.HORIZONTAL?m={x:g.x,y:p.y}:u===Sr.VERTICAL&&(m={x:p.x,y:g.y}),m}},{key:"removeCrossPoints",value:function(u,p,g){var m=g.map(function(mt){return mt});if(u===1){var x=m[u],j=m[p],D=m[u-1];if(Uf(D,x,this.sourceNode)){if(Hf(x,j,this.sourceNode)){var R=un(x,j,this.sourceNode);R&&(m[u]=R,m.splice(u-1,1),u--,p--)}}else this.sourceNode.anchors.forEach(function(mt){(mt.x===D.x&&mt.x===x.x||mt.y===D.y&&mt.y===x.y)&&on(mt.x,mt.y,x.x,x.y)<on(D.x,D.y,x.x,x.y)&&(m[u-1]=mt)})}if(p===g.length-2){var Y=m[u],J=m[p],ot=m[p+1];if(Uf(J,ot,this.targetNode)){if(Hf(Y,J,this.targetNode)){var vt=un(Y,J,this.targetNode);vt&&(m[p]=vt,m.splice(p+1,1))}}else this.targetNode.anchors.forEach(function(mt){(mt.x===ot.x&&mt.x===J.x||mt.y===ot.y&&mt.y===J.y)&&on(mt.x,mt.y,J.x,J.y)<on(ot.x,ot.y,J.x,J.y)&&(m[p+1]=mt)})}return m}},{key:"getDraggingPoints",value:function(u,p,g,m,x){var j=x.map(function(Y){return Y}),D=this.getAfterAnchor(u,g,m),R=this.getCrossPoint(u,g,D);return p==="start"?(j.unshift(R),j.unshift(D)):(j.push(R),j.push(D)),j}},{key:"updateCrossPoints",value:function(u){var p=u.map(function(Rt){return Rt}),g=u[0],m=u[1],x=u[p.length-2],j=u[p.length-1],D=this.sourceNode,R=this.targetNode,Y=D.modelType,J=R.modelType,ot=mn(g,m),vt=p[0];switch(Y){case qe.RECT_NODE:D.radius!==0&&(vf(g,D)||(vt=Yh(g,ot,D)));break;case qe.CIRCLE_NODE:vt=gf(g,ot,D);break;case qe.ELLIPSE_NODE:vt=mf(g,ot,D);break;case qe.DIAMOND_NODE:case qe.POLYGON_NODE:vt=bf(g,ot,D)}p[0]=vt;var mt=mn(x,j),xt=p[p.length-1];switch(J){case qe.RECT_NODE:R.radius!==0&&(vf(j,R)||(xt=Yh(j,mt,R)));break;case qe.CIRCLE_NODE:xt=gf(j,mt,R);break;case qe.ELLIPSE_NODE:xt=mf(j,mt,R);break;case qe.DIAMOND_NODE:case qe.POLYGON_NODE:xt=bf(j,mt,R)}return p[p.length-1]=xt,p}},{key:"getData",value:function(){var u=pc(Oi(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(g){return{x:g.x,y:g.y}});return Object.assign({},u,{pointsList:p})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(u){return"".concat(u.x,",").concat(u.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var u=vc({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=u,this.points=u.map(function(p){return"".concat(p.x,",").concat(p.y)}).join(" ")}},{key:"updateStartPoint",value:function(u){this.startPoint=u,this.updatePoints()}},{key:"moveStartPoint",value:function(u,p){this.startPoint.x+=u,this.startPoint.y+=p,this.updatePoints()}},{key:"updateEndPoint",value:function(u){this.endPoint=u,this.updatePoints()}},{key:"moveEndPoint",value:function(u,p){this.endPoint.x+=u,this.endPoint.y+=p,this.updatePoints()}},{key:"dragAppendStart",value:function(){this.draggingPointList=this.pointsList.map(function(u){return u})}},{key:"dragAppendSimple",value:function(u,p){this.isDragging=!0;var g=u.start,m=u.end,x=u.startIndex,j=u.endIndex,D=u.direction,R=this.pointsList,Y=R;return D===Sr.HORIZONTAL?(R[x]={x:g.x,y:g.y+p.y},R[j]={x:m.x,y:m.y+p.y},Y=this.pointsList.map(function(J){return J})):D===Sr.VERTICAL&&(R[x]={x:g.x+p.x,y:g.y},R[j]={x:m.x+p.x,y:m.y},Y=this.pointsList.map(function(J){return J})),this.updatePointsAfterDrag(Y),this.draggingPointList=Y,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},R[x]),end:Object.assign({},R[j]),startIndex:x,endIndex:j,direction:D}}},{key:"dragAppend",value:function(u,p){this.isDragging=!0;var g=u.start,m=u.end,x=u.startIndex,j=u.endIndex,D=u.direction,R=this.pointsList;if(D===Sr.HORIZONTAL){R[x]={x:g.x,y:g.y+p.y},R[j]={x:m.x,y:m.y+p.y};var Y=this.pointsList.map(function($t){return $t});if(x!==0&&j!==this.pointsList.length-1&&(Y=this.removeCrossPoints(x,j,Y)),x===0){var J={x:g.x,y:g.y+p.y};if(!Kn(J,this.sourceNode)){var ot=this.sourceNode.anchors;Y=this.getDraggingPoints(D,"start",J,ot,Y)}}if(j===this.pointsList.length-1){var vt={x:m.x,y:m.y+p.y};if(!Kn(vt,this.targetNode)){var mt=this.targetNode.anchors;Y=this.getDraggingPoints(D,"end",vt,mt,Y)}}this.updatePointsAfterDrag(Y),this.draggingPointList=Y}else if(D===Sr.VERTICAL){R[x]={x:g.x+p.x,y:g.y},R[j]={x:m.x+p.x,y:m.y};var xt=this.pointsList.map(function($t){return $t});if(x!==0&&j!==this.pointsList.length-1&&(xt=this.removeCrossPoints(x,j,xt)),x===0){var Rt={x:g.x+p.x,y:g.y};if(!Kn(Rt,this.sourceNode)){var qt=this.sourceNode.anchors;xt=this.getDraggingPoints(D,"start",Rt,qt,xt)}}if(j===this.pointsList.length-1){var te={x:m.x+p.x,y:m.y};if(!Kn(te,this.targetNode)){var we=this.targetNode.anchors;xt=this.getDraggingPoints(D,"end",te,we,xt)}}this.updatePointsAfterDrag(xt),this.draggingPointList=xt}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},R[x]),end:Object.assign({},R[j]),startIndex:x,endIndex:j,direction:D}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var u=gc(Qi(this.points));this.pointsList=u.map(function(m){return m}),this.draggingPointList=[];var p=u[0];this.startPoint=Object.assign({},p);var g=u[u.length-1];this.endPoint=Object.assign({},g)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(u){var p=this.updateCrossPoints(u);this.points=p.map(function(g){return"".concat(g.x,",").concat(g.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var u=this.pointsList;return u[u.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(u){var p=u.startPoint,g=u.endPoint,m=u.sourceNode,x=u.targetNode,j=vc({x:p.x,y:p.y},{x:g.x,y:g.y},m,x,this.offset||0);this.pointsList=j,this.initPoints()}}])&&Jh(t.prototype,r),s}(Ef),Zh=Rr(He.prototype,"dbClickPosition",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rr(He.prototype,"initPoints",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"initPoints"),He.prototype),Rr(He.prototype,"updatePoints",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"updatePoints"),He.prototype),Rr(He.prototype,"updateStartPoint",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"updateStartPoint"),He.prototype),Rr(He.prototype,"moveStartPoint",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"moveStartPoint"),He.prototype),Rr(He.prototype,"updateEndPoint",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"updateEndPoint"),He.prototype),Rr(He.prototype,"moveEndPoint",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"moveEndPoint"),He.prototype),Rr(He.prototype,"dragAppendStart",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"dragAppendStart"),He.prototype),Rr(He.prototype,"dragAppendSimple",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"dragAppendSimple"),He.prototype),Rr(He.prototype,"dragAppend",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"dragAppend"),He.prototype),Rr(He.prototype,"dragAppendEnd",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"dragAppendEnd"),He.prototype),Rr(He.prototype,"updatePointsAfterDrag",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"updatePointsAfterDrag"),He.prototype),Rr(He.prototype,"getAdjustStart",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"getAdjustStart"),He.prototype),Rr(He.prototype,"getAdjustEnd",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"getAdjustEnd"),He.prototype),Rr(He.prototype,"updateAfterAdjustStartAndEnd",[y.k],Object.getOwnPropertyDescriptor(He.prototype,"updateAfterAdjustStartAndEnd"),He.prototype),He),hc=function(e){var t=e.start,r=e.end,n=e.offset,s=e.verticalLength,u=e.type,p={leftX:0,leftY:0,rightX:0,rightY:0},g=Math.atan((r.y-t.y)/(r.x-t.x)),m=Math.atan(n/s),x=Math.sqrt(s*s+n*n);return u==="start"?r.x>=t.x?(p.leftX=t.x+x*Math.sin(g+m),p.leftY=t.y-x*Math.cos(g+m),p.rightX=t.x-x*Math.sin(g-m),p.rightY=t.y+x*Math.cos(g-m)):(p.leftX=t.x-x*Math.sin(g+m),p.leftY=t.y+x*Math.cos(g+m),p.rightX=t.x+x*Math.sin(g-m),p.rightY=t.y-x*Math.cos(g-m)):u==="end"&&(r.x>=t.x?(p.leftX=r.x+x*Math.sin(g-m),p.leftY=r.y-x*Math.cos(g-m),p.rightX=r.x-x*Math.sin(g+m),p.rightY=r.y+x*Math.cos(g+m)):(p.leftX=r.x-x*Math.sin(g-m),p.leftY=r.y+x*Math.cos(g-m),p.rightX=r.x+x*Math.sin(g+m),p.rightY=r.y-x*Math.cos(g+m))),p},Ea={x:1,y:0,z:0};function Xe(e,t,r,n,s){for(var u=function(J){if(J<0||J>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:e.x*Math.pow(1-J,3)+3*t.x*J*Math.pow(1-J,2)+3*r.x*Math.pow(J,2)*(1-J)+n.x*Math.pow(J,3),y:e.y*Math.pow(1-J,3)+3*t.y*J*Math.pow(1-J,2)+3*r.y*Math.pow(J,2)*(1-J)+n.y*Math.pow(J,3)}},p=0,g=2,m=n.x,x=n.y,j=n;p<s&&g<50;){var D=j=u(1-g/100),R=D.x,Y=D.y;p=on(m,x,R,Y),g++}return j}function Qh(e){var t=Math.hypot(e.x,e.y);return{x:e.x/t,y:e.y/t,z:0}}function zn(e){return n=function(u,p){return u.x*p.y-u.y*p.x}(t=Ea,r=e),s=Math.acos(function(u,p){var g=[u.x,u.y,u.z];return[p.x,p.y,p.z].reduce(function(m,x,j){return m+x*g[j]})}(Qh(t),Qh(r))),n>=0?s:-s;var t,r,n,s}function Vr(e){return e*(180/Math.PI)}function wi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wi(Object(r),!0).forEach(function(n){Nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(e){return function(t){if(Array.isArray(t))return Fr(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Br(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Us(e){return Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Us(e)}function ja(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||Br(e,t)||function(){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 Br(e,t){if(e){if(typeof e=="string")return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fr(e,t):void 0}}function Fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var td=function(e,t){var r;switch(e.type){case"line":default:r=new wa(e,t);break;case"polyline":r=new Bs(e,t)}return r},Cf=function(e,t){return 2*Math.abs(e.centerX-t.centerX)<e.width+t.width&&2*Math.abs(e.centerY-t.centerY)<e.height+t.height},Ei=function(e){var t=[],r={};return e.forEach(function(n){var s="".concat(n.x,"-").concat(n.y);n.id=s,r[s]=n}),Object.keys(r).forEach(function(n){t.push(r[n])}),t},Rf=function(e,t){var r=[e,{x:e.x,y:t.y},t];return Ei(r)},vu=function(e,t){return e.width===0&&e.height===0?e:{centerX:e.centerX,centerY:e.centerY,minX:e.minX-t,minY:e.minY-t,maxX:e.maxX+t,maxY:e.maxY+t,height:e.height+2*t,width:e.width+2*t}},dc=function(e,t){var r=Math.abs(e.x-t.centerX),n=Math.abs(e.y-t.centerY);return r/t.width>n/t.height?Sr.HORIZONTAL:Sr.VERTICAL},On=function(e,t,r){return dc(r,t)===Sr.HORIZONTAL?{x:r.x>e.centerX?e.maxX:e.minX,y:r.y}:{x:r.x,y:r.y>e.centerY?e.maxY:e.minY}},Ji=function(e,t){var r=Math.min(e.minX,t.minX),n=Math.min(e.minY,t.minY),s=Math.max(e.maxX,t.maxX),u=Math.max(e.maxY,t.maxY);return{centerX:(r+s)/2,centerY:(n+u)/2,minX:r,minY:n,maxX:s,maxY:u,height:u-n,width:s-r}},mu=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=[],n=[];e.forEach(function(j){r.push(j.x),n.push(j.y)});var s=Math.min.apply(Math,r),u=Math.max.apply(Math,r),p=Math.min.apply(Math,n),g=Math.max.apply(Math,n),m=u-s,x=g-p;return t&&(m+=t,x+=t),{centerX:(s+u)/2,centerY:(p+g)/2,maxX:u,maxY:g,minX:s,minY:p,x:(s+u)/2,y:(p+g)/2,height:x,width:m}},yc=function(e){var t=e.minX,r=e.minY,n=e.maxX,s=e.maxY;return[{x:t,y:r},{x:n,y:r},{x:n,y:s},{x:t,y:s}]},bu=function(e,t){var r=e.x,n=e.y;return r<t.minX||r>t.maxX||n<t.minY||n>t.maxY},ai=function(e,t){return t<e.minX||t>e.maxX?[]:[{x:t,y:e.minY},{x:t,y:e.maxY}]},We=function(e,t){return t<e.minY||t>e.maxY?[]:[{x:e.minX,y:t},{x:e.maxX,y:t}]},If=function(e,t){return ai(e,t.x).concat(We(e,t.y))},Bn=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},Lf=function(e,t){var r=0;return t.forEach(function(n){n&&(e.x===n.x&&(r+=-2),e.y===n.y&&(r+=-2))}),r},yr=function(e,t,r,n,s){return Bn(e,t)+Bn(e,r)+Lf(e,[t,r,n,s])},ed=function e(t,r,n,s,u){u||(u=0),t.unshift(r[s]),n[s]&&n[s]!==s&&u<=100&&e(t,r,n,n[s],u+1)},zf=function(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)},ji=function(e,t,r,n){var s=t.x-e.x,u=t.y-e.y,p=n.x-r.x,g=n.y-r.y,m=(-u*(e.x-r.x)+s*(e.y-r.y))/(-p*u+s*g),x=(p*(e.y-r.y)-g*(e.x-r.x))/(-p*u+s*g);return m>=0&&m<=1&&x>=0&&x<=1},Bf=function(e,t,r){if(r.width===0&&r.height===0)return!1;var n=ja(yc(r),4),s=n[0],u=n[1],p=n[2],g=n[3];return ji(e,t,s,u)||ji(e,t,s,g)||ji(e,t,u,p)||ji(e,t,p,g)},rd=function(e,t,r,n){var s=[];return e.forEach(function(u){u!==t&&(u.x!==t.x&&u.y!==t.y||Bf(u,t,r)||Bf(u,t,n)||s.push(u))}),Ei(s)},nd=function(e,t,r,n,s,u,p){var g=[],m=[t],x={},j={},D={};j[t.id]=0,D[t.id]=yr(t,r,t);var R={};e.forEach(function(ot){R[ot.id]=ot});for(var Y=function(){var ot=void 0,vt=1/0;if(m.forEach(function(xt){D[xt.id]<vt&&(vt=D[xt.id],ot=xt)}),ot===r){var mt=[];return ed(mt,R,x,r.id),{v:mt}}zf(m,ot),g.push(ot),rd(e,ot,n,s).forEach(function(xt){if(g.indexOf(xt)===-1){m.indexOf(xt)===-1&&m.push(xt);var Rt=D[ot.id]+Bn(ot,xt);j[xt.id]&&Rt>=j[xt.id]||(x[xt.id]=ot.id,j[xt.id]=Rt,D[xt.id]=j[xt.id]+yr(xt,r,t,u,p))}})};m.length;){var J=Y();if(Us(J)==="object")return J.v}return[t,r]},Ff=function(e){return fo(e)},gc=function(e){for(var t=1;t<e.length-1;){var r=e[t-1],n=e[t],s=e[t+1];r.x===n.x&&n.x===s.x||r.y===n.y&&n.y===s.y?e.splice(t,1):t++}return e},vc=function(e,t,r,n,s){var u=Ff(r),p=Ff(n),g=vu(u,s),m=vu(p,s),x=On(g,u,e),j=On(m,p,t);if(Cf(g,m)){var D=Yf(e,t,x,j);return[e,x].concat(xi(D),[j,t])}var R=mu([x,j]),Y=Ji(g,R),J=Ji(m,R),ot=[];ot=(ot=ot.concat(yc(Y))).concat(yc(J));var vt={x:(e.x+t.x)/2,y:(e.y+t.y)/2};[R,Y,J].forEach(function(xt){ot=ot.concat(If(xt,vt).filter(function(Rt){return bu(Rt,g)&&bu(Rt,m)}))}),[{x:x.x,y:j.y},{x:j.x,y:x.y}].forEach(function(xt){bu(xt,g)&&bu(xt,m)&&ot.push(xt)}),ot.unshift(x),ot.push(j),ot=Ei(ot);var mt=nd(ot,x,j,u,p,e,t);return mt.unshift(e),mt.push(t),mt.length>2&&(mt=gc(mt)),Ei(mt)},od=function(e){var t;if(e.length===1)t=[e[0],e[0]];else if(e.length>=2){for(var r=e[0],n=e[1],s=on(r.x,r.y,n.x,n.y),u=1;u<e.length-1;u++){var p=e[u],g=e[u+1],m=on(p.x,p.y,g.x,g.y);m>s&&(s=m,r=p,n=g)}t=[r,n]}return t},Uf=function(e,t,r){var n=Kn(e,r),s=Kn(t,r);return n&&s},Hf=function(e,t,r){var n=Kn(e,r),s=Kn(t,r);return!(n&&s)&&(n||s)},un=function(e,t,r){for(var n,s,u=fo(r),p=yc(u),g=0;g<p.length;g++)ji(e,t,p[g],p[(g+1)%p.length])&&(s=[p[g],p[(g+1)%p.length]]);return s&&(n=function(m,x,j,D){var R=(x.y-m.y)*(D.x-j.x)-(m.x-x.x)*(j.y-D.y);if(R===0)return!1;var Y=((x.x-m.x)*(D.x-j.x)*(j.y-m.y)+(x.y-m.y)*(D.x-j.x)*m.x-(D.y-j.y)*(x.x-m.x)*j.x)/R,J=-((x.y-m.y)*(D.y-j.y)*(j.x-m.x)+(x.x-m.x)*(D.y-j.y)*m.y-(D.x-j.x)*(x.y-m.y)*j.y)/R;return(Y-m.x)*(Y-x.x)<=0&&(J-m.y)*(J-x.y)<=0&&(Y-j.x)*(Y-D.x)<=0&&(J-j.y)*(J-D.y)<=0&&{x:Y,y:J}}(e,t,s[0],s[1])),n},mn=function(e,t){var r;return e.x===t.x?r=Sr.VERTICAL:e.y===t.y&&(r=Sr.HORIZONTAL),r},Qi=function(e){var t=e.split(" "),r=[];return t&&t.forEach(function(n){var s=ja(n.split(","),2),u=s[0],p=s[1];r.push({x:Number(u),y:Number(p)})}),r},Yf=function(e,t,r,n){var s=[];if(mn(e,r)===mn(t,n))e.y===r.y?(s.push({x:r.x,y:(r.y+n.y)/2}),s.push({x:n.x,y:(r.y+n.y)/2})):(s.push({x:(r.x+n.x)/2,y:r.y}),s.push({x:(r.x+n.x)/2,y:n.y}));else{var u={x:r.x,y:n.y},p=Ee(u,e,r),g=Ee(u,t,n);if(p||g)u={x:n.x,y:r.y};else{var m=id(u,e,r),x=id(u,t,n);m&&x&&(u={x:n.x,y:r.y})}s.push(u)}return s},id=function(e,t,r){return e.x===t.x&&e.x===r.x||e.y===t.y&&e.y===r.y},Xf=function(e){if(!e)return 0;for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);e.match(/[A-Z]/)?t+=1.5:t+=n>=1&&n<=126||n>=65376&&n<=65439?1:2}return t},Hs=null,ad=function(e,t){Hs||(Hs=document.createElement("canvas"));var r=Hs.getContext("2d");return r.font=t,r.measureText(e).width},Gf=function(e){var t,r=e.start,n=e.end;if(r.x===n.x&&r.y===n.y)t="";else{var s={start:r,end:n,offset:10,verticalLength:5},u=hc(Fs(Fs({},s),{},{type:"start"})),p=hc(Fs(Fs({},s),{},{type:"end"}));t="M".concat(u.leftX," ").concat(u.leftY,`
- L`).concat(u.rightX," ").concat(u.rightY,`
- L`).concat(p.rightX," ").concat(p.rightY,`
- L`).concat(p.leftX," ").concat(p.leftY," z")}return{d:t,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},ta=function(e){var t=e.start,r=e.end,n=e.sourceNode,s=e.targetNode,u=e.offset,p=fo(n),g=fo(s),m=vu(p,u),x=vu(g,u);return{sNext:On(m,p,t),ePre:On(x,g,r)}},Ys=function(e){var t=e.replace(/M/g,"").replace(/C/g,",").split(",");return[mc(t[0]),mc(t[1]),mc(t[2]),mc(t[3])]},mc=function(e){var t=ja(e.replace(/(^\s*)/g,"").split(" "),2);return{x:+t[0],y:+t[1]}},Xs=function(e,t){var r=ja(e,4);return[Xe(r[0],r[1],r[2],r[3],t),e[3]]},Wf=function(e,t){for(var r,n=e.x,s=e.y,u=Qi(t),p=Number.MAX_SAFE_INTEGER,g=[],m=0;m<u.length;m++)g.push({start:u[m],end:u[(m+1)%u.length]});if(g.forEach(function(R){var Y=R.start,J=R.end;if(Y.x===J.x){var ot={x:Y.x,y:s};if(Ee(ot,Y,J)){var vt=Math.abs(Y.x-n);vt<p&&(p=vt,r=ot)}}else if(Y.y===J.y){var mt={x:n,y:Y.y};if(Ee(mt,Y,J)){var xt=Math.abs(Y.y-s);xt<p&&(p=xt,r=mt)}}}),!r){var x=g[0],j=x.start,D=x.end;r={x:j.x+(D.x-j.x)/2,y:j.y+(D.y-j.y)/2}}return r},ud=function(e){return vi(e,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Vf=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))};function cd(e,t){return typeof t!="function"?function(r,n,s){return Object.assign({type:e.edgeType},s)}:function(r,n,s){var u=t(r,n,s);return u?typeof u=="string"?Object.assign({},s,{type:u}):Object.assign({type:u},s):{type:e.edgeType}}}o(207);var Kf=function(){};function Sg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Co=function(){function e(n){var s=this,u=n.onDragStart,p=u===void 0?Kf:u,g=n.onDragging,m=g===void 0?Kf:g,x=n.onDragEnd,j=x===void 0?Kf:x,D=n.eventType,R=D===void 0?"":D,Y=n.eventCenter,J=Y===void 0?null:Y,ot=n.step,vt=ot===void 0?1:ot,mt=n.isStopPropagation,xt=mt===void 0||mt,Rt=n.model,qt=Rt===void 0?null:Rt,te=n.data,we=te===void 0?null:te;(function($t,de){if(!($t instanceof de))throw new TypeError("Cannot call a class as a function")})(this,e),Kr(this,"onDragStart",void 0),Kr(this,"onDragging",void 0),Kr(this,"onDragEnd",void 0),Kr(this,"step",void 0),Kr(this,"isStopPropagation",void 0),Kr(this,"isDragging",!1),Kr(this,"isStartDragging",!1),Kr(this,"startX",0),Kr(this,"startY",0),Kr(this,"sumDeltaX",0),Kr(this,"sumDeltaY",0),Kr(this,"eventType",void 0),Kr(this,"eventCenter",void 0),Kr(this,"model",void 0),Kr(this,"data",void 0),Kr(this,"startTime",void 0),Kr(this,"handleMouseDown",function($t){var de,ee,Je,or=(de=window)===null||de===void 0?void 0:de.document;if($t.button===0){s.isStopPropagation&&$t.stopPropagation(),s.isStartDragging=!0,s.startX=$t.clientX,s.startY=$t.clientY,or.addEventListener("mousemove",s.handleMouseMove,!1),or.addEventListener("mouseup",s.handleMouseUp,!1);var Ce=(ee=s.model)===null||ee===void 0?void 0:ee.getData();(Je=s.eventCenter)===null||Je===void 0||Je.emit(he["".concat(s.eventType,"_MOUSEDOWN")],{e:$t,data:s.data||Ce}),s.startTime=new Date().getTime()}}),Kr(this,"handleMouseMove",function($t){if(s.isStopPropagation&&$t.stopPropagation(),s.isStartDragging&&(s.sumDeltaX+=$t.clientX-s.startX,s.sumDeltaY+=$t.clientY-s.startY,s.startX=$t.clientX,s.startY=$t.clientY,s.step<=1||Math.abs(s.sumDeltaX)>s.step||Math.abs(s.sumDeltaY)>s.step)){var de,ee=s.sumDeltaX%s.step,Je=s.sumDeltaY%s.step,or=s.sumDeltaX-ee,Ce=s.sumDeltaY-Je;s.sumDeltaX=ee,s.sumDeltaY=Je;var ur,Qr=(de=s.model)===null||de===void 0?void 0:de.getData();s.isDragging||((ur=s.eventCenter)===null||ur===void 0||ur.emit(he["".concat(s.eventType,"_DRAGSTART")],{e:$t,data:s.data||Qr}),s.onDragStart({event:$t})),s.isDragging=!0,Promise.resolve().then(function(){var tn,Un;s.onDragging({deltaX:or,deltaY:Ce,event:$t}),(tn=s.eventCenter)===null||tn===void 0||tn.emit(he["".concat(s.eventType,"_MOUSEMOVE")],{e:$t,data:s.data||Qr}),(Un=s.eventCenter)===null||Un===void 0||Un.emit(he["".concat(s.eventType,"_DRAG")],{e:$t,data:s.data||Qr})})}}),Kr(this,"handleMouseUp",function($t){var de=window.document;s.isStartDragging=!1,s.isStopPropagation&&$t.stopPropagation(),Promise.resolve().then(function(){var ee,Je,or;de.removeEventListener("mousemove",s.handleMouseMove,!1),de.removeEventListener("mouseup",s.handleMouseUp,!1);var Ce=(ee=s.model)===null||ee===void 0?void 0:ee.getData();(Je=s.eventCenter)===null||Je===void 0||Je.emit(he["".concat(s.eventType,"_MOUSEUP")],{e:$t,data:s.data||Ce}),s.isDragging&&(s.isDragging=!1,s.onDragEnd({event:$t}),(or=s.eventCenter)===null||or===void 0||or.emit(he["".concat(s.eventType,"_DROP")],{e:$t,data:s.data||Ce}))})}),Kr(this,"cancelDrag",function(){var $t,de=($t=window)===null||$t===void 0?void 0:$t.document;de.removeEventListener("mousemove",s.handleMouseMove,!1),de.removeEventListener("mouseup",s.handleMouseUp,!1),s.onDragEnd({event:null}),s.isDragging=!1}),this.onDragStart=p,this.onDragging=m,this.onDragEnd=j,this.step=vt,this.isStopPropagation=xt,this.eventType=R,this.eventCenter=J,this.model=qt,this.data=we}var t,r;return t=e,(r=[{key:"setStep",value:function(n){this.step=n}},{key:"setModel",value:function(n){this.model=n}}])&&Sg(t.prototype,r),e}();function Gs(e){return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ws(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zf(e,t,r){return t&&Ws(e.prototype,t),r&&Ws(e,r),e}function $f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_c(e,t)}function Pn(e){var t=Vs();return function(){var r,n=Oc(e);if(t){var s=Oc(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return Jf(this,r)}}function Jf(e,t){if(t&&(Gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sa(e)}function Sa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qf(e){var t=typeof Map=="function"?new Map:void 0;return Qf=function(r){if(r===null||(n=r,Function.toString.call(n).indexOf("[native code]")===-1))return r;var n;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return bc(r,arguments,Oc(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),_c(s,r)},Qf(e)}function bc(e,t,r){return bc=Vs()?Reflect.construct:function(n,s,u){var p=[null];p.push.apply(p,s);var g=new(Function.bind.apply(n,p));return u&&_c(g,u.prototype),g},bc.apply(null,arguments)}function Vs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _c(e,t){return _c=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},_c(e,t)}function Oc(e){return Oc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Oc(e)}function tp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ep(e,t){return e instanceof bn&&t instanceof bn}var sd=function(e){$f(r,e);var t=Pn(r);function r(n,s,u){var p;return qf(this,r),tp(Sa(p=t.call(this,3)),"x",void 0),tp(Sa(p),"y",void 0),tp(Sa(p),"z",void 0),p[0]=n,p[1]=s,p[2]=u,p.x=n,p.y=s,p.z=u,Object.setPrototypeOf(Sa(p),r.prototype),p}return Zf(r,[{key:"add",value:function(n){if(ep(this,n))return new bn(this.x+n.x,this.y+n.y);var s=this.z+n.z;return new _u((this.x+n.x)/s,(this.y+n.y)/s)}},{key:"subtract",value:function(n){if(ep(this,n))return new bn(this.x-n.x,this.y-n.y);var s=this.z-n.z;return s===0?new bn(this.x-n.x,this.y-n.y):new _u((this.x-n.x)/s,(this.y-n.y)/s)}}]),r}(Qf(Array)),bn=function(e){$f(r,e);var t=Pn(r);function r(n,s,u){var p;return qf(this,r),p=t.call(this,n,s,u!=null?u:0),Object.setPrototypeOf(Sa(p),r.prototype),p}return Zf(r,[{key:"toString",value:function(){return"Vector"}},{key:"dot",value:function(n){var s=this;return n.reduce(function(u,p,g){return u+p*s[g]})}},{key:"cross",value:function(n){return new r(this.y*n.z-this.z*n.y,this.z*n.x-this.x*n.z,this.x*n.y-this.y*n.x)}},{key:"getLength",value:function(){return Math.hypot(this.x,this.y)}},{key:"normalize",value:function(){var n=this.getLength();return new r(this.x/n,this.y/n)}},{key:"crossZ",value:function(n){return this.x*n.y-this.y*n.x}},{key:"angle",value:function(n){var s=this.crossZ(n),u=Math.acos(this.normalize().dot(n.normalize()));return s>=0?u:-u}}]),r}(sd),_u=function(e){$f(r,e);var t=Pn(r);function r(n,s){var u;return qf(this,r),u=t.call(this,n,s,1),Object.setPrototypeOf(Sa(u),r.prototype),u}return Zf(r,[{key:"toString",value:function(){return"Point"}}]),r}(sd);o(67),o(217);function wc(e){return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function rp(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||fd(e,t)||function(){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 ld(e){return function(t){if(Array.isArray(t))return np(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||fd(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function fd(e,t){if(e){if(typeof e=="string")return np(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?np(e,t):void 0}}function np(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ks(e,t,r){return t&&pd(e.prototype,t),r&&pd(e,r),e}function qs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}function l(e){var t=H();return function(){var r,n=lt(e);if(t){var s=lt(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function _(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){var t=typeof Map=="function"?new Map:void 0;return S=function(r){if(r===null||(n=r,Function.toString.call(n).indexOf("[native code]")===-1))return r;var n;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return N(r,arguments,lt(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),rt(s,r)},S(e)}function N(e,t,r){return N=H()?Reflect.construct:function(n,s,u){var p=[null];p.push.apply(p,s);var g=new(Function.bind.apply(n,p));return u&&rt(g,u.prototype),g},N.apply(null,arguments)}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function rt(e,t){return rt=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},rt(e,t)}function lt(e){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},lt(e)}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $,Ct,Ht,le,ye,Pe,zt,Xt,De,ue,Ne,Le,Qe,ve=function(e){qs(r,e);var t=l(r);function r(){var n;Ou(this,r);for(var s=arguments.length,u=new Array(s),p=0;p<s;p++)u[p]=arguments[p];return Ot(_(n=t.call(this,u.length)),"rows",void 0),Ot(_(n),"columns",void 0),n.fill(new Array(3)),u.forEach(function(g,m){n[m]=g}),n.columns=u[0].length,n.rows=u.length,Object.setPrototypeOf(_(n),r.prototype),n}return Ks(r,[{key:"getRow",value:function(n){return this[n]}},{key:"getColumn",value:function(n){return ld(this.map(function(s){return s[n]}))}},{key:"transpose",value:function(){for(var n=[],s=0;s<this.columns;s++)n.push(this.getColumn(s));return N(r,n)}},{key:"cross",value:function(n){var s=new Array(this.rows).fill("").map(function(){return[]});if(this.columns===n.rows)for(var u=0;u<this.rows;u++)for(var p=this.getRow(u),g=function(x){var j=n.getColumn(x);s[u][x]=p.reduce(function(D,R,Y){return D+R*j[Y]},0)},m=0;m<n.columns;m++)g(m);return N(r,ld(s))}},{key:"to2D",value:function(){return this.map(function(n){return[n[0],n[1]]})}},{key:"toPoints",value:function(){return this.map(function(n){return new _u(n[0],n[1])})}},{key:"toString",value:function(){var n=rp(this[0],2),s=n[0],u=n[1],p=rp(this[1],2),g=p[0],m=p[1],x=rp(this[2],2),j=x[0],D=x[1];return"matrix(".concat(s," ").concat(u," ").concat(g," ").concat(m," ").concat(j," ").concat(D,")")}},{key:"translate",value:function(n,s){return this.cross(new wn(n,s))}},{key:"rotate",value:function(n){return this.cross(new Te(n))}},{key:"scale",value:function(n,s){return this.cross(new cn(n,s))}}]),r}(S(Array)),Te=function(e){qs(r,e);var t=l(r);function r(n){var s;return Ou(this,r),s=t.call(this,new bn(+Math.cos(n).toFixed(2),+Math.sin(n).toFixed(2),0),new bn(-Math.sin(n).toFixed(2),+Math.cos(n).toFixed(2),0),new bn(0,0,1)),Object.setPrototypeOf(_(s),r.prototype),s}return Ks(r,[{key:"inverse",value:function(){return this.transpose()}}]),r}(ve),cn=function(e){qs(r,e);var t=l(r);function r(n,s){var u;return Ou(this,r),Ot(_(u=t.call(this,new bn(n,0,0),new bn(0,s,0),new bn(0,0,1))),"sx",void 0),Ot(_(u),"sy",void 0),u.sx=n,u.sy=s,Object.setPrototypeOf(_(u),r.prototype),u}return Ks(r,[{key:"inverse",value:function(){return new r(1/this.sx,1/this.sy)}}]),r}(ve),wn=function(e){qs(r,e);var t=l(r);function r(n,s){var u;return Ou(this,r),Ot(_(u=t.call(this,new bn(1,0,0),new bn(0,1,0),new bn(n,s,1))),"tx",void 0),Ot(_(u),"ty",void 0),u.tx=n,u.ty=s,Object.setPrototypeOf(_(u),r.prototype),u}return Ks(r,[{key:"inverse",value:function(){return new r(-this.tx,-this.ty)}}]),r}(ve),Ro={node:!1,edge:!1},dn={node:!0,edge:!0};function ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ui(Object(r),!0).forEach(function(n){ho(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||Aa(e,t)||function(){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 Ai(e){return function(t){if(Array.isArray(t))return Pi(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Aa(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Aa(e,t){if(e){if(typeof e=="string")return Pi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pi(e,t):void 0}}function Pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xc(e){return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function po(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Zs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function me(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Ec,op=200,jc=($=function(){function e(n){(function(Y,J){if(!(Y instanceof J))throw new TypeError("Cannot call a class as a function")})(this,e),ho(this,"rootEl",void 0),po(this,"width",Ct,this),po(this,"height",Ht,this),ho(this,"theme",void 0),ho(this,"eventCenter",void 0),ho(this,"modelMap",new Map),ho(this,"topElement",void 0),ho(this,"animation",void 0),ho(this,"idGenerator",void 0),ho(this,"edgeGenerator",void 0),ho(this,"nodeMoveRules",[]),ho(this,"customTrajectory",void 0),po(this,"edgeType",le,this),po(this,"nodes",ye,this),po(this,"edges",Pe,this),po(this,"overlapMode",zt,this),po(this,"background",Xt,this),po(this,"transformModel",De,this),po(this,"editConfigModel",ue,this),po(this,"gridSize",Ne,this),po(this,"partial",Le,this),po(this,"fakerNode",Qe,this);var s,u=n.container,p=n.background,g=p===void 0?{}:p,m=n.grid,x=n.idGenerator,j=n.edgeGenerator,D=n.animation,R=n.customTrajectory;this.background=g,xc(m)==="object"&&(this.gridSize=m.size),this.rootEl=u,this.editConfigModel=new Xl(n),this.eventCenter=new As,this.transformModel=new mh(this.eventCenter,n),this.theme=uc(n.style),this.edgeType=n.edgeType||"polyline",this.width=n.width,this.height=n.height,this.animation=(s=D)&&typeof s!="boolean"?ac(Nr(Ro),s):Nr(s===!0?dn:Ro),this.partial=n.partial,this.overlapMode=n.overlapMode||0,this.idGenerator=x,this.customTrajectory=R,this.edgeGenerator=cd(this,j),this.width=n.width||this.rootEl.getBoundingClientRect().width,this.height=n.height||this.rootEl.getBoundingClientRect().height,this.flowId=No()}var t,r;return t=e,r=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(n,s,u){return n[s.id]={index:u,model:s},n},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(n,s,u){return n[s.id]={index:u,model:s},n},{})}},{key:"modelsMap",get:function(){return[].concat(Ai(this.nodes),Ai(this.edges)).reduce(function(n,s){return n[s.id]=s,n},{})}},{key:"sortElements",get:function(){var n=[];this.nodes.forEach(function(x){return n.push(x)}),this.edges.forEach(function(x){return n.push(x)}),n=n.sort(function(x,j){return x.zIndex-j.zIndex});for(var s=[],u=[-200,-200],p=[this.width+op,this.height+op],g=0;g<n.length;g++){var m=n[g];m.visible&&(!this.partial||m.isSelected||this.isElementInArea(m,u,p,!1,!1))&&s.push(m)}return s}},{key:"textEditElement",get:function(){var n=this.nodes.find(function(u){return u.state===dr.TEXT_EDIT}),s=this.edges.find(function(u){return u.state===dr.TEXT_EDIT});return n||s}},{key:"selectElements",get:function(){var n=new Map;return this.nodes.forEach(function(s){s.isSelected&&n.set(s.id,s)}),this.edges.forEach(function(s){s.isSelected&&n.set(s.id,s)}),n}},{key:"selectNodes",get:function(){var n=[];return this.nodes.forEach(function(s){s.isSelected&&n.push(s)}),n}},{key:"getAreaElement",value:function(n,s){var u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],g=arguments.length>4&&arguments[4]!==void 0&&arguments[4],m=[],x=[];this.nodes.forEach(function(R){return x.push(R)}),this.edges.forEach(function(R){return x.push(R)});for(var j=0;j<x.length;j++){var D=x[j];g&&!D.visible||!this.isElementInArea(D,n,s,u,p)||m.push(D)}return m}},{key:"getModel",value:function(n){return this.modelMap.get(n)}},{key:"getNodeModelById",value:function(n){var s;return this.fakerNode&&n===this.fakerNode.id?this.fakerNode:(s=this.nodesMap[n])===null||s===void 0?void 0:s.model}},{key:"getPointByClient",value:function(n){var s=n.x,u=n.y,p=this.rootEl.getBoundingClientRect(),g={x:s-p.left,y:u-p.top},m=Si(this.transformModel.HtmlPointToCanvasPoint([g.x,g.y]),2);return{domOverlayPosition:g,canvasOverlayPosition:{x:m[0],y:m[1]}}}},{key:"isElementInArea",value:function(n,s,u){var p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],g=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(n.BaseType===Jr.NODE){for(var m=fo(n=n),x=m.minX,j=m.minY,D=m.maxX,R=m.maxY,Y=[{x,y:j},{x:D,y:j},{x:D,y:R},{x,y:R}],J=g,ot=0;ot<Y.length;ot++){var vt=Y[ot],mt=vt.x,xt=vt.y,Rt=this.transformModel.CanvasPointToHtmlPoint([mt,xt]),qt=Si(Rt,2);if(mt=qt[0],xt=qt[1],Ts([mt,xt],s,u)!==g){J=!g;break}}return J}if(n.BaseType===Jr.EDGE){var te=n=n,we=te.startPoint,$t=te.endPoint,de=this.transformModel.CanvasPointToHtmlPoint([we.x,we.y]),ee=this.transformModel.CanvasPointToHtmlPoint([$t.x,$t.y]),Je=Ts(de,s,u),or=Ts(ee,s,u);return p?Je&&or:Je||or}return!1}},{key:"graphDataToModel",value:function(n){var s=this;if(this.width&&this.height||this.resize(),!n)return this.nodes=[],void(this.edges=[]);n.nodes?this.nodes=ss(n.nodes,function(u){var p=s.getModel(u.type);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(u.type,"\u5BF9\u5E94\u7684\u8282\u70B9\u3002"));var g=u.x,m=u.y;return g&&m&&(u.x=ni(g,s.gridSize),u.y=ni(m,s.gridSize),xc(u.text)==="object"&&(u.text.x-=lu(g,s.gridSize),u.text.y-=lu(m,s.gridSize))),new p(u,s)}):this.nodes=[],n.edges?this.edges=ss(n.edges,function(u){var p=s.getModel(u.type);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(u.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new p(u,s)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var n=[];this.edges.forEach(function(u){var p=u.getData();p&&!u.virtual&&n.push(p)});var s=[];return this.nodes.forEach(function(u){var p=u.getData();p&&!u.virtual&&s.push(p)}),{nodes:s,edges:n}}},{key:"modelToHistoryData",value:function(){for(var n=!1,s=[],u=0;u<this.nodes.length;u++){var p=this.nodes[u];if(p.isDragging){n=!0;break}s.push(p.getHistoryData())}if(n)return!1;for(var g=!1,m=[],x=0;x<this.edges.length;x++){var j=this.edges[x];if(j.isDragging){g=!0;break}m.push(j.getHistoryData())}return!g&&{nodes:s,edges:m}}},{key:"getEdgeModelById",value:function(n){var s;return(s=this.edgesMap[n])===null||s===void 0?void 0:s.model}},{key:"getElement",value:function(n){return this.modelsMap[n]}},{key:"getNodeEdges",value:function(n){for(var s=[],u=0;u<this.edges.length;u++){var p=this.edges[u],g=this.edges[u].sourceNodeId===n,m=this.edges[u].targetNodeId===n;(g||m)&&s.push(p)}return s}},{key:"getSelectElements",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],s=this.selectElements,u={nodes:[],edges:[]};return s.forEach(function(p){if(p.BaseType===Jr.NODE&&u.nodes.push(p.getData()),p.BaseType===Jr.EDGE){var g=p.getData(),m=s.get(g.sourceNodeId)&&s.get(g.targetNodeId);(n||m)&&u.edges.push(g)}}),u}},{key:"updateAttributes",value:function(n,s){this.getElement(n).updateAttributes(s)}},{key:"changeNodeId",value:function(n,s){return s||(s=No()),this.nodesMap[s]?"":this.nodesMap[n]?(this.edges.forEach(function(u){u.sourceNodeId===n&&(u.sourceNodeId=s),u.targetNodeId===n&&(u.targetNodeId=s)}),this.nodesMap[n].model.id=s,this.nodesMap[s]=this.nodesMap[n],s):""}},{key:"changeEdgeId",value:function(n,s){return s||(s=No()),this.edgesMap[s]?"":this.edgesMap[n]?(this.edges.forEach(function(u){u.id===n&&u.changeEdgeId(s)}),s):""}},{key:"setFakerNode",value:function(n){this.fakerNode=n}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(n,s){return this.modelMap.set(n,s)}},{key:"toFront",value:function(n){var s,u,p,g=((s=this.nodesMap[n])===null||s===void 0?void 0:s.model)||((u=this.edgesMap[n])===null||u===void 0?void 0:u.model);g&&(this.overlapMode===zr.DEFAULT&&((p=this.topElement)===null||p===void 0||p.setZIndex(),g.setZIndex(9999),this.topElement=g),this.overlapMode===zr.INCREASE&&this.setElementZIndex(n,"top"))}},{key:"setElementZIndex",value:function(n,s){var u,p,g,m=((u=this.nodesMap[n])===null||u===void 0?void 0:u.model)||((p=this.edgesMap[n])===null||p===void 0?void 0:p.model);m&&(typeof s=="number"&&(g=s),s==="top"&&(g=wf()),s==="bottom"&&(g=--Gh),m.setZIndex(g))}},{key:"deleteNode",value:function(n){var s=this.nodesMap[n].model.getData();this.deleteEdgeBySource(n),this.deleteEdgeByTarget(n),this.nodes.splice(this.nodesMap[n].index,1),this.eventCenter.emit(he.NODE_DELETE,{data:s})}},{key:"addNode",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:he.NODE_ADD,u=arguments.length>2?arguments[2]:void 0,p=Pr(n);p.id&&this.nodesMap[n.id]&&delete p.id;var g=this.getModel(p.type);if(!g)throw new Error("\u627E\u4E0D\u5230".concat(p.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));p.x=ni(p.x,this.gridSize),p.y=ni(p.y,this.gridSize);var m=new g(p,this);this.nodes.push(m);var x=m.getData(),j={data:x};return u&&(j.e=u),this.eventCenter.emit(s,j),m}},{key:"cloneNode",value:function(n){var s=this.getNodeModelById(n),u=s.getData();u.x+=30,u.y+=30,delete u.id,u.text&&(u.text.x+=30,u.text.y+=30);var p=this.addNode(u);return p.setSelected(!0),s.setSelected(!1),p.getData()}},{key:"moveNode",value:function(n,s,u){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=this.nodesMap[n];if(g){var m=g.model,x=m.getMoveDistance(s,u,p),j=Si(x,2);s=j[0],u=j[1],this.moveEdge(n,s,u)}}},{key:"moveNode2Coordinate",value:function(n,s,u){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=this.nodesMap[n];if(g){var m=g.model,x=m.x,j=m.y,D=s-x,R=u-j;this.moveNode(n,D,R,p)}}},{key:"editText",value:function(n){this.setElementStateById(n,dr.TEXT_EDIT)}},{key:"addEdge",value:function(n){var s=Pr(n),u=s.type;u||(u=this.edgeType),s.id&&this.edgesMap[s.id]&&delete s.id;var p=this.getModel(u);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(u,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var g=new p(Io(Io({},s),{},{type:u}),this),m=g.getData();return this.edges.push(g),this.eventCenter.emit(he.EDGE_ADD,{data:m}),g}},{key:"moveEdge",value:function(n,s,u){for(var p=0;p<this.edges.length;p++){var g=this.edges[p],m=g.textPosition,x=m.x,j=m.y,D=this.edges[p].sourceNodeId===n,R=this.edges[p].targetNodeId===n;D&&g.moveStartPoint(s,u),R&&g.moveEndPoint(s,u),(D||R)&&this.handleEdgeTextMove(g,x,j)}}},{key:"handleEdgeTextMove",value:function(n,s,u){var p;if(n.customTextPosition===!0)n.resetTextPosition();else if(n.modelType===qe.POLYLINE_EDGE&&(p=n.text)!==null&&p!==void 0&&p.value){var g=n.text,m=Wf(g,n.points);n.moveText(m.x-g.x,m.y-g.y)}else{var x=n.textPosition,j=x.x,D=x.y;n.moveText(j-s,D-u)}}},{key:"deleteEdgeBySourceAndTarget",value:function(n,s){for(var u=0;u<this.edges.length;u++)if(this.edges[u].sourceNodeId===n&&this.edges[u].targetNodeId===s){var p=this.edges[u].getData();this.edges.splice(u,1),u--,this.eventCenter.emit(he.EDGE_DELETE,{data:p})}}},{key:"deleteEdgeById",value:function(n){if(this.edgesMap[n]){var s=this.edgesMap[n].index,u=this.edgesMap[n].model.getData();this.edges.splice(s,1),this.eventCenter.emit(he.EDGE_DELETE,{data:u})}}},{key:"deleteEdgeBySource",value:function(n){for(var s=0;s<this.edges.length;s++)if(this.edges[s].sourceNodeId===n){var u=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(he.EDGE_DELETE,{data:u})}}},{key:"deleteEdgeByTarget",value:function(n){for(var s=0;s<this.edges.length;s++)if(this.edges[s].targetNodeId===n){var u=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(he.EDGE_DELETE,{data:u})}}},{key:"setElementStateById",value:function(n,s,u){this.nodes.forEach(function(p){p.id===n?p.setElementState(s,u):p.setElementState(dr.DEFAULT)}),this.edges.forEach(function(p){p.id===n?p.setElementState(s,u):p.setElementState(dr.DEFAULT)})}},{key:"updateText",value:function(n,s){this.nodes.forEach(function(u){u.id===n&&u.updateText(s)}),this.edges.forEach(function(u){u.id===n&&u.updateText(s)})}},{key:"selectNodeById",value:function(n){var s,u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];u||this.clearSelectElements();var p=(s=this.nodesMap[n])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectEdgeById",value:function(n){var s,u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];u||this.clearSelectElements();var p=(s=this.edgesMap[n])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectElementById",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];s||this.clearSelectElements();var u=this.getElement(n);u==null||u.setSelected(!0)}},{key:"clearSelectElements",value:function(){var n;this.selectElements.forEach(function(s){s==null||s.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===zr.DEFAULT&&((n=this.topElement)===null||n===void 0||n.setZIndex())}},{key:"moveNodes",value:function(n,s,u){for(var p=this,g=arguments.length>3&&arguments[3]!==void 0&&arguments[3],m=n.reduce(function(qt,te){var we=p.nodesMap[te].model.getMoveDistance(s,u,g);return qt[te]=we,qt},{}),x=0;x<this.edges.length;x++){var j=this.edges[x],D=j.textPosition,R=D.x,Y=D.y,J=m[j.sourceNodeId],ot=void 0,vt=void 0;if(J){var mt=Si(J,2);ot=mt[0],vt=mt[1],j.moveStartPoint(ot,vt)}var xt=m[j.targetNodeId];if(xt){var Rt=Si(xt,2);ot=Rt[0],vt=Rt[1],j.moveEndPoint(ot,vt)}(J||xt)&&this.handleEdgeTextMove(j,R,Y)}}},{key:"addNodeMoveRules",value:function(n){this.nodeMoveRules.includes(n)||this.nodeMoveRules.push(n)}},{key:"setDefaultEdgeType",value:function(n){this.edgeType=n}},{key:"changeNodeType",value:function(n,s){var u=this.getNodeModelById(n);if(u){var p=u.getData();p.type=s;var g=this.getModel(s);if(!g)throw new Error("\u627E\u4E0D\u5230".concat(s,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var m=new g(p,this);this.nodes.splice(this.nodesMap[n].index,1,m),this.getNodeEdges(n).forEach(function(x){if(x.sourceNodeId===n){var j=_f(m,x.startPoint,m.width,m.height);x.updateStartPoint(j)}if(x.targetNodeId===n){var D=_f(m,x.endPoint,m.width,m.height);x.updateEndPoint(D)}})}}},{key:"changeEdgeType",value:function(n,s){var u=this.getEdgeModelById(n);if(u&&u.type!==s){var p=u.getData();p.type=s;var g=this.getModel(s);if(!g)throw new Error("\u627E\u4E0D\u5230".concat(s,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));delete p.pointsList;var m=new g(p,this);this.edges.splice(this.edgesMap[n].index,1,m)}}},{key:"getNodeIncomingEdge",value:function(n){var s=[];return this.edges.forEach(function(u){u.targetNodeId===n&&s.push(u)}),s}},{key:"getNodeOutgoingEdge",value:function(n){var s=[];return this.edges.forEach(function(u){u.sourceNodeId===n&&s.push(u)}),s}},{key:"getNodeIncomingNode",value:function(n){var s=this,u=[];return this.edges.forEach(function(p){p.targetNodeId===n&&u.push(s.nodesMap[p.sourceNodeId].model)}),u}},{key:"getNodeOutgoingNode",value:function(n){var s=this,u=[];return this.edges.forEach(function(p){p.sourceNodeId===n&&u.push(s.nodesMap[p.targetNodeId].model)}),u}},{key:"setTheme",value:function(n){this.theme=uc(Io(Io({},this.theme),n))}},{key:"resize",value:function(n,s){this.width=n||this.rootEl.getBoundingClientRect().width,this.height=s||this.rootEl.getBoundingClientRect().height,!this.width||this.height}},{key:"clearData",value:function(){this.nodes=[],this.edges=[]}},{key:"getVirtualRectSize",value:function(){var n=this.nodes,s=[],u=[];n.forEach(function(D){var R=D.x,Y=D.y,J=D.width,ot=D.height,vt=D.getNodeStyle().strokeWidth,mt=vt===void 0?0:vt,xt=R+J/2+mt,Rt=R-J/2-mt,qt=Y+ot/2+mt,te=Y-ot/2-mt;s=s.concat([xt,Rt].filter(function(we){return!Number.isNaN(we)})),u=u.concat([qt,te].filter(function(we){return!Number.isNaN(we)}))});var p=Math.min.apply(Math,Ai(s)),g=Math.max.apply(Math,Ai(s)),m=Math.min.apply(Math,Ai(u)),x=g-p||0,j=Math.max.apply(Math,Ai(u))-m||0;return{virtualRectWidth:x,virtualRectHeight:j,virtualRectCenterPositionX:p+x/2,virtualRectCenterPositionY:m+j/2}}},{key:"translateCenter",value:function(){var n=this.nodes,s=this.width,u=this.height,p=this.rootEl,g=this.transformModel;if(n.length){var m=s||p.clientWidth,x=u||p.clientHeight,j=this.getVirtualRectSize(),D=j.virtualRectCenterPositionX,R=j.virtualRectCenterPositionY;g.focusOn(D,R,m,x)}}},{key:"fitView",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,u=this.nodes,p=this.width,g=this.height,m=this.rootEl,x=this.transformModel;if(u.length){var j=p||m.clientWidth,D=g||m.clientHeight,R=this.getVirtualRectSize(),Y=R.virtualRectWidth,J=R.virtualRectHeight,ot=R.virtualRectCenterPositionX,vt=R.virtualRectCenterPositionY,mt=(Y+s)/j,xt=(J+n)/D,Rt=0;Rt=1/Math.max(mt,xt);var qt=[j/2,D/2];x.zoom(Rt,qt),x.focusOn(ot,vt,j,D)}}},{key:"openEdgeAnimation",value:function(n){this.getEdgeModelById(n).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(n){this.getEdgeModelById(n).closeEdgeAnimation()}}],r&&Zs(t.prototype,r),e}(),Ct=me($.prototype,"width",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=me($.prototype,"height",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=me($.prototype,"edgeType",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=me($.prototype,"nodes",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Pe=me($.prototype,"edges",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),zt=me($.prototype,"overlapMode",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return zr.DEFAULT}}),Xt=me($.prototype,"background",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=me($.prototype,"transformModel",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=me($.prototype,"editConfigModel",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ne=me($.prototype,"gridSize",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Le=me($.prototype,"partial",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=me($.prototype,"fakerNode",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me($.prototype,"nodesMap",[y.m],Object.getOwnPropertyDescriptor($.prototype,"nodesMap"),$.prototype),me($.prototype,"edgesMap",[y.m],Object.getOwnPropertyDescriptor($.prototype,"edgesMap"),$.prototype),me($.prototype,"modelsMap",[y.m],Object.getOwnPropertyDescriptor($.prototype,"modelsMap"),$.prototype),me($.prototype,"sortElements",[y.m],Object.getOwnPropertyDescriptor($.prototype,"sortElements"),$.prototype),me($.prototype,"textEditElement",[y.m],Object.getOwnPropertyDescriptor($.prototype,"textEditElement"),$.prototype),me($.prototype,"selectElements",[y.m],Object.getOwnPropertyDescriptor($.prototype,"selectElements"),$.prototype),me($.prototype,"selectNodes",[y.m],Object.getOwnPropertyDescriptor($.prototype,"selectNodes"),$.prototype),me($.prototype,"setFakerNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"setFakerNode"),$.prototype),me($.prototype,"removeFakerNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"removeFakerNode"),$.prototype),me($.prototype,"setModel",[y.k],Object.getOwnPropertyDescriptor($.prototype,"setModel"),$.prototype),me($.prototype,"toFront",[y.k],Object.getOwnPropertyDescriptor($.prototype,"toFront"),$.prototype),me($.prototype,"setElementZIndex",[y.k],Object.getOwnPropertyDescriptor($.prototype,"setElementZIndex"),$.prototype),me($.prototype,"deleteNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"deleteNode"),$.prototype),me($.prototype,"addNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"addNode"),$.prototype),me($.prototype,"cloneNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"cloneNode"),$.prototype),me($.prototype,"moveNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"moveNode"),$.prototype),me($.prototype,"moveNode2Coordinate",[y.k],Object.getOwnPropertyDescriptor($.prototype,"moveNode2Coordinate"),$.prototype),me($.prototype,"editText",[y.k],Object.getOwnPropertyDescriptor($.prototype,"editText"),$.prototype),me($.prototype,"addEdge",[y.k],Object.getOwnPropertyDescriptor($.prototype,"addEdge"),$.prototype),me($.prototype,"moveEdge",[y.k],Object.getOwnPropertyDescriptor($.prototype,"moveEdge"),$.prototype),me($.prototype,"deleteEdgeBySourceAndTarget",[y.k],Object.getOwnPropertyDescriptor($.prototype,"deleteEdgeBySourceAndTarget"),$.prototype),me($.prototype,"deleteEdgeById",[y.k],Object.getOwnPropertyDescriptor($.prototype,"deleteEdgeById"),$.prototype),me($.prototype,"deleteEdgeBySource",[y.k],Object.getOwnPropertyDescriptor($.prototype,"deleteEdgeBySource"),$.prototype),me($.prototype,"deleteEdgeByTarget",[y.k],Object.getOwnPropertyDescriptor($.prototype,"deleteEdgeByTarget"),$.prototype),me($.prototype,"setElementStateById",[y.k],Object.getOwnPropertyDescriptor($.prototype,"setElementStateById"),$.prototype),me($.prototype,"updateText",[y.k],Object.getOwnPropertyDescriptor($.prototype,"updateText"),$.prototype),me($.prototype,"selectNodeById",[y.k],Object.getOwnPropertyDescriptor($.prototype,"selectNodeById"),$.prototype),me($.prototype,"selectEdgeById",[y.k],Object.getOwnPropertyDescriptor($.prototype,"selectEdgeById"),$.prototype),me($.prototype,"selectElementById",[y.k],Object.getOwnPropertyDescriptor($.prototype,"selectElementById"),$.prototype),me($.prototype,"clearSelectElements",[y.k],Object.getOwnPropertyDescriptor($.prototype,"clearSelectElements"),$.prototype),me($.prototype,"moveNodes",[y.k],Object.getOwnPropertyDescriptor($.prototype,"moveNodes"),$.prototype),me($.prototype,"setDefaultEdgeType",[y.k],Object.getOwnPropertyDescriptor($.prototype,"setDefaultEdgeType"),$.prototype),me($.prototype,"changeNodeType",[y.k],Object.getOwnPropertyDescriptor($.prototype,"changeNodeType"),$.prototype),me($.prototype,"changeEdgeType",[y.k],Object.getOwnPropertyDescriptor($.prototype,"changeEdgeType"),$.prototype),me($.prototype,"getNodeIncomingEdge",[y.k],Object.getOwnPropertyDescriptor($.prototype,"getNodeIncomingEdge"),$.prototype),me($.prototype,"getNodeOutgoingEdge",[y.k],Object.getOwnPropertyDescriptor($.prototype,"getNodeOutgoingEdge"),$.prototype),me($.prototype,"getNodeIncomingNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"getNodeIncomingNode"),$.prototype),me($.prototype,"getNodeOutgoingNode",[y.k],Object.getOwnPropertyDescriptor($.prototype,"getNodeOutgoingNode"),$.prototype),me($.prototype,"setTheme",[y.k],Object.getOwnPropertyDescriptor($.prototype,"setTheme"),$.prototype),me($.prototype,"resize",[y.k],Object.getOwnPropertyDescriptor($.prototype,"resize"),$.prototype),me($.prototype,"clearData",[y.k],Object.getOwnPropertyDescriptor($.prototype,"clearData"),$.prototype),me($.prototype,"translateCenter",[y.k],Object.getOwnPropertyDescriptor($.prototype,"translateCenter"),$.prototype),me($.prototype,"fitView",[y.k],Object.getOwnPropertyDescriptor($.prototype,"fitView"),$.prototype),me($.prototype,"openEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor($.prototype,"openEdgeAnimation"),$.prototype),me($.prototype,"closeEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor($.prototype,"closeEdgeAnimation"),$.prototype),$),$s=jc;function Ag(e){return Ag=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ag(e)}function Pg(){return Pg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pg.apply(this,arguments)}function LD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kg(e,t){return kg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},kg(e,t)}function zD(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=hd(e);if(t){var s=hd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return BD(this,r)}}function BD(e,t){if(t&&(Ag(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ea(e)}function ea(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},hd(e)}function Pa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H_,FD=Di(Ec=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&kg(u,p)})(s,e);var t,r,n=zD(s);function s(u){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),Pa(ea(p=n.call(this)),"stepDrag",void 0),Pa(ea(p),"stepScrollX",0),Pa(ea(p),"stepScrollY",0),Pa(ea(p),"onDragging",function(j){var D=j.deltaX,R=j.deltaY;p.setState({isDragging:!0});var Y=p.props.graphModel,J=Y.transformModel;Y.editConfigModel.stopMoveGraph!==!0&&J.translate(D,R)}),Pa(ea(p),"onDragEnd",function(){p.setState({isDragging:!1})}),Pa(ea(p),"zoomHandler",function(j){var D=p.props,R=D.graphModel,Y=R.editConfigModel,J=R.transformModel,ot=R.gridSize,vt=D.graphModel,mt=j.deltaX,xt=j.deltaY;if(Y.stopScrollGraph||j.ctrlKey===!0){if(!Y.stopZoomGraph){j.preventDefault();var Rt=vt.getPointByClient({x:j.clientX,y:j.clientY}).canvasOverlayPosition,qt=Rt.x,te=Rt.y;J.zoom(j.deltaY<0,[qt,te])}}else{if(j.preventDefault(),p.stepScrollX+=mt,p.stepScrollY+=xt,Math.abs(p.stepScrollX)>=ot){var we=p.stepScrollX%ot,$t=p.stepScrollX-we;J.translate(-$t*J.SCALE_X,0),p.stepScrollX=we}if(Math.abs(p.stepScrollY)>=ot){var de=p.stepScrollY%ot,ee=p.stepScrollY-de;J.translate(0,-ee*J.SCALE_Y),p.stepScrollY=de}}}),Pa(ea(p),"clickHandler",function(j){if(j.target.getAttribute("name")==="canvas-overlay"){var D=p.props.graphModel;D.selectElements.size>0&&D.clearSelectElements(),D.eventCenter.emit(he.BLANK_CLICK,{e:j})}}),Pa(ea(p),"handleContextMenu",function(j){if(j.target.getAttribute("name")==="canvas-overlay"){j.preventDefault();var D=p.props.graphModel,R=D.getPointByClient({x:j.clientX,y:j.clientY});D.eventCenter.emit(he.BLANK_CONTEXTMENU,{e:j,position:R})}}),Pa(ea(p),"mouseDownHandler",function(j){var D=p.props.graphModel,R=D.eventCenter,Y=D.editConfigModel,J=D.transformModel.SCALE_X,ot=D.gridSize,vt=j.target,mt=!Y.adjustEdge&&!Y.adjustNodePosition;(vt.getAttribute("name")==="canvas-overlay"||mt)&&(Y.stopMoveGraph!==!0?(p.stepDrag.setStep(ot*J),p.stepDrag.handleMouseDown(j)):R.emit(he.BLANK_MOUSEDOWN,{e:j}),p.clickHandler(j))});var g=u.graphModel,m=g.gridSize,x=g.eventCenter;return p.stepDrag=new Co({onDragging:p.onDragging,onDragEnd:p.onDragEnd,step:m,eventType:"BLANK",isStopPropagation:!1,eventCenter:x,model:null}),p.state={isDragging:!1},p}return t=s,(r=[{key:"render",value:function(){var u=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props,g=p.children,m=p.dnd,x=this.state.isDragging;return Object(pt.g)("svg",Pg({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:x?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},m.eventMap()),Object(pt.g)("g",{transform:u},g))}}])&&LD(t.prototype,r),s}(pt.a))||Ec;function Tg(e){return Tg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tg(e)}function UD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mg(e,t){return Mg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Mg(e,t)}function YD(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=dd(e);if(t){var s=dd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return XD(this,r)}}function XD(e,t){if(t&&(Tg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},dd(e)}var GD=Di(H_=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Mg(u,p)})(s,e);var t,r,n=YD(s);function s(){return UD(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"componentDidMount",value:function(){this.triggerToolRender()}},{key:"componentDidUpdate",value:function(){this.triggerToolRender()}},{key:"getTools",value:function(){var u=this.props,p=u.tool,g=u.graphModel,m=p.getTools().map(function(x){return Object(pt.g)(x,{graphModel:g,logicFlow:p.instance})});return p.components=m,m}},{key:"triggerToolRender",value:function(){var u=this.props,p=u.tool,g=u.graphModel,m=document.querySelector("#ToolOverlay_".concat(g.flowId)),x=p.getInstance();x.components.forEach(function(j){return j(x,m)}),x.components=[]}},{key:"render",value:function(){var u=this.props.graphModel;return Object(pt.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(u.flowId)},this.getTools())}}])&&HD(t.prototype,r),s}(pt.a))||H_;function Dg(e){return Dg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dg(e)}function WD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ng(e,t){return Ng=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Ng(e,t)}function KD(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=yd(e);if(t){var s=yd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return qD(this,r)}}function qD(e,t){if(t&&(Dg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function yd(e){return yd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},yd(e)}var Y_,ZD=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Ng(u,p)})(s,e);var t,r,n=KD(s);function s(){return WD(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var u=this.props.background;return Object(pt.g)("div",{className:"lf-background"},Object(pt.g)("div",{style:u,className:"lf-background-area"}))}}])&&VD(t.prototype,r),s}(pt.a);function Cg(e){return Cg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cg(e)}function $D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rg(e,t){return Rg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Rg(e,t)}function QD(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=gd(e);if(t){var s=gd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return tN(this,r)}}function tN(e,t){if(t&&(Cg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X_(e)}function X_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gd(e)}function eN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G_=Di(Y_=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Rg(u,p)})(s,e);var t,r,n=QD(s);function s(){var u;$D(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return eN(X_(u=n.call.apply(n,[this].concat(g))),"id",No()),u}return t=s,(r=[{key:"renderDot",value:function(){var u=this.props,p=u.config,g=p.color,m=p.thickness,x=m===void 0?2:m,j=u.size,D=u.visible,R=Math.min(Math.max(2,x),j/2),Y=1;return D||(Y=0),Object(pt.g)("rect",{width:R,height:R,rx:R/2,ry:R/2,fill:g,opacity:Y})}},{key:"renderMesh",value:function(){var u=this.props,p=u.config,g=p.color,m=p.thickness,x=m===void 0?1:m,j=u.size,D=u.visible,R=Math.min(Math.max(1,x),j/2),Y="M ".concat(j," 0 H0 M0 0 V0 ").concat(j),J=1;return D||(J=0),Object(pt.g)("path",{d:Y,stroke:g,strokeWidth:R,opacity:J})}},{key:"render",value:function(){var u=this.props,p=u.type,g=u.size,m=u.graphModel.transformModel,x=[m.SCALE_X,m.SKEW_Y,m.SKEW_X,m.SCALE_Y,m.TRANSLATE_X,m.TRANSLATE_Y].join(","),j="matrix(".concat(x,")");return Object(pt.g)("div",{className:"lf-grid"},Object(pt.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(pt.g)("defs",null,Object(pt.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:j,x:"0",y:"0",width:g,height:g},p==="dot"&&this.renderDot(),p==="mesh"&&this.renderMesh())),Object(pt.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&JD(t.prototype,r),s}(pt.a))||Y_;G_.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);function Ig(e){return Ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ig(e)}function rN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return W_(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return W_(r,n)}}(e,t)||function(){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 W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var V_,Js=function(e){var t={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(e).forEach(function(r){var n=rN(r,2),s=n[0],u=n[1];(s==="style"||Ig(u)!=="object")&&(t[s]=u)}),Object(pt.g)("line",t)};function Lg(e){return Lg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lg(e)}function K_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function vd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(r),!0).forEach(function(n){nN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zg(e,t){return zg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},zg(e,t)}function aN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=md(e);if(t){var s=md(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return uN(this,r)}}function uN(e,t){if(t&&(Lg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function md(e){return md=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},md(e)}var q_,cN=Di(V_=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&zg(u,p)})(s,e);var t,r,n=aN(s);function s(){return oN(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var u=this.props.snaplineModel,p=u.position,g=u.isShowHorizontal,m=u.isShowVertical,x=u.getStyle(),j=p.x,D=j===void 0?0:j,R=p.y,Y=R===void 0?0:R,J=vd(vd({x1:-1e5,y1:Y,x2:1e5,y2:Y},x),{},{stroke:g?x.stroke:"none"}),ot=vd(vd({x1:D,y1:-1e5,x2:D,y2:1e5},x),{},{stroke:m?x.stroke:"none"});return Object(pt.g)("g",{className:"lf-snapline"},Object(pt.g)(Js,J),Object(pt.g)(Js,ot))}}])&&iN(t.prototype,r),s}(pt.a))||V_;function Bg(e){return Bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bg(e)}function sN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return Z_(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Z_(r,n)}}(e,t)||function(){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 Z_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wu(e){var t=e.x,r=e.y,n=e.width,s=e.height,u=e.className,p=e.radius,g=t-n/2,m=r-s/2,x={};return Object.entries(e).forEach(function(j){var D=sN(j,2),R=D[0],Y=D[1];Bg(Y)!=="object"&&(x[R]=Y)}),x.className=u?"lf-basic-shape ".concat(u):"lf-basic-shape",p&&(x.rx=p,x.ry=p),x.x=g,x.y=m,Object(pt.g)("rect",x)}function Fg(e){return Fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fg(e)}function Qs(){return Qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qs.apply(this,arguments)}function $_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function J_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$_(Object(r),!0).forEach(function(n){lN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ug(e,t){return Ug=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Ug(e,t)}function hN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=bd(e);if(t){var s=bd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return dN(this,r)}}function dN(e,t){if(t&&(Fg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function bd(e){return bd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},bd(e)}wu.defaultProps={className:"",radius:""};var Q_,yN=Di(q_=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Ug(u,p)})(s,e);var t,r,n=hN(s);function s(){return fN(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getNodesOutline",value:function(){var u=this.props.graphModel,p=u.nodes,g=u.editConfigModel,m=g.hoverOutline,x=g.nodeSelectedOutline,j=[];return p.forEach(function(D){if(D.isHovered||D.isSelected){var R=D.isHovered,Y=D.isSelected,J=D.x,ot=D.y,vt=D.width,mt=D.height;if(x&&Y||m&&R){var xt=D.getOutlineStyle(),Rt={};if(Object.keys(xt).forEach(function(te){te!=="hover"&&(Rt[te]=xt[te])}),R){var qt=xt.hover;Rt=J_(J_({},Rt),qt)}j.push(Object(pt.g)(wu,Qs({transform:D.transform,className:"lf-outline-node",x:J,y:ot,width:vt+10,height:mt+10},Rt)))}}}),j}},{key:"getEdgeOutline",value:function(){for(var u=this.props.graphModel,p=u.edges,g=u.editConfigModel,m=g.edgeSelectedOutline,x=g.hoverOutline,j=[],D=0;D<p.length;D++){var R=p[D];(m&&R.isSelected||x&&R.isHovered)&&(R.modelType===qe.LINE_EDGE?j.push(this.getLineOutline(R)):R.modelType===qe.POLYLINE_EDGE?j.push(this.getPolylineOutline(R)):R.modelType===qe.BEZIER_EDGE&&j.push(this.getBezierOutline(R)))}return j}},{key:"getLineOutline",value:function(u){var p=u.startPoint,g=u.endPoint,m=(p.x+g.x)/2,x=(p.y+g.y)/2,j=Math.abs(p.x-g.x)+10,D=Math.abs(p.y-g.y)+10,R=u.getOutlineStyle();return Object(pt.g)(wu,Qs({className:"lf-outline-edge",x:m,y:x,width:j,height:D},R))}},{key:"getPolylineOutline",value:function(u){var p=u.points,g=Qi(p),m=mu(g,8),x=m.x,j=m.y,D=m.width,R=m.height,Y=u.getOutlineStyle();return Object(pt.g)(wu,Qs({className:"lf-outline",x,y:j,width:D,height:R},Y))}},{key:"getBezierOutline",value:function(u){var p=u.path,g=Ys(p),m=mu(g,8),x=m.x,j=m.y,D=m.width,R=m.height,Y=u.getOutlineStyle();return Object(pt.g)(wu,Qs({className:"lf-outline",x,y:j,width:D,height:R},Y))}},{key:"render",value:function(){return Object(pt.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&pN(t.prototype,r),s}(pt.a))||q_;function Hg(e){return Hg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hg(e)}function gN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return t1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return t1(r,n)}}(e,t)||function(){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 t1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tl(e){var t=e.x,r=t===void 0?0:t,n=e.y,s=n===void 0?0:n,u=e.r,p=u===void 0?4:u,g=e.className,m={cx:r,cy:s,r:p,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(x){var j=gN(x,2),D=j[0],R=j[1];Hg(R)!=="object"&&(m[D]=R)}),m.className=g?"lf-basic-shape ".concat(g):"lf-basic-shape",Object(pt.g)("circle",m)}function Yg(e){return Yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yg(e)}function vN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return e1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return e1(r,n)}}(e,t)||function(){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 e1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ip(){return ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ip.apply(this,arguments)}function r1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o1(e,t,r){return t&&n1(e.prototype,t),r&&n1(e,r),e}function i1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xg(e,t)}function Xg(e,t){return Xg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Xg(e,t)}function a1(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Od(e);if(t){var s=Od(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return mN(this,r)}}function mN(e,t){if(t&&(Yg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _d(e)}function _d(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Od(e)}function Gg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u1,c1=function(e){i1(r,e);var t=a1(r);function r(){var n;return r1(this,r),Gg(_d(n=t.call(this)),"dragHandler",void 0),Gg(_d(n),"onDragging",function(s){var u=s.event,p=n.props,g=p.graphModel,m=p.bezierModel,x=p.type,j=g.getPointByClient({x:u.clientX,y:u.clientY}).canvasOverlayPosition,D=j.x,R=j.y;m.updateAdjustAnchor({x:D,y:R},x),g.eventCenter.emit(he.EDGE_ADJUST,{data:m.getData()})}),Gg(_d(n),"onDragEnd",function(){n.props.bezierModel.isDragging=!1}),n.dragHandler=new Co({onDragging:n.onDragging,onDragEnd:n.onDragEnd}),n}return o1(r,[{key:"render",value:function(){var n=this,s=this.props.position,u=s.x,p=s.y,g=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(pt.g)(tl,ip({className:"lf-bezier-adjust-anchor",x:u,y:p},g,{onMouseDown:function(m){n.dragHandler.handleMouseDown(m)}}))}}]),r}(pt.a),bN=Di(Q_=function(e){i1(r,e);var t=a1(r);function r(){return r1(this,r),t.apply(this,arguments)}return o1(r,[{key:"getBezierAdjust",value:function(n,s){var u=n.path,p=n.id,g=vN(Ys(u),4),m=g[0],x=g[1],j=g[2],D=g[3],R=n.getEdgeStyle().adjustLine,Y=[];return Y.push(Object(pt.g)(Js,ip({x1:m.x,y1:m.y,x2:x.x,y2:x.y},R))),Y.push(Object(pt.g)(c1,{position:x,bezierModel:n,graphModel:s,key:"".concat(p,"_ePre"),type:"sNext"})),Y.push(Object(pt.g)(Js,ip({x1:D.x,y1:D.y,x2:j.x,y2:j.y},R))),Y.push(Object(pt.g)(c1,{position:j,bezierModel:n,graphModel:s,key:"".concat(p,"_sNext"),type:"ePre"})),Y}},{key:"selectedBezierEdge",value:function(){for(var n=this.props.graphModel,s=n.edges,u=[],p=0;p<s.length;p++){var g=s[p];g.isSelected&&g.modelType===qe.BEZIER_EDGE&&g.draggable&&u.push(this.getBezierAdjust(g,n))}return u}},{key:"render",value:function(){return Object(pt.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),r}(pt.a))||Q_;function Wg(e){return Wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wg(e)}function _N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vg(e,t){return Vg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Vg(e,t)}function wN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=wd(e);if(t){var s=wd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return xN(this,r)}}function xN(e,t){if(t&&(Wg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},wd(e)}var s1,EN=Di(u1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Vg(u,p)})(s,e);var t,r,n=wN(s);function s(){return _N(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var u=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props.children;return Object(pt.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(pt.g)("g",{transform:u},p))}}])&&ON(t.prototype,r),s}(pt.a))||u1;function Kg(e){return Kg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kg(e)}function qg(){return qg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qg.apply(this,arguments)}function jN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zg(e,t){return Zg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Zg(e,t)}function AN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=xd(e);if(t){var s=xd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return PN(this,r)}}function PN(e,t){if(t&&(Kg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xd(e)}var kN=Di(s1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Zg(u,p)})(s,e);var t,r,n=AN(s);function s(){return jN(this,s),n.apply(this,arguments)}return t=s,r=[{key:"getComponent",value:function(u,p){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",m=this.props.getView,x=m(u.type);return Object(pt.g)(x,{key:u.id,model:u,graphModel:p,overlay:g})}},{key:"render",value:function(){var u=this,p=this.props,g=p.graphModel,m=p.tool,x=p.options,j=p.dnd,D=p.snaplineModel,R={};x.width&&(R.width="".concat(g.width,"px")),x.height&&(R.height="".concat(g.height,"px"));var Y=x.grid,J=g.fakerNode,ot=g.editConfigModel.adjustEdge;return Object(pt.g)("div",{className:"lf-graph","flow-id":g.flowId,style:R},Object(pt.g)(FD,{graphModel:g,dnd:j},Object(pt.g)("g",{className:"lf-base"},ss(g.sortElements,function(vt){return u.getComponent(vt,g)})),J?this.getComponent(J,g):""),Object(pt.g)(EN,{graphModel:g},Object(pt.g)(yN,{graphModel:g}),ot?Object(pt.g)(bN,{graphModel:g}):"",x.snapline!==!1?Object(pt.g)(cN,{snaplineModel:D}):""),Object(pt.g)(GD,{graphModel:g,tool:m}),x.background&&Object(pt.g)(ZD,{background:x.background}),x.grid&&Object(pt.g)(G_,qg({},Y,{graphModel:g})))}}],r&&SN(t.prototype,r),s}(pt.a))||s1,TN=kN;function l1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ed(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l1(Object(r),!0).forEach(function(n){ka(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ka(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var DN=function(){function e(n){var s=this;(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,e),ka(this,"nodeConfig",void 0),ka(this,"lf",void 0),ka(this,"fakerNode",void 0),ka(this,"stopDrag",function(){s.nodeConfig=null,window.document.removeEventListener("mouseup",s.stopDrag)}),ka(this,"dragEnter",function(p){s.nodeConfig&&!s.fakerNode&&(s.fakerNode=s.lf.createFakerNode(Ed(Ed({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY}))))}),ka(this,"onDragOver",function(p){if(p.preventDefault(),s.fakerNode){var g=s.clientToLocalPoint({x:p.clientX,y:p.clientY}),m=g.x,x=g.y;s.fakerNode.moveTo(m,x);var j=s.fakerNode.getData();s.lf.setNodeSnapLine(j),s.lf.graphModel.eventCenter.emit(he.NODE_DND_DRAG,{data:j})}return!1}),ka(this,"onDragLeave",function(){s.fakerNode&&(s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)}),ka(this,"onDrop",function(p){s.lf.graphModel&&p&&s.nodeConfig&&(s.lf.addNode(Ed(Ed({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY})),he.NODE_DND_ADD,p),p.preventDefault(),p.stopPropagation(),s.nodeConfig=null,s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)});var u=n.lf;this.lf=u}var t,r;return t=e,(r=[{key:"clientToLocalPoint",value:function(n){var s=n.x,u=n.y,p=tc(this.lf.options,["grid","size"]),g=this.lf.graphModel.getPointByClient({x:s,y:u}).canvasOverlayPosition,m=g.x,x=g.y;return{x:ni(m,p),y:ni(x,p)}}},{key:"startDrag",value:function(n){this.lf.options.isSilentMode||(this.nodeConfig=n,window.document.addEventListener("mouseup",this.stopDrag))}},{key:"eventMap",value:function(){return{onMouseEnter:this.dragEnter,onMouseOver:this.dragEnter,onMouseMove:this.onDragOver,onMouseLeave:this.onDragLeave,onMouseUp:this.onDrop}}}])&&MN(t.prototype,r),e}();function f1(e){var t=e.container,r=e.grid,n=e.width,s=e.height;if(!t)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof n=="string"||typeof s=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return r&&(e.grid=hn({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},r)),hn({},h1,e)}var mr,p1,h1={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function $g(e){return $g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$g(e)}function Jg(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return d1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return d1(r,n)}}(e,t)||function(){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 d1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function jd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y1(Object(r),!0).forEach(function(n){g1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NN(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function CN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ap(){return ap=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=IN(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},ap.apply(this,arguments)}function IN(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=xu(e))!==null;);return e}function Qg(e,t){return Qg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Qg(e,t)}function LN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=xu(e);if(t){var s=xu(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return zN(this,r)}}function zN(e,t){if(t&&($g(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sd(e)}function Sd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xu(e)}function g1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ki(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var tv=(mr=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Qg(u,p)})(s,e);var t,r,n=LN(s);function s(){var u;CN(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return g1(Sd(u=n.call.apply(n,[this].concat(g))),"modelType",qe.BEZIER_EDGE),NN(Sd(u),"path",p1,Sd(u)),u}return t=s,(r=[{key:"initEdgeData",value:function(u){this.offset=100,ap(xu(s.prototype),"initEdgeData",this).call(this,u)}},{key:"getEdgeStyle",value:function(){var u=this.graphModel.theme.bezier;return jd(jd({},ap(xu(s.prototype),"getEdgeStyle",this).call(this)),Nr(u))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var u=0,p=0;return this.pointsList.forEach(function(g){var m=g.x,x=g.y;u+=m,p+=x}),{x:u/this.pointsList.length,y:p/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}},{key:"getData",value:function(){var u=ap(xu(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(g){return{x:g.x,y:g.y}});return jd(jd({},u),{},{pointsList:p})}},{key:"getControls",value:function(){var u=this.startPoint,p=this.endPoint;return ta({start:u,end:p,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(u){var p=Jg(u,4),g=p[0],m=p[1],x=p[2],j=p[3];return"M ".concat(g.x," ").concat(g.y,`
- C `).concat(m.x," ").concat(m.y,`,
- `).concat(x.x," ").concat(x.y,`,
- `).concat(j.x," ").concat(j.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var u=this.getControls(),p=u.sNext,g=u.ePre;this.updatePath(p,g)}},{key:"updatePath",value:function(u,p){u=Nr(u),p=Nr(p);var g={x:this.startPoint.x,y:this.startPoint.y},m={x:this.endPoint.x,y:this.endPoint.y};if(!u||!p){var x=this.getControls();u=x.sNext,p=x.ePre}this.pointsList=[g,u,p,m],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(u){this.startPoint=u,this.updatePoints()}},{key:"updateEndPoint",value:function(u){this.endPoint=u,this.updatePoints()}},{key:"moveStartPoint",value:function(u,p){this.startPoint.x+=u,this.startPoint.y+=p;var g=Jg(this.pointsList,3),m=g[1],x=g[2];m.x+=u,m.y+=p,this.updatePath(m,x)}},{key:"moveEndPoint",value:function(u,p){this.endPoint.x+=u,this.endPoint.y+=p;var g=Jg(this.pointsList,3),m=g[1],x=g[2];x.x+=u,x.y+=p,this.updatePath(m,x)}},{key:"updateAdjustAnchor",value:function(u,p){p==="sNext"?this.pointsList[1]=u:p==="ePre"&&(this.pointsList[2]=u),this.path=this.getPath(this.pointsList),this.setText(Object.assign({},this.text,this.textPosition))}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var u=this.pointsList;return u[u.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(u){var p=u.startPoint,g=u.endPoint,m=u.sourceNode,x=u.targetNode,j=ta({start:p,end:g,sourceNode:m,targetNode:x,offset:this.offset}),D=j.sNext,R=j.ePre;this.pointsList=[p,D,R,g],this.initPoints()}}])&&RN(t.prototype,r),s}(Ef),p1=ki(mr.prototype,"path",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ki(mr.prototype,"initPoints",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"initPoints"),mr.prototype),ki(mr.prototype,"updatePoints",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updatePoints"),mr.prototype),ki(mr.prototype,"updateStartPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateStartPoint"),mr.prototype),ki(mr.prototype,"updateEndPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateEndPoint"),mr.prototype),ki(mr.prototype,"moveStartPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"moveStartPoint"),mr.prototype),ki(mr.prototype,"moveEndPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"moveEndPoint"),mr.prototype),ki(mr.prototype,"updateAdjustAnchor",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateAdjustAnchor"),mr.prototype),ki(mr.prototype,"getAdjustStart",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"getAdjustStart"),mr.prototype),ki(mr.prototype,"getAdjustEnd",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"getAdjustEnd"),mr.prototype),ki(mr.prototype,"updateAfterAdjustStartAndEnd",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateAfterAdjustStartAndEnd"),mr.prototype),mr),Gt,v1,m1,b1,_1,O1,w1,x1,E1,j1,S1,A1,P1,k1,T1,M1,D1,N1,C1,R1,I1,L1,z1,BN=function(e){return e==null};function FN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||B1(e,t)||function(){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 ev(e){return ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ev(e)}function B1(e,t){if(e){if(typeof e=="string")return F1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F1(e,t):void 0}}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function yo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U1(Object(r),!0).forEach(function(n){Eo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sn(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function UN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Eo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ve(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Ta,H1,Ma=(Gt=function(){function e(n,s){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),Eo(this,"id",""),sn(this,"type",v1,this),sn(this,"x",m1,this),sn(this,"y",b1,this),sn(this,"text",_1,this),sn(this,"properties",O1,this),sn(this,"_width",w1,this),sn(this,"_height",x1,this),sn(this,"anchorsOffset",E1,this),sn(this,"isSelected",j1,this),sn(this,"isHovered",S1,this),sn(this,"isShowAnchor",A1,this),sn(this,"isDragging",P1,this),sn(this,"isHitable",k1,this),sn(this,"draggable",T1,this),sn(this,"visible",M1,this),sn(this,"enableRotate",D1,this),Eo(this,"virtual",!1),Eo(this,"graphModel",void 0),sn(this,"zIndex",N1,this),sn(this,"state",C1,this),sn(this,"autoToFront",R1,this),sn(this,"style",I1,this),sn(this,"transform",L1,this),sn(this,"_rotate",z1,this),Eo(this,"BaseType",Jr.NODE),Eo(this,"modelType",qe.NODE),Eo(this,"additionStateData",void 0),Eo(this,"targetRules",[]),Eo(this,"sourceRules",[]),Eo(this,"moveRules",[]),Eo(this,"hasSetTargetRules",!1),Eo(this,"hasSetSourceRules",!1),this.graphModel=s,this.initNodeData(n),this.setAttributes()}var t,r;return t=e,r=[{key:"width",get:function(){return this._width},set:function(n){this._width=n}},{key:"height",get:function(){return this._height},set:function(n){this._height=n}},{key:"rotate",get:function(){return this._rotate},set:function(n){this._rotate=n;var s=this.x,u=s===void 0?0:s,p=this.y,g=p===void 0?0:p;this.transform=new wn(-u,-g).rotate(n).translate(u,g).toString()}},{key:"incoming",get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}}},{key:"outgoing",get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}}},{key:"initNodeData",value:function(n){if(n.properties||(n.properties={}),!n.id){var s=this.graphModel.idGenerator,u=s&&s(n.type),p=this.createId();n.id=p||u||No()}this.formatText(n),hn(this,function(g){return vi(g,["id","type","x","y","text","properties","virtual","rotate"])}(n)),this.graphModel.overlapMode===zr.INCREASE&&(this.zIndex=n.zIndex||wf())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(n){n.text||(n.text={value:"",x:n.x,y:n.y,draggable:!1,editable:!0}),n.text&&typeof n.text=="string"?n.text={value:n.text,x:n.x,y:n.y,draggable:!1,editable:!0}:n.text&&n.text.editable===void 0&&(n.text.editable=!0)}},{key:"getData",value:function(){var n=this.text,s=n.x,u=n.y,p=n.value,g=this.properties;Object(y.x)(g)&&(g=Object(y.I)(g));var m={id:this.id,type:this.type,x:this.x,y:this.y,properties:g};return this.rotate&&(m.rotate=this.rotate),this.graphModel.overlapMode===zr.INCREASE&&(m.zIndex=this.zIndex),p&&(m.text={x:s,y:u,value:p}),m}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(y.I)(this.properties)}},{key:"getOuterGAttributes",value:function(){return{className:""}}},{key:"getNodeStyle",value:function(){return yo(yo({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var n=this.graphModel.theme.nodeText;return Nr(n)}},{key:"getRotateControlStyle",value:function(){var n=this.graphModel.theme.rotateControl;return Nr(n)}},{key:"getAnchorStyle",value:function(n){var s=this.graphModel.theme.anchor;return Nr(s)}},{key:"getAnchorLineStyle",value:function(n){var s=this.graphModel.theme.anchorLine;return Nr(s)}},{key:"getOutlineStyle",value:function(){var n=this.graphModel.theme.outline;return Nr(n)}},{key:"isAllowConnectedAsSource",value:function(n,s,u,p){var g=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var m,x=!0,j=0;j<g.length;j++){var D=g[j];if(!D.validate.call(this,this,n,s,u,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(n,s,u,p){var g=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var m,x=!0,j=0;j<g.length;j++){var D=g[j];if(!D.validate.call(this,n,this,s,u,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"isAllowMoveNode",value:function(n,s){var u,p=!0,g=!0,m=function(D,R){var Y=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!Y){if(Array.isArray(D)||(Y=B1(D))||R&&D&&typeof D.length=="number"){Y&&(D=Y);var J=0,ot=function(){};return{s:ot,n:function(){return J>=D.length?{done:!0}:{done:!1,value:D[J++]}},e:function(Rt){throw Rt},f:ot}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var vt,mt=!0,xt=!1;return{s:function(){Y=Y.call(D)},n:function(){var Rt=Y.next();return mt=Rt.done,Rt},e:function(Rt){xt=!0,vt=Rt},f:function(){try{mt||Y.return==null||Y.return()}finally{if(xt)throw vt}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(m.s();!(u=m.n()).done;){var x=(0,u.value)(this,n,s);if(!x)return!1;if(ev(x)==="object"){var j=x;if(j.x===!1&&j.y===!1)return!1;p=p&&j.x,g=g&&j.y}}}catch(D){m.e(D)}finally{m.f()}return{x:p,y:g}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var n=this.anchorsOffset,s=this.id,u=this.x,p=this.y;return n&&n.length>0?n.map(function(g,m){return g.length?(g=g,{id:"".concat(s,"_").concat(m),x:u+g[0],y:p+g[1]}):yo(yo({},g=g),{},{x:u+g.x,y:p+g.y,id:g.id||"".concat(s,"_").concat(m)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(n){return function(s,u){for(var p,g=Is(u),m=Number.MAX_SAFE_INTEGER,x=0;x<g.length;x++){var j=on(s.x,s.y,g[x].x,g[x].y);j<m&&(m=j,p={index:x,anchor:$i($i({},g[x]),{},{x:g[x].x,y:g[x].y,id:g[x].id})})}return p}(n,this)}},{key:"getBounds",value:function(){return{x1:this.x-this.width/2,y1:this.y-this.height/2,x2:this.x+this.width/2,y2:this.y+this.height/2}}},{key:"anchors",get:function(){var n=this.getAnchorsByOffset(),s=this.x,u=this.y,p=this.rotate;return n.forEach(function(g){var m=g.x,x=g.y,j=FN(new ve([m,x,1]).translate(-s,-u).rotate(p).translate(s,u)[0],2),D=j[0],R=j[1];g.x=D,g.y=R}),n}},{key:"getAnchorInfo",value:function(n){if(!BN(n))for(var s=0;s<this.anchors.length;s++){var u=this.anchors[s];if(u.id===n)return u}}},{key:"addNodeMoveRules",value:function(n){this.moveRules.includes(n)||this.moveRules.push(n)}},{key:"move",value:function(n,s){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,g=!1;if(u)p=!0,g=!0;else{var m=this.isAllowMoveNode(n,s);typeof m=="boolean"?(p=m,g=m):(p=m.x,g=m.y)}if(p){var x=this.x+n;this.x=x,this.text&&this.moveText(n,0)}if(g){var j=this.y+s;this.y=j,this.text&&this.moveText(0,s)}return p||g}},{key:"getMoveDistance",value:function(n,s){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,g=!1,m=0,x=0;if(u)p=!0,g=!0;else{var j=this.isAllowMoveNode(n,s);typeof j=="boolean"?(p=j,g=j):(p=j.x,g=j.y)}if(p&&n){var D=this.x+n;this.x=D,this.text&&this.moveText(n,0),m=n}if(g&&s){var R=this.y+s;this.y=R,this.text&&this.moveText(0,s),x=s}return[m,x]}},{key:"moveTo",value:function(n,s){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=n-this.x,g=s-this.y;return!(!u&&!this.isAllowMoveNode(p,g)||(this.text&&this.text&&this.moveText(p,g),this.x=n,this.y=s,0))}},{key:"moveText",value:function(n,s){var u=this.text,p=u.x,g=u.y,m=u.value,x=u.draggable,j=u.editable;this.text={value:m,editable:j,draggable:x,x:p+n,y:g+s}}},{key:"updateText",value:function(n){this.text=yo(yo({},Object(y.I)(this.text)),{},{value:n})}},{key:"setSelected",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=n}},{key:"setHovered",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=n,this.setIsShowAnchor(n)}},{key:"setIsShowAnchor",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=n}},{key:"setEnableRotate",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.enableRotate=n}},{key:"setHitable",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=n}},{key:"setElementState",value:function(n,s){this.state=n,this.additionStateData=s}},{key:"setProperty",value:function(n,s){this.properties=yo(yo({},Object(y.I)(this.properties)),{},Eo({},n,Pr(s))),this.setAttributes()}},{key:"setProperties",value:function(n){this.properties=yo(yo({},Object(y.I)(this.properties)),Pr(n)),this.setAttributes()}},{key:"deleteProperty",value:function(n){delete this.properties[n],this.setAttributes()}},{key:"setStyle",value:function(n,s){this.style=yo(yo({},this.style),{},Eo({},n,Pr(s)))}},{key:"setStyles",value:function(n){this.style=yo(yo({},this.style),Pr(n))}},{key:"updateStyles",value:function(n){this.style=yo({},Pr(n))}},{key:"setZIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=n}},{key:"updateAttributes",value:function(n){hn(this,n)}}],r&&UN(t.prototype,r),e}(),v1=Ve(Gt.prototype,"type",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m1=Ve(Gt.prototype,"x",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),b1=Ve(Gt.prototype,"y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_1=Ve(Gt.prototype,"text",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),O1=Ve(Gt.prototype,"properties",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),w1=Ve(Gt.prototype,"_width",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),x1=Ve(Gt.prototype,"_height",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),E1=Ve(Gt.prototype,"anchorsOffset",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),j1=Ve(Gt.prototype,"isSelected",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S1=Ve(Gt.prototype,"isHovered",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A1=Ve(Gt.prototype,"isShowAnchor",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P1=Ve(Gt.prototype,"isDragging",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k1=Ve(Gt.prototype,"isHitable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),T1=Ve(Gt.prototype,"draggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),M1=Ve(Gt.prototype,"visible",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),D1=Ve(Gt.prototype,"enableRotate",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),N1=Ve(Gt.prototype,"zIndex",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),C1=Ve(Gt.prototype,"state",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),R1=Ve(Gt.prototype,"autoToFront",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),I1=Ve(Gt.prototype,"style",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),L1=Ve(Gt.prototype,"transform",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z1=Ve(Gt.prototype,"_rotate",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ve(Gt.prototype,"incoming",[y.m],Object.getOwnPropertyDescriptor(Gt.prototype,"incoming"),Gt.prototype),Ve(Gt.prototype,"outgoing",[y.m],Object.getOwnPropertyDescriptor(Gt.prototype,"outgoing"),Gt.prototype),Ve(Gt.prototype,"addNodeMoveRules",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"addNodeMoveRules"),Gt.prototype),Ve(Gt.prototype,"move",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"move"),Gt.prototype),Ve(Gt.prototype,"getMoveDistance",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"getMoveDistance"),Gt.prototype),Ve(Gt.prototype,"moveTo",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"moveTo"),Gt.prototype),Ve(Gt.prototype,"moveText",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"moveText"),Gt.prototype),Ve(Gt.prototype,"updateText",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"updateText"),Gt.prototype),Ve(Gt.prototype,"setSelected",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setSelected"),Gt.prototype),Ve(Gt.prototype,"setHovered",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setHovered"),Gt.prototype),Ve(Gt.prototype,"setIsShowAnchor",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setIsShowAnchor"),Gt.prototype),Ve(Gt.prototype,"setEnableRotate",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setEnableRotate"),Gt.prototype),Ve(Gt.prototype,"setHitable",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setHitable"),Gt.prototype),Ve(Gt.prototype,"setElementState",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setElementState"),Gt.prototype),Ve(Gt.prototype,"setProperty",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setProperty"),Gt.prototype),Ve(Gt.prototype,"setProperties",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setProperties"),Gt.prototype),Ve(Gt.prototype,"deleteProperty",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"deleteProperty"),Gt.prototype),Ve(Gt.prototype,"setStyle",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setStyle"),Gt.prototype),Ve(Gt.prototype,"setStyles",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setStyles"),Gt.prototype),Ve(Gt.prototype,"updateStyles",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"updateStyles"),Gt.prototype),Ve(Gt.prototype,"setZIndex",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"setZIndex"),Gt.prototype),Ve(Gt.prototype,"updateAttributes",[y.k],Object.getOwnPropertyDescriptor(Gt.prototype,"updateAttributes"),Gt.prototype),Gt);function rv(e){return rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}function Y1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function X1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y1(Object(r),!0).forEach(function(n){G1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HN(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function YN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nv(){return nv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=GN(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},nv.apply(this,arguments)}function GN(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=el(e))!==null;);return e}function ov(e,t){return ov=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},ov(e,t)}function WN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=el(e);if(t){var s=el(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return VN(this,r)}}function VN(e,t){if(t&&(rv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ad(e)}function Ad(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},el(e)}function G1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iv(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var $n,W1,V1,av=(Ta=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&ov(u,p)})(s,e);var t,r,n=WN(s);function s(){var u;YN(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return G1(Ad(u=n.call.apply(n,[this].concat(g))),"modelType",qe.CIRCLE_NODE),HN(Ad(u),"r",H1,Ad(u)),u}return t=s,(r=[{key:"width",get:function(){return 2*this.r}},{key:"height",get:function(){return 2*this.r}},{key:"getNodeStyle",value:function(){var u=nv(el(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.circle;return X1(X1({},u),Nr(p))}},{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.r;return[{x:u,y:p-g,id:"".concat(this.id,"_0")},{x:u+g,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+g,id:"".concat(this.id,"_2")},{x:u-g,y:p,id:"".concat(this.id,"_3")}]}}])&&XN(t.prototype,r),s}(Ma),H1=iv(Ta.prototype,"r",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),iv(Ta.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(Ta.prototype,"width"),Ta.prototype),iv(Ta.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(Ta.prototype,"height"),Ta.prototype),Ta);o(129);function uv(e){return uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uv(e)}function cv(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return K1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return K1(r,n)}}(e,t)||function(){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 K1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Z1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(r),!0).forEach(function(n){J1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $1(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function KN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sv(){return sv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=ZN(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},sv.apply(this,arguments)}function ZN(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=nl(e))!==null;);return e}function lv(e,t){return lv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},lv(e,t)}function $N(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=nl(e);if(t){var s=nl(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return JN(this,r)}}function JN(e,t){if(t&&(uv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rl(e)}function rl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nl(e){return nl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nl(e)}function J1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ol(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var ra,Q1,tO,fv=($n=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&lv(u,p)})(s,e);var t,r,n=$N(s);function s(){var u;KN(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return J1(rl(u=n.call.apply(n,[this].concat(g))),"modelType",qe.DIAMOND_NODE),$1(rl(u),"rx",W1,rl(u)),$1(rl(u),"ry",V1,rl(u)),u}return t=s,(r=[{key:"getNodeStyle",value:function(){var u=sv(nl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.diamond;return Z1(Z1({},u),Nr(p))}},{key:"points",get:function(){var u=this.x,p=this.y,g=this.rx,m=this.ry;return[[u,p-m],[u+g,p],[u,p+m],[u-g,p]]}},{key:"pointsPosition",get:function(){return this.points.map(function(u){return{x:u[0],y:u[1]}})}},{key:"width",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=cv(g,1)[0];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"height",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=cv(g,2)[1];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"getDefaultAnchor",value:function(){var u=this;return this.points.map(function(p,g){var m=cv(p,2);return{x:m[0],y:m[1],id:"".concat(u.id,"_").concat(g)}})}}])&&qN(t.prototype,r),s}(Ma),W1=ol($n.prototype,"rx",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),V1=ol($n.prototype,"ry",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),ol($n.prototype,"points",[y.m],Object.getOwnPropertyDescriptor($n.prototype,"points"),$n.prototype),ol($n.prototype,"pointsPosition",[y.m],Object.getOwnPropertyDescriptor($n.prototype,"pointsPosition"),$n.prototype),ol($n.prototype,"width",[y.m],Object.getOwnPropertyDescriptor($n.prototype,"width"),$n.prototype),ol($n.prototype,"height",[y.m],Object.getOwnPropertyDescriptor($n.prototype,"height"),$n.prototype),$n);function pv(e){return pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pv(e)}function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function rO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(r),!0).forEach(function(n){oO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nO(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function QN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hv(){return hv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=eC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},hv.apply(this,arguments)}function eC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=al(e))!==null;);return e}function dv(e,t){return dv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},dv(e,t)}function rC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=al(e);if(t){var s=al(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return nC(this,r)}}function nC(e,t){if(t&&(pv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return il(e)}function il(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},al(e)}function oO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pd(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var ci,iO,yv=(ra=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&dv(u,p)})(s,e);var t,r,n=rC(s);function s(){var u;QN(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return oO(il(u=n.call.apply(n,[this].concat(g))),"modelType",qe.ELLIPSE_NODE),nO(il(u),"rx",Q1,il(u)),nO(il(u),"ry",tO,il(u)),u}return t=s,(r=[{key:"getNodeStyle",value:function(){var u=hv(al(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.ellipse;return rO(rO({},u),Nr(p))}},{key:"width",get:function(){return 2*this.rx}},{key:"height",get:function(){return 2*this.ry}},{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.rx,m=this.ry;return[{x:u,y:p-m,id:"".concat(this.id,"_0")},{x:u+g,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+m,id:"".concat(this.id,"_2")},{x:u-g,y:p,id:"".concat(this.id,"_3")}]}}])&&tC(t.prototype,r),s}(Ma),Q1=Pd(ra.prototype,"rx",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),tO=Pd(ra.prototype,"ry",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),Pd(ra.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(ra.prototype,"width"),ra.prototype),Pd(ra.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(ra.prototype,"height"),ra.prototype),ra);function gv(e){return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gv(e)}function vv(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return aO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return aO(r,n)}}(e,t)||function(){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 aO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function cO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uO(Object(r),!0).forEach(function(n){sO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oC(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function iC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mv(){return mv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=uC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},mv.apply(this,arguments)}function uC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=ul(e))!==null;);return e}function bv(e,t){return bv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},bv(e,t)}function cC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ul(e);if(t){var s=ul(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return sC(this,r)}}function sC(e,t){if(t&&(gv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kd(e)}function kd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ul(e){return ul=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ul(e)}function sO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Td(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var _v,lO,Ov=(ci=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&bv(u,p)})(s,e);var t,r,n=cC(s);function s(){var u;iC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return sO(kd(u=n.call.apply(n,[this].concat(g))),"modelType",qe.POLYGON_NODE),oC(kd(u),"points",iO,kd(u)),u}return t=s,(r=[{key:"getNodeStyle",value:function(){var u=mv(ul(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.polygon;return cO(cO({},u),Nr(p))}},{key:"pointsPosition",get:function(){var u=this.x,p=this.y,g=this.width,m=this.height;return this.points.map(function(x){return{x:x[0]+u-g/2,y:x[1]+p-m/2}})}},{key:"width",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=vv(g,1)[0];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"height",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=vv(g,2)[1];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"getDefaultAnchor",value:function(){var u=this,p=this.x,g=this.y,m=this.width,x=this.height;return this.points.map(function(j,D){var R=vv(j,2),Y=R[0],J=R[1];return{x:p+Y-m/2,y:g+J-x/2,id:"".concat(u.id,"_").concat(D)}})}}])&&aC(t.prototype,r),s}(Ma),iO=Td(ci.prototype,"points",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),Td(ci.prototype,"pointsPosition",[y.m],Object.getOwnPropertyDescriptor(ci.prototype,"pointsPosition"),ci.prototype),Td(ci.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(ci.prototype,"width"),ci.prototype),Td(ci.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(ci.prototype,"height"),ci.prototype),ci);function wv(e){return wv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wv(e)}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function pO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){hO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lC(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function fC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xv(){return xv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=hC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},xv.apply(this,arguments)}function hC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=cl(e))!==null;);return e}function Ev(e,t){return Ev=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Ev(e,t)}function dC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=cl(e);if(t){var s=cl(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return yC(this,r)}}function yC(e,t){if(t&&(wv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Md(e)}function Md(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cl(e)}function hO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Eu,jv=(_v=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Ev(u,p)})(s,e);var t,r,n=dC(s);function s(){var u;fC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return hO(Md(u=n.call.apply(n,[this].concat(g))),"modelType",qe.RECT_NODE),lC(Md(u),"radius",lO,Md(u)),u}return t=s,(r=[{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.width,m=this.height;return[{x:u,y:p-m/2,id:"".concat(this.id,"_0")},{x:u+g/2,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+m/2,id:"".concat(this.id,"_2")},{x:u-g/2,y:p,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var u=xv(cl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.rect;return pO(pO({},u),Nr(p))}}])&&pC(t.prototype,r),s}(Ma),lO=function(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}(_v.prototype,"radius",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_v);function Sv(e){return Sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sv(e)}function dO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function yO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(r),!0).forEach(function(n){vO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Av(){return Av=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=mC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},Av.apply(this,arguments)}function mC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=sl(e))!==null;);return e}function Pv(e,t){return Pv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Pv(e,t)}function bC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=sl(e);if(t){var s=sl(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return _C(this,r)}}function _C(e,t){if(t&&(Sv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gO(e)}function gO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sl(e){return sl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},sl(e)}function vO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mO(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var kv=(Eu=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Pv(u,p)})(s,e);var t,r,n=bC(s);function s(){var u;gC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return vO(gO(u=n.call.apply(n,[this].concat(g))),"modelType",qe.TEXT_NODE),u}return t=s,(r=[{key:"getTextStyle",value:function(){var u=Av(sl(s.prototype),"getTextStyle",this).call(this),p=this.graphModel.theme.text;return yO(yO({},u),Nr(p))}},{key:"width",get:function(){var u=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Of({rows:u,fontSize:p,rowsLength:u.length}).width}},{key:"height",get:function(){var u=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Of({rows:u,fontSize:p,rowsLength:u.length}).height}}])&&vC(t.prototype,r),s}(Ma),mO(Eu.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(Eu.prototype,"width"),Eu.prototype),mO(Eu.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(Eu.prototype,"height"),Eu.prototype),Eu);function Tv(e){return Tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tv(e)}function OC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mv(e,t){return Mv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Mv(e,t)}function xC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Dd(e);if(t){var s=Dd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return EC(this,r)}}function EC(e,t){if(t&&(Tv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bO(e)}function bO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Dd(e)}function jC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ti,_O,OO,wO,Dv=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Mv(u,p)})(s,e);var t,r,n=xC(s);function s(){var u;OC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return jC(bO(u=n.call.apply(n,[this].concat(g))),"modelType",qe.HTML_NODE),u}return t=s,(r=[{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.width,m=this.height;return[{x:u,y:p-m/2,id:"".concat(this.id,"_0")},{x:u+g/2,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+m/2,id:"".concat(this.id,"_2")},{x:u-g/2,y:p,id:"".concat(this.id,"_3")}]}}])&&wC(t.prototype,r),s}(Ma);function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Nv(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function SC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function EO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function up(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var jO=(Ti=function(){function e(n){(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),EO(this,"graphModel",void 0),Nv(this,"isShowHorizontal",_O,this),Nv(this,"isShowVertical",OO,this),Nv(this,"position",wO,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=n}var t,r;return t=e,r=[{key:"getStyle",value:function(){return function(n){for(var s=1;s<arguments.length;s++){var u=arguments[s]!=null?arguments[s]:{};s%2?xO(Object(u),!0).forEach(function(p){EO(n,p,u[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(u)):xO(Object(u)).forEach(function(p){Object.defineProperty(n,p,Object.getOwnPropertyDescriptor(u,p))})}return n}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(n,s){for(var u=n.x,p=n.y,g=!1,m=!1,x=0;x<s.length;x++){var j=s[x];if(j.id!==n.id&&(u===j.x&&(g=!0),p===j.y&&(m=!0),g&&m))break}return{isShowVertical:g,isShowHorizontal:m,position:{x:u,y:p}}}},{key:"getHorizontalSnapline",value:function(n,s){var u,p,g=!1,m=n.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=fo(x);else{var j=this.graphModel.getNodeModelById(m);p=fo(j)}}for(var D=0;D<s.length;D++){var R=s[D];if(R.id!==n.id){var Y=fo(R);if(Y.minY===p.minY||Y.maxY===p.minY){g=!0,u=p.minY;break}if(Y.minY===p.maxY||Y.maxY===p.maxY){g=!0,u=p.maxY;break}}}return hn({isShowHorizontal:g,position:{y:u}})}},{key:"getVerticalSnapline",value:function(n,s){var u,p,g=!1,m=n.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=fo(x);else{var j=this.graphModel.getNodeModelById(m);p=fo(j)}}for(var D=0;D<s.length;D++){var R=s[D];if(R.id!==n.id){var Y=fo(R);if(Y.minX===p.minX||Y.maxX===p.minX){g=!0,u=p.minX;break}if(Y.minX===p.maxX||Y.maxX===p.maxX){g=!0,u=p.maxX;break}}}return hn({isShowVertical:g,position:{x:u}})}},{key:"getSnapLinePosition",value:function(n,s){var u=this.getCenterSnapLine(n,s),p=u.isShowHorizontal,g=u.isShowVertical;if(!p){var m=this.getHorizontalSnapline(n,s);m.isShowHorizontal&&(u.isShowHorizontal=m.isShowHorizontal,u.position.y=m.position.y)}if(!g){var x=this.getVerticalSnapline(n,s);x.isShowVertical&&(u.isShowVertical=x.isShowVertical,u.position.x=x.position.x)}return u}},{key:"setSnaplineInfo",value:function(n){var s=n.isShowHorizontal,u=n.isShowVertical,p=n.position;this.position=p,this.isShowHorizontal=s,this.isShowVertical=u}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(n){var s=this.graphModel.nodes,u=this.getSnapLinePosition(n,s);this.setSnaplineInfo(u)}}],r&&SC(t.prototype,r),e}(),_O=up(Ti.prototype,"isShowHorizontal",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),OO=up(Ti.prototype,"isShowVertical",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wO=up(Ti.prototype,"position",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),up(Ti.prototype,"clearSnapline",[y.k],Object.getOwnPropertyDescriptor(Ti.prototype,"clearSnapline"),Ti.prototype),up(Ti.prototype,"setNodeSnapLine",[y.k],Object.getOwnPropertyDescriptor(Ti.prototype,"setNodeSnapLine"),Ti.prototype),Ti),cp=new Map,SO=function(e){var t=No(),r=window.requestAnimationFrame(function n(){if(e(),cp.get(t)){var s=window.requestAnimationFrame(n);cp.set(t,s)}});return cp.set(t,r),t},Nd=function(e){var t=cp.get(e);t&&(window.cancelAnimationFrame(t),cp.delete(e))};function Cv(e){return Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cv(e)}function sp(){return sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sp.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function lp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){oa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AC(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return PO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return PO(r,n)}}(e,t)||function(){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 PO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rv(e,t){return Rv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Rv(e,t)}function kC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Cd(e);if(t){var s=Cd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return TC(this,r)}}function TC(e,t){if(t&&(Cv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return na(e)}function na(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cd(e){return Cd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Cd(e)}function oa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var MC=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Rv(u,p)})(s,e);var t,r,n=kC(s);function s(){var u;return function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}(this,s),oa(na(u=n.call(this)),"preTargetNode",void 0),oa(na(u),"sourceRuleResults",void 0),oa(na(u),"targetRuleResults",void 0),oa(na(u),"dragHandler",void 0),oa(na(u),"t",void 0),oa(na(u),"onDragStart",function(p){var g=p.event,m=u.props,x=m.anchorData,j=m.nodeModel,D=m.graphModel;D.overlapMode,D.selectNodeById(j.id),j.autoToFront&&D.toFront(j.id),D.eventCenter.emit(he.ANCHOR_DRAGSTART,{data:x,e:g,nodeModel:j}),u.setState({startX:x.x,startY:x.y,endX:x.x,endY:x.y})}),oa(na(u),"onDragging",function(p){var g=p.event,m=u.props,x=m.graphModel,j=m.nodeModel,D=m.anchorData,R=x.transformModel,Y=x.eventCenter,J=x.width,ot=x.height,vt=x.editConfigModel,mt=vt.autoExpand,xt=vt.stopMoveGraph,Rt=g.clientX,qt=g.clientY,te=x.getPointByClient({x:Rt,y:qt}),we=te.domOverlayPosition,$t=we.x,de=we.y,ee=te.canvasOverlayPosition,Je=ee.x,or=ee.y;u.t&&Nd(u.t);var Ce=[];$t<10?Ce=[10,0]:$t+10>J?Ce=[-10,0]:de<10?Ce=[0,10]:de+10>ot&&(Ce=[0,-10]),u.setState({endX:Je,endY:or,dragging:!0}),u.moveAnchorEnd(Je,or),Ce.length>0&&!xt&&mt&&(u.t=SO(function(){var ur=AC(Ce,2),Qr=ur[0],tn=ur[1];R.translate(Qr,tn);var Un=u.state,Bo=Un.endX,Fo=Un.endY;u.setState({endX:Bo-Qr,endY:Fo-tn}),u.moveAnchorEnd(Bo-Qr,Fo-tn)})),Y.emit(he.ANCHOR_DRAG,{data:D,e:g,nodeModel:j})}),oa(na(u),"onDragEnd",function(p){var g=p.event;u.t&&Nd(u.t);var m=u.checkEnd(g);u.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),u.sourceRuleResults.clear(),u.targetRuleResults.clear();var x=u.props,j=x.graphModel,D=x.nodeModel,R=x.anchorData;j.eventCenter.emit(he.ANCHOR_DRAGEND,{data:R,e:g,nodeModel:D,edgeModel:m})}),oa(na(u),"checkEnd",function(p){var g=u.props,m=g.graphModel,x=g.nodeModel,j=g.anchorData,D=j.x,R=j.y,Y=j.id,J=(m.edgeType,u.state),ot=J.endX,vt=J.endY,mt=J.dragging,xt=_a({x:ot,y:vt},m);if(u.preTargetNode&&u.preTargetNode.state!==dr.DEFAULT&&u.preTargetNode.setElementState(dr.DEFAULT),mt&&xt&&xt.node){var Rt=xt.node,qt=xt.anchor.id,te="".concat(x.id,"_").concat(Rt.id,"_").concat(qt,"_").concat(Y),we=u.sourceRuleResults.get(te)||{},$t=we.isAllPass,de=we.msg,ee=u.targetRuleResults.get(te)||{},Je=ee.isAllPass,or=ee.msg;if($t&&Je){Rt.setElementState(dr.DEFAULT);var Ce=m.edgeGenerator(x.getData(),m.getNodeModelById(xt.node.id).getData()),ur=m.addEdge(lp(lp({},Ce),{},{sourceNodeId:x.id,sourceAnchorId:Y,startPoint:{x:D,y:R},targetNodeId:xt.node.id,targetAnchorId:xt.anchor.id,endPoint:{x:xt.anchor.x,y:xt.anchor.y}})),Qr=u.props.anchorData;return m.eventCenter.emit(he.ANCHOR_DROP,{data:Qr,e:p,nodeModel:x,edgeModel:ur}),ur}var tn=Rt.getData();return m.eventCenter.emit(he.CONNECTION_NOT_ALLOWED,{data:tn,msg:or||de}),null}}),u.sourceRuleResults=new Map,u.targetRuleResults=new Map,u.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},u.dragHandler=new Co({onDragStart:u.onDragStart,onDragging:u.onDragging,onDragEnd:u.onDragEnd}),u}return t=s,(r=[{key:"getAnchorShape",value:function(){var u=this.props,p=u.anchorData,g=u.style,m=u.node.getAnchorShape(p);if(m)return m;var x=p.x,j=p.y,D=lp(lp({},g),g.hover);return Object(pt.g)("g",null,Object(pt.g)(tl,sp({className:"lf-node-anchor-hover"},D,{x,y:j})),Object(pt.g)(tl,sp({className:"lf-node-anchor"},g,{x,y:j})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"moveAnchorEnd",value:function(u,p){var g=this.props,m=g.graphModel,x=g.nodeModel,j=g.anchorData,D=_a({x:u,y:p},m);if(D){var R=D.node,Y=D.anchor.id;if(this.preTargetNode&&this.preTargetNode!==D.node&&this.preTargetNode.setElementState(dr.DEFAULT),j.id===Y)return;this.preTargetNode=R;var J="".concat(x.id,"_").concat(R.id,"_").concat(Y,"_").concat(j.id);if(!this.targetRuleResults.has(J)){var ot=D.anchor,vt=x.isAllowConnectedAsSource(R,j,ot),mt=R.isAllowConnectedAsTarget(x,j,ot);this.sourceRuleResults.set(J,lc(vt)),this.targetRuleResults.set(J,lc(mt))}var xt=this.sourceRuleResults.get(J).isAllPass,Rt=this.targetRuleResults.get(J).isAllPass;xt&&Rt?R.setElementState(dr.ALLOW_CONNECT):R.setElementState(dr.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==dr.DEFAULT&&this.preTargetNode.setElementState(dr.DEFAULT)}},{key:"isShowLine",value:function(){var u=this.state,p=u.startX,g=u.startY,m=u.endX,x=u.endY;return on(p,g,m,x)>10}},{key:"render",value:function(){var u=this,p=this.state,g=p.startX,m=p.startY,x=p.endX,j=p.endY,D=this.props,R=D.anchorData.edgeAddable,Y=D.edgeStyle;return Object(pt.g)("g",{className:"lf-anchor"},Object(pt.g)("g",{onMouseDown:function(J){R!==!1&&u.dragHandler.handleMouseDown(J)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(lp({sourcePoint:{x:g,y:m},targetPoint:{x,y:j}},Y)):Object(pt.g)(Js,sp({x1:g,y1:m,x2:x,y2:j},Y,{"pointer-events":"none"}))))}}])&&PC(t.prototype,r),s}(pt.a);function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function DC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){NC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iv(e){return Iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iv(e)}function CC(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return TO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return TO(r,n)}}(e,t)||function(){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 TO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MO(e){var t=e.x,r=t===void 0?0:t,n=e.y,s=n===void 0?0:n,u=e.value,p=e.fontSize,g=e.fill,m=g===void 0?"currentColor":g,x=e.overflowMode,j=x===void 0?"default":x,D=e.textWidth,R=D===void 0?"":D,Y=e.model,J={textAnchor:"middle","dominant-baseline":"middle",x:r,y:s,fill:m};if(Object.entries(e).forEach(function(qt){var te=CC(qt,2),we=te[0],$t=te[1];Iv($t)!=="object"&&(J[we]=$t)}),u){var ot=String(u).split(/[\r\n]/g),vt=ot.length;if(j!=="default"){var mt=Y.BaseType,xt=Y.modelType;if(mt===Jr.NODE&&xt!==qe.TEXT_NODE||mt===Jr.EDGE&&R)return function(qt){var te=qt.value,we=qt.fontSize,$t=qt.model,de=qt.fontFamily,ee=de===void 0?"":de,Je=qt.lineHeight,or=qt.wrapPadding,Ce=or===void 0?"0, 0":or,ur=qt.overflowMode,Qr=qt.x,tn=qt.y,Un=$t.width,Bo=$t.textHeight,Fo=qt.textWidth||Un,ua=String(te).split(/[\r\n]/g),Tc=ua.length,iy=Xh({rows:ua,style:{fontSize:"".concat(we,"px"),width:"".concat(Fo,"px"),fontFamily:ee,lineHeight:Je,padding:Ce},rowsLength:Tc,className:"lf-get-text-height"}),Mc=$t.height>iy?$t.height:iy;Bo&&(Mc=Bo);var Au=ur==="ellipsis";return Au&&(Mc=we+2),Object(pt.g)("g",null,Object(pt.g)("foreignObject",{width:Fo,height:Mc,x:Qr-Fo/2,y:tn-Mc/2},Object(pt.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:Mc,width:Fo,padding:Ce}},Object(pt.g)("div",{className:Au?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:Au?ua.join(""):"",style:DC({},qt)},ua.map(function(Pu){return Object(pt.g)("div",{className:"lf-node-text--auto-wrap-inner"},Pu)})))))}(e)}if(vt>1){var Rt=ot.map(function(qt,te){var we=(te-(vt-1)/2)*(p+2);return Object(pt.g)("tspan",{className:"lf-text-tspan",x:r,y:s+we},qt)});return Object(pt.g)("text",J,Rt)}return Object(pt.g)("text",J,u)}}function Lv(e){return Lv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lv(e)}function zv(){return zv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zv.apply(this,arguments)}function RC(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return DO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return DO(r,n)}}(e,t)||function(){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 DO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function IC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bv(e,t){return Bv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Bv(e,t)}function LC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Rd(e);if(t){var s=Rd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return zC(this,r)}}function zC(e,t){if(t&&(Lv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ju(e)}function ju(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rd(e)}function Sc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var NO=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Bv(u,p)})(s,e);var t,r,n=LC(s);function s(u){var p;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,s),Sc(ju(p=n.call(this)),"dragHandler",void 0),Sc(ju(p),"sumDeltaX",0),Sc(ju(p),"sumDeltaY",0),Sc(ju(p),"stepDrag",void 0),Sc(ju(p),"onDragging",function(m){var x=m.deltaX,j=m.deltaY,D=p.props,R=D.model,Y=RC(D.graphModel.transformModel.fixDeltaXY(x,j),2),J=Y[0],ot=Y[1];R.moveText(J,ot)}),Sc(ju(p),"dblClickHandler",function(){p.props.editable&&p.props.model.setElementState(dr.TEXT_EDIT)}),Sc(ju(p),"mouseDownHandle",function(m){var x=p.props,j=x.draggable,D=x.model,R=x.graphModel.editConfigModel.nodeTextDraggable;(j||R)&&(p.stepDrag.model=D,p.stepDrag.handleMouseDown(m))}),u.model;var g=u.draggable;return p.stepDrag=new Co({onDragging:p.onDragging,step:1,isStopPropagation:g}),p}return t=s,(r=[{key:"getShape",value:function(){var u=this.props,p=u.model,g=u.graphModel,m=p.text,x=g.editConfigModel,j=m.value,D=m.x,R=m.y,Y=m.editable,J=m.draggable,ot={x:D,y:R,className:"",value:j};Y?ot.className="lf-element-text":J||x.nodeTextDraggable?ot.className="lf-text-draggable":ot.className="lf-text-disabled";var vt=p.getTextStyle();return Object(pt.g)(MO,zv({},ot,vt,{model:p}))}},{key:"render",value:function(){if(this.props.model.text)return Object(pt.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&IC(t.prototype,r),s}(pt.a),BC=window.navigator.userAgent.match(/MSIE|Trident/)!==null,CO=o(130);function Fv(e){return Fv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fv(e)}function Uv(){return Uv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uv.apply(this,arguments)}function FC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hv(e,t){return Hv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Hv(e,t)}function UC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Id(e);if(t){var s=Id(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return HC(this,r)}}function HC(e,t){if(t&&(Fv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ll(e)}function ll(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Id(e)}function fp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YC=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Hv(u,p)})(s,e);var t,r,n=UC(s);function s(u){var p;return function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),fp(ll(p=n.call(this,u)),"style",{}),fp(ll(p),"defaultAngle",void 0),fp(ll(p),"normal",void 0),fp(ll(p),"stepperDrag",void 0),fp(ll(p),"onDragging",function(g){var m,x=g.event,j=p.props,D=j.graphModel,R=j.nodeModel,Y=j.eventCenter,J=D.selectNodes,ot=R.x,vt=R.y,mt=x.clientX,xt=x.clientY,Rt=D.getPointByClient({x:mt,y:xt}).canvasOverlayPosition,qt=Rt.x,te=Rt.y,we=new bn(qt-ot,te-vt),$t=((m=p.normal)===null||m===void 0?void 0:m.angle(we))-p.defaultAngle,de=new wn(-ot,-vt).rotate($t).translate(ot,vt).toString();R.transform=de,R.rotate=$t;var ee=Object(CO.map)(J,function(or){return or.id});ee.indexOf(R.id)===-1&&(ee=[R.id]);var Je=Object(CO.reduce)(ee,function(or,Ce){var ur=D.getNodeModelById(Ce);return or[Ce]=ur==null?void 0:ur.getMoveDistance(0,0,!1),or},{});ee.forEach(function(or){D.getNodeEdges(or).forEach(function(Ce){if(Je[Ce.sourceNodeId]){var ur=D.getNodeModelById(Ce.sourceNodeId).anchors.find(function(tn){return tn.id===Ce.sourceAnchorId});Ce.updateStartPoint(ur)}if(Je[Ce.targetNodeId]){var Qr=D.getNodeModelById(Ce.targetNodeId).anchors.find(function(tn){return tn.id===Ce.targetAnchorId});Ce.updateEndPoint(Qr)}})}),Y.emit(he.NODE_ROTATE,{e:x,nodeModel:R})}),p.style=u.style,p.stepperDrag=new Co({onDragging:p.onDragging}),p}return t=s,(r=[{key:"render",value:function(){var u=this,p=this.props.nodeModel,g=p.x,m=p.y,x=g+p.width/2+20,j=m-p.height/2-20;return this.normal=new bn(1,0),this.defaultAngle=this.normal.angle(new bn(x-g,j-m)),p.defaultAngle=this.defaultAngle,Object(pt.g)("g",{className:"lf-rotate-control"},Object(pt.g)("g",{onMouseDown:function(D){u.stepperDrag.handleMouseDown(D)}},Object(pt.g)(tl,Uv({},this.style,{cx:x,cy:j}))))}}])&&FC(t.prototype,r),s}(pt.a);function Yv(e){return Yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yv(e)}var XC=["className"];function Ld(){return Ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ld.apply(this,arguments)}function GC(e,t){if(e==null)return{};var r,n,s=function(p,g){if(p==null)return{};var m,x,j={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],g.indexOf(m)>=0||(j[m]=p[m]);return j}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function zd(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return RO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return RO(r,n)}}(e,t)||function(){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 RO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function IO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xv(e,t){return Xv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Xv(e,t)}function WC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Bd(e);if(t){var s=Bd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return VC(this,r)}}function VC(e,t){if(t&&(Yv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fn(e)}function Fn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Bd(e)}function Jn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Da=function(e){(function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),g&&Xv(p,g)})(u,e);var t,r,n,s=WC(u);function u(p){var g;(function(R,Y){if(!(R instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,u),Jn(Fn(g=s.call(this)),"t",void 0),Jn(Fn(g),"moveOffset",void 0),Jn(Fn(g),"stepDrag",void 0),Jn(Fn(g),"contextMenuTime",void 0),Jn(Fn(g),"startTime",void 0),Jn(Fn(g),"clickTimer",void 0),Jn(Fn(g),"modelDisposer",void 0),Jn(Fn(g),"onDragStart",function(R){var Y=R.event,J=Y.clientX,ot=Y.clientY,vt=g.props,mt=vt.model,xt=vt.graphModel.getPointByClient({x:J,y:ot}).canvasOverlayPosition,Rt=xt.x,qt=xt.y;g.moveOffset={x:mt.x-Rt,y:mt.y-qt}}),Jn(Fn(g),"onDragging",function(R){var Y=R.event,J=g.props,ot=J.model,vt=J.graphModel,mt=vt.editConfigModel,xt=mt.stopMoveGraph,Rt=mt.autoExpand,qt=vt.transformModel,te=vt.selectNodes,we=vt.width,$t=vt.height,de=vt.gridSize;ot.isDragging=!0;var ee=Y.clientX,Je=Y.clientY,or=vt.getPointByClient({x:ee,y:Je}).canvasOverlayPosition,Ce=or.x,ur=or.y,Qr=zd(qt.CanvasPointToHtmlPoint([Ce,ur]),2),tn=Qr[0],Un=Qr[1];if(Ce+=g.moveOffset.x,ur+=g.moveOffset.y,Ce=ni(Ce,de),ur=ni(ur,de),we&&$t){if(!Rt||xt||!(tn<0||Un<0||tn>we||Un>$t)){var Bo=zd(qt.CanvasPointToHtmlPoint([Ce-ot.width/2,ur-ot.height/2]),2),Fo=Bo[0],ua=Bo[1],Tc=zd(qt.CanvasPointToHtmlPoint([Ce+ot.width/2,ur+ot.height/2]),2),iy=Tc[0],Mc=Tc[1],Au=Math.max(de,20),Pu=[];Fo<0?Pu=[Au,0]:iy>vt.width?Pu=[-Au,0]:ua<0?Pu=[0,Au]:Mc>vt.height&&(Pu=[0,-Au]),g.t&&Nd(g.t);var z3=new wn(-Ce,-ur).rotate(ot.rotate).translate(Ce,ur).toString();ot.transform=z3;var ay=te.map(function(uy){return uy.id});ay.indexOf(ot.id)===-1&&(ay=[ot.id]),Pu.length>0&&!xt&&Rt?g.t=SO(function(){var uy=zd(Pu,2),vw=uy[0],mw=uy[1];qt.translate(vw,mw);var B3=-vw/qt.SCALE_X,F3=-mw/qt.SCALE_X;vt.moveNodes(ay,B3,F3)}):vt.moveNodes(ay,Ce-ot.x,ur-ot.y)}}else vt.moveNode2Coordinate(ot.id,Ce,ur)}),Jn(Fn(g),"onDragEnd",function(){g.t&&Nd(g.t),g.props.model.isDragging=!1}),Jn(Fn(g),"handleClick",function(R){if(g.startTime&&!(new Date().getTime()-g.startTime>200)){var Y=g.props,J=Y.model,ot=Y.graphModel,vt={data:J.getData(),e:R,position:ot.getPointByClient({x:R.clientX,y:R.clientY}),isSelected:!1,isMultiple:!1},mt=R.button===2,xt=R.detail===2;if(!mt){var Rt=ot.editConfigModel,qt=oi(R,Rt);vt.isMultiple=qt,J.isSelected&&!xt&&qt?(vt.isSelected=!1,J.setSelected(!1)):(ot.selectNodeById(J.id,qt),vt.isSelected=!0,g.toFront()),xt?(Rt.nodeTextEdit&&J.text.editable&&(J.setSelected(!1),ot.setElementStateById(J.id,dr.TEXT_EDIT)),ot.eventCenter.emit(he.NODE_DBCLICK,vt)):(ot.eventCenter.emit(he.ELEMENT_CLICK,vt),ot.eventCenter.emit(he.NODE_CLICK,vt))}}}),Jn(Fn(g),"handleContextMenu",function(R){R.preventDefault();var Y=g.props,J=Y.model,ot=Y.graphModel,vt=J.getData(),mt=ot.getPointByClient({x:R.clientX,y:R.clientY});ot.setElementStateById(J.id,dr.SHOW_MENU,mt.domOverlayPosition),J.isSelected||ot.selectNodeById(J.id),ot.eventCenter.emit(he.NODE_CONTEXTMENU,{data:vt,e:R,position:mt}),g.toFront()}),Jn(Fn(g),"handleMouseDown",function(R){var Y=g.props,J=Y.model,ot=Y.graphModel;g.startTime=new Date().getTime(),ot.editConfigModel.adjustNodePosition&&J.draggable&&g.stepDrag&&g.stepDrag.handleMouseDown(R)}),Jn(Fn(g),"setHoverON",function(R){var Y=g.props,J=Y.model,ot=Y.graphModel;if(!J.isHovered){var vt=J.getData();J.setHovered(!0),ot.eventCenter.emit(he.NODE_MOUSEENTER,{data:vt,e:R})}}),Jn(Fn(g),"setHoverOFF",function(R){var Y=g.props,J=Y.model,ot=Y.graphModel,vt=J.getData();J.isHovered&&(J.setHovered(!1),ot.eventCenter.emit(he.NODE_MOUSELEAVE,{data:vt,e:R}))}),Jn(Fn(g),"onMouseOut",function(R){BC&&g.setHoverOFF(R)});var m=p.graphModel,x=m.gridSize,j=m.eventCenter,D=p.model;return g.stepDrag=new Co({onDragStart:g.onDragStart,onDragging:g.onDragging,onDragEnd:g.onDragEnd,step:x,eventType:"NODE",isStopPropagation:!1,eventCenter:j,model:D}),g.modelDisposer=Object(y.F)(function(){return g.props},function(R){R&&R.model&&g.stepDrag.setModel(R.model)}),g}return t=u,n=[{key:"getModel",value:function(p){return p}}],(r=[{key:"componentWillUnmount",value:function(){this.modelDisposer&&this.modelDisposer()}},{key:"getAnchorShape",value:function(p){return null}},{key:"getAnchors",value:function(){var p=this,g=this.props,m=g.model,x=g.graphModel,j=m.isSelected,D=m.isHitable,R=m.isDragging,Y=m.isShowAnchor;return D&&(j||Y)&&!R?ss(m.anchors,function(J,ot){var vt=m.getAnchorLineStyle(J),mt=m.getAnchorStyle(J);return Object(pt.g)(MC,{anchorData:J,node:p,style:mt,edgeStyle:vt,anchorIndex:ot,nodeModel:m,graphModel:x,setHoverOFF:p.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var p=this.props,g=p.model,m=p.graphModel,x=g.isSelected,j=g.isHitable,D=g.enableRotate,R=g.isHovered,Y=g.getRotateControlStyle().style;if(j&&(x||R)&&D)return Object(pt.g)(YC,{graphModel:m,nodeModel:g,eventCenter:m.eventCenter,style:Y})}},{key:"getText",value:function(){var p=this.props,g=p.model,m=p.graphModel;if(g.state===dr.TEXT_EDIT)return"";if(g.text){var x=m.editConfigModel,j=!1;return(g.text.draggable||x.nodeTextDraggable)&&(j=!0),Object(pt.g)(NO,{editable:x.nodeTextEdit&&g.text.editable,model:g,graphModel:m,draggable:j})}}},{key:"getStateClassName",value:function(){var p=this.props.model,g=p.state,m=p.isDragging,x=p.isSelected,j="lf-node";switch(g){case dr.ALLOW_CONNECT:j+=" lf-node-allow";break;case dr.NOT_ALLOW_CONNECT:j+=" lf-node-not-allow";break;default:j+=" lf-node-default"}return m&&(j+=" lf-isDragging"),x&&(j+=" lf-node-selected"),j}},{key:"toFront",value:function(){var p=this.props,g=p.model,m=p.graphModel;g.autoToFront&&m.toFront(g.id)}},{key:"render",value:function(){var p,g=this.props,m=g.model,x=g.graphModel,j=x.editConfigModel,D=j.hideAnchors,R=j.adjustNodePosition,Y=j.allowRotation,J=x.gridSize,ot=x.transformModel.SCALE_X,vt=m.isHitable,mt=m.draggable,xt=m.transform,Rt=m.getOuterGAttributes(),qt=Rt.className,te=qt===void 0?"":qt,we=GC(Rt,XC),$t=Object(pt.g)("g",{className:"lf-node-content"},Object(pt.g)("g",{transform:xt},this.getShape(),this.getText(),Y&&this.getRotateControl()),!D&&this.getAnchors());return vt?(R&&mt&&this.stepDrag.setStep(J*ot),p=Object(pt.g)("g",Ld({className:"".concat(this.getStateClassName()," ").concat(te),onMouseDown:this.handleMouseDown,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},we),$t)):p=Object(pt.g)("g",Ld({className:"".concat(this.getStateClassName()," ").concat(te)},we),$t),p}}])&&IO(t.prototype,r),n&&IO(t,n),u}(pt.a);function Gv(e){return Gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gv(e)}function Wv(){return Wv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wv.apply(this,arguments)}function KC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vv(e,t){return Vv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Vv(e,t)}function ZC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Fd(e);if(t){var s=Fd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return $C(this,r)}}function $C(e,t){if(t&&(Gv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Fd(e){return Fd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Fd(e)}var Kv=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Vv(u,p)})(s,e);var t,r,n=ZC(s);function s(){return KC(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.getNodeStyle();return Object(pt.g)(wu,Wv({},p,{x:u.x,y:u.y,width:u.width,height:u.height,radius:u.radius}))}}])&&qC(t.prototype,r),s}(Da);function qv(e){return qv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qv(e)}function Zv(){return Zv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zv.apply(this,arguments)}function JC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $v(e,t){return $v=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},$v(e,t)}function tR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Ud(e);if(t){var s=Ud(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return eR(this,r)}}function eR(e,t){if(t&&(qv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ud(e)}var Jv=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&$v(u,p)})(s,e);var t,r,n=tR(s);function s(){return JC(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.x,g=u.y,m=u.r,x=u.getNodeStyle();return Object(pt.g)(tl,Zv({},x,{x:p,y:g,r:m}))}}])&&QC(t.prototype,r),s}(Da);function Qv(e){return Qv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qv(e)}function rR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return LO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return LO(r,n)}}(e,t)||function(){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 LO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zO(e){var t=e.points,r=e.className,n={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(e).forEach(function(s){var u=rR(s,2),p=u[0],g=u[1];Qv(g)!=="object"&&(n[p]=g)}),n.className=r?"lf-basic-shape ".concat(r):"lf-basic-shape",n.points=t.map(function(s){return s.join(",")}).join(" "),Object(pt.g)("polygon",n)}function tm(e){return tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tm(e)}function em(){return em=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},em.apply(this,arguments)}function nR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rm(e,t){return rm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},rm(e,t)}function iR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Hd(e);if(t){var s=Hd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return aR(this,r)}}function aR(e,t){if(t&&(tm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Hd(e)}var nm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&rm(u,p)})(s,e);var t,r,n=iR(s);function s(){return nR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.x,g=u.y,m=u.width,x=u.height,j=u.points,D=u.getNodeStyle(),R={transform:"matrix(1 0 0 1 ".concat(p-m/2," ").concat(g-x/2,")")};return Object(pt.g)("g",R,Object(pt.g)(zO,em({},D,{points:j,x:p,y:g})))}}])&&oR(t.prototype,r),s}(Da);function om(e){return om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},om(e)}function im(){return im=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},im.apply(this,arguments)}function uR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function am(e,t){return am=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},am(e,t)}function sR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Yd(e);if(t){var s=Yd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return lR(this,r)}}function lR(e,t){if(t&&(om(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Yd(e)}var um=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&am(u,p)})(s,e);var t,r,n=sR(s);function s(){return uR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.getNodeStyle();return Object(pt.g)("g",null,Object(pt.g)(zO,im({},p,{points:u.points,x:u.x,y:u.y})))}}])&&cR(t.prototype,r),s}(Da);function cm(e){return cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cm(e)}function fR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return BO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return BO(r,n)}}(e,t)||function(){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 BO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pR(e){var t=e.x,r=t===void 0?0:t,n=e.y,s=n===void 0?0:n,u=e.rx,p=u===void 0?4:u,g=e.ry,m=g===void 0?4:g,x=e.className,j={cx:r,cy:s,rx:p,ry:m,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(D){var R=fR(D,2),Y=R[0],J=R[1];cm(J)!=="object"&&(j[Y]=J)}),j.className=x?"lf-basic-shape ".concat(x):"lf-basic-shape",Object(pt.g)("ellipse",j)}function sm(e){return sm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sm(e)}function lm(){return lm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lm.apply(this,arguments)}function hR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fm(e,t){return fm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},fm(e,t)}function yR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Xd(e);if(t){var s=Xd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return gR(this,r)}}function gR(e,t){if(t&&(sm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Xd(e)}var pm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&fm(u,p)})(s,e);var t,r,n=yR(s);function s(){return hR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.getNodeStyle();return Object(pt.g)(pR,lm({},p,{x:u.x,y:u.y,rx:u.rx,ry:u.ry}))}}])&&dR(t.prototype,r),s}(Da);function hm(e){return hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hm(e)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function UO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){vR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dm(e,t){return dm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},dm(e,t)}function _R(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Gd(e);if(t){var s=Gd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return OR(this,r)}}function OR(e,t){if(t&&(hm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gd(e)}var ym=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&dm(u,p)})(s,e);var t,r,n=_R(s);function s(){return mR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getBackground",value:function(){var u=this.props.model,p=u.getTextStyle(),g=u.width,m=u.height,x=u.x,j=u.y,D=UO(UO({},p.background),{},{x,y:j-1,width:g,height:m});return Object(pt.g)(wu,D)}},{key:"getShape",value:function(){return Object(pt.g)("g",null,this.getBackground())}}])&&bR(t.prototype,r),s}(Da);function gm(e){return gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gm(e)}function vm(){return vm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vm.apply(this,arguments)}function wR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mm(e,t){return mm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},mm(e,t)}function ER(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Wd(e);if(t){var s=Wd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return jR(this,r)}}function jR(e,t){if(t&&(gm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pp(e)}function pp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Wd(e)}function Vd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&mm(u,p)})(s,e);var t,r,n=ER(s);function s(){var u;wR(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return Vd(pp(u=n.call.apply(n,[this].concat(g))),"ref",void 0),Vd(pp(u),"currentProperties",void 0),Vd(pp(u),"preProperties",void 0),Vd(pp(u),"setRef",function(x){u.ref=x}),u}return t=s,(r=[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(u){u.appendChild(document.createElement("div"))}},{key:"shouldUpdate",value:function(){if(!this.preProperties||this.preProperties!==this.currentProperties)return this.preProperties=this.currentProperties,!0}},{key:"componentDidMount",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"componentDidUpdate",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"getShape",value:function(){var u=this.props.model,p=u.x,g=u.y,m=u.height,x=u.width,j=u.getNodeStyle();return this.currentProperties=JSON.stringify(u.properties),Object(pt.g)("foreignObject",vm({},j,{x:p-x/2,y:g-m/2,width:x,height:m,ref:this.setRef}))}}])&&xR(t.prototype,r),s}(Da);function _m(e){return _m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_m(e)}function Om(){return Om=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Om.apply(this,arguments)}function HO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ac(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(n){Em(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wm(e,t){return wm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},wm(e,t)}function AR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Kd(e);if(t){var s=Kd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return PR(this,r)}}function PR(e,t){if(t&&(_m(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xm(e)}function xm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kd(e)}function Em(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kR=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&wm(u,p)})(s,e);var t,r,n=AR(s);function s(u){var p;return function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),Em(xm(p=n.call(this,u)),"setHoverON",function(){p.setState({isHovered:!0})}),Em(xm(p),"setHoverOFF",function(){p.setState({isHovered:!1})}),p.state={isHovered:!1},p}return t=s,(r=[{key:"getBackground",value:function(){var u=this.props.model,p=u.getTextStyle(),g=u.text,m=u.width,x=p.background||{};if(this.state.isHovered&&p.hover&&p.hover.background&&(x=Ac(Ac({},x),p.hover.background)),g&&g.value&&x.fill!=="transparent"){var j,D=p.fontSize,R=p.overflowMode,Y=p.lineHeight,J=p.wrapPadding,ot=p.textWidth,vt=g.value,mt=g.x,xt=g.y,Rt=String(vt).split(/[\r\n]/g),qt=Rt.length;if(R==="autoWrap"&&ot){var te=Xh({rows:Rt,style:{fontSize:"".concat(D,"px"),width:"".concat(ot,"px"),lineHeight:Y,padding:J},rowsLength:qt,className:"lf-get-text-height"});j=Ac(Ac({},x),{},{x:mt-1,y:xt-1,width:ot,height:te})}else{Rt&&Rt.forEach(function(Je){Xf(Je)});var we=Of({rows:Rt,fontSize:D,rowsLength:qt}),$t=we.width,de=we.height;if(R==="ellipsis"&&($t=ot||m,de=D+2),typeof x.wrapPadding=="string"){var ee=x.wrapPadding.split(",").filter(function(Je){return Je.trim()}).map(function(Je){return parseFloat(Je.trim())});ee.length>0&&ee.length<=4&&(ee.length===1?ee=[ee[0],ee[0],ee[0],ee[0]]:ee.length===2?ee=[ee[0],ee[1],ee[0],ee[1]]:ee.length===3&&(ee=[ee[0],ee[1],ee[2],ee[1]]),$t+=ee[1]+ee[3],de+=ee[0]+ee[2],mt+=(ee[1]-ee[3])/2,xt+=(ee[2]-ee[0])/2)}j=Ac(Ac({},x),{},{x:mt-1,y:xt-1,width:$t,height:de})}return Object(pt.g)(wu,j)}}},{key:"getShape",value:function(){var u=this.props.model,p=u.text,g=p.value,m=p.x,x=p.y;if(g){var j=Ac({x:m,y:x,className:"lf-element-text",value:g},u.getTextStyle());return Object(pt.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(pt.g)(MO,Om({},j,{model:u})))}}}])&&SR(t.prototype,r),s}(NO);function jm(e){return jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jm(e)}var ia,TR=["text","sourceAnchorId","targetAnchorId"];function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MR(e,t){if(e==null)return{};var r,n,s=function(p,g){if(p==null)return{};var m,x,j={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],g.indexOf(m)>=0||(j[m]=p[m]);return j}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function DR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return XO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return XO(r,n)}}(e,t)||function(){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 XO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sm(e,t){return Sm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Sm(e,t)}function CR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=qd(e);if(t){var s=qd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return RR(this,r)}}function RR(e,t){if(t&&(jm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lo(e)}function Lo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qd(e){return qd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},qd(e)}function zo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ia||(ia={}));var GO=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Sm(u,p)})(s,e);var t,r,n=CR(s);function s(u){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),zo(Lo(p=n.call(this)),"stepDragData",void 0),zo(Lo(p),"stepDrag",void 0),zo(Lo(p),"oldEdge",void 0),zo(Lo(p),"preTargetNode",void 0),zo(Lo(p),"targetRuleResults",void 0),zo(Lo(p),"sourceRuleResults",void 0),zo(Lo(p),"handleMouseDown",function(j){p.stepDrag&&p.stepDrag.handleMouseDown(j)}),zo(Lo(p),"onDragStart",function(){var j=p.props,D=j.x,R=j.y,Y=j.edgeModel,J=Y.startPoint,ot=Y.endPoint,vt=Y.pointsList;p.oldEdge={startPoint:J,endPoint:ot,pointsList:vt},p.setState({endX:D,endY:R,dragging:!0})}),zo(Lo(p),"onDragging",function(j){var D=j.deltaX,R=j.deltaY,Y=p.state,J=Y.endX,ot=Y.endY,vt=p.props,mt=vt.graphModel,xt=vt.type,Rt=mt.transformModel,qt=mt.editConfigModel,te=DR(Rt.moveCanvasPointByHtml([J,ot],D,R),2),we=te[0],$t=te[1];p.setState({endX:we,endY:$t,dragging:!0});var de=p.props.edgeModel,ee=_a({x:J,y:ot},mt);if(ee&&ee.node&&p.isAllowAdjust(ee).pass){var Je,or=de.startPoint,Ce=de.endPoint,ur=de.sourceNode,Qr=de.targetNode;xt===ia.SOURCE?Je={startPoint:{x:ee.anchor.x,y:ee.anchor.y},endPoint:{x:Ce.x,y:Ce.y},sourceNode:ee.node,targetNode:Qr}:xt===ia.TARGET&&(Je={startPoint:{x:or.x,y:or.y},endPoint:{x:ee.anchor.x,y:ee.anchor.y},sourceNode:ur,targetNode:ee.node}),de.updateAfterAdjustStartAndEnd(Je)}else xt===ia.SOURCE?de.updateStartPoint({x:we,y:$t}):xt===ia.TARGET&&de.updateEndPoint({x:we,y:$t});de.text.value&&qt.adjustEdge&&de.setText(Object.assign({},de.text,de.textPosition))}),zo(Lo(p),"onDragEnd",function(j){var D=j.event;try{var R;p.setState({dragging:!1});var Y=p.props,J=Y.graphModel,ot=Y.edgeModel,vt=Y.type,mt=p.state,xt=mt.endX,Rt=mt.endY,qt=mt.dragging,te=_a({x:xt,y:Rt},J);if(!qt)return;var we,$t=!1;if(te&&te.node){var de=p.isAllowAdjust(te),ee=de.pass,Je=de.msg,or=de.newTargetNode;if(ee){var Ce=ot.getData(),ur=Ce.text,Qr=Ce.sourceAnchorId,tn=Qr===void 0?"":Qr,Un=Ce.targetAnchorId;we=Na(Na({sourceAnchorId:tn,targetAnchorId:Un===void 0?"":Un},MR(Ce,TR)),{},{text:(ur==null?void 0:ur.value)||""}),vt===ia.SOURCE?(we=Na(Na({},J.edgeGenerator(J.getNodeModelById(te.node.id).getData(),J.getNodeModelById(ot.targetNodeId).getData(),we)),{},{sourceNodeId:te.node.id,sourceAnchorId:te.anchor.id,startPoint:{x:te.anchor.x,y:te.anchor.y},targetNodeId:ot.targetNodeId,endPoint:Na({},ot.endPoint)}),ot.sourceNodeId===te.node.id&&ot.sourceAnchorId===te.anchor.id&&($t=!0)):vt===ia.TARGET&&(we=Na(Na({},J.edgeGenerator(J.getNodeModelById(ot.sourceNodeId).getData(),J.getNodeModelById(te.node.id).getData(),we)),{},{sourceNodeId:ot.sourceNodeId,startPoint:Na({},ot.startPoint),targetNodeId:te.node.id,targetAnchorId:te.anchor.id,endPoint:{x:te.anchor.x,y:te.anchor.y}}),ot.targetNodeId===te.node.id&&ot.targetAnchorId===te.anchor.id&&($t=!0))}else{$t=!0;var Bo=or.getData();J.eventCenter.emit(he.CONNECTION_NOT_ALLOWED,{data:Bo,msg:Je})}}else $t=!0;if($t)p.recoveryEdge();else{var Fo=ot.getData();J.deleteEdgeById(ot.id);var ua=J.addEdge(Na({},we));J.eventCenter.emit(he.EDGE_EXCHANGE_NODE,{data:{newEdge:ua.getData(),oldEdge:Fo}})}(R=p.preTargetNode)===null||R===void 0||R.setElementState(dr.DEFAULT)}finally{p.props.graphModel.eventCenter.emit(he.ADJUST_POINT_DRAGEND,{e:D,data:p.stepDragData})}}),zo(Lo(p),"recoveryEdge",function(){var j=p.props.edgeModel,D=p.oldEdge,R=D.startPoint,Y=D.endPoint,J=D.pointsList;j.updateStartPoint(R),j.updateEndPoint(Y),j.modelType!==qe.LINE_EDGE&&(j.pointsList=J,j.initPoints())}),zo(Lo(p),"getAdjustPointStyle",function(){var j=p.props,D=j.graphModel.theme;return j.edgeModel,D.edgeAdjust}),p.state={dragging:!1,endX:0,endY:0},p.targetRuleResults=new Map,p.sourceRuleResults=new Map;var g=u.type,m=u.edgeModel,x=u.graphModel.eventCenter;return p.stepDragData={type:g,edgeData:m.getData()},p.stepDrag=new Co({onDragStart:p.onDragStart,onDragging:p.onDragging,onDragEnd:p.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:x,data:p.stepDragData}),p}return t=s,(r=[{key:"isAllowAdjust",value:function(u){var p=this.props,g=p.edgeModel,m=g.id,x=g.sourceNode,j=g.targetNode,D=g.sourceAnchorId,R=g.targetAnchorId,Y=p.type,J=null,ot=null,vt=null,mt=null;if(Y===ia.SOURCE?(J=u.node,ot=j,vt=u.anchor,mt=j.getAnchorInfo(R)):(J=x,ot=u.node,mt=u.anchor,vt=x.getAnchorInfo(D)),this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(dr.DEFAULT),this.preTargetNode=u.node,mt.id===vt.id)return{pass:!1,msg:"",newTargetNode:ot};var xt="".concat(J.id,"_").concat(ot.id,"_").concat(vt.id,"_").concat(mt.id);if(!this.targetRuleResults.has(xt)){var Rt=J.isAllowConnectedAsSource(ot,vt,mt,m),qt=ot.isAllowConnectedAsTarget(J,vt,mt,m);this.sourceRuleResults.set(xt,lc(Rt)),this.targetRuleResults.set(xt,lc(qt))}var te=this.sourceRuleResults.get(xt),we=te.isAllPass,$t=te.msg,de=this.targetRuleResults.get(xt),ee=de.isAllPass,Je=de.msg,or=we&&ee?dr.ALLOW_CONNECT:dr.NOT_ALLOW_CONNECT;return Y===ia.SOURCE?J.setElementState(or):ot.setElementState(or),{pass:we&&ee,msg:Je||$t,newTargetNode:ot}}},{key:"render",value:function(){var u=this.props,p=u.x,g=u.y,m=u.getAdjustPointShape,x=u.edgeModel,j=this.state.dragging;return Object(pt.g)("g",{pointerEvents:j?"none":"",onMouseDown:this.handleMouseDown},j?"":m(p,g,x))}}])&&NR(t.prototype,r),s}(pt.a);function Am(e){return Am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Am(e)}function hp(){return hp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hp.apply(this,arguments)}function IR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return WO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return WO(r,n)}}(e,t)||function(){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 WO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pm(e,t){return Pm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Pm(e,t)}function BR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Zd(e);if(t){var s=Zd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return FR(this,r)}}function FR(e,t){if(t&&(Am(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mi(e)}function Mi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Zd(e)}function aa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dp=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Pm(u,p)})(s,e);var t,r,n=BR(s);function s(){var u;LR(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return aa(Mi(u=n.call.apply(n,[this].concat(g))),"startTime",void 0),aa(Mi(u),"contextMenuTime",void 0),aa(Mi(u),"clickTimer",void 0),aa(Mi(u),"textRef",Object(pt.f)()),aa(Mi(u),"handleHover",function(x,j){var D=u.props,R=D.model,Y=D.graphModel.eventCenter;R.setHovered(x);var J=x?he.EDGE_MOUSEENTER:he.EDGE_MOUSELEAVE,ot=R.getData();Y.emit(J,{data:ot,e:j})}),aa(Mi(u),"setHoverON",function(x){u.props.model.isHovered||(u.textRef&&u.textRef.current&&u.textRef.current.setHoverON(),u.handleHover(!0,x))}),aa(Mi(u),"setHoverOFF",function(x){u.props.model.isHovered&&(u.textRef&&u.textRef.current&&u.textRef.current.setHoverOFF(),u.handleHover(!1,x))}),aa(Mi(u),"handleContextMenu",function(x){x.preventDefault(),u.contextMenuTime=new Date().getTime(),u.clickTimer&&clearTimeout(u.clickTimer);var j=u.props,D=j.model,R=j.graphModel,Y=R.getPointByClient({x:x.clientX,y:x.clientY});R.setElementStateById(D.id,dr.SHOW_MENU,Y.domOverlayPosition),u.toFront(),D.isSelected||R.selectEdgeById(D.id);var J=D==null?void 0:D.getData();R.eventCenter.emit(he.EDGE_CONTEXTMENU,{data:J,e:x,position:Y})}),aa(Mi(u),"handleMouseDown",function(x){x.stopPropagation(),u.startTime=new Date().getTime()}),aa(Mi(u),"handleMouseUp",function(x){if(u.startTime&&!(new Date().getTime()-u.startTime>200||x.button===2)){var j=x.detail===2,D=u.props,R=D.model,Y=D.graphModel,J=R==null?void 0:R.getData(),ot=Y.getPointByClient({x:x.clientX,y:x.clientY});if(j){var vt=Y.editConfigModel,mt=Y.textEditElement;if(mt&&mt.id===R.id&&Y.setElementStateById(R.id,dr.DEFAULT),vt.edgeTextEdit&&R.text.editable&&Y.setElementStateById(R.id,dr.TEXT_EDIT),R.modelType===qe.POLYLINE_EDGE){var xt=R,Rt=Y.getPointByClient({x:x.x,y:x.y}).canvasOverlayPosition,qt=Rt.x,te=Rt.y,we=Wf({x:qt,y:te},xt.points);xt.dbClickPosition=we}Y.eventCenter.emit(he.EDGE_DBCLICK,{data:J,e:x,position:ot})}else Y.eventCenter.emit(he.ELEMENT_CLICK,{data:J,e:x,position:ot}),Y.eventCenter.emit(he.EDGE_CLICK,{data:J,e:x,position:ot});var $t=Y.editConfigModel;Y.selectEdgeById(R.id,oi(x,$t)),u.toFront()}}),u}return t=s,(r=[{key:"getShape",value:function(){return Object(pt.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var u=this.props,p=u.model,g=u.graphModel;if(p.state===dr.TEXT_EDIT)return null;var m=!1,x=g.editConfigModel;return(p.text.draggable||x.edgeTextDraggable)&&(m=!0),Object(pt.g)(kR,{ref:this.textRef,editable:x.edgeTextEdit&&p.text.editable,model:p,graphModel:g,draggable:m})}},{key:"getArrowInfo",value:function(){var u=this.props.model,p=u.startPoint,g=u.endPoint,m=u.isSelected;return{start:p,end:g,hover:this.state.hover,isSelected:m}}},{key:"getLastTwoPoints",value:function(){var u=this.props.model;return[u.startPoint,u.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var u=this.props.model,p=u.id,g=u.getArrowStyle(),m=g.refY,x=m===void 0?0:m,j=g.refX,D=j===void 0?2:j,R=IR(this.getLastTwoPoints(),2),Y=R[0],J=R[1],ot="auto";return Y!==null&&J!==null&&(ot=Vr(zn({x:J.x-Y.x,y:J.y-Y.y,z:0}))),Object(pt.g)("g",null,Object(pt.g)("defs",null,Object(pt.g)("marker",{id:"marker-start-".concat(p),refX:-D,refY:x,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(pt.g)("marker",{id:"marker-end-".concat(p),refX:D,refY:x,overflow:"visible",orient:ot,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var u=this.props.model.getArrowStyle();return u.stroke,u.strokeWidth,u.offset,u.verticalLength,Object(pt.g)("path",null)}},{key:"getEndArrow",value:function(){var u=this.props.model.getArrowStyle(),p=u.stroke,g=u.strokeWidth,m=u.offset,x=u.verticalLength;return Object(pt.g)("path",{stroke:p,fill:p,strokeWidth:g,transform:"rotate(180)",d:"M 0 0 L ".concat(m," -").concat(x," L ").concat(m," ").concat(x," Z")})}},{key:"getAdjustPointShape",value:function(u,p,g){var m=g.getAdjustPointStyle();return Object(pt.g)(tl,hp({className:"lf-edge-adjust-point"},m,{x:u,y:p}))}},{key:"getAdjustPoints",value:function(){var u=this.props,p=u.model,g=u.graphModel,m=p.getAdjustStart(),x=p.getAdjustEnd();return Object(pt.g)("g",null,Object(pt.g)(GO,hp({type:"SOURCE"},m,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:g})),Object(pt.g)(GO,hp({type:"TARGET"},x,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:g})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(pt.g)("g",null)}},{key:"getAppend",value:function(){return Object(pt.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var u=this.props,p=u.graphModel,g=u.model;p.toFront(g.id)}},{key:"render",value:function(){var u=this.props,p=u.model,g=p.isSelected,m=p.isHitable,x=p.isShowAdjustPoint;return u.graphModel.animation,Object(pt.g)("g",null,Object(pt.g)("g",{className:["lf-edge",!m&&"pointer-none",g&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverON,onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getShape(),this.getAppend(),this.getText(),this.getArrow()),x&&g?this.getAdjustPoints():"")}}])&&zR(t.prototype,r),s}(pt.a);function km(e){return km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},km(e)}function UR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return VO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return VO(r,n)}}(e,t)||function(){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 VO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yp=function(e){var t={d:""};return Object.entries(e).forEach(function(r){var n=UR(r,2),s=n[0],u=n[1],p=km(u);s!=="style"&&p==="object"||(t[s]=u)}),Object(pt.g)("path",t)};function Tm(e){return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tm(e)}function Mm(){return Mm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mm.apply(this,arguments)}function HR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dm(e,t){return Dm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Dm(e,t)}function XR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=$d(e);if(t){var s=$d(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return GR(this,r)}}function GR(e,t){if(t&&(Tm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$d(e)}var Nm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Dm(u,p)})(s,e);var t,r,n=XR(s);function s(){return HR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getEdge",value:function(){var u=this.props.model,p=u.startPoint,g=u.endPoint,m=u.isAnimation,x=u.arrowConfig,j=u.getEdgeStyle(),D=u.getEdgeAnimationStyle(),R=D.strokeDasharray,Y=D.stroke,J=D.strokeDashoffset,ot=D.animationName,vt=D.animationDuration,mt=D.animationIterationCount,xt=D.animationTimingFunction,Rt=D.animationDirection;return Object(pt.g)(Js,Mm({},j,{x1:p.x,y1:p.y,x2:g.x,y2:g.y},x,m?{strokeDasharray:R,stroke:Y,style:{strokeDashoffset:J,animationName:ot,animationDuration:vt,animationIterationCount:mt,animationTimingFunction:xt,animationDirection:Rt}}:{}))}},{key:"getAppendWidth",value:function(){var u=this.props.model,p=u.startPoint,g=u.endPoint,m=Gf({start:p,end:g}),x=m.d,j=m.strokeWidth,D=m.fill,R=m.strokeDasharray,Y=m.stroke;return Object(pt.g)(yp,{d:x,fill:D,strokeWidth:j,stroke:Y,strokeDasharray:R})}}])&&YR(t.prototype,r),s}(dp);function Cm(e){return Cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cm(e)}function WR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return KO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return KO(r,n)}}(e,t)||function(){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 KO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var VR=function(e){var t={points:"",fill:"none"};return Object.entries(e).forEach(function(r){var n=WR(r,2),s=n[0],u=n[1];(s==="style"||Cm(u)!=="object")&&(t[s]=u)}),Object(pt.g)("polyline",t)};function Rm(e){return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rm(e)}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Jd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){Ra(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Im(){return Im=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Im.apply(this,arguments)}function KR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return ZO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return ZO(r,n)}}(e,t)||function(){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 ZO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lm(e,t){return Lm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Lm(e,t)}function ZR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Qd(e);if(t){var s=Qd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return $R(this,r)}}function $R(e,t){if(t&&(Rm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ca(e)}function Ca(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Qd(e)}function Ra(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Lm(u,p)})(s,e);var t,r,n=ZR(s);function s(){var u;return function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}(this,s),Ra(Ca(u=n.call(this)),"drag",void 0),Ra(Ca(u),"isDragging",void 0),Ra(Ca(u),"isShowAdjustPointTemp",void 0),Ra(Ca(u),"appendInfo",void 0),Ra(Ca(u),"onDragStart",function(){var p=u.props.model;p.dragAppendStart(),u.isShowAdjustPointTemp=p.isShowAdjustPoint,p.isShowAdjustPoint=!1}),Ra(Ca(u),"onDragging",function(p){var g=p.deltaX,m=p.deltaY,x=u.props,j=x.model,D=x.graphModel;u.isDragging=!0;var R=D.transformModel,Y=D.editConfigModel,J=KR(R.fixDeltaXY(g,m),2),ot=J[0],vt=J[1],mt=j,xt=Y.adjustEdgeMiddle;u.appendInfo=xt?mt.dragAppendSimple(u.appendInfo,{x:ot,y:vt}):mt.dragAppend(u.appendInfo,{x:ot,y:vt})}),Ra(Ca(u),"onDragEnd",function(){var p=u.props,g=p.model,m=p.graphModel.eventCenter,x=g;x.dragAppendEnd(),u.isDragging=!1,x.isShowAdjustPoint=u.isShowAdjustPointTemp,u.appendInfo=void 0,m.emit(he.EDGE_ADJUST,{data:x.getData()})}),Ra(Ca(u),"beforeDragStart",function(p,g){g.dragAble&&u.drag.handleMouseDown(p),u.appendInfo=g}),u.drag=new Co({onDragStart:u.onDragStart,onDragging:u.onDragging,onDragEnd:u.onDragEnd,isStopPropagation:!1}),u}return t=s,(r=[{key:"getEdge",value:function(){var u=this.props.model,p=u.points,g=u.isAnimation,m=u.arrowConfig,x=u.getEdgeStyle(),j=u.getEdgeAnimationStyle(),D=j.strokeDasharray,R=j.stroke,Y=j.strokeDashoffset,J=j.animationName,ot=j.animationDuration,vt=j.animationIterationCount,mt=j.animationTimingFunction,xt=j.animationDirection;return Object(pt.g)(VR,Im({points:p},x,m,g?{strokeDasharray:D,stroke:R,style:{strokeDashoffset:Y,animationName:J,animationDuration:ot,animationIterationCount:vt,animationTimingFunction:mt,animationDirection:xt}}:{}))}},{key:"getArrowInfo",value:function(){var u=this.props.model,p=u.points,g=u.isSelected,m={start:null,end:null,hover:this.state.hover,isSelected:g},x=Qi(p);return x.length>=2&&(m.start=x[x.length-2],m.end=x[x.length-1]),m}},{key:"getLastTwoPoints",value:function(){var u=this.props.model.points,p=Qi(u);return p.length>=2?[p[p.length-2],p[p.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(u){var p,g=u.start,m=u.end;if(g.x===m.x&&g.y===m.y)p="";else{var x={start:g,end:m,offset:10,verticalLength:5},j=hc(Jd(Jd({},x),{},{type:"start"})),D=hc(Jd(Jd({},x),{},{type:"end"}));p="M".concat(j.leftX," ").concat(j.leftY,`
- L`).concat(j.rightX," ").concat(j.rightY,`
- L`).concat(D.rightX," ").concat(D.rightY,`
- L`).concat(D.leftX," ").concat(D.leftY," z")}return{d:p,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(u){var p=this.getAppendAttributes(u),g=p.d,m=p.strokeWidth,x=p.fill,j=p.strokeDasharray,D=p.stroke;return Object(pt.g)(yp,{d:g,fill:x,strokeWidth:m,stroke:D,strokeDasharray:j})}},{key:"getAppendWidth",value:function(){for(var u=this,p=this.props,g=p.model,m=p.graphModel,x=g.pointsList,j=g.draggable,D=[],R=x.length,Y=function(ot){var vt="lf-polyline-append",mt={start:{x:x[ot].x,y:x[ot].y},end:{x:x[ot+1].x,y:x[ot+1].y},startIndex:ot,endIndex:ot+1,direction:"",dragAble:!0},xt=Object(pt.g)("g",{className:vt},u.getAppendShape(mt)),Rt=m.editConfigModel,qt=Rt.adjustEdge,te=Rt.adjustEdgeMiddle;if(qt&&j){var we=mt.startIndex,$t=mt.endIndex,de=te&&(we===0||$t===R-1);mt.dragAble=!de,mt.start.x===mt.end.x?(mt.dragAble&&(vt+="-ew-resize"),mt.direction=Sr.VERTICAL):mt.start.y===mt.end.y&&(mt.dragAble&&(vt+="-ns-resize"),mt.direction=Sr.HORIZONTAL),xt=Object(pt.g)("g",{className:u.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(ee){return u.beforeDragStart(ee,mt)}},Object(pt.g)("g",{className:vt},u.getAppendShape(mt)))}D.push(xt)},J=0;J<R-1;J++)Y(J);return Object(pt.g)("g",null,D)}}])&&qR(t.prototype,r),s}(dp);function Bm(e){return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bm(e)}function JR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return $O(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return $O(r,n)}}(e,t)||function(){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 $O(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fm(){return Fm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fm.apply(this,arguments)}function QR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Um(e,t){return Um=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Um(e,t)}function e3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ty(e);if(t){var s=ty(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return r3(this,r)}}function r3(e,t){if(t&&(Bm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ty(e)}var Hm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Um(u,p)})(s,e);var t,r,n=e3(s);function s(){return QR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getEdge",value:function(){var u=this.props.model,p=u.getEdgeStyle(),g=u.path,m=u.isAnimation,x=u.arrowConfig,j=u.getEdgeAnimationStyle(),D=j.strokeDasharray,R=j.stroke,Y=j.strokeDashoffset,J=j.animationName,ot=j.animationDuration,vt=j.animationIterationCount,mt=j.animationTimingFunction,xt=j.animationDirection;return Object(pt.g)(yp,Fm({d:g},p,x,m?{strokeDasharray:D,stroke:R,style:{strokeDashoffset:Y,animationName:J,animationDuration:ot,animationIterationCount:vt,animationTimingFunction:mt,animationDirection:xt}}:{}))}},{key:"getAppendWidth",value:function(){var u=this.props.model.path;return Object(pt.g)(yp,{d:u,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var u=this.props.model,p=this.state.hover,g=u.isSelected,m=u.getArrowStyle().offset,x=u.pointsList.map(function(D){return{x:D.x,y:D.y}}),j=JR(Xs(x,m),2);return{start:j[0],end:j[1],hover:p,isSelected:g}}},{key:"getLastTwoPoints",value:function(){var u=this.props.model,p=u.getArrowStyle().offset,g=u.pointsList.map(function(m){return{x:m.x,y:m.y}});return Xs(g,p)}}])&&t3(t.prototype,r),s}(dp);function Ym(e){return Ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ym(e)}function JO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function n3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xm(e,t){return Xm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Xm(e,t)}function a3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ey(e);if(t){var s=ey(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return u3(this,r)}}function u3(e,t){if(t&&(Ym(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ey(e)}var c3=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Xm(u,p)})(s,e);var t,r,n=a3(s);function s(){return o3(this,s),n.apply(this,arguments)}return t=s,r=[{key:"getArrowAttributes",value:function(){var u=this.props,p=u.arrowInfo,g=u.style,m=p.start,x=p.end,j={start:m,end:x,offset:g.offset,verticalLength:g.verticalLength,type:"end"},D=hc(j),R=D.leftX,Y=D.leftY,J=D.rightX,ot=D.rightY;return function(vt){for(var mt=1;mt<arguments.length;mt++){var xt=arguments[mt]!=null?arguments[mt]:{};mt%2?JO(Object(xt),!0).forEach(function(Rt){n3(vt,Rt,xt[Rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(vt,Object.getOwnPropertyDescriptors(xt)):JO(Object(xt)).forEach(function(Rt){Object.defineProperty(vt,Rt,Object.getOwnPropertyDescriptor(xt,Rt))})}return vt}({d:"M".concat(R," ").concat(Y," L").concat(x.x," ").concat(x.y," L").concat(J," ").concat(ot," z")},g)}},{key:"getShape",value:function(){var u=this.getArrowAttributes(),p=u.d,g=u.strokeWidth,m=u.stroke,x=u.fill;return Object(pt.g)(yp,{d:p,fill:x,strokeWidth:g,stroke:m})}},{key:"render",value:function(){return Object(pt.g)("g",{className:"lf-arrow"},this.getShape())}}],r&&i3(t.prototype,r),s}(pt.a),QO=function(e,t){return jt(e,t)},s3=function(e){var t=e==null?0:e.length;return t?e[t-1]:void 0},Gm=function(){return fe.a.Date.now()},l3=/\s/,f3=function(e){for(var t=e.length;t--&&l3.test(e.charAt(t)););return t},p3=/^\s+/,h3=function(e){return e&&e.slice(0,f3(e)+1).replace(p3,"")},d3=/^[-+]0x[0-9a-f]+$/i,y3=/^0b[01]+$/i,g3=/^0o[0-7]+$/i,v3=parseInt,tw=function(e){if(typeof e=="number")return e;if(Ue(e))return NaN;if(Ir(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ir(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=h3(e);var r=y3.test(e);return r||g3.test(e)?v3(e.slice(2),r?2:8):d3.test(e)?NaN:+e},m3=Math.max,b3=Math.min,_3=function(e,t,r){var n,s,u,p,g,m,x=0,j=!1,D=!1,R=!0;if(typeof e!="function")throw new TypeError("Expected a function");function Y(Rt){var qt=n,te=s;return n=s=void 0,x=Rt,p=e.apply(te,qt)}function J(Rt){return x=Rt,g=setTimeout(vt,t),j?Y(Rt):p}function ot(Rt){var qt=Rt-m;return m===void 0||qt>=t||qt<0||D&&Rt-x>=u}function vt(){var Rt=Gm();if(ot(Rt))return mt(Rt);g=setTimeout(vt,function(qt){var te=t-(qt-m);return D?b3(te,u-(qt-x)):te}(Rt))}function mt(Rt){return g=void 0,R&&n?Y(Rt):(n=s=void 0,p)}function xt(){var Rt=Gm(),qt=ot(Rt);if(n=arguments,s=this,m=Rt,qt){if(g===void 0)return J(m);if(D)return clearTimeout(g),g=setTimeout(vt,t),Y(m)}return g===void 0&&(g=setTimeout(vt,t)),p}return t=tw(t)||0,Ir(r)&&(j=!!r.leading,u=(D="maxWait"in r)?m3(tw(r.maxWait)||0,t):u,R="trailing"in r?!!r.trailing:R),xt.cancel=function(){g!==void 0&&clearTimeout(g),x=0,n=m=s=g=void 0},xt.flush=function(){return g===void 0?p:mt(Gm())},xt},O3=o(172);function w3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Su(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ew,rw,nw,x3=function(){function e(n){(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),Su(this,"undos",[]),Su(this,"redos",[]),Su(this,"callbacks",[]),Su(this,"stopWatch",null),Su(this,"curData",null),Su(this,"maxSize",50),Su(this,"waitTime",100),Su(this,"eventCenter",void 0),this.eventCenter=n}var t,r;return t=e,(r=[{key:"add",value:function(n){QO(s3(this.undos),n)||(this.undos.push(n),QO(this.curData,n)||(this.redos=[]),this.eventCenter.emit(he.HISTORY_CHANGE,{data:{undos:this.undos,redos:this.redos,undoAble:this.undos.length>1,redoAble:this.redos.length>0}}),this.undos.length>this.maxSize&&this.undos.shift())}},{key:"undoAble",value:function(){return this.undos.length>1}},{key:"undo",value:function(){if(this.undoAble()){var n=this.undos.pop();this.redos.push(n);var s=this.undos.pop();return this.curData=Nr(s),s}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var n=this.redos.pop();return this.curData=Nr(n),n}}},{key:"watch",value:function(n){var s=this;this.stopWatch&&this.stopWatch(),this.undos.push(n.modelToGraphData()),this.stopWatch=Object(O3.a)(n,_3(function(){var u=n.modelToHistoryData();u&&s.add(u)},this.waitTime))}}])&&w3(t.prototype,r),e}();function Wm(e){return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function E3(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return ow(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return ow(r,n)}}(e,t)||function(){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 ow(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Pc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(r),!0).forEach(function(n){kc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vm(e,t){return Vm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Vm(e,t)}function j3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ry(e);if(t){var s=ry(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return S3(this,r)}}function S3(e,t){if(t&&(Wm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fl(e)}function fl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ry(e)}function kc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var uw,cw,sw,Km=Di((nw=rw=function(e){(function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),g&&Vm(p,g)})(u,e);var t,r,n,s=j3(u);function u(){var p;return function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}(this,u),kc(fl(p=s.call(this)),"ref",Object(pt.f)()),kc(fl(p),"__prevText",{type:"",text:"",id:""}),kc(fl(p),"keyupHandler",function(g){var m=p.props.graphModel.textEditElement;g.key==="Enter"&&g.altKey&&m.setElementState(0)}),kc(fl(p),"inputHandler",function(g){var m=g.target.innerText,x=p.props.graphModel.textEditElement;p.__prevText={type:x.type,text:m.replace(/(\r\n)+$|(\n)+$/,""),id:x.id}}),kc(fl(p),"keydownHandler",function(g){g.stopPropagation()}),p.state={style:{left:0,top:0}},p}return t=u,n=[{key:"getDerivedStateFromProps",value:function(p){var g,m=p.graphModel,x=m.transformModel,j=m.theme,D=j.inputText,R=m.textEditElement;if(R){var Y;if((Y=R.text)===null||Y===void 0||!Y.value)if(R.BaseType===Jr.EDGE){var J=(R=R).text,ot=R.textPosition,vt=ot.x,mt=ot.y;J.x=vt,J.y=mt,R.setText(J)}else R=R;var xt={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(R.BaseType===Jr.EDGE){var Rt=j.edgeText,qt=Rt.overflowMode,te=Rt.lineHeight,we=Rt.wrapPadding,$t=Rt.textWidth;$t&&qt==="autoWrap"&&(g=Pc(Pc({},xt),{},{width:$t,minWidth:$t,lineHeight:te,padding:we}))}else if(R.BaseType===Jr.NODE){var de=j.nodeText,ee=de.overflowMode,Je=de.lineHeight,or=de.wrapPadding,Ce=de.textWidth,ur=R,Qr=ur.width,tn=ur.modelType,Un=ur.textWidth||Ce||Qr;(tn!==qe.TEXT_NODE&&ee==="autoWrap"||tn===qe.TEXT_NODE&&Ce)&&(g=Pc(Pc({},xt),{},{width:Un,minWidth:Un,lineHeight:Je,padding:or}))}var Bo=R.text,Fo=Bo.x,ua=Bo.y,Tc=E3(x.CanvasPointToHtmlPoint([Fo,ua]),2);return{style:Pc(Pc({left:Tc[0],top:Tc[1]},g),D)}}}}],(r=[{key:"componentDidUpdate",value:function(){var p=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var g=this.__prevText,m=g.text,x=g.id;p.updateText(x,m),p.eventCenter.emit(he.TEXT_UPDATE,Pc({},this.__prevText)),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}}},{key:"placeCaretAtEnd",value:function(p){if(window.getSelection!==void 0&&document.createRange!==void 0){var g=document.createRange();g.selectNodeContents(p),g.collapse(!1);var m=window.getSelection();m.removeAllRanges(),m.addRange(g)}}},{key:"render",value:function(){var p,g=this.props.graphModel.textEditElement,m=this.state.style;return g?Object(pt.g)("div",{contentEditable:!0,className:"lf-text-input",style:m,ref:this.ref,key:g.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler},(p=g.text)===null||p===void 0?void 0:p.value):null}}])&&aw(t.prototype,r),n&&aw(t,n),u}(pt.a),kc(rw,"toolName","textEdit"),ew=nw))||ew,A3=function(e){return e.modelType===qe.LINE_EDGE?function(t){var r=t.startPoint,n=t.endPoint,s=(r.x+n.x)/2,u=(r.y+n.y)/2,p=Math.abs(r.x-n.x)+10,g=Math.abs(r.y-n.y)+10;return{x:s-p/2,y:u-g/2,x1:s+p/2,y1:u+g/2}}(e):e.modelType===qe.POLYLINE_EDGE?function(t){var r=t.points,n=Qi(r),s=mu(n,8),u=s.x,p=s.y,g=s.width,m=s.height;return{x:u-g/2,y:p-m/2,x1:u+g/2,y1:p+m/2}}(e):e.modelType===qe.BEZIER_EDGE?function(t){var r=t.path,n=Ys(r),s=mu(n,8),u=s.x,p=s.y,g=s.width,m=s.height;return{x:u-g/2,y:p-m/2,x1:u+g/2,y1:p+m/2}}(e):void 0};function qm(e){return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qm(e)}function lw(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||fw(e,t)||function(){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 P3(e){return function(t){if(Array.isArray(t))return Zm(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||fw(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function fw(e,t){if(e){if(typeof e=="string")return Zm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zm(e,t):void 0}}function Zm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $m(e,t){return $m=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},$m(e,t)}function T3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ny(e);if(t){var s=ny(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return M3(this,r)}}function M3(e,t){if(t&&(qm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gp(e)}function gp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ny(e)}function vp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jm=Di((sw=cw=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&$m(u,p)})(s,e);var t,r,n=T3(s);function s(u){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),vp(gp(p=n.call(this)),"stepDrag",void 0),vp(gp(p),"handleMouseDown",function(j){p.stepDrag.handleMouseDown(j)}),vp(gp(p),"onDragging",function(j){var D=j.deltaX,R=j.deltaY,Y=p.props.graphModel,J=Y.getSelectElements(!0);Y.moveNodes(J.nodes.map(function(ot){return ot.id}),D,R)}),vp(gp(p),"handleContextMenu",function(j){j.preventDefault();var D=p.props,R=D.graphModel,Y=D.graphModel,J=Y.eventCenter,ot=Y.selectElements,vt=R.getPointByClient({x:j.clientX,y:j.clientY}),mt={nodes:[],edges:[]};P3(ot.values()).forEach(function(xt){xt.BaseType===Jr.NODE&&mt.nodes.push(xt.getData()),xt.BaseType===Jr.EDGE&&mt.edges.push(xt.getData())}),J.emit(he.SELECTION_CONTEXTMENU,{data:mt,e:j,position:vt})});var g=u.graphModel,m=g.gridSize,x=g.eventCenter;return p.stepDrag=new Co({onDragging:p.onDragging,step:m,eventType:"SELECTION",eventCenter:x}),p}return t=s,(r=[{key:"render",value:function(){var u=this.props.graphModel,p=u.selectElements,g=u.transformModel;if(!(p.size<=1)){var m=Number.MAX_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER;p.forEach(function(ot){var vt={x:0,y:0,x1:0,y1:0};ot.BaseType===Jr.NODE&&(vt=function(mt){var xt=mt.x,Rt=mt.y,qt=mt.width,te=mt.height;return{x:xt-qt/2,y:Rt-te/2,x1:xt+qt/2,y1:Rt+te/2}}(ot)),ot.BaseType===Jr.EDGE&&(vt=A3(ot)),m=Math.min(m,vt.x),x=Math.min(x,vt.y),j=Math.max(j,vt.x1),D=Math.max(D,vt.y1)});var R=lw(g.CanvasPointToHtmlPoint([m,x]),2);m=R[0],x=R[1];var Y=lw(g.CanvasPointToHtmlPoint([j,D]),2);j=Y[0],D=Y[1];var J={left:"".concat(m-10,"px"),top:"".concat(x-10,"px"),width:"".concat(j-m+20,"px"),height:"".concat(D-x+20,"px")};return Object(pt.g)("div",{className:"lf-multiple-select",style:J,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}])&&k3(t.prototype,r),s}(pt.a),vp(cw,"toolName","multipleSelect"),uw=sw))||uw;function D3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oy(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var N3=function(){function e(n){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),oy(this,"tools",void 0),oy(this,"components",void 0),oy(this,"toolMap",new Map),oy(this,"instance",void 0),this.instance=n,this.isDisabledTool(Km.toolName)||this.registerTool(Km.toolName,Km),this.isDisabledTool(Jm.toolName)||this.registerTool(Jm.toolName,Jm);var s=n.graphModel;s.eventCenter.on("".concat(he.GRAPH_TRANSFORM,",").concat(he.NODE_CLICK,",").concat(he.BLANK_CLICK," "),function(){var u=s.textEditElement,p=s.editConfigModel,g=p.edgeTextEdit,m=p.nodeTextEdit;(g||m)&&u&&s.textEditElement.setElementState(dr.DEFAULT)})}var t,r;return t=e,(r=[{key:"isDisabledTool",value:function(n){return this.instance.options.disabledTools.indexOf(n)!==-1}},{key:"registerTool",value:function(n,s){this.toolMap.set(n,s)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&D3(t.prototype,r),e}(),C3=o(173),R3=o.n(C3);function I3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pw=function(){function e(n){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),Qm(this,"mousetrap",void 0),Qm(this,"options",void 0),Qm(this,"target",void 0),n.keyboard||(n.keyboard={enabled:!1}),this.options=n;var s=n.lf;this.target=s.container,this.mousetrap=new R3.a(this.target),n.keyboard.enabled&&this.enable(!0)}var t,r;return t=e,(r=[{key:"initShortcuts",value:function(){var n=this,s=this.options.keyboard.shortcuts;if(s)if(xr(s))s.forEach(function(m){var x=m.keys,j=m.callback,D=m.action;return n.on(x,j,D)});else{var u=s.keys,p=s.callback,g=s.action;this.on(u,p,g)}}},{key:"on",value:function(n,s,u){this.mousetrap.bind(this.getKeys(n),s,u)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(n,s){this.mousetrap.unbind(this.getKeys(n),s)}},{key:"enable",value:function(n){(this.disabled||n)&&(this.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))}},{key:"disable",value:function(){this.disabled||(this.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}},{key:"getKeys",value:function(n){var s=this;return(Array.isArray(n)?n:[n]).map(function(u){return s.formatKey(u)})}},{key:"formatKey",value:function(n){return n.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&I3(t.prototype,r),e}(),L3=pw,Ia=null;function hw(e,t){return e.x+=t,e.y+=t,e.text&&(e.text.x+=t,e.text.y+=t),e}function dw(e,t){return e.startPoint&&(e.startPoint.x+=t,e.startPoint.y+=t),e.endPoint&&(e.endPoint.x+=t,e.endPoint.y+=t),e.pointsList&&e.pointsList.length>0&&e.pointsList.forEach(function(r){r.x+=t,r.y+=t}),e.text&&(e.text.x+=t,e.text.y+=t),e}var pl=40,tb=40;function eb(e){return eb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eb(e)}function yw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function mp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yw(Object(r),!0).forEach(function(n){qr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rb=Symbol("plugin register by Logicflow.use"),nb=function(){function e(s){var u,p,g=this;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,e),qr(this,"container",void 0),qr(this,"width",void 0),qr(this,"height",void 0),qr(this,"graphModel",void 0),qr(this,"history",void 0),qr(this,"viewMap",new Map),qr(this,"tool",void 0),qr(this,"keyboard",void 0),qr(this,"dnd",void 0),qr(this,"options",void 0),qr(this,"snaplineModel",void 0),qr(this,"components",[]),qr(this,"plugins",void 0),qr(this,"extension",{}),qr(this,"adapterIn",void 0),qr(this,"adapterOut",void 0),qr(this,"getView",function(m){return g.viewMap.get(m)}),s=f1(s),this.options=s,this.container=this.initContainer(s.container),this.plugins=s.plugins,this.graphModel=new $s(mp({},s)),this.tool=new N3(this),this.history=new x3(this.graphModel.eventCenter),this.dnd=new DN({lf:this}),this.keyboard=new L3({lf:this,keyboard:s.keyboard}),s.snapline!==!1&&(this.snaplineModel=new jO(this.graphModel),u=this.graphModel.eventCenter,p=this.snaplineModel,u.on("node:mousemove",function(m){var x=m.data;p.setNodeSnapLine(x)}),u.on("node:mouseup",function(){p.clearSnapline()})),this.options.isSilentMode||(function(m,x){var j=m.keyboard,D=j.options.keyboard;j.on(["cmd + c","ctrl + c"],function(){if(tb=pl,!D.enabled||x.textEditElement)return!0;var R=m.options.guards,Y=x.getSelectElements(!1);return R&&R.beforeClone&&!R.beforeClone(Y)||Y.nodes.length===0&&Y.edges.length===0?(Ia=null,!0):((Ia=Y).nodes.forEach(function(J){return hw(J,pl)}),Ia.edges.forEach(function(J){return dw(J,pl)}),!1)}),j.on(["cmd + v","ctrl + v"],function(){if(!D.enabled||x.textEditElement)return!0;if(Ia&&(Ia.nodes||Ia.edges)){m.clearSelectElements();var R=m.addElements(Ia,tb);if(!R)return!0;R.nodes.forEach(function(Y){return m.selectElementById(Y.id,!0)}),R.edges.forEach(function(Y){return m.selectElementById(Y.id,!0)}),Ia.nodes.forEach(function(Y){return hw(Y,pl)}),Ia.edges.forEach(function(Y){return dw(Y,pl)}),tb+=pl}return!1}),j.on(["cmd + z","ctrl + z"],function(){return!D.enabled||!!x.textEditElement||(m.undo(),!1)}),j.on(["cmd + y","ctrl + y"],function(){return!D.enabled||!!x.textEditElement||(m.redo(),!1)}),j.on(["backspace"],function(){if(!D.enabled||x.textEditElement)return!0;var R=x.getSelectElements(!0);return m.clearSelectElements(),R.edges.forEach(function(Y){return m.deleteEdge(Y.id)}),R.nodes.forEach(function(Y){return m.deleteNode(Y.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts()),this.defaultRegister(),this.installPlugins(s.disabledPlugins)}var t,r,n;return t=e,r=[{key:"register",value:function(s,u){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(typeof s=="string"){var g={BaseEdge:dp,BaseEdgeModel:xf,BaseNode:Da,BaseNodeModel:Ma,RectNode:Kv,RectNodeModel:jv,CircleNode:Jv,CircleNodeModel:av,PolygonNode:nm,PolygonNodeModel:Ov,TextNode:ym,TextNodeModel:kv,LineEdge:Nm,LineEdgeModel:wa,DiamondNode:um,DiamondNodeModel:fv,PolylineEdge:zm,PolylineEdgeModel:Bs,BezierEdge:Hm,BezierEdgeModel:tv,EllipseNode:pm,EllipseNodeModel:yv,HtmlNode:bm,HtmlNodeModel:Dv,h:pt.g,type:s};this.viewMap.forEach(function(R){var Y=R.extendKey;Y&&(g[Y]=R)}),this.graphModel.modelMap.forEach(function(R){var Y=R.extendKey;Y&&(g[Y]=R)});var m=u(g),x=m.view,j=m.model,D=x;p&&!D.isObervered&&(D.isObervered=!0,D=ce(D)),this.setView(s,D),this.graphModel.setModel(s,j)}else this.registerElement(s)}},{key:"registerElement",value:function(s){var u=s.view;s.isObserverView===!1||u.isObervered||(u.isObervered=!0,u=ce(u)),this.setView(s.type,u),this.graphModel.setModel(s.type,s.model)}},{key:"batchRegister",value:function(){var s=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(p){s.registerElement(p)})}},{key:"defaultRegister",value:function(){this.registerElement({view:Kv,model:jv,type:"rect"}),this.registerElement({type:"circle",view:Jv,model:av}),this.registerElement({type:"polygon",view:nm,model:Ov}),this.registerElement({type:"line",view:Nm,model:wa}),this.registerElement({type:"polyline",view:zm,model:Bs}),this.registerElement({type:"bezier",view:Hm,model:tv}),this.registerElement({type:"text",view:ym,model:kv}),this.registerElement({type:"ellipse",view:pm,model:yv}),this.registerElement({type:"diamond",view:um,model:fv}),this.registerElement({type:"html",view:bm,model:Dv})}},{key:"selectElementById",value:function(s){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1],p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.graphModel.selectElementById(s,u),!u&&p&&this.graphModel.toFront(s)}},{key:"focusOn",value:function(s){var u=this.graphModel.transformModel,p=s.coordinate,g=s.id;if(!p){var m=this.getNodeModelById(g);m&&(p=m.getData());var x=this.getEdgeModelById(g);x&&(p=x.textPosition)}var j=p,D=j.x,R=j.y;u.focusOn(D,R,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(s){this.graphModel.setTheme(s)}},{key:"resize",value:function(s,u){this.graphModel.resize(s,u),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(s){this.graphModel.setDefaultEdgeType(s)}},{key:"updateText",value:function(s,u){this.graphModel.updateText(s,u)}},{key:"deleteElement",value:function(s){var u,p,g,m=this.getModelById(s);return!!m&&(p=(g=(qr(u={},Jr.NODE,this.deleteNode),qr(u,Jr.EDGE,this.deleteEdge),u)[m.BaseType])===null||g===void 0?void 0:g.call(this,s))!==null&&p!==void 0&&p}},{key:"getModelById",value:function(s){return this.graphModel.getElement(s)}},{key:"getDataById",value:function(s){var u;return(u=this.graphModel.getElement(s))===null||u===void 0?void 0:u.getData()}},{key:"changeNodeType",value:function(s,u){this.graphModel.changeNodeType(s,u)}},{key:"changeEdgeType",value:function(s,u){this.graphModel.changeEdgeType(s,u)}},{key:"getNodeEdges",value:function(s){return this.graphModel.getNodeEdges(s)}},{key:"addNode",value:function(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:he.NODE_ADD,p=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(s,u,p)}},{key:"deleteNode",value:function(s){var u=this.graphModel.getNodeModelById(s);if(!u)return!1;var p=u.getData(),g=this.options.guards,m=!g||!g.beforeDelete||g.beforeDelete(p);return m&&this.graphModel.deleteNode(s),m}},{key:"cloneNode",value:function(s){var u=this.graphModel.getNodeModelById(s).getData(),p=this.options.guards;if(!p||!p.beforeClone||p.beforeClone(u))return this.graphModel.cloneNode(s)}},{key:"changeNodeId",value:function(s,u){return this.graphModel.changeNodeId(s,u)}},{key:"getNodeModelById",value:function(s){return this.graphModel.getNodeModelById(s)}},{key:"getNodeDataById",value:function(s){var u;return(u=this.graphModel.getNodeModelById(s))===null||u===void 0?void 0:u.getData()}},{key:"addEdge",value:function(s){return this.graphModel.addEdge(s)}},{key:"deleteEdge",value:function(s){var u=this.options.guards,p=this.graphModel.edgesMap[s];if(!p)return!1;var g=p.model.getData(),m=!u||!u.beforeDelete||u.beforeDelete(g);return m&&this.graphModel.deleteEdgeById(s),m}},{key:"deleteEdgeByNodeId",value:function(s){var u=s.sourceNodeId,p=s.targetNodeId;u&&p?this.graphModel.deleteEdgeBySourceAndTarget(u,p):u?this.graphModel.deleteEdgeBySource(u):p&&this.graphModel.deleteEdgeByTarget(p)}},{key:"changeEdgeId",value:function(s,u){return this.graphModel.changeEdgeId(s,u)}},{key:"getEdgeModelById",value:function(s){var u;return(u=this.graphModel.edgesMap[s])===null||u===void 0?void 0:u.model}},{key:"getEdgeModels",value:function(s){var u=this.graphModel.edges,p=s.sourceNodeId,g=s.targetNodeId;if(p&&g){var m=[];return u.forEach(function(D){D.sourceNodeId===p&&D.targetNodeId===g&&m.push(D)}),m}if(p){var x=[];return u.forEach(function(D){D.sourceNodeId===p&&x.push(D)}),x}if(g){var j=[];return u.forEach(function(D){D.targetNodeId===g&&j.push(D)}),j}return[]}},{key:"getEdgeDataById",value:function(s){var u;return(u=this.getEdgeModelById(s))===null||u===void 0?void 0:u.getData()}},{key:"getNodeIncomingEdge",value:function(s){return this.graphModel.getNodeIncomingEdge(s)}},{key:"getNodeOutgoingEdge",value:function(s){return this.graphModel.getNodeOutgoingEdge(s)}},{key:"getNodeIncomingNode",value:function(s){return this.graphModel.getNodeIncomingNode(s)}},{key:"getNodeOutgoingNode",value:function(s){return this.graphModel.getNodeOutgoingNode(s)}},{key:"editText",value:function(s){this.graphModel.editText(s)}},{key:"setProperties",value:function(s,u){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.setProperties(Pr(u))}},{key:"deleteProperty",value:function(s,u){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.deleteProperty(u)}},{key:"getProperties",value:function(s){var u;return(u=this.graphModel.getElement(s))===null||u===void 0?void 0:u.getProperties()}},{key:"toFront",value:function(s){this.graphModel.toFront(s)}},{key:"setElementZIndex",value:function(s,u){return this.graphModel.setElementZIndex(s,u)}},{key:"addElements",value:function(s){for(var u=this,p=s.nodes,g=s.edges,m={},x={nodes:[],edges:[]},j=0;j<p.length;j++){var D=p[j],R=D.id,Y=this.addNode(D);if(!Y)return;R&&(m[R]=Y.id),x.nodes.push(Y)}return g.forEach(function(J){var ot=J.sourceNodeId,vt=J.targetNodeId;m[ot]&&(ot=m[ot]),m[vt]&&(vt=m[vt]);var mt=u.graphModel.addEdge(mp(mp({},J),{},{sourceNodeId:ot,targetNodeId:vt}));x.edges.push(mt)}),x}},{key:"getAreaElement",value:function(s,u){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],g=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],m=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(s,u,p,g,m).map(function(x){return x.getData()})}},{key:"getSelectElements",value:function(){var s=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.graphModel.getSelectElements(s)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var s=this.graphModel.modelToGraphData();if(this.adapterOut){for(var u=arguments.length,p=new Array(u),g=0;g<u;g++)p[g]=arguments[g];return this.adapterOut.apply(this,[s].concat(p))}return s}},{key:"getGraphRawData",value:function(){return this.graphModel.modelToGraphData()}},{key:"clearData",value:function(){this.graphModel.clearData()}},{key:"updateEditConfig",value:function(s){this.graphModel.editConfigModel.updateEditConfig(s)}},{key:"getEditConfig",value:function(){return this.graphModel.editConfigModel.getConfig()}},{key:"getPointByClient",value:function(s,u){return this.graphModel.getPointByClient({x:s,y:u})}},{key:"undo",value:function(){if(this.history.undoAble()){var s=Pr(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"redo",value:function(){if(this.history.redoAble()){var s=Pr(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"zoom",value:function(s,u){return this.graphModel.transformModel.zoom(s,u)}},{key:"resetZoom",value:function(){this.graphModel.transformModel.resetZoom()}},{key:"setZoomMiniSize",value:function(s){this.graphModel.transformModel.setZoomMiniSize(s)}},{key:"setZoomMaxSize",value:function(s){this.graphModel.transformModel.setZoomMaxSize(s)}},{key:"getTransform",value:function(){var s=this.graphModel.transformModel;return{SCALE_X:s.SCALE_X,SCALE_Y:s.SCALE_Y,TRANSLATE_X:s.TRANSLATE_X,TRANSLATE_Y:s.TRANSLATE_Y}}},{key:"translate",value:function(s,u){this.graphModel.transformModel.translate(s,u)}},{key:"resetTranslate",value:function(){var s=this.graphModel.transformModel,u=s.TRANSLATE_X,p=s.TRANSLATE_Y;this.translate(-u,-p)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(s,u){u===void 0&&(u=s),this.graphModel.fitView(s,u)}},{key:"openEdgeAnimation",value:function(s){this.graphModel.openEdgeAnimation(s)}},{key:"closeEdgeAnimation",value:function(s){this.graphModel.closeEdgeAnimation(s)}},{key:"on",value:function(s,u){this.graphModel.eventCenter.on(s,u)}},{key:"off",value:function(s,u){this.graphModel.eventCenter.off(s,u)}},{key:"once",value:function(s,u){this.graphModel.eventCenter.once(s,u)}},{key:"emit",value:function(s,u){this.graphModel.eventCenter.emit(s,u)}},{key:"initContainer",value:function(s){var u=document.createElement("div");return u.style.position="relative",u.style.width="100%",u.style.height="100%",s.innerHTML="",s.appendChild(u),u}},{key:"installPlugins",value:function(){var s,u=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=(s=this.plugins)!==null&&s!==void 0?s:e.extensions;g.forEach(function(m){var x=null,j=null;m[rb]?(x=m.extension,j=m.props):x=m;var D=x.pluginName||x.name;p.indexOf(D)===-1&&u.installPlugin(x,j)})}},{key:"installPlugin",value:function(s,u){if(eb(s)==="object"){var p=s.install,g=s.render;return p&&p.call(s,this,e),g&&this.components.push(g.bind(s)),void(this.extension[s.pluginName]=s)}var m=s,x=new m({lf:this,LogicFlow:e,options:this.options.pluginsOptions,props:u});x.render&&this.components.push(x.render.bind(x)),this.extension[m.pluginName]=x}},{key:"updateAttributes",value:function(s,u){this.graphModel.updateAttributes(s,u)}},{key:"createFakerNode",value:function(s){var u=this.graphModel.modelMap.get(s.type);if(u){var p=new u(mp(mp({},s),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(p),p}}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(s){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(s)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setView",value:function(s,u){this.viewMap.set(s,u)}},{key:"renderRawData",value:function(s){this.graphModel.graphDataToModel(Pr(s)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(pt.j)(Object(pt.g)(TN,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(he.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.adapterIn&&(s=this.adapterIn(s)),this.renderRawData(s)}}],n=[{key:"use",value:function(s,u){var p,g,m=s.pluginName;m||(m=s.name);var x=(p=this.extensions.get(m))===null||p===void 0?void 0:p.extension;x&&x.destroy&&x.destroy(),this.extensions.set(m,(qr(g={},rb,rb),qr(g,"extension",s),qr(g,"props",u),g))}}],r&&gw(t.prototype,r),n&&gw(t,n),e}();function Di(e){return ce(e)}qr(nb,"extensions",new Map),f.default=nb}])})})(Zy,Zy.exports);var ne=Zy.exports;const Xc=t4(ne);var iM=function(){function a(){globalThis._ids=this,this._ids=new Set}return a.prototype.generateId=function(){var c="xxxxxxx".replace(/[x]/g,function(i){var f=Math.random()*16|0,o=i==="x"?f:f&3|8;return o.toString(16)});return c},a.prototype.next=function(){for(var c=this.generateId();this._ids.has(c);)c=this.generateId();return this._ids.add(c),c},a}(),aM=(globalThis==null?void 0:globalThis._ids)||new iM;function Gc(){return aM.next()}var L0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),uM=function(a){L0(c,a);function c(i,f){var o=this;return i.id||(i.id="Event_"+Gc()),i.text||(i.text=""),i.text&&typeof i.text=="string"&&(i.text={value:i.text,x:i.x,y:i.y+40}),o=a.call(this,i,f)||this,o}return c.prototype.setAttributes=function(){this.r=18},c.prototype.getConnectedTargetRules=function(){var i=a.prototype.getConnectedTargetRules.call(this),f={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return i.push(f),i},c.extendKey="StartEventModel",c}(ne.CircleNodeModel),cM=function(a){L0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.extendKey="StartEventNode",c}(ne.CircleNode),sM={type:"bpmn:startEvent",view:cM,model:uM},z0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Xp=globalThis&&globalThis.__assign||function(){return Xp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Xp.apply(this,arguments)},lM=function(a){z0(c,a);function c(i,f){var o=this;return i.id||(i.id="Event_"+Gc()),i.text||(i.text=""),i.text&&typeof i.text=="string"&&(i.text={value:i.text,x:i.x,y:i.y+40}),o=a.call(this,i,f)||this,o}return c.prototype.setAttributes=function(){this.r=18},c.prototype.getConnectedSourceRules=function(){var i=a.prototype.getConnectedSourceRules.call(this),f={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return i.push(f),i},c.extendKey="EndEventModel",c}(ne.CircleNodeModel),fM=function(a){z0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},c.prototype.getShape=function(){var i=this.props.model,f=i.getNodeStyle(),o=i.x,h=i.y,y=i.r,b=a.prototype.getShape.call(this);return ne.h("g",{},b,ne.h("circle",Xp(Xp({},f),{cx:o,cy:h,r:y-5})))},c.extendKey="EndEventView",c}(ne.CircleNode),pM={type:"bpmn:endEvent",view:fM,model:lM},B0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),jl=globalThis&&globalThis.__assign||function(){return jl=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},jl.apply(this,arguments)},hM=function(a){B0(c,a);function c(i,f){var o=this;return i.id||(i.id="Gateway_"+Gc()),i.text||(i.text=""),i.text&&typeof i.text=="string"&&(i.text={value:i.text,x:i.x,y:i.y+40}),o=a.call(this,i,f)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return c.extendKey="ExclusiveGatewayModel",c}(ne.PolygonNodeModel),dM=function(a){B0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.points,v=i.getNodeStyle();return ne.h("g",{transform:"matrix(1 0 0 1 "+(f-h/2)+" "+(o-y/2)+")"},ne.h("polygon",jl(jl({},v),{x:f,y:o,points:b})),ne.h("path",jl({d:"m 16,15 7.42857142857143,9.714285714285715 -7.42857142857143,9.714285714285715 3.428571428571429,0 5.714285714285715,-7.464228571428572 5.714285714285715,7.464228571428572 3.428571428571429,0 -7.42857142857143,-9.714285714285715 7.42857142857143,-9.714285714285715 -3.428571428571429,0 -5.714285714285715,7.464228571428572 -5.714285714285715,-7.464228571428572 -3.428571428571429,0 z"},v)))},c.extendKey="ExclusiveGatewayNode",c}(ne.PolygonNode),yM={type:"bpmn:exclusiveGateway",view:dM,model:hM},F0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Gp=globalThis&&globalThis.__assign||function(){return Gp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Gp.apply(this,arguments)},gM=function(a){F0(c,a);function c(i,f){var o=this;return i.id||(i.id="Activity_"+Gc()),o=a.call(this,i,f)||this,o}return c.extendKey="UserTaskModel",c}(ne.RectNodeModel),vM=function(a){F0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getLabelShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.getNodeStyle();return ne.h("svg",{x:f-h/2+5,y:o-y/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},ne.h("path",{fill:b.stroke,d:"M655.807326 287.35973m-223.989415 0a218.879 218.879 0 1 0 447.978829 0 218.879 218.879 0 1 0-447.978829 0ZM1039.955839 895.482975c-0.490184-212.177424-172.287821-384.030443-384.148513-384.030443-211.862739 0-383.660376 171.85302-384.15056 384.030443L1039.955839 895.482975z"}))},c.prototype.getShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.radius,v=i.getNodeStyle();return ne.h("g",{},[ne.h("rect",Gp(Gp({},v),{x:f-h/2,y:o-y/2,rx:b,ry:b,width:h,height:y})),this.getLabelShape()])},c.extendKey="UserTaskNode",c}(ne.RectNode),mM={type:"bpmn:userTask",view:vM,model:gM},U0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),$y=globalThis&&globalThis.__assign||function(){return $y=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},$y.apply(this,arguments)},bM=function(a){U0(c,a);function c(i,f){var o=this;return i.id||(i.id="Activity_"+Gc()),o=a.call(this,i,f)||this,o}return c.extendKey="ServiceTaskModel",c}(ne.RectNodeModel),_M=function(a){U0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getLabelShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.getNodeStyle();return ne.h("svg",{x:f-h/2+5,y:o-y/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},ne.h("path",{fill:b.stroke,d:"M882.527918 434.149934c-2.234901-5.303796-7.311523-8.853645-13.059434-9.138124l-61.390185-3.009544c-6.635117-20.973684-15.521508-41.175795-26.513864-60.282968l42.051745-47.743374c4.308119-4.889357 4.955872-12.004405 1.602498-17.59268-46.384423-77.30362-103.969956-101.422947-106.400309-102.410438-5.332449-2.170432-11.432377-1.090844-15.693424 2.77009L654.674467 240.664222c-17.004279-8.654101-35.092239-15.756869-53.995775-21.210068l-3.26537-66.490344c-0.280386-5.747911-3.833305-10.824533-9.134031-13.059434-1.683339-0.709151-30.193673-12.391215-76.866668-12.051477-46.672996-0.339738-75.18333 11.342326-76.866668 12.051477-5.300726 2.234901-8.853645 7.311523-9.134031 13.059434l-3.26537 66.490344c-18.903535 5.453199-36.991496 12.555967-53.995775 21.210068l-48.450479-43.922349c-4.261047-3.860934-10.360975-4.940522-15.693424-2.77009-2.430352 0.98749-60.015885 25.106818-106.400309 102.410438-3.353374 5.588275-2.705622 12.703323 1.602498 17.59268l42.051745 47.743374c-10.992355 19.107173-19.878746 39.309284-26.513864 60.282968l-61.390185 3.009544c-5.747911 0.284479-10.824533 3.834328-13.059434 9.138124-1.01512 2.415003-24.687262 60.190871-2.822278 147.651828 1.583055 6.324032 7.072069 10.893094 13.57518 11.308557 5.892197 0.37146 11.751648 0.523933 17.419741 0.667196 14.498202 0.372483 28.193109 0.723477 40.908712 4.63353 4.212952 1.294482 6.435573 8.270361 9.349949 18.763342 1.287319 4.640694 2.617617 9.43693 4.484128 14.010085 1.794879 4.393054 3.75758 8.570189 5.66093 12.607132 1.302669 2.765997 2.529613 5.380544 3.689019 8.018627 2.986007 6.803963 2.682086 9.773598 2.578732 10.349719-3.061732 3.672646-6.391571 7.238868-9.91379 11.015891-1.810229 1.943258-3.680832 3.949962-5.523807 5.980201l-22.560832 24.8909c-3.865028 4.261047-4.940522 10.365068-2.774183 15.693424 0.991584 2.426259 25.102724 60.011792 102.414531 106.400309 5.588275 3.353374 12.703323 2.701528 17.591657-1.603521l23.476691-20.682042c2.346441-2.061962 4.64888-4.336772 6.875594-6.534833 9.05319-8.93858 14.018272-12.95608 17.73185-11.576663 3.305279 1.222851 6.907317 3.166109 10.720156 5.228071 3.325745 1.794879 6.764054 3.650133 10.465352 5.288446 6.016017 2.662643 12.120039 4.688789 18.019399 6.65149 6.827499 2.266623 13.279445 4.409426 18.819624 7.275707 1.518586 0.782829 1.926886 0.994654 2.358721 7.830339 0.726547 11.496845 1.25048 23.276123 1.753947 34.672684 0.264013 5.900384 0.528026 11.803837 0.815575 17.700127 0.284479 5.743818 3.833305 10.82044 9.138124 13.05534 1.654686 0.698918 29.371958 12.063757 74.869175 12.063757 0.328481 0 3.65832 0 3.986801 0 45.497217 0 73.214489-11.364839 74.869175-12.063757 5.304819-2.234901 8.853645-7.311523 9.138124-13.05534 0.287549-5.89629 0.551562-11.799744 0.815575-17.700127 0.503467-11.396561 1.027399-23.175839 1.753947-34.672684 0.431835-6.835685 0.840134-7.04751 2.358721-7.830339 5.54018-2.866281 11.992125-5.009084 18.819624-7.275707 5.89936-1.962701 12.003382-3.988848 18.019399-6.65149 3.701299-1.638313 7.139607-3.493567 10.465352-5.288446 3.812839-2.061962 7.414877-4.00522 10.720156-5.228071 3.713578-1.379417 8.67866 2.638083 17.73185 11.576663 2.226714 2.198062 4.529153 4.472871 6.875594 6.534833l23.476691 20.682042c4.888334 4.305049 12.003382 4.956895 17.591657 1.603521 77.311807-46.388517 101.422947-103.97405 102.414531-106.400309 2.166339-5.328355 1.090844-11.432377-2.774183-15.693424l-22.560832-24.8909c-1.842974-2.030239-3.713578-4.036943-5.523807-5.980201-3.52222-3.777023-6.852058-7.343245-9.91379-11.015891-0.103354-0.576121-0.407276-3.545756 2.578732-10.349719 1.159406-2.638083 2.38635-5.252631 3.689019-8.018627 1.90335-4.036943 3.866051-8.214079 5.66093-12.607132 1.866511-4.573155 3.196809-9.369392 4.484128-14.010085 2.914376-10.492982 5.136997-17.46886 9.349949-18.763342 12.715603-3.910053 26.41051-4.261047 40.908712-4.63353 5.668093-0.143263 11.527544-0.295735 17.419741-0.667196 6.503111-0.415462 11.992125-4.984524 13.57518-11.308557C907.21518 494.340805 883.543038 436.564937 882.527918 434.149934zM643.49894 643.761929c-35.280528 35.280528-82.191954 54.711066-132.086317 54.711066s-96.806813-19.430538-132.086317-54.711066c-35.280528-35.279504-54.711066-82.191954-54.711066-132.086317 0-49.894364 19.430538-96.80272 54.711066-132.082224 35.283598-35.284621 82.191954-54.711066 132.086317-54.711066s96.80579 19.426445 132.086317 54.711066c35.279504 35.279504 54.711066 82.187861 54.711066 132.082224C698.210006 561.569976 678.782537 608.482425 643.49894 643.761929z"}))},c.prototype.getShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.radius,v=i.getNodeStyle();return ne.h("g",{},[ne.h("rect",$y({x:f-h/2,y:o-y/2,rx:b,ry:b,width:h,height:y},v)),this.getLabelShape()])},c.extendKey="ServiceTaskNode",c}(ne.RectNode),OM={type:"bpmn:serviceTask",view:_M,model:bM},H0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),wM=function(a){H0(c,a);function c(i,f){var o=this;return i.id||(i.id="Flow_"+Gc()),o=a.call(this,i,f)||this,o}return c.extendKey="SequenceFlowModel",c}(ne.PolylineEdgeModel),xM=function(a){H0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.extendKey="SequenceFlowEdge",c}(ne.PolylineEdge),EM={type:"bpmn:sequenceFlow",view:xM,model:wM},Y0={width:40,height:40},X0={width:40,height:40},G0={width:40,height:40},W0={width:100,height:80},V0={width:100,height:80},jM={rect:{radius:5,stroke:"rgb(24, 125, 255)"},circle:{r:18,stroke:"rgb(24, 125, 255)"},polygon:{stroke:"rgb(24, 125, 255)"},polyline:{stroke:"rgb(24, 125, 255)",hoverStroke:"rgb(24, 125, 255)",selectedStroke:"rgb(24, 125, 255)"},edgeText:{background:{fill:"white",height:14,stroke:"transparent",radius:3}}},SM=function(){function a(c){var i=c.lf;i.setTheme(jM),i.register(sM),i.register(pM),i.register(yM),i.register(mM),i.register(OM),i.options.customBpmnEdge||(i.register(EM),i.setDefaultEdgeType("bpmn:sequenceFlow"))}return a.pluginName="bpmnElement",a}(),AM=function(){function a(){globalThis._ids=this,this._ids=new Set}return a.prototype.generateId=function(){var c="xxxxxxx".replace(/[x]/g,function(i){var f=Math.random()*16|0,o=i==="x"?f:f&3|8;return o.toString(16)});return c},a.prototype.next=function(){for(var c=this.generateId();this._ids.has(c);)c=this.generateId();return this._ids.add(c),c},a}(),PM=(globalThis==null?void 0:globalThis._ids)||new AM;function K0(){return PM.next()}function q0(a){return Object.prototype.toString.call(a)}function kM(a){return" ".repeat(a)}function Wp(a){var c=a;return q0(a)==="[object Object]"?(c={},Object.keys(a).forEach(function(i){var f=i;i.charAt(0)==="-"&&(f=i.substring(1)),c[f]=Wp(a[i])})):Array.isArray(a)&&(c=[],a.forEach(function(i,f){c[f]=Wp(i)})),c}function TM(a){var c=a;try{typeof c!="string"&&(c=JSON.parse(a))}catch(i){c=JSON.stringify(Wp(a)).replace(/"/g,"'")}return c}var Wc=`
- `;function Vp(a,c,i){var f=kM(i),o="";if(c==="#text")return Wc+f+a;if(c==="#cdata-section")return Wc+f+"<![CDATA["+a+"]]>";if(c==="#comment")return Wc+f+"<!--"+a+"-->";if((""+c).charAt(0)==="-")return" "+c.substring(1)+'="'+TM(a)+'"';if(Array.isArray(a))a.forEach(function(v){o+=Vp(v,c,i+1)});else if(q0(a)==="[object Object]"){var h=Object.keys(a),y="",b="";o+=(i===0?"":Wc+f)+"<"+c,h.forEach(function(v){v.charAt(0)==="-"?y+=Vp(a[v],v,i+1):b+=Vp(a[v],v,i+1)}),o+=y+(b!==""?">"+b+(Wc+f)+"</"+c+">":" />")}else o+=Wc+f+("<"+c+">"+a.toString()+"</"+c+">");return o}function MM(a){var c="";for(var i in a)c+=Vp(a[i],i,0);return c}var ro=function(){};ro.ObjTree=function(){return this},ro.ObjTree.VERSION="0.23",ro.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `,ro.ObjTree.prototype.attr_prefix="-",ro.ObjTree.prototype.parseXML=function(a){var c;if(window.DOMParser){var i=new DOMParser,f=i.parseFromString(a,"application/xml");if(!f)return;c=f.documentElement}else window.ActiveXObject&&(i=new ActiveXObject("Microsoft.XMLDOM"),i.async=!1,i.loadXML(a),c=i.documentElement);if(c)return this.parseDOM(c)},ro.ObjTree.prototype.parseHTTP=function(a,c,i){var f={};for(var o in c)f[o]=c[o];if(f.method||(typeof f.postBody>"u"&&typeof f.postbody>"u"&&typeof f.parameters>"u"?f.method="get":f.method="post"),i){f.asynchronous=!0;var h=this,y=i,b=f.onComplete;f.onComplete=function(A){var k;A&&A.responseXML&&A.responseXML.documentElement&&(k=h.parseDOM(A.responseXML.documentElement)),y(k,A),b&&b(A)}}else f.asynchronous=!1;var v;if(typeof HTTP<"u"&&HTTP.Request){f.uri=a;var E=new HTTP.Request(f);E&&(v=E.transport)}else if(typeof Ajax<"u"&&Ajax.Request){var E=new Ajax.Request(a,f);E&&(v=E.transport)}if(i)return v;if(v&&v.responseXML&&v.responseXML.documentElement)return this.parseDOM(v.responseXML.documentElement)},ro.ObjTree.prototype.parseDOM=function(a){if(a){if(this.__force_array={},this.force_array)for(var c=0;c<this.force_array.length;c++)this.__force_array[this.force_array[c]]=1;var i=this.parseElement(a);if(this.__force_array[a.nodeName]&&(i=[i]),a.nodeType!=11){var f={};f[a.nodeName]=i,i=f}return i}},ro.ObjTree.prototype.parseElement=function(a){if(a.nodeType!=7){if(a.nodeType==3||a.nodeType==4||a.nodeType==8){var c=a.nodeValue.match(/[^\x00-\x20]/);return c==null?void 0:a.nodeValue}var i=null,f={};if(a.attributes&&a.attributes.length){i={};for(var o=0;o<a.attributes.length;o++){var h=a.attributes[o].nodeName;if(typeof h=="string"){var y=a.attributes[o].nodeValue;try{y=JSON.parse(a.attributes[o].nodeValue.replace(/'/g,'"'))}catch(E){y=a.attributes[o].nodeValue}y&&(h=this.attr_prefix+h,typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}if(a.childNodes&&a.childNodes.length){var b=!0;i&&(b=!1);for(var o=0;o<a.childNodes.length&&b;o++){var v=a.childNodes[o].nodeType;v==3||v==4||v==8||(b=!1)}if(b){i||(i="");for(var o=0;o<a.childNodes.length;o++)i+=a.childNodes[o].nodeValue}else{i||(i={});for(var o=0;o<a.childNodes.length;o++){var h=a.childNodes[o].nodeName;if(typeof h=="string"){var y=this.parseElement(a.childNodes[o]);y&&(typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}}else i===null&&(i={});return i}},ro.ObjTree.prototype.addNode=function(a,c,i,f){this.__force_array[c]?(i==1&&(a[c]=[]),a[c][a[c].length]=f):i==1?a[c]=f:i==2?a[c]=[a[c],f]:a[c][a[c].length]=f},ro.ObjTree.prototype.writeXML=function(a){var c=this.hash_to_xml(null,a);return this.xmlDecl+c},ro.ObjTree.prototype.hash_to_xml=function(a,c){var i=[],f=[];for(var o in c)if(c.hasOwnProperty(o)){var h=c[o];o.charAt(0)!=this.attr_prefix?typeof h>"u"||h==null?i[i.length]="<"+o+" />":typeof h=="object"&&h.constructor==Array?i[i.length]=this.array_to_xml(o,h):typeof h=="object"?i[i.length]=this.hash_to_xml(o,h):i[i.length]=this.scalar_to_xml(o,h):f[f.length]=" "+o.substring(1)+'="'+this.xml_escape(h)+'"'}var y=f.join(""),b=i.join("");return typeof a>"u"||a==null||(i.length>0?b.match(/\n/)?b="<"+a+y+`>
- `+b+"</"+a+`>
- `:b="<"+a+y+">"+b+"</"+a+`>
- `:b="<"+a+y+` />
- `),b},ro.ObjTree.prototype.array_to_xml=function(a,c){for(var i=[],f=0;f<c.length;f++){var o=c[f];typeof o>"u"||o==null?i[i.length]="<"+a+" />":typeof o=="object"&&o.constructor==Array?i[i.length]=this.array_to_xml(a,o):typeof o=="object"?i[i.length]=this.hash_to_xml(a,o):i[i.length]=this.scalar_to_xml(a,o)}return i.join("")},ro.ObjTree.prototype.scalar_to_xml=function(a,c){return a=="#text"?this.xml_escape(c):"<"+a+">"+this.xml_escape(c)+"</"+a+`>
- `},ro.ObjTree.prototype.xml_escape=function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var DM=function(a){return new ro.ObjTree().parseXML(a)},NM=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Jy=globalThis&&globalThis.__assign||function(){return Jy=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Jy.apply(this,arguments)},Kp=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},zi;(function(a){a.START="bpmn:startEvent",a.END="bpmn:endEvent",a.GATEWAY="bpmn:exclusiveGateway",a.USER="bpmn:userTask",a.SYSTEM="bpmn:serviceTask",a.FLOW="bpmn:sequenceFlow"})(zi||(zi={}));var Z0=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],$0=["properties","startPoint","endPoint","pointsList"];function J0(a){var c=a?$0.concat(a):$0;return function(i){function f(o){var h={};return typeof o=="string"?o:Array.isArray(o)?o.map(function(y){return f(y)}):(Object.entries(o).forEach(function(y){var b=Kp(y,2),v=b[0],E=b[1];typeof E!="object"?v.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(v)?h[v]=E:h["-"+v]=E:c.includes(v)?h["-"+v]=f(E):h[v]=f(E)}),h)}return f(i)}}function qp(a){var c={};return Object.entries(a).forEach(function(i){var f=Kp(i,2),o=f[0],h=f[1];o.indexOf("-")===0?c[o.substring(1)]=Wp(h):typeof h=="string"?c[o]=h:Object.prototype.toString.call(h)==="[object Object]"?c[o]=qp(h):Array.isArray(h)?c[o]=h.map(function(y){return qp(y)}):c[o]=h}),c}function CM(a,c,i){var f=new Map;c.nodes.forEach(function(h){var y,b={"-id":h.id};if(!((y=h.text)===null||y===void 0)&&y.value&&(b["-name"]=h.text.value),h.properties){var v=J0(i)(h.properties);Object.assign(b,v)}f.set(h.id,b),a[h.type]?Array.isArray(a[h.type])?a[h.type].push(b):a[h.type]=[a[h.type],b]:a[h.type]=b});var o=c.edges.map(function(h){var y,b,v=f.get(h.targetNodeId);v["bpmn:incoming"]?Array.isArray(v["bpmn:incoming"])?v["bpmn:incoming"].push(h.id):v["bpmn:incoming"]=[v["bpmn:incoming"],h.id]:v["bpmn:incoming"]=h.id;var E={"-id":h.id,"-sourceRef":h.sourceNodeId,"-targetRef":h.targetNodeId};if(!((y=h.text)===null||y===void 0)&&y.value&&(E["-name"]=(b=h.text)===null||b===void 0?void 0:b.value),h.properties){var A=J0(i)(h.properties);Object.assign(E,A)}return E});c.edges.forEach(function(h){var y=f.get(h.sourceNodeId);y["bpmn:outgoing"]?Array.isArray(y["bpmn:outgoing"])?y["bpmn:outgoing"].push(h.id):y["bpmn:outgoing"]=[y["bpmn:outgoing"],h.id]:y["bpmn:outgoing"]=h.id}),a[zi.FLOW]=o}function RM(a,c){a["bpmndi:BPMNEdge"]=c.edges.map(function(i){var f,o=i.id,h=i.pointsList.map(function(b){var v=b.x,E=b.y;return{"-x":v,"-y":E}}),y={"-id":o+"_di","-bpmnElement":o,"di:waypoint":h};return!((f=i.text)===null||f===void 0)&&f.value&&(y["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),y}),a["bpmndi:BPMNShape"]=c.nodes.map(function(i){var f,o=i.id,h=100,y=80,b=i.x,v=i.y,E=Ha.shapeConfigMap.get(i.type);E&&(h=E.width,y=E.height),b-=h/2,v-=y/2;var A={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":v,"-width":h,"-height":y}};return!((f=i.text)===null||f===void 0)&&f.value&&(A["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),A})}function IM(a){var c=[],i=[],f=a["bpmn:definitions"];if(f){var o=f["bpmn:process"];Object.keys(o).forEach(function(h){if(h.indexOf("bpmn:")===0){var y=o[h];if(h===zi.FLOW){var b=f["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];i=zM(y,b)}else{var v=f["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];c=c.concat(LM(y,v,h))}}})}return{nodes:c,edges:i}}function LM(a,c,i){var f=[];if(Array.isArray(a))a.forEach(function(y){var b;Array.isArray(c)?b=c.find(function(E){return E["-bpmnElement"]===y["-id"]}):b=c;var v=Q0(b,i,y);f.push(v)});else{var o=void 0;Array.isArray(c)?o=c.find(function(y){return y["-bpmnElement"]===a["-id"]}):o=c;var h=Q0(o,i,a);f.push(h)}return f}function Q0(a,c,i){var f=Number(a["dc:Bounds"]["-x"]),o=Number(a["dc:Bounds"]["-y"]),h=i["-name"],y=Ha.shapeConfigMap.get(c);y&&(f+=y.width/2,o+=y.height/2);var b;Object.entries(i).forEach(function(k){var T=Kp(k,2),M=T[0],I=T[1];Z0.indexOf(M)===-1&&(b||(b={}),b[M]=I)}),b&&(b=qp(b));var v;if(h&&(v={x:f,y:o,value:h},a["bpmndi:BPMNLabel"]&&a["bpmndi:BPMNLabel"]["dc:Bounds"])){var E=a["bpmndi:BPMNLabel"]["dc:Bounds"];v.x=Number(E["-x"])+Number(E["-width"])/2,v.y=Number(E["-y"])+Number(E["-height"])/2}var A={id:a["-bpmnElement"],type:c,x:f,y:o,properties:b};return v&&(A.text=v),A}function zM(a,c){var i=[];if(Array.isArray(a))a.forEach(function(o){var h;Array.isArray(c)?h=c.find(function(y){return y["-bpmnElement"]===o["-id"]}):h=c,i.push(t_(h,o))});else{var f=void 0;Array.isArray(c)?f=c.find(function(o){return o["-bpmnElement"]===a["-id"]}):f=c,i.push(t_(f,a))}return i}function t_(a,c){var i,f=c["-name"];if(f){var o=a["bpmndi:BPMNLabel"]["dc:Bounds"],h=0;f.split(`
- `).forEach(function(v){h<v.length&&(h=v.length)}),i={value:f,x:Number(o["-x"])+h*10/2,y:Number(o["-y"])+7}}var y;Object.entries(c).forEach(function(v){var E=Kp(v,2),A=E[0],k=E[1];Z0.indexOf(A)===-1&&(y||(y={}),y[A]=k)}),y&&(y=qp(y));var b={id:c["-id"],type:zi.FLOW,pointsList:a["di:waypoint"].map(function(v){return{x:Number(v["-x"]),y:Number(v["-y"])}}),sourceNodeId:c["-sourceRef"],targetNodeId:c["-targetRef"],properties:y};return i&&(b.text=i),b}var Ha=function(){function a(c){var i=this,f=c.lf;this.adapterOut=function(o,h){var y=Jy({},i.processAttributes);CM(y,o,h);var b={"-id":"BPMNPlane_1","-bpmnElement":y["-id"]};RM(b,o);var v=i.definitionAttributes;v["bpmn:process"]=y,v["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":b};var E={"bpmn:definitions":v};return E},this.adapterIn=function(o){if(o)return IM(o)},f.adapterIn=function(o){return i.adapterIn(o)},f.adapterOut=function(o,h){return i.adapterOut(o,h)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+K0()},this.definitionAttributes={"-id":"Definitions_"+K0(),"-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.0"}}return a.prototype.setCustomShape=function(c,i){a.shapeConfigMap.set(c,i)},a.pluginName="bpmn-adapter",a.shapeConfigMap=new Map,a}();Ha.shapeConfigMap.set(zi.START,{width:Y0.width,height:Y0.height}),Ha.shapeConfigMap.set(zi.END,{width:X0.width,height:X0.height}),Ha.shapeConfigMap.set(zi.GATEWAY,{width:G0.width,height:G0.height}),Ha.shapeConfigMap.set(zi.SYSTEM,{width:W0.width,height:W0.height}),Ha.shapeConfigMap.set(zi.USER,{width:V0.width,height:V0.height}),function(a){NM(c,a);function c(i){var f=a.call(this,i)||this;f.adapterXmlIn=function(h){var y=DM(h);return f.adapterIn(y)},f.adapterXmlOut=function(h,y){var b=f.adapterOut(h,y);return MM(b)};var o=i.lf;return o.adapterIn=f.adapterXmlIn,o.adapterOut=f.adapterXmlOut,f}return c.pluginName="bpmnXmlAdapter",c}(Ha);var BM=function(){function a(){globalThis._ids=this,this._ids=new Set}return a.prototype.generateId=function(){var c="xxxxxxx".replace(/[x]/g,function(i){var f=Math.random()*16|0,o=i==="x"?f:f&3|8;return o.toString(16)});return c},a.prototype.next=function(){for(var c=this.generateId();this._ids.has(c);)c=this.generateId();return this._ids.add(c),c},a}(),FM=(globalThis==null?void 0:globalThis._ids)||new BM;function UM(){return FM.next()}globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var e_=globalThis&&globalThis.__assign||function(){return e_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},e_.apply(this,arguments)},d8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var r_=globalThis&&globalThis.__assign||function(){return r_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},r_.apply(this,arguments)},y8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var n_=globalThis&&globalThis.__assign||function(){return n_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},n_.apply(this,arguments)},g8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var o_=globalThis&&globalThis.__assign||function(){return o_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},o_.apply(this,arguments)},v8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var i_=globalThis&&globalThis.__assign||function(){return i_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},i_.apply(this,arguments)},m8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,ne.h("circle",{cx:18,cy:18,r:11,style:"stroke-linecap: round;stroke-linejoin: round;stroke: rgb(34, 36, 42);stroke-width: 2px;fill: white"}),ne.h("path",{d:"M 18,18 l 2.25,-7.5 m -2.25,7.5 l 5.25,1.5",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(0,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(30,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(60,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(90,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(120,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(150,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(180,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(210,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(240,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(270,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(300,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(330,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ne.h("circle",{cx:18,cy:18,r:10,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 4px; fill: rgb(34, 36, 42);"}),ne.h("circle",{cx:25,cy:25,r:13,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2.5px; fill: white;"}),globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var a_=globalThis&&globalThis.__assign||function(){return a_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},a_.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var u_=globalThis&&globalThis.__assign||function(){return u_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},u_.apply(this,arguments)},b8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var Sl=globalThis&&globalThis.__assign||function(){return Sl=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Sl.apply(this,arguments)};function Qy(a){var c=a.x,i=a.y,f=a.width,o=a.height,h=a.radius,y=a.className,b=c-f/2,v=i-o/2,E=Sl(Sl({width:10,height:10,cx:0,cy:0,rx:h||0,ry:h||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+y},a),{x:b,y:v});return ne.h("rect",Sl({},E))}Qy.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var Vc;(function(a){a.NODE="node",a.CIRCLE_NODE="circle-node",a.POLYGON_NODE="polygon-node",a.RECT_NODE="rect-node",a.HTML_NODE="html-node",a.TEXT_NODE="text-node",a.ELLIPSE_NODE="ellipse-node",a.DIAMOND_NODE="diamond-node",a.EDGE="edge",a.LINE_EDGE="line-edge",a.POLYLINE_EDGE="polyline-edge",a.BEZIER_EDGE="bezier-edge",a.GRAPH="graph"})(Vc||(Vc={}));var HM=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Du=globalThis&&globalThis.__assign||function(){return Du=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Du.apply(this,arguments)},YM=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},XM=ne.LogicFlowUtil.StepDrag,GM=function(a){HM(c,a);function c(i){var f=a.call(this)||this;return f.updatePosition=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel,v=b.x,E=b.y;f.nodeModel.x=v+h/2,f.nodeModel.y=E+y/2,f.nodeModel.moveText(h/2,y/2)},f.getResize=function(o){var h=o.index,y=o.deltaX,b=o.deltaY,v=o.width,E=o.height,A=o.PCTResizeInfo,k=o.pct,T=k===void 0?1:k,M={width:v,height:E,deltaX:y,deltaY:b};if(A){var I=4,C=0,L=0;switch(h){case 0:L=(y*-1-b)/I;break;case 1:L=(y-b)/I;break;case 2:L=(y+b)/I;break;case 3:L=(y*-1+b)/I;break}L!==0&&(C=Math.round(L/A.ResizeBasis.basisHeight*1e5)/1e3),A.ResizePCT.widthPCT=Math.max(Math.min(A.ResizePCT.widthPCT+C,A.ScaleLimit.maxScaleLimit),A.ScaleLimit.minScaleLimit),A.ResizePCT.hightPCT=Math.max(Math.min(A.ResizePCT.hightPCT+C,A.ScaleLimit.maxScaleLimit),A.ScaleLimit.minScaleLimit);var G=Math.round(A.ResizePCT.widthPCT*A.ResizeBasis.basisWidth/100),V=Math.round(A.ResizePCT.hightPCT*A.ResizeBasis.basisHeight/100);switch(h){case 0:y=v-G,b=E-V;break;case 1:y=G-v,b=E-V;break;case 2:y=G-v,b=V-E;break;case 3:y=v-G,b=V-E;break}return M.width=G,M.height=V,M.deltaX=y/T,M.deltaY=b/T,M}switch(h){case 0:M.width=v-y*T,M.height=E-b*T;break;case 1:M.width=v+y*T,M.height=E-b*T;break;case 2:M.width=v+y*T,M.height=E+b*T;break;case 3:M.width=v-y*T,M.height=E+b*T;break}return M},f.updateEdgePointByAnchors=function(){var o=f.nodeModel,h=o.id,y=o.anchors,b=f.getNodeEdges(h);b.sourceEdges.forEach(function(v){var E=y.find(function(A){return A.id===v.sourceAnchorId});v.updateStartPoint({x:E.x,y:E.y})}),b.targetEdges.forEach(function(v){var E=y.find(function(A){return A.id===v.targetAnchorId});v.updateEndPoint({x:E.x,y:E.y})})},f.updateRect=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel,v=b.id,E=b.x,A=b.y,k=b.width,T=b.height,M=b.radius,I=b.PCTResizeInfo,C=f.index,L=f.getResize({index:C,deltaX:h,deltaY:y,width:k,height:T,PCTResizeInfo:I,pct:1}),G=f.nodeModel,V=G.minWidth,nt=G.minHeight,st=G.maxWidth,at=G.maxHeight;if(L.width<V||L.width>st||L.height<nt||L.height>at){f.dragHandler.cancelDrag();return}f.updatePosition({deltaX:L.deltaX,deltaY:L.deltaY}),f.nodeModel.width=L.width,f.nodeModel.height=L.height,f.nodeModel.setProperties({nodeSize:{width:L.width,height:L.height}}),f.getNodeEdges(v);var tt={x:E,y:A,width:k,height:T,radius:M},et={x:f.nodeModel.x,y:f.nodeModel.y,width:f.nodeModel.width,height:f.nodeModel.height,radius:M};f.updateEdgePointByAnchors(),f.eventEmit({beforeNode:tt,afterNode:et})},f.updateEllipse=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel,v=b.id,E=b.rx,A=b.ry,k=b.x,T=b.y,M=b.PCTResizeInfo,I=f.index,C=E,L=A,G=f.getResize({index:I,deltaX:h,deltaY:y,width:C,height:L,PCTResizeInfo:M,pct:1/2}),V=f.nodeModel,nt=V.minWidth,st=V.minHeight,at=V.maxWidth,tt=V.maxHeight;if(G.width<nt/2||G.width>at/2||G.height<st/2||G.height>tt/2){f.dragHandler.cancelDrag();return}f.updatePosition({deltaX:G.deltaX,deltaY:G.deltaY}),f.nodeModel.rx=G.width,f.nodeModel.ry=G.height,f.nodeModel.setProperties({nodeSize:{rx:G.width,ry:G.height}}),f.getNodeEdges(v);var et={x:k,y:T},K={rx:G.width,ry:G.height,x:f.nodeModel.x,y:f.nodeModel.y};f.updateEdgePointByAnchors(),f.eventEmit({beforeNode:Du(Du({},et),{rx:E,ry:A}),afterNode:K})},f.updateDiamond=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel;b.id;var v=b.rx,E=b.ry,A=b.x,k=b.y,T=b.PCTResizeInfo,M=f.index,I=v,C=E,L=f.getResize({index:M,deltaX:h,deltaY:y,width:I,height:C,PCTResizeInfo:T,pct:1/2}),G=f.nodeModel,V=G.minWidth,nt=G.minHeight,st=G.maxWidth,at=G.maxHeight;if(L.width<V/2||L.width>st/2||L.height<nt/2||L.height>at/2){f.dragHandler.cancelDrag();return}f.updatePosition({deltaX:L.deltaX,deltaY:L.deltaY}),f.nodeModel.rx=L.width,f.nodeModel.ry=L.height,f.nodeModel.setProperties({nodeSize:{rx:L.width,ry:L.height}});var tt={x:A,y:k,rx:v,ry:E},et={rx:L.width,ry:L.height,x:f.nodeModel.x,y:f.nodeModel.y};f.updateEdgePointByAnchors(),f.eventEmit({beforeNode:tt,afterNode:et})},f.eventEmit=function(o){var h=o.beforeNode,y=o.afterNode,b=f.nodeModel,v=b.id,E=b.modelType,A=b.type,k=Du({id:v,modelType:E,type:A},h),T=Du({id:v,modelType:E,type:A},y);f.graphModel.eventCenter.emit("node:resize",{oldNodeSize:k,newNodeSize:T})},f.onDragging=function(o){var h,y=o.deltaX,b=o.deltaY,v=f.graphModel.transformModel,E=f.nodeModel.modelType;h=YM(v.fixDeltaXY(y,b),2),y=h[0],b=h[1],E===Vc.RECT_NODE||E===Vc.HTML_NODE?f.updateRect({deltaX:y,deltaY:b}):E===Vc.ELLIPSE_NODE?f.updateEllipse({deltaX:y,deltaY:b}):E===Vc.DIAMOND_NODE&&f.updateDiamond({deltaX:y,deltaY:b})},f.onDragEnd=function(){f.updateEdgePointByAnchors();var o=f.graphModel.gridSize,h=o===void 0?1:o,y=h*Math.round(f.nodeModel.x/h),b=h*Math.round(f.nodeModel.y/h);f.nodeModel.moveTo(y,b)},f.index=i.index,f.nodeModel=i.model,f.graphModel=i.graphModel,f.state={},f.dragHandler=new XM({onDragging:f.onDragging,onDragEnd:f.onDragEnd,step:1}),f}return c.prototype.getNodeEdges=function(i){for(var f=this.graphModel,o=f.edges,h=[],y=[],b=0;b<o.length;b++){var v=o[b];v.sourceNodeId===i?h.push(v):o[b].targetNodeId===i&&y.push(v)}return{sourceEdges:h,targetEdges:y}},c.prototype.render=function(){var i=this.props,f=i.x,o=i.y,h=i.index,y=i.model,b=y.getControlPointStyle();return Tp("g",{className:"lf-resize-control-"+h},Tp(Qy,Du({className:"lf-node-control"},{x:f,y:o},b,{onMouseDown:this.dragHandler.handleMouseDown})))},c}(Zw),WM=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Zp=globalThis&&globalThis.__assign||function(){return Zp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Zp.apply(this,arguments)},$p=function(a){WM(c,a);function c(){var i=a.call(this)||this;return i.state={},i}return c.prototype.getResizeControl=function(){var i=this.props,f=i.model,o=i.graphModel,h=f.x,y=f.y,b=f.width,v=f.height,E={minX:h-b/2,minY:y-v/2,maxX:h+b/2,maxY:y+v/2},A=E.minX,k=E.minY,T=E.maxX,M=E.maxY,I=[{x:A,y:k},{x:T,y:k},{x:T,y:M},{x:A,y:M}];return I.map(function(C,L){return Tp(GM,Zp({index:L},C,{model:f,graphModel:o}))})},c.prototype.getGroupSolid=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.getResizeOutlineStyle();return Tp(Qy,Zp({fill:"none"},b,{x:f,y:o,width:h,height:y}))},c.prototype.render=function(){return Tp("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},c}(Zw),c_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),VM=function(a){c_(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.width=h.width,o.height=h.height),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.resize=function(i,f){},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},h={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c}(ne.RectNodeModel),KM=function(a){c_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ne.h($p,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){return a.prototype.getShape.call(this)},c.prototype.getShape=function(){var i=this.props,f=i.model.isSelected,o=i.graphModel.editConfigModel.isSilentMode;return ne.h("g",null,this.getResizeShape(),f&&!o?this.getControlGroup():"")},c}(ne.RectNode),s_={type:"rect",view:KM,model:VM},l_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();(function(a){l_(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.rx=h.rx,o.ry=h.ry),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},h={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c})(ne.EllipseNodeModel),function(a){l_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ne.h($p,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){return a.prototype.getShape.call(this)},c.prototype.getShape=function(){var i=this.props,f=i.model,o=i.graphModel.editConfigModel.isSilentMode;return ne.h("g",null,this.getResizeShape(),f.isSelected&&!o?this.getControlGroup():"")},c}(ne.EllipseNode);var tg=globalThis&&globalThis.__assign||function(){return tg=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},tg.apply(this,arguments)};function qM(a){var c=a.fillOpacity,i=c===void 0?1:c,f=a.strokeWidth,o=f===void 0?1:f,h=a.strokeOpacity,y=h===void 0?1:h,b=a.fill,v=b===void 0?"transparent":b,E=a.stroke,A=E===void 0?"#000":E,k=a.points,T=a.className,M=T===void 0?"lf-basic-shape":T,I={fill:v,fillOpacity:i,strokeWidth:o,stroke:A,strokeOpacity:y,points:"",className:M};return I.points=k.map(function(C){return C.join(",")}).join(" "),ne.h("polygon",tg({},I))}var f_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),eg=globalThis&&globalThis.__assign||function(){return eg=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},eg.apply(this,arguments)};(function(a){f_(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.rx=h.rx,o.ry=h.ry),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},h={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c})(ne.DiamondNodeModel),function(a){f_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ne.h($p,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){var i=this.props.model,f=i.points,o=i.getNodeStyle();return ne.h("g",null,ne.h(qM,eg({},o,{points:f})))},c.prototype.getShape=function(){var i=this.props,f=i.model.isSelected,o=i.graphModel.editConfigModel.isSilentMode;return ne.h("g",null,this.getResizeShape(),f&&!o?this.getControlGroup():"")},c}(ne.DiamondNode);var p_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();(function(a){p_(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.width=h.width,o.height=h.height),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},h={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c})(ne.HtmlNodeModel),function(a){p_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ne.h($p,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){return a.prototype.getShape.call(this)},c.prototype.getShape=function(){var i=this.props,f=i.model.isSelected,o=i.graphModel.editConfigModel.isSilentMode;return ne.h("g",null,this.getResizeShape(),f&&!o?this.getControlGroup():"")},c}(ne.HtmlNode);var h_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Jp=globalThis&&globalThis.__assign||function(){return Jp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Jp.apply(this,arguments)},ZM=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},$M=globalThis&&globalThis.__spread||function(){for(var a=[],c=0;c<arguments.length;c++)a=a.concat(ZM(arguments[c]));return a},d_=500,y_=300,JM=-1e4;(function(a){h_(c,a);function c(){var i=a!==null&&a.apply(this,arguments)||this;return i.isGroup=!0,i.unfoldedWidth=d_,i.unfoldedHight=y_,i.childrenLastFoldStatus={},i}return c.prototype.initNodeData=function(i){var f=this;a.prototype.initNodeData.call(this,i);var o=[];Array.isArray(i.children)&&(o=i.children),this.children=new Set(o),this.width=d_,this.height=y_,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=JM,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.properties.isFolded===void 0&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout(function(){f.isFolded&&f.foldGroup(f.isFolded)})},c.prototype.getResizeOutlineStyle=function(){var i=a.prototype.getResizeOutlineStyle.call(this);return i.stroke="none",i},c.prototype.foldGroup=function(i){var f=this;if(i!==this.isFolded){this.setProperty("isFolded",i),this.isFolded=i,i?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var o=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach(function(h){var y=f.graphModel.getElement(h),b=y.isFolded;if(y.isGroup&&!y.isFolded&&y.foldGroup(i),y.isGroup&&!i){var v=f.childrenLastFoldStatus[h];v!==void 0&&v!==y.isFolded&&y.foldGroup(v)}f.childrenLastFoldStatus[h]=b,y.visible=!i,o=o.concat(y.incoming.edges.concat(y.outgoing.edges))}),this.foldEdge(i,o)}},c.prototype.getAnchorStyle=function(i){var f=a.prototype.getAnchorStyle.call(this,i);return f.stroke="transparent",f.fill="transparent",f.hover.fill="transparent",f.hover.stroke="transparent",f},c.prototype.foldEdge=function(i,f){var o=this;f.forEach(function(h,y){var b=h.id,v=h.sourceNodeId,E=h.targetNodeId,A=h.startPoint,k=h.endPoint,T=h.type,M=h.text,I=h.getProperties(),C={id:b+"__"+y,sourceNodeId:v,targetNodeId:E,startPoint:A,endPoint:k,type:T,properties:I,text:M==null?void 0:M.value};h.virtual&&o.graphModel.deleteEdgeById(h.id);var L=o.graphModel.group.getNodeGroup(E);L||(L=o.graphModel.getNodeModelById(E));var G=o.graphModel.group.getNodeGroup(v);G||(G=o.graphModel.getNodeModelById(v)),i&&h.visible!==!1&&(o.children.has(v)||o.id===v?(C.startPoint=void 0,C.sourceNodeId=o.id):(C.endPoint=void 0,C.targetNodeId=o.id),(L.id!==o.id||G.id!==o.id)&&o.createVirtualEdge(C),h.visible=!1),!i&&h.visible===!1&&(L&&L.isGroup&&L.isFolded?(C.targetNodeId=L.id,C.endPoint=void 0,o.createVirtualEdge(C)):G&&G.isGroup&&G.isFolded?(C.sourceNodeId=G.id,C.startPoint=void 0,o.createVirtualEdge(C)):h.visible=!0)})},c.prototype.createVirtualEdge=function(i){i.pointsList=void 0;var f=this.graphModel.addEdge(i);f.virtual=!0,f.text.editable=!1,f.isFoldedEdge=!0},c.prototype.isInRange=function(i){var f=i.x1,o=i.y1,h=i.x2,y=i.y2;return f>=this.x-this.width/2&&h<=this.x+this.width/2&&o>=this.y-this.height/2&&y<=this.y+this.height/2},c.prototype.isAllowMoveTo=function(i){var f=i.x1,o=i.y1,h=i.x2,y=i.y2;return{x:f>=this.x-this.width/2&&h<=this.x+this.width/2,y:o>=this.y-this.height/2&&y<=this.y+this.height/2}},c.prototype.setAllowAppendChild=function(i){this.setProperty("groupAddable",i)},c.prototype.addChild=function(i){this.children.add(i),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})},c.prototype.removeChild=function(i){this.children.delete(i),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})},c.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},c.prototype.getData=function(){var i=this,f=a.prototype.getData.call(this);f.children=[],this.children.forEach(function(h){var y=i.graphModel.getNodeModelById(h);y&&!y.virtual&&f.children.push(h)});var o=f.properties;return delete o.groupAddable,delete o.isFolded,f},c.prototype.getHistoryData=function(){var i=a.prototype.getData.call(this);i.children=$M(this.children),i.isGroup=!0;var f=i.properties;return delete f.groupAddable,f.isFolded&&(i.x=i.x+this.unfoldedWidth/2-this.foldedWidth/2,i.y=i.y+this.unfoldedHight/2-this.foldedHeight/2),i},c.prototype.isAllowAppendIn=function(i){return!0},c.prototype.toBack=function(){this.zIndex--},c})(s_.model),function(a){h_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props.model,f=i.resizable,o=i.properties;return f&&!o.isFolded?a.prototype.getControlGroup.call(this):null},c.prototype.getAddableShape=function(){var i=this.props.model,f=i.width,o=i.height,h=i.x,y=i.y,b=i.radius,v=i.properties;if(!v.groupAddable)return null;var E=this.props.model.getNodeStyle().strokeWidth,A=this.props.model.getAddableOutlineStyle(),k=f+E+8,T=o+E+8;return ne.h("rect",Jp(Jp({},A),{width:k,height:T,x:h-k/2,y:y-T/2,rx:b,ry:b}))},c.prototype.getFoldIcon=function(){var i=this.props.model,f=i.x-i.width/2+5,o=i.y-i.height/2+5;if(!i.foldable)return null;var h=ne.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:i.properties.isFolded?"M "+(f+3)+","+(o+6)+" "+(f+11)+","+(o+6)+" M"+(f+7)+","+(o+2)+" "+(f+7)+","+(o+10):"M "+(f+3)+","+(o+6)+" "+(f+11)+","+(o+6)+" "});return ne.h("g",{},[ne.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:i.x-i.width/2+5,y:i.y-i.height/2+5,onClick:function(){i.foldGroup(!i.properties.isFolded)}}),h])},c.prototype.getResizeShape=function(){return ne.h("g",{},[this.getAddableShape(),a.prototype.getResizeShape.call(this),this.getFoldIcon()])},c}(s_.view);var g_=globalThis&&globalThis.__assign||function(){return g_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},g_.apply(this,arguments)};globalThis&&globalThis.__rest;var _8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var v_=globalThis&&globalThis.__assign||function(){return v_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},v_.apply(this,arguments)};globalThis&&globalThis.__values;var m_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Al=globalThis&&globalThis.__assign||function(){return Al=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Al.apply(this,arguments)};function QM(a){var c=function(f){m_(o,f);function o(h,y){var b=this;h.id||(h.id="Flow_"+UM());var v=Al(Al(Al({},a||{}),h.properties),{isDefaultFlow:!1});return h.properties=v,b=f.call(this,h,y)||this,b}return o.extendKey="SequenceFlowModel",o}(ne.PolylineEdgeModel),i=function(f){m_(o,f);function o(){return f!==null&&f.apply(this,arguments)||this}return o.prototype.getStartArrow=function(){var h=this.props.model,y=h.properties.isDefaultFlow;return y?ne.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):ne.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(ne.PolylineEdge);return{type:"bpmn:sequenceFlow",view:i,model:c}}QM(),globalThis&&globalThis.__read;var b_={width:40,height:40},__={width:40,height:40},O_={width:100,height:80},Qp={width:100,height:80},w_={width:100,height:80},x_={width:100,height:80},E_={width:100,height:80},j_={width:100,height:80},S_={width:100,height:80},A_={width:100,height:80},no=function(){};no.ObjTree=function(){return this},no.ObjTree.VERSION="0.23",no.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `,no.ObjTree.prototype.attr_prefix="-",no.ObjTree.prototype.parseXML=function(a){var c;if(window.DOMParser){var i=new DOMParser,f=i.parseFromString(a,"application/xml");if(!f)return;c=f.documentElement}else window.ActiveXObject&&(i=new ActiveXObject("Microsoft.XMLDOM"),i.async=!1,i.loadXML(a),c=i.documentElement);if(c){var o=this.parseDOM(c);return o}},no.ObjTree.prototype.parseHTTP=function(a,c,i){var f={};for(var o in c)f[o]=c[o];if(f.method||(typeof f.postBody>"u"&&typeof f.postbody>"u"&&typeof f.parameters>"u"?f.method="get":f.method="post"),i){f.asynchronous=!0;var h=this,y=i,b=f.onComplete;f.onComplete=function(A){var k;A&&A.responseXML&&A.responseXML.documentElement&&(k=h.parseDOM(A.responseXML.documentElement)),y(k,A),b&&b(A)}}else f.asynchronous=!1;var v;if(typeof HTTP<"u"&&HTTP.Request){f.uri=a;var E=new HTTP.Request(f);E&&(v=E.transport)}else if(typeof Ajax<"u"&&Ajax.Request){var E=new Ajax.Request(a,f);E&&(v=E.transport)}if(i)return v;if(v&&v.responseXML&&v.responseXML.documentElement)return this.parseDOM(v.responseXML.documentElement)},no.ObjTree.prototype.parseDOM=function(a){if(a){if(this.__force_array={},this.force_array)for(var c=0;c<this.force_array.length;c++)this.__force_array[this.force_array[c]]=1;var i=this.parseElement(a);if(this.__force_array[a.nodeName]&&(i=[i]),a.nodeType!==11){var f={};f[a.nodeName]=i,i=f}return i}},no.ObjTree.prototype.parseElement=function(a){if(a.nodeType!==7){if(a.nodeType===3||a.nodeType===4||a.nodeType===8){var c=a.nodeValue.match(/[^\x00-\x20]/);return c==null?void 0:a.nodeValue}var i=null,f={};if(a.attributes&&a.attributes.length){i={};for(var o=0;o<a.attributes.length;o++){var h=a.attributes[o].nodeName;if(typeof h=="string"){var y=a.attributes[o].nodeValue;try{y=JSON.parse(a.attributes[o].nodeValue.replace(/'/g,'"'))}catch(E){y=a.attributes[o].nodeValue}y!=null&&(h=this.attr_prefix+h,typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}if(a.childNodes&&a.childNodes.length){var b=!0;i&&(b=!1);for(var o=0;o<a.childNodes.length&&b;o++){var v=a.childNodes[o].nodeType;v===3||v===4||v===8||(b=!1)}if(b){i||(i="");for(var o=0;o<a.childNodes.length;o++)i+=a.childNodes[o].nodeValue}else{i||(i={});for(var o=0;o<a.childNodes.length;o++){var h=a.childNodes[o].nodeName;if(typeof h=="string"){var y=this.parseElement(a.childNodes[o]);y&&(typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}}else i===null&&(i={});return i}},no.ObjTree.prototype.addNode=function(a,c,i,f){this.__force_array[c]?(i===1&&(a[c]=[]),a[c][a[c].length]=f):i===1?a[c]=f:i===2?a[c]=[a[c],f]:a[c][a[c].length]=f},no.ObjTree.prototype.writeXML=function(a){var c=this.hash_to_xml(null,a);return this.xmlDecl+c},no.ObjTree.prototype.hash_to_xml=function(a,c){var i=[],f=[];for(var o in c)if(c!=null&&c.hasOwnProperty(o)){var h=c[o];o.charAt(0)!==this.attr_prefix?typeof h>"u"||h==null?i[i.length]="<"+o+" />":typeof h=="object"&&h.constructor===Array?i[i.length]=this.array_to_xml(o,h):typeof h=="object"?i[i.length]=this.hash_to_xml(o,h):i[i.length]=this.scalar_to_xml(o,h):f[f.length]=" "+o.substring(1)+'="'+this.xml_escape(h)+'"'}var y=f.join(""),b=i.join("");return typeof a>"u"||a==null||(i.length>0?b.match(/\n/)?b="<"+a+y+`>
- `+b+"</"+a+`>
- `:b="<"+a+y+">"+b+"</"+a+`>
- `:b="<"+a+y+` />
- `),b},no.ObjTree.prototype.array_to_xml=function(a,c){for(var i=[],f=0;f<c.length;f++){var o=c[f];typeof o>"u"||o==null?i[i.length]="<"+a+" />":typeof o=="object"&&o.constructor===Array?i[i.length]=this.array_to_xml(a,o):typeof o=="object"?i[i.length]=this.hash_to_xml(a,o):i[i.length]=this.scalar_to_xml(a,o)}return i.join("")},no.ObjTree.prototype.scalar_to_xml=function(a,c){return a==="#text"?this.xml_escape(c):"<"+a+">"+this.xml_escape(c)+"</"+a+`>
- `},no.ObjTree.prototype.xml_escape=function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var tD=function(a){return new no.ObjTree().parseXML(a)};function P_(a){return Object.prototype.toString.call(a)}function k_(a){return" ".repeat(a)}function th(a){return P_(a)==="[object Object]"?Object.keys(a).reduce(function(c,i){var f=i;return i.charAt(0)==="-"&&(f=i.substring(1)),c[f]=th(a[i]),c},{}):Array.isArray(a)?a.map(function(c){return th(c)}):a}function eD(a){var c=a;try{typeof c!="string"&&(c=JSON.parse(a))}catch(i){c=JSON.stringify(th(a)).replace(/"/g,"'")}return c}var T_=`
- `;function eh(a,c,i){var f=k_(i),o="",h=T_+f;if(c==="-json")return"";if(c==="#text")return h+a;if(c==="#cdata-section")return h+"<![CDATA["+a+"]]>";if(c==="#comment")return h+"<!--"+a+"-->";if((""+c).charAt(0)==="-")return" "+c.substring(1)+'="'+eD(a)+'"';if(Array.isArray(a))o+=a.map(function(E){return eh(E,c,i+1)}).join("");else if(P_(a)==="[object Object]"){var y=Object.keys(a),b="",v=a["-json"]?T_+k_(i+1)+a["-json"]:"";o+=(i===0?"":h)+"<"+c,y.forEach(function(E){E.charAt(0)==="-"?b+=eh(a[E],E,i+1):v+=eh(a[E],E,i+1)}),o+=b+(v!==""?">"+v+h+"</"+c+">":" />")}else o+=h+"<"+c+">"+a.toString()+"</"+c+">";return o}function rD(a){var c="";for(var i in a)c+=eh(a[i],i,0);return c}var nD=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),rg=globalThis&&globalThis.__assign||function(){return rg=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},rg.apply(this,arguments)},M_=globalThis&&globalThis.__rest||function(a,c){var i={};for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&c.indexOf(f)<0&&(i[f]=a[f]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,f=Object.getOwnPropertySymbols(a);o<f.length;o++)c.indexOf(f[o])<0&&Object.prototype.propertyIsEnumerable.call(a,f[o])&&(i[f[o]]=a[f[o]]);return i},ng=globalThis&&globalThis.__values||function(a){var c=typeof Symbol=="function"&&Symbol.iterator,i=c&&a[c],f=0;if(i)return i.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Kc=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},qc=globalThis&&globalThis.__spread||function(){for(var a=[],c=0;c<arguments.length;c++)a=a.concat(Kc(arguments[c]));return a},oo;(function(a){a.START="bpmn:startEvent",a.END="bpmn:endEvent",a.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",a.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",a.BOUNDARY="bpmn:boundaryEvent",a.PARALLEL_GATEWAY="bpmn:parallelGateway",a.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",a.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",a.USER="bpmn:userTask",a.SYSTEM="bpmn:serviceTask",a.FLOW="bpmn:sequenceFlow",a.SUBPROCESS="bpmn:subProcess"})(oo||(oo={}));var D_=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],oD=["properties","startPoint","endPoint","pointsList"],rh={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},N_=function(a,c){var i=Object.keys(c||{});return i.forEach(function(f){if(a[f]){var o=c[f],h=o.in,y=o.out;h&&(a[f].in=h),y&&(a[f].out=y)}else a[f]=c[f]}),a},Yo={"bpmn:startEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Yo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:intermediateCatchEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Yo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:intermediateThrowEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Yo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:boundaryEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Yo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:sequenceFlow":{out:function(a){var c=a.properties,i=c.expressionType,f=c.condition;return f?i==="cdata"?{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${'+f+"}]]></bpmn:conditionExpression>"}:{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression">'+f+"</bpmn:conditionExpression>"}:{json:""}}},"bpmn:timerEventDefinition":{out:function(a){var c=a.properties,i=c.timerType,f=c.timerValue,o=c.definitionId,h=function(){return"<bpmn:"+i+' xsi:type="bpmn:tFormalExpression">'+f+"</bpmn:"+i+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(i&&f?">"+h()+"</bpmn:timerEventDefinition>":"/>")}},in:function(a,c){var i,f,o,h,y=a,b=c["-id"],v="",E="";try{for(var A=ng(Object.keys(c)),k=A.next();!k.done;k=A.next()){var T=k.value;T.includes("bpmn:")&&(o=Kc(T.split(":"),2),v=o[1],E=(h=c[T])===null||h===void 0?void 0:h["#text"])}}catch(M){i={error:M}}finally{try{k&&!k.done&&(f=A.return)&&f.call(A)}finally{if(i)throw i.error}}return{"-definitionId":b,"-definitionType":y,"-timerType":v,"-timerValue":E}}},"bpmn:conditionExpression":{in:function(a,c){var i,f="",o="";return c["#cdata-section"]?(o="cdata",f=((i=/^\$\{(.*)\}$/g.exec(c["#cdata-section"]))===null||i===void 0?void 0:i[1])||""):c["#text"]&&(o="normal",f=c["#text"]),{"-condition":f,"-expressionType":o}}}};function iD(a){var c=a!=null?a:{},i=c.retainedAttrsFields,f=c.excludeFields,o=c.transformer,h=new Set(qc(oD,i||[])),y={in:new Set(qc(rh.in,(f==null?void 0:f.in)||[])),out:new Set(qc(rh.out,(f==null?void 0:f.out)||[]))};return Yo=N_(Yo,o),function(b){var v=b.nodes,E=b.edges;function A(k,T){var M,I,C;if((k==null?void 0:k.flag)!==1){var L;if((L=Yo[k.type])&&L.out){var G=L.out(k),V=Object.keys(G);V.length>0&&V.forEach(function(X){k[X]=G[X]})}k!=null&&k.children&&(k.children=k.children.map(function(X){var W=v.find(function(Z){return Z.id===X})||E.find(function(Z){return Z.id===X});return W||{}}));var nt={};if(typeof k=="string")return k;if(Array.isArray(k))return k.map(function(X){return A(X,"")}).filter(function(X){return X!=null});try{for(var st=ng(Object.entries(k)),at=st.next();!at.done;at=st.next()){var tt=Kc(at.value,2),et=tt[0],K=tt[1];if(((C=K)===null||C===void 0?void 0:C.flag)===1)return;var U=[T,et].filter(function(X){return X}).join(".");y.out.has(U)||(typeof K!="object"?et.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(et)?nt[et]=K:nt["-"+et]=K:h.has(U)?nt["-"+et]=A(K,U):nt[et]=A(K,U))}}catch(X){M={error:X}}finally{try{at&&!at.done&&(I=st.return)&&I.call(st)}finally{if(M)throw M.error}}return nt}}return A(b,"")}}function nh(a){var c,i,f={};try{for(var o=ng(Object.entries(a)),h=o.next();!h.done;h=o.next()){var y=Kc(h.value,2),b=y[0],v=y[1];b.indexOf("-")===0?f[b.substring(1)]=th(v):typeof v=="string"?f[b]=v:Object.prototype.toString.call(v)==="[object Object]"?f[b]=nh(v):Array.isArray(v)?f[b]=v.map(function(E){return nh(E)}):f[b]=v}}catch(E){c={error:E}}finally{try{h&&!h.done&&(i=o.return)&&i.call(o)}finally{if(c)throw c.error}}return f}function aD(a,c,i){var f,o=new Map,h=iD(i)(c);h.nodes.forEach(function(b){var v=b["-id"],E=b["-type"],A=b.text,k=b.children,T=M_(b,["-id","-type","text","children"]),M={"-id":v};A!=null&&A["-value"]&&(M["-name"]=A["-value"]),T["-json"]&&(M["-json"]=T["-json"]),T["-properties"]&&Object.assign(M,T["-properties"]),k&&(M.children=k),a[E]||(a[E]=[]),a[E].push(M),o.set(v,M)});var y=h.edges.map(function(b){var v=b["-id"];b["-type"];var E=b["-sourceNodeId"],A=b["-targetNodeId"],k=b.text,T=M_(b,["-id","-type","-sourceNodeId","-targetNodeId","text"]),M=o.get(A);M["bpmn:incoming"]||(M["bpmn:incoming"]=[]),M["bpmn:incoming"].push(v);var I={"-id":v,"-sourceRef":E,"-targetRef":A};return k!=null&&k["-value"]&&(I["-name"]=k["-value"]),T["-json"]&&(I["-json"]=T["-json"]),T["-properties"]&&Object.assign(I,T["-properties"]),I});return c.edges.forEach(function(b){var v=b.sourceNodeId,E=b.id,A=o.get(v);A["bpmn:outgoing"]||(A["bpmn:outgoing"]=[]),A["bpmn:outgoing"].push(E)}),(f=a["bpmn:subProcess"])===null||f===void 0||f.forEach(function(b){var v={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},E=[];b.children.forEach(function(C){var L,G=o.get(C["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function(nt){G[nt]&&G[nt].forEach(function(st){v[nt].add(st)})});var V=(L=a[C["-type"]])===null||L===void 0?void 0:L.findIndex(function(nt){return nt["-id"]===C["-id"]});V>=0&&a[C["-type"]].splice(V,1),o.delete(C["-id"]),b[C["-type"]]||(b[C["-type"]]=[]),b[C["-type"]].push(G)});var A=v["bpmn:incoming"],k=v["bpmn:outgoing"];k.forEach(function(C){A.has(C)&&E.push(C)});for(var T=function(C){var L=y.findIndex(function(G){return G["-id"]===E[C]});L>=0?(b["bpmn:sequenceFlow"]||(b["bpmn:sequenceFlow"]=[]),b["bpmn:sequenceFlow"].push(y[L]),y.splice(L,1)):C++,M=C},M,I=0;I<E.length;)T(I),I=M;delete b.children}),a[oo.FLOW]=y,a}function uD(a,c){a["bpmndi:BPMNEdge"]=c.edges.map(function(i){var f,o=i.id,h=i.pointsList.map(function(b){var v=b.x,E=b.y;return{"-x":v,"-y":E}}),y={"-id":o+"_di","-bpmnElement":o,"di:waypoint":h};return!((f=i.text)===null||f===void 0)&&f.value&&(y["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),y}),a["bpmndi:BPMNShape"]=c.nodes.map(function(i){var f,o=i.id,h=100,y=80,b=i.x,v=i.y,E=vo.shapeConfigMap.get(i.type);E&&(h=E.width,y=E.height),b-=h/2,v-=y/2;var A={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":v,"-width":h,"-height":y}};return!((f=i.text)===null||f===void 0)&&f.value&&(A["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),A})}var cD=["bpmn:incoming","bpmn:outgoing"];function sD(a,c){var i=[],f=[],o=new Map,h=c!=null?c:{},y=h.transformer,b=h.excludeFields,v={in:new Set(qc(rh.in,(b==null?void 0:b.in)||[])),out:new Set(qc(rh.out,(b==null?void 0:b.out)||[]))};Yo=N_(Yo,y);var E=a["bpmn:definitions"];if(E){var A=E["bpmn:process"];(function(T,M){M.forEach(function(I){try{Object.keys(T).forEach(function(C){try{I(C)}catch(L){}})}catch(C){}})})(A,[function(T){function M(C){C["-children"]||(C["-children"]=[]),Object.keys(C).forEach(function(L){var G;L.indexOf("bpmn:")===0&&!cD.includes(L)&&(A[L]||(A[L]=[]),!Array.isArray(A[L])&&(A[L]=[A[L]]),Array.isArray(C[L])?(G=A[L]).push.apply(G,qc(C[L])):A[L].push(C[L]),Array.isArray(C[L])?C[L].forEach(function(V){!L.includes("Flow")&&C["-children"].push(V["-id"])}):!L.includes("Flow")&&C["-children"].push(C[L]["-id"]),delete C[L])})}if(T==="bpmn:subProcess"){var I=A[T];Array.isArray(I)?I.forEach(function(C){T==="bpmn:subProcess"&&M(C)}):M(I)}},function(T){var M=function(C){Object.keys(C).forEach(function(L){var G,V;if(L.includes("bpmn:")){var nt={};Yo[L]&&Yo[L].in?(nt=(V=(G=Yo[L]).in)===null||V===void 0?void 0:V.call(G,L,F.cloneDeep(C[L])),delete C[L]):I(C[L]);var st=void 0;(st=Reflect.ownKeys(nt)).length>0&&st.forEach(function(at){Reflect.set(C,at,nt[at])})}})};function I(C){o.set(C["-id"],C),Array.isArray(C)?C.forEach(function(L){I(L)}):typeof C=="object"&&M(C)}I(A[T])},function(T){if(T.indexOf("bpmn:")===0){var M=A[T];if(T==="bpmn:sequenceFlow"){var I=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];f=fD(M,I)}else{var C=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(T==="bpmn:boundaryEvent"){var L=A[T],G=function(V){var nt=V["-attachedToRef"],st=o.get(nt);st["-boundaryEvents"]||(st["-boundaryEvents"]=[]),st["-boundaryEvents"].push(V["-id"])};Array.isArray(L)?L.forEach(function(V){G(V)}):G(L)}i=i.concat(lD(M,C,T))}}}])}var k=function(T,M,I){Object.keys(T).forEach(function(C){var L=I?I+"."+C:C;M.has(L)?delete T[C]:typeof T[C]=="object"&&k(T[C],M,L)})};return i.forEach(function(T){var M,I;if(!((M=c==null?void 0:c.mapping)===null||M===void 0)&&M.in){var C=(I=c==null?void 0:c.mapping)===null||I===void 0?void 0:I.in,L=T.type;C[L]&&(T.type=C[L])}k(T,v.in,"")}),f.forEach(function(T){var M,I;if(!((M=c==null?void 0:c.mapping)===null||M===void 0)&&M.in){var C=(I=c==null?void 0:c.mapping)===null||I===void 0?void 0:I.in,L=T.type;C[L]&&(T.type=C[L])}k(T,v.in,"")}),{nodes:i,edges:f}}function lD(a,c,i){var f=[];if(Array.isArray(a))a.forEach(function(y){var b;Array.isArray(c)?b=c.find(function(E){return E["-bpmnElement"]===y["-id"]}):b=c;var v=C_(b,i,y);f.push(v)});else{var o=void 0;Array.isArray(c)?o=c.find(function(y){return y["-bpmnElement"]===a["-id"]}):o=c;var h=C_(o,i,a);f.push(h)}return f}function C_(a,c,i){var f=Number(a["dc:Bounds"]["-x"]),o=Number(a["dc:Bounds"]["-y"]),h=i["-children"],y=i["-name"],b=vo.shapeConfigMap.get(c);b&&(f+=b.width/2,o+=b.height/2);var v={};Object.entries(i).forEach(function(T){var M=Kc(T,2),I=M[0],C=M[1];D_.includes(I)||(v[I]=C)}),v=nh(v);var E;if(y&&(E={x:f,y:o,value:y},a["bpmndi:BPMNLabel"]&&a["bpmndi:BPMNLabel"]["dc:Bounds"])){var A=a["bpmndi:BPMNLabel"]["dc:Bounds"];E.x=Number(A["-x"])+Number(A["-width"])/2,E.y=Number(A["-y"])+Number(A["-height"])/2}var k={id:a["-bpmnElement"],type:c,x:f,y:o,properties:v};return h&&(k.children=h),E&&(k.text=E),k}function fD(a,c){var i=[];if(Array.isArray(a))a.forEach(function(o){var h;Array.isArray(c)?h=c.find(function(y){return y["-bpmnElement"]===o["-id"]}):h=c,i.push(R_(h,o))});else{var f=void 0;Array.isArray(c)?f=c.find(function(o){return o["-bpmnElement"]===a["-id"]}):f=c,i.push(R_(f,a))}return i}function R_(a,c){var i,f=c["-name"];if(f){var o=a["bpmndi:BPMNLabel"]["dc:Bounds"],h=0;f.split(`
- `).forEach(function(E){h<E.length&&(h=E.length)}),i={value:f,x:Number(o["-x"])+h*10/2,y:Number(o["-y"])+7}}var y={};Object.entries(c).forEach(function(E){var A=Kc(E,2),k=A[0],T=A[1];D_.includes(k)||(y[k]=T)}),y=nh(y);var b=a["di:waypoint"].map(function(E){return{x:Number(E["-x"]),y:Number(E["-y"])}}),v={id:c["-id"],type:oo.FLOW,pointsList:b,sourceNodeId:c["-sourceRef"],targetNodeId:c["-targetRef"],properties:y};return i&&(v.text=i),v}var vo=function(){function a(c){var i=this,f=c.lf;this.adapterOut=function(o,h){var y,b,v=rg({},i.processAttributes);aD(v,o,h);var E={"-id":"BPMNPlane_1","-bpmnElement":v["-id"]};uD(E,o);var A=i.definitionAttributes;A["bpmn:process"]=v,A["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":E};var k={"bpmn:definitions":A};if(!((y=h==null?void 0:h.mapping)===null||y===void 0)&&y.out){var T=(b=h==null?void 0:h.mapping)===null||b===void 0?void 0:b.out,M=function(I){Array.isArray(I)&&I.forEach(function(C){return M(C)}),typeof I=="object"&&Object.keys(I).forEach(function(C){var L;(L=T[C])?(I[L]=F.cloneDeep(I[C]),delete I[C],M(I[L])):M(I[C])})};M(k)}return k},this.adapterIn=function(o,h){if(o)return sD(o,h)},f.adapterIn=this.adapterIn,f.adapterOut=this.adapterOut,this.processAttributes={"-isExecutable":"true","-id":"Process"},this.definitionAttributes={"-id":"Definitions","-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.10"}}return a.prototype.setCustomShape=function(c,i){a.shapeConfigMap.set(c,i)},a.pluginName="bpmn-adapter",a.shapeConfigMap=new Map,a}();vo.shapeConfigMap.set(oo.START,{width:b_.width,height:b_.height}),vo.shapeConfigMap.set(oo.END,{width:__.width,height:__.height}),vo.shapeConfigMap.set(oo.INTERMEDIATE_CATCH,{width:Qp.width,height:Qp.height}),vo.shapeConfigMap.set(oo.INTERMEDIATE_THROW,{width:Qp.width,height:Qp.height}),vo.shapeConfigMap.set(oo.BOUNDARY,{width:O_.width,height:O_.height}),vo.shapeConfigMap.set(oo.PARALLEL_GATEWAY,{width:w_.width,height:w_.height}),vo.shapeConfigMap.set(oo.INCLUSIVE_GATEWAY,{width:x_.width,height:x_.height}),vo.shapeConfigMap.set(oo.EXCLUSIVE_GATEWAY,{width:E_.width,height:E_.height}),vo.shapeConfigMap.set(oo.SYSTEM,{width:j_.width,height:j_.height}),vo.shapeConfigMap.set(oo.USER,{width:S_.width,height:S_.height}),vo.shapeConfigMap.set(oo.SUBPROCESS,{width:A_.width,height:A_.height}),function(a){nD(c,a);function c(i){var f=a.call(this,i)||this;f.adapterXmlIn=function(y){var b=tD(y);return f.adapterIn(b,f.props)},f.adapterXmlOut=function(y){var b=f.adapterOut(y,f.props);return rD(b)};var o=i.lf,h=i.props;return o.adapterIn=f.adapterXmlIn,o.adapterOut=f.adapterXmlOut,f.props=h,f}return c.pluginName="BPMNAdapter",c}(vo);var pD=function(){function a(c){var i=this,f=c.lf;this.lf=f,this.customCssRules="",this.useGlobalRules=!0,f.getSnapshot=function(o,h){i.getSnapshot(o,h)},f.getSnapshotBlob=function(o){return i.getSnapshotBlob(o)},f.getSnapshotBase64=function(o){return i.getSnapshotBase64(o)}}return a.prototype.getSvgRootElement=function(c){var i=c.container.querySelector(".lf-canvas-overlay");return i},a.prototype.triggerDownload=function(c){var i=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0}),f=document.createElement("a");f.setAttribute("download",this.fileName),f.setAttribute("href",c),f.setAttribute("target","_blank"),f.dispatchEvent(i)},a.prototype.removeAnchor=function(c){for(var i=c.childNodes,f=c.childNodes&&c.childNodes.length,o=0;o<f;o++){var h=i[o],y=h.classList&&Array.from(h.classList)||[];y.indexOf("lf-anchor")>-1&&(c.removeChild(c.childNodes[o]),f--,o--)}},a.prototype.removeRotateControl=function(c){for(var i=c.childNodes,f=c.childNodes&&c.childNodes.length,o=0;o<f;o++){var h=i[o],y=h.classList&&Array.from(h.classList)||[];y.indexOf("lf-rotate-control")>-1&&(c.removeChild(c.childNodes[o]),f--,o--)}},a.prototype.getSnapshot=function(c,i){var f=this;this.fileName=c||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,i).then(function(h){var y=h.toDataURL("image/png").replace("image/png","image/octet-stream");f.triggerDownload(y)})},a.prototype.getSnapshotBase64=function(c){var i=this,f=this.getSvgRootElement(this.lf);return new Promise(function(o){i.getCanvasData(f,c).then(function(h){var y=h.toDataURL("image/png");o({data:y,width:h.width,height:h.height})})})},a.prototype.getSnapshotBlob=function(c){var i=this,f=this.getSvgRootElement(this.lf);return new Promise(function(o){i.getCanvasData(f,c).then(function(h){h.toBlob(function(y){o({data:y,width:h.width,height:h.height})},"image/png")})})},a.prototype.getClassRules=function(){var c="";if(this.useGlobalRules)for(var i=document.styleSheets,f=0;f<i.length;f++)for(var o=i[f],h=0;h<o.cssRules.length;h++)c+=o.cssRules[h].cssText;return this.customCssRules&&(c+=this.customCssRules),c},a.prototype.getCanvasData=function(c,i){var f=this,o=c.cloneNode(!0),h=o.lastChild,y=h.childNodes&&h.childNodes.length;if(y)for(var b=0;b<y;b++){var v=h.childNodes[b],E=v.classList&&Array.from(v.classList);if(E&&E.indexOf("lf-base")<0)h.removeChild(h.childNodes[b]),y--,b--;else{var A=h.childNodes[b];A&&A.childNodes.forEach(function(Et){var bt=Et;f.removeAnchor(bt.firstChild),f.removeRotateControl(bt.firstChild)})}}var k=window.devicePixelRatio||1;k<1&&(k=1);var T=document.createElement("canvas"),M=this.lf.graphModel.rootEl.querySelector(".lf-base"),I=M.getBoundingClientRect(),C=document.querySelector(".lf-canvas-overlay").getBoundingClientRect(),L=I.x-C.x,G=I.y-C.y,V=this.lf.graphModel,nt=V.transformModel,st=nt.SCALE_X,at=nt.SCALE_Y,tt=nt.TRANSLATE_X,et=nt.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-L+tt)*(1/st)+10)+", "+((-G+et)*(1/at)+10)+")";var K=Math.ceil(I.width/st),U=Math.ceil(I.height/at);T.style.width=K+"px",T.style.height=U+"px",T.width=K*k+80,T.height=U*k+80;var X=T.getContext("2d");X.clearRect(0,0,T.width,T.height),X.scale(k,k),i?(X.fillStyle=i,X.fillRect(0,0,K*k+80,U*k+80)):X.clearRect(0,0,K,U);var W=new Image,Z=document.createElement("style");Z.innerHTML=this.getClassRules();var ut=document.createElement("foreignObject");return ut.appendChild(Z),o.appendChild(ut),new Promise(function(Et){W.onload=function(){var Bt=navigator.userAgent.indexOf("Firefox")>-1;try{Bt?createImageBitmap(W,{resizeWidth:T.width,resizeHeight:T.height}).then(function(St){X.drawImage(St,0,0),Et(T)}):(X.drawImage(W,0,0),Et(T))}catch(St){X.drawImage(W,0,0),Et(T)}};var bt="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),Pt=bt.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");W.src=Pt})},a.pluginName="snapshot",a}(),I_=globalThis&&globalThis.__assign||function(){return I_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},I_.apply(this,arguments)};globalThis&&globalThis.__read;var L_;(function(a){a.HORIZONTAL="horizontal",a.VERTICAL="vertical"})(L_||(L_={}));var O8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var w8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var hD=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},dD=globalThis&&globalThis.__spread||function(){for(var a=[],c=0;c<arguments.length;c++)a=a.concat(hD(arguments[c]));return a},Pl="lf:defaultNodeMenu",kl="lf:defaultEdgeMenu",Tl="lf:defaultGraphMenu",z_="lf:defaultSelectionMenu",yD=function(){function a(c){var i=this,f=c.lf;this.lf=f;var o=f.options.isSilentMode;o||(this.__menuDOM=document.createElement("ul"),this.menuTypeMap=new Map,this.init(),this.lf.setMenuConfig=function(h){i.setMenuConfig(h)},this.lf.addMenuConfig=function(h){i.addMenuConfig(h)},this.lf.setMenuByType=function(h){i.setMenuByType(h)})}return a.prototype.init=function(){var c=this,i=[{text:"\u5220\u9664",callback:function(h){c.lf.deleteNode(h.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(h){c.lf.graphModel.editText(h.id)}},{text:"\u590D\u5236",callback:function(h){c.lf.cloneNode(h.id)}}];this.menuTypeMap.set(Pl,i);var f=[{text:"\u5220\u9664",callback:function(h){c.lf.deleteEdge(h.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(h){c.lf.graphModel.editText(h.id)}}];this.menuTypeMap.set(kl,f),this.menuTypeMap.set(Tl,[]);var o=[{text:"\u5220\u9664",callback:function(h){c.lf.clearSelectElements(),h.edges.forEach(function(y){return c.lf.deleteEdge(y.id)}),h.nodes.forEach(function(y){return c.lf.deleteNode(y.id)})}}];this.menuTypeMap.set(z_,o)},a.prototype.render=function(c,i){var f=this;c.options.isSilentMode||(this.__container=i,this.__currentData=null,this.__menuDOM.className="lf-menu",i.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",function(o){o.stopPropagation();for(var h=o.target;Array.from(h.classList).indexOf("lf-menu-item")===-1&&Array.from(h.classList).indexOf("lf-menu")===-1;)h=h.parentElement;Array.from(h.classList).indexOf("lf-menu-item")>-1&&(h.onclickCallback(f.__currentData),f.__menuDOM.style.display="none",f.__currentData=null)},!0),this.lf.on("node:contextmenu",function(o){var h=o.data,y=o.position,b=o.e,v=y.domOverlayPosition,E=v.x,A=v.y,k=h.id,T=f.lf.graphModel.getNodeModelById(k),M=[],I=f.menuTypeMap.get(T.type);T&&T.menu&&Array.isArray(T.menu)?M=T.menu:I?M=I:M=f.menuTypeMap.get(Pl),f.__currentData=h,f.showMenu(E,A,M,{width:T.width,height:T.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("edge:contextmenu",function(o){var h=o.data,y=o.position,b=o.e,v=y.domOverlayPosition,E=v.x,A=v.y,k=h.id,T=f.lf.graphModel.getEdgeModelById(k),M=[],I=f.menuTypeMap.get(T.type);T&&T.menu&&Array.isArray(T.menu)?M=T.menu:I?M=I:M=f.menuTypeMap.get(kl),f.__currentData=h,f.showMenu(E,A,M,{width:T.width,height:T.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("blank:contextmenu",function(o){var h=o.position,y=f.menuTypeMap.get(Tl),b=h.domOverlayPosition,v=b.x,E=b.y;f.showMenu(v,E,y)}),this.lf.on("selection:contextmenu",function(o){var h=o.data,y=o.position,b=f.menuTypeMap.get(z_),v=y.domOverlayPosition,E=v.x,A=v.y;f.__currentData=h,f.showMenu(E,A,b)}),this.lf.on("node:mousedown",function(){f.__menuDOM.style.display="none"}),this.lf.on("edge:click",function(){f.__menuDOM.style.display="none"}),this.lf.on("blank:click",function(){f.__menuDOM.style.display="none"}))},a.prototype.destroy=function(){var c;(c=this===null||this===void 0?void 0:this.__container)===null||c===void 0||c.removeChild(this.__menuDOM),this.__menuDOM=null},a.prototype.showMenu=function(c,i,f,o){if(!(!f||!f.length)){var h=this.__menuDOM;if(h.innerHTML="",h.append.apply(h,dD(this.__getMenuDom(f))),!!h.children.length){if(h.style.display="block",!o){h.style.top=i+"px",h.style.left=c+"px";return}var y=o.width,b=o.height,v=o.clientX,E=o.clientY,A=this.lf.graphModel,k=h.offsetWidth,T=!0,M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,I=M-v,C=A.rootEl.getBoundingClientRect(),L=C.left+C.width;L<M&&(I=L-v),I<k&&(T=!1),T?h.style.left=c+"px":h.style.left=c-y+"px";var G=h.offsetHeight,V=!0,nt=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,st=nt-E,at=C.top+C.height;at<nt&&(st=at-E),st<G&&(V=!1),V?h.style.top=i+"px":h.style.top=i-b+"px"}}},a.prototype.setMenuByType=function(c){!c.type||!c.menu||this.menuTypeMap.set(c.type,c.menu)},a.prototype.__getMenuDom=function(c){var i=[];return c&&c.length>0&&c.forEach(function(f){var o=document.createElement("li");if(f.className?o.className="lf-menu-item "+f.className:o.className="lf-menu-item",f.icon===!0){var h=document.createElement("span");h.className="lf-menu-item-icon",o.appendChild(h)}var y=document.createElement("span");y.className="lf-menu-item-text",f.text&&(y.innerText=f.text),o.appendChild(y),o.onclickCallback=f.callback,i.push(o)}),i},a.prototype.setMenuConfig=function(c){c&&(c.nodeMenu!==void 0&&this.menuTypeMap.set(Pl,c.nodeMenu?c.nodeMenu:[]),c.edgeMenu!==void 0&&this.menuTypeMap.set(kl,c.edgeMenu?c.edgeMenu:[]),c.graphMenu!==void 0&&this.menuTypeMap.set(Tl,c.graphMenu?c.graphMenu:[]))},a.prototype.addMenuConfig=function(c){if(c){if(Array.isArray(c.nodeMenu)){var i=this.menuTypeMap.get(Pl);this.menuTypeMap.set(Pl,i.concat(c.nodeMenu))}if(Array.isArray(c.edgeMenu)){var i=this.menuTypeMap.get(kl);this.menuTypeMap.set(kl,i.concat(c.edgeMenu))}if(Array.isArray(c.graphMenu)){var i=this.menuTypeMap.get(Tl);this.menuTypeMap.set(Tl,i.concat(c.graphMenu))}}},a.prototype.changeMenuItem=function(c,i){if(c==="add")this.addMenuConfig(i);else if(c==="reset")this.setMenuConfig(i);else throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'")},a.pluginName="menu",a}();globalThis&&globalThis.__read;var gD=function(){function a(c){var i=this,f=c.lf;this.lf=f,this.lf.setPatternItems=function(o){i.setPatternItems(o)}}return a.prototype.render=function(c,i){var f=this;if(this.destroy(),!this.shapeList||this.shapeList.length===0){this.domContainer=i;return}this.panelEl=document.createElement("div"),this.panelEl.className="lf-dndpanel",this.shapeList.forEach(function(o){f.panelEl.appendChild(f.createDndItem(o))}),i.appendChild(this.panelEl),this.domContainer=i},a.prototype.destroy=function(){this.domContainer&&this.panelEl&&this.domContainer.contains(this.panelEl)&&this.domContainer.removeChild(this.panelEl)},a.prototype.setPatternItems=function(c){this.shapeList=c,this.domContainer&&this.render(this.lf,this.domContainer)},a.prototype.createDndItem=function(c){var i=this,f=document.createElement("div");f.className=c.className?"lf-dnd-item "+c.className:"lf-dnd-item";var o=document.createElement("div");if(o.className="lf-dnd-shape",c.icon&&(o.style.backgroundImage="url("+c.icon+")"),f.appendChild(o),c.label){var h=document.createElement("div");h.innerText=c.label,h.className="lf-dnd-text",f.appendChild(h)}return f.onmousedown=function(){c.type&&i.lf.dnd.startDrag({type:c.type,properties:c.properties,text:c.text}),c.callback&&c.callback(i.lf,i.domContainer)},f.ondblclick=function(y){i.lf.graphModel.eventCenter.emit("dnd:panel-dbclick",{e:y,data:c})},f.onclick=function(y){i.lf.graphModel.eventCenter.emit("dnd:panel-click",{e:y,data:c})},f.oncontextmenu=function(y){i.lf.graphModel.eventCenter.emit("dnd:panel-contextmenu",{e:y,data:c})},f},a.pluginName="dndPanel",a}(),vD=function(){function a(c){var i=this,f=c.lf;this.__disabled=!1,this.isDefaultStopMoveGraph=!1,this.isWholeNode=!0,this.isWholeEdge=!0,this.__draw=function(h){var y=i.lf.getPointByClient(h.clientX,h.clientY).domOverlayPosition,b=y.x,v=y.y;i.endPoint={x:b,y:v};var E=i.startPoint,A=E.x,k=E.y,T=i.wrapper.style,M=A,I=k,C=b-A,L=v-k;b<A&&(M=b,C=A-b),v<k&&(I=v,L=k-v),T.left=M+"px",T.top=I+"px",T.width=C+"px",T.height=L+"px"},this.__drawOff=function(){document.removeEventListener("mousemove",i.__draw),document.removeEventListener("mouseup",i.__drawOff),i.wrapper.oncontextmenu=null,i.__domContainer.removeChild(i.wrapper);var h=i.startPoint,y=h.x,b=h.y,v=i.endPoint,E=v.x,A=v.y;if(!(Math.abs(E-y)<10&&Math.abs(A-b)<10)){var k=[Math.min(y,E),Math.min(b,A)],T=[Math.max(y,E),Math.max(b,A)],M=i.lf.graphModel.getAreaElement(k,T,i.isWholeEdge,i.isWholeNode,!0),I=i.lf.graphModel.group;M.forEach(function(C){(!I||!I.getNodeGroup(C.id))&&i.lf.selectElementById(C.id,!0)}),i.lf.emit("selection:selected",M)}},this.lf=f;var o=f.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=o,f.openSelectionSelect=function(){i.openSelectionSelect()},f.closeSelectionSelect=function(){i.closeSelectionSelect()}}return a.prototype.render=function(c,i){var f=this;this.__domContainer=i,c.on("blank:mousedown",function(o){var h=o.e,y=c.getEditConfig();if(!(!y.stopMoveGraph||f.__disabled)){var b=h.button===2;if(!b){var v=c.getPointByClient(h.clientX,h.clientY).domOverlayPosition,E=v.x,A=v.y;f.startPoint={x:E,y:A},f.endPoint={x:E,y:A};var k=document.createElement("div");k.className="lf-selection-select",k.oncontextmenu=function(T){T.preventDefault()},k.style.top=f.startPoint.y+"px",k.style.left=f.startPoint.x+"px",i.appendChild(k),f.wrapper=k,document.addEventListener("mousemove",f.__draw),document.addEventListener("mouseup",f.__drawOff)}}})},a.prototype.setSelectionSense=function(c,i){c===void 0&&(c=!0),i===void 0&&(i=!0),this.isWholeEdge=c,this.isWholeNode=i},a.prototype.openSelectionSelect=function(){var c=this.lf.getEditConfig().stopMoveGraph;c||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()},a.prototype.closeSelectionSelect=function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()},a.prototype.open=function(){this.__disabled=!1},a.prototype.close=function(){this.__disabled=!0},a.pluginName="selectionSelect",a}();globalThis&&globalThis.__values;var B_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Zc=globalThis&&globalThis.__assign||function(){return Zc=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Zc.apply(this,arguments)},Ml=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},mD={tr:"tl",lb:"tl",tl:"tr",rb:"tr",br:"bl",lt:"bl",bl:"br",rt:"br"};function bD(a){for(var c=a,i=1;i<c.length-1;){var f=Ml(c[i-1],2),o=f[0],h=f[1],y=Ml(c[i],2),b=y[0],v=y[1],E=Ml(c[i+1],2),A=E[0],k=E[1];o===b&&b===A||h===v&&v===k?c.splice(i,1):i++}return c}function _D(a,c,i,f){var o=[a[0],a[1]],h=[a[0],a[1]];switch(i){case"tl":return c==="tr"?(o[1]+=f,h[0]+=f):c==="lb"&&(o[0]+=f,h[1]+=f),[o,h];case"tr":return c==="tl"?(o[1]+=f,h[0]-=f):c==="rb"&&(o[0]-=f,h[1]+=f),[o,h];case"bl":return c==="br"?(o[1]-=f,h[0]+=f):c==="lt"&&(o[0]+=f,h[1]-=f),[o,h];case"br":return c==="bl"?(o[1]-=f,h[0]-=f):c==="rt"&&(o[0]-=f,h[1]-=f),[o,h];default:return[]}}function OD(a,c,i,f){var o,h="",y="";a[0]===c[0]?h=a[1]>c[1]?"t":"b":a[1]===c[1]&&(h=a[0]>c[0]?"l":"r"),c[0]===i[0]?y=c[1]>i[1]?"t":"b":c[1]===i[1]&&(y=c[0]>i[0]?"l":"r");var b=Math.min(Math.hypot(c[0]-a[0],c[1]-a[1])/2,Math.hypot(i[0]-c[0],i[1]-c[1])/2,f)||1/5*f,v=""+h+y,E=mD[v]||"-",A="L "+a[0]+" "+a[1];if(E==="-")A+="L "+c[0]+" "+c[1]+" L "+i[0]+" "+i[1];else{var k=Ml(_D(c,v,E,b),2),T=k[0],M=k[1];T&&M&&(A+="L "+T[0]+" "+T[1]+" Q "+c[0]+" "+c[1]+" "+M[0]+" "+M[1],o=Ml(M,2),c[0]=o[0],c[1]=o[1])}return A}function wD(a,c){var i=0,f="";if(a.length===2)f+="M"+a[i][0]+" "+a[i++][1]+" L "+a[i][0]+" "+a[i][1];else{for(f+="M"+a[i][0]+" "+a[i++][1];i+1<a.length;){var o=a[i-1],h=a[i],y=a[i+++1];f+=OD(o,h,y,c)}f+="L "+a[i][0]+" "+a[i][1]}return f}(function(a){B_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getEdge=function(){var i=this.props.model,f=i.points,o=i.isAnimation,h=i.arrowConfig,y=i.radius,b=y===void 0?5:y,v=i.getEdgeStyle(),E=i.getEdgeAnimationStyle(),A=bD(f.split(" ").map(function(M){return M.split(",").map(function(I){return+I})})),k=wD(A,b),T=Zc(Zc(Zc({style:o?E:{}},v),h),{fill:"none"});return ne.h("path",Zc({d:k},T))},c})(ne.PolylineEdge),function(a){B_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c}(ne.PolylineEdgeModel);var x8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var F_=globalThis&&globalThis.__assign||function(){return F_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},F_.apply(this,arguments)},U_=globalThis&&globalThis.__assign||function(){return U_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},U_.apply(this,arguments)},E8=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;const xD={SEQUENCE_FLOW:1,START_EVENT:2,END_EVENT:3,USER_TASK:4,SERVICE_TASK:5,EXCLUSIVE_GATEWAY:6};function ED(a){const{incoming:c,outgoing:i,properties:f,key:o}=a,{text:h,startPoint:y,endPoint:b,pointsList:v,logicFlowType:E}=f,A={id:o,type:E,sourceNodeId:c[0],targetNodeId:i[0],text:h,startPoint:y,endPoint:b,pointsList:v,properties:{}},k=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(a.properties).forEach(T=>{k.indexOf(T)===-1&&(A.properties[T]=a.properties[T])}),A}function jD(a){const{properties:c,key:i}=a,{x:f,y:o,text:h,logicFlowType:y}=c,b={id:i,type:y,x:f,y:o,text:h,properties:{}},v=["x","y","text","logicFlowType"];return Object.keys(a.properties).forEach(E=>{v.indexOf(E)===-1&&(b.properties[E]=a.properties[E])}),b}function SD(a){const c={nodes:[],edges:[]},i=a.flowElementList;return i&&i.length>0&&i.forEach(f=>{if(f.type===xD.SEQUENCE_FLOW){const o=ED(f);c.edges.push(o)}else{const o=jD(f);c.nodes.push(o)}}),c}function AD(a){return[{text:"\u9009\u533A",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAAOVJREFUOBGtVMENwzAIjKP++2026ETdpv10iy7WFbqFyyW6GBywLCv5gI+Dw2Bluj1znuSjhb99Gkn6QILDY2imo60p8nsnc9bEo3+QJ+AKHfMdZHnl78wyTnyHZD53Zzx73MRSgYvnqgCUHj6gwdck7Zsp1VOrz0Uz8NbKunzAW+Gu4fYW28bUYutYlzSa7B84Fh7d1kjLwhcSdYAYrdkMQVpsBr5XgDGuXwQfQr0y9zwLda+DUYXLaGKdd2ZTtvbolaO87pdo24hP7ov16N0zArH1ur3iwJpXxm+v7oAJNR4JEP8DoAuSFEkYH7cAAAAASUVORK5CYII=",callback:()=>{a.updateEditConfig({stopMoveGraph:!0})}},{type:"circle",text:"\u5F00\u59CB",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAAnBJREFUOBGdVL1rU1EcPfdGBddmaZLiEhdx1MHZQXApraCzQ7GKLgoRBxMfcRELuihWKcXFRcEWF8HBf0DdDCKYRZpnl7p0svLe9Zzbd29eQhTbC8nv+9zf130AT63jvooOGS8Vf9Nt5zxba7sXQwODfkWpkbjTQfCGUd9gIp3uuPP8bZ946g56dYQvnBg+b1HB8VIQmMFrazKcKSvFW2dQTxJnJdQ77urmXWOMBCmXM2Rke4S7UAW+/8ywwFoewmBps2tu7mbTdp8VMOkIRAkKfrVawalJTtIliclFbaOBqa0M2xImHeVIfd/nKAfVq/LGnPss5Kh00VEdSzfwnBXPUpmykNss4lUI9C1ga+8PNrBD5YeqRY2Zz8PhjooIbfJXjowvQJBqkmEkVnktWhwu2SM7SMx7Cj0N9IC0oQXRo8xwAGzQms+xrB/nNSUWVveI48ayrFGyC2+E2C+aWrZHXvOuz+CiV6iycWe1Rd1Q6+QUG07nb5SbPrL4426d+9E1axKjY3AoRrlEeSQo2Eu0T6BWAAr6COhTcWjRaYfKG5csnvytvUr/WY4rrPMB53Uo7jZRjXaG6/CFfNMaXEu75nG47X+oepU7PKJvvzGDY1YLSKHJrK7vFUwXKkaxwhCW3u+sDFMVrIju54RYYbFKpALZAo7sB6wcKyyrd+aBMryMT2gPyD6GsQoRFkGHr14TthZni9ck0z+Pnmee460mHXbRAypKNy3nuMdrWgVKj8YVV8E7PSzp1BZ9SJnJAsXdryw/h5ctboUVi4AFiCd+lQaYMw5z3LGTBKjLQOeUF35k89f58Vv/tGh+l+PE/wG0rgfIUbZK5AAAAABJRU5ErkJggg=="},{type:"rect",text:"\u7528\u6237\u4EFB\u52A1",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAEFVwZaAAAABGdBTUEAALGPC/xhBQAAAqlJREFUOBF9VM9rE0EUfrMJNUKLihGbpLGtaCOIR8VjQMGDePCgCCIiCNqzCAp2MyYUCXhUtF5E0D+g1t48qAd7CCLqQUQKEWkStcEfVGlLdp/fm3aW2QQdyLzf33zz5m2IsAZ9XhDpyaaIZkTS4ASzK41TFao88GuJ3hsr2pAbipHxuSYyKRugagICGANkfFnNh3HeE2N0b3nN2cgnpcictw5veJIzxmDamSlxxQZicq/mflxhbaH8BLRbuRwNtZp0JAhoplVRUdzmCe/vO27wFuuA3S5qXruGdboy5/PRGFsbFGKo/haRtQHIrM83bVeTrOgNhZReWaYGnE4aUQgTJNvijJFF4jQ8BxJE5xfKatZWmZcTQ+BVgh7s8SgPlCkcec4mGTmieTP4xd7PcpIEg1TX6gdeLW8rTVMVLVvb7ctXoH0Cydl2QOPJBG21STE5OsnbweVYzAnD3A7PVILuY0yiiyDwSm2g441r6rMSgp6iK42yqroI2QoXeJVeA+YeZSa47gZdXaZWQKTrG93rukk/l2Al6Kzh5AZEl7dDQy+JjgFahQjRopSxPbrbvK7GRe9ePWBo1wcU7sYrFZtavXALwGw/7Dnc50urrHJuTPSoO2IMV3gUQGNg87IbSOIY9BpiT9HV7FCZ94nPXb3MSnwHn/FFFE1vG6DTby+r31KAkUktB3Qf6ikUPWxW1BkXSPQeMHHiW0+HAd2GelJsZz1OJegCxqzl+CLVHa/IibuHeJ1HAKzhuDR+ymNaRFM+4jU6UWKXorRmbyqkq/D76FffevwdCp+jN3UAN/C9JRVTDuOxC/oh+EdMnqIOrlYteKSfadVRGLJFJPSB/ti/6K8f0CNymg/iH2gO/f0DwE0yjAFO6l8JaR5j0VPwPwfaYHqOqrCI319WzwhwzNW/aQAAAABJRU5ErkJggg==",cls:"important-node"},{type:"rect",text:"\u7CFB\u7EDF\u4EFB\u52A1",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAEFVwZaAAAABGdBTUEAALGPC/xhBQAAAqlJREFUOBF9VM9rE0EUfrMJNUKLihGbpLGtaCOIR8VjQMGDePCgCCIiCNqzCAp2MyYUCXhUtF5E0D+g1t48qAd7CCLqQUQKEWkStcEfVGlLdp/fm3aW2QQdyLzf33zz5m2IsAZ9XhDpyaaIZkTS4ASzK41TFao88GuJ3hsr2pAbipHxuSYyKRugagICGANkfFnNh3HeE2N0b3nN2cgnpcictw5veJIzxmDamSlxxQZicq/mflxhbaH8BLRbuRwNtZp0JAhoplVRUdzmCe/vO27wFuuA3S5qXruGdboy5/PRGFsbFGKo/haRtQHIrM83bVeTrOgNhZReWaYGnE4aUQgTJNvijJFF4jQ8BxJE5xfKatZWmZcTQ+BVgh7s8SgPlCkcec4mGTmieTP4xd7PcpIEg1TX6gdeLW8rTVMVLVvb7ctXoH0Cydl2QOPJBG21STE5OsnbweVYzAnD3A7PVILuY0yiiyDwSm2g441r6rMSgp6iK42yqroI2QoXeJVeA+YeZSa47gZdXaZWQKTrG93rukk/l2Al6Kzh5AZEl7dDQy+JjgFahQjRopSxPbrbvK7GRe9ePWBo1wcU7sYrFZtavXALwGw/7Dnc50urrHJuTPSoO2IMV3gUQGNg87IbSOIY9BpiT9HV7FCZ94nPXb3MSnwHn/FFFE1vG6DTby+r31KAkUktB3Qf6ikUPWxW1BkXSPQeMHHiW0+HAd2GelJsZz1OJegCxqzl+CLVHa/IibuHeJ1HAKzhuDR+ymNaRFM+4jU6UWKXorRmbyqkq/D76FffevwdCp+jN3UAN/C9JRVTDuOxC/oh+EdMnqIOrlYteKSfadVRGLJFJPSB/ti/6K8f0CNymg/iH2gO/f0DwE0yjAFO6l8JaR5j0VPwPwfaYHqOqrCI319WzwhwzNW/aQAAAABJRU5ErkJggg==",cls:"import_icon"},{type:"diamond",text:"\u6761\u4EF6\u5224\u65AD",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAAHeEJUAAAAABGdBTUEAALGPC/xhBQAAAvVJREFUOBGNVEFrE0EU/mY3bQoiFlOkaUJrQUQoWMGePLX24EH0IIoHKQiCV0G8iE1covgLiqA/QTzVm1JPogc9tIJYFaQtlhQxqYjSpunu+L7JvmUTU3AgmTfvffPNN++9WSA1DO182f6xwILzD5btfAoQmwL5KJEwiQyVbSVZ0IgRyV6PTpIJ81E5ZvqfHQR0HUOBHW4L5Et2kQ6Zf7iAOhTFAA8s0pEP7AXO1uAA52SbqGk6h/6J45LaLhO64ByfcUzM39V7ZiAdS2yCePPEIQYvTUHqM/n7dgQNfBKWPjpF4ISk8q3J4nB11qw6X8l+FsF3EhlkEMfrjIer3wJTLwS2aCNcj4DbGxXTw00JmAuO+Ni6bBxVUCvS5d9aa04+so4pHW5jLTywuXAL7jJ+D06sl82Sgl2JuVBQn498zkc2bGKxULHjCnSMadBKYDYYHAtsby1EQ5lNGrQd4Y3v4Zo0XdGEmDno46yCM9Tk+RiJmUYHS/aXHPNTcjxcbTFna000PFJHIVZ5lFRqRpJWk9/+QtlOUYJj9HG5pVFEU7zqIYDVsw2s+AJaD8wTd2umgSCCyUxgGsS1Y6TBwXQQTFuZaHcd8gAGioE90hlsY+wMcs30RduYtxanjMGal8H5dMW67dmT1JFtYUEe8LiQLRsPZ6IIc7A4J5tqco3T0pnv/4u0kyzrYUq7gASuEyI8VXKvB9Odytv6jS/PNaZBln0nioJG/AVQRZvApOdhjj3Jt8QC8Im09SafwdBdvIpztpxWxpeKCC+EsFdS8DCyuCn2munFpL7ctHKp+Xc5cMybeIyMAN33SPL3ZR9QV1XVwLyzHm6Iv0/yeUuUb7PPlZC4D4HZkeu6dpF4v9j9MreGtMbxMMRLIcjJic9yHi7WQ3yVKzZVWUr5UrViJvn1FfUlwe/KYVfYyWRLSGNu16hR01U9IacajXPei0wx/5BqgInvJN+MMNtNme7ReU9SBbgntovn0kKHpFg7UogZvaZiOue/q1SBo9ktHzQAAAAASUVORK5CYII="},{type:"circle",text:"\u7ED3\u675F",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAA1BJREFUOBFtVE1IVUEYPXOf+tq40Y3vPcmFIdSjIorWoRG0ERWUgnb5FwVhYQSl72oUoZAboxKNFtWiwKRN0M+jpfSzqJAQclHo001tKkjl3emc8V69igP3znzfnO/M9zcDcKT67azmjYWTwl9Vn7Vumeqzj1DVb6cleQY4oAVnIOPb+mKAGxQmKI5CWNJ2aLPatxWa3aB9K7/fB+/Z0jUF6TmMlFLQqrkECWQzOZxYGjTlOl8eeKaIY5yHnFn486xBustDjWT6dG7pmjHOJd+33t0iitTPkK6tEvjxq4h2MozQ6WFSX/LkDUGfFwfhEZj1Auz/U4pyAi5Sznd7uKzznXeVHlI/Aywmk6j7fsUsEuCGADrWARXXwjxWQsUbIupDHJI7kF5dRktg0eN81IbiZXiTESic50iwS+t1oJgL83jAiBupLDCQqwziaWSoAFSeIR3P5Xv5az00wyIn35QRYTwdSYbz8pH8fxUUAtxnFvYmEmgI0wYXUXcCCSpeEVpXlsRhBnCEATxWylL9+EKCAYhe1NGstUa6356kS9NVvt3DU2fd+Wtbm/+lSbylJqsqkSm9CRhvoJVlvKPvF1RKY/FcPn5j4UfIMLn8D4UYb54BNsilTDXKnF4CfTobA0FpoW/LSp306wkXM+XaOJhZaFkcNM82ASNAWMrhrUbRfmyeI1FvRBTpN06WKxa9BK0o2E4Pd3zfBBEwPsv9sQBnmLVbLEIZ/Xe9LYwJu/Er17W6HYVBc7vmuk0xUQ+pqxdom5Fnp55SiytXLPYoMXNM4u4SNSCFWnrVIzKG3EGyMXo6n/BQOe+bX3FClY4PwydVhthOZ9NnS+ntiLh0fxtlUJHAuGaFoVmttpVMeum0p3WEXbcll94l1wM/gZ0Ccczop77VvN2I7TlsZCsuXf1WHvWEhjO8DPtyOVg2/mvK9QqboEth+7pD6NUQC1HN/TwvydGBARi9MZSzLE4b8Ru3XhX2PBxf8E1er2A6516o0w4sIA+lwURhAON82Kwe2iDAC1Watq4XHaGQ7skLcFOtI5lDxuM2gZe6WFIotPAhbaeYlU4to5cuarF1QrcZ/lwrLaCJl66JBocYZnrNlvm2+MBCTmUymPrYZVbjdlr/BxlMjmNmNI3SAAAAAElFTkSuQmCC"}]}const PD=Vw({name:"FlowChart",components:{BasicModal:e8,FlowChartToolbar:oM,JsonPreview:o8},props:{flowOptions:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})},toolbar:{type:Boolean,default:!0},patternItems:{type:Array}},setup(a){const c=py(null),i=py({}),f=py(null),{prefixCls:o}=e4("flow-chart"),h=r4(),[y,{openModal:b}]=r8();QT({logicFlow:f});const v=n4(()=>{const{flowOptions:T}=a;return ob({grid:!0,background:{color:h.getDarkMode==="light"?"#f7f9ff":"#151515"},keyboard:{enabled:!0}},T)});qw(()=>a.data,()=>{A()}),qw(()=>go(v),T=>{var M;(M=go(f))==null||M.updateEditConfig(T)});function E(){return bp(this,null,function*(){yield sb();const T=go(c);if(!T)return;Xc.use(gD),Xc.use(pD),Xc.use(SM),Xc.use(yD),Xc.use(vD),f.value=new Xc(Ow(ob({},go(v)),{container:T}));const M=go(f);M==null||M.setDefaultEdgeType("line"),A(),M==null||M.setPatternItems(a.patternItems||AD(M))})}function A(){return bp(this,null,function*(){yield sb();const T=go(f);if(!T)return;const M=SD(a.data);T.render(M)})}function k(){const T=go(f);T&&(i.value=go(T).getGraphData(),b())}return o4(E),{register:y,prefixCls:o,lfElRef:c,handlePreview:k,graphData:i}}}),kD={ref:"lfElRef",class:"h-full"};function TD(a,c,i,f,o,h){const y=ku("FlowChartToolbar"),b=ku("JsonPreview"),v=ku("BasicModal");return Tu(),Pp("div",{class:dy(["h-full",a.prefixCls])},[a.toolbar?(Tu(),pb(y,{key:0,prefixCls:a.prefixCls,onViewData:a.handlePreview},null,8,["prefixCls","onViewData"])):fb("",!0),i4("div",kD,null,512),kp(v,{onRegister:a.register,title:"\u6D41\u7A0B\u6570\u636E",width:"50%"},{default:hy(()=>[kp(b,{data:a.graphData},null,8,["data"])]),_:1},8,["onRegister"])],2)}const MD=lb(PD,[["render",TD]]),DD=a4(MD),ND=[{incoming:[],outgoing:["Flow_33inf2k"],dockers:[],type:2,properties:{a:"efrwe",b:"wewe",name:"\u5F00\u59CB",x:280,y:200,text:{x:280,y:200,value:"\u5F00\u59CB"},logicFlowType:"bpmn:startEvent"},key:"Event_1d42u4p"},{incoming:["Flow_379e0o9"],outgoing:[],dockers:[],type:3,properties:{a:"efrwe",b:"wewe",name:"\u7ED3\u675F",x:920,y:200,text:{x:920,y:200,value:"\u7ED3\u675F"},logicFlowType:"bpmn:endEvent"},key:"Event_08p8i6q"},{incoming:["Flow_0pfouf0"],outgoing:["Flow_3918lhh"],dockers:[],type:6,properties:{a:"efrwe",b:"wewe",name:"\u7F51\u5173",x:580,y:200,text:{x:580,y:200,value:"\u7F51\u5173"},logicFlowType:"bpmn:exclusiveGateway"},key:"Gateway_1fngqgj"},{incoming:["Flow_33inf2k"],outgoing:["Flow_0pfouf0"],dockers:[],type:4,properties:{a:"efrwe",b:"wewe",name:"\u7528\u6237",x:420,y:200,text:{x:420,y:200,value:"\u7528\u6237"},logicFlowType:"bpmn:userTask"},key:"Activity_2mgtaia"},{incoming:["Flow_3918lhh"],outgoing:["Flow_379e0o9"],dockers:[],type:5,properties:{a:"efrwe",b:"wewe",name:"\u670D\u52A1",x:760,y:200,text:{x:760,y:200,value:"\u670D\u52A1"},logicFlowType:"bpmn:serviceTask"},key:"Activity_1sp8qc8"},{incoming:["Event_1d42u4p"],outgoing:["Activity_2mgtaia"],type:1,dockers:[],properties:{name:"\u8FB9",text:{x:331,y:200,value:"\u8FB9"},startPoint:{x:298,y:200},endPoint:{x:370,y:200},pointsList:[{x:298,y:200},{x:370,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_33inf2k"},{incoming:["Activity_2mgtaia"],outgoing:["Gateway_1fngqgj"],type:1,dockers:[],properties:{name:"\u8FB92",text:{x:507,y:200,value:"\u8FB92"},startPoint:{x:470,y:200},endPoint:{x:555,y:200},pointsList:[{x:470,y:200},{x:555,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_0pfouf0"},{incoming:["Gateway_1fngqgj"],outgoing:["Activity_1sp8qc8"],type:1,dockers:[],properties:{name:"\u8FB93",text:{x:664,y:200,value:"\u8FB93"},startPoint:{x:605,y:200},endPoint:{x:710,y:200},pointsList:[{x:605,y:200},{x:710,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_3918lhh"},{incoming:["Activity_1sp8qc8"],outgoing:["Event_08p8i6q"],type:1,dockers:[],properties:{name:"\u8FB94",text:{x:871,y:200,value:"\u8FB94"},startPoint:{x:810,y:200},endPoint:{x:902,y:200},pointsList:[{x:810,y:200},{x:902,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_379e0o9"}],CD={flowElementList:ND},RD={components:{FlowChart:DD,PageWrapper:a8},setup(){return{demoData:CD}}};function ID(a,c,i,f,o,h){const y=ku("FlowChart"),b=ku("PageWrapper");return Tu(),pb(b,{title:"\u6D41\u7A0B\u56FE",content:"\u7B80\u5355\u6D41\u7A0B\u56FE\u793A\u4F8B,\u5177\u4F53\u529F\u80FD\u9700\u8981\u81EA\u5DF1\u5B8C\u5584",contentFullHeight:"",fixedHeight:""},{default:hy(()=>[kp(y,{data:f.demoData},null,8,["data"])]),_:1})}ox=lb(RD,[["render",ID]])}));export{p8 as __tla,ox as default};
|