index.d93e0b35.js 679 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import{ao as lo,ap as Or,aq as dm,ar as fr,as as Ja,at as fo,au as ai,av as F0,aw as ur,ax as pr,ay as It,az as aP,aA as xr,aB as Cd,aC as uP,aD as Qa,aE as sr,aF as eu,aG as $0,ai as ui,aH as tu,ak as qn,aI as W0,aJ as po,aK as G0,aL as Lo,aM as Bo,aN as _c,aO as wt,aP as nu,aQ as qi,aR as Lt,ah as co,aS as Ln,aT as si,aU as ru,aV as dr,aW as Kt,aj as yt,aX as ci,aY as sP,aZ as Zi,a_ as H0,a$ as Wr,b0 as U0,b1 as X0,b2 as vd,b3 as fn,b4 as cP,b5 as lP,b6 as ou,b7 as Y0,b8 as li,b9 as ho,al as V0,ba as Rd,bb as fP,bc as Ji,bd as pP,be as iu,bf as K0,bg as Oc,bh as wc,bi as Ki,bj as Id,bk as Ld,bl as q0,bm as Z0,bn as dP,bo as J0,bp as Q0,bq as hP,br as e_,bs as yP,bt as vP,bu as gP,bv as bP,bw as oc,bx as mP,by as t_,bz as _P,bA as OP,bB as n_,bC as r_,bD as Bd,bE as o_,bF as wP,bG as xP,bH as EP,bI as SP,bJ as ii,bK as jP,bL as PP,bM as AP,bN as TP,bO as MP,bP as kP,bQ as DP,bR as NP,bS as CP,bT as RP,bU as IP,bV as LP,P as BP,bW as zP,bX as FP,bY as $P,bZ as WP,b_ as GP,b$ as HP,c0 as UP,c1 as XP,c2 as YP,c3 as VP,c4 as KP,c5 as qP,c6 as i_,d as xc,t as hm,m as ri,n as a_,u as nn,r as Ua,o as Fr,c as oi,a as No,b as $r,F as gd,y as u_,O as ym,h as $i,x as Wi,I as vm,v as s_,_ as Ec,a3 as c_,G as ZP,c7 as JP,c8 as QP,ad as eA,A as bd,c9 as zd,H as gm,D as tA,L as nA,M as rA}from"./index.56449854.js";import{t as bt,c as oA,a as Ro,b as iA,f as aA}from"./find.ce91075c.js";var uA=0/0;function bm(r){return typeof r=="number"?r:lo(r)?uA:+r}function Sc(r,u){return function(a,l){var o;if(a===void 0&&l===void 0)return u;if(a!==void 0&&(o=a),l!==void 0){if(o===void 0)return l;typeof a=="string"||typeof l=="string"?(a=Or(a),l=Or(l)):(a=bm(a),l=bm(l)),o=r(a,l)}return o}}var sA=Sc(function(r,u){return r+u},0),cA=sA,lA="Expected a function";function fA(r,u){if(typeof u!="function")throw new TypeError(lA);return r=bt(r),function(){if(--r<1)return u.apply(this,arguments)}}var pA=dm&&new dm,ic=pA,dA=ic?function(r,u){return ic.set(r,u),r}:fr,l_=dA;function qa(r){return function(){var u=arguments;switch(u.length){case 0:return new r;case 1:return new r(u[0]);case 2:return new r(u[0],u[1]);case 3:return new r(u[0],u[1],u[2]);case 4:return new r(u[0],u[1],u[2],u[3]);case 5:return new r(u[0],u[1],u[2],u[3],u[4]);case 6:return new r(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new r(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var a=Ja(r.prototype),l=r.apply(a,u);return fo(l)?l:a}}var hA=1;function yA(r,u,a){var l=u&hA,o=qa(r);function p(){var d=this&&this!==ai&&this instanceof p?o:r;return d.apply(l?a:this,arguments)}return p}var vA=Math.max;function f_(r,u,a,l){for(var o=-1,p=r.length,d=a.length,y=-1,g=u.length,O=vA(p-d,0),x=Array(g+O),w=!l;++y<g;)x[y]=u[y];for(;++o<d;)(w||o<p)&&(x[a[o]]=r[o]);for(;O--;)x[y++]=r[o++];return x}var gA=Math.max;function p_(r,u,a,l){for(var o=-1,p=r.length,d=-1,y=a.length,g=-1,O=u.length,x=gA(p-y,0),w=Array(x+O),j=!l;++o<x;)w[o]=r[o];for(var P=o;++g<O;)w[P+g]=u[g];for(;++d<y;)(j||o<p)&&(w[P+a[d]]=r[o++]);return w}function bA(r,u){for(var a=r.length,l=0;a--;)r[a]===u&&++l;return l}function jc(){}var mA=4294967295;function St(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=mA,this.__views__=[]}St.prototype=Ja(jc.prototype);St.prototype.constructor=St;var _A=ic?function(r){return ic.get(r)}:F0,Fd=_A,OA={},Xi=OA,wA=Object.prototype,xA=wA.hasOwnProperty;function Qs(r){for(var u=r.name+"",a=Xi[u],l=xA.call(Xi,u)?a.length:0;l--;){var o=a[l],p=o.func;if(p==null||p==r)return o.name}return u}function cr(r,u){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=void 0}cr.prototype=Ja(jc.prototype);cr.prototype.constructor=cr;function d_(r){if(r instanceof St)return r.clone();var u=new cr(r.__wrapped__,r.__chain__);return u.__actions__=ur(r.__actions__),u.__index__=r.__index__,u.__values__=r.__values__,u}var EA=Object.prototype,SA=EA.hasOwnProperty;function I(r){if(pr(r)&&!It(r)&&!(r instanceof St)){if(r instanceof cr)return r;if(SA.call(r,"__wrapped__"))return d_(r)}return new cr(r)}I.prototype=jc.prototype;I.prototype.constructor=I;function md(r){var u=Qs(r),a=I[u];if(typeof a!="function"||!(u in St.prototype))return!1;if(r===a)return!0;var l=Fd(a);return!!l&&r===l[0]}var jA=aP(l_),h_=jA,PA=/\{\n\/\* \[wrapped with (.+)\] \*/,AA=/,? & /;function TA(r){var u=r.match(PA);return u?u[1].split(AA):[]}var MA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function kA(r,u){var a=u.length;if(!a)return r;var l=a-1;return u[l]=(a>1?"& ":"")+u[l],u=u.join(a>2?", ":" "),r.replace(MA,`{
  2. /* [wrapped with `+u+`] */
  3. `)}var DA=1,NA=2,CA=8,RA=16,IA=32,LA=64,BA=128,zA=256,FA=512,$A=[["ary",BA],["bind",DA],["bindKey",NA],["curry",CA],["curryRight",RA],["flip",FA],["partial",IA],["partialRight",LA],["rearg",zA]];function WA(r,u){return xr($A,function(a){var l="_."+a[0];u&a[1]&&!Cd(r,l)&&r.push(l)}),r.sort()}function y_(r,u,a){var l=u+"";return uP(r,kA(l,WA(TA(l),a)))}var GA=1,HA=2,UA=4,XA=8,mm=32,_m=64;function v_(r,u,a,l,o,p,d,y,g,O){var x=u&XA,w=x?d:void 0,j=x?void 0:d,P=x?p:void 0,k=x?void 0:p;u|=x?mm:_m,u&=~(x?_m:mm),u&UA||(u&=~(GA|HA));var T=[r,u,o,P,w,k,j,y,g,O],D=a.apply(void 0,T);return md(r)&&h_(D,T),D.placeholder=l,y_(D,r,u)}function Qi(r){var u=r;return u.placeholder}var YA=Math.min;function VA(r,u){for(var a=r.length,l=YA(u.length,a),o=ur(r);l--;){var p=u[l];r[l]=Qa(p,a)?o[p]:void 0}return r}var Om="__lodash_placeholder__";function Io(r,u){for(var a=-1,l=r.length,o=0,p=[];++a<l;){var d=r[a];(d===u||d===Om)&&(r[a]=Om,p[o++]=a)}return p}var KA=1,qA=2,ZA=8,JA=16,QA=128,eT=512;function Pc(r,u,a,l,o,p,d,y,g,O){var x=u&QA,w=u&KA,j=u&qA,P=u&(ZA|JA),k=u&eT,T=j?void 0:qa(r);function D(){for(var B=arguments.length,z=Array(B),q=B;q--;)z[q]=arguments[q];if(P)var ne=Qi(D),V=bA(z,ne);if(l&&(z=f_(z,l,o,P)),p&&(z=p_(z,p,d,P)),B-=V,P&&B<O){var Z=Io(z,ne);return v_(r,u,Pc,D.placeholder,a,z,Z,y,g,O-B)}var ee=w?a:this,W=j?ee[r]:r;return B=z.length,y?z=VA(z,y):k&&B>1&&z.reverse(),x&&g<B&&(z.length=g),this&&this!==ai&&this instanceof D&&(W=T||qa(W)),W.apply(ee,z)}return D}function tT(r,u,a){var l=qa(r);function o(){for(var p=arguments.length,d=Array(p),y=p,g=Qi(o);y--;)d[y]=arguments[y];var O=p<3&&d[0]!==g&&d[p-1]!==g?[]:Io(d,g);if(p-=O.length,p<a)return v_(r,u,Pc,o.placeholder,void 0,d,O,void 0,void 0,a-p);var x=this&&this!==ai&&this instanceof o?l:r;return sr(x,this,d)}return o}var nT=1;function rT(r,u,a,l){var o=u&nT,p=qa(r);function d(){for(var y=-1,g=arguments.length,O=-1,x=l.length,w=Array(x+g),j=this&&this!==ai&&this instanceof d?p:r;++O<x;)w[O]=l[O];for(;g--;)w[O++]=arguments[++y];return sr(j,o?a:this,w)}return d}var wm="__lodash_placeholder__",cd=1,oT=2,iT=4,xm=8,$a=128,Em=256,aT=Math.min;function uT(r,u){var a=r[1],l=u[1],o=a|l,p=o<(cd|oT|$a),d=l==$a&&a==xm||l==$a&&a==Em&&r[7].length<=u[8]||l==($a|Em)&&u[7].length<=u[8]&&a==xm;if(!(p||d))return r;l&cd&&(r[2]=u[2],o|=a&cd?0:iT);var y=u[3];if(y){var g=r[3];r[3]=g?f_(g,y,u[4]):y,r[4]=g?Io(r[3],wm):u[4]}return y=u[5],y&&(g=r[5],r[5]=g?p_(g,y,u[6]):y,r[6]=g?Io(r[5],wm):u[6]),y=u[7],y&&(r[7]=y),l&$a&&(r[8]=r[8]==null?u[8]:aT(r[8],u[8])),r[9]==null&&(r[9]=u[9]),r[0]=u[0],r[1]=o,r}var sT="Expected a function",Sm=1,cT=2,ld=8,fd=16,pd=32,jm=64,Pm=Math.max;function yo(r,u,a,l,o,p,d,y){var g=u&cT;if(!g&&typeof r!="function")throw new TypeError(sT);var O=l?l.length:0;if(O||(u&=~(pd|jm),l=o=void 0),d=d===void 0?d:Pm(bt(d),0),y=y===void 0?y:bt(y),O-=o?o.length:0,u&jm){var x=l,w=o;l=o=void 0}var j=g?void 0:Fd(r),P=[r,u,a,l,o,x,w,p,d,y];if(j&&uT(P,j),r=P[0],u=P[1],a=P[2],l=P[3],o=P[4],y=P[9]=P[9]===void 0?g?0:r.length:Pm(P[9]-O,0),!y&&u&(ld|fd)&&(u&=~(ld|fd)),!u||u==Sm)var k=yA(r,u,a);else u==ld||u==fd?k=tT(r,u,y):(u==pd||u==(Sm|pd))&&!o.length?k=rT(r,u,a,l):k=Pc.apply(void 0,P);var T=j?l_:h_;return y_(T(k,P),r,u)}var lT=128;function g_(r,u,a){return u=a?void 0:u,u=r&&u==null?r.length:u,yo(r,lT,void 0,void 0,void 0,void 0,u)}var fT=Object.prototype,pT=fT.hasOwnProperty,dT=eu(function(r,u){if($0(u)||ui(u)){tu(u,qn(u),r);return}for(var a in u)pT.call(u,a)&&W0(r,a,u[a])}),hT=dT,yT=eu(function(r,u){tu(u,po(u),r)}),Am=yT,vT=eu(function(r,u,a,l){tu(u,po(u),r,l)}),ac=vT,gT=eu(function(r,u,a,l){tu(u,qn(u),r,l)}),bT=gT;function $d(r,u){for(var a=-1,l=u.length,o=Array(l),p=r==null;++a<l;)o[a]=p?void 0:G0(r,u[a]);return o}var mT=Lo($d),_T=mT,OT="[object DOMException]",wT="[object Error]";function Wd(r){if(!pr(r))return!1;var u=Bo(r);return u==wT||u==OT||typeof r.message=="string"&&typeof r.name=="string"&&!_c(r)}var xT=wt(function(r,u){try{return sr(r,void 0,u)}catch(a){return Wd(a)?a:new Error(a)}}),b_=xT,ET="Expected a function";function m_(r,u){var a;if(typeof u!="function")throw new TypeError(ET);return r=bt(r),function(){return--r>0&&(a=u.apply(this,arguments)),r<=1&&(u=void 0),a}}var ST=1,jT=32,Gd=wt(function(r,u,a){var l=ST;if(a.length){var o=Io(a,Qi(Gd));l|=jT}return yo(r,l,u,a,o)});Gd.placeholder={};var __=Gd,PT=Lo(function(r,u){return xr(u,function(a){a=nu(a),qi(r,a,__(r[a],r))}),r}),AT=PT,TT=1,MT=2,kT=32,Hd=wt(function(r,u,a){var l=TT|MT;if(a.length){var o=Io(a,Qi(Hd));l|=kT}return yo(u,l,r,a,o)});Hd.placeholder={};var DT=Hd;function lr(r,u,a){var l=-1,o=r.length;u<0&&(u=-u>o?0:o+u),a=a>o?o:a,a<0&&(a+=o),o=u>a?0:a-u>>>0,u>>>=0;for(var p=Array(o);++l<o;)p[l]=r[l+u];return p}function zo(r,u,a){var l=r.length;return a=a===void 0?l:a,!u&&a>=l?r:lr(r,u,a)}var NT="\\ud800-\\udfff",CT="\\u0300-\\u036f",RT="\\ufe20-\\ufe2f",IT="\\u20d0-\\u20ff",LT=CT+RT+IT,BT="\\ufe0e\\ufe0f",zT="\\u200d",FT=RegExp("["+zT+NT+LT+BT+"]");function ea(r){return FT.test(r)}function $T(r){return r.split("")}var O_="\\ud800-\\udfff",WT="\\u0300-\\u036f",GT="\\ufe20-\\ufe2f",HT="\\u20d0-\\u20ff",UT=WT+GT+HT,XT="\\ufe0e\\ufe0f",YT="["+O_+"]",_d="["+UT+"]",Od="\\ud83c[\\udffb-\\udfff]",VT="(?:"+_d+"|"+Od+")",w_="[^"+O_+"]",x_="(?:\\ud83c[\\udde6-\\uddff]){2}",E_="[\\ud800-\\udbff][\\udc00-\\udfff]",KT="\\u200d",S_=VT+"?",j_="["+XT+"]?",qT="(?:"+KT+"(?:"+[w_,x_,E_].join("|")+")"+j_+S_+")*",ZT=j_+S_+qT,JT="(?:"+[w_+_d+"?",_d,x_,E_,YT].join("|")+")",QT=RegExp(Od+"(?="+Od+")|"+JT+ZT,"g");function e2(r){return r.match(QT)||[]}function wr(r){return ea(r)?e2(r):$T(r)}function P_(r){return function(u){u=Lt(u);var a=ea(u)?wr(u):void 0,l=a?a[0]:u.charAt(0),o=a?zo(a,1).join(""):u.slice(1);return l[r]()+o}}var t2=P_("toUpperCase"),Ud=t2;function A_(r){return Ud(Lt(r).toLowerCase())}function Xd(r,u,a,l){var o=-1,p=r==null?0:r.length;for(l&&p&&(a=r[++o]);++o<p;)a=u(a,r[o],o,r);return a}function Yd(r){return function(u){return r==null?void 0:r[u]}}var n2={\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"},r2=Yd(n2),o2=r2,i2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a2="\\u0300-\\u036f",u2="\\ufe20-\\ufe2f",s2="\\u20d0-\\u20ff",c2=a2+u2+s2,l2="["+c2+"]",f2=RegExp(l2,"g");function T_(r){return r=Lt(r),r&&r.replace(i2,o2).replace(f2,"")}var p2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function d2(r){return r.match(p2)||[]}var h2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function y2(r){return h2.test(r)}var M_="\\ud800-\\udfff",v2="\\u0300-\\u036f",g2="\\ufe20-\\ufe2f",b2="\\u20d0-\\u20ff",m2=v2+g2+b2,k_="\\u2700-\\u27bf",D_="a-z\\xdf-\\xf6\\xf8-\\xff",_2="\\xac\\xb1\\xd7\\xf7",O2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",w2="\\u2000-\\u206f",x2=" \\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",N_="A-Z\\xc0-\\xd6\\xd8-\\xde",E2="\\ufe0e\\ufe0f",C_=_2+O2+w2+x2,R_="['\u2019]",Tm="["+C_+"]",S2="["+m2+"]",I_="\\d+",j2="["+k_+"]",L_="["+D_+"]",B_="[^"+M_+C_+I_+k_+D_+N_+"]",P2="\\ud83c[\\udffb-\\udfff]",A2="(?:"+S2+"|"+P2+")",T2="[^"+M_+"]",z_="(?:\\ud83c[\\udde6-\\uddff]){2}",F_="[\\ud800-\\udbff][\\udc00-\\udfff]",Gi="["+N_+"]",M2="\\u200d",Mm="(?:"+L_+"|"+B_+")",k2="(?:"+Gi+"|"+B_+")",km="(?:"+R_+"(?:d|ll|m|re|s|t|ve))?",Dm="(?:"+R_+"(?:D|LL|M|RE|S|T|VE))?",$_=A2+"?",W_="["+E2+"]?",D2="(?:"+M2+"(?:"+[T2,z_,F_].join("|")+")"+W_+$_+")*",N2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",C2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",R2=W_+$_+D2,I2="(?:"+[j2,z_,F_].join("|")+")"+R2,L2=RegExp([Gi+"?"+L_+"+"+km+"(?="+[Tm,Gi,"$"].join("|")+")",k2+"+"+Dm+"(?="+[Tm,Gi+Mm,"$"].join("|")+")",Gi+"?"+Mm+"+"+km,Gi+"+"+Dm,C2,N2,I_,I2].join("|"),"g");function B2(r){return r.match(L2)||[]}function G_(r,u,a){return r=Lt(r),u=a?void 0:u,u===void 0?y2(r)?B2(r):d2(r):r.match(u)||[]}var z2="['\u2019]",F2=RegExp(z2,"g");function ta(r){return function(u){return Xd(G_(T_(u).replace(F2,"")),r,"")}}var $2=ta(function(r,u,a){return u=u.toLowerCase(),r+(a?A_(u):u)}),W2=$2,G2=ai.isFinite,H2=Math.min;function Vd(r){var u=Math[r];return function(a,l){if(a=co(a),l=l==null?0:H2(bt(l),292),l&&G2(a)){var o=(Lt(a)+"e").split("e"),p=u(o[0]+"e"+(+o[1]+l));return o=(Lt(p)+"e").split("e"),+(o[0]+"e"+(+o[1]-l))}return u(a)}}var U2=Vd("ceil"),X2=U2;function H_(r){var u=I(r);return u.__chain__=!0,u}var Y2=Math.ceil,V2=Math.max;function K2(r,u,a){(a?Ln(r,u,a):u===void 0)?u=1:u=V2(bt(u),0);var l=r==null?0:r.length;if(!l||u<1)return[];for(var o=0,p=0,d=Array(Y2(l/u));o<l;)d[p++]=lr(r,o,o+=u);return d}function fi(r,u,a){return r===r&&(a!==void 0&&(r=r<=a?r:a),u!==void 0&&(r=r>=u?r:u)),r}function q2(r,u,a){return a===void 0&&(a=u,u=void 0),a!==void 0&&(a=co(a),a=a===a?a:0),u!==void 0&&(u=co(u),u=u===u?u:0),fi(co(r),u,a)}var Z2=1,J2=4;function Q2(r,u){return u=typeof u=="function"?u:void 0,si(r,Z2|J2,u)}var eM=4;function tM(r,u){return u=typeof u=="function"?u:void 0,si(r,eM,u)}function nM(){return new cr(this.value(),this.__chain__)}function rM(r){for(var u=-1,a=r==null?0:r.length,l=0,o=[];++u<a;){var p=r[u];p&&(o[l++]=p)}return o}function oM(){var r=arguments.length;if(!r)return[];for(var u=Array(r-1),a=arguments[0],l=r;l--;)u[l-1]=arguments[l];return ru(It(a)?ur(a):[a],dr(u,1))}var iM="Expected a function";function aM(r){var u=r==null?0:r.length,a=yt;return r=u?Kt(r,function(l){if(typeof l[1]!="function")throw new TypeError(iM);return[a(l[0]),l[1]]}):[],wt(function(l){for(var o=-1;++o<u;){var p=r[o];if(sr(p[0],this,l))return sr(p[1],this,l)}})}function U_(r,u,a){var l=a.length;if(r==null)return!l;for(r=Object(r);l--;){var o=a[l],p=u[o],d=r[o];if(d===void 0&&!(o in r)||!p(d))return!1}return!0}function uM(r){var u=qn(r);return function(a){return U_(a,r,u)}}var sM=1;function cM(r){return uM(si(r,sM))}function lM(r,u){return u==null||U_(r,u,qn(u))}function fM(r,u,a,l){for(var o=-1,p=r==null?0:r.length;++o<p;){var d=r[o];u(l,d,a(d),r)}return l}function pM(r,u,a,l){return ci(r,function(o,p,d){u(l,o,a(o),d)}),l}function Ac(r,u){return function(a,l){var o=It(a)?fM:pM,p=u?u():{};return o(a,r,yt(l),p)}}var dM=Object.prototype,hM=dM.hasOwnProperty,yM=Ac(function(r,u,a){hM.call(r,a)?++r[a]:qi(r,a,1)}),vM=yM;function gM(r,u){var a=Ja(r);return u==null?a:sP(a,u)}var bM=8;function Kd(r,u,a){u=a?void 0:u;var l=yo(r,bM,void 0,void 0,void 0,void 0,void 0,u);return l.placeholder=Kd.placeholder,l}Kd.placeholder={};var mM=16;function qd(r,u,a){u=a?void 0:u;var l=yo(r,mM,void 0,void 0,void 0,void 0,void 0,u);return l.placeholder=qd.placeholder,l}qd.placeholder={};function _M(r,u){return r==null||r!==r?u:r}var X_=Object.prototype,OM=X_.hasOwnProperty,wM=wt(function(r,u){r=Object(r);var a=-1,l=u.length,o=l>2?u[2]:void 0;for(o&&Ln(u[0],u[1],o)&&(l=1);++a<l;)for(var p=u[a],d=po(p),y=-1,g=d.length;++y<g;){var O=d[y],x=r[O];(x===void 0||Zi(x,X_[O])&&!OM.call(r,O))&&(r[O]=p[O])}return r}),xM=wM;function Y_(r,u,a,l,o,p){return fo(r)&&fo(u)&&(p.set(u,r),H0(r,u,void 0,Y_,p),p.delete(u)),r}var EM=eu(function(r,u,a,l){H0(r,u,a,l)}),V_=EM,SM=wt(function(r){return r.push(void 0,Y_),sr(V_,void 0,r)}),jM=SM,PM="Expected a function";function K_(r,u,a){if(typeof r!="function")throw new TypeError(PM);return setTimeout(function(){r.apply(void 0,a)},u)}var AM=wt(function(r,u){return K_(r,1,u)}),TM=AM,MM=wt(function(r,u,a){return K_(r,co(u)||0,a)}),kM=MM,DM=200;function au(r,u,a,l){var o=-1,p=Cd,d=!0,y=r.length,g=[],O=u.length;if(!y)return g;a&&(u=Kt(u,Wr(a))),l?(p=X0,d=!1):u.length>=DM&&(p=vd,d=!1,u=new U0(u));e:for(;++o<y;){var x=r[o],w=a==null?x:a(x);if(x=l||x!==0?x:0,d&&w===w){for(var j=O;j--;)if(u[j]===w)continue e;g.push(x)}else p(u,w,l)||g.push(x)}return g}var NM=wt(function(r,u){return fn(r)?au(r,dr(u,1,fn,!0)):[]}),CM=NM;function Kn(r){var u=r==null?0:r.length;return u?r[u-1]:void 0}var RM=wt(function(r,u){var a=Kn(u);return fn(a)&&(a=void 0),fn(r)?au(r,dr(u,1,fn,!0),yt(a)):[]}),IM=RM,LM=wt(function(r,u){var a=Kn(u);return fn(a)&&(a=void 0),fn(r)?au(r,dr(u,1,fn,!0),void 0,a):[]}),BM=LM,zM=Sc(function(r,u){return r/u},1),FM=zM;function $M(r,u,a){var l=r==null?0:r.length;return l?(u=a||u===void 0?1:bt(u),lr(r,u<0?0:u,l)):[]}function WM(r,u,a){var l=r==null?0:r.length;return l?(u=a||u===void 0?1:bt(u),u=l-u,lr(r,0,u<0?0:u)):[]}function Tc(r,u,a,l){for(var o=r.length,p=l?o:-1;(l?p--:++p<o)&&u(r[p],p,r););return a?lr(r,l?0:p,l?p+1:o):lr(r,l?p+1:0,l?o:p)}function GM(r,u){return r&&r.length?Tc(r,yt(u),!0,!0):[]}function HM(r,u){return r&&r.length?Tc(r,yt(u),!0):[]}function Hr(r){return typeof r=="function"?r:fr}function Nm(r,u){var a=It(r)?xr:ci;return a(r,Hr(u))}function UM(r,u){for(var a=r==null?0:r.length;a--&&u(r[a],a,r)!==!1;);return r}var XM=cP(!0),q_=XM;function Zd(r,u){return r&&q_(r,u,qn)}var YM=lP(Zd,!0),Z_=YM;function Cm(r,u){var a=It(r)?UM:Z_;return a(r,Hr(u))}function VM(r,u,a){r=Lt(r),u=Or(u);var l=r.length;a=a===void 0?l:fi(bt(a),0,l);var o=a;return a-=u.length,a>=0&&r.slice(a,o)==u}function KM(r,u){return Kt(u,function(a){return[a,r[a]]})}function qM(r){var u=-1,a=Array(r.size);return r.forEach(function(l){a[++u]=[l,l]}),a}var ZM="[object Map]",JM="[object Set]";function J_(r){return function(u){var a=ou(u);return a==ZM?Y0(u):a==JM?qM(u):KM(u,r(u))}}var QM=J_(qn),Rm=QM,ek=J_(po),Im=ek,tk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nk=Yd(tk),rk=nk,Q_=/[&<>"']/g,ok=RegExp(Q_.source);function e1(r){return r=Lt(r),r&&ok.test(r)?r.replace(Q_,rk):r}var t1=/[\\^$.*+?()[\]{}|]/g,ik=RegExp(t1.source);function ak(r){return r=Lt(r),r&&ik.test(r)?r.replace(t1,"\\$&"):r}function n1(r,u){for(var a=-1,l=r==null?0:r.length;++a<l;)if(!u(r[a],a,r))return!1;return!0}function uk(r,u){var a=!0;return ci(r,function(l,o,p){return a=!!u(l,o,p),a}),a}function sk(r,u,a){var l=It(r)?n1:uk;return a&&Ln(r,u,a)&&(u=void 0),l(r,yt(u))}var ck=4294967295;function r1(r){return r?fi(bt(r),0,ck):0}function lk(r,u,a,l){var o=r.length;for(a=bt(a),a<0&&(a=-a>o?0:o+a),l=l===void 0||l>o?o:bt(l),l<0&&(l+=o),l=a>l?0:r1(l);a<l;)r[a++]=u;return r}function fk(r,u,a,l){var o=r==null?0:r.length;return o?(a&&typeof a!="number"&&Ln(r,u,a)&&(a=0,l=o),lk(r,u,a,l)):[]}function o1(r,u){var a=[];return ci(r,function(l,o,p){u(l,o,p)&&a.push(l)}),a}function pk(r,u){var a=It(r)?li:o1;return a(r,yt(u))}function i1(r,u,a){var l;return a(r,function(o,p,d){if(u(o,p,d))return l=p,!1}),l}function dk(r,u){return i1(r,yt(u),ho)}var hk=Math.max,yk=Math.min;function a1(r,u,a){var l=r==null?0:r.length;if(!l)return-1;var o=l-1;return a!==void 0&&(o=bt(a),o=a<0?hk(l+o,0):yk(o,l-1)),V0(r,yt(u),o,!0)}var vk=oA(a1),gk=vk;function bk(r,u){return i1(r,yt(u),Zd)}function Lm(r){return r&&r.length?r[0]:void 0}var mk=1/0;function _k(r,u){return dr(Rd(r,u),mk)}function Ok(r,u,a){return a=a===void 0?1:bt(a),dr(Rd(r,u),a)}function wk(r,u){var a=r==null?0:r.length;return a?(u=u===void 0?1:bt(u),dr(r,u)):[]}var xk=512;function Ek(r){return yo(r,xk)}var Sk=Vd("floor"),jk=Sk,Pk="Expected a function",Ak=8,Tk=32,Mk=128,kk=256;function u1(r){return Lo(function(u){var a=u.length,l=a,o=cr.prototype.thru;for(r&&u.reverse();l--;){var p=u[l];if(typeof p!="function")throw new TypeError(Pk);if(o&&!d&&Qs(p)=="wrapper")var d=new cr([],!0)}for(l=d?l:a;++l<a;){p=u[l];var y=Qs(p),g=y=="wrapper"?Fd(p):void 0;g&&md(g[0])&&g[1]==(Mk|Ak|Tk|kk)&&!g[4].length&&g[9]==1?d=d[Qs(g[0])].apply(d,g[3]):d=p.length==1&&md(p)?d[y]():d.thru(p)}return function(){var O=arguments,x=O[0];if(d&&O.length==1&&It(x))return d.plant(x).value();for(var w=0,j=a?u[w].apply(this,O):x;++w<a;)j=u[w].call(this,j);return j}})}var Dk=u1(),Nk=Dk,Ck=u1(!0),Rk=Ck;function Ik(r,u){return r==null?r:fP(r,Hr(u),po)}function Lk(r,u){return r==null?r:q_(r,Hr(u),po)}function Bk(r,u){return r&&ho(r,Hr(u))}function zk(r,u){return r&&Zd(r,Hr(u))}function Mc(r,u){return li(u,function(a){return Ji(r[a])})}function Fk(r){return r==null?[]:Mc(r,qn(r))}function $k(r){return r==null?[]:Mc(r,po(r))}var Wk=Object.prototype,Gk=Wk.hasOwnProperty,Hk=Ac(function(r,u,a){Gk.call(r,a)?r[a].push(u):qi(r,a,[u])}),Uk=Hk;function Jd(r,u){return r>u}function kc(r){return function(u,a){return typeof u=="string"&&typeof a=="string"||(u=co(u),a=co(a)),r(u,a)}}var Xk=kc(Jd),Yk=Xk,Vk=kc(function(r,u){return r>=u}),Kk=Vk,qk=Object.prototype,Zk=qk.hasOwnProperty;function Jk(r,u){return r!=null&&Zk.call(r,u)}function Qk(r,u){return r!=null&&pP(r,u,Jk)}var eD=Math.max,tD=Math.min;function nD(r,u,a){return r>=tD(u,a)&&r<eD(u,a)}function rD(r,u,a){return u=Ro(u),a===void 0?(a=u,u=0):a=Ro(a),r=co(r),nD(r,u,a)}var oD="[object String]";function Dc(r){return typeof r=="string"||!It(r)&&pr(r)&&Bo(r)==oD}function Qd(r,u){return Kt(u,function(a){return r[a]})}function na(r){return r==null?[]:Qd(r,qn(r))}var iD=Math.max;function aD(r,u,a,l){r=ui(r)?r:na(r),a=a&&!l?bt(a):0;var o=r.length;return a<0&&(a=iD(o+a,0)),Dc(r)?a<=o&&r.indexOf(u,a)>-1:!!o&&iu(r,u,a)>-1}var uD=Math.max;function sD(r,u,a){var l=r==null?0:r.length;if(!l)return-1;var o=a==null?0:bt(a);return o<0&&(o=uD(l+o,0)),iu(r,u,o)}function cD(r){var u=r==null?0:r.length;return u?lr(r,0,-1):[]}var lD=Math.min;function eh(r,u,a){for(var l=a?X0:Cd,o=r[0].length,p=r.length,d=p,y=Array(p),g=1/0,O=[];d--;){var x=r[d];d&&u&&(x=Kt(x,Wr(u))),g=lD(x.length,g),y[d]=!a&&(u||o>=120&&x.length>=120)?new U0(d&&x):void 0}x=r[0];var w=-1,j=y[0];e:for(;++w<o&&O.length<g;){var P=x[w],k=u?u(P):P;if(P=a||P!==0?P:0,!(j?vd(j,k):l(O,k,a))){for(d=p;--d;){var T=y[d];if(!(T?vd(T,k):l(r[d],k,a)))continue e}j&&j.push(k),O.push(P)}}return O}function th(r){return fn(r)?r:[]}var fD=wt(function(r){var u=Kt(r,th);return u.length&&u[0]===r[0]?eh(u):[]}),pD=fD,dD=wt(function(r){var u=Kn(r),a=Kt(r,th);return u===Kn(a)?u=void 0:a.pop(),a.length&&a[0]===r[0]?eh(a,yt(u)):[]}),hD=dD,yD=wt(function(r){var u=Kn(r),a=Kt(r,th);return u=typeof u=="function"?u:void 0,u&&a.pop(),a.length&&a[0]===r[0]?eh(a,void 0,u):[]}),vD=yD;function gD(r,u,a,l){return ho(r,function(o,p,d){u(l,a(o),p,d)}),l}function s1(r,u){return function(a,l){return gD(a,r,u(l),{})}}var bD=Object.prototype,mD=bD.toString,_D=s1(function(r,u,a){u!=null&&typeof u.toString!="function"&&(u=mD.call(u)),r[u]=a},K0(fr)),OD=_D,c1=Object.prototype,wD=c1.hasOwnProperty,xD=c1.toString,ED=s1(function(r,u,a){u!=null&&typeof u.toString!="function"&&(u=xD.call(u)),wD.call(r,u)?r[u].push(a):r[u]=[a]},yt),SD=ED;function l1(r,u){return u.length<2?r:Oc(r,lr(u,0,-1))}function uu(r,u,a){u=wc(u,r),r=l1(r,u);var l=r==null?r:r[nu(Kn(u))];return l==null?void 0:sr(l,r,a)}var jD=wt(uu),PD=jD,AD=wt(function(r,u,a){var l=-1,o=typeof u=="function",p=ui(r)?Array(r.length):[];return ci(r,function(d){p[++l]=o?sr(u,d,a):uu(d,u,a)}),p}),TD=AD,MD="[object ArrayBuffer]";function kD(r){return pr(r)&&Bo(r)==MD}var Bm=Ki&&Ki.isArrayBuffer,DD=Bm?Wr(Bm):kD,ND=DD,CD="[object Boolean]";function RD(r){return r===!0||r===!1||pr(r)&&Bo(r)==CD}var ID="[object Date]";function LD(r){return pr(r)&&Bo(r)==ID}var zm=Ki&&Ki.isDate,BD=zm?Wr(zm):LD,zD=BD;function FD(r){return pr(r)&&r.nodeType===1&&!_c(r)}var $D="[object Map]",WD="[object Set]",GD=Object.prototype,HD=GD.hasOwnProperty;function UD(r){if(r==null)return!0;if(ui(r)&&(It(r)||typeof r=="string"||typeof r.splice=="function"||Id(r)||Ld(r)||q0(r)))return!r.length;var u=ou(r);if(u==$D||u==WD)return!r.size;if($0(r))return!Z0(r).length;for(var a in r)if(HD.call(r,a))return!1;return!0}function XD(r,u,a){a=typeof a=="function"?a:void 0;var l=a?a(r,u):void 0;return l===void 0?dP(r,u,void 0,a):!!l}var YD=ai.isFinite;function VD(r){return typeof r=="number"&&YD(r)}function f1(r){return typeof r=="number"&&r==bt(r)}function KD(r,u){return r===u||J0(r,u,Q0(u))}function qD(r,u,a){return a=typeof a=="function"?a:void 0,J0(r,u,Q0(u),a)}var ZD="[object Number]";function p1(r){return typeof r=="number"||pr(r)&&Bo(r)==ZD}function JD(r){return p1(r)&&r!=+r}var QD=hP?Ji:e_,eN=QD,tN="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function nN(r){if(eN(r))throw new Error(tN);return yP(r)}function rN(r){return r===null}var oN="[object RegExp]";function iN(r){return pr(r)&&Bo(r)==oN}var Fm=Ki&&Ki.isRegExp,aN=Fm?Wr(Fm):iN,nh=aN,$m=9007199254740991;function uN(r){return f1(r)&&r>=-$m&&r<=$m}var sN="[object WeakMap]";function cN(r){return pr(r)&&ou(r)==sN}var lN="[object WeakSet]";function fN(r){return pr(r)&&Bo(r)==lN}var pN=1;function dN(r){return yt(typeof r=="function"?r:si(r,pN))}var hN=Array.prototype,yN=hN.join;function vN(r,u){return r==null?"":yN.call(r,u)}var gN=ta(function(r,u,a){return r+(a?"-":"")+u.toLowerCase()}),bN=gN,mN=Ac(function(r,u,a){qi(r,a,u)}),_N=mN;function ON(r,u,a){for(var l=a+1;l--;)if(r[l]===u)return l;return l}var wN=Math.max,xN=Math.min;function EN(r,u,a){var l=r==null?0:r.length;if(!l)return-1;var o=l;return a!==void 0&&(o=bt(a),o=o<0?wN(l+o,0):xN(o,l-1)),u===u?ON(r,u,o):V0(r,vP,o,!0)}var SN=ta(function(r,u,a){return r+(a?" ":"")+u.toLowerCase()}),jN=SN,PN=P_("toLowerCase"),AN=PN;function rh(r,u){return r<u}var TN=kc(rh),MN=TN,kN=kc(function(r,u){return r<=u}),DN=kN;function NN(r,u){var a={};return u=yt(u),ho(r,function(l,o,p){qi(a,u(l,o,p),l)}),a}function CN(r,u){var a={};return u=yt(u),ho(r,function(l,o,p){qi(a,o,u(l,o,p))}),a}var RN=1;function IN(r){return gP(si(r,RN))}var LN=1;function BN(r,u){return bP(r,si(u,LN))}function Nc(r,u,a){for(var l=-1,o=r.length;++l<o;){var p=r[l],d=u(p);if(d!=null&&(y===void 0?d===d&&!lo(d):a(d,y)))var y=d,g=p}return g}function zN(r){return r&&r.length?Nc(r,fr,Jd):void 0}function FN(r,u){return r&&r.length?Nc(r,yt(u),Jd):void 0}function oh(r,u){for(var a,l=-1,o=r.length;++l<o;){var p=u(r[l]);p!==void 0&&(a=a===void 0?p:a+p)}return a}var $N=0/0;function d1(r,u){var a=r==null?0:r.length;return a?oh(r,u)/a:$N}function WN(r){return d1(r,fr)}function GN(r,u){return d1(r,yt(u))}var HN=wt(function(r,u){return function(a){return uu(a,r,u)}}),UN=HN,XN=wt(function(r,u){return function(a){return uu(r,a,u)}}),YN=XN;function VN(r){return r&&r.length?Nc(r,fr,rh):void 0}function KN(r,u){return r&&r.length?Nc(r,yt(u),rh):void 0}function h1(r,u,a){var l=qn(u),o=Mc(u,l),p=!(fo(a)&&"chain"in a)||!!a.chain,d=Ji(r);return xr(o,function(y){var g=u[y];r[y]=g,d&&(r.prototype[y]=function(){var O=this.__chain__;if(p||O){var x=r(this.__wrapped__),w=x.__actions__=ur(this.__actions__);return w.push({func:g,args:arguments,thisArg:r}),x.__chain__=O,x}return g.apply(r,ru([this.value()],arguments))})}),r}var qN=Sc(function(r,u){return r*u},1),ZN=qN,JN="Expected a function";function su(r){if(typeof r!="function")throw new TypeError(JN);return function(){var u=arguments;switch(u.length){case 0:return!r.call(this);case 1:return!r.call(this,u[0]);case 2:return!r.call(this,u[0],u[1]);case 3:return!r.call(this,u[0],u[1],u[2])}return!r.apply(this,u)}}function QN(r){for(var u,a=[];!(u=r.next()).done;)a.push(u.value);return a}var eC="[object Map]",tC="[object Set]",dd=oc?oc.iterator:void 0;function y1(r){if(!r)return[];if(ui(r))return Dc(r)?wr(r):ur(r);if(dd&&r[dd])return QN(r[dd]());var u=ou(r),a=u==eC?Y0:u==tC?mP:na;return a(r)}function nC(){this.__values__===void 0&&(this.__values__=y1(this.value()));var r=this.__index__>=this.__values__.length,u=r?void 0:this.__values__[this.__index__++];return{done:r,value:u}}function v1(r,u){var a=r.length;if(!!a)return u+=u<0?a:0,Qa(u,a)?r[u]:void 0}function rC(r,u){return r&&r.length?v1(r,bt(u)):void 0}function oC(r){return r=bt(r),wt(function(u){return v1(u,r)})}function ih(r,u){return u=wc(u,r),r=l1(r,u),r==null||delete r[nu(Kn(u))]}function iC(r){return _c(r)?void 0:r}var aC=1,uC=2,sC=4,cC=Lo(function(r,u){var a={};if(r==null)return a;var l=!1;u=Kt(u,function(p){return p=wc(p,r),l||(l=p.length>1),p}),tu(r,t_(r),a),l&&(a=si(a,aC|uC|sC,iC));for(var o=u.length;o--;)ih(a,u[o]);return a}),lC=cC;function g1(r,u){if(r==null)return{};var a=Kt(t_(r),function(l){return[l]});return u=yt(u),_P(r,a,function(l,o){return u(l,o[0])})}function fC(r,u){return g1(r,su(yt(u)))}function pC(r){return m_(2,r)}function dC(r,u){var a=r.length;for(r.sort(u);a--;)r[a]=r[a].value;return r}function b1(r,u){if(r!==u){var a=r!==void 0,l=r===null,o=r===r,p=lo(r),d=u!==void 0,y=u===null,g=u===u,O=lo(u);if(!y&&!O&&!p&&r>u||p&&d&&g&&!y&&!O||l&&d&&g||!a&&g||!o)return 1;if(!l&&!p&&!O&&r<u||O&&a&&o&&!l&&!p||y&&a&&o||!d&&o||!g)return-1}return 0}function hC(r,u,a){for(var l=-1,o=r.criteria,p=u.criteria,d=o.length,y=a.length;++l<d;){var g=b1(o[l],p[l]);if(g){if(l>=y)return g;var O=a[l];return g*(O=="desc"?-1:1)}}return r.index-u.index}function m1(r,u,a){u.length?u=Kt(u,function(p){return It(p)?function(d){return Oc(d,p.length===1?p[0]:p)}:p}):u=[fr];var l=-1;u=Kt(u,Wr(yt));var o=OP(r,function(p,d,y){var g=Kt(u,function(O){return O(p)});return{criteria:g,index:++l,value:p}});return dC(o,function(p,d){return hC(p,d,a)})}function yC(r,u,a,l){return r==null?[]:(It(u)||(u=u==null?[]:[u]),a=l?void 0:a,It(a)||(a=a==null?[]:[a]),m1(r,u,a))}function ah(r){return Lo(function(u){return u=Kt(u,Wr(yt)),wt(function(a){var l=this;return r(u,function(o){return sr(o,l,a)})})})}var vC=ah(Kt),gC=vC,bC=wt,mC=bC,_C=Math.min,OC=mC(function(r,u){u=u.length==1&&It(u[0])?Kt(u[0],Wr(yt)):Kt(dr(u,1),Wr(yt));var a=u.length;return wt(function(l){for(var o=-1,p=_C(l.length,a);++o<p;)l[o]=u[o].call(this,l[o]);return sr(r,this,l)})}),wC=OC,xC=ah(n1),EC=xC,SC=ah(n_),jC=SC,PC=9007199254740991,AC=Math.floor;function wd(r,u){var a="";if(!r||u<1||u>PC)return a;do u%2&&(a+=r),u=AC(u/2),u&&(r+=r);while(u);return a}var TC=r_("length"),MC=TC,_1="\\ud800-\\udfff",kC="\\u0300-\\u036f",DC="\\ufe20-\\ufe2f",NC="\\u20d0-\\u20ff",CC=kC+DC+NC,RC="\\ufe0e\\ufe0f",IC="["+_1+"]",xd="["+CC+"]",Ed="\\ud83c[\\udffb-\\udfff]",LC="(?:"+xd+"|"+Ed+")",O1="[^"+_1+"]",w1="(?:\\ud83c[\\udde6-\\uddff]){2}",x1="[\\ud800-\\udbff][\\udc00-\\udfff]",BC="\\u200d",E1=LC+"?",S1="["+RC+"]?",zC="(?:"+BC+"(?:"+[O1,w1,x1].join("|")+")"+S1+E1+")*",FC=S1+E1+zC,$C="(?:"+[O1+xd+"?",xd,w1,x1,IC].join("|")+")",Wm=RegExp(Ed+"(?="+Ed+")|"+$C+FC,"g");function WC(r){for(var u=Wm.lastIndex=0;Wm.test(r);)++u;return u}function ra(r){return ea(r)?WC(r):MC(r)}var GC=Math.ceil;function uc(r,u){u=u===void 0?" ":Or(u);var a=u.length;if(a<2)return a?wd(u,r):u;var l=wd(u,GC(r/ra(u)));return ea(u)?zo(wr(l),0,r).join(""):l.slice(0,r)}var HC=Math.ceil,UC=Math.floor;function XC(r,u,a){r=Lt(r),u=bt(u);var l=u?ra(r):0;if(!u||l>=u)return r;var o=(u-l)/2;return uc(UC(o),a)+r+uc(HC(o),a)}function YC(r,u,a){r=Lt(r),u=bt(u);var l=u?ra(r):0;return u&&l<u?r+uc(u-l,a):r}function VC(r,u,a){r=Lt(r),u=bt(u);var l=u?ra(r):0;return u&&l<u?uc(u-l,a)+r:r}var KC=/^\s+/,qC=ai.parseInt;function ZC(r,u,a){return a||u==null?u=0:u&&(u=+u),qC(Lt(r).replace(KC,""),u||0)}var JC=32,uh=wt(function(r,u){var a=Io(u,Qi(uh));return yo(r,JC,void 0,u,a)});uh.placeholder={};var j1=uh,QC=64,sh=wt(function(r,u){var a=Io(u,Qi(sh));return yo(r,QC,void 0,u,a)});sh.placeholder={};var eR=sh,tR=Ac(function(r,u,a){r[a?0:1].push(u)},function(){return[[],[]]}),nR=tR;function rR(r){for(var u,a=this;a instanceof jc;){var l=d_(a);l.__index__=0,l.__values__=void 0,u?o.__wrapped__=l:u=l;var o=l;a=a.__wrapped__}return o.__wrapped__=r,u}function oR(r){return function(u){return r==null?void 0:Oc(r,u)}}function iR(r,u,a,l){for(var o=a-1,p=r.length;++o<p;)if(l(r[o],u))return o;return-1}var aR=Array.prototype,Gm=aR.splice;function ch(r,u,a,l){var o=l?iR:iu,p=-1,d=u.length,y=r;for(r===u&&(u=ur(u)),a&&(y=Kt(r,Wr(a)));++p<d;)for(var g=0,O=u[p],x=a?a(O):O;(g=o(y,x,g,l))>-1;)y!==r&&Gm.call(y,g,1),Gm.call(r,g,1);return r}function P1(r,u){return r&&r.length&&u&&u.length?ch(r,u):r}var uR=wt(P1),sR=uR;function cR(r,u,a){return r&&r.length&&u&&u.length?ch(r,u,yt(a)):r}function lR(r,u,a){return r&&r.length&&u&&u.length?ch(r,u,void 0,a):r}var fR=Array.prototype,pR=fR.splice;function A1(r,u){for(var a=r?u.length:0,l=a-1;a--;){var o=u[a];if(a==l||o!==p){var p=o;Qa(o)?pR.call(r,o,1):ih(r,o)}}return r}var dR=Lo(function(r,u){var a=r==null?0:r.length,l=$d(r,u);return A1(r,Kt(u,function(o){return Qa(o,a)?+o:o}).sort(b1)),l}),hR=dR,yR=Math.floor,vR=Math.random;function lh(r,u){return r+yR(vR()*(u-r+1))}var gR=parseFloat,bR=Math.min,mR=Math.random;function _R(r,u,a){if(a&&typeof a!="boolean"&&Ln(r,u,a)&&(u=a=void 0),a===void 0&&(typeof u=="boolean"?(a=u,u=void 0):typeof r=="boolean"&&(a=r,r=void 0)),r===void 0&&u===void 0?(r=0,u=1):(r=Ro(r),u===void 0?(u=r,r=0):u=Ro(u)),r>u){var l=r;r=u,u=l}if(a||r%1||u%1){var o=mR();return bR(r+o*(u-r+gR("1e-"+((o+"").length-1))),u)}return lh(r,u)}var OR=Math.ceil,wR=Math.max;function xR(r,u,a,l){for(var o=-1,p=wR(OR((u-r)/(a||1)),0),d=Array(p);p--;)d[l?p:++o]=r,r+=a;return d}function T1(r){return function(u,a,l){return l&&typeof l!="number"&&Ln(u,a,l)&&(a=l=void 0),u=Ro(u),a===void 0?(a=u,u=0):a=Ro(a),l=l===void 0?u<a?1:-1:Ro(l),xR(u,a,l,r)}}var ER=T1(),SR=ER,jR=T1(!0),PR=jR,AR=256,TR=Lo(function(r,u){return yo(r,AR,void 0,void 0,void 0,u)}),MR=TR;function M1(r,u,a,l,o){return o(r,function(p,d,y){a=l?(l=!1,p):u(a,p,d,y)}),a}function kR(r,u,a){var l=It(r)?Xd:M1,o=arguments.length<3;return l(r,yt(u),a,o,ci)}function DR(r,u,a,l){var o=r==null?0:r.length;for(l&&o&&(a=r[--o]);o--;)a=u(a,r[o],o,r);return a}function NR(r,u,a){var l=It(r)?DR:M1,o=arguments.length<3;return l(r,yt(u),a,o,Z_)}function CR(r,u){var a=It(r)?li:o1;return a(r,su(yt(u)))}function RR(r,u){var a=[];if(!(r&&r.length))return a;var l=-1,o=[],p=r.length;for(u=yt(u);++l<p;){var d=r[l];u(d,l,r)&&(a.push(d),o.push(l))}return A1(r,o),a}function IR(r,u,a){return(a?Ln(r,u,a):u===void 0)?u=1:u=bt(u),wd(Lt(r),u)}function LR(){var r=arguments,u=Lt(r[0]);return r.length<3?u:u.replace(r[1],r[2])}var BR="Expected a function";function zR(r,u){if(typeof r!="function")throw new TypeError(BR);return u=u===void 0?u:bt(u),wt(r,u)}function FR(r,u,a){u=wc(u,r);var l=-1,o=u.length;for(o||(o=1,r=void 0);++l<o;){var p=r==null?void 0:r[nu(u[l])];p===void 0&&(l=o,p=a),r=Ji(p)?p.call(r):p}return r}var $R=Array.prototype,WR=$R.reverse;function Sd(r){return r==null?r:WR.call(r)}var GR=Vd("round"),HR=GR;function k1(r){var u=r.length;return u?r[lh(0,u-1)]:void 0}function UR(r){return k1(na(r))}function XR(r){var u=It(r)?k1:UR;return u(r)}function Cc(r,u){var a=-1,l=r.length,o=l-1;for(u=u===void 0?l:u;++a<u;){var p=lh(a,o),d=r[p];r[p]=r[a],r[a]=d}return r.length=u,r}function YR(r,u){return Cc(ur(r),fi(u,0,r.length))}function VR(r,u){var a=na(r);return Cc(a,fi(u,0,a.length))}function KR(r,u,a){(a?Ln(r,u,a):u===void 0)?u=1:u=bt(u);var l=It(r)?YR:VR;return l(r,u)}function qR(r,u,a,l){return l=typeof l=="function"?l:void 0,r==null?r:Bd(r,u,a,l)}function ZR(r){return Cc(ur(r))}function JR(r){return Cc(na(r))}function QR(r){var u=It(r)?ZR:JR;return u(r)}var eI="[object Map]",tI="[object Set]";function nI(r){if(r==null)return 0;if(ui(r))return Dc(r)?ra(r):r.length;var u=ou(r);return u==eI||u==tI?r.size:Z0(r).length}function rI(r,u,a){var l=r==null?0:r.length;return l?(a&&typeof a!="number"&&Ln(r,u,a)?(u=0,a=l):(u=u==null?0:bt(u),a=a===void 0?l:bt(a)),lr(r,u,a)):[]}var oI=ta(function(r,u,a){return r+(a?"_":"")+u.toLowerCase()}),iI=oI;function aI(r,u){var a;return ci(r,function(l,o,p){return a=u(l,o,p),!a}),!!a}function uI(r,u,a){var l=It(r)?n_:aI;return a&&Ln(r,u,a)&&(u=void 0),l(r,yt(u))}var sI=wt(function(r,u){if(r==null)return[];var a=u.length;return a>1&&Ln(r,u[0],u[1])?u=[]:a>2&&Ln(u[0],u[1],u[2])&&(u=[u[0]]),m1(r,dr(u,1),[])}),cI=sI,lI=4294967295,fI=lI-1,pI=Math.floor,dI=Math.min;function fh(r,u,a,l){var o=0,p=r==null?0:r.length;if(p===0)return 0;u=a(u);for(var d=u!==u,y=u===null,g=lo(u),O=u===void 0;o<p;){var x=pI((o+p)/2),w=a(r[x]),j=w!==void 0,P=w===null,k=w===w,T=lo(w);if(d)var D=l||k;else O?D=k&&(l||j):y?D=k&&j&&(l||!P):g?D=k&&j&&!P&&(l||!T):P||T?D=!1:D=l?w<=u:w<u;D?o=x+1:p=x}return dI(p,fI)}var hI=4294967295,yI=hI>>>1;function Rc(r,u,a){var l=0,o=r==null?l:r.length;if(typeof u=="number"&&u===u&&o<=yI){for(;l<o;){var p=l+o>>>1,d=r[p];d!==null&&!lo(d)&&(a?d<=u:d<u)?l=p+1:o=p}return o}return fh(r,u,fr,a)}function vI(r,u){return Rc(r,u)}function gI(r,u,a){return fh(r,u,yt(a))}function bI(r,u){var a=r==null?0:r.length;if(a){var l=Rc(r,u);if(l<a&&Zi(r[l],u))return l}return-1}function mI(r,u){return Rc(r,u,!0)}function _I(r,u,a){return fh(r,u,yt(a),!0)}function OI(r,u){var a=r==null?0:r.length;if(a){var l=Rc(r,u,!0)-1;if(Zi(r[l],u))return l}return-1}function D1(r,u){for(var a=-1,l=r.length,o=0,p=[];++a<l;){var d=r[a],y=u?u(d):d;if(!a||!Zi(y,g)){var g=y;p[o++]=d===0?0:d}}return p}function wI(r){return r&&r.length?D1(r):[]}function xI(r,u){return r&&r.length?D1(r,yt(u)):[]}var EI=4294967295;function SI(r,u,a){return a&&typeof a!="number"&&Ln(r,u,a)&&(u=a=void 0),a=a===void 0?EI:a>>>0,a?(r=Lt(r),r&&(typeof u=="string"||u!=null&&!nh(u))&&(u=Or(u),!u&&ea(r))?zo(wr(r),0,a):r.split(u,a)):[]}var jI="Expected a function",PI=Math.max;function AI(r,u){if(typeof r!="function")throw new TypeError(jI);return u=u==null?0:PI(bt(u),0),wt(function(a){var l=a[u],o=zo(a,0,u);return l&&ru(o,l),sr(r,this,o)})}var TI=ta(function(r,u,a){return r+(a?" ":"")+Ud(u)}),MI=TI;function kI(r,u,a){return r=Lt(r),a=a==null?0:fi(bt(a),0,r.length),u=Or(u),r.slice(a,a+u.length)==u}function DI(){return{}}function NI(){return""}function CI(){return!0}var RI=Sc(function(r,u){return r-u},0),II=RI;function LI(r){return r&&r.length?oh(r,fr):0}function BI(r,u){return r&&r.length?oh(r,yt(u)):0}function zI(r){var u=r==null?0:r.length;return u?lr(r,1,u):[]}function FI(r,u,a){return r&&r.length?(u=a||u===void 0?1:bt(u),lr(r,0,u<0?0:u)):[]}function $I(r,u,a){var l=r==null?0:r.length;return l?(u=a||u===void 0?1:bt(u),u=l-u,lr(r,u<0?0:u,l)):[]}function WI(r,u){return r&&r.length?Tc(r,yt(u),!1,!0):[]}function GI(r,u){return r&&r.length?Tc(r,yt(u)):[]}function HI(r,u){return u(r),r}var N1=Object.prototype,UI=N1.hasOwnProperty;function Hm(r,u,a,l){return r===void 0||Zi(r,N1[a])&&!UI.call(l,a)?u:r}var XI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function YI(r){return"\\"+XI[r]}var VI=/<%=([\s\S]+?)%>/g,C1=VI,KI=/<%-([\s\S]+?)%>/g,qI=KI,ZI=/<%([\s\S]+?)%>/g,JI=ZI,QI={escape:qI,evaluate:JI,interpolate:C1,variable:"",imports:{_:{escape:e1}}},jd=QI,e3="Invalid `variable` option passed into `_.template`",t3=/\b__p \+= '';/g,n3=/\b(__p \+=) '' \+/g,r3=/(__e\(.*?\)|\b__t\)) \+\n'';/g,o3=/[()=,{}\[\]\/\s]/,i3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zs=/($^)/,a3=/['\n\r\u2028\u2029\\]/g,u3=Object.prototype,Um=u3.hasOwnProperty;function s3(r,u,a){var l=jd.imports._.templateSettings||jd;a&&Ln(r,u,a)&&(u=void 0),r=Lt(r),u=ac({},u,l,Hm);var o=ac({},u.imports,l.imports,Hm),p=qn(o),d=Qd(o,p),y,g,O=0,x=u.interpolate||Zs,w="__p += '",j=RegExp((u.escape||Zs).source+"|"+x.source+"|"+(x===C1?i3:Zs).source+"|"+(u.evaluate||Zs).source+"|$","g"),P=Um.call(u,"sourceURL")?"//# sourceURL="+(u.sourceURL+"").replace(/\s/g," ")+`
  4. `:"";r.replace(j,function(D,B,z,q,ne,V){return z||(z=q),w+=r.slice(O,V).replace(a3,YI),B&&(y=!0,w+=`' +
  5. __e(`+B+`) +
  6. '`),ne&&(g=!0,w+=`';
  7. `+ne+`;
  8. __p += '`),z&&(w+=`' +
  9. ((__t = (`+z+`)) == null ? '' : __t) +
  10. '`),O=V+D.length,D}),w+=`';
  11. `;var k=Um.call(u,"variable")&&u.variable;if(!k)w=`with (obj) {
  12. `+w+`
  13. }
  14. `;else if(o3.test(k))throw new Error(e3);w=(g?w.replace(t3,""):w).replace(n3,"$1").replace(r3,"$1;"),w="function("+(k||"obj")+`) {
  15. `+(k?"":`obj || (obj = {});
  16. `)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(g?`, __j = Array.prototype.join;
  17. function print() { __p += __j.call(arguments, '') }
  18. `:`;
  19. `)+w+`return __p
  20. }`;var T=b_(function(){return Function(p,P+"return "+w).apply(void 0,d)});if(T.source=w,Wd(T))throw T;return T}function cu(r,u){return u(r)}var c3=9007199254740991,hd=4294967295,l3=Math.min;function f3(r,u){if(r=bt(r),r<1||r>c3)return[];var a=hd,l=l3(r,hd);u=Hr(u),r-=hd;for(var o=o_(l,u);++a<r;)u(a);return o}function p3(){return this}function R1(r,u){var a=r;return a instanceof St&&(a=a.value()),Xd(u,function(l,o){return o.func.apply(o.thisArg,ru([l],o.args))},a)}function yd(){return R1(this.__wrapped__,this.__actions__)}function d3(r){return Lt(r).toLowerCase()}function h3(r){return It(r)?Kt(r,nu):lo(r)?[r]:ur(wP(Lt(r)))}var Xm=9007199254740991;function y3(r){return r?fi(bt(r),-Xm,Xm):r===0?r:0}function v3(r){return Lt(r).toUpperCase()}function g3(r,u,a){var l=It(r),o=l||Id(r)||Ld(r);if(u=yt(u),a==null){var p=r&&r.constructor;o?a=l?new p:[]:fo(r)?a=Ji(p)?Ja(xP(r)):{}:a={}}return(o?xr:ho)(r,function(d,y,g){return u(a,d,y,g)}),a}function I1(r,u){for(var a=r.length;a--&&iu(u,r[a],0)>-1;);return a}function L1(r,u){for(var a=-1,l=r.length;++a<l&&iu(u,r[a],0)>-1;);return a}function b3(r,u,a){if(r=Lt(r),r&&(a||u===void 0))return EP(r);if(!r||!(u=Or(u)))return r;var l=wr(r),o=wr(u),p=L1(l,o),d=I1(l,o)+1;return zo(l,p,d).join("")}function m3(r,u,a){if(r=Lt(r),r&&(a||u===void 0))return r.slice(0,SP(r)+1);if(!r||!(u=Or(u)))return r;var l=wr(r),o=I1(l,wr(u))+1;return zo(l,0,o).join("")}var _3=/^\s+/;function O3(r,u,a){if(r=Lt(r),r&&(a||u===void 0))return r.replace(_3,"");if(!r||!(u=Or(u)))return r;var l=wr(r),o=L1(l,wr(u));return zo(l,o).join("")}var w3=30,x3="...",E3=/\w*$/;function S3(r,u){var a=w3,l=x3;if(fo(u)){var o="separator"in u?u.separator:o;a="length"in u?bt(u.length):a,l="omission"in u?Or(u.omission):l}r=Lt(r);var p=r.length;if(ea(r)){var d=wr(r);p=d.length}if(a>=p)return r;var y=a-ra(l);if(y<1)return l;var g=d?zo(d,0,y).join(""):r.slice(0,y);if(o===void 0)return g+l;if(d&&(y+=g.length-y),nh(o)){if(r.slice(y).search(o)){var O,x=g;for(o.global||(o=RegExp(o.source,Lt(E3.exec(o))+"g")),o.lastIndex=0;O=o.exec(x);)var w=O.index;g=g.slice(0,w===void 0?y:w)}}else if(r.indexOf(Or(o),y)!=y){var j=g.lastIndexOf(o);j>-1&&(g=g.slice(0,j))}return g+l}function j3(r){return g_(r,1)}var P3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},A3=Yd(P3),T3=A3,B1=/&(?:amp|lt|gt|quot|#39);/g,M3=RegExp(B1.source);function k3(r){return r=Lt(r),r&&M3.test(r)?r.replace(B1,T3):r}var D3=wt(function(r){var u=Kn(r);return fn(u)&&(u=void 0),ii(dr(r,1,fn,!0),yt(u))}),N3=D3,C3=wt(function(r){var u=Kn(r);return u=typeof u=="function"?u:void 0,ii(dr(r,1,fn,!0),void 0,u)}),R3=C3;function I3(r){return r&&r.length?ii(r):[]}function L3(r,u){return r&&r.length?ii(r,yt(u)):[]}function B3(r,u){return u=typeof u=="function"?u:void 0,r&&r.length?ii(r,void 0,u):[]}var z3=0;function F3(r){var u=++z3;return Lt(r)+u}function $3(r,u){return r==null?!0:ih(r,u)}var W3=Math.max;function ph(r){if(!(r&&r.length))return[];var u=0;return r=li(r,function(a){if(fn(a))return u=W3(a.length,u),!0}),o_(u,function(a){return Kt(r,r_(a))})}function z1(r,u){if(!(r&&r.length))return[];var a=ph(r);return u==null?a:Kt(a,function(l){return sr(u,void 0,l)})}function F1(r,u,a,l){return Bd(r,u,a(Oc(r,u)),l)}function G3(r,u,a){return r==null?r:F1(r,u,Hr(a))}function H3(r,u,a,l){return l=typeof l=="function"?l:void 0,r==null?r:F1(r,u,Hr(a),l)}var U3=ta(function(r,u,a){return r+(a?" ":"")+u.toUpperCase()}),X3=U3;function Y3(r){return r==null?[]:Qd(r,po(r))}var V3=wt(function(r,u){return fn(r)?au(r,u):[]}),K3=V3;function q3(r,u){return j1(Hr(u),r)}var Z3=Lo(function(r){var u=r.length,a=u?r[0]:0,l=this.__wrapped__,o=function(p){return $d(p,r)};return u>1||this.__actions__.length||!(l instanceof St)||!Qa(a)?this.thru(o):(l=l.slice(a,+a+(u?1:0)),l.__actions__.push({func:cu,args:[o],thisArg:void 0}),new cr(l,this.__chain__).thru(function(p){return u&&!p.length&&p.push(void 0),p}))}),J3=Z3;function Q3(){return H_(this)}function eL(){var r=this.__wrapped__;if(r instanceof St){var u=r;return this.__actions__.length&&(u=new St(this)),u=u.reverse(),u.__actions__.push({func:cu,args:[Sd],thisArg:void 0}),new cr(u,this.__chain__)}return this.thru(Sd)}function dh(r,u,a){var l=r.length;if(l<2)return l?ii(r[0]):[];for(var o=-1,p=Array(l);++o<l;)for(var d=r[o],y=-1;++y<l;)y!=o&&(p[o]=au(p[o]||d,r[y],u,a));return ii(dr(p,1),u,a)}var tL=wt(function(r){return dh(li(r,fn))}),nL=tL,rL=wt(function(r){var u=Kn(r);return fn(u)&&(u=void 0),dh(li(r,fn),yt(u))}),oL=rL,iL=wt(function(r){var u=Kn(r);return u=typeof u=="function"?u:void 0,dh(li(r,fn),void 0,u)}),aL=iL,uL=wt(ph),sL=uL;function $1(r,u,a){for(var l=-1,o=r.length,p=u.length,d={};++l<o;){var y=l<p?u[l]:void 0;a(d,r[l],y)}return d}function cL(r,u){return $1(r||[],u||[],W0)}function lL(r,u){return $1(r||[],u||[],Bd)}var fL=wt(function(r){var u=r.length,a=u>1?r[u-1]:void 0;return a=typeof a=="function"?(r.pop(),a):void 0,z1(r,a)}),pL=fL,qe={chunk:K2,compact:rM,concat:oM,difference:CM,differenceBy:IM,differenceWith:BM,drop:$M,dropRight:WM,dropRightWhile:GM,dropWhile:HM,fill:fk,findIndex:iA,findLastIndex:a1,first:Lm,flatten:jP,flattenDeep:PP,flattenDepth:wk,fromPairs:AP,head:Lm,indexOf:sD,initial:cD,intersection:pD,intersectionBy:hD,intersectionWith:vD,join:vN,last:Kn,lastIndexOf:EN,nth:rC,pull:sR,pullAll:P1,pullAllBy:cR,pullAllWith:lR,pullAt:hR,remove:RR,reverse:Sd,slice:rI,sortedIndex:vI,sortedIndexBy:gI,sortedIndexOf:bI,sortedLastIndex:mI,sortedLastIndexBy:_I,sortedLastIndexOf:OI,sortedUniq:wI,sortedUniqBy:xI,tail:zI,take:FI,takeRight:$I,takeRightWhile:WI,takeWhile:GI,union:TP,unionBy:N3,unionWith:R3,uniq:I3,uniqBy:L3,uniqWith:B3,unzip:ph,unzipWith:z1,without:K3,xor:nL,xorBy:oL,xorWith:aL,zip:sL,zipObject:cL,zipObjectDeep:lL,zipWith:pL},Ft={countBy:vM,each:Nm,eachRight:Cm,every:sk,filter:pk,find:aA,findLast:gk,flatMap:MP,flatMapDeep:_k,flatMapDepth:Ok,forEach:Nm,forEachRight:Cm,groupBy:Uk,includes:aD,invokeMap:TD,keyBy:_N,map:Rd,orderBy:yC,partition:nR,reduce:kR,reduceRight:NR,reject:CR,sample:XR,sampleSize:KR,shuffle:QR,size:nI,some:uI,sortBy:cI},dL={now:kP},qt={after:fA,ary:g_,before:m_,bind:__,bindKey:DT,curry:Kd,curryRight:qd,debounce:DP,defer:TM,delay:kM,flip:Ek,memoize:NP,negate:su,once:pC,overArgs:wC,partial:j1,partialRight:eR,rearg:MR,rest:zR,spread:AI,throttle:CP,unary:j3,wrap:q3},nt={castArray:RP,clone:IP,cloneDeep:LP,cloneDeepWith:Q2,cloneWith:tM,conformsTo:lM,eq:Zi,gt:Yk,gte:Kk,isArguments:q0,isArray:It,isArrayBuffer:ND,isArrayLike:ui,isArrayLikeObject:fn,isBoolean:RD,isBuffer:Id,isDate:zD,isElement:FD,isEmpty:UD,isEqual:BP,isEqualWith:XD,isError:Wd,isFinite:VD,isFunction:Ji,isInteger:f1,isLength:zP,isMap:FP,isMatch:KD,isMatchWith:qD,isNaN:JD,isNative:nN,isNil:$P,isNull:rN,isNumber:p1,isObject:fo,isObjectLike:pr,isPlainObject:_c,isRegExp:nh,isSafeInteger:uN,isSet:WP,isString:Dc,isSymbol:lo,isTypedArray:Ld,isUndefined:GP,isWeakMap:cN,isWeakSet:fN,lt:MN,lte:DN,toArray:y1,toFinite:Ro,toInteger:bt,toLength:r1,toNumber:co,toPlainObject:HP,toSafeInteger:y3,toString:Lt},Mn={add:cA,ceil:X2,divide:FM,floor:jk,max:zN,maxBy:FN,mean:WN,meanBy:GN,min:VN,minBy:KN,multiply:ZN,round:HR,subtract:II,sum:LI,sumBy:BI},hh={clamp:q2,inRange:rD,random:_R},ft={assign:hT,assignIn:Am,assignInWith:ac,assignWith:bT,at:_T,create:gM,defaults:xM,defaultsDeep:jM,entries:Rm,entriesIn:Im,extend:Am,extendWith:ac,findKey:dk,findLastKey:bk,forIn:Ik,forInRight:Lk,forOwn:Bk,forOwnRight:zk,functions:Fk,functionsIn:$k,get:G0,has:Qk,hasIn:UP,invert:OD,invertBy:SD,invoke:PD,keys:qn,keysIn:po,mapKeys:NN,mapValues:CN,merge:XP,mergeWith:V_,omit:lC,omitBy:fC,pick:YP,pickBy:g1,result:FR,set:VP,setWith:qR,toPairs:Rm,toPairsIn:Im,transform:g3,unset:$3,update:G3,updateWith:H3,values:na,valuesIn:Y3},Ur={at:J3,chain:H_,commit:nM,lodash:I,next:nC,plant:rR,reverse:eL,tap:HI,thru:cu,toIterator:p3,toJSON:yd,value:yd,valueOf:yd,wrapperChain:Q3},kt={camelCase:W2,capitalize:A_,deburr:T_,endsWith:VM,escape:e1,escapeRegExp:ak,kebabCase:bN,lowerCase:jN,lowerFirst:AN,pad:XC,padEnd:YC,padStart:VC,parseInt:ZC,repeat:IR,replace:LR,snakeCase:iI,split:SI,startCase:MI,startsWith:kI,template:s3,templateSettings:jd,toLower:d3,toUpper:v3,trim:b3,trimEnd:m3,trimStart:O3,truncate:S3,unescape:k3,upperCase:X3,upperFirst:Ud,words:G_},Rt={attempt:b_,bindAll:AT,cond:aM,conforms:cM,constant:K0,defaultTo:_M,flow:Nk,flowRight:Rk,identity:fr,iteratee:dN,matches:IN,matchesProperty:BN,method:UN,methodOf:YN,mixin:h1,noop:F0,nthArg:oC,over:gC,overEvery:EC,overSome:jC,property:KP,propertyOf:oR,range:SR,rangeRight:PR,stubArray:qP,stubFalse:e_,stubObject:DI,stubString:NI,stubTrue:CI,times:f3,toPath:h3,uniqueId:F3};function hL(){var r=new St(this.__wrapped__);return r.__actions__=ur(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=ur(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=ur(this.__views__),r}function yL(){if(this.__filtered__){var r=new St(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}var vL=Math.max,gL=Math.min;function bL(r,u,a){for(var l=-1,o=a.length;++l<o;){var p=a[l],d=p.size;switch(p.type){case"drop":r+=d;break;case"dropRight":u-=d;break;case"take":u=gL(u,r+d);break;case"takeRight":r=vL(r,u-d);break}}return{start:r,end:u}}var mL=1,_L=2,OL=Math.min;function wL(){var r=this.__wrapped__.value(),u=this.__dir__,a=It(r),l=u<0,o=a?r.length:0,p=bL(0,o,this.__views__),d=p.start,y=p.end,g=y-d,O=l?y:d-1,x=this.__iteratees__,w=x.length,j=0,P=OL(g,this.__takeCount__);if(!a||!l&&o==g&&P==g)return R1(r,this.__actions__);var k=[];e:for(;g--&&j<P;){O+=u;for(var T=-1,D=r[O];++T<w;){var B=x[T],z=B.iteratee,q=B.type,ne=z(D);if(q==_L)D=ne;else if(!ne){if(q==mL)continue e;break e}}k[j++]=D}return k}/**
  21. * @license
  22. * Lodash (Custom Build) <https://lodash.com/>
  23. * Build: `lodash modularize exports="es" -o ./`
  24. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  25. * Released under MIT license <https://lodash.com/license>
  26. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  27. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  28. */var xL="4.17.21",EL=2,SL=1,jL=3,W1=4294967295,PL=Array.prototype,AL=Object.prototype,G1=AL.hasOwnProperty,Ym=oc?oc.iterator:void 0,TL=Math.max,Vm=Math.min,yh=function(r){return function(u,a,l){if(l==null){var o=fo(a),p=o&&qn(a),d=p&&p.length&&Mc(a,p);(d?d.length:o)||(l=a,a=u,u=this)}return r(u,a,l)}}(h1);I.after=qt.after;I.ary=qt.ary;I.assign=ft.assign;I.assignIn=ft.assignIn;I.assignInWith=ft.assignInWith;I.assignWith=ft.assignWith;I.at=ft.at;I.before=qt.before;I.bind=qt.bind;I.bindAll=Rt.bindAll;I.bindKey=qt.bindKey;I.castArray=nt.castArray;I.chain=Ur.chain;I.chunk=qe.chunk;I.compact=qe.compact;I.concat=qe.concat;I.cond=Rt.cond;I.conforms=Rt.conforms;I.constant=Rt.constant;I.countBy=Ft.countBy;I.create=ft.create;I.curry=qt.curry;I.curryRight=qt.curryRight;I.debounce=qt.debounce;I.defaults=ft.defaults;I.defaultsDeep=ft.defaultsDeep;I.defer=qt.defer;I.delay=qt.delay;I.difference=qe.difference;I.differenceBy=qe.differenceBy;I.differenceWith=qe.differenceWith;I.drop=qe.drop;I.dropRight=qe.dropRight;I.dropRightWhile=qe.dropRightWhile;I.dropWhile=qe.dropWhile;I.fill=qe.fill;I.filter=Ft.filter;I.flatMap=Ft.flatMap;I.flatMapDeep=Ft.flatMapDeep;I.flatMapDepth=Ft.flatMapDepth;I.flatten=qe.flatten;I.flattenDeep=qe.flattenDeep;I.flattenDepth=qe.flattenDepth;I.flip=qt.flip;I.flow=Rt.flow;I.flowRight=Rt.flowRight;I.fromPairs=qe.fromPairs;I.functions=ft.functions;I.functionsIn=ft.functionsIn;I.groupBy=Ft.groupBy;I.initial=qe.initial;I.intersection=qe.intersection;I.intersectionBy=qe.intersectionBy;I.intersectionWith=qe.intersectionWith;I.invert=ft.invert;I.invertBy=ft.invertBy;I.invokeMap=Ft.invokeMap;I.iteratee=Rt.iteratee;I.keyBy=Ft.keyBy;I.keys=qn;I.keysIn=ft.keysIn;I.map=Ft.map;I.mapKeys=ft.mapKeys;I.mapValues=ft.mapValues;I.matches=Rt.matches;I.matchesProperty=Rt.matchesProperty;I.memoize=qt.memoize;I.merge=ft.merge;I.mergeWith=ft.mergeWith;I.method=Rt.method;I.methodOf=Rt.methodOf;I.mixin=yh;I.negate=su;I.nthArg=Rt.nthArg;I.omit=ft.omit;I.omitBy=ft.omitBy;I.once=qt.once;I.orderBy=Ft.orderBy;I.over=Rt.over;I.overArgs=qt.overArgs;I.overEvery=Rt.overEvery;I.overSome=Rt.overSome;I.partial=qt.partial;I.partialRight=qt.partialRight;I.partition=Ft.partition;I.pick=ft.pick;I.pickBy=ft.pickBy;I.property=Rt.property;I.propertyOf=Rt.propertyOf;I.pull=qe.pull;I.pullAll=qe.pullAll;I.pullAllBy=qe.pullAllBy;I.pullAllWith=qe.pullAllWith;I.pullAt=qe.pullAt;I.range=Rt.range;I.rangeRight=Rt.rangeRight;I.rearg=qt.rearg;I.reject=Ft.reject;I.remove=qe.remove;I.rest=qt.rest;I.reverse=qe.reverse;I.sampleSize=Ft.sampleSize;I.set=ft.set;I.setWith=ft.setWith;I.shuffle=Ft.shuffle;I.slice=qe.slice;I.sortBy=Ft.sortBy;I.sortedUniq=qe.sortedUniq;I.sortedUniqBy=qe.sortedUniqBy;I.split=kt.split;I.spread=qt.spread;I.tail=qe.tail;I.take=qe.take;I.takeRight=qe.takeRight;I.takeRightWhile=qe.takeRightWhile;I.takeWhile=qe.takeWhile;I.tap=Ur.tap;I.throttle=qt.throttle;I.thru=cu;I.toArray=nt.toArray;I.toPairs=ft.toPairs;I.toPairsIn=ft.toPairsIn;I.toPath=Rt.toPath;I.toPlainObject=nt.toPlainObject;I.transform=ft.transform;I.unary=qt.unary;I.union=qe.union;I.unionBy=qe.unionBy;I.unionWith=qe.unionWith;I.uniq=qe.uniq;I.uniqBy=qe.uniqBy;I.uniqWith=qe.uniqWith;I.unset=ft.unset;I.unzip=qe.unzip;I.unzipWith=qe.unzipWith;I.update=ft.update;I.updateWith=ft.updateWith;I.values=ft.values;I.valuesIn=ft.valuesIn;I.without=qe.without;I.words=kt.words;I.wrap=qt.wrap;I.xor=qe.xor;I.xorBy=qe.xorBy;I.xorWith=qe.xorWith;I.zip=qe.zip;I.zipObject=qe.zipObject;I.zipObjectDeep=qe.zipObjectDeep;I.zipWith=qe.zipWith;I.entries=ft.toPairs;I.entriesIn=ft.toPairsIn;I.extend=ft.assignIn;I.extendWith=ft.assignInWith;yh(I,I);I.add=Mn.add;I.attempt=Rt.attempt;I.camelCase=kt.camelCase;I.capitalize=kt.capitalize;I.ceil=Mn.ceil;I.clamp=hh.clamp;I.clone=nt.clone;I.cloneDeep=nt.cloneDeep;I.cloneDeepWith=nt.cloneDeepWith;I.cloneWith=nt.cloneWith;I.conformsTo=nt.conformsTo;I.deburr=kt.deburr;I.defaultTo=Rt.defaultTo;I.divide=Mn.divide;I.endsWith=kt.endsWith;I.eq=nt.eq;I.escape=kt.escape;I.escapeRegExp=kt.escapeRegExp;I.every=Ft.every;I.find=Ft.find;I.findIndex=qe.findIndex;I.findKey=ft.findKey;I.findLast=Ft.findLast;I.findLastIndex=qe.findLastIndex;I.findLastKey=ft.findLastKey;I.floor=Mn.floor;I.forEach=Ft.forEach;I.forEachRight=Ft.forEachRight;I.forIn=ft.forIn;I.forInRight=ft.forInRight;I.forOwn=ft.forOwn;I.forOwnRight=ft.forOwnRight;I.get=ft.get;I.gt=nt.gt;I.gte=nt.gte;I.has=ft.has;I.hasIn=ft.hasIn;I.head=qe.head;I.identity=fr;I.includes=Ft.includes;I.indexOf=qe.indexOf;I.inRange=hh.inRange;I.invoke=ft.invoke;I.isArguments=nt.isArguments;I.isArray=It;I.isArrayBuffer=nt.isArrayBuffer;I.isArrayLike=nt.isArrayLike;I.isArrayLikeObject=nt.isArrayLikeObject;I.isBoolean=nt.isBoolean;I.isBuffer=nt.isBuffer;I.isDate=nt.isDate;I.isElement=nt.isElement;I.isEmpty=nt.isEmpty;I.isEqual=nt.isEqual;I.isEqualWith=nt.isEqualWith;I.isError=nt.isError;I.isFinite=nt.isFinite;I.isFunction=nt.isFunction;I.isInteger=nt.isInteger;I.isLength=nt.isLength;I.isMap=nt.isMap;I.isMatch=nt.isMatch;I.isMatchWith=nt.isMatchWith;I.isNaN=nt.isNaN;I.isNative=nt.isNative;I.isNil=nt.isNil;I.isNull=nt.isNull;I.isNumber=nt.isNumber;I.isObject=fo;I.isObjectLike=nt.isObjectLike;I.isPlainObject=nt.isPlainObject;I.isRegExp=nt.isRegExp;I.isSafeInteger=nt.isSafeInteger;I.isSet=nt.isSet;I.isString=nt.isString;I.isSymbol=nt.isSymbol;I.isTypedArray=nt.isTypedArray;I.isUndefined=nt.isUndefined;I.isWeakMap=nt.isWeakMap;I.isWeakSet=nt.isWeakSet;I.join=qe.join;I.kebabCase=kt.kebabCase;I.last=Kn;I.lastIndexOf=qe.lastIndexOf;I.lowerCase=kt.lowerCase;I.lowerFirst=kt.lowerFirst;I.lt=nt.lt;I.lte=nt.lte;I.max=Mn.max;I.maxBy=Mn.maxBy;I.mean=Mn.mean;I.meanBy=Mn.meanBy;I.min=Mn.min;I.minBy=Mn.minBy;I.stubArray=Rt.stubArray;I.stubFalse=Rt.stubFalse;I.stubObject=Rt.stubObject;I.stubString=Rt.stubString;I.stubTrue=Rt.stubTrue;I.multiply=Mn.multiply;I.nth=qe.nth;I.noop=Rt.noop;I.now=dL.now;I.pad=kt.pad;I.padEnd=kt.padEnd;I.padStart=kt.padStart;I.parseInt=kt.parseInt;I.random=hh.random;I.reduce=Ft.reduce;I.reduceRight=Ft.reduceRight;I.repeat=kt.repeat;I.replace=kt.replace;I.result=ft.result;I.round=Mn.round;I.sample=Ft.sample;I.size=Ft.size;I.snakeCase=kt.snakeCase;I.some=Ft.some;I.sortedIndex=qe.sortedIndex;I.sortedIndexBy=qe.sortedIndexBy;I.sortedIndexOf=qe.sortedIndexOf;I.sortedLastIndex=qe.sortedLastIndex;I.sortedLastIndexBy=qe.sortedLastIndexBy;I.sortedLastIndexOf=qe.sortedLastIndexOf;I.startCase=kt.startCase;I.startsWith=kt.startsWith;I.subtract=Mn.subtract;I.sum=Mn.sum;I.sumBy=Mn.sumBy;I.template=kt.template;I.times=Rt.times;I.toFinite=nt.toFinite;I.toInteger=bt;I.toLength=nt.toLength;I.toLower=kt.toLower;I.toNumber=nt.toNumber;I.toSafeInteger=nt.toSafeInteger;I.toString=nt.toString;I.toUpper=kt.toUpper;I.trim=kt.trim;I.trimEnd=kt.trimEnd;I.trimStart=kt.trimStart;I.truncate=kt.truncate;I.unescape=kt.unescape;I.uniqueId=Rt.uniqueId;I.upperCase=kt.upperCase;I.upperFirst=kt.upperFirst;I.each=Ft.forEach;I.eachRight=Ft.forEachRight;I.first=qe.head;yh(I,function(){var r={};return ho(I,function(u,a){G1.call(I.prototype,a)||(r[a]=u)}),r}(),{chain:!1});I.VERSION=xL;(I.templateSettings=kt.templateSettings).imports._=I;xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){I[r].placeholder=I});xr(["drop","take"],function(r,u){St.prototype[r]=function(a){a=a===void 0?1:TL(bt(a),0);var l=this.__filtered__&&!u?new St(this):this.clone();return l.__filtered__?l.__takeCount__=Vm(a,l.__takeCount__):l.__views__.push({size:Vm(a,W1),type:r+(l.__dir__<0?"Right":"")}),l},St.prototype[r+"Right"]=function(a){return this.reverse()[r](a).reverse()}});xr(["filter","map","takeWhile"],function(r,u){var a=u+1,l=a==SL||a==jL;St.prototype[r]=function(o){var p=this.clone();return p.__iteratees__.push({iteratee:yt(o),type:a}),p.__filtered__=p.__filtered__||l,p}});xr(["head","last"],function(r,u){var a="take"+(u?"Right":"");St.prototype[r]=function(){return this[a](1).value()[0]}});xr(["initial","tail"],function(r,u){var a="drop"+(u?"":"Right");St.prototype[r]=function(){return this.__filtered__?new St(this):this[a](1)}});St.prototype.compact=function(){return this.filter(fr)};St.prototype.find=function(r){return this.filter(r).head()};St.prototype.findLast=function(r){return this.reverse().find(r)};St.prototype.invokeMap=wt(function(r,u){return typeof r=="function"?new St(this):this.map(function(a){return uu(a,r,u)})});St.prototype.reject=function(r){return this.filter(su(yt(r)))};St.prototype.slice=function(r,u){r=bt(r);var a=this;return a.__filtered__&&(r>0||u<0)?new St(a):(r<0?a=a.takeRight(-r):r&&(a=a.drop(r)),u!==void 0&&(u=bt(u),a=u<0?a.dropRight(-u):a.take(u-r)),a)};St.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()};St.prototype.toArray=function(){return this.take(W1)};ho(St.prototype,function(r,u){var a=/^(?:filter|find|map|reject)|While$/.test(u),l=/^(?:head|last)$/.test(u),o=I[l?"take"+(u=="last"?"Right":""):u],p=l||/^find/.test(u);!o||(I.prototype[u]=function(){var d=this.__wrapped__,y=l?[1]:arguments,g=d instanceof St,O=y[0],x=g||It(d),w=function(B){var z=o.apply(I,ru([B],y));return l&&j?z[0]:z};x&&a&&typeof O=="function"&&O.length!=1&&(g=x=!1);var j=this.__chain__,P=!!this.__actions__.length,k=p&&!j,T=g&&!P;if(!p&&x){d=T?d:new St(this);var D=r.apply(d,y);return D.__actions__.push({func:cu,args:[w],thisArg:void 0}),new cr(D,j)}return k&&T?r.apply(this,y):(D=this.thru(w),k?l?D.value()[0]:D.value():D)})});xr(["pop","push","shift","sort","splice","unshift"],function(r){var u=PL[r],a=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",l=/^(?:pop|shift)$/.test(r);I.prototype[r]=function(){var o=arguments;if(l&&!this.__chain__){var p=this.value();return u.apply(It(p)?p:[],o)}return this[a](function(d){return u.apply(It(d)?d:[],o)})}});ho(St.prototype,function(r,u){var a=I[u];if(a){var l=a.name+"";G1.call(Xi,l)||(Xi[l]=[]),Xi[l].push({name:u,func:a})}});Xi[Pc(void 0,EL).name]=[{name:"wrapper",func:void 0}];St.prototype.clone=hL;St.prototype.reverse=yL;St.prototype.value=wL;I.prototype.at=Ur.at;I.prototype.chain=Ur.wrapperChain;I.prototype.commit=Ur.commit;I.prototype.next=Ur.next;I.prototype.plant=Ur.plant;I.prototype.reverse=Ur.reverse;I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=Ur.value;I.prototype.first=I.prototype.head;Ym&&(I.prototype[Ym]=Ur.toIterator);const ML=[{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"}];var kL={flowElementList:ML};var Be={exports:{}};(function(r,u){(function(a,l){r.exports=l()})(window,function(){return function(a){var l={};function o(p){if(l[p])return l[p].exports;var d=l[p]={i:p,l:!1,exports:{}};return a[p].call(d.exports,d,d.exports,o),d.l=!0,d.exports}return o.m=a,o.c=l,o.d=function(p,d,y){o.o(p,d)||Object.defineProperty(p,d,{enumerable:!0,get:y})},o.r=function(p){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},o.t=function(p,d){if(1&d&&(p=o(p)),8&d||4&d&&typeof p=="object"&&p&&p.__esModule)return p;var y=Object.create(null);if(o.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:p}),2&d&&typeof p!="string")for(var g in p)o.d(y,g,function(O){return p[O]}.bind(null,g));return y},o.n=function(p){var d=p&&p.__esModule?function(){return p.default}:function(){return p};return o.d(d,"a",d),d},o.o=function(p,d){return Object.prototype.hasOwnProperty.call(p,d)},o.p="",o(o.s=215)}([function(a,l,o){o.d(l,"a",function(){return V}),o.d(l,"b",function(){return ne}),o.d(l,"c",function(){return Me}),o.d(l,"d",function(){return Je}),o.d(l,"e",function(){return B}),o.d(l,"f",function(){return q}),o.d(l,"g",function(){return B}),o.d(l,"h",function(){return Te}),o.d(l,"i",function(){return d}),o.d(l,"j",function(){return Ze}),o.d(l,"k",function(){return L});var p,d,y,g,O,x,w,j={},P=[],k=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function T(te,K){for(var X in K)te[X]=K[X];return te}function D(te){var K=te.parentNode;K&&K.removeChild(te)}function B(te,K,X){var fe,xe,me,Fe={};for(me in K)me=="key"?fe=K[me]:me=="ref"?xe=K[me]:Fe[me]=K[me];if(arguments.length>2&&(Fe.children=arguments.length>3?p.call(arguments,2):X),typeof te=="function"&&te.defaultProps!=null)for(me in te.defaultProps)Fe[me]===void 0&&(Fe[me]=te.defaultProps[me]);return z(te,Fe,fe,xe,null)}function z(te,K,X,fe,xe){var me={type:te,props:K,key:X,ref:fe,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:xe==null?++y:xe};return xe==null&&d.vnode!=null&&d.vnode(me),me}function q(){return{current:null}}function ne(te){return te.children}function V(te,K){this.props=te,this.context=K}function Z(te,K){if(K==null)return te.__?Z(te.__,te.__.__k.indexOf(te)+1):null;for(var X;K<te.__k.length;K++)if((X=te.__k[K])!=null&&X.__e!=null)return X.__e;return typeof te.type=="function"?Z(te):null}function ee(te){var K,X;if((te=te.__)!=null&&te.__c!=null){for(te.__e=te.__c.base=null,K=0;K<te.__k.length;K++)if((X=te.__k[K])!=null&&X.__e!=null){te.__e=te.__c.base=X.__e;break}return ee(te)}}function W(te){(!te.__d&&(te.__d=!0)&&g.push(te)&&!R.__r++||x!==d.debounceRendering)&&((x=d.debounceRendering)||O)(R)}function R(){for(var te;R.__r=g.length;)te=g.sort(function(K,X){return K.__v.__b-X.__v.__b}),g=[],te.some(function(K){var X,fe,xe,me,Fe,He;K.__d&&(Fe=(me=(X=K).__v).__e,(He=X.__P)&&(fe=[],(xe=T({},me)).__v=me.__v+1,ve(He,me,xe,X.__n,He.ownerSVGElement!==void 0,me.__h!=null?[Fe]:null,fe,Fe==null?Z(me):Fe,me.__h),ce(fe,me),me.__e!=Fe&&ee(me)))})}function F(te,K,X,fe,xe,me,Fe,He,Qe,Ve){var Oe,ze,re,Le,ut,xt,ot,vt=fe&&fe.__k||P,At=vt.length;for(X.__k=[],Oe=0;Oe<K.length;Oe++)if((Le=X.__k[Oe]=(Le=K[Oe])==null||typeof Le=="boolean"?null:typeof Le=="string"||typeof Le=="number"||typeof Le=="bigint"?z(null,Le,null,null,Le):Array.isArray(Le)?z(ne,{children:Le},null,null,null):Le.__b>0?z(Le.type,Le.props,Le.key,null,Le.__v):Le)!=null){if(Le.__=X,Le.__b=X.__b+1,(re=vt[Oe])===null||re&&Le.key==re.key&&Le.type===re.type)vt[Oe]=void 0;else for(ze=0;ze<At;ze++){if((re=vt[ze])&&Le.key==re.key&&Le.type===re.type){vt[ze]=void 0;break}re=null}ve(te,Le,re=re||j,xe,me,Fe,He,Qe,Ve),ut=Le.__e,(ze=Le.ref)&&re.ref!=ze&&(ot||(ot=[]),re.ref&&ot.push(re.ref,null,Le),ot.push(ze,Le.__c||ut,Le)),ut!=null?(xt==null&&(xt=ut),typeof Le.type=="function"&&Le.__k===re.__k?Le.__d=Qe=A(Le,Qe,te):Qe=G(te,Le,re,vt,ut,Qe),typeof X.type=="function"&&(X.__d=Qe)):Qe&&re.__e==Qe&&Qe.parentNode!=te&&(Qe=Z(re))}for(X.__e=xt,Oe=At;Oe--;)vt[Oe]!=null&&(typeof X.type=="function"&&vt[Oe].__e!=null&&vt[Oe].__e==X.__d&&(X.__d=Z(fe,Oe+1)),je(vt[Oe],vt[Oe]));if(ot)for(Oe=0;Oe<ot.length;Oe++)_e(ot[Oe],ot[++Oe],ot[++Oe])}function A(te,K,X){for(var fe,xe=te.__k,me=0;xe&&me<xe.length;me++)(fe=xe[me])&&(fe.__=te,K=typeof fe.type=="function"?A(fe,K,X):G(X,fe,fe,xe,fe.__e,K));return K}function L(te,K){return K=K||[],te==null||typeof te=="boolean"||(Array.isArray(te)?te.some(function(X){L(X,K)}):K.push(te)),K}function G(te,K,X,fe,xe,me){var Fe,He,Qe;if(K.__d!==void 0)Fe=K.__d,K.__d=void 0;else if(X==null||xe!=me||xe.parentNode==null)e:if(me==null||me.parentNode!==te)te.appendChild(xe),Fe=null;else{for(He=me,Qe=0;(He=He.nextSibling)&&Qe<fe.length;Qe+=2)if(He==xe)break e;te.insertBefore(xe,me),Fe=me}return Fe!==void 0?Fe:xe.nextSibling}function oe(te,K,X){K[0]==="-"?te.setProperty(K,X):te[K]=X==null?"":typeof X!="number"||k.test(K)?X:X+"px"}function le(te,K,X,fe,xe){var me;e:if(K==="style")if(typeof X=="string")te.style.cssText=X;else{if(typeof fe=="string"&&(te.style.cssText=fe=""),fe)for(K in fe)X&&K in X||oe(te.style,K,"");if(X)for(K in X)fe&&X[K]===fe[K]||oe(te.style,K,X[K])}else if(K[0]==="o"&&K[1]==="n")me=K!==(K=K.replace(/Capture$/,"")),K=K.toLowerCase()in te?K.toLowerCase().slice(2):K.slice(2),te.l||(te.l={}),te.l[K+me]=X,X?fe||te.addEventListener(K,me?Se:be,me):te.removeEventListener(K,me?Se:be,me);else if(K!=="dangerouslySetInnerHTML"){if(xe)K=K.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(K!=="href"&&K!=="list"&&K!=="form"&&K!=="tabIndex"&&K!=="download"&&K in te)try{te[K]=X==null?"":X;break e}catch{}typeof X=="function"||(X!=null&&(X!==!1||K[0]==="a"&&K[1]==="r")?te.setAttribute(K,X):te.removeAttribute(K))}}function be(te){this.l[te.type+!1](d.event?d.event(te):te)}function Se(te){this.l[te.type+!0](d.event?d.event(te):te)}function ve(te,K,X,fe,xe,me,Fe,He,Qe){var Ve,Oe,ze,re,Le,ut,xt,ot,vt,At,Bt,lt=K.type;if(K.constructor!==void 0)return null;X.__h!=null&&(Qe=X.__h,He=K.__e=X.__e,K.__h=null,me=[He]),(Ve=d.__b)&&Ve(K);try{e:if(typeof lt=="function"){if(ot=K.props,vt=(Ve=lt.contextType)&&fe[Ve.__c],At=Ve?vt?vt.props.value:Ve.__:fe,X.__c?xt=(Oe=K.__c=X.__c).__=Oe.__E:("prototype"in lt&&lt.prototype.render?K.__c=Oe=new lt(ot,At):(K.__c=Oe=new V(ot,At),Oe.constructor=lt,Oe.render=Ie),vt&&vt.sub(Oe),Oe.props=ot,Oe.state||(Oe.state={}),Oe.context=At,Oe.__n=fe,ze=Oe.__d=!0,Oe.__h=[]),Oe.__s==null&&(Oe.__s=Oe.state),lt.getDerivedStateFromProps!=null&&(Oe.__s==Oe.state&&(Oe.__s=T({},Oe.__s)),T(Oe.__s,lt.getDerivedStateFromProps(ot,Oe.__s))),re=Oe.props,Le=Oe.state,ze)lt.getDerivedStateFromProps==null&&Oe.componentWillMount!=null&&Oe.componentWillMount(),Oe.componentDidMount!=null&&Oe.__h.push(Oe.componentDidMount);else{if(lt.getDerivedStateFromProps==null&&ot!==re&&Oe.componentWillReceiveProps!=null&&Oe.componentWillReceiveProps(ot,At),!Oe.__e&&Oe.shouldComponentUpdate!=null&&Oe.shouldComponentUpdate(ot,Oe.__s,At)===!1||K.__v===X.__v){Oe.props=ot,Oe.state=Oe.__s,K.__v!==X.__v&&(Oe.__d=!1),Oe.__v=K,K.__e=X.__e,K.__k=X.__k,K.__k.forEach(function(Yt){Yt&&(Yt.__=K)}),Oe.__h.length&&Fe.push(Oe);break e}Oe.componentWillUpdate!=null&&Oe.componentWillUpdate(ot,Oe.__s,At),Oe.componentDidUpdate!=null&&Oe.__h.push(function(){Oe.componentDidUpdate(re,Le,ut)})}Oe.context=At,Oe.props=ot,Oe.state=Oe.__s,(Ve=d.__r)&&Ve(K),Oe.__d=!1,Oe.__v=K,Oe.__P=te,Ve=Oe.render(Oe.props,Oe.state,Oe.context),Oe.state=Oe.__s,Oe.getChildContext!=null&&(fe=T(T({},fe),Oe.getChildContext())),ze||Oe.getSnapshotBeforeUpdate==null||(ut=Oe.getSnapshotBeforeUpdate(re,Le)),Bt=Ve!=null&&Ve.type===ne&&Ve.key==null?Ve.props.children:Ve,F(te,Array.isArray(Bt)?Bt:[Bt],K,X,fe,xe,me,Fe,He,Qe),Oe.base=K.__e,K.__h=null,Oe.__h.length&&Fe.push(Oe),xt&&(Oe.__E=Oe.__=null),Oe.__e=!1}else me==null&&K.__v===X.__v?(K.__k=X.__k,K.__e=X.__e):K.__e=he(X.__e,K,X,fe,xe,me,Fe,Qe);(Ve=d.diffed)&&Ve(K)}catch(Yt){K.__v=null,(Qe||me!=null)&&(K.__e=He,K.__h=!!Qe,me[me.indexOf(He)]=null),d.__e(Yt,K,X)}}function ce(te,K){d.__c&&d.__c(K,te),te.some(function(X){try{te=X.__h,X.__h=[],te.some(function(fe){fe.call(X)})}catch(fe){d.__e(fe,X.__v)}})}function he(te,K,X,fe,xe,me,Fe,He){var Qe,Ve,Oe,ze=X.props,re=K.props,Le=K.type,ut=0;if(Le==="svg"&&(xe=!0),me!=null){for(;ut<me.length;ut++)if((Qe=me[ut])&&"setAttribute"in Qe==!!Le&&(Le?Qe.localName===Le:Qe.nodeType===3)){te=Qe,me[ut]=null;break}}if(te==null){if(Le===null)return document.createTextNode(re);te=xe?document.createElementNS("http://www.w3.org/2000/svg",Le):document.createElement(Le,re.is&&re),me=null,He=!1}if(Le===null)ze===re||He&&te.data===re||(te.data=re);else{if(me=me&&p.call(te.childNodes),Ve=(ze=X.props||j).dangerouslySetInnerHTML,Oe=re.dangerouslySetInnerHTML,!He){if(me!=null)for(ze={},ut=0;ut<te.attributes.length;ut++)ze[te.attributes[ut].name]=te.attributes[ut].value;(Oe||Ve)&&(Oe&&(Ve&&Oe.__html==Ve.__html||Oe.__html===te.innerHTML)||(te.innerHTML=Oe&&Oe.__html||""))}if(function(xt,ot,vt,At,Bt){var lt;for(lt in vt)lt==="children"||lt==="key"||lt in ot||le(xt,lt,null,vt[lt],At);for(lt in ot)Bt&&typeof ot[lt]!="function"||lt==="children"||lt==="key"||lt==="value"||lt==="checked"||vt[lt]===ot[lt]||le(xt,lt,ot[lt],vt[lt],At)}(te,re,ze,xe,He),Oe)K.__k=[];else if(ut=K.props.children,F(te,Array.isArray(ut)?ut:[ut],K,X,fe,xe&&Le!=="foreignObject",me,Fe,me?me[0]:X.__k&&Z(X,0),He),me!=null)for(ut=me.length;ut--;)me[ut]!=null&&D(me[ut]);He||("value"in re&&(ut=re.value)!==void 0&&(ut!==ze.value||ut!==te.value||Le==="progress"&&!ut)&&le(te,"value",ut,ze.value,!1),"checked"in re&&(ut=re.checked)!==void 0&&ut!==te.checked&&le(te,"checked",ut,ze.checked,!1))}return te}function _e(te,K,X){try{typeof te=="function"?te(K):te.current=K}catch(fe){d.__e(fe,X)}}function je(te,K,X){var fe,xe;if(d.unmount&&d.unmount(te),(fe=te.ref)&&(fe.current&&fe.current!==te.__e||_e(fe,null,K)),(fe=te.__c)!=null){if(fe.componentWillUnmount)try{fe.componentWillUnmount()}catch(me){d.__e(me,K)}fe.base=fe.__P=null}if(fe=te.__k)for(xe=0;xe<fe.length;xe++)fe[xe]&&je(fe[xe],K,typeof te.type!="function");X||te.__e==null||D(te.__e),te.__e=te.__d=void 0}function Ie(te,K,X){return this.constructor(te,X)}function Ze(te,K,X){var fe,xe,me;d.__&&d.__(te,K),xe=(fe=typeof X=="function")?null:X&&X.__k||K.__k,me=[],ve(K,te=(!fe&&X||K).__k=B(ne,null,[te]),xe||j,j,K.ownerSVGElement!==void 0,!fe&&X?[X]:xe?null:K.firstChild?p.call(K.childNodes):null,me,!fe&&X?X:xe?xe.__e:K.firstChild,fe),ce(me,te)}function Te(te,K){Ze(te,K,Te)}function Me(te,K,X){var fe,xe,me,Fe=T({},te.props);for(me in K)me=="key"?fe=K[me]:me=="ref"?xe=K[me]:Fe[me]=K[me];return arguments.length>2&&(Fe.children=arguments.length>3?p.call(arguments,2):X),z(te.type,Fe,fe||te.key,xe||te.ref,null)}function Je(te,K){var X={__c:K="__cC"+w++,__:te,Consumer:function(fe,xe){return fe.children(xe)},Provider:function(fe){var xe,me;return this.getChildContext||(xe=[],(me={})[K]=this,this.getChildContext=function(){return me},this.shouldComponentUpdate=function(Fe){this.props.value!==Fe.value&&xe.some(W)},this.sub=function(Fe){xe.push(Fe);var He=Fe.componentWillUnmount;Fe.componentWillUnmount=function(){xe.splice(xe.indexOf(Fe),1),He&&He.call(Fe)}}),fe.children}};return X.Provider.__=X.Consumer.contextType=X}p=P.slice,d={__e:function(te,K){for(var X,fe,xe;K=K.__;)if((X=K.__c)&&!X.__)try{if((fe=X.constructor)&&fe.getDerivedStateFromError!=null&&(X.setState(fe.getDerivedStateFromError(te)),xe=X.__d),X.componentDidCatch!=null&&(X.componentDidCatch(te),xe=X.__d),xe)return X.__E=X}catch(me){te=me}throw te}},y=0,V.prototype.setState=function(te,K){var X;X=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=T({},this.state),typeof te=="function"&&(te=te(T({},X),this.props)),te&&T(X,te),te!=null&&this.__v&&(K&&this.__h.push(K),W(this))},V.prototype.forceUpdate=function(te){this.__v&&(this.__e=!0,te&&this.__h.push(te),W(this))},V.prototype.render=ne,g=[],O=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R.__r=0,w=0},function(a,l,o){(function(p,d){o.d(l,"a",function(){return W}),o.d(l,"b",function(){return pa}),o.d(l,"c",function(){return hr}),o.d(l,"d",function(){return it}),o.d(l,"e",function(){return Ce}),o.d(l,"f",function(){return Ne}),o.d(l,"g",function(){return et}),o.d(l,"h",function(){return Oo}),o.d(l,"i",function(){return Bt}),o.d(l,"j",function(){return We}),o.d(l,"k",function(){return Pr}),o.d(l,"l",function(){return ca}),o.d(l,"m",function(){return xt}),o.d(l,"n",function(){return mo}),o.d(l,"o",function(){return A}),o.d(l,"p",function(){return ju}),o.d(l,"q",function(){return Ar}),o.d(l,"r",function(){return xu}),o.d(l,"s",function(){return Gn}),o.d(l,"t",function(){return Wo}),o.d(l,"u",function(){return di}),o.d(l,"v",function(){return Xc}),o.d(l,"w",function(){return Su}),o.d(l,"x",function(){return Ho}),o.d(l,"y",function(){return tr}),o.d(l,"z",function(){return Jt}),o.d(l,"A",function(){return Cn}),o.d(l,"B",function(){return Tr}),o.d(l,"C",function(){return Ve}),o.d(l,"D",function(){return Au}),o.d(l,"E",function(){return bo}),o.d(l,"F",function(){return go}),o.d(l,"G",function(){return Gc}),o.d(l,"H",function(){return yu}),o.d(l,"I",function(){return Vc}),o.d(l,"J",function(){return $n}),o.d(l,"K",function(){return ue}),o.d(l,"L",function(){return yn}),o.d(l,"M",function(){return Tu});var y=[];Object.freeze(y);var g={};function O(){return++Ye.mobxGuid}function x(b){throw w(!1,b),"X"}function w(b,m){if(!b)throw new Error("[mobx] "+(m||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(g);function j(b){var m=!1;return function(){if(!m)return m=!0,b.apply(this,arguments)}}var P=function(){};function k(b){return b!==null&&typeof b=="object"}function T(b){if(b===null||typeof b!="object")return!1;var m=Object.getPrototypeOf(b);return m===Object.prototype||m===null}function D(b,m,S){Object.defineProperty(b,m,{enumerable:!1,writable:!0,configurable:!0,value:S})}function B(b,m){var S="isMobX"+b;return m.prototype[S]=!0,function(C){return k(C)&&C[S]===!0}}function z(b){return b instanceof Map}function q(b){return b instanceof Set}function ne(b){var m=new Set;for(var S in b)m.add(S);return Object.getOwnPropertySymbols(b).forEach(function(C){Object.getOwnPropertyDescriptor(b,C).enumerable&&m.add(C)}),Array.from(m)}function V(b){return b&&b.toString?b.toString():new String(b).toString()}function Z(b){return b===null?null:typeof b=="object"?""+b:b}var ee=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:Object.getOwnPropertyNames,W=Symbol("mobx administration"),R=function(){function b(m){m===void 0&&(m="Atom@"+O()),this.name=m,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=ze.NOT_TRACKING}return b.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(m){return m()})},b.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(m){return m()})},b.prototype.reportObserved=function(){return du(this)},b.prototype.reportChanged=function(){zn(),function(m){m.lowestObserverState!==ze.STALE&&(m.lowestObserverState=ze.STALE,m.observers.forEach(function(S){S.dependenciesState===ze.UP_TO_DATE&&(S.isTracing!==re.NONE&&jr(S,m),S.onBecomeStale()),S.dependenciesState=ze.STALE}))}(this),Fn()},b.prototype.toString=function(){return this.name},b}(),F=B("Atom",R);function A(b,m,S){m===void 0&&(m=P),S===void 0&&(S=P);var C,H=new R(b);return m!==P&&bu("onBecomeObserved",H,m,C),S!==P&&bo(H,S),H}var L={identity:function(b,m){return b===m},structural:function(b,m){return ha(b,m)},default:function(b,m){return Object.is(b,m)},shallow:function(b,m){return ha(b,m,1)}},G=function(b,m){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var H in C)C.hasOwnProperty(H)&&(S[H]=C[H])},G(b,m)};/*! *****************************************************************************
  29. Copyright (c) Microsoft Corporation. All rights reserved.
  30. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  31. this file except in compliance with the License. You may obtain a copy of the
  32. License at http://www.apache.org/licenses/LICENSE-2.0
  33. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  34. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  35. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  36. MERCHANTABLITY OR NON-INFRINGEMENT.
  37. See the Apache Version 2.0 License for specific language governing permissions
  38. and limitations under the License.
  39. ***************************************************************************** */var oe=function(){return oe=Object.assign||function(b){for(var m,S=1,C=arguments.length;S<C;S++)for(var H in m=arguments[S])Object.prototype.hasOwnProperty.call(m,H)&&(b[H]=m[H]);return b},oe.apply(this,arguments)};function le(b){var m=typeof Symbol=="function"&&b[Symbol.iterator],S=0;return m?m.call(b):{next:function(){return b&&S>=b.length&&(b=void 0),{value:b&&b[S++],done:!b}}}}function be(b,m){var S=typeof Symbol=="function"&&b[Symbol.iterator];if(!S)return b;var C,H,ie=S.call(b),ge=[];try{for(;(m===void 0||m-- >0)&&!(C=ie.next()).done;)ge.push(C.value)}catch(Ae){H={error:Ae}}finally{try{C&&!C.done&&(S=ie.return)&&S.call(ie)}finally{if(H)throw H.error}}return ge}function Se(){for(var b=[],m=0;m<arguments.length;m++)b=b.concat(be(arguments[m]));return b}var ve=Symbol("mobx did run lazy initializers"),ce=Symbol("mobx pending decorators"),he={},_e={};function je(b,m){var S=m?he:_e;return S[b]||(S[b]={configurable:!0,enumerable:m,get:function(){return Ie(this),this[b]},set:function(C){Ie(this),this[b]=C}})}function Ie(b){var m,S;if(b[ve]!==!0){var C=b[ce];if(C){D(b,ve,!0);var H=Se(Object.getOwnPropertySymbols(C),Object.keys(C));try{for(var ie=le(H),ge=ie.next();!ge.done;ge=ie.next()){var Ae=C[ge.value];Ae.propertyCreator(b,Ae.prop,Ae.descriptor,Ae.decoratorTarget,Ae.decoratorArguments)}}catch(Ue){m={error:Ue}}finally{try{ge&&!ge.done&&(S=ie.return)&&S.call(ie)}finally{if(m)throw m.error}}}}}function Ze(b,m){return function(){var S,C=function(H,ie,ge,Ae){if(Ae===!0)return m(H,ie,ge,H,S),null;if(!Object.prototype.hasOwnProperty.call(H,ce)){var Ue=H[ce];D(H,ce,oe({},Ue))}return H[ce][ie]={prop:ie,propertyCreator:m,descriptor:ge,decoratorTarget:H,decoratorArguments:S},je(ie,b)};return Te(arguments)?(S=y,C.apply(null,arguments)):(S=Array.prototype.slice.call(arguments),C)}}function Te(b){return(b.length===2||b.length===3)&&(typeof b[1]=="string"||typeof b[1]=="symbol")||b.length===4&&b[3]===!0}function Me(b,m,S){return Ho(b)?b:Array.isArray(b)?Ve.array(b,{name:S}):T(b)?Ve.object(b,void 0,{name:S}):z(b)?Ve.map(b,{name:S}):q(b)?Ve.set(b,{name:S}):b}function Je(b){return b}function te(b){w(b);var m=Ze(!0,function(C,H,ie,ge,Ae){var Ue=ie?ie.initializer?ie.initializer.call(C):ie.value:void 0;Xo(C).addObservableProp(H,Ue,b)}),S=(p!==void 0&&p.env,m);return S.enhancer=b,S}var K={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function X(b){return b==null?K:typeof b=="string"?{name:b,deep:!0,proxy:!0}:b}Object.freeze(K);var fe=te(Me),xe=te(function(b,m,S){return b==null||Cn(b)||tr(b)||Jt(b)||Nn(b)?b:Array.isArray(b)?Ve.array(b,{name:S,deep:!1}):T(b)?Ve.object(b,void 0,{name:S,deep:!1}):z(b)?Ve.map(b,{name:S,deep:!1}):q(b)?Ve.set(b,{name:S,deep:!1}):x(!1)}),me=te(Je),Fe=te(function(b,m,S){return ha(b,m)?m:b});function He(b){return b.defaultDecorator?b.defaultDecorator.enhancer:b.deep===!1?Je:Me}var Qe={box:function(b,m){arguments.length>2&&Oe("box");var S=X(m);return new Ht(b,He(S),S.name,!0,S.equals)},array:function(b,m){arguments.length>2&&Oe("array");var S=X(m);return fa(b,He(S),S.name)},map:function(b,m){arguments.length>2&&Oe("map");var S=X(m);return new pa(b,He(S),S.name)},set:function(b,m){arguments.length>2&&Oe("set");var S=X(m);return new vi(b,He(S),S.name)},object:function(b,m,S){typeof arguments[1]=="string"&&Oe("object");var C=X(S);if(C.proxy===!1)return Ar({},b,m,C);var H=mu(C),ie=Ar({},void 0,void 0,C),ge=qc(ie);return _u(ge,b,m,H),ge},ref:me,shallow:xe,deep:fe,struct:Fe},Ve=function(b,m,S){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return fe.apply(null,arguments);if(Ho(b))return b;var C=T(b)?Ve.object(b,m,S):Array.isArray(b)?Ve.array(b,m):z(b)?Ve.map(b,m):q(b)?Ve.set(b,m):b;if(C!==b)return C;x(!1)};function Oe(b){x("Expected one or two arguments to observable."+b+". Did you accidentally try to use observable."+b+" as decorator?")}Object.keys(Qe).forEach(function(b){return Ve[b]=Qe[b]});var ze,re,Le=Ze(!1,function(b,m,S,C,H){var ie=S.get,ge=S.set,Ae=H[0]||{};Xo(b).addComputedProp(b,m,oe({get:ie,set:ge,context:b},Ae))}),ut=Le({equals:L.structural}),xt=function(b,m,S){if(typeof m=="string"||b!==null&&typeof b=="object"&&arguments.length===1)return Le.apply(null,arguments);var C=typeof m=="object"?m:{};return C.get=b,C.set=typeof m=="function"?m:C.set,C.name=C.name||b.name||"",new Er(C)};xt.struct=ut,function(b){b[b.NOT_TRACKING=-1]="NOT_TRACKING",b[b.UP_TO_DATE=0]="UP_TO_DATE",b[b.POSSIBLY_STALE=1]="POSSIBLY_STALE",b[b.STALE=2]="STALE"}(ze||(ze={})),function(b){b[b.NONE=0]="NONE",b[b.LOG=1]="LOG",b[b.BREAK=2]="BREAK"}(re||(re={}));var ot=function(b){this.cause=b};function vt(b){return b instanceof ot}function At(b){switch(b.dependenciesState){case ze.UP_TO_DATE:return!1;case ze.NOT_TRACKING:case ze.STALE:return!0;case ze.POSSIBLY_STALE:for(var m=Ne(!0),S=J(),C=b.observing,H=C.length,ie=0;ie<H;ie++){var ge=C[ie];if(Sr(ge)){if(Ye.disableErrorBoundaries)ge.get();else try{ge.get()}catch{return pe(S),Ce(m),!0}if(b.dependenciesState===ze.STALE)return pe(S),Ce(m),!0}}return Ke(b),pe(S),Ce(m),!1}}function Bt(){return Ye.trackingDerivation!==null}function lt(b){var m=b.observers.size>0;Ye.computationDepth>0&&m&&x(!1),Ye.allowStateChanges||!m&&Ye.enforceActions!=="strict"||x(!1)}function Yt(b,m,S){var C=Ne(!0);Ke(b),b.newObserving=new Array(b.observing.length+100),b.unboundDepsCount=0,b.runId=++Ye.runId;var H,ie=Ye.trackingDerivation;if(Ye.trackingDerivation=b,Ye.disableErrorBoundaries===!0)H=m.call(S);else try{H=m.call(S)}catch(ge){H=new ot(ge)}return Ye.trackingDerivation=ie,function(ge){for(var Ae=ge.observing,Ue=ge.observing=ge.newObserving,_t=ze.UP_TO_DATE,ct=0,Nt=ge.unboundDepsCount,dt=0;dt<Nt;dt++)(Tt=Ue[dt]).diffValue===0&&(Tt.diffValue=1,ct!==dt&&(Ue[ct]=Tt),ct++),Tt.dependenciesState>_t&&(_t=Tt.dependenciesState);for(Ue.length=ct,ge.newObserving=null,Nt=Ae.length;Nt--;)(Tt=Ae[Nt]).diffValue===0&&fu(Tt,ge),Tt.diffValue=0;for(;ct--;){var Tt;(Tt=Ue[ct]).diffValue===1&&(Tt.diffValue=0,zc(Tt,ge))}_t!==ze.UP_TO_DATE&&(ge.dependenciesState=_t,ge.onBecomeStale())}(b),Ce(C),H}function U(b){var m=b.observing;b.observing=[];for(var S=m.length;S--;)fu(m[S],b);b.dependenciesState=ze.NOT_TRACKING}function ue(b){var m=J();try{return b()}finally{pe(m)}}function J(){var b=Ye.trackingDerivation;return Ye.trackingDerivation=null,b}function pe(b){Ye.trackingDerivation=b}function Ne(b){var m=Ye.allowStateReads;return Ye.allowStateReads=b,m}function Ce(b){Ye.allowStateReads=b}function Ke(b){if(b.dependenciesState!==ze.UP_TO_DATE){b.dependenciesState=ze.UP_TO_DATE;for(var m=b.observing,S=m.length;S--;)m[S].lowestObserverState=ze.UP_TO_DATE}}var gt=0,rn=1,pn=Object.getOwnPropertyDescriptor(function(){},"name");pn&&pn.configurable;function Vt(b,m,S){var C=function(){return Zt(b,m,S||this,arguments)};return C.isMobxAction=!0,C}function Zt(b,m,S,C){var H=We();try{return m.apply(S,C)}catch(ie){throw H.error=ie,ie}finally{et(H)}}function We(b,m,S){var C=0,H=J();zn();var ie={prevDerivation:H,prevAllowStateChanges:st(!0),prevAllowStateReads:Ne(!0),notifySpy:!1,startTime:C,actionId:rn++,parentActionId:gt};return gt=ie.actionId,ie}function et(b){gt!==b.actionId&&x("invalid action stack. did you forget to finish an action?"),gt=b.parentActionId,b.error!==void 0&&(Ye.suppressReactionErrors=!0),Dt(b.prevAllowStateChanges),Ce(b.prevAllowStateReads),Fn(),pe(b.prevDerivation),b.notifySpy,Ye.suppressReactionErrors=!1}function it(b,m){var S,C=st(b);try{S=m()}finally{Dt(C)}return S}function st(b){var m=Ye.allowStateChanges;return Ye.allowStateChanges=b,m}function Dt(b){Ye.allowStateChanges=b}var Ht=function(b){function m(S,C,H,ie,ge){H===void 0&&(H="ObservableValue@"+O()),ge===void 0&&(ge=L.default);var Ae=b.call(this,H)||this;return Ae.enhancer=C,Ae.name=H,Ae.equals=ge,Ae.hasUnreportedChange=!1,Ae.value=C(S,void 0,H),Ae}return function(S,C){function H(){this.constructor=S}G(S,C),S.prototype=C===null?Object.create(C):(H.prototype=C.prototype,new H)}(m,b),m.prototype.dehanceValue=function(S){return this.dehancer!==void 0?this.dehancer(S):S},m.prototype.set=function(S){this.value,(S=this.prepareNewValue(S))!==Ye.UNCHANGED&&this.setNewValue(S)},m.prototype.prepareNewValue=function(S){if(lt(this),On(this)){var C=Et(this,{object:this,type:"update",newValue:S});if(!C)return Ye.UNCHANGED;S=C.newValue}return S=this.enhancer(S,this.value,this.name),this.equals(this.value,S)?Ye.UNCHANGED:S},m.prototype.setNewValue=function(S){var C=this.value;this.value=S,this.reportChanged(),Wn(this)&&dn(this,{type:"update",object:this,newValue:S,oldValue:C})},m.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},m.prototype.intercept=function(S){return Kr(this,S)},m.prototype.observe=function(S,C){return C&&S({object:this,type:"update",newValue:this.value,oldValue:void 0}),qr(this,S)},m.prototype.toJSON=function(){return this.get()},m.prototype.toString=function(){return this.name+"["+this.value+"]"},m.prototype.valueOf=function(){return Z(this.get())},m.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},m}(R),Xr=B("ObservableValue",Ht),Er=function(){function b(m){this.dependenciesState=ze.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=ze.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+O(),this.value=new ot(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=re.NONE,w(m.get,"missing option for computed: get"),this.derivation=m.get,this.name=m.name||"ComputedValue@"+O(),m.set&&(this.setter=Vt(this.name+"-setter",m.set)),this.equals=m.equals||(m.compareStructural||m.struct?L.structural:L.default),this.scope=m.context,this.requiresReaction=!!m.requiresReaction,this.keepAlive=!!m.keepAlive}return b.prototype.onBecomeStale=function(){(function(m){m.lowestObserverState===ze.UP_TO_DATE&&(m.lowestObserverState=ze.POSSIBLY_STALE,m.observers.forEach(function(S){S.dependenciesState===ze.UP_TO_DATE&&(S.dependenciesState=ze.POSSIBLY_STALE,S.isTracing!==re.NONE&&jr(S,m),S.onBecomeStale())}))})(this)},b.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(m){return m()})},b.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(m){return m()})},b.prototype.get=function(){this.isComputing&&x("Cycle detected in computation "+this.name+": "+this.derivation),Ye.inBatch!==0||this.observers.size!==0||this.keepAlive?(du(this),At(this)&&this.trackAndCompute()&&function(S){S.lowestObserverState!==ze.STALE&&(S.lowestObserverState=ze.STALE,S.observers.forEach(function(C){C.dependenciesState===ze.POSSIBLY_STALE?C.dependenciesState=ze.STALE:C.dependenciesState===ze.UP_TO_DATE&&(S.lowestObserverState=ze.UP_TO_DATE)}))}(this)):At(this)&&(this.warnAboutUntrackedRead(),zn(),this.value=this.computeValue(!1),Fn());var m=this.value;if(vt(m))throw m.cause;return m},b.prototype.peek=function(){var m=this.computeValue(!1);if(vt(m))throw m.cause;return m},b.prototype.set=function(m){if(this.setter){w(!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,m)}finally{this.isRunningSetter=!1}}else w(!1,!1)},b.prototype.trackAndCompute=function(){var m=this.value,S=this.dependenciesState===ze.NOT_TRACKING,C=this.computeValue(!0),H=S||vt(m)||vt(C)||!this.equals(m,C);return H&&(this.value=C),H},b.prototype.computeValue=function(m){var S;if(this.isComputing=!0,Ye.computationDepth++,m)S=Yt(this,this.derivation,this.scope);else if(Ye.disableErrorBoundaries===!0)S=this.derivation.call(this.scope);else try{S=this.derivation.call(this.scope)}catch(C){S=new ot(C)}return Ye.computationDepth--,this.isComputing=!1,S},b.prototype.suspend=function(){this.keepAlive||(U(this),this.value=void 0)},b.prototype.observe=function(m,S){var C=this,H=!0,ie=void 0;return ca(function(){var ge=C.get();if(!H||S){var Ae=J();m({type:"update",object:C,newValue:ge,oldValue:ie}),pe(Ae)}H=!1,ie=ge})},b.prototype.warnAboutUntrackedRead=function(){},b.prototype.toJSON=function(){return this.get()},b.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},b.prototype.valueOf=function(){return Z(this.get())},b.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},b}(),Sr=B("ComputedValue",Er),$o=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},Bc={};function aa(){return typeof window!="undefined"?window:d!==void 0?d:typeof self!="undefined"?self:Bc}var Zn=!0,lu=!1,Ye=function(){var b=aa();return b.__mobxInstanceCount>0&&!b.__mobxGlobals&&(Zn=!1),b.__mobxGlobals&&b.__mobxGlobals.version!==new $o().version&&(Zn=!1),Zn?b.__mobxGlobals?(b.__mobxInstanceCount+=1,b.__mobxGlobals.UNCHANGED||(b.__mobxGlobals.UNCHANGED={}),b.__mobxGlobals):(b.__mobxInstanceCount=1,b.__mobxGlobals=new $o):(setTimeout(function(){lu||x("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new $o)}();function zc(b,m){b.observers.add(m),b.lowestObserverState>m.dependenciesState&&(b.lowestObserverState=m.dependenciesState)}function fu(b,m){b.observers.delete(m),b.observers.size===0&&pu(b)}function pu(b){b.isPendingUnobservation===!1&&(b.isPendingUnobservation=!0,Ye.pendingUnobservations.push(b))}function zn(){Ye.inBatch++}function Fn(){if(--Ye.inBatch==0){hu();for(var b=Ye.pendingUnobservations,m=0;m<b.length;m++){var S=b[m];S.isPendingUnobservation=!1,S.observers.size===0&&(S.isBeingObserved&&(S.isBeingObserved=!1,S.onBecomeUnobserved()),S instanceof Er&&S.suspend())}Ye.pendingUnobservations=[]}}function du(b){var m=Ye.trackingDerivation;return m!==null?(m.runId!==b.lastAccessedBy&&(b.lastAccessedBy=m.runId,m.newObserving[m.unboundDepsCount++]=b,b.isBeingObserved||(b.isBeingObserved=!0,b.onBecomeObserved())),!0):(b.observers.size===0&&Ye.inBatch>0&&pu(b),!1)}function jr(b,m){if(b.isTracing===re.BREAK){var S=[];vo(Wo(b),S,1),new Function(`debugger;
  40. /*
  41. Tracing '`+b.name+`'
  42. You are entering this break point because derivation '`+b.name+"' is being traced and '"+m.name+`' is now forcing it to update.
  43. Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
  44. The stackframe you are looking for is at least ~6-8 stack-frames up.
  45. `+(b instanceof Er?b.derivation.toString().replace(/[*]\//g,"/"):"")+`
  46. The dependencies for this derivation are:
  47. `+S.join(`
  48. `)+`
  49. */
  50. `)()}}function vo(b,m,S){m.length>=1e3?m.push("(and many more)"):(m.push(""+new Array(S).join(" ")+b.name),b.dependencies&&b.dependencies.forEach(function(C){return vo(C,m,S+1)}))}var hr=function(){function b(m,S,C,H){m===void 0&&(m="Reaction@"+O()),H===void 0&&(H=!1),this.name=m,this.onInvalidate=S,this.errorHandler=C,this.requiresObservable=H,this.observing=[],this.newObserving=[],this.dependenciesState=ze.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+O(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=re.NONE}return b.prototype.onBecomeStale=function(){this.schedule()},b.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ye.pendingReactions.push(this),hu())},b.prototype.isScheduled=function(){return this._isScheduled},b.prototype.runReaction=function(){if(!this.isDisposed){if(zn(),this._isScheduled=!1,At(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(m){this.reportExceptionInDerivation(m)}}Fn()}},b.prototype.track=function(m){if(!this.isDisposed){zn(),this._isRunning=!0;var S=Yt(this,m,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&U(this),vt(S)&&this.reportExceptionInDerivation(S.cause),Fn()}},b.prototype.reportExceptionInDerivation=function(m){var S=this;if(this.errorHandler)this.errorHandler(m,this);else{if(Ye.disableErrorBoundaries)throw m;Ye.suppressReactionErrors,Ye.globalReactionErrorHandlers.forEach(function(C){return C(m,S)})}},b.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(zn(),U(this),Fn()))},b.prototype.getDisposer=function(){var m=this.dispose.bind(this);return m[W]=this,m},b.prototype.toString=function(){return"Reaction["+this.name+"]"},b.prototype.trace=function(m){m===void 0&&(m=!1),function(){for(var S=[],C=0;C<arguments.length;C++)S[C]=arguments[C];var H=!1;typeof S[S.length-1]=="boolean"&&(H=S.pop());var ie=Qn(S);if(!ie)return x(!1);ie.isTracing,re.NONE,ie.isTracing=H?re.BREAK:re.LOG}(this,m)},b}(),ua=function(b){return b()};function hu(){Ye.inBatch>0||Ye.isRunningReactions||ua(Fc)}function Fc(){Ye.isRunningReactions=!0;for(var b=Ye.pendingReactions,m=0;b.length>0;){++m==100&&b.splice(0);for(var S=b.splice(0),C=0,H=S.length;C<H;C++)S[C].runReaction()}Ye.isRunningReactions=!1}var pi=B("Reaction",hr);function $c(b){var m=ua;ua=function(S){return b(function(){return m(S)})}}function yu(b){return function(){}}function Wc(){x(!1)}function Yr(b){return function(m,S,C){if(C){if(C.value)return{value:Vt(b,C.value),enumerable:!1,configurable:!0,writable:!0};var H=C.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Vt(b,H.call(this))}}}return vu(b).apply(this,arguments)}}function vu(b){return function(m,S,C){Object.defineProperty(m,S,{configurable:!0,enumerable:!1,get:function(){},set:function(H){D(this,S,Pr(b,H))}})}}var Pr=function(b,m,S,C){return arguments.length===1&&typeof b=="function"?Vt(b.name||"<unnamed action>",b):arguments.length===2&&typeof m=="function"?Vt(b,m):arguments.length===1&&typeof b=="string"?Yr(b):C!==!0?Yr(m).apply(null,arguments):void D(b,m,Vt(b.name||m,S.value,this))};function Gc(b,m){return Zt(typeof b=="string"?b:b.name||"<unnamed action>",typeof b=="function"?b:m,this,void 0)}function di(b){return typeof b=="function"&&b.isMobxAction===!0}function sa(b,m,S){D(b,m,Vt(m,S.bind(b)))}function ca(b,m){m===void 0&&(m=g);var S,C=m&&m.name||b.name||"Autorun@"+O();if(!m.scheduler&&!m.delay)S=new hr(C,function(){this.track(ge)},m.onError,m.requiresObservable);else{var H=gu(m),ie=!1;S=new hr(C,function(){ie||(ie=!0,H(function(){ie=!1,S.isDisposed||S.track(ge)}))},m.onError,m.requiresObservable)}function ge(){b(S)}return S.schedule(),S.getDisposer()}Pr.bound=function(b,m,S,C){return C===!0?(sa(b,m,S.value),null):S?{configurable:!0,enumerable:!1,get:function(){return sa(this,m,S.value||S.initializer.call(this)),this[m]},set:Wc}:{enumerable:!1,configurable:!0,set:function(H){sa(this,m,H)},get:function(){}}};var Hc=function(b){return b()};function gu(b){return b.scheduler?b.scheduler:b.delay?function(m){return setTimeout(m,b.delay)}:Hc}function go(b,m,S){S===void 0&&(S=g);var C,H,ie,ge=S.name||"Reaction@"+O(),Ae=Pr(ge,S.onError?(C=S.onError,H=m,function(){try{return H.apply(this,arguments)}catch(Wt){C.call(this,Wt)}}):m),Ue=!S.scheduler&&!S.delay,_t=gu(S),ct=!0,Nt=!1,dt=S.compareStructural?L.structural:S.equals||L.default,Tt=new hr(ge,function(){ct||Ue?Hn():Nt||(Nt=!0,_t(Hn))},S.onError,S.requiresObservable);function Hn(){if(Nt=!1,!Tt.isDisposed){var Wt=!1;Tt.track(function(){var wn=b(Tt);Wt=ct||!dt(ie,wn),ie=wn}),ct&&S.fireImmediately&&Ae(ie,Tt),ct||Wt!==!0||Ae(ie,Tt),ct&&(ct=!1)}}return Tt.schedule(),Tt.getDisposer()}function bo(b,m,S){return bu("onBecomeUnobserved",b,m,S)}function bu(b,m,S,C){var H=typeof C=="function"?Gn(m,S):Gn(m),ie=typeof C=="function"?C:S,ge=b+"Listeners";return H[ge]?H[ge].add(ie):H[ge]=new Set([ie]),typeof H[b]!="function"?x(!1):function(){var Ae=H[ge];Ae&&(Ae.delete(ie),Ae.size===0&&delete H[ge])}}function mo(b){var m=b.enforceActions,S=b.computedRequiresReaction,C=b.computedConfigurable,H=b.disableErrorBoundaries,ie=b.reactionScheduler,ge=b.reactionRequiresObservable,Ae=b.observableRequiresReaction;if(b.isolateGlobalState===!0&&((Ye.pendingReactions.length||Ye.inBatch||Ye.isRunningReactions)&&x("isolateGlobalState should be called before MobX is running any reactions"),lu=!0,Zn&&(--aa().__mobxInstanceCount==0&&(aa().__mobxGlobals=void 0),Ye=new $o)),m!==void 0){var Ue=void 0;switch(m){case!0:case"observed":Ue=!0;break;case!1:case"never":Ue=!1;break;case"strict":case"always":Ue="strict";break;default:x("Invalid value for 'enforceActions': '"+m+"', expected 'never', 'always' or 'observed'")}Ye.enforceActions=Ue,Ye.allowStateChanges=Ue!==!0&&Ue!=="strict"}S!==void 0&&(Ye.computedRequiresReaction=!!S),ge!==void 0&&(Ye.reactionRequiresObservable=!!ge),Ae!==void 0&&(Ye.observableRequiresReaction=!!Ae,Ye.allowStateReads=!Ye.observableRequiresReaction),C!==void 0&&(Ye.computedConfigurable=!!C),H!==void 0&&(Ye.disableErrorBoundaries=!!H),ie&&$c(ie)}function Ar(b,m,S,C){var H=mu(C=X(C));return Ie(b),Xo(b,C.name,H.enhancer),m&&_u(b,m,S,H),b}function mu(b){return b.defaultDecorator||(b.deep===!1?me:fe)}function _u(b,m,S,C){var H,ie;zn();try{var ge=ee(m);try{for(var Ae=le(ge),Ue=Ae.next();!Ue.done;Ue=Ae.next()){var _t=Ue.value,ct=Object.getOwnPropertyDescriptor(m,_t),Nt=(S&&_t in S?S[_t]:ct.get?Le:C)(b,_t,ct,!0);Nt&&Object.defineProperty(b,_t,Nt)}}catch(dt){H={error:dt}}finally{try{Ue&&!Ue.done&&(ie=Ae.return)&&ie.call(Ae)}finally{if(H)throw H.error}}}finally{Fn()}}function Wo(b,m){return Ou(Gn(b,m))}function Ou(b){var m,S,C={name:b.name};return b.observing&&b.observing.length>0&&(C.dependencies=(m=b.observing,S=[],m.forEach(function(H){S.indexOf(H)===-1&&S.push(H)}),S).map(Ou)),C}var Uc=0;function wu(){this.message="FLOW_CANCELLED"}function xu(b){arguments.length!==1&&x("Flow expects 1 argument and cannot be used as decorator");var m=b.name||"<unnamed flow>";return function(){var S,C=this,H=arguments,ie=++Uc,ge=Pr(m+" - runid: "+ie+" - init",b).apply(C,H),Ae=void 0,Ue=new Promise(function(_t,ct){var Nt=0;function dt(Wt){var wn;Ae=void 0;try{wn=Pr(m+" - runid: "+ie+" - yield "+Nt++,ge.next).call(ge,Wt)}catch(Yo){return ct(Yo)}Hn(wn)}function Tt(Wt){var wn;Ae=void 0;try{wn=Pr(m+" - runid: "+ie+" - yield "+Nt++,ge.throw).call(ge,Wt)}catch(Yo){return ct(Yo)}Hn(wn)}function Hn(Wt){if(!Wt||typeof Wt.then!="function")return Wt.done?_t(Wt.value):(Ae=Promise.resolve(Wt.value)).then(dt,Tt);Wt.then(Hn,ct)}S=ct,dt(void 0)});return Ue.cancel=Pr(m+" - runid: "+ie+" - cancel",function(){try{Ae&&Go(Ae);var _t=ge.return(void 0),ct=Promise.resolve(_t.value);ct.then(P,P),Go(ct),S(new wu)}catch(Nt){S(Nt)}}),Ue}}function Go(b){typeof b.cancel=="function"&&b.cancel()}function Eu(b,m){if(b==null)return!1;if(m!==void 0){if(Cn(b)===!1||!b[W].values.has(m))return!1;var S=Gn(b,m);return Sr(S)}return Sr(b)}function Xc(b){return arguments.length>1?x(!1):Eu(b)}function Su(b,m){return typeof m!="string"?x(!1):Eu(b,m)}function la(b,m){return b!=null&&(m!==void 0?!!Cn(b)&&b[W].values.has(m):Cn(b)||!!b[W]||F(b)||pi(b)||Sr(b))}function Ho(b){return arguments.length!==1&&x(!1),la(b)}function Tr(b){return Cn(b)?b[W].getKeys():Jt(b)||Nn(b)?Array.from(b.keys()):tr(b)?b.map(function(m,S){return S}):x(!1)}function yn(b){return Cn(b)?Tr(b).map(function(m){return b[m]}):Jt(b)?Tr(b).map(function(m){return b.get(m)}):Nn(b)?Array.from(b.values()):tr(b)?b.slice():x(!1)}function ju(b){return Cn(b)?Tr(b).map(function(m){return[m,b[m]]}):Jt(b)?Tr(b).map(function(m){return[m,b.get(m)]}):Nn(b)?Array.from(b.entries()):tr(b)?b.map(function(m,S){return[S,m]}):x(!1)}function Pu(b,m,S){if(arguments.length!==2||Nn(b))if(Cn(b)){var C=b[W],H=C.values.get(m);H?C.write(m,S):C.addObservableProp(m,S,C.defaultEnhancer)}else if(Jt(b))b.set(m,S);else if(Nn(b))b.add(m);else{if(!tr(b))return x(!1);typeof m!="number"&&(m=parseInt(m,10)),w(m>=0,"Not a valid index: '"+m+"'"),zn(),m>=b.length&&(b.length=m+1),b[m]=S,Fn()}else{zn();var ie=m;try{for(var ge in ie)Pu(b,ge,ie[ge])}finally{Fn()}}}function Au(b,m,S,C){return typeof S=="function"?function(H,ie,ge,Ae){return Oo(H,ie).observe(ge,Ae)}(b,m,S,C):function(H,ie,ge){return Oo(H).observe(ie,ge)}(b,m,S)}wu.prototype=Object.create(Error.prototype);var Yc={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Vr(b,m,S,C){return C.detectCycles&&b.set(m,S),S}function Jn(b,m,S){if(!m.recurseEverything&&!Ho(b)||typeof b!="object")return b;if(b===null)return null;if(b instanceof Date)return b;if(Xr(b))return Jn(b.get(),m,S);if(Ho(b)&&Tr(b),m.detectCycles===!0&&b!==null&&S.has(b))return S.get(b);if(tr(b)||Array.isArray(b)){var C=Vr(S,b,[],m),H=b.map(function(dt){return Jn(dt,m,S)});C.length=H.length;for(var ie=0,ge=H.length;ie<ge;ie++)C[ie]=H[ie];return C}if(Nn(b)||Object.getPrototypeOf(b)===Set.prototype){if(m.exportMapsAsObjects===!1){var Ae=Vr(S,b,new Set,m);return b.forEach(function(dt){Ae.add(Jn(dt,m,S))}),Ae}var Ue=Vr(S,b,[],m);return b.forEach(function(dt){Ue.push(Jn(dt,m,S))}),Ue}if(Jt(b)||Object.getPrototypeOf(b)===Map.prototype){if(m.exportMapsAsObjects===!1){var _t=Vr(S,b,new Map,m);return b.forEach(function(dt,Tt){_t.set(Tt,Jn(dt,m,S))}),_t}var ct=Vr(S,b,{},m);return b.forEach(function(dt,Tt){ct[Tt]=Jn(dt,m,S)}),ct}var Nt=Vr(S,b,{},m);return ne(b).forEach(function(dt){Nt[dt]=Jn(b[dt],m,S)}),Nt}function Vc(b,m){var S;return typeof m=="boolean"&&(m={detectCycles:m}),m||(m=Yc),m.detectCycles=m.detectCycles===void 0?m.recurseEverything===!0:m.detectCycles===!0,m.detectCycles&&(S=new Map),Jn(b,m,S)}function Qn(b){switch(b.length){case 0:return Ye.trackingDerivation;case 1:return Gn(b[0]);case 2:return Gn(b[0],b[1])}}function $n(b,m){m===void 0&&(m=void 0),zn();try{return b.apply(m)}finally{Fn()}}function Tu(b,m,S){return arguments.length===1||m&&typeof m=="object"?Kc(b,m):Mu(b,m,S||{})}function Mu(b,m,S){var C;typeof S.timeout=="number"&&(C=setTimeout(function(){if(!ie[W].isDisposed){ie();var ge=new Error("WHEN_TIMEOUT");if(!S.onError)throw ge;S.onError(ge)}},S.timeout)),S.name=S.name||"When@"+O();var H=Vt(S.name+"-effect",m),ie=ca(function(ge){b()&&(ge.dispose(),C&&clearTimeout(C),H())},S);return ie}function Kc(b,m){var S,C=new Promise(function(H,ie){var ge=Mu(b,H,oe(oe({},m),{onError:ie}));S=function(){ge(),ie("WHEN_CANCELLED")}});return C.cancel=S,C}function hi(b){return b[W]}function Mr(b){return typeof b=="string"||typeof b=="number"||typeof b=="symbol"}var Uo={has:function(b,m){if(m===W||m==="constructor"||m===ve)return!0;var S=hi(b);return Mr(m)?S.has(m):m in b},get:function(b,m){if(m===W||m==="constructor"||m===ve)return b[m];var S=hi(b),C=S.values.get(m);if(C instanceof R){var H=C.get();return H===void 0&&S.has(m),H}return Mr(m)&&S.has(m),b[m]},set:function(b,m,S){return!!Mr(m)&&(Pu(b,m,S),!0)},deleteProperty:function(b,m){return!!Mr(m)&&(hi(b).remove(m),!0)},ownKeys:function(b){return hi(b).keysAtom.reportObserved(),Reflect.ownKeys(b)},preventExtensions:function(b){return x("Dynamic observable objects cannot be frozen"),!1}};function qc(b){var m=new Proxy(b,Uo);return b[W].proxy=m,m}function On(b){return b.interceptors!==void 0&&b.interceptors.length>0}function Kr(b,m){var S=b.interceptors||(b.interceptors=[]);return S.push(m),j(function(){var C=S.indexOf(m);C!==-1&&S.splice(C,1)})}function Et(b,m){var S=J();try{for(var C=Se(b.interceptors||[]),H=0,ie=C.length;H<ie&&(w(!(m=C[H](m))||m.type,"Intercept handlers should return nothing or a change object"),m);H++);return m}finally{pe(S)}}function Wn(b){return b.changeListeners!==void 0&&b.changeListeners.length>0}function qr(b,m){var S=b.changeListeners||(b.changeListeners=[]);return S.push(m),j(function(){var C=S.indexOf(m);C!==-1&&S.splice(C,1)})}function dn(b,m){var S=J(),C=b.changeListeners;if(C){for(var H=0,ie=(C=C.slice()).length;H<ie;H++)C[H](m);pe(S)}}var ku={get:function(b,m){return m===W?b[W]:m==="length"?b[W].getArrayLength():typeof m=="number"?er.get.call(b,m):typeof m!="string"||isNaN(m)?er.hasOwnProperty(m)?er[m]:b[m]:er.get.call(b,parseInt(m))},set:function(b,m,S){return m==="length"&&b[W].setArrayLength(S),typeof m=="number"&&er.set.call(b,m,S),typeof m=="symbol"||isNaN(m)?b[m]=S:er.set.call(b,parseInt(m),S),!0},preventExtensions:function(b){return x("Observable arrays cannot be frozen"),!1}};function fa(b,m,S,C){S===void 0&&(S="ObservableArray@"+O()),C===void 0&&(C=!1);var H,ie,ge,Ae=new Du(S,m,C);H=Ae.values,ie=W,ge=Ae,Object.defineProperty(H,ie,{enumerable:!1,writable:!1,configurable:!0,value:ge});var Ue=new Proxy(Ae.values,ku);if(Ae.proxy=Ue,b&&b.length){var _t=st(!0);Ae.spliceWithArray(0,0,b),Dt(_t)}return Ue}var Du=function(){function b(m,S,C){this.owned=C,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new R(m||"ObservableArray@"+O()),this.enhancer=function(H,ie){return S(H,ie,m+"[..]")}}return b.prototype.dehanceValue=function(m){return this.dehancer!==void 0?this.dehancer(m):m},b.prototype.dehanceValues=function(m){return this.dehancer!==void 0&&m.length>0?m.map(this.dehancer):m},b.prototype.intercept=function(m){return Kr(this,m)},b.prototype.observe=function(m,S){return S===void 0&&(S=!1),S&&m({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),qr(this,m)},b.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},b.prototype.setArrayLength=function(m){if(typeof m!="number"||m<0)throw new Error("[mobx.array] Out of range: "+m);var S=this.values.length;if(m!==S)if(m>S){for(var C=new Array(m-S),H=0;H<m-S;H++)C[H]=void 0;this.spliceWithArray(S,0,C)}else this.spliceWithArray(m,S-m)},b.prototype.updateArrayLength=function(m,S){if(m!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=S},b.prototype.spliceWithArray=function(m,S,C){var H=this;lt(this.atom);var ie=this.values.length;if(m===void 0?m=0:m>ie?m=ie:m<0&&(m=Math.max(0,ie+m)),S=arguments.length===1?ie-m:S==null?0:Math.max(0,Math.min(S,ie-m)),C===void 0&&(C=y),On(this)){var ge=Et(this,{object:this.proxy,type:"splice",index:m,removedCount:S,added:C});if(!ge)return y;S=ge.removedCount,C=ge.added}C=C.length===0?C:C.map(function(Ue){return H.enhancer(Ue,void 0)});var Ae=this.spliceItemsIntoValues(m,S,C);return S===0&&C.length===0||this.notifyArraySplice(m,C,Ae),this.dehanceValues(Ae)},b.prototype.spliceItemsIntoValues=function(m,S,C){var H;if(C.length<1e4)return(H=this.values).splice.apply(H,Se([m,S],C));var ie=this.values.slice(m,m+S);return this.values=this.values.slice(0,m).concat(C,this.values.slice(m+S)),ie},b.prototype.notifyArrayChildUpdate=function(m,S,C){var H=!this.owned&&!1,ie=Wn(this),ge=ie||H?{object:this.proxy,type:"update",index:m,newValue:S,oldValue:C}:null;this.atom.reportChanged(),ie&&dn(this,ge)},b.prototype.notifyArraySplice=function(m,S,C){var H=!this.owned&&!1,ie=Wn(this),ge=ie||H?{object:this.proxy,type:"splice",index:m,removed:C,added:S,removedCount:C.length,addedCount:S.length}:null;this.atom.reportChanged(),ie&&dn(this,ge)},b}(),er={intercept:function(b){return this[W].intercept(b)},observe:function(b,m){return m===void 0&&(m=!1),this[W].observe(b,m)},clear:function(){return this.splice(0)},replace:function(b){var m=this[W];return m.spliceWithArray(0,m.values.length,b)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(b,m){for(var S=[],C=2;C<arguments.length;C++)S[C-2]=arguments[C];var H=this[W];switch(arguments.length){case 0:return[];case 1:return H.spliceWithArray(b);case 2:return H.spliceWithArray(b,m)}return H.spliceWithArray(b,m,S)},spliceWithArray:function(b,m,S){return this[W].spliceWithArray(b,m,S)},push:function(){for(var b=[],m=0;m<arguments.length;m++)b[m]=arguments[m];var S=this[W];return S.spliceWithArray(S.values.length,0,b),S.values.length},pop:function(){return this.splice(Math.max(this[W].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var b=[],m=0;m<arguments.length;m++)b[m]=arguments[m];var S=this[W];return S.spliceWithArray(0,0,b),S.values.length},reverse:function(){var b=this.slice();return b.reverse.apply(b,arguments)},sort:function(b){var m=this.slice();return m.sort.apply(m,arguments)},remove:function(b){var m=this[W],S=m.dehanceValues(m.values).indexOf(b);return S>-1&&(this.splice(S,1),!0)},get:function(b){var m=this[W];if(m&&b<m.values.length)return m.atom.reportObserved(),m.dehanceValue(m.values[b])},set:function(b,m){var S=this[W],C=S.values;if(b<C.length){lt(S.atom);var H=C[b];if(On(S)){var ie=Et(S,{type:"update",object:S.proxy,index:b,newValue:m});if(!ie)return;m=ie.newValue}(m=S.enhancer(m,H))!==H&&(C[b]=m,S.notifyArrayChildUpdate(b,m,H))}else{if(b!==C.length)throw new Error("[mobx.array] Index out of bounds, "+b+" is larger than "+C.length);S.spliceWithArray(b,0,[m])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(b){typeof Array.prototype[b]=="function"&&(er[b]=function(){var m=this[W];m.atom.reportObserved();var S=m.dehanceValues(m.values);return S[b].apply(S,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(b){typeof Array.prototype[b]=="function"&&(er[b]=function(m,S){var C=this,H=this[W];return H.atom.reportObserved(),H.dehanceValues(H.values)[b](function(ie,ge){return m.call(S,ie,ge,C)},S)})}),["reduce","reduceRight"].forEach(function(b){er[b]=function(){var m=this,S=this[W];S.atom.reportObserved();var C=arguments[0];return arguments[0]=function(H,ie,ge){return ie=S.dehanceValue(ie),C(H,ie,ge,m)},S.values[b].apply(S.values,arguments)}});var Nu,yi=B("ObservableArrayAdministration",Du);function tr(b){return k(b)&&yi(b[W])}var Cu,Zc={},pa=function(){function b(m,S,C){if(S===void 0&&(S=Me),C===void 0&&(C="ObservableMap@"+O()),this.enhancer=S,this.name=C,this[Nu]=Zc,this._keysAtom=A(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(m)}return b.prototype._has=function(m){return this._data.has(m)},b.prototype.has=function(m){var S=this;if(!Ye.trackingDerivation)return this._has(m);var C=this._hasMap.get(m);if(!C){var H=C=new Ht(this._has(m),Je,this.name+"."+V(m)+"?",!1);this._hasMap.set(m,H),bo(H,function(){return S._hasMap.delete(m)})}return C.get()},b.prototype.set=function(m,S){var C=this._has(m);if(On(this)){var H=Et(this,{type:C?"update":"add",object:this,newValue:S,name:m});if(!H)return this;S=H.newValue}return C?this._updateValue(m,S):this._addValue(m,S),this},b.prototype.delete=function(m){var S=this;if(lt(this._keysAtom),On(this)&&!(H=Et(this,{type:"delete",object:this,name:m})))return!1;if(this._has(m)){var C=Wn(this),H=C?{type:"delete",object:this,oldValue:this._data.get(m).value,name:m}:null;return $n(function(){S._keysAtom.reportChanged(),S._updateHasMapEntry(m,!1),S._data.get(m).setNewValue(void 0),S._data.delete(m)}),C&&dn(this,H),!0}return!1},b.prototype._updateHasMapEntry=function(m,S){var C=this._hasMap.get(m);C&&C.setNewValue(S)},b.prototype._updateValue=function(m,S){var C=this._data.get(m);if((S=C.prepareNewValue(S))!==Ye.UNCHANGED){var H=Wn(this),ie=H?{type:"update",object:this,oldValue:C.value,name:m,newValue:S}:null;C.setNewValue(S),H&&dn(this,ie)}},b.prototype._addValue=function(m,S){var C=this;lt(this._keysAtom),$n(function(){var ge=new Ht(S,C.enhancer,C.name+"."+V(m),!1);C._data.set(m,ge),S=ge.value,C._updateHasMapEntry(m,!0),C._keysAtom.reportChanged()});var H=Wn(this),ie=H?{type:"add",object:this,name:m,newValue:S}:null;H&&dn(this,ie)},b.prototype.get=function(m){return this.has(m)?this.dehanceValue(this._data.get(m).get()):this.dehanceValue(void 0)},b.prototype.dehanceValue=function(m){return this.dehancer!==void 0?this.dehancer(m):m},b.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},b.prototype.values=function(){var m=this,S=this.keys();return _i({next:function(){var C=S.next(),H=C.done,ie=C.value;return{done:H,value:H?void 0:m.get(ie)}}})},b.prototype.entries=function(){var m=this,S=this.keys();return _i({next:function(){var C=S.next(),H=C.done,ie=C.value;return{done:H,value:H?void 0:[ie,m.get(ie)]}}})},b.prototype[Nu=W,Symbol.iterator]=function(){return this.entries()},b.prototype.forEach=function(m,S){var C,H;try{for(var ie=le(this),ge=ie.next();!ge.done;ge=ie.next()){var Ae=be(ge.value,2),Ue=Ae[0],_t=Ae[1];m.call(S,_t,Ue,this)}}catch(ct){C={error:ct}}finally{try{ge&&!ge.done&&(H=ie.return)&&H.call(ie)}finally{if(C)throw C.error}}},b.prototype.merge=function(m){var S=this;return Jt(m)&&(m=m.toJS()),$n(function(){var C=st(!0);try{T(m)?ne(m).forEach(function(H){return S.set(H,m[H])}):Array.isArray(m)?m.forEach(function(H){var ie=be(H,2),ge=ie[0],Ae=ie[1];return S.set(ge,Ae)}):z(m)?(m.constructor!==Map&&x("Cannot initialize from classes that inherit from Map: "+m.constructor.name),m.forEach(function(H,ie){return S.set(ie,H)})):m!=null&&x("Cannot initialize map from "+m)}finally{Dt(C)}}),this},b.prototype.clear=function(){var m=this;$n(function(){ue(function(){var S,C;try{for(var H=le(m.keys()),ie=H.next();!ie.done;ie=H.next()){var ge=ie.value;m.delete(ge)}}catch(Ae){S={error:Ae}}finally{try{ie&&!ie.done&&(C=H.return)&&C.call(H)}finally{if(S)throw S.error}}})})},b.prototype.replace=function(m){var S=this;return $n(function(){var C,H,ie,ge,Ae=function(xn){if(z(xn)||Jt(xn))return xn;if(Array.isArray(xn))return new Map(xn);if(T(xn)){var Fu=new Map;for(var Vo in xn)Fu.set(Vo,xn[Vo]);return Fu}return x("Cannot convert to map from '"+xn+"'")}(m),Ue=new Map,_t=!1;try{for(var ct=le(S._data.keys()),Nt=ct.next();!Nt.done;Nt=ct.next()){var dt=Nt.value;if(!Ae.has(dt))if(S.delete(dt))_t=!0;else{var Tt=S._data.get(dt);Ue.set(dt,Tt)}}}catch(xn){C={error:xn}}finally{try{Nt&&!Nt.done&&(H=ct.return)&&H.call(ct)}finally{if(C)throw C.error}}try{for(var Hn=le(Ae.entries()),Wt=Hn.next();!Wt.done;Wt=Hn.next()){var wn=be(Wt.value,2),Yo=(dt=wn[0],Tt=wn[1],S._data.has(dt));if(S.set(dt,Tt),S._data.has(dt)){var Qc=S._data.get(dt);Ue.set(dt,Qc),Yo||(_t=!0)}}}catch(xn){ie={error:xn}}finally{try{Wt&&!Wt.done&&(ge=Hn.return)&&ge.call(Hn)}finally{if(ie)throw ie.error}}if(!_t)if(S._data.size!==Ue.size)S._keysAtom.reportChanged();else for(var Bu=S._data.keys(),zu=Ue.keys(),Oi=Bu.next(),va=zu.next();!Oi.done;){if(Oi.value!==va.value){S._keysAtom.reportChanged();break}Oi=Bu.next(),va=zu.next()}S._data=Ue}),this},Object.defineProperty(b.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),b.prototype.toPOJO=function(){var m,S,C={};try{for(var H=le(this),ie=H.next();!ie.done;ie=H.next()){var ge=be(ie.value,2),Ae=ge[0],Ue=ge[1];C[typeof Ae=="symbol"?Ae:V(Ae)]=Ue}}catch(_t){m={error:_t}}finally{try{ie&&!ie.done&&(S=H.return)&&S.call(H)}finally{if(m)throw m.error}}return C},b.prototype.toJS=function(){return new Map(this)},b.prototype.toJSON=function(){return this.toPOJO()},b.prototype.toString=function(){var m=this;return this.name+"[{ "+Array.from(this.keys()).map(function(S){return V(S)+": "+m.get(S)}).join(", ")+" }]"},b.prototype.observe=function(m,S){return qr(this,m)},b.prototype.intercept=function(m){return Kr(this,m)},b}(),Jt=B("ObservableMap",pa),_o={},vi=function(){function b(m,S,C){if(S===void 0&&(S=Me),C===void 0&&(C="ObservableSet@"+O()),this.name=C,this[Cu]=_o,this._data=new Set,this._atom=A(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(H,ie){return S(H,ie,C)},m&&this.replace(m)}return b.prototype.dehanceValue=function(m){return this.dehancer!==void 0?this.dehancer(m):m},b.prototype.clear=function(){var m=this;$n(function(){ue(function(){var S,C;try{for(var H=le(m._data.values()),ie=H.next();!ie.done;ie=H.next()){var ge=ie.value;m.delete(ge)}}catch(Ae){S={error:Ae}}finally{try{ie&&!ie.done&&(C=H.return)&&C.call(H)}finally{if(S)throw S.error}}})})},b.prototype.forEach=function(m,S){var C,H;try{for(var ie=le(this),ge=ie.next();!ge.done;ge=ie.next()){var Ae=ge.value;m.call(S,Ae,Ae,this)}}catch(Ue){C={error:Ue}}finally{try{ge&&!ge.done&&(H=ie.return)&&H.call(ie)}finally{if(C)throw C.error}}},Object.defineProperty(b.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),b.prototype.add=function(m){var S=this;if(lt(this._atom),On(this)&&!(H=Et(this,{type:"add",object:this,newValue:m})))return this;if(!this.has(m)){$n(function(){S._data.add(S.enhancer(m,void 0)),S._atom.reportChanged()});var C=Wn(this),H=C?{type:"add",object:this,newValue:m}:null;C&&dn(this,H)}return this},b.prototype.delete=function(m){var S=this;if(On(this)&&!(H=Et(this,{type:"delete",object:this,oldValue:m})))return!1;if(this.has(m)){var C=Wn(this),H=C?{type:"delete",object:this,oldValue:m}:null;return $n(function(){S._atom.reportChanged(),S._data.delete(m)}),C&&dn(this,H),!0}return!1},b.prototype.has=function(m){return this._atom.reportObserved(),this._data.has(this.dehanceValue(m))},b.prototype.entries=function(){var m=0,S=Array.from(this.keys()),C=Array.from(this.values());return _i({next:function(){var H=m;return m+=1,H<C.length?{value:[S[H],C[H]],done:!1}:{done:!0}}})},b.prototype.keys=function(){return this.values()},b.prototype.values=function(){this._atom.reportObserved();var m=this,S=0,C=Array.from(this._data.values());return _i({next:function(){return S<C.length?{value:m.dehanceValue(C[S++]),done:!1}:{done:!0}}})},b.prototype.replace=function(m){var S=this;return Nn(m)&&(m=m.toJS()),$n(function(){var C=st(!0);try{Array.isArray(m)||q(m)?(S.clear(),m.forEach(function(H){return S.add(H)})):m!=null&&x("Cannot initialize set from "+m)}finally{Dt(C)}}),this},b.prototype.observe=function(m,S){return qr(this,m)},b.prototype.intercept=function(m){return Kr(this,m)},b.prototype.toJS=function(){return new Set(this)},b.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},b.prototype[Cu=W,Symbol.iterator]=function(){return this.values()},b}(),Nn=B("ObservableSet",vi),Ru=function(){function b(m,S,C,H){S===void 0&&(S=new Map),this.target=m,this.values=S,this.name=C,this.defaultEnhancer=H,this.keysAtom=new R(C+".keys")}return b.prototype.read=function(m){return this.values.get(m).get()},b.prototype.write=function(m,S){var C=this.target,H=this.values.get(m);if(H instanceof Er)H.set(S);else{if(On(this)){if(!(ge=Et(this,{type:"update",object:this.proxy||C,name:m,newValue:S})))return;S=ge.newValue}if((S=H.prepareNewValue(S))!==Ye.UNCHANGED){var ie=Wn(this),ge=ie?{type:"update",object:this.proxy||C,oldValue:H.value,name:m,newValue:S}:null;H.setNewValue(S),ie&&dn(this,ge)}}},b.prototype.has=function(m){var S=this.pendingKeys||(this.pendingKeys=new Map),C=S.get(m);if(C)return C.get();var H=!!this.values.get(m);return C=new Ht(H,Je,this.name+"."+V(m)+"?",!1),S.set(m,C),C.get()},b.prototype.addObservableProp=function(m,S,C){C===void 0&&(C=this.defaultEnhancer);var H=this.target;if(On(this)){var ie=Et(this,{object:this.proxy||H,name:m,type:"add",newValue:S});if(!ie)return;S=ie.newValue}var ge=new Ht(S,C,this.name+"."+V(m),!1);this.values.set(m,ge),S=ge.value,Object.defineProperty(H,m,function(Ae){return gi[Ae]||(gi[Ae]={configurable:!0,enumerable:!0,get:function(){return this[W].read(Ae)},set:function(Ue){this[W].write(Ae,Ue)}})}(m)),this.notifyPropertyAddition(m,S)},b.prototype.addComputedProp=function(m,S,C){var H,ie,ge,Ae=this.target;C.name=C.name||this.name+"."+V(S),this.values.set(S,new Er(C)),(m===Ae||(H=m,ie=S,!(ge=Object.getOwnPropertyDescriptor(H,ie))||ge.configurable!==!1&&ge.writable!==!1))&&Object.defineProperty(m,S,function(Ue){return bi[Ue]||(bi[Ue]={configurable:Ye.computedConfigurable,enumerable:!1,get:function(){return mi(this).read(Ue)},set:function(_t){mi(this).write(Ue,_t)}})}(S))},b.prototype.remove=function(m){if(this.values.has(m)){var S=this.target;if(On(this)&&!(Ue=Et(this,{object:this.proxy||S,name:m,type:"remove"})))return;try{zn();var C=Wn(this),H=!1,ie=this.values.get(m),ge=ie&&ie.get();if(ie&&ie.set(void 0),this.keysAtom.reportChanged(),this.values.delete(m),this.pendingKeys){var Ae=this.pendingKeys.get(m);Ae&&Ae.set(!1)}delete this.target[m];var Ue=C?{type:"remove",object:this.proxy||S,oldValue:ge,name:m}:null;C&&dn(this,Ue)}finally{Fn()}}},b.prototype.illegalAccess=function(m,S){},b.prototype.observe=function(m,S){return qr(this,m)},b.prototype.intercept=function(m){return Kr(this,m)},b.prototype.notifyPropertyAddition=function(m,S){var C=Wn(this),H=C?{type:"add",object:this.proxy||this.target,name:m,newValue:S}:null;if(C&&dn(this,H),this.pendingKeys){var ie=this.pendingKeys.get(m);ie&&ie.set(!0)}this.keysAtom.reportChanged()},b.prototype.getKeys=function(){var m,S;this.keysAtom.reportObserved();var C=[];try{for(var H=le(this.values),ie=H.next();!ie.done;ie=H.next()){var ge=be(ie.value,2),Ae=ge[0];ge[1]instanceof Ht&&C.push(Ae)}}catch(Ue){m={error:Ue}}finally{try{ie&&!ie.done&&(S=H.return)&&S.call(H)}finally{if(m)throw m.error}}return C},b}();function Xo(b,m,S){if(m===void 0&&(m=""),S===void 0&&(S=Me),Object.prototype.hasOwnProperty.call(b,W))return b[W];T(b)||(m=(b.constructor.name||"ObservableObject")+"@"+O()),m||(m="ObservableObject@"+O());var C=new Ru(b,new Map,V(m),S);return D(b,W,C),C}var gi=Object.create(null),bi=Object.create(null);function mi(b){var m=b[W];return m||(Ie(b),b[W])}var Iu=B("ObservableObjectAdministration",Ru);function Cn(b){return!!k(b)&&(Ie(b),Iu(b[W]))}function Gn(b,m){if(typeof b=="object"&&b!==null){if(tr(b))return m!==void 0&&x(!1),b[W].atom;if(Nn(b))return b[W];if(Jt(b)){var S=b;return m===void 0?S._keysAtom:((C=S._data.get(m)||S._hasMap.get(m))||x(!1),C)}var C;if(Ie(b),m&&!b[W]&&b[m],Cn(b))return m?((C=b[W].values.get(m))||x(!1),C):x(!1);if(F(b)||Sr(b)||pi(b))return b}else if(typeof b=="function"&&pi(b[W]))return b[W];return x(!1)}function Oo(b,m){return b||x("Expecting some object"),m!==void 0?Oo(Gn(b,m)):F(b)||Sr(b)||pi(b)||Jt(b)||Nn(b)?b:(Ie(b),b[W]?b[W]:void x(!1))}var da=Object.prototype.toString;function ha(b,m,S){return S===void 0&&(S=-1),ya(b,m,S)}function ya(b,m,S,C,H){if(b===m)return b!==0||1/b==1/m;if(b==null||m==null)return!1;if(b!=b)return m!=m;var ie=typeof b;if(ie!=="function"&&ie!=="object"&&typeof m!="object")return!1;var ge=da.call(b);if(ge!==da.call(m))return!1;switch(ge){case"[object RegExp]":case"[object String]":return""+b==""+m;case"[object Number]":return+b!=+b?+m!=+m:+b==0?1/+b==1/m:+b==+m;case"[object Date]":case"[object Boolean]":return+b==+m;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(b)===Symbol.valueOf.call(m);case"[object Map]":case"[object Set]":S>=0&&S++}b=Lu(b),m=Lu(m);var Ae=ge==="[object Array]";if(!Ae){if(typeof b!="object"||typeof m!="object")return!1;var Ue=b.constructor,_t=m.constructor;if(Ue!==_t&&!(typeof Ue=="function"&&Ue instanceof Ue&&typeof _t=="function"&&_t instanceof _t)&&"constructor"in b&&"constructor"in m)return!1}if(S===0)return!1;S<0&&(S=-1),H=H||[];for(var ct=(C=C||[]).length;ct--;)if(C[ct]===b)return H[ct]===m;if(C.push(b),H.push(m),Ae){if((ct=b.length)!==m.length)return!1;for(;ct--;)if(!ya(b[ct],m[ct],S-1,C,H))return!1}else{var Nt=Object.keys(b),dt=void 0;if(ct=Nt.length,Object.keys(m).length!==ct)return!1;for(;ct--;)if(!Jc(m,dt=Nt[ct])||!ya(b[dt],m[dt],S-1,C,H))return!1}return C.pop(),H.pop(),!0}function Lu(b){return tr(b)?b.slice():z(b)||Jt(b)||q(b)||Nn(b)?Array.from(b.entries()):b}function Jc(b,m){return Object.prototype.hasOwnProperty.call(b,m)}function _i(b){return b[Symbol.iterator]=Zr,b}function Zr(){return this}if(typeof Proxy=="undefined"||typeof Symbol=="undefined")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:yu,extras:{getDebugName:function(b,m){return(m!==void 0?Gn(b,m):Cn(b)||Jt(b)||Nn(b)?Oo(b):Gn(b)).name}},$mobx:W})}).call(this,o(155),o(81))},function(a,l,o){var p=o(112),d=o(43),y=o(174);p||d(Object.prototype,"toString",y,{unsafe:!0})},function(a,l,o){var p=o(40),d=o(99),y=o(75),g=o(56),O=o(115),x="Array Iterator",w=g.set,j=g.getterFor(x);a.exports=O(Array,"Array",function(P,k){w(this,{type:x,target:p(P),index:0,kind:k})},function(){var P=j(this),k=P.target,T=P.kind,D=P.index++;return!k||D>=k.length?(P.target=void 0,{value:void 0,done:!0}):T=="keys"?{value:D,done:!1}:T=="values"?{value:k[D],done:!1}:{value:[D,k[D]],done:!1}},"values"),y.Arguments=y.Array,d("keys"),d("values"),d("entries")},function(a,l,o){var p=o(17),d=o(7),y=o(46),g=o(71),O=o(34),x=o(15),w=o(66),j=o(36),P=o(107),k=o(19),T=o(35),D=o(95),B=o(28),z=o(32),q=o(58),ne=o(85),V=o(33),Z=o(39),ee=o(40),W=o(84),R=o(41),F=o(64),A=o(57),L=o(72),G=o(68),oe=o(136),le=o(111),be=o(50),Se=o(37),ve=o(82),ce=o(97),he=o(43),_e=o(87),je=o(91),Ie=o(67),Ze=o(88),Te=o(27),Me=o(137),Je=o(138),te=o(73),K=o(56),X=o(74).forEach,fe=je("hidden"),xe="Symbol",me=Te("toPrimitive"),Fe=K.set,He=K.getterFor(xe),Qe=Object.prototype,Ve=d.Symbol,Oe=Ve&&Ve.prototype,ze=d.TypeError,re=d.QObject,Le=y("JSON","stringify"),ut=be.f,xt=Se.f,ot=oe.f,vt=ve.f,At=x([].push),Bt=_e("symbols"),lt=_e("op-symbols"),Yt=_e("string-to-symbol-registry"),U=_e("symbol-to-string-registry"),ue=_e("wks"),J=!re||!re.prototype||!re.prototype.findChild,pe=j&&k(function(){return A(xt({},"a",{get:function(){return xt(this,"a",{value:7}).a}})).a!=7})?function(We,et,it){var st=ut(Qe,et);st&&delete Qe[et],xt(We,et,it),st&&We!==Qe&&xt(Qe,et,st)}:xt,Ne=function(We,et){var it=Bt[We]=A(Oe);return Fe(it,{type:xe,tag:We,description:et}),j||(it.description=et),it},Ce=function(We,et,it){We===Qe&&Ce(lt,et,it),V(We);var st=W(et);return V(it),T(Bt,st)?(it.enumerable?(T(We,fe)&&We[fe][st]&&(We[fe][st]=!1),it=A(it,{enumerable:F(0,!1)})):(T(We,fe)||xt(We,fe,F(1,{})),We[fe][st]=!0),pe(We,st,it)):xt(We,st,it)},Ke=function(We,et){V(We);var it=ee(et),st=L(it).concat(Vt(it));return X(st,function(Dt){j&&!O(gt,it,Dt)||Ce(We,Dt,it[Dt])}),We},gt=function(We){var et=W(We),it=O(vt,this,et);return!(this===Qe&&T(Bt,et)&&!T(lt,et))&&(!(it||!T(this,et)||!T(Bt,et)||T(this,fe)&&this[fe][et])||it)},rn=function(We,et){var it=ee(We),st=W(et);if(it!==Qe||!T(Bt,st)||T(lt,st)){var Dt=ut(it,st);return!Dt||!T(Bt,st)||T(it,fe)&&it[fe][st]||(Dt.enumerable=!0),Dt}},pn=function(We){var et=ot(ee(We)),it=[];return X(et,function(st){T(Bt,st)||T(Ie,st)||At(it,st)}),it},Vt=function(We){var et=We===Qe,it=ot(et?lt:ee(We)),st=[];return X(it,function(Dt){!T(Bt,Dt)||et&&!T(Qe,Dt)||At(st,Bt[Dt])}),st};if(P||(Ve=function(){if(q(Oe,this))throw ze("Symbol is not a constructor");var We=arguments.length&&arguments[0]!==void 0?R(arguments[0]):void 0,et=Ze(We),it=function(st){this===Qe&&O(it,lt,st),T(this,fe)&&T(this[fe],et)&&(this[fe][et]=!1),pe(this,et,F(1,st))};return j&&J&&pe(Qe,et,{configurable:!0,set:it}),Ne(et,We)},he(Oe=Ve.prototype,"toString",function(){return He(this).tag}),he(Ve,"withoutSetter",function(We){return Ne(Ze(We),We)}),ve.f=gt,Se.f=Ce,be.f=rn,G.f=oe.f=pn,le.f=Vt,Me.f=function(We){return Ne(Te(We),We)},j&&(xt(Oe,"description",{configurable:!0,get:function(){return He(this).description}}),w||he(Qe,"propertyIsEnumerable",gt,{unsafe:!0}))),p({global:!0,wrap:!0,forced:!P,sham:!P},{Symbol:Ve}),X(L(ue),function(We){Je(We)}),p({target:xe,stat:!0,forced:!P},{for:function(We){var et=R(We);if(T(Yt,et))return Yt[et];var it=Ve(et);return Yt[et]=it,U[it]=et,it},keyFor:function(We){if(!ne(We))throw ze(We+" is not a symbol");if(T(U,We))return U[We]},useSetter:function(){J=!0},useSimple:function(){J=!1}}),p({target:"Object",stat:!0,forced:!P,sham:!j},{create:function(We,et){return et===void 0?A(We):Ke(A(We),et)},defineProperty:Ce,defineProperties:Ke,getOwnPropertyDescriptor:rn}),p({target:"Object",stat:!0,forced:!P},{getOwnPropertyNames:pn,getOwnPropertySymbols:Vt}),p({target:"Object",stat:!0,forced:k(function(){le.f(1)})},{getOwnPropertySymbols:function(We){return le.f(Z(We))}}),Le&&p({target:"JSON",stat:!0,forced:!P||k(function(){var We=Ve();return Le([We])!="[null]"||Le({a:We})!="{}"||Le(Object(We))!="{}"})},{stringify:function(We,et,it){var st=ce(arguments),Dt=et;if((z(et)||We!==void 0)&&!ne(We))return D(et)||(et=function(Ht,Xr){if(B(Dt)&&(Xr=O(Dt,this,Ht,Xr)),!ne(Xr))return Xr}),st[1]=et,g(Le,null,st)}}),!Oe[me]){var Zt=Oe.valueOf;he(Oe,me,function(We){return O(Zt,this)})}te(Ve,xe),Ie[fe]=!0},function(a,l,o){var p=o(7),d=o(149),y=o(150),g=o(3),O=o(55),x=o(27),w=x("iterator"),j=x("toStringTag"),P=g.values,k=function(D,B){if(D){if(D[w]!==P)try{O(D,w,P)}catch{D[w]=P}if(D[j]||O(D,j,B),d[B]){for(var z in g)if(D[z]!==g[z])try{O(D,z,g[z])}catch{D[z]=g[z]}}}};for(var T in d)k(p[T]&&p[T].prototype,T);k(y,"DOMTokenList")},function(a,l,o){var p=o(148).charAt,d=o(41),y=o(56),g=o(115),O="String Iterator",x=y.set,w=y.getterFor(O);g(String,"String",function(j){x(this,{type:O,string:d(j),index:0})},function(){var j,P=w(this),k=P.string,T=P.index;return T>=k.length?{value:void 0,done:!0}:(j=p(k,T),P.index+=j.length,{value:j,done:!1})})},function(a,l,o){(function(p){var d=function(y){return y&&y.Math==Math&&y};a.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof p=="object"&&p)||function(){return this}()||Function("return this")()}).call(this,o(81))},function(a,l,o){var p=o(17),d=o(36),y=o(7),g=o(15),O=o(35),x=o(28),w=o(58),j=o(41),P=o(37).f,k=o(131),T=y.Symbol,D=T&&T.prototype;if(d&&x(T)&&(!("description"in D)||T().description!==void 0)){var B={},z=function(){var R=arguments.length<1||arguments[0]===void 0?void 0:j(arguments[0]),F=w(D,this)?new T(R):R===void 0?T():T(R);return R===""&&(B[F]=!0),F};k(z,T),z.prototype=D,D.constructor=z;var q=String(T("test"))=="Symbol(test)",ne=g(D.toString),V=g(D.valueOf),Z=/^Symbol\((.*)\)[^)]+$/,ee=g("".replace),W=g("".slice);P(D,"description",{configurable:!0,get:function(){var R=V(this),F=ne(R);if(O(B,R))return"";var A=q?W(F,7,-1):ee(F,Z,"$1");return A===""?void 0:A}}),p({global:!0,forced:!0},{Symbol:z})}},function(a,l,o){o(138)("iterator")},function(a,l,o){o.d(l,"a",function(){return g.a}),o.d(l,"c",function(){return g.e}),o.d(l,"h",function(){return Z}),o.d(l,"i",function(){return q}),o.d(l,"j",function(){return B}),o.d(l,"b",function(){return be}),o.d(l,"e",function(){return he}),o.d(l,"f",function(){return Se}),o.d(l,"g",function(){return Bt});var p,d,y,g=o(0),O=0,x=[],w=g.i.__b,j=g.i.__r,P=g.i.diffed,k=g.i.__c,T=g.i.unmount;function D(U,ue){g.i.__h&&g.i.__h(d,U,O||ue),O=0;var J=d.__H||(d.__H={__:[],__h:[]});return U>=J.__.length&&J.__.push({}),J.__[U]}function B(U){return O=1,z(G,U)}function z(U,ue,J){var pe=D(p++,2);return pe.t=U,pe.__c||(pe.__=[J?J(ue):G(void 0,ue),function(Ne){var Ce=pe.t(pe.__[0],Ne);pe.__[0]!==Ce&&(pe.__=[Ce,pe.__[1]],pe.__c.setState({}))}],pe.__c=d),pe.__}function q(U,ue){var J=D(p++,3);!g.i.__s&&L(J.__H,ue)&&(J.__=U,J.__H=ue,d.__H.__h.push(J))}function ne(U,ue){var J=D(p++,4);!g.i.__s&&L(J.__H,ue)&&(J.__=U,J.__H=ue,d.__h.push(J))}function V(U,ue){var J=D(p++,7);return L(J.__H,ue)&&(J.__=U(),J.__H=ue,J.__h=U),J.__}function Z(U,ue){return O=8,V(function(){return U},ue)}function ee(){var U;for(x.sort(function(ue,J){return ue.__v.__b-J.__v.__b});U=x.pop();)if(U.__P)try{U.__H.__h.forEach(F),U.__H.__h.forEach(A),U.__H.__h=[]}catch(ue){U.__H.__h=[],g.i.__e(ue,U.__v)}}g.i.__b=function(U){d=null,w&&w(U)},g.i.__r=function(U){j&&j(U),p=0;var ue=(d=U.__c).__H;ue&&(ue.__h.forEach(F),ue.__h.forEach(A),ue.__h=[])},g.i.diffed=function(U){P&&P(U);var ue=U.__c;ue&&ue.__H&&ue.__H.__h.length&&(x.push(ue)!==1&&y===g.i.requestAnimationFrame||((y=g.i.requestAnimationFrame)||R)(ee)),d=null},g.i.__c=function(U,ue){ue.some(function(J){try{J.__h.forEach(F),J.__h=J.__h.filter(function(pe){return!pe.__||A(pe)})}catch(pe){ue.some(function(Ne){Ne.__h&&(Ne.__h=[])}),ue=[],g.i.__e(pe,J.__v)}}),k&&k(U,ue)},g.i.unmount=function(U){T&&T(U);var ue,J=U.__c;J&&J.__H&&(J.__H.__.forEach(function(pe){try{F(pe)}catch(Ne){ue=Ne}}),ue&&g.i.__e(ue,J.__v))};var W=typeof requestAnimationFrame=="function";function R(U){var ue,J=function(){clearTimeout(pe),W&&cancelAnimationFrame(ue),setTimeout(U)},pe=setTimeout(J,100);W&&(ue=requestAnimationFrame(J))}function F(U){var ue=d,J=U.__c;typeof J=="function"&&(U.__c=void 0,J()),d=ue}function A(U){var ue=d;U.__c=U.__(),d=ue}function L(U,ue){return!U||U.length!==ue.length||ue.some(function(J,pe){return J!==U[pe]})}function G(U,ue){return typeof ue=="function"?ue(U):ue}function oe(U,ue){for(var J in ue)U[J]=ue[J];return U}function le(U,ue){for(var J in U)if(J!=="__source"&&!(J in ue))return!0;for(var pe in ue)if(pe!=="__source"&&U[pe]!==ue[pe])return!0;return!1}function be(U){this.props=U}function Se(U,ue){function J(Ne){var Ce=this.props.ref,Ke=Ce==Ne.ref;return!Ke&&Ce&&(Ce.call?Ce(null):Ce.current=null),ue?!ue(this.props,Ne)||!Ke:le(this.props,Ne)}function pe(Ne){return this.shouldComponentUpdate=J,Object(g.e)(U,Ne)}return pe.displayName="Memo("+(U.displayName||U.name)+")",pe.prototype.isReactComponent=!0,pe.__f=!0,pe}(be.prototype=new g.a).isPureReactComponent=!0,be.prototype.shouldComponentUpdate=function(U,ue){return le(this.props,U)||le(this.state,ue)};var ve=g.i.__b;g.i.__b=function(U){U.type&&U.type.__f&&U.ref&&(U.props.ref=U.ref,U.ref=null),ve&&ve(U)};var ce=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function he(U){function ue(J,pe){var Ne=oe({},J);return delete Ne.ref,U(Ne,!(pe=J.ref||pe)||typeof pe=="object"&&!("current"in pe)?null:pe)}return ue.$$typeof=ce,ue.render=ue,ue.prototype.isReactComponent=ue.__f=!0,ue.displayName="ForwardRef("+(U.displayName||U.name)+")",ue}var _e=function(U,ue){return U==null?null:Object(g.k)(Object(g.k)(U).map(ue))},je={map:_e,forEach:_e,count:function(U){return U?Object(g.k)(U).length:0},only:function(U){var ue=Object(g.k)(U);if(ue.length!==1)throw"Children.only";return ue[0]},toArray:g.k},Ie=g.i.__e;g.i.__e=function(U,ue,J){if(U.then){for(var pe,Ne=ue;Ne=Ne.__;)if((pe=Ne.__c)&&pe.__c)return ue.__e==null&&(ue.__e=J.__e,ue.__k=J.__k),pe.__c(U,ue)}Ie(U,ue,J)};var Ze=g.i.unmount;function Te(U,ue,J){return U&&(U.__c&&U.__c.__H&&(U.__c.__H.__.forEach(function(pe){typeof pe.__c=="function"&&pe.__c()}),U.__c.__H=null),(U=oe({},U)).__c!=null&&(U.__c.__P===J&&(U.__c.__P=ue),U.__c=null),U.__k=U.__k&&U.__k.map(function(pe){return Te(pe,ue,J)})),U}function Me(U,ue,J){return U&&(U.__v=null,U.__k=U.__k&&U.__k.map(function(pe){return Me(pe,ue,J)}),U.__c&&U.__c.__P===ue&&(U.__e&&J.insertBefore(U.__e,U.__d),U.__c.__e=!0,U.__c.__P=J)),U}function Je(){this.__u=0,this.t=null,this.__b=null}function te(U){var ue=U.__.__c;return ue&&ue.__e&&ue.__e(U)}function K(){this.u=null,this.o=null}g.i.unmount=function(U){var ue=U.__c;ue&&ue.__R&&ue.__R(),ue&&U.__h===!0&&(U.type=null),Ze&&Ze(U)},(Je.prototype=new g.a).__c=function(U,ue){var J=ue.__c,pe=this;pe.t==null&&(pe.t=[]),pe.t.push(J);var Ne=te(pe.__v),Ce=!1,Ke=function(){Ce||(Ce=!0,J.__R=null,Ne?Ne(gt):gt())};J.__R=Ke;var gt=function(){if(!--pe.__u){if(pe.state.__e){var pn=pe.state.__e;pe.__v.__k[0]=Me(pn,pn.__c.__P,pn.__c.__O)}var Vt;for(pe.setState({__e:pe.__b=null});Vt=pe.t.pop();)Vt.forceUpdate()}},rn=ue.__h===!0;pe.__u++||rn||pe.setState({__e:pe.__b=pe.__v.__k[0]}),U.then(Ke,Ke)},Je.prototype.componentWillUnmount=function(){this.t=[]},Je.prototype.render=function(U,ue){if(this.__b){if(this.__v.__k){var J=document.createElement("div"),pe=this.__v.__k[0].__c;this.__v.__k[0]=Te(this.__b,J,pe.__O=pe.__P)}this.__b=null}var Ne=ue.__e&&Object(g.e)(g.b,null,U.fallback);return Ne&&(Ne.__h=null),[Object(g.e)(g.b,null,ue.__e?null:U.children),Ne]};var X=function(U,ue,J){if(++J[1]===J[0]&&U.o.delete(ue),U.props.revealOrder&&(U.props.revealOrder[0]!=="t"||!U.o.size))for(J=U.u;J;){for(;J.length>3;)J.pop()();if(J[1]<J[0])break;U.u=J=J[2]}};function fe(U){return this.getChildContext=function(){return U.context},U.children}function xe(U){var ue=this,J=U.i;ue.componentWillUnmount=function(){Object(g.j)(null,ue.l),ue.l=null,ue.i=null},ue.i&&ue.i!==J&&ue.componentWillUnmount(),U.__v?(ue.l||(ue.i=J,ue.l={nodeType:1,parentNode:J,childNodes:[],appendChild:function(pe){this.childNodes.push(pe),ue.i.appendChild(pe)},insertBefore:function(pe,Ne){this.childNodes.push(pe),ue.i.appendChild(pe)},removeChild:function(pe){this.childNodes.splice(this.childNodes.indexOf(pe)>>>1,1),ue.i.removeChild(pe)}}),Object(g.j)(Object(g.e)(fe,{context:ue.context},U.__v),ue.l)):ue.l&&ue.componentWillUnmount()}(K.prototype=new g.a).__e=function(U){var ue=this,J=te(ue.__v),pe=ue.o.get(U);return pe[0]++,function(Ne){var Ce=function(){ue.props.revealOrder?(pe.push(Ne),X(ue,U,pe)):Ne()};J?J(Ce):Ce()}},K.prototype.render=function(U){this.u=null,this.o=new Map;var ue=Object(g.k)(U.children);U.revealOrder&&U.revealOrder[0]==="b"&&ue.reverse();for(var J=ue.length;J--;)this.o.set(ue[J],this.u=[1,0,this.u]);return U.children},K.prototype.componentDidUpdate=K.prototype.componentDidMount=function(){var U=this;this.o.forEach(function(ue,J){X(U,J,ue)})};var me=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Fe=/^(?: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]/,He=typeof document!="undefined",Qe=function(U){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(U)};g.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(U){Object.defineProperty(g.a.prototype,U,{configurable:!0,get:function(){return this["UNSAFE_"+U]},set:function(ue){Object.defineProperty(this,U,{configurable:!0,writable:!0,value:ue})}})});var Ve=g.i.event;function Oe(){}function ze(){return this.cancelBubble}function re(){return this.defaultPrevented}g.i.event=function(U){return Ve&&(U=Ve(U)),U.persist=Oe,U.isPropagationStopped=ze,U.isDefaultPrevented=re,U.nativeEvent=U};var Le,ut={configurable:!0,get:function(){return this.class}},xt=g.i.vnode;g.i.vnode=function(U){var ue=U.type,J=U.props,pe=J;if(typeof ue=="string"){var Ne=ue.indexOf("-")===-1;for(var Ce in pe={},J){var Ke=J[Ce];He&&Ce==="children"&&ue==="noscript"||Ce==="value"&&"defaultValue"in J&&Ke==null||(Ce==="defaultValue"&&"value"in J&&J.value==null?Ce="value":Ce==="download"&&Ke===!0?Ke="":/ondoubleclick/i.test(Ce)?Ce="ondblclick":/^onchange(textarea|input)/i.test(Ce+ue)&&!Qe(J.type)?Ce="oninput":/^onfocus$/i.test(Ce)?Ce="onfocusin":/^onblur$/i.test(Ce)?Ce="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Ce)?Ce=Ce.toLowerCase():Ne&&Fe.test(Ce)?Ce=Ce.replace(/[A-Z0-9]/,"-$&").toLowerCase():Ke===null&&(Ke=void 0),pe[Ce]=Ke)}ue=="select"&&pe.multiple&&Array.isArray(pe.value)&&(pe.value=Object(g.k)(J.children).forEach(function(gt){gt.props.selected=pe.value.indexOf(gt.props.value)!=-1})),ue=="select"&&pe.defaultValue!=null&&(pe.value=Object(g.k)(J.children).forEach(function(gt){gt.props.selected=pe.multiple?pe.defaultValue.indexOf(gt.props.value)!=-1:pe.defaultValue==gt.props.value})),U.props=pe,J.class!=J.className&&(ut.enumerable="className"in J,J.className!=null&&(pe.class=J.className),Object.defineProperty(pe,"className",ut))}U.$$typeof=me,xt&&xt(U)};var ot=g.i.__r;g.i.__r=function(U){ot&&ot(U),Le=U.__c};var vt={ReactCurrentDispatcher:{current:{readContext:function(U){return Le.__n[U.__c].props.value}}}};function At(U){return!!U&&U.$$typeof===me}var Bt=function(U,ue){return U(ue)},lt=g.b,Yt={useState:B,useReducer:z,useEffect:q,useLayoutEffect:ne,useRef:function(U){return O=5,V(function(){return{current:U}},[])},useImperativeHandle:function(U,ue,J){O=6,ne(function(){typeof U=="function"?U(ue()):U&&(U.current=ue())},J==null?J:J.concat(U))},useMemo:V,useCallback:Z,useContext:function(U){var ue=d.context[U.__c],J=D(p++,9);return J.c=U,ue?(J.__==null&&(J.__=!0,ue.sub(d)),ue.props.value):U.__},useDebugValue:function(U,ue){g.i.useDebugValue&&g.i.useDebugValue(ue?ue(U):U)},version:"17.0.2",Children:je,render:function(U,ue,J){return ue.__k==null&&(ue.textContent=""),Object(g.j)(U,ue),typeof J=="function"&&J(),U?U.__c:null},hydrate:function(U,ue,J){return Object(g.h)(U,ue),typeof J=="function"&&J(),U?U.__c:null},unmountComponentAtNode:function(U){return!!U.__k&&(Object(g.j)(null,U),!0)},createPortal:function(U,ue){return Object(g.e)(xe,{__v:U,i:ue})},createElement:g.e,createContext:g.d,createFactory:function(U){return g.e.bind(null,U)},cloneElement:function(U){return At(U)?g.c.apply(null,arguments):U},createRef:g.f,Fragment:g.b,isValidElement:At,findDOMNode:function(U){return U&&(U.base||U.nodeType===1&&U)||null},Component:g.a,PureComponent:be,memo:Se,forwardRef:he,flushSync:function(U,ue){return U(ue)},unstable_batchedUpdates:Bt,StrictMode:lt,Suspense:Je,SuspenseList:K,lazy:function(U){var ue,J,pe;function Ne(Ce){if(ue||(ue=U()).then(function(Ke){J=Ke.default||Ke},function(Ke){pe=Ke}),pe)throw pe;if(!J)throw ue;return Object(g.e)(J,Ce)}return Ne.displayName="Lazy",Ne.__f=!0,Ne},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:vt};l.d=Yt},function(a,l,o){var p=o(7),d=o(149),y=o(150),g=o(182),O=o(55),x=function(j){if(j&&j.forEach!==g)try{O(j,"forEach",g)}catch{j.forEach=g}};for(var w in d)d[w]&&x(p[w]&&p[w].prototype);x(y)},function(a,l,o){o(17)({target:"Object",stat:!0},{setPrototypeOf:o(101)})},function(a,l,o){var p=o(17),d=o(19),y=o(39),g=o(100),O=o(140);p({target:"Object",stat:!0,forced:d(function(){g(1)}),sham:!O},{getPrototypeOf:function(x){return g(y(x))}})},function(a,l,o){var p=o(17),d=o(46),y=o(71),g=o(200),O=o(157),x=o(33),w=o(32),j=o(57),P=o(19),k=d("Reflect","construct"),T=Object.prototype,D=[].push,B=P(function(){function ne(){}return!(k(function(){},[],ne)instanceof ne)}),z=!P(function(){k(function(){})}),q=B||z;p({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(ne,V){O(ne),x(V);var Z=arguments.length<3?ne:O(arguments[2]);if(z&&!B)return k(ne,V,Z);if(ne==Z){switch(V.length){case 0:return new ne;case 1:return new ne(V[0]);case 2:return new ne(V[0],V[1]);case 3:return new ne(V[0],V[1],V[2]);case 4:return new ne(V[0],V[1],V[2],V[3])}var ee=[null];return y(D,ee,V),new(y(g,ne,ee))}var W=Z.prototype,R=j(w(W)?W:T),F=y(ne,R,V);return w(F)?F:R}})},function(a,l){var o=Function.prototype,p=o.bind,d=o.call,y=p&&p.bind(d);a.exports=p?function(g){return g&&y(d,g)}:function(g){return g&&function(){return d.apply(g,arguments)}}},function(a,l,o){var p=o(17),d=o(7),y=o(95),g=o(98),O=o(32),x=o(69),w=o(44),j=o(40),P=o(60),k=o(27),T=o(76),D=o(97),B=T("slice"),z=k("species"),q=d.Array,ne=Math.max;p({target:"Array",proto:!0,forced:!B},{slice:function(V,Z){var ee,W,R,F=j(this),A=w(F),L=x(V,A),G=x(Z===void 0?A:Z,A);if(y(F)&&(ee=F.constructor,(g(ee)&&(ee===q||y(ee.prototype))||O(ee)&&(ee=ee[z])===null)&&(ee=void 0),ee===q||ee===void 0))return D(F,L,G);for(W=new(ee===void 0?q:ee)(ne(G-L,0)),R=0;L<G;L++,R++)L in F&&P(W,R,F[L]);return W.length=R,W}})},function(a,l,o){var p=o(7),d=o(50).f,y=o(55),g=o(43),O=o(109),x=o(131),w=o(94);a.exports=function(j,P){var k,T,D,B,z,q=j.target,ne=j.global,V=j.stat;if(k=ne?p:V?p[q]||O(q,{}):(p[q]||{}).prototype)for(T in P){if(B=P[T],D=j.noTargetGet?(z=d(k,T))&&z.value:k[T],!w(ne?T:q+(V?".":"#")+T,j.forced)&&D!==void 0){if(typeof B==typeof D)continue;x(B,D)}(j.sham||D&&D.sham)&&y(B,"sham",!0),g(k,T,B,j)}}},function(a,l,o){var p=o(17),d=o(102);p({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},function(a,l){a.exports=function(o){try{return!!o()}catch{return!0}}},function(a,l,o){var p=o(17),d=o(39),y=o(72);p({target:"Object",stat:!0,forced:o(19)(function(){y(1)})},{keys:function(g){return y(d(g))}})},function(a,l,o){var p=o(17),d=o(19),y=o(40),g=o(50).f,O=o(36),x=d(function(){g(1)});p({target:"Object",stat:!0,forced:!O||x,sham:!O},{getOwnPropertyDescriptor:function(w,j){return g(y(w),j)}})},function(a,l,o){var p=o(36),d=o(92).EXISTS,y=o(15),g=o(37).f,O=Function.prototype,x=y(O.toString),w=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,j=y(w.exec);p&&!d&&g(O,"name",{configurable:!0,get:function(){try{return j(w,x(this))[1]}catch{return""}}})},function(a,l,o){var p=o(17),d=o(74).filter;p({target:"Array",proto:!0,forced:!o(76)("filter")},{filter:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(a,l,o){var p=o(17),d=o(183);p({target:"Array",stat:!0,forced:!o(119)(function(y){Array.from(y)})},{from:d})},function(a,l,o){var p=o(17),d=o(36),y=o(132),g=o(40),O=o(50),x=o(60);p({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(w){for(var j,P,k=g(w),T=O.f,D=y(k),B={},z=0;D.length>z;)(P=T(k,j=D[z++]))!==void 0&&x(B,j,P);return B}})},,function(a,l,o){var p=o(7),d=o(87),y=o(35),g=o(88),O=o(107),x=o(129),w=d("wks"),j=p.Symbol,P=j&&j.for,k=x?j:j&&j.withoutSetter||g;a.exports=function(T){if(!y(w,T)||!O&&typeof w[T]!="string"){var D="Symbol."+T;O&&y(j,T)?w[T]=j[T]:w[T]=x&&P?P(D):k(D)}return w[T]}},function(a,l){a.exports=function(o){return typeof o=="function"}},function(a,l,o){var p=o(17),d=o(7),y=o(19),g=o(95),O=o(32),x=o(39),w=o(44),j=o(60),P=o(114),k=o(76),T=o(27),D=o(65),B=T("isConcatSpreadable"),z=9007199254740991,q="Maximum allowed index exceeded",ne=d.TypeError,V=D>=51||!y(function(){var W=[];return W[B]=!1,W.concat()[0]!==W}),Z=k("concat"),ee=function(W){if(!O(W))return!1;var R=W[B];return R!==void 0?!!R:g(W)};p({target:"Array",proto:!0,forced:!V||!Z},{concat:function(W){var R,F,A,L,G,oe=x(this),le=P(oe,0),be=0;for(R=-1,A=arguments.length;R<A;R++)if(ee(G=R===-1?oe:arguments[R])){if(be+(L=w(G))>z)throw ne(q);for(F=0;F<L;F++,be++)F in G&&j(le,be,G[F])}else{if(be>=z)throw ne(q);j(le,be++,G)}return le.length=be,le}})},function(a,l,o){var p=o(17),d=o(199);p({target:"Object",stat:!0,forced:Object.assign!==d},{assign:d})},function(a,l,o){var p=o(105),d=typeof self=="object"&&self&&self.Object===Object&&self,y=p.a||d||Function("return this")();l.a=y},function(a,l,o){var p=o(28);a.exports=function(d){return typeof d=="object"?d!==null:p(d)}},function(a,l,o){var p=o(7),d=o(32),y=p.String,g=p.TypeError;a.exports=function(O){if(d(O))return O;throw g(y(O)+" is not an object")}},function(a,l){var o=Function.prototype.call;a.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(a,l,o){var p=o(15),d=o(39),y=p({}.hasOwnProperty);a.exports=Object.hasOwn||function(g,O){return y(d(g),O)}},function(a,l,o){var p=o(19);a.exports=!p(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(a,l,o){var p=o(7),d=o(36),y=o(130),g=o(33),O=o(84),x=p.TypeError,w=Object.defineProperty;l.f=d?w:function(j,P,k){if(g(j),P=O(P),g(k),y)try{return w(j,P,k)}catch{}if("get"in k||"set"in k)throw x("Accessors not supported");return"value"in k&&(j[P]=k.value),j}},function(a,l,o){var p=o(17),d=o(74).map;p({target:"Array",proto:!0,forced:!o(76)("map")},{map:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(a,l,o){var p=o(7),d=o(45),y=p.Object;a.exports=function(g){return y(d(g))}},function(a,l,o){var p=o(83),d=o(45);a.exports=function(y){return p(d(y))}},function(a,l,o){var p=o(7),d=o(96),y=p.String;a.exports=function(g){if(d(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return y(g)}},function(a,l,o){(function(p){o.d(l,"d",function(){return g}),o.d(l,"c",function(){return O}),o.d(l,"b",function(){return x}),o.d(l,"a",function(){return j});var d=o(10),y=function(P,k){var T=typeof Symbol=="function"&&P[Symbol.iterator];if(!T)return P;var D,B,z=T.call(P),q=[];try{for(;(k===void 0||k-- >0)&&!(D=z.next()).done;)q.push(D.value)}catch(ne){B={error:ne}}finally{try{D&&!D.done&&(T=z.return)&&T.call(z)}finally{if(B)throw B.error}}return q};function g(){var P=y(Object(d.j)(0),2)[1];return Object(d.h)(function(){P(function(k){return k+1})},[])}function O(P){if(!P||typeof P!="object")return!1;var k=Object.getPrototypeOf(P);return!k||k===Object.prototype}function x(P){return typeof Symbol=="function"?Symbol.for(P):"__$mobx-react "+P+"__"}var w={};function j(){return typeof window!="undefined"?window:p!==void 0?p:typeof self!="undefined"?self:w}}).call(this,o(81))},function(a,l,o){var p=o(7),d=o(28),y=o(35),g=o(55),O=o(109),x=o(90),w=o(56),j=o(92).CONFIGURABLE,P=w.get,k=w.enforce,T=String(String).split("String");(a.exports=function(D,B,z,q){var ne,V=!!q&&!!q.unsafe,Z=!!q&&!!q.enumerable,ee=!!q&&!!q.noTargetGet,W=q&&q.name!==void 0?q.name:B;d(z)&&(String(W).slice(0,7)==="Symbol("&&(W="["+String(W).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!y(z,"name")||j&&z.name!==W)&&g(z,"name",W),(ne=k(z)).source||(ne.source=T.join(typeof W=="string"?W:""))),D!==p?(V?!ee&&D[B]&&(Z=!0):delete D[B],Z?D[B]=z:g(D,B,z)):Z?D[B]=z:O(B,z)})(Function.prototype,"toString",function(){return d(this)&&P(this).source||x(this)})},function(a,l,o){var p=o(93);a.exports=function(d){return p(d.length)}},function(a,l,o){var p=o(7).TypeError;a.exports=function(d){if(d==null)throw p("Can't call method on "+d);return d}},function(a,l,o){var p=o(7),d=o(28),y=function(g){return d(g)?g:void 0};a.exports=function(g,O){return arguments.length<2?y(p[g]):p[g]&&p[g][O]}},function(a,l,o){var p=o(17),d=o(34),y=o(32),g=o(33),O=o(201),x=o(50),w=o(100);p({target:"Reflect",stat:!0},{get:function j(P,k){var T,D,B=arguments.length<3?P:arguments[2];return g(P)===B?P[k]:(T=x.f(P,k))?O(T)?T.value:T.get===void 0?void 0:d(T.get,B):y(D=w(P))?j(D,k,B):void 0}})},function(a,l,o){(function(p){var d=o(31),y=o(166),g=u&&!u.nodeType&&u,O=g&&typeof p=="object"&&p&&!p.nodeType&&p,x=O&&O.exports===g?d.a.Buffer:void 0,w=(x?x.isBuffer:void 0)||y.a;l.a=w}).call(this,o(121)(a))},function(a,l,o){(function(p){var d=o(105),y=u&&!u.nodeType&&u,g=y&&typeof p=="object"&&p&&!p.nodeType&&p,O=g&&g.exports===y&&d.a.process,x=function(){try{var w=g&&g.require&&g.require("util").types;return w||O&&O.binding&&O.binding("util")}catch{}}();l.a=x}).call(this,o(121)(a))},function(a,l,o){var p=o(36),d=o(34),y=o(82),g=o(64),O=o(40),x=o(84),w=o(35),j=o(130),P=Object.getOwnPropertyDescriptor;l.f=p?P:function(k,T){if(k=O(k),T=x(T),j)try{return P(k,T)}catch{}if(w(k,T))return g(!d(y.f,k,T),k[T])}},function(a,l,o){var p=o(15),d=p({}.toString),y=p("".slice);a.exports=function(g){return y(d(g),8,-1)}},function(a,l,o){var p=o(17),d=o(213).entries;p({target:"Object",stat:!0},{entries:function(y){return d(y)}})},function(a,l,o){var p=o(46);a.exports=p("navigator","userAgent")||""},function(a,l,o){var p=o(7),d=o(28),y=o(86),g=p.TypeError;a.exports=function(O){if(d(O))return O;throw g(y(O)+" is not a function")}},function(a,l,o){var p=o(36),d=o(37),y=o(64);a.exports=p?function(g,O,x){return d.f(g,O,y(1,x))}:function(g,O,x){return g[O]=x,g}},function(a,l,o){var p,d,y,g=o(170),O=o(7),x=o(15),w=o(32),j=o(55),P=o(35),k=o(108),T=o(91),D=o(67),B="Object already initialized",z=O.TypeError,q=O.WeakMap;if(g||k.state){var ne=k.state||(k.state=new q),V=x(ne.get),Z=x(ne.has),ee=x(ne.set);p=function(R,F){if(Z(ne,R))throw new z(B);return F.facade=R,ee(ne,R,F),F},d=function(R){return V(ne,R)||{}},y=function(R){return Z(ne,R)}}else{var W=T("state");D[W]=!0,p=function(R,F){if(P(R,W))throw new z(B);return F.facade=R,j(R,W,F),F},d=function(R){return P(R,W)?R[W]:{}},y=function(R){return P(R,W)}}a.exports={set:p,get:d,has:y,enforce:function(R){return y(R)?d(R):p(R,{})},getterFor:function(R){return function(F){var A;if(!w(F)||(A=d(F)).type!==R)throw z("Incompatible receiver, "+R+" required");return A}}}},function(a,l,o){var p,d=o(33),y=o(171),g=o(110),O=o(67),x=o(135),w=o(89),j=o(91),P=j("IE_PROTO"),k=function(){},T=function(z){return"<script>"+z+"<\/script>"},D=function(z){z.write(T("")),z.close();var q=z.parentWindow.Object;return z=null,q},B=function(){try{p=new ActiveXObject("htmlfile")}catch{}var z,q;B=typeof document!="undefined"?document.domain&&p?D(p):((q=w("iframe")).style.display="none",x.appendChild(q),q.src=String("javascript:"),(z=q.contentWindow.document).open(),z.write(T("document.F=Object")),z.close(),z.F):D(p);for(var ne=g.length;ne--;)delete B.prototype[g[ne]];return B()};O[P]=!0,a.exports=Object.create||function(z,q){var ne;return z!==null?(k.prototype=d(z),ne=new k,k.prototype=null,ne[P]=z):ne=B(),q===void 0?ne:y(ne,q)}},function(a,l,o){var p=o(15);a.exports=p({}.isPrototypeOf)},function(a,l,o){var p=o(54);a.exports=function(d,y){var g=d[y];return g==null?void 0:p(g)}},function(a,l,o){var p=o(84),d=o(37),y=o(64);a.exports=function(g,O,x){var w=p(O);w in g?d.f(g,w,y(0,x)):g[w]=x}},function(a,l,o){var p=o(15),d=o(54),y=p(p.bind);a.exports=function(g,O){return d(g),O===void 0?g:y?y(g,O):function(){return g.apply(O,arguments)}}},function(a,l,o){o(177)("Map",function(p){return function(){return p(this,arguments.length?arguments[0]:void 0)}},o(181))},function(a,l,o){var p=o(17),d=o(15),y=o(83),g=o(40),O=o(120),x=d([].join),w=y!=Object,j=O("join",",");p({target:"Array",proto:!0,forced:w||!j},{join:function(P){return x(g(this),P===void 0?",":P)}})},function(a,l){a.exports=function(o,p){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:p}}},function(a,l,o){var p,d,y=o(7),g=o(53),O=y.process,x=y.Deno,w=O&&O.versions||x&&x.version,j=w&&w.v8;j&&(d=(p=j.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!d&&g&&(!(p=g.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=g.match(/Chrome\/(\d+)/))&&(d=+p[1]),a.exports=d},function(a,l){a.exports=!1},function(a,l){a.exports={}},function(a,l,o){var p=o(133),d=o(110).concat("length","prototype");l.f=Object.getOwnPropertyNames||function(y){return p(y,d)}},function(a,l,o){var p=o(70),d=Math.max,y=Math.min;a.exports=function(g,O){var x=p(g);return x<0?d(x+O,0):y(x,O)}},function(a,l){var o=Math.ceil,p=Math.floor;a.exports=function(d){var y=+d;return y!=y||y===0?0:(y>0?p:o)(y)}},function(a,l){var o=Function.prototype,p=o.apply,d=o.bind,y=o.call;a.exports=typeof Reflect=="object"&&Reflect.apply||(d?y.bind(p):function(){return y.apply(p,arguments)})},function(a,l,o){var p=o(133),d=o(110);a.exports=Object.keys||function(y){return p(y,d)}},function(a,l,o){var p=o(37).f,d=o(35),y=o(27)("toStringTag");a.exports=function(g,O,x){g&&!d(g=x?g:g.prototype,y)&&p(g,y,{configurable:!0,value:O})}},function(a,l,o){var p=o(61),d=o(15),y=o(83),g=o(39),O=o(44),x=o(114),w=d([].push),j=function(P){var k=P==1,T=P==2,D=P==3,B=P==4,z=P==6,q=P==7,ne=P==5||z;return function(V,Z,ee,W){for(var R,F,A=g(V),L=y(A),G=p(Z,ee),oe=O(L),le=0,be=W||x,Se=k?be(V,oe):T||q?be(V,0):void 0;oe>le;le++)if((ne||le in L)&&(F=G(R=L[le],le,A),P))if(k)Se[le]=F;else if(F)switch(P){case 3:return!0;case 5:return R;case 6:return le;case 2:w(Se,R)}else switch(P){case 4:return!1;case 7:w(Se,R)}return z?-1:D||B?B:Se}};a.exports={forEach:j(0),map:j(1),filter:j(2),some:j(3),every:j(4),find:j(5),findIndex:j(6),filterReject:j(7)}},function(a,l){a.exports={}},function(a,l,o){var p=o(19),d=o(27),y=o(65),g=d("species");a.exports=function(O){return y>=51||!p(function(){var x=[];return(x.constructor={})[g]=function(){return{foo:1}},x[O](Boolean).foo!==1})}},function(a,l,o){var p=o(71),d=o(34),y=o(15),g=o(122),O=o(154),x=o(33),w=o(45),j=o(156),P=o(123),k=o(93),T=o(41),D=o(59),B=o(113),z=o(124),q=o(102),ne=o(151),V=o(19),Z=ne.UNSUPPORTED_Y,ee=4294967295,W=Math.min,R=[].push,F=y(/./.exec),A=y(R),L=y("".slice),G=!V(function(){var oe=/(?:)/,le=oe.exec;oe.exec=function(){return le.apply(this,arguments)};var be="ab".split(oe);return be.length!==2||be[0]!=="a"||be[1]!=="b"});g("split",function(oe,le,be){var Se;return Se="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(ve,ce){var he=T(w(this)),_e=ce===void 0?ee:ce>>>0;if(_e===0)return[];if(ve===void 0)return[he];if(!O(ve))return d(le,he,ve,_e);for(var je,Ie,Ze,Te=[],Me=(ve.ignoreCase?"i":"")+(ve.multiline?"m":"")+(ve.unicode?"u":"")+(ve.sticky?"y":""),Je=0,te=new RegExp(ve.source,Me+"g");(je=d(q,te,he))&&!((Ie=te.lastIndex)>Je&&(A(Te,L(he,Je,je.index)),je.length>1&&je.index<he.length&&p(R,Te,B(je,1)),Ze=je[0].length,Je=Ie,Te.length>=_e));)te.lastIndex===je.index&&te.lastIndex++;return Je===he.length?!Ze&&F(te,"")||A(Te,""):A(Te,L(he,Je)),Te.length>_e?B(Te,0,_e):Te}:"0".split(void 0,0).length?function(ve,ce){return ve===void 0&&ce===0?[]:d(le,this,ve,ce)}:le,[function(ve,ce){var he=w(this),_e=ve==null?void 0:D(ve,oe);return _e?d(_e,ve,he,ce):d(Se,T(he),ve,ce)},function(ve,ce){var he=x(this),_e=T(ve),je=be(Se,he,_e,ce,Se!==le);if(je.done)return je.value;var Ie=j(he,RegExp),Ze=he.unicode,Te=(he.ignoreCase?"i":"")+(he.multiline?"m":"")+(he.unicode?"u":"")+(Z?"g":"y"),Me=new Ie(Z?"^(?:"+he.source+")":he,Te),Je=ce===void 0?ee:ce>>>0;if(Je===0)return[];if(_e.length===0)return z(Me,_e)===null?[_e]:[];for(var te=0,K=0,X=[];K<_e.length;){Me.lastIndex=Z?0:K;var fe,xe=z(Me,Z?L(_e,K):_e);if(xe===null||(fe=W(k(Me.lastIndex+(Z?K:0)),_e.length))===te)K=P(_e,K,Ze);else{if(A(X,L(_e,te,K)),X.length===Je)return X;for(var me=1;me<=xe.length-1;me++)if(A(X,xe[me]),X.length===Je)return X;K=te=fe}}return A(X,L(_e,te)),X}]},!G,Z)},function(a,l,o){var p=o(36),d=o(7),y=o(15),g=o(94),O=o(43),x=o(35),w=o(145),j=o(58),P=o(85),k=o(128),T=o(19),D=o(68).f,B=o(50).f,z=o(37).f,q=o(197),ne=o(159).trim,V="Number",Z=d.Number,ee=Z.prototype,W=d.TypeError,R=y("".slice),F=y("".charCodeAt),A=function(Se){var ve=k(Se,"number");return typeof ve=="bigint"?ve:L(ve)},L=function(Se){var ve,ce,he,_e,je,Ie,Ze,Te,Me=k(Se,"number");if(P(Me))throw W("Cannot convert a Symbol value to a number");if(typeof Me=="string"&&Me.length>2){if(Me=ne(Me),(ve=F(Me,0))===43||ve===45){if((ce=F(Me,2))===88||ce===120)return NaN}else if(ve===48){switch(F(Me,1)){case 66:case 98:he=2,_e=49;break;case 79:case 111:he=8,_e=55;break;default:return+Me}for(Ie=(je=R(Me,2)).length,Ze=0;Ze<Ie;Ze++)if((Te=F(je,Ze))<48||Te>_e)return NaN;return parseInt(je,he)}}return+Me};if(g(V,!Z(" 0o1")||!Z("0b1")||Z("+0x1"))){for(var G,oe=function(Se){var ve=arguments.length<1?0:Z(A(Se)),ce=this;return j(ee,ce)&&T(function(){q(ce)})?w(Object(ve),ce,oe):ve},le=p?D(Z):"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(","),be=0;le.length>be;be++)x(Z,G=le[be])&&!x(oe,G)&&z(oe,G,B(Z,G));oe.prototype=ee,ee.constructor=oe,O(d,V,oe)}},function(a,l,o){o(17)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(a,l,o){var p=o(17),d=o(214),y=o(99);p({target:"Array",proto:!0},{fill:d}),y("fill")},function(a,l){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}a.exports=o},function(a,l,o){var p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,y=d&&!p.call({1:2},1);l.f=y?function(g){var O=d(this,g);return!!O&&O.enumerable}:p},function(a,l,o){var p=o(7),d=o(15),y=o(19),g=o(51),O=p.Object,x=d("".split);a.exports=y(function(){return!O("z").propertyIsEnumerable(0)})?function(w){return g(w)=="String"?x(w,""):O(w)}:O},function(a,l,o){var p=o(128),d=o(85);a.exports=function(y){var g=p(y,"string");return d(g)?g:g+""}},function(a,l,o){var p=o(7),d=o(46),y=o(28),g=o(58),O=o(129),x=p.Object;a.exports=O?function(w){return typeof w=="symbol"}:function(w){var j=d("Symbol");return y(j)&&g(j.prototype,x(w))}},function(a,l,o){var p=o(7).String;a.exports=function(d){try{return p(d)}catch{return"Object"}}},function(a,l,o){var p=o(66),d=o(108);(a.exports=function(y,g){return d[y]||(d[y]=g!==void 0?g:{})})("versions",[]).push({version:"3.19.3",mode:p?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(a,l,o){var p=o(15),d=0,y=Math.random(),g=p(1 .toString);a.exports=function(O){return"Symbol("+(O===void 0?"":O)+")_"+g(++d+y,36)}},function(a,l,o){var p=o(7),d=o(32),y=p.document,g=d(y)&&d(y.createElement);a.exports=function(O){return g?y.createElement(O):{}}},function(a,l,o){var p=o(15),d=o(28),y=o(108),g=p(Function.toString);d(y.inspectSource)||(y.inspectSource=function(O){return g(O)}),a.exports=y.inspectSource},function(a,l,o){var p=o(87),d=o(88),y=p("keys");a.exports=function(g){return y[g]||(y[g]=d(g))}},function(a,l,o){var p=o(36),d=o(35),y=Function.prototype,g=p&&Object.getOwnPropertyDescriptor,O=d(y,"name"),x=O&&function(){}.name==="something",w=O&&(!p||p&&g(y,"name").configurable);a.exports={EXISTS:O,PROPER:x,CONFIGURABLE:w}},function(a,l,o){var p=o(70),d=Math.min;a.exports=function(y){return y>0?d(p(y),9007199254740991):0}},function(a,l,o){var p=o(19),d=o(28),y=/#|\.prototype\./,g=function(P,k){var T=x[O(P)];return T==j||T!=w&&(d(k)?p(k):!!k)},O=g.normalize=function(P){return String(P).replace(y,".").toLowerCase()},x=g.data={},w=g.NATIVE="N",j=g.POLYFILL="P";a.exports=g},function(a,l,o){var p=o(51);a.exports=Array.isArray||function(d){return p(d)=="Array"}},function(a,l,o){var p=o(7),d=o(112),y=o(28),g=o(51),O=o(27)("toStringTag"),x=p.Object,w=g(function(){return arguments}())=="Arguments";a.exports=d?g:function(j){var P,k,T;return j===void 0?"Undefined":j===null?"Null":typeof(k=function(D,B){try{return D[B]}catch{}}(P=x(j),O))=="string"?k:w?g(P):(T=g(P))=="Object"&&y(P.callee)?"Arguments":T}},function(a,l,o){var p=o(15);a.exports=p([].slice)},function(a,l,o){var p=o(15),d=o(19),y=o(28),g=o(96),O=o(46),x=o(90),w=function(){},j=[],P=O("Reflect","construct"),k=/^\s*(?:class|function)\b/,T=p(k.exec),D=!k.exec(w),B=function(z){if(!y(z))return!1;try{return P(w,j,z),!0}catch{return!1}};a.exports=!P||d(function(){var z;return B(B.call)||!B(Object)||!B(function(){z=!0})||z})?function(z){if(!y(z))return!1;switch(g(z)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return D||!!T(k,x(z))}:B},function(a,l,o){var p=o(27),d=o(57),y=o(37),g=p("unscopables"),O=Array.prototype;O[g]==null&&y.f(O,g,{configurable:!0,value:d(null)}),a.exports=function(x){O[g][x]=!0}},function(a,l,o){var p=o(7),d=o(35),y=o(28),g=o(39),O=o(91),x=o(140),w=O("IE_PROTO"),j=p.Object,P=j.prototype;a.exports=x?j.getPrototypeOf:function(k){var T=g(k);if(d(T,w))return T[w];var D=T.constructor;return y(D)&&T instanceof D?D.prototype:T instanceof j?P:null}},function(a,l,o){var p=o(15),d=o(33),y=o(176);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g,O=!1,x={};try{(g=p(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(x,[]),O=x instanceof Array}catch{}return function(w,j){return d(w),y(j),O?g(w,j):w.__proto__=j,w}}():void 0)},function(a,l,o){var p,d,y=o(34),g=o(15),O=o(41),x=o(185),w=o(151),j=o(87),P=o(57),k=o(56).get,T=o(186),D=o(187),B=j("native-string-replace",String.prototype.replace),z=RegExp.prototype.exec,q=z,ne=g("".charAt),V=g("".indexOf),Z=g("".replace),ee=g("".slice),W=(d=/b*/g,y(z,p=/a/,"a"),y(z,d,"a"),p.lastIndex!==0||d.lastIndex!==0),R=w.BROKEN_CARET,F=/()??/.exec("")[1]!==void 0;(W||F||R||T||D)&&(q=function(A){var L,G,oe,le,be,Se,ve,ce=this,he=k(ce),_e=O(A),je=he.raw;if(je)return je.lastIndex=ce.lastIndex,L=y(q,je,_e),ce.lastIndex=je.lastIndex,L;var Ie=he.groups,Ze=R&&ce.sticky,Te=y(x,ce),Me=ce.source,Je=0,te=_e;if(Ze&&(Te=Z(Te,"y",""),V(Te,"g")===-1&&(Te+="g"),te=ee(_e,ce.lastIndex),ce.lastIndex>0&&(!ce.multiline||ce.multiline&&ne(_e,ce.lastIndex-1)!==`
  51. `)&&(Me="(?: "+Me+")",te=" "+te,Je++),G=new RegExp("^(?:"+Me+")",Te)),F&&(G=new RegExp("^"+Me+"$(?!\\s)",Te)),W&&(oe=ce.lastIndex),le=y(z,Ze?G:ce,te),Ze?le?(le.input=ee(le.input,Je),le[0]=ee(le[0],Je),le.index=ce.lastIndex,ce.lastIndex+=le[0].length):ce.lastIndex=0:W&&le&&(ce.lastIndex=ce.global?le.index+le[0].length:oe),F&&le&&le.length>1&&y(B,le[0],G,function(){for(be=1;be<arguments.length-2;be++)arguments[be]===void 0&&(le[be]=void 0)}),le&&Ie)for(le.groups=Se=P(null),be=0;be<Ie.length;be++)Se[(ve=Ie[be])[0]]=le[ve[1]];return le}),a.exports=q},function(a,l,o){var p=o(17),d=o(7),y=o(69),g=o(70),O=o(44),x=o(39),w=o(114),j=o(60),P=o(76)("splice"),k=d.TypeError,T=Math.max,D=Math.min,B=9007199254740991,z="Maximum allowed length exceeded";p({target:"Array",proto:!0,forced:!P},{splice:function(q,ne){var V,Z,ee,W,R,F,A=x(this),L=O(A),G=y(q,L),oe=arguments.length;if(oe===0?V=Z=0:oe===1?(V=0,Z=L-G):(V=oe-2,Z=D(T(g(ne),0),L-G)),L+V-Z>B)throw k(z);for(ee=w(A,Z),W=0;W<Z;W++)(R=G+W)in A&&j(ee,W,A[R]);if(ee.length=Z,V<Z){for(W=G;W<L-Z;W++)F=W+V,(R=W+Z)in A?A[F]=A[R]:delete A[F];for(W=L;W>L-Z+V;W--)delete A[W-1]}else if(V>Z)for(W=L-Z;W>G;W--)F=W+V-1,(R=W+Z-1)in A?A[F]=A[R]:delete A[F];for(W=0;W<V;W++)A[W+G]=arguments[W+2];return A.length=L-Z+V,ee}})},function(a,l,o){var p=o(17),d=o(202);p({target:"String",proto:!0,forced:o(203)("anchor")},{anchor:function(y){return d(this,"a","name",y)}})},function(a,l,o){(function(p){var d=typeof p=="object"&&p&&p.Object===Object&&p;l.a=d}).call(this,o(81))},function(a,l,o){(function(p){var d=o(31),y=u&&!u.nodeType&&u,g=y&&typeof p=="object"&&p&&!p.nodeType&&p,O=g&&g.exports===y?d.a.Buffer:void 0,x=O?O.allocUnsafe:void 0;l.a=function(w,j){if(j)return w.slice();var P=w.length,k=x?x(P):new w.constructor(P);return w.copy(k),k}}).call(this,o(121)(a))},function(a,l,o){var p=o(65),d=o(19);a.exports=!!Object.getOwnPropertySymbols&&!d(function(){var y=Symbol();return!String(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&p&&p<41})},function(a,l,o){var p=o(7),d=o(109),y="__core-js_shared__",g=p[y]||d(y,{});a.exports=g},function(a,l,o){var p=o(7),d=Object.defineProperty;a.exports=function(y,g){try{d(p,y,{value:g,configurable:!0,writable:!0})}catch{p[y]=g}return g}},function(a,l){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(a,l){l.f=Object.getOwnPropertySymbols},function(a,l,o){var p={};p[o(27)("toStringTag")]="z",a.exports=String(p)==="[object z]"},function(a,l,o){var p=o(7),d=o(69),y=o(44),g=o(60),O=p.Array,x=Math.max;a.exports=function(w,j,P){for(var k=y(w),T=d(j,k),D=d(P===void 0?k:P,k),B=O(x(D-T,0)),z=0;T<D;T++,z++)g(B,z,w[T]);return B.length=z,B}},function(a,l,o){var p=o(173);a.exports=function(d,y){return new(p(d))(y===0?0:y)}},function(a,l,o){var p=o(17),d=o(34),y=o(66),g=o(92),O=o(28),x=o(175),w=o(100),j=o(101),P=o(73),k=o(55),T=o(43),D=o(27),B=o(75),z=o(139),q=g.PROPER,ne=g.CONFIGURABLE,V=z.IteratorPrototype,Z=z.BUGGY_SAFARI_ITERATORS,ee=D("iterator"),W="keys",R="values",F="entries",A=function(){return this};a.exports=function(L,G,oe,le,be,Se,ve){x(oe,G,le);var ce,he,_e,je=function(K){if(K===be&&Je)return Je;if(!Z&&K in Te)return Te[K];switch(K){case W:case R:case F:return function(){return new oe(this,K)}}return function(){return new oe(this)}},Ie=G+" Iterator",Ze=!1,Te=L.prototype,Me=Te[ee]||Te["@@iterator"]||be&&Te[be],Je=!Z&&Me||je(be),te=G=="Array"&&Te.entries||Me;if(te&&(ce=w(te.call(new L)))!==Object.prototype&&ce.next&&(y||w(ce)===V||(j?j(ce,V):O(ce[ee])||T(ce,ee,A)),P(ce,Ie,!0,!0),y&&(B[Ie]=A)),q&&be==R&&Me&&Me.name!==R&&(!y&&ne?k(Te,"name",R):(Ze=!0,Je=function(){return d(Me,this)})),be)if(he={values:je(R),keys:Se?Je:je(W),entries:je(F)},ve)for(_e in he)(Z||Ze||!(_e in Te))&&T(Te,_e,he[_e]);else p({target:G,proto:!0,forced:Z||Ze},he);return y&&!ve||Te[ee]===Je||T(Te,ee,Je,{name:be}),B[G]=Je,he}},function(a,l,o){var p=o(7),d=o(61),y=o(34),g=o(33),O=o(86),x=o(142),w=o(44),j=o(58),P=o(143),k=o(117),T=o(144),D=p.TypeError,B=function(q,ne){this.stopped=q,this.result=ne},z=B.prototype;a.exports=function(q,ne,V){var Z,ee,W,R,F,A,L,G=V&&V.that,oe=!(!V||!V.AS_ENTRIES),le=!(!V||!V.IS_ITERATOR),be=!(!V||!V.INTERRUPTED),Se=d(ne,G),ve=function(he){return Z&&T(Z,"normal",he),new B(!0,he)},ce=function(he){return oe?(g(he),be?Se(he[0],he[1],ve):Se(he[0],he[1])):be?Se(he,ve):Se(he)};if(le)Z=q;else{if(!(ee=k(q)))throw D(O(q)+" is not iterable");if(x(ee)){for(W=0,R=w(q);R>W;W++)if((F=ce(q[W]))&&j(z,F))return F;return new B(!1)}Z=P(q,ee)}for(A=Z.next;!(L=y(A,Z)).done;){try{F=ce(L.value)}catch(he){T(Z,"throw",he)}if(typeof F=="object"&&F&&j(z,F))return F}return new B(!1)}},function(a,l,o){var p=o(96),d=o(59),y=o(75),g=o(27)("iterator");a.exports=function(O){if(O!=null)return d(O,g)||d(O,"@@iterator")||y[p(O)]}},function(a,l,o){var p=o(7),d=o(58),y=p.TypeError;a.exports=function(g,O){if(d(O,g))return g;throw y("Incorrect invocation")}},function(a,l,o){var p=o(27)("iterator"),d=!1;try{var y=0,g={next:function(){return{done:!!y++}},return:function(){d=!0}};g[p]=function(){return this},Array.from(g,function(){throw 2})}catch{}a.exports=function(O,x){if(!x&&!d)return!1;var w=!1;try{var j={};j[p]=function(){return{next:function(){return{done:w=!0}}}},O(j)}catch{}return w}},function(a,l,o){var p=o(19);a.exports=function(d,y){var g=[][d];return!!g&&p(function(){g.call(null,y||function(){throw 1},1)})}},function(a,l){a.exports=function(o){if(!o.webpackPolyfill){var p=Object.create(o);p.children||(p.children=[]),Object.defineProperty(p,"loaded",{enumerable:!0,get:function(){return p.l}}),Object.defineProperty(p,"id",{enumerable:!0,get:function(){return p.i}}),Object.defineProperty(p,"exports",{enumerable:!0}),p.webpackPolyfill=1}return p}},function(a,l,o){o(18);var p=o(15),d=o(43),y=o(102),g=o(19),O=o(27),x=o(55),w=O("species"),j=RegExp.prototype;a.exports=function(P,k,T,D){var B=O(P),z=!g(function(){var Z={};return Z[B]=function(){return 7},""[P](Z)!=7}),q=z&&!g(function(){var Z=!1,ee=/a/;return P==="split"&&((ee={}).constructor={},ee.constructor[w]=function(){return ee},ee.flags="",ee[B]=/./[B]),ee.exec=function(){return Z=!0,null},ee[B](""),!Z});if(!z||!q||T){var ne=p(/./[B]),V=k(B,""[P],function(Z,ee,W,R,F){var A=p(Z),L=ee.exec;return L===y||L===j.exec?z&&!F?{done:!0,value:ne(ee,W,R)}:{done:!0,value:A(W,ee,R)}:{done:!1}});d(String.prototype,P,V[0]),d(j,B,V[1])}D&&x(j[B],"sham",!0)}},function(a,l,o){var p=o(148).charAt;a.exports=function(d,y,g){return y+(g?p(d,y).length:1)}},function(a,l,o){var p=o(7),d=o(34),y=o(33),g=o(28),O=o(51),x=o(102),w=p.TypeError;a.exports=function(j,P){var k=j.exec;if(g(k)){var T=d(k,j,P);return T!==null&&y(T),T}if(O(j)==="RegExp")return d(x,j,P);throw w("RegExp#exec called on incompatible receiver")}},function(a,l,o){var p=o(71),d=o(34),y=o(15),g=o(122),O=o(19),x=o(33),w=o(28),j=o(70),P=o(93),k=o(41),T=o(45),D=o(123),B=o(59),z=o(198),q=o(124),ne=o(27)("replace"),V=Math.max,Z=Math.min,ee=y([].concat),W=y([].push),R=y("".indexOf),F=y("".slice),A="a".replace(/./,"$0")==="$0",L=!!/./[ne]&&/./[ne]("a","$0")==="";g("replace",function(G,oe,le){var be=L?"$":"$0";return[function(Se,ve){var ce=T(this),he=Se==null?void 0:B(Se,ne);return he?d(he,Se,ce,ve):d(oe,k(ce),Se,ve)},function(Se,ve){var ce=x(this),he=k(Se);if(typeof ve=="string"&&R(ve,be)===-1&&R(ve,"$<")===-1){var _e=le(oe,ce,he,ve);if(_e.done)return _e.value}var je=w(ve);je||(ve=k(ve));var Ie=ce.global;if(Ie){var Ze=ce.unicode;ce.lastIndex=0}for(var Te=[];;){var Me=q(ce,he);if(Me===null||(W(Te,Me),!Ie))break;k(Me[0])===""&&(ce.lastIndex=D(he,P(ce.lastIndex),Ze))}for(var Je,te="",K=0,X=0;X<Te.length;X++){for(var fe=k((Me=Te[X])[0]),xe=V(Z(j(Me.index),he.length),0),me=[],Fe=1;Fe<Me.length;Fe++)W(me,(Je=Me[Fe])===void 0?Je:String(Je));var He=Me.groups;if(je){var Qe=ee([fe],me,xe,he);He!==void 0&&W(Qe,He);var Ve=k(p(ve,void 0,Qe))}else Ve=z(fe,he,xe,me,He,ve);xe>=K&&(te+=F(he,K,xe)+Ve,K=xe+fe.length)}return te+F(he,K)}]},!!O(function(){var G=/./;return G.exec=function(){var oe=[];return oe.groups={a:"7"},oe},"".replace(G,"$<a>")!=="7"})||!A||L)},function(a,l,o){var p=o(51),d=o(7);a.exports=p(d.process)=="process"},function(a,l,o){o(17)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(a,l,o){var p=o(7),d=o(34),y=o(32),g=o(85),O=o(59),x=o(169),w=o(27),j=p.TypeError,P=w("toPrimitive");a.exports=function(k,T){if(!y(k)||g(k))return k;var D,B=O(k,P);if(B){if(T===void 0&&(T="default"),D=d(B,k,T),!y(D)||g(D))return D;throw j("Can't convert object to primitive value")}return T===void 0&&(T="number"),x(k,T)}},function(a,l,o){var p=o(107);a.exports=p&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(a,l,o){var p=o(36),d=o(19),y=o(89);a.exports=!p&&!d(function(){return Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a!=7})},function(a,l,o){var p=o(35),d=o(132),y=o(50),g=o(37);a.exports=function(O,x){for(var w=d(x),j=g.f,P=y.f,k=0;k<w.length;k++){var T=w[k];p(O,T)||j(O,T,P(x,T))}}},function(a,l,o){var p=o(46),d=o(15),y=o(68),g=o(111),O=o(33),x=d([].concat);a.exports=p("Reflect","ownKeys")||function(w){var j=y.f(O(w)),P=g.f;return P?x(j,P(w)):j}},function(a,l,o){var p=o(15),d=o(35),y=o(40),g=o(134).indexOf,O=o(67),x=p([].push);a.exports=function(w,j){var P,k=y(w),T=0,D=[];for(P in k)!d(O,P)&&d(k,P)&&x(D,P);for(;j.length>T;)d(k,P=j[T++])&&(~g(D,P)||x(D,P));return D}},function(a,l,o){var p=o(40),d=o(69),y=o(44),g=function(O){return function(x,w,j){var P,k=p(x),T=y(k),D=d(j,T);if(O&&w!=w){for(;T>D;)if((P=k[D++])!=P)return!0}else for(;T>D;D++)if((O||D in k)&&k[D]===w)return O||D||0;return!O&&-1}};a.exports={includes:g(!0),indexOf:g(!1)}},function(a,l,o){var p=o(46);a.exports=p("document","documentElement")},function(a,l,o){var p=o(51),d=o(40),y=o(68).f,g=o(113),O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];a.exports.f=function(x){return O&&p(x)=="Window"?function(w){try{return y(w)}catch{return g(O)}}(x):y(d(x))}},function(a,l,o){var p=o(27);l.f=p},function(a,l,o){var p=o(172),d=o(35),y=o(137),g=o(37).f;a.exports=function(O){var x=p.Symbol||(p.Symbol={});d(x,O)||g(x,O,{value:y.f(O)})}},function(a,l,o){var p,d,y,g=o(19),O=o(28),x=o(57),w=o(100),j=o(43),P=o(27),k=o(66),T=P("iterator"),D=!1;[].keys&&("next"in(y=[].keys())?(d=w(w(y)))!==Object.prototype&&(p=d):D=!0),p==null||g(function(){var B={};return p[T].call(B)!==B})?p={}:k&&(p=x(p)),O(p[T])||j(p,T,function(){return this}),a.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:D}},function(a,l,o){var p=o(19);a.exports=!p(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(a,l,o){var p=o(17),d=o(15),y=o(67),g=o(32),O=o(35),x=o(37).f,w=o(68),j=o(136),P=o(178),k=o(88),T=o(180),D=!1,B=k("meta"),z=0,q=function(V){x(V,B,{value:{objectID:"O"+z++,weakData:{}}})},ne=a.exports={enable:function(){ne.enable=function(){},D=!0;var V=w.f,Z=d([].splice),ee={};ee[B]=1,V(ee).length&&(w.f=function(W){for(var R=V(W),F=0,A=R.length;F<A;F++)if(R[F]===B){Z(R,F,1);break}return R},p({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:j.f}))},fastKey:function(V,Z){if(!g(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!O(V,B)){if(!P(V))return"F";if(!Z)return"E";q(V)}return V[B].objectID},getWeakData:function(V,Z){if(!O(V,B)){if(!P(V))return!0;if(!Z)return!1;q(V)}return V[B].weakData},onFreeze:function(V){return T&&D&&P(V)&&!O(V,B)&&q(V),V}};y[B]=!0},function(a,l,o){var p=o(27),d=o(75),y=p("iterator"),g=Array.prototype;a.exports=function(O){return O!==void 0&&(d.Array===O||g[y]===O)}},function(a,l,o){var p=o(7),d=o(34),y=o(54),g=o(33),O=o(86),x=o(117),w=p.TypeError;a.exports=function(j,P){var k=arguments.length<2?x(j):P;if(y(k))return g(d(k,j));throw w(O(j)+" is not iterable")}},function(a,l,o){var p=o(34),d=o(33),y=o(59);a.exports=function(g,O,x){var w,j;d(g);try{if(!(w=y(g,"return"))){if(O==="throw")throw x;return x}w=p(w,g)}catch(P){j=!0,w=P}if(O==="throw")throw x;if(j)throw w;return d(w),x}},function(a,l,o){var p=o(28),d=o(32),y=o(101);a.exports=function(g,O,x){var w,j;return y&&p(w=O.constructor)&&w!==x&&d(j=w.prototype)&&j!==x.prototype&&y(g,j),g}},function(a,l,o){var p=o(43);a.exports=function(d,y,g){for(var O in y)p(d,O,y[O],g);return d}},function(a,l,o){var p=o(46),d=o(37),y=o(27),g=o(36),O=y("species");a.exports=function(x){var w=p(x),j=d.f;g&&w&&!w[O]&&j(w,O,{configurable:!0,get:function(){return this}})}},function(a,l,o){var p=o(15),d=o(70),y=o(41),g=o(45),O=p("".charAt),x=p("".charCodeAt),w=p("".slice),j=function(P){return function(k,T){var D,B,z=y(g(k)),q=d(T),ne=z.length;return q<0||q>=ne?P?"":void 0:(D=x(z,q))<55296||D>56319||q+1===ne||(B=x(z,q+1))<56320||B>57343?P?O(z,q):D:P?w(z,q,q+2):B-56320+(D-55296<<10)+65536}};a.exports={codeAt:j(!1),charAt:j(!0)}},function(a,l){a.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(a,l,o){var p=o(89)("span").classList,d=p&&p.constructor&&p.constructor.prototype;a.exports=d===Object.prototype?void 0:d},function(a,l,o){var p=o(19),d=o(7).RegExp,y=p(function(){var x=d("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),g=y||p(function(){return!d("a","y").sticky}),O=y||p(function(){var x=d("^r","gy");return x.lastIndex=2,x.exec("str")!=null});a.exports={BROKEN_CARET:O,MISSED_STICKY:g,UNSUPPORTED_Y:y}},function(a,l,o){var p=o(17),d=o(134).includes,y=o(99);p({target:"Array",proto:!0},{includes:function(g){return d(this,g,arguments.length>1?arguments[1]:void 0)}}),y("includes")},function(a,l,o){var p=o(17),d=o(15),y=o(194),g=o(45),O=o(41),x=o(195),w=d("".indexOf);p({target:"String",proto:!0,forced:!x("includes")},{includes:function(j){return!!~w(O(g(this)),O(y(j)),arguments.length>1?arguments[1]:void 0)}})},function(a,l,o){var p=o(32),d=o(51),y=o(27)("match");a.exports=function(g){var O;return p(g)&&((O=g[y])!==void 0?!!O:d(g)=="RegExp")}},function(a,l){var o,p,d=a.exports={};function y(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function O(z){if(o===setTimeout)return setTimeout(z,0);if((o===y||!o)&&setTimeout)return o=setTimeout,setTimeout(z,0);try{return o(z,0)}catch{try{return o.call(null,z,0)}catch{return o.call(this,z,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:y}catch{o=y}try{p=typeof clearTimeout=="function"?clearTimeout:g}catch{p=g}})();var x,w=[],j=!1,P=-1;function k(){j&&x&&(j=!1,x.length?w=x.concat(w):P=-1,w.length&&T())}function T(){if(!j){var z=O(k);j=!0;for(var q=w.length;q;){for(x=w,w=[];++P<q;)x&&x[P].run();P=-1,q=w.length}x=null,j=!1,function(ne){if(p===clearTimeout)return clearTimeout(ne);if((p===g||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(ne);try{p(ne)}catch{try{return p.call(null,ne)}catch{return p.call(this,ne)}}}(z)}}function D(z,q){this.fun=z,this.array=q}function B(){}d.nextTick=function(z){var q=new Array(arguments.length-1);if(arguments.length>1)for(var ne=1;ne<arguments.length;ne++)q[ne-1]=arguments[ne];w.push(new D(z,q)),w.length!==1||j||O(T)},D.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=B,d.addListener=B,d.once=B,d.off=B,d.removeListener=B,d.removeAllListeners=B,d.emit=B,d.prependListener=B,d.prependOnceListener=B,d.listeners=function(z){return[]},d.binding=function(z){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(z){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(a,l,o){var p=o(33),d=o(157),y=o(27)("species");a.exports=function(g,O){var x,w=p(g).constructor;return w===void 0||(x=p(w)[y])==null?O:d(x)}},function(a,l,o){var p=o(7),d=o(98),y=o(86),g=p.TypeError;a.exports=function(O){if(d(O))return O;throw g(y(O)+" is not a constructor")}},function(a,l,o){var p=o(17),d=o(159).trim;p({target:"String",proto:!0,forced:o(196)("trim")},{trim:function(){return d(this)}})},function(a,l,o){var p=o(15),d=o(45),y=o(41),g=o(160),O=p("".replace),x="["+g+"]",w=RegExp("^"+x+x+"*"),j=RegExp(x+x+"*$"),P=function(k){return function(T){var D=y(d(T));return 1&k&&(D=O(D,w,"")),2&k&&(D=O(D,j,"")),D}};a.exports={start:P(1),end:P(2),trim:P(3)}},function(a,l){a.exports=`
  52. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(a,l,o){var p=o(34),d=o(122),y=o(33),g=o(93),O=o(41),x=o(45),w=o(59),j=o(123),P=o(124);d("match",function(k,T,D){return[function(B){var z=x(this),q=B==null?void 0:w(B,k);return q?p(q,B,z):new RegExp(B)[k](O(z))},function(B){var z=y(this),q=O(B),ne=D(T,z,q);if(ne.done)return ne.value;if(!z.global)return P(z,q);var V=z.unicode;z.lastIndex=0;for(var Z,ee=[],W=0;(Z=P(z,q))!==null;){var R=O(Z[0]);ee[W]=R,R===""&&(z.lastIndex=j(q,g(z.lastIndex),V)),W++}return W===0?null:ee}]})},function(a,l,o){var p=o(17),d=Math.hypot,y=Math.abs,g=Math.sqrt;p({target:"Math",stat:!0,forced:!!d&&d(1/0,NaN)!==1/0},{hypot:function(O,x){for(var w,j,P=0,k=0,T=arguments.length,D=0;k<T;)D<(w=y(arguments[k++]))?(P=P*(j=D/w)*j+1,D=w):P+=w>0?(j=w/D)*j:w;return D===1/0?1/0:D*g(P)}})},function(a,l,o){var p,d,y,g,O=o(7),x=o(71),w=o(61),j=o(28),P=o(35),k=o(19),T=o(135),D=o(97),B=o(89),z=o(164),q=o(126),ne=O.setImmediate,V=O.clearImmediate,Z=O.process,ee=O.Dispatch,W=O.Function,R=O.MessageChannel,F=O.String,A=0,L={},G="onreadystatechange";try{p=O.location}catch{}var oe=function(ve){if(P(L,ve)){var ce=L[ve];delete L[ve],ce()}},le=function(ve){return function(){oe(ve)}},be=function(ve){oe(ve.data)},Se=function(ve){O.postMessage(F(ve),p.protocol+"//"+p.host)};ne&&V||(ne=function(ve){var ce=D(arguments,1);return L[++A]=function(){x(j(ve)?ve:W(ve),void 0,ce)},d(A),A},V=function(ve){delete L[ve]},q?d=function(ve){Z.nextTick(le(ve))}:ee&&ee.now?d=function(ve){ee.now(le(ve))}:R&&!z?(g=(y=new R).port2,y.port1.onmessage=be,d=w(g.postMessage,g)):O.addEventListener&&j(O.postMessage)&&!O.importScripts&&p&&p.protocol!=="file:"&&!k(Se)?(d=Se,O.addEventListener("message",be,!1)):d=G in B("script")?function(ve){T.appendChild(B("script")).onreadystatechange=function(){T.removeChild(this),oe(ve)}}:function(ve){setTimeout(le(ve),0)}),a.exports={set:ne,clear:V}},function(a,l,o){var p=o(53);a.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(p)},function(a,l,o){var p=o(54),d=function(y){var g,O;this.promise=new y(function(x,w){if(g!==void 0||O!==void 0)throw TypeError("Bad Promise constructor");g=x,O=w}),this.resolve=p(g),this.reject=p(O)};a.exports.f=function(y){return new d(y)}},function(a,l,o){l.a=function(){return!1}},function(a,l,o){(function(p){o.d(l,"a",function(){return Z});var d=o(1);function y(R){throw new Error("[mobx-utils] "+R)}function g(R,F){F===void 0&&(F="Illegal state"),R||y(F)}var O=function(R){return R&&R!==Object.prototype&&Object.getOwnPropertyNames(R).concat(O(Object.getPrototypeOf(R))||[])},x=function(R){return function(F){var A=O(F);return A.filter(function(L,G){return A.indexOf(L)===G})}(R).filter(function(F){return F!=="constructor"&&!~F.indexOf("__")})},w="pending",j="fulfilled",P="rejected";function k(R){switch(this.state){case w:return R.pending&&R.pending(this.value);case P:return R.rejected&&R.rejected(this.value);case j:return R.fulfilled?R.fulfilled(this.value):this.value}}function T(R,F){if(g(arguments.length<=2,"fromPromise expects up to two arguments"),g(typeof R=="function"||typeof R=="object"&&R&&typeof R.then=="function","Please pass a promise or function to fromPromise"),R.isPromiseBasedObservable===!0)return R;typeof R=="function"&&(R=new Promise(R));var A=R;R.then(Object(d.k)("observableFromPromise-resolve",function(G){A.value=G,A.state=j}),Object(d.k)("observableFromPromise-reject",function(G){A.value=G,A.state=P})),A.isPromiseBasedObservable=!0,A.case=k;var L=F&&F.state===j?F.value:void 0;return Object(d.q)(A,{value:L,state:w},{},{deep:!1}),A}(function(R){R.reject=Object(d.k)("fromPromise.reject",function(F){var A=R(Promise.reject(F));return A.state=P,A.value=F,A}),R.resolve=Object(d.k)("fromPromise.resolve",function(F){F===void 0&&(F=void 0);var A=R(Promise.resolve(F));return A.state=j,A.value=F,A})})(T||(T={}));var D=function(R,F,A,L){var G,oe=arguments.length,le=oe<3?F:L===null?L=Object.getOwnPropertyDescriptor(F,A):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(R,F,A,L);else for(var be=R.length-1;be>=0;be--)(G=R[be])&&(le=(oe<3?G(le):oe>3?G(F,A,le):G(F,A))||le);return oe>3&&le&&Object.defineProperty(F,A,le),le};(function(){function R(F,A){var L=this;Object(d.G)(function(){L.current=A,L.subscription=F.subscribe(L)})}R.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},R.prototype.next=function(F){this.current=F},R.prototype.complete=function(){this.dispose()},R.prototype.error=function(F){this.current=F,this.dispose()},D([d.C.ref],R.prototype,"current",void 0),D([d.k.bound],R.prototype,"next",null),D([d.k.bound],R.prototype,"complete",null),D([d.k.bound],R.prototype,"error",null)})();var B=function(){return B=Object.assign||function(R){for(var F,A=1,L=arguments.length;A<L;A++)for(var G in F=arguments[A])Object.prototype.hasOwnProperty.call(F,G)&&(R[G]=F[G]);return R},B.apply(this,arguments)},z=function(R,F,A,L){var G,oe=arguments.length,le=oe<3?F:L===null?L=Object.getOwnPropertyDescriptor(F,A):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(R,F,A,L);else for(var be=R.length-1;be>=0;be--)(G=R[be])&&(le=(oe<3?G(le):oe>3?G(F,A,le):G(F,A))||le);return oe>3&&le&&Object.defineProperty(F,A,le),le},q=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function R(F){var A=this;this.model=F,this.localValues=d.C.map({}),this.localComputedValues=d.C.map({}),this.isPropertyDirty=function(L){return A.localValues.has(L)},g(Object(d.A)(F),"createViewModel expects an observable object"),x(F).forEach(function(L){if(L!==d.a&&L!=="__mobxDidRunLazyInitializers"){if(g(q.indexOf(L)===-1,"The propertyname "+L+" is reserved and cannot be used with viewModels"),Object(d.w)(F,L)){var G=Object(d.h)(F,L).derivation;A.localComputedValues.set(L,Object(d.m)(G.bind(A)))}var oe=Object.getOwnPropertyDescriptor(F,L),le=oe?{enumerable:oe.enumerable}:{};Object.defineProperty(A,L,B(B({},le),{configurable:!0,get:function(){return Object(d.w)(F,L)?A.localComputedValues.get(L).get():A.isPropertyDirty(L)?A.localValues.get(L):A.model[L]},set:Object(d.k)(function(be){be!==A.model[L]?A.localValues.set(L,be):A.localValues.delete(L)})}))}})}Object.defineProperty(R.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),R.prototype.submit=function(){var F=this;Object(d.B)(this.localValues).forEach(function(A){var L=F.localValues.get(A),G=F.model[A];Object(d.y)(G)?G.replace(L):Object(d.z)(G)?(G.clear(),G.merge(L)):Object(d.v)(L)||(F.model[A]=L)}),this.localValues.clear()},R.prototype.reset=function(){this.localValues.clear()},R.prototype.resetProperty=function(F){this.localValues.delete(F)},z([d.m],R.prototype,"isDirty",null),z([d.m],R.prototype,"changedValues",null),z([d.k.bound],R.prototype,"submit",null),z([d.k.bound],R.prototype,"reset",null),z([d.k.bound],R.prototype,"resetProperty",null)})();function ne(R){if(!R)return"ROOT";for(var F=[];R.parent;)F.push(R.path),R=R.parent;return F.reverse().join("/")}function V(R){return Object(d.A)(R)||Object(d.y)(R)||Object(d.z)(R)}function Z(R,F){var A=new WeakMap;function L(le){var be=A.get(le.object);(function(Se,ve){switch(Se.type){case"add":G(Se.newValue,ve,Se.name);break;case"update":oe(Se.oldValue),G(Se.newValue,ve,Se.name||""+Se.index);break;case"remove":case"delete":oe(Se.oldValue);break;case"splice":Se.removed.map(oe),Se.added.forEach(function(_e,je){return G(_e,ve,""+(Se.index+je))});for(var ce=Se.index+Se.addedCount;ce<Se.object.length;ce++)if(V(Se.object[ce])){var he=A.get(Se.object[ce]);he&&(he.path=""+ce)}}})(le,be),F(le,ne(be),R)}function G(le,be,Se){if(V(le)){var ve=A.get(le);if(ve){if(ve.parent!==be||ve.path!==Se)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+ne(be)+"/"+Se+"', but it already exists at '"+ne(ve.parent)+"/"+ve.path+"'")}else{var ce={parent:be,path:Se,dispose:Object(d.D)(le,L)};A.set(le,ce),Object(d.p)(le).forEach(function(he){var _e=he[0];return G(he[1],ce,_e)})}}}function oe(le){if(V(le)){var be=A.get(le);if(!be)return;A.delete(le),be.dispose(),Object(d.L)(le).forEach(oe)}}return G(R,void 0,""),function(){oe(R)}}var ee,W=(ee=function(R,F){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var G in L)L.hasOwnProperty(G)&&(A[G]=L[G])},ee(R,F)},function(R,F){function A(){this.constructor=R}ee(R,F),R.prototype=F===null?Object.create(F):(A.prototype=F.prototype,new A)});(function(R){function F(A,L,G){var oe=G===void 0?{}:G,le=oe.name,be=le===void 0?"ogm"+(1e3*Math.random()|0):le,Se=oe.keyToName,ve=Se===void 0?function(_e){return""+_e}:Se,ce=R.call(this)||this;ce._keyToName=ve,ce._groupBy=L,ce._ogmInfoKey=Symbol("ogmInfo"+be),ce._base=A;for(var he=0;he<A.length;he++)ce._addItem(A[he]);return ce._disposeBaseObserver=Object(d.D)(ce._base,function(_e){if(_e.type==="splice")Object(d.J)(function(){for(var je=0,Ie=_e.removed;je<Ie.length;je++){var Ze=Ie[je];ce._removeItem(Ze)}for(var Te=0,Me=_e.added;Te<Me.length;Te++){var Je=Me[Te];ce._addItem(Je)}});else{if(_e.type!=="update")throw new Error("illegal state");Object(d.J)(function(){ce._removeItem(_e.oldValue),ce._addItem(_e.newValue)})}}),ce}W(F,R),F.prototype.clear=function(){throw new Error("not supported")},F.prototype.delete=function(A){throw new Error("not supported")},F.prototype.set=function(A,L){throw new Error("not supported")},F.prototype.dispose=function(){this._disposeBaseObserver();for(var A=0;A<this._base.length;A++){var L=this._base[A];L[this._ogmInfoKey].reaction(),delete L[this._ogmInfoKey]}},F.prototype._getGroupArr=function(A){var L=R.prototype.get.call(this,A);return L===void 0&&(L=Object(d.C)([],{name:"GroupArray["+this._keyToName(A)+"]",deep:!1}),R.prototype.set.call(this,A,L)),L},F.prototype._removeFromGroupArr=function(A,L){var G=R.prototype.get.call(this,A);G.length===1?R.prototype.delete.call(this,A):(L===G.length-1||(G[L]=G[G.length-1],G[L][this._ogmInfoKey].groupArrIndex=L),G.length--)},F.prototype._addItem=function(A){var L=this,G=this._groupBy(A),oe=this._getGroupArr(G),le={groupByValue:G,groupArrIndex:oe.length,reaction:Object(d.F)(function(){return L._groupBy(A)},function(be,Se){var ve=A[L._ogmInfoKey];L._removeFromGroupArr(ve.groupByValue,ve.groupArrIndex);var ce=L._getGroupArr(be),he=ce.length;ce.push(A),ve.groupByValue=be,ve.groupArrIndex=he})};Object.defineProperty(A,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:le}),oe.push(A)},F.prototype._removeItem=function(A){var L=A[this._ogmInfoKey];this._removeFromGroupArr(L.groupByValue,L.groupArrIndex),L.reaction(),delete A[this._ogmInfoKey]}})(d.b),function(){function R(F,A){this.base=F,this.args=A,this.closestIdx=0,this.isDisposed=!1;for(var L=this.closest=this.root=F,G=0;G<this.args.length-1&&(L=L.get(A[G]));G++)this.closest=L;this.closestIdx=G}return R.prototype.exists=function(){this.assertNotDisposed();var F=this.args.length;return this.closestIdx>=F-1&&this.closest.has(this.args[F-1])},R.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])},R.prototype.set=function(F){this.assertNotDisposed();for(var A=this.args.length,L=this.closest,G=this.closestIdx;G<A-1;G++){var oe=new Map;L.set(this.args[G],oe),L=oe}this.closestIdx=A-1,this.closest=L,L.set(this.args[A-1],F)},R.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var F=this.args.length;this.closest.delete(this.args[F-1]);for(var A=this.root,L=[A],G=0;G<F-1;G++)A=A.get(this.args[G]),L.push(A);for(G=L.length-1;G>0;G--)L[G].size===0&&L[G-1].delete(this.args[G-1]);this.isDisposed=!0},R.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},R}(),Promise.resolve(),typeof queueMicrotask!="undefined"||p!==void 0&&p.nextTick}).call(this,o(155))},function(a,l,o){var p;(function(d,y,g){if(d){for(var O,x={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"},w={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},j={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},P={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},k=1;k<20;++k)x[111+k]="f"+k;for(k=0;k<=9;++k)x[k+96]=k.toString();V.prototype.bind=function(Z,ee,W){var R=this;return Z=Z instanceof Array?Z:[Z],R._bindMultiple.call(R,Z,ee,W),R},V.prototype.unbind=function(Z,ee){return this.bind.call(this,Z,function(){},ee)},V.prototype.trigger=function(Z,ee){var W=this;return W._directMap[Z+":"+ee]&&W._directMap[Z+":"+ee]({},Z),W},V.prototype.reset=function(){var Z=this;return Z._callbacks={},Z._directMap={},Z},V.prototype.stopCallback=function(Z,ee){if((" "+ee.className+" ").indexOf(" mousetrap ")>-1||ne(ee,this.target))return!1;if("composedPath"in Z&&typeof Z.composedPath=="function"){var W=Z.composedPath()[0];W!==Z.target&&(ee=W)}return ee.tagName=="INPUT"||ee.tagName=="SELECT"||ee.tagName=="TEXTAREA"||ee.isContentEditable},V.prototype.handleKey=function(){var Z=this;return Z._handleKey.apply(Z,arguments)},V.addKeycodes=function(Z){for(var ee in Z)Z.hasOwnProperty(ee)&&(x[ee]=Z[ee]);O=null},V.init=function(){var Z=V(y);for(var ee in Z)ee.charAt(0)!=="_"&&(V[ee]=function(W){return function(){return Z[W].apply(Z,arguments)}}(ee))},V.init(),d.Mousetrap=V,a.exports&&(a.exports=V),(p=function(){return V}.call(l,o,l,a))===void 0||(a.exports=p)}function T(Z,ee,W){Z.addEventListener?Z.addEventListener(ee,W,!1):Z.attachEvent("on"+ee,W)}function D(Z){if(Z.type=="keypress"){var ee=String.fromCharCode(Z.which);return Z.shiftKey||(ee=ee.toLowerCase()),ee}return x[Z.which]?x[Z.which]:w[Z.which]?w[Z.which]:String.fromCharCode(Z.which).toLowerCase()}function B(Z){return Z=="shift"||Z=="ctrl"||Z=="alt"||Z=="meta"}function z(Z,ee,W){return W||(W=function(){if(!O)for(var R in O={},x)R>95&&R<112||x.hasOwnProperty(R)&&(O[x[R]]=R);return O}()[Z]?"keydown":"keypress"),W=="keypress"&&ee.length&&(W="keydown"),W}function q(Z,ee){var W,R,F,A=[];for(W=function(L){return L==="+"?["+"]:(L=L.replace(/\+{2}/g,"+plus")).split("+")}(Z),F=0;F<W.length;++F)R=W[F],P[R]&&(R=P[R]),ee&&ee!="keypress"&&j[R]&&(R=j[R],A.push("shift")),B(R)&&A.push(R);return{key:R,modifiers:A,action:ee=z(R,A,ee)}}function ne(Z,ee){return Z!==null&&Z!==y&&(Z===ee||ne(Z.parentNode,ee))}function V(Z){var ee=this;if(Z=Z||y,!(ee instanceof V))return new V(Z);ee.target=Z,ee._callbacks={},ee._directMap={};var W,R={},F=!1,A=!1,L=!1;function G(ce){ce=ce||{};var he,_e=!1;for(he in R)ce[he]?_e=!0:R[he]=0;_e||(L=!1)}function oe(ce,he,_e,je,Ie,Ze){var Te,Me,Je,te,K=[],X=_e.type;if(!ee._callbacks[ce])return[];for(X=="keyup"&&B(ce)&&(he=[ce]),Te=0;Te<ee._callbacks[ce].length;++Te)if(Me=ee._callbacks[ce][Te],(je||!Me.seq||R[Me.seq]==Me.level)&&X==Me.action&&(X=="keypress"&&!_e.metaKey&&!_e.ctrlKey||(Je=he,te=Me.modifiers,Je.sort().join(",")===te.sort().join(",")))){var fe=!je&&Me.combo==Ie,xe=je&&Me.seq==je&&Me.level==Ze;(fe||xe)&&ee._callbacks[ce].splice(Te,1),K.push(Me)}return K}function le(ce,he,_e,je){ee.stopCallback(he,he.target||he.srcElement,_e,je)||ce(he,_e)===!1&&(function(Ie){Ie.preventDefault?Ie.preventDefault():Ie.returnValue=!1}(he),function(Ie){Ie.stopPropagation?Ie.stopPropagation():Ie.cancelBubble=!0}(he))}function be(ce){typeof ce.which!="number"&&(ce.which=ce.keyCode);var he=D(ce);he&&(ce.type!="keyup"||F!==he?ee.handleKey(he,function(_e){var je=[];return _e.shiftKey&&je.push("shift"),_e.altKey&&je.push("alt"),_e.ctrlKey&&je.push("ctrl"),_e.metaKey&&je.push("meta"),je}(ce),ce):F=!1)}function Se(ce,he,_e,je){function Ie(Je){return function(){L=Je,++R[ce],clearTimeout(W),W=setTimeout(G,1e3)}}function Ze(Je){le(_e,Je,ce),je!=="keyup"&&(F=D(Je)),setTimeout(G,10)}R[ce]=0;for(var Te=0;Te<he.length;++Te){var Me=Te+1===he.length?Ze:Ie(je||q(he[Te+1]).action);ve(he[Te],Me,je,ce,Te)}}function ve(ce,he,_e,je,Ie){ee._directMap[ce+":"+_e]=he;var Ze,Te=(ce=ce.replace(/\s+/g," ")).split(" ");Te.length>1?Se(ce,Te,he,_e):(Ze=q(ce,_e),ee._callbacks[Ze.key]=ee._callbacks[Ze.key]||[],oe(Ze.key,Ze.modifiers,{type:Ze.action},je,ce,Ie),ee._callbacks[Ze.key][je?"unshift":"push"]({callback:he,modifiers:Ze.modifiers,action:Ze.action,seq:je,level:Ie,combo:ce}))}ee._handleKey=function(ce,he,_e){var je,Ie=oe(ce,he,_e),Ze={},Te=0,Me=!1;for(je=0;je<Ie.length;++je)Ie[je].seq&&(Te=Math.max(Te,Ie[je].level));for(je=0;je<Ie.length;++je)if(Ie[je].seq){if(Ie[je].level!=Te)continue;Me=!0,Ze[Ie[je].seq]=1,le(Ie[je].callback,_e,Ie[je].combo,Ie[je].seq)}else Me||le(Ie[je].callback,_e,Ie[je].combo);var Je=_e.type=="keypress"&&A;_e.type!=L||B(ce)||Je||G(Ze),A=Me&&_e.type=="keydown"},ee._bindMultiple=function(ce,he,_e){for(var je=0;je<ce.length;++je)ve(ce[je],he,_e)},T(Z,"keypress",be),T(Z,"keydown",be),T(Z,"keyup",be)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)},function(a,l,o){var p=o(7),d=o(34),y=o(28),g=o(32),O=p.TypeError;a.exports=function(x,w){var j,P;if(w==="string"&&y(j=x.toString)&&!g(P=d(j,x))||y(j=x.valueOf)&&!g(P=d(j,x))||w!=="string"&&y(j=x.toString)&&!g(P=d(j,x)))return P;throw O("Can't convert object to primitive value")}},function(a,l,o){var p=o(7),d=o(28),y=o(90),g=p.WeakMap;a.exports=d(g)&&/native code/.test(y(g))},function(a,l,o){var p=o(36),d=o(37),y=o(33),g=o(40),O=o(72);a.exports=p?Object.defineProperties:function(x,w){y(x);for(var j,P=g(w),k=O(w),T=k.length,D=0;T>D;)d.f(x,j=k[D++],P[j]);return x}},function(a,l,o){var p=o(7);a.exports=p},function(a,l,o){var p=o(7),d=o(95),y=o(98),g=o(32),O=o(27)("species"),x=p.Array;a.exports=function(w){var j;return d(w)&&(j=w.constructor,(y(j)&&(j===x||d(j.prototype))||g(j)&&(j=j[O])===null)&&(j=void 0)),j===void 0?x:j}},function(a,l,o){var p=o(112),d=o(96);a.exports=p?{}.toString:function(){return"[object "+d(this)+"]"}},function(a,l,o){var p=o(139).IteratorPrototype,d=o(57),y=o(64),g=o(73),O=o(75),x=function(){return this};a.exports=function(w,j,P,k){var T=j+" Iterator";return w.prototype=d(p,{next:y(+!k,P)}),g(w,T,!1,!0),O[T]=x,w}},function(a,l,o){var p=o(7),d=o(28),y=p.String,g=p.TypeError;a.exports=function(O){if(typeof O=="object"||d(O))return O;throw g("Can't set "+y(O)+" as a prototype")}},function(a,l,o){var p=o(17),d=o(7),y=o(15),g=o(94),O=o(43),x=o(141),w=o(116),j=o(118),P=o(28),k=o(32),T=o(19),D=o(119),B=o(73),z=o(145);a.exports=function(q,ne,V){var Z=q.indexOf("Map")!==-1,ee=q.indexOf("Weak")!==-1,W=Z?"set":"add",R=d[q],F=R&&R.prototype,A=R,L={},G=function(ce){var he=y(F[ce]);O(F,ce,ce=="add"?function(_e){return he(this,_e===0?0:_e),this}:ce=="delete"?function(_e){return!(ee&&!k(_e))&&he(this,_e===0?0:_e)}:ce=="get"?function(_e){return ee&&!k(_e)?void 0:he(this,_e===0?0:_e)}:ce=="has"?function(_e){return!(ee&&!k(_e))&&he(this,_e===0?0:_e)}:function(_e,je){return he(this,_e===0?0:_e,je),this})};if(g(q,!P(R)||!(ee||F.forEach&&!T(function(){new R().entries().next()}))))A=V.getConstructor(ne,q,Z,W),x.enable();else if(g(q,!0)){var oe=new A,le=oe[W](ee?{}:-0,1)!=oe,be=T(function(){oe.has(1)}),Se=D(function(ce){new R(ce)}),ve=!ee&&T(function(){for(var ce=new R,he=5;he--;)ce[W](he,he);return!ce.has(-0)});Se||((A=ne(function(ce,he){j(ce,F);var _e=z(new R,ce,A);return he!=null&&w(he,_e[W],{that:_e,AS_ENTRIES:Z}),_e})).prototype=F,F.constructor=A),(be||ve)&&(G("delete"),G("has"),Z&&G("get")),(ve||le)&&G(W),ee&&F.clear&&delete F.clear}return L[q]=A,p({global:!0,forced:A!=R},L),B(A,q),ee||V.setStrong(A,q,Z),A}},function(a,l,o){var p=o(19),d=o(32),y=o(51),g=o(179),O=Object.isExtensible,x=p(function(){});a.exports=x||g?function(w){return!!d(w)&&(!g||y(w)!="ArrayBuffer")&&(!O||O(w))}:O},function(a,l,o){var p=o(19);a.exports=p(function(){if(typeof ArrayBuffer=="function"){var d=new ArrayBuffer(8);Object.isExtensible(d)&&Object.defineProperty(d,"a",{value:8})}})},function(a,l,o){var p=o(19);a.exports=!p(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(a,l,o){var p=o(37).f,d=o(57),y=o(146),g=o(61),O=o(118),x=o(116),w=o(115),j=o(147),P=o(36),k=o(141).fastKey,T=o(56),D=T.set,B=T.getterFor;a.exports={getConstructor:function(z,q,ne,V){var Z=z(function(A,L){O(A,ee),D(A,{type:q,index:d(null),first:void 0,last:void 0,size:0}),P||(A.size=0),L!=null&&x(L,A[V],{that:A,AS_ENTRIES:ne})}),ee=Z.prototype,W=B(q),R=function(A,L,G){var oe,le,be=W(A),Se=F(A,L);return Se?Se.value=G:(be.last=Se={index:le=k(L,!0),key:L,value:G,previous:oe=be.last,next:void 0,removed:!1},be.first||(be.first=Se),oe&&(oe.next=Se),P?be.size++:A.size++,le!=="F"&&(be.index[le]=Se)),A},F=function(A,L){var G,oe=W(A),le=k(L);if(le!=="F")return oe.index[le];for(G=oe.first;G;G=G.next)if(G.key==L)return G};return y(ee,{clear:function(){for(var A=W(this),L=A.index,G=A.first;G;)G.removed=!0,G.previous&&(G.previous=G.previous.next=void 0),delete L[G.index],G=G.next;A.first=A.last=void 0,P?A.size=0:this.size=0},delete:function(A){var L=this,G=W(L),oe=F(L,A);if(oe){var le=oe.next,be=oe.previous;delete G.index[oe.index],oe.removed=!0,be&&(be.next=le),le&&(le.previous=be),G.first==oe&&(G.first=le),G.last==oe&&(G.last=be),P?G.size--:L.size--}return!!oe},forEach:function(A){for(var L,G=W(this),oe=g(A,arguments.length>1?arguments[1]:void 0);L=L?L.next:G.first;)for(oe(L.value,L.key,this);L&&L.removed;)L=L.previous},has:function(A){return!!F(this,A)}}),y(ee,ne?{get:function(A){var L=F(this,A);return L&&L.value},set:function(A,L){return R(this,A===0?0:A,L)}}:{add:function(A){return R(this,A=A===0?0:A,A)}}),P&&p(ee,"size",{get:function(){return W(this).size}}),Z},setStrong:function(z,q,ne){var V=q+" Iterator",Z=B(q),ee=B(V);w(z,q,function(W,R){D(this,{type:V,target:W,state:Z(W),kind:R,last:void 0})},function(){for(var W=ee(this),R=W.kind,F=W.last;F&&F.removed;)F=F.previous;return W.target&&(W.last=F=F?F.next:W.state.first)?R=="keys"?{value:F.key,done:!1}:R=="values"?{value:F.value,done:!1}:{value:[F.key,F.value],done:!1}:(W.target=void 0,{value:void 0,done:!0})},ne?"entries":"values",!ne,!0),j(q)}}},function(a,l,o){var p=o(74).forEach,d=o(120)("forEach");a.exports=d?[].forEach:function(y){return p(this,y,arguments.length>1?arguments[1]:void 0)}},function(a,l,o){var p=o(7),d=o(61),y=o(34),g=o(39),O=o(184),x=o(142),w=o(98),j=o(44),P=o(60),k=o(143),T=o(117),D=p.Array;a.exports=function(B){var z=g(B),q=w(this),ne=arguments.length,V=ne>1?arguments[1]:void 0,Z=V!==void 0;Z&&(V=d(V,ne>2?arguments[2]:void 0));var ee,W,R,F,A,L,G=T(z),oe=0;if(!G||this==D&&x(G))for(ee=j(z),W=q?new this(ee):D(ee);ee>oe;oe++)L=Z?V(z[oe],oe):z[oe],P(W,oe,L);else for(A=(F=k(z,G)).next,W=q?new this:[];!(R=y(A,F)).done;oe++)L=Z?O(F,V,[R.value,oe],!0):R.value,P(W,oe,L);return W.length=oe,W}},function(a,l,o){var p=o(33),d=o(144);a.exports=function(y,g,O,x){try{return x?g(p(O)[0],O[1]):g(O)}catch(w){d(y,"throw",w)}}},function(a,l,o){var p=o(33);a.exports=function(){var d=p(this),y="";return d.global&&(y+="g"),d.ignoreCase&&(y+="i"),d.multiline&&(y+="m"),d.dotAll&&(y+="s"),d.unicode&&(y+="u"),d.sticky&&(y+="y"),y}},function(a,l,o){var p=o(19),d=o(7).RegExp;a.exports=p(function(){var y=d(".","s");return!(y.dotAll&&y.exec(`
  53. `)&&y.flags==="s")})},function(a,l,o){var p=o(19),d=o(7).RegExp;a.exports=p(function(){var y=d("(?<a>b)","g");return y.exec("b").groups.a!=="b"||"b".replace(y,"$<a>c")!=="bc"})},function(a,l,o){var p=o(17),d=o(15),y=o(54),g=o(39),O=o(44),x=o(41),w=o(19),j=o(189),P=o(120),k=o(190),T=o(191),D=o(65),B=o(192),z=[],q=d(z.sort),ne=d(z.push),V=w(function(){z.sort(void 0)}),Z=w(function(){z.sort(null)}),ee=P("sort"),W=!w(function(){if(D)return D<70;if(!(k&&k>3)){if(T)return!0;if(B)return B<603;var R,F,A,L,G="";for(R=65;R<76;R++){switch(F=String.fromCharCode(R),R){case 66:case 69:case 70:case 72:A=3;break;case 68:case 71:A=4;break;default:A=2}for(L=0;L<47;L++)z.push({k:F+L,v:A})}for(z.sort(function(oe,le){return le.v-oe.v}),L=0;L<z.length;L++)F=z[L].k.charAt(0),G.charAt(G.length-1)!==F&&(G+=F);return G!=="DGBEFHACIJK"}});p({target:"Array",proto:!0,forced:V||!Z||!ee||!W},{sort:function(R){R!==void 0&&y(R);var F=g(this);if(W)return R===void 0?q(F):q(F,R);var A,L,G=[],oe=O(F);for(L=0;L<oe;L++)L in F&&ne(G,F[L]);for(j(G,function(le){return function(be,Se){return Se===void 0?-1:be===void 0?1:le!==void 0?+le(be,Se)||0:x(be)>x(Se)?1:-1}}(R)),A=G.length,L=0;L<A;)F[L]=G[L++];for(;L<oe;)delete F[L++];return F}})},function(a,l,o){var p=o(113),d=Math.floor,y=function(x,w){var j=x.length,P=d(j/2);return j<8?g(x,w):O(x,y(p(x,0,P),w),y(p(x,P),w),w)},g=function(x,w){for(var j,P,k=x.length,T=1;T<k;){for(P=T,j=x[T];P&&w(x[P-1],j)>0;)x[P]=x[--P];P!==T++&&(x[P]=j)}return x},O=function(x,w,j,P){for(var k=w.length,T=j.length,D=0,B=0;D<k||B<T;)x[D+B]=D<k&&B<T?P(w[D],j[B])<=0?w[D++]:j[B++]:D<k?w[D++]:j[B++];return x};a.exports=y},function(a,l,o){var p=o(53).match(/firefox\/(\d+)/i);a.exports=!!p&&+p[1]},function(a,l,o){var p=o(53);a.exports=/MSIE|Trident/.test(p)},function(a,l,o){var p=o(53).match(/AppleWebKit\/(\d+)\./);a.exports=!!p&&+p[1]},function(a,l,o){var p=o(17),d=o(74).find,y=o(99),g="find",O=!0;g in[]&&Array(1).find(function(){O=!1}),p({target:"Array",proto:!0,forced:O},{find:function(x){return d(this,x,arguments.length>1?arguments[1]:void 0)}}),y(g)},function(a,l,o){var p=o(7),d=o(154),y=p.TypeError;a.exports=function(g){if(d(g))throw y("The method doesn't accept regular expressions");return g}},function(a,l,o){var p=o(27)("match");a.exports=function(d){var y=/./;try{"/./"[d](y)}catch{try{return y[p]=!1,"/./"[d](y)}catch{}}return!1}},function(a,l,o){var p=o(92).PROPER,d=o(19),y=o(160);a.exports=function(g){return d(function(){return!!y[g]()||"\u200B\x85\u180E"[g]()!=="\u200B\x85\u180E"||p&&y[g].name!==g})}},function(a,l,o){var p=o(15);a.exports=p(1 .valueOf)},function(a,l,o){var p=o(15),d=o(39),y=Math.floor,g=p("".charAt),O=p("".replace),x=p("".slice),w=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,j=/\$([$&'`]|\d{1,2})/g;a.exports=function(P,k,T,D,B,z){var q=T+P.length,ne=D.length,V=j;return B!==void 0&&(B=d(B),V=w),O(z,V,function(Z,ee){var W;switch(g(ee,0)){case"$":return"$";case"&":return P;case"`":return x(k,0,T);case"'":return x(k,q);case"<":W=B[x(ee,1,-1)];break;default:var R=+ee;if(R===0)return Z;if(R>ne){var F=y(R/10);return F===0?Z:F<=ne?D[F-1]===void 0?g(ee,1):D[F-1]+g(ee,1):Z}W=D[R-1]}return W===void 0?"":W})}},function(a,l,o){var p=o(36),d=o(15),y=o(34),g=o(19),O=o(72),x=o(111),w=o(82),j=o(39),P=o(83),k=Object.assign,T=Object.defineProperty,D=d([].concat);a.exports=!k||g(function(){if(p&&k({b:1},k(T({},"a",{enumerable:!0,get:function(){T(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},z={},q=Symbol(),ne="abcdefghijklmnopqrst";return B[q]=7,ne.split("").forEach(function(V){z[V]=V}),k({},B)[q]!=7||O(k({},z)).join("")!=ne})?function(B,z){for(var q=j(B),ne=arguments.length,V=1,Z=x.f,ee=w.f;ne>V;)for(var W,R=P(arguments[V++]),F=Z?D(O(R),Z(R)):O(R),A=F.length,L=0;A>L;)W=F[L++],p&&!y(ee,R,W)||(q[W]=R[W]);return q}:k},function(a,l,o){var p=o(7),d=o(15),y=o(54),g=o(32),O=o(35),x=o(97),w=p.Function,j=d([].concat),P=d([].join),k={},T=function(D,B,z){if(!O(k,B)){for(var q=[],ne=0;ne<B;ne++)q[ne]="a["+ne+"]";k[B]=w("C,a","return new C("+P(q,",")+")")}return k[B](D,z)};a.exports=w.bind||function(D){var B=y(this),z=B.prototype,q=x(arguments,1),ne=function(){var V=j(q,x(arguments));return this instanceof ne?T(B,V.length,V):B.apply(D,V)};return g(z)&&(ne.prototype=z),ne}},function(a,l,o){var p=o(35);a.exports=function(d){return d!==void 0&&(p(d,"value")||p(d,"writable"))}},function(a,l,o){var p=o(15),d=o(45),y=o(41),g=/"/g,O=p("".replace);a.exports=function(x,w,j,P){var k=y(d(x)),T="<"+w;return j!==""&&(T+=" "+j+'="'+O(y(P),g,"&quot;")+'"'),T+">"+k+"</"+w+">"}},function(a,l,o){var p=o(19);a.exports=function(d){return p(function(){var y=""[d]('"');return y!==y.toLowerCase()||y.split('"').length>3})}},function(a,l,o){var p,d,y,g,O=o(17),x=o(66),w=o(7),j=o(46),P=o(34),k=o(205),T=o(43),D=o(146),B=o(101),z=o(73),q=o(147),ne=o(54),V=o(28),Z=o(32),ee=o(118),W=o(90),R=o(116),F=o(119),A=o(156),L=o(163).set,G=o(206),oe=o(209),le=o(210),be=o(165),Se=o(211),ve=o(56),ce=o(94),he=o(27),_e=o(212),je=o(126),Ie=o(65),Ze=he("species"),Te="Promise",Me=ve.getterFor(Te),Je=ve.set,te=ve.getterFor(Te),K=k&&k.prototype,X=k,fe=K,xe=w.TypeError,me=w.document,Fe=w.process,He=be.f,Qe=He,Ve=!!(me&&me.createEvent&&w.dispatchEvent),Oe=V(w.PromiseRejectionEvent),ze="unhandledrejection",re=!1,Le=ce(Te,function(){var J=W(X),pe=J!==String(X);if(!pe&&Ie===66||x&&!fe.finally)return!0;if(Ie>=51&&/native code/.test(J))return!1;var Ne=new X(function(Ke){Ke(1)}),Ce=function(Ke){Ke(function(){},function(){})};return(Ne.constructor={})[Ze]=Ce,!(re=Ne.then(function(){})instanceof Ce)||!pe&&_e&&!Oe}),ut=Le||!F(function(J){X.all(J).catch(function(){})}),xt=function(J){var pe;return!(!Z(J)||!V(pe=J.then))&&pe},ot=function(J,pe){if(!J.notified){J.notified=!0;var Ne=J.reactions;G(function(){for(var Ce=J.value,Ke=J.state==1,gt=0;Ne.length>gt;){var rn,pn,Vt,Zt=Ne[gt++],We=Ke?Zt.ok:Zt.fail,et=Zt.resolve,it=Zt.reject,st=Zt.domain;try{We?(Ke||(J.rejection===2&&lt(J),J.rejection=1),We===!0?rn=Ce:(st&&st.enter(),rn=We(Ce),st&&(st.exit(),Vt=!0)),rn===Zt.promise?it(xe("Promise-chain cycle")):(pn=xt(rn))?P(pn,rn,et,it):et(rn)):it(Ce)}catch(Dt){st&&!Vt&&st.exit(),it(Dt)}}J.reactions=[],J.notified=!1,pe&&!J.rejection&&At(J)})}},vt=function(J,pe,Ne){var Ce,Ke;Ve?((Ce=me.createEvent("Event")).promise=pe,Ce.reason=Ne,Ce.initEvent(J,!1,!0),w.dispatchEvent(Ce)):Ce={promise:pe,reason:Ne},!Oe&&(Ke=w["on"+J])?Ke(Ce):J===ze&&le("Unhandled promise rejection",Ne)},At=function(J){P(L,w,function(){var pe,Ne=J.facade,Ce=J.value;if(Bt(J)&&(pe=Se(function(){je?Fe.emit("unhandledRejection",Ce,Ne):vt(ze,Ne,Ce)}),J.rejection=je||Bt(J)?2:1,pe.error))throw pe.value})},Bt=function(J){return J.rejection!==1&&!J.parent},lt=function(J){P(L,w,function(){var pe=J.facade;je?Fe.emit("rejectionHandled",pe):vt("rejectionhandled",pe,J.value)})},Yt=function(J,pe,Ne){return function(Ce){J(pe,Ce,Ne)}},U=function(J,pe,Ne){J.done||(J.done=!0,Ne&&(J=Ne),J.value=pe,J.state=2,ot(J,!0))},ue=function(J,pe,Ne){if(!J.done){J.done=!0,Ne&&(J=Ne);try{if(J.facade===pe)throw xe("Promise can't be resolved itself");var Ce=xt(pe);Ce?G(function(){var Ke={done:!1};try{P(Ce,pe,Yt(ue,Ke,J),Yt(U,Ke,J))}catch(gt){U(Ke,gt,J)}}):(J.value=pe,J.state=1,ot(J,!1))}catch(Ke){U({done:!1},Ke,J)}}};if(Le&&(fe=(X=function(J){ee(this,fe),ne(J),P(p,this);var pe=Me(this);try{J(Yt(ue,pe),Yt(U,pe))}catch(Ne){U(pe,Ne)}}).prototype,(p=function(J){Je(this,{type:Te,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=D(fe,{then:function(J,pe){var Ne=te(this),Ce=Ne.reactions,Ke=He(A(this,X));return Ke.ok=!V(J)||J,Ke.fail=V(pe)&&pe,Ke.domain=je?Fe.domain:void 0,Ne.parent=!0,Ce[Ce.length]=Ke,Ne.state!=0&&ot(Ne,!1),Ke.promise},catch:function(J){return this.then(void 0,J)}}),d=function(){var J=new p,pe=Me(J);this.promise=J,this.resolve=Yt(ue,pe),this.reject=Yt(U,pe)},be.f=He=function(J){return J===X||J===y?new d(J):Qe(J)},!x&&V(k)&&K!==Object.prototype)){g=K.then,re||(T(K,"then",function(J,pe){var Ne=this;return new X(function(Ce,Ke){P(g,Ne,Ce,Ke)}).then(J,pe)},{unsafe:!0}),T(K,"catch",fe.catch,{unsafe:!0}));try{delete K.constructor}catch{}B&&B(K,fe)}O({global:!0,wrap:!0,forced:Le},{Promise:X}),z(X,Te,!1,!0),q(Te),y=j(Te),O({target:Te,stat:!0,forced:Le},{reject:function(J){var pe=He(this);return P(pe.reject,void 0,J),pe.promise}}),O({target:Te,stat:!0,forced:x||Le},{resolve:function(J){return oe(x&&this===y?X:this,J)}}),O({target:Te,stat:!0,forced:ut},{all:function(J){var pe=this,Ne=He(pe),Ce=Ne.resolve,Ke=Ne.reject,gt=Se(function(){var rn=ne(pe.resolve),pn=[],Vt=0,Zt=1;R(J,function(We){var et=Vt++,it=!1;Zt++,P(rn,pe,We).then(function(st){it||(it=!0,pn[et]=st,--Zt||Ce(pn))},Ke)}),--Zt||Ce(pn)});return gt.error&&Ke(gt.value),Ne.promise},race:function(J){var pe=this,Ne=He(pe),Ce=Ne.reject,Ke=Se(function(){var gt=ne(pe.resolve);R(J,function(rn){P(gt,pe,rn).then(Ne.resolve,Ce)})});return Ke.error&&Ce(Ke.value),Ne.promise}})},function(a,l,o){var p=o(7);a.exports=p.Promise},function(a,l,o){var p,d,y,g,O,x,w,j,P=o(7),k=o(61),T=o(50).f,D=o(163).set,B=o(164),z=o(207),q=o(208),ne=o(126),V=P.MutationObserver||P.WebKitMutationObserver,Z=P.document,ee=P.process,W=P.Promise,R=T(P,"queueMicrotask"),F=R&&R.value;F||(p=function(){var A,L;for(ne&&(A=ee.domain)&&A.exit();d;){L=d.fn,d=d.next;try{L()}catch(G){throw d?g():y=void 0,G}}y=void 0,A&&A.enter()},B||ne||q||!V||!Z?!z&&W&&W.resolve?((w=W.resolve(void 0)).constructor=W,j=k(w.then,w),g=function(){j(p)}):ne?g=function(){ee.nextTick(p)}:(D=k(D,P),g=function(){D(p)}):(O=!0,x=Z.createTextNode(""),new V(p).observe(x,{characterData:!0}),g=function(){x.data=O=!O})),a.exports=F||function(A){var L={fn:A,next:void 0};y&&(y.next=L),d||(d=L,g()),y=L}},function(a,l,o){var p=o(53),d=o(7);a.exports=/ipad|iphone|ipod/i.test(p)&&d.Pebble!==void 0},function(a,l,o){var p=o(53);a.exports=/web0s(?!.*chrome)/i.test(p)},function(a,l,o){var p=o(33),d=o(32),y=o(165);a.exports=function(g,O){if(p(g),d(O)&&O.constructor===g)return O;var x=y.f(g);return(0,x.resolve)(O),x.promise}},function(a,l,o){var p=o(7);a.exports=function(d,y){var g=p.console;g&&g.error&&(arguments.length==1?g.error(d):g.error(d,y))}},function(a,l){a.exports=function(o){try{return{error:!1,value:o()}}catch(p){return{error:!0,value:p}}}},function(a,l){a.exports=typeof window=="object"},function(a,l,o){var p=o(36),d=o(15),y=o(72),g=o(40),O=d(o(82).f),x=d([].push),w=function(j){return function(P){for(var k,T=g(P),D=y(T),B=D.length,z=0,q=[];B>z;)k=D[z++],p&&!O(T,k)||x(q,j?[k,T[k]]:T[k]);return q}};a.exports={entries:w(!0),values:w(!1)}},function(a,l,o){var p=o(39),d=o(69),y=o(44);a.exports=function(g){for(var O=p(this),x=y(O),w=arguments.length,j=d(w>1?arguments[1]:void 0,x),P=w>2?arguments[2]:void 0,k=P===void 0?x:d(P,x);k>j;)O[j++]=g;return O}},function(a,l,o){o.r(l),o.d(l,"observer",function(){return _r}),o.d(l,"LogicFlow",function(){return sd}),o.d(l,"h",function(){return re.g}),o.d(l,"LogicFlowUtil",function(){return p}),o.d(l,"BaseNode",function(){return ro}),o.d(l,"RectNode",function(){return ep}),o.d(l,"CircleNode",function(){return op}),o.d(l,"PolygonNode",function(){return cp}),o.d(l,"DiamondNode",function(){return dp}),o.d(l,"EllipseNode",function(){return bp}),o.d(l,"TextNode",function(){return Op}),o.d(l,"HtmlNode",function(){return Sp}),o.d(l,"BaseEdge",function(){return Ia}),o.d(l,"LineEdge",function(){return zp}),o.d(l,"PolylineEdge",function(){return Hp}),o.d(l,"BezierEdge",function(){return Vp}),o.d(l,"Arrow",function(){return Aj}),o.d(l,"BaseEdgeModel",function(){return ml}),o.d(l,"BezierEdgeModel",function(){return cf}),o.d(l,"LineEdgeModel",function(){return El}),o.d(l,"PolylineEdgeModel",function(){return Al}),o.d(l,"BaseNodeModel",function(){return no}),o.d(l,"CircleNodeModel",function(){return yf}),o.d(l,"DiamondNodeModel",function(){return _f}),o.d(l,"EllipseNodeModel",function(){return Ef}),o.d(l,"PolygonNodeModel",function(){return Mf}),o.d(l,"RectNodeModel",function(){return Cf}),o.d(l,"TextNodeModel",function(){return Bf}),o.d(l,"HtmlNodeModel",function(){return $f}),o.d(l,"EditConfigModel",function(){return Kh}),o.d(l,"GraphModel",function(){return Fv}),o.d(l,"SnaplineModel",function(){return _b}),o.d(l,"Keyboard",function(){return am}),o.d(l,"get",function(){return lg}),o.d(l,"defaults",function(){return pg}),o.d(l,"ElementState",function(){return Mt}),o.d(l,"ModelType",function(){return Ot}),o.d(l,"ElementType",function(){return on}),o.d(l,"EventType",function(){return at}),o.d(l,"formateAnchorConnectValidateData",function(){return Oa});var p={};o.r(p),o.d(p,"createUuid",function(){return xo}),o.d(p,"refreshGraphId",function(){return Dw}),o.d(p,"createDrag",function(){return ux}),o.d(p,"StepDrag",function(){return Jr});var d=o(1),y=o(10);if(!y.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!d.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var g=o(42),O=Object(g.b)("observerBatching");function x(e){e()}var w=!1;function j(){return w}function P(e){return Object(d.t)(e)}var k,T=1e4,D=new Set;function B(){k===void 0&&(k=setTimeout(z,1e4))}function z(){k=void 0;var e=Date.now();D.forEach(function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,D.delete(t))}),D.size>0&&B()}var q=!1,ne=[],V={};function Z(e){return"observer"+e}function ee(e,t,n){t===void 0&&(t="observed"),n===void 0&&(n=V),j();var i,c=function(_){return function(){q?ne.push(_):_()}}((n.useForceUpdate||g.d)()),s=y.d.useRef(null);if(!s.current){var f=new d.c(Z(t),function(){h.mounted?c():(f.dispose(),s.current=null)}),h=function(_){return{cleanAt:Date.now()+T,reaction:_}}(f);s.current=h,i=s,D.add(i),B()}var v=s.current.reaction;return y.d.useDebugValue(v,P),y.d.useEffect(function(){var _;return _=s,D.delete(_),s.current?s.current.mounted=!0:(s.current={reaction:new d.c(Z(t),function(){c()}),cleanAt:1/0},c()),function(){s.current.reaction.dispose(),s.current=null}},[]),function(_){q=!0,ne=[];try{var E=_();q=!1;var M=ne.length>0?ne:void 0;return y.d.useLayoutEffect(function(){M&&M.forEach(function(N){return N()})},[M]),E}finally{q=!1}}(function(){var _,E;if(v.track(function(){try{_=e()}catch(M){E=M}}),E)throw E;return _})}var W=function(){return W=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var c in t=arguments[n])Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c]);return e},W.apply(this,arguments)};function R(e,t){var n,i,c,s=W({forwardRef:!1},t),f=e.displayName||e.name,h=function(v,_){return ee(function(){return e(v,_)},f)};return h.displayName=f,n=s.forwardRef?Object(y.f)(Object(y.e)(h)):Object(y.f)(h),i=e,c=n,Object.keys(i).forEach(function(v){F[v]||Object.defineProperty(c,v,Object.getOwnPropertyDescriptor(i,v))}),n.displayName=f,n}var F={$$typeof:!0,render:!0,compare:!0,type:!0};function A(e){var t=e.children,n=e.render,i=t||n;return typeof i!="function"?null:ee(i)}function L(e,t,n,i,c){var s=t==="children"?"render":"children",f=typeof e[t]=="function",h=typeof e[s]=="function";return f&&h?new Error("MobX Observer: Do not use children and render in the same time in`"+n):f||h?null:new Error("Invalid prop `"+c+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}A.propTypes={children:L,render:L},A.displayName="Observer";var G;(G=y.g)||(G=x),Object(d.n)({reactionScheduler:G}),Object(g.a)()[O]=!0;var oe=0,le={};function be(e){return le[e]||(le[e]=function(t){if(typeof Symbol=="function")return Symbol(t);var n="__$mobx-react "+t+" ("+oe+")";return oe++,n}(e)),le[e]}function Se(e,t){if(ve(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var c=0;c<n.length;c++)if(!Object.hasOwnProperty.call(t,n[c])||!ve(e[n[c]],t[n[c]]))return!1;return!0}function ve(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ce(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var he=be("patchMixins"),_e=be("patchedDefinition");function je(e,t){for(var n=this,i=arguments.length,c=new Array(i>2?i-2:0),s=2;s<i;s++)c[s-2]=arguments[s];t.locks++;try{var f;return e!=null&&(f=e.apply(this,c)),f}finally{t.locks--,t.locks===0&&t.methods.forEach(function(h){h.apply(n,c)})}}function Ie(e,t){return function(){for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];je.call.apply(je,[this,e,t].concat(i))}}function Ze(e,t,n){var i=function(h,v){var _=h[he]=h[he]||{},E=_[v]=_[v]||{};return E.locks=E.locks||0,E.methods=E.methods||[],E}(e,t);i.methods.indexOf(n)<0&&i.methods.push(n);var c=Object.getOwnPropertyDescriptor(e,t);if(!c||!c[_e]){var s=e[t],f=Te(e,t,c?c.enumerable:void 0,i,s);Object.defineProperty(e,t,f)}}function Te(e,t,n,i,c){var s,f=Ie(c,i);return(s={})[_e]=!0,s.get=function(){return f},s.set=function(h){if(this===e)f=Ie(h,i);else{var v=Te(this,t,n,i,h);Object.defineProperty(this,t,v)}},s.configurable=!0,s.enumerable=n,s}var Me=d.a||"$mobx",Je=be("isMobXReactObserver"),te=be("isUnmounted"),K=be("skipRender"),X=be("isForcingUpdate");function fe(e){var t=e.prototype;if(e[Je]?xe(t):e[Je]=!0,t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==y.b)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==Fe)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=Fe;He(t,"props"),He(t,"state");var n=t.render;return t.render=function(){return me.call(this,n)},Ze(t,"componentWillUnmount",function(){var i;(i=this.render[Me])===null||i===void 0||i.dispose(),this[te]=!0,!this.render[Me]&&xe(this)}),e}function xe(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function me(e){var t=this;ce(this,K,!1),ce(this,X,!1);var n=xe(this),i=e.bind(this),c=!1,s=new d.c(n+".render()",function(){if(!c&&(c=!0,t[te]!==!0)){var h=!0;try{ce(t,X,!0),t[K]||y.a.prototype.forceUpdate.call(t),h=!1}finally{ce(t,X,!1),h&&s.dispose()}}});function f(){c=!1;var h=void 0,v=void 0;if(s.track(function(){try{v=Object(d.d)(!1,i)}catch(_){h=_}}),h)throw h;return v}return s.reactComponent=this,f[Me]=s,this.render=f,f.call(this)}function Fe(e,t){return this.state!==t||!Se(this.props,e)}function He(e,t){var n=be("reactProp_"+t+"_valueHolder"),i=be("reactProp_"+t+"_atomHolder");function c(){return this[i]||ce(this,i,Object(d.o)("reactive "+t)),this[i]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var s=!1;return d.f&&d.e&&(s=Object(d.f)(!0)),c.call(this).reportObserved(),d.f&&d.e&&Object(d.e)(s),this[n]},set:function(s){this[X]||Se(this[n],s)?ce(this,n,s):(ce(this,n,s),ce(this,K,!0),c.call(this).reportChanged(),ce(this,K,!1))}})}var Qe=typeof Symbol=="function"&&Symbol.for,Ve=Qe?Symbol.for("react.forward_ref"):typeof y.e=="function"&&Object(y.e)(function(e){return null}).$$typeof,Oe=Qe?Symbol.for("react.memo"):typeof y.f=="function"&&Object(y.f)(function(e){return null}).$$typeof;function ze(e){if(e.isMobxInjector,Oe&&e.$$typeof===Oe)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(Ve&&e.$$typeof===Ve){var t=e.render;if(typeof t!="function")throw new Error("render property of ForwardRef was not a function");return Object(y.e)(function(){var n=arguments;return Object(y.c)(A,null,function(){return t.apply(void 0,n)})})}return typeof e!="function"||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(y.a,e)?fe(e):R(e)}if(!y.a)throw new Error("mobx-react requires React to be available");if(!d.C)throw new Error("mobx-react requires mobx to be available");var re=o(0);o(4),o(8),o(2),o(3),o(62),o(6),o(5),o(11),o(38),o(29),o(22),o(20),o(23),o(21),o(25),o(9),o(16),o(24),o(18),o(188),o(193),o(103),o(152),o(153);var Le=function(e,t){for(var n=-1,i=e==null?0:e.length,c=Array(i);++n<i;)c[n]=t(e[n],n,e);return c},ut=function(){this.__data__=[],this.size=0},xt=function(e,t){return e===t||e!=e&&t!=t},ot=function(e,t){for(var n=e.length;n--;)if(xt(e[n][0],t))return n;return-1},vt=Array.prototype.splice,At=function(e){var t=this.__data__,n=ot(t,e);return!(n<0)&&(n==t.length-1?t.pop():vt.call(t,n,1),--this.size,!0)},Bt=function(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]},lt=function(e){return ot(this.__data__,e)>-1},Yt=function(e,t){var n=this.__data__,i=ot(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function U(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}U.prototype.clear=ut,U.prototype.delete=At,U.prototype.get=Bt,U.prototype.has=lt,U.prototype.set=Yt;var ue=U,J=function(){this.__data__=new ue,this.size=0},pe=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ne=function(e){return this.__data__.get(e)},Ce=function(e){return this.__data__.has(e)},Ke=o(31),gt=Ke.a.Symbol,rn=Object.prototype,pn=rn.hasOwnProperty,Vt=rn.toString,Zt=gt?gt.toStringTag:void 0,We=function(e){var t=pn.call(e,Zt),n=e[Zt];try{e[Zt]=void 0;var i=!0}catch{}var c=Vt.call(e);return i&&(t?e[Zt]=n:delete e[Zt]),c},et=Object.prototype.toString,it=function(e){return et.call(e)},st=gt?gt.toStringTag:void 0,Dt=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":st&&st in Object(e)?We(e):it(e)},Ht=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")},Xr,Er=function(e){if(!Ht(e))return!1;var t=Dt(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},Sr=Ke.a["__core-js_shared__"],$o=(Xr=/[^.]+$/.exec(Sr&&Sr.keys&&Sr.keys.IE_PROTO||""))?"Symbol(src)_1."+Xr:"",Bc=function(e){return!!$o&&$o in e},aa=Function.prototype.toString,Zn=function(e){if(e!=null){try{return aa.call(e)}catch{}try{return e+""}catch{}}return""},lu=/^\[object .+?Constructor\]$/,Ye=Function.prototype,zc=Object.prototype,fu=Ye.toString,pu=zc.hasOwnProperty,zn=RegExp("^"+fu.call(pu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=function(e){return!(!Ht(e)||Bc(e))&&(Er(e)?zn:lu).test(Zn(e))},du=function(e,t){return e==null?void 0:e[t]},jr=function(e,t){var n=du(e,t);return Fn(n)?n:void 0},vo=jr(Ke.a,"Map"),hr=jr(Object,"create"),ua=function(){this.__data__=hr?hr(null):{},this.size=0},hu=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Fc=Object.prototype.hasOwnProperty,pi=function(e){var t=this.__data__;if(hr){var n=t[e];return n==="__lodash_hash_undefined__"?void 0:n}return Fc.call(t,e)?t[e]:void 0},$c=Object.prototype.hasOwnProperty,yu=function(e){var t=this.__data__;return hr?t[e]!==void 0:$c.call(t,e)},Wc=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hr&&t===void 0?"__lodash_hash_undefined__":t,this};function Yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Yr.prototype.clear=ua,Yr.prototype.delete=hu,Yr.prototype.get=pi,Yr.prototype.has=yu,Yr.prototype.set=Wc;var vu=Yr,Pr=function(){this.size=0,this.__data__={hash:new vu,map:new(vo||ue),string:new vu}},Gc=function(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null},di=function(e,t){var n=e.__data__;return Gc(t)?n[typeof t=="string"?"string":"hash"]:n.map},sa=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},ca=function(e){return di(this,e).get(e)},Hc=function(e){return di(this,e).has(e)},gu=function(e,t){var n=di(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function go(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}go.prototype.clear=Pr,go.prototype.delete=sa,go.prototype.get=ca,go.prototype.has=Hc,go.prototype.set=gu;var bo=go,bu=function(e,t){var n=this.__data__;if(n instanceof ue){var i=n.__data__;if(!vo||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new bo(i)}return n.set(e,t),this.size=n.size,this};function mo(e){var t=this.__data__=new ue(e);this.size=t.size}mo.prototype.clear=J,mo.prototype.delete=pe,mo.prototype.get=Ne,mo.prototype.has=Ce,mo.prototype.set=bu;var Ar=mo,mu=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_u=function(e){return this.__data__.has(e)};function Wo(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bo;++t<n;)this.add(e[t])}Wo.prototype.add=Wo.prototype.push=mu,Wo.prototype.has=_u;var Ou=Wo,Uc=function(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},wu=function(e,t){return e.has(t)},xu=function(e,t,n,i,c,s){var f=1&n,h=e.length,v=t.length;if(h!=v&&!(f&&v>h))return!1;var _=s.get(e),E=s.get(t);if(_&&E)return _==t&&E==e;var M=-1,N=!0,$=2&n?new Ou:void 0;for(s.set(e,t),s.set(t,e);++M<h;){var Y=e[M],Q=t[M];if(i)var se=f?i(Q,Y,M,t,e,s):i(Y,Q,M,e,t,s);if(se!==void 0){if(se)continue;N=!1;break}if($){if(!Uc(t,function(ae,de){if(!wu($,de)&&(Y===ae||c(Y,ae,n,i,s)))return $.push(de)})){N=!1;break}}else if(Y!==Q&&!c(Y,Q,n,i,s)){N=!1;break}}return s.delete(e),s.delete(t),N},Go=Ke.a.Uint8Array,Eu=function(e){var t=-1,n=Array(e.size);return e.forEach(function(i,c){n[++t]=[c,i]}),n},Xc=function(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n},Su=gt?gt.prototype:void 0,la=Su?Su.valueOf:void 0,Ho=function(e,t,n,i,c,s,f){switch(n){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||!s(new Go(e),new Go(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xt(+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 h=Eu;case"[object Set]":var v=1&i;if(h||(h=Xc),e.size!=t.size&&!v)return!1;var _=f.get(e);if(_)return _==t;i|=2,f.set(e,t);var E=xu(h(e),h(t),i,c,s,f);return f.delete(e),E;case"[object Symbol]":if(la)return la.call(e)==la.call(t)}return!1},Tr=function(e,t){for(var n=-1,i=t.length,c=e.length;++n<i;)e[c+n]=t[n];return e},yn=Array.isArray,ju=function(e,t,n){var i=t(e);return yn(e)?i:Tr(i,n(e))},Pu=function(e,t){for(var n=-1,i=e==null?0:e.length,c=0,s=[];++n<i;){var f=e[n];t(f,n,e)&&(s[c++]=f)}return s},Au=function(){return[]},Yc=Object.prototype.propertyIsEnumerable,Vr=Object.getOwnPropertySymbols,Jn=Vr?function(e){return e==null?[]:(e=Object(e),Pu(Vr(e),function(t){return Yc.call(e,t)}))}:Au,Vc=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Qn=function(e){return e!=null&&typeof e=="object"},$n=function(e){return Qn(e)&&Dt(e)=="[object Arguments]"},Tu=Object.prototype,Mu=Tu.hasOwnProperty,Kc=Tu.propertyIsEnumerable,hi=$n(function(){return arguments}())?$n:function(e){return Qn(e)&&Mu.call(e,"callee")&&!Kc.call(e,"callee")},Mr=hi,Uo=o(48),qc=/^(?:0|[1-9]\d*)$/,On=function(e,t){var n=typeof e;return!!(t=t==null?9007199254740991:t)&&(n=="number"||n!="symbol"&&qc.test(e))&&e>-1&&e%1==0&&e<t},Kr=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Et={};Et["[object Float32Array]"]=Et["[object Float64Array]"]=Et["[object Int8Array]"]=Et["[object Int16Array]"]=Et["[object Int32Array]"]=Et["[object Uint8Array]"]=Et["[object Uint8ClampedArray]"]=Et["[object Uint16Array]"]=Et["[object Uint32Array]"]=!0,Et["[object Arguments]"]=Et["[object Array]"]=Et["[object ArrayBuffer]"]=Et["[object Boolean]"]=Et["[object DataView]"]=Et["[object Date]"]=Et["[object Error]"]=Et["[object Function]"]=Et["[object Map]"]=Et["[object Number]"]=Et["[object Object]"]=Et["[object RegExp]"]=Et["[object Set]"]=Et["[object String]"]=Et["[object WeakMap]"]=!1;var Wn=function(e){return Qn(e)&&Kr(e.length)&&!!Et[Dt(e)]},qr=function(e){return function(t){return e(t)}},dn=o(49),ku=dn.a&&dn.a.isTypedArray,fa=ku?qr(ku):Wn,Du=Object.prototype.hasOwnProperty,er=function(e,t){var n=yn(e),i=!n&&Mr(e),c=!n&&!i&&Object(Uo.a)(e),s=!n&&!i&&!c&&fa(e),f=n||i||c||s,h=f?Vc(e.length,String):[],v=h.length;for(var _ in e)!t&&!Du.call(e,_)||f&&(_=="length"||c&&(_=="offset"||_=="parent")||s&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||On(_,v))||h.push(_);return h},Nu=Object.prototype,yi=function(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||Nu)},tr=function(e,t){return function(n){return e(t(n))}},Cu=tr(Object.keys,Object),Zc=Object.prototype.hasOwnProperty,pa=function(e){if(!yi(e))return Cu(e);var t=[];for(var n in Object(e))Zc.call(e,n)&&n!="constructor"&&t.push(n);return t},Jt=function(e){return e!=null&&Kr(e.length)&&!Er(e)},_o=function(e){return Jt(e)?er(e):pa(e)},vi=function(e){return ju(e,_o,Jn)},Nn=Object.prototype.hasOwnProperty,Ru=function(e,t,n,i,c,s){var f=1&n,h=vi(e),v=h.length;if(v!=vi(t).length&&!f)return!1;for(var _=v;_--;){var E=h[_];if(!(f?E in t:Nn.call(t,E)))return!1}var M=s.get(e),N=s.get(t);if(M&&N)return M==t&&N==e;var $=!0;s.set(e,t),s.set(t,e);for(var Y=f;++_<v;){var Q=e[E=h[_]],se=t[E];if(i)var ae=f?i(se,Q,E,t,e,s):i(Q,se,E,e,t,s);if(!(ae===void 0?Q===se||c(Q,se,n,i,s):ae)){$=!1;break}Y||(Y=E=="constructor")}if($&&!Y){var de=e.constructor,we=t.constructor;de==we||!("constructor"in e)||!("constructor"in t)||typeof de=="function"&&de instanceof de&&typeof we=="function"&&we instanceof we||($=!1)}return s.delete(e),s.delete(t),$},Xo=jr(Ke.a,"DataView"),gi=jr(Ke.a,"Promise"),bi=jr(Ke.a,"Set"),mi=jr(Ke.a,"WeakMap"),Iu="[object Map]",Cn="[object Promise]",Gn="[object Set]",Oo="[object WeakMap]",da="[object DataView]",ha=Zn(Xo),ya=Zn(vo),Lu=Zn(gi),Jc=Zn(bi),_i=Zn(mi),Zr=Dt;(Xo&&Zr(new Xo(new ArrayBuffer(1)))!=da||vo&&Zr(new vo)!=Iu||gi&&Zr(gi.resolve())!=Cn||bi&&Zr(new bi)!=Gn||mi&&Zr(new mi)!=Oo)&&(Zr=function(e){var t=Dt(e),n=t=="[object Object]"?e.constructor:void 0,i=n?Zn(n):"";if(i)switch(i){case ha:return da;case ya:return Iu;case Lu:return Cn;case Jc:return Gn;case _i:return Oo}return t});var b=Zr,m="[object Arguments]",S="[object Array]",C="[object Object]",H=Object.prototype.hasOwnProperty,ie=function(e,t,n,i,c,s){var f=yn(e),h=yn(t),v=f?S:b(e),_=h?S:b(t),E=(v=v==m?C:v)==C,M=(_=_==m?C:_)==C,N=v==_;if(N&&Object(Uo.a)(e)){if(!Object(Uo.a)(t))return!1;f=!0,E=!1}if(N&&!E)return s||(s=new Ar),f||fa(e)?xu(e,t,n,i,c,s):Ho(e,t,v,n,i,c,s);if(!(1&n)){var $=E&&H.call(e,"__wrapped__"),Y=M&&H.call(t,"__wrapped__");if($||Y){var Q=$?e.value():e,se=Y?t.value():t;return s||(s=new Ar),c(Q,se,n,i,s)}}return!!N&&(s||(s=new Ar),Ru(e,t,n,i,c,s))},ge=function e(t,n,i,c,s){return t===n||(t==null||n==null||!Qn(t)&&!Qn(n)?t!=t&&n!=n:ie(t,n,i,c,e,s))},Ae=function(e,t,n,i){var c=n.length,s=c,f=!i;if(e==null)return!s;for(e=Object(e);c--;){var h=n[c];if(f&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<s;){var v=(h=n[c])[0],_=e[v],E=h[1];if(f&&h[2]){if(_===void 0&&!(v in e))return!1}else{var M=new Ar;if(i)var N=i(_,E,v,e,t,M);if(!(N===void 0?ge(E,_,3,i,M):N))return!1}}return!0},Ue=function(e){return e==e&&!Ht(e)},_t=function(e){for(var t=_o(e),n=t.length;n--;){var i=t[n],c=e[i];t[n]=[i,c,Ue(c)]}return t},ct=function(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}},Nt=function(e){var t=_t(e);return t.length==1&&t[0][2]?ct(t[0][0],t[0][1]):function(n){return n===e||Ae(n,e,t)}},dt=function(e){return typeof e=="symbol"||Qn(e)&&Dt(e)=="[object Symbol]"},Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hn=/^\w*$/,Wt=function(e,t){if(yn(e))return!1;var n=typeof e;return!(n!="number"&&n!="symbol"&&n!="boolean"&&e!=null&&!dt(e))||Hn.test(e)||!Tt.test(e)||t!=null&&e in Object(t)};function wn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var n=function(){var i=arguments,c=t?t.apply(this,i):i[0],s=n.cache;if(s.has(c))return s.get(c);var f=e.apply(this,i);return n.cache=s.set(c,f)||s,f};return n.cache=new(wn.Cache||bo),n}wn.Cache=bo;var Yo=wn,Qc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bu=/\\(\\)?/g,zu=function(e){var t=Yo(e,function(i){return n.size===500&&n.clear(),i}),n=t.cache;return t}(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Qc,function(n,i,c,s){t.push(c?s.replace(Bu,"$1"):i||n)}),t}),Oi=gt?gt.prototype:void 0,va=Oi?Oi.toString:void 0,xn=function e(t){if(typeof t=="string")return t;if(yn(t))return Le(t,e)+"";if(dt(t))return va?va.call(t):"";var n=t+"";return n=="0"&&1/t==-1/0?"-0":n},Fu=function(e){return e==null?"":xn(e)},Vo=function(e,t){return yn(e)?e:Wt(e,t)?[e]:zu(Fu(e))},ga=function(e){if(typeof e=="string"||dt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t},el=function(e,t){for(var n=0,i=(t=Vo(t,e)).length;e!=null&&n<i;)e=e[ga(t[n++])];return n&&n==i?e:void 0},wh=function(e,t,n){var i=e==null?void 0:el(e,t);return i===void 0?n:i},bO=function(e,t){return e!=null&&t in Object(e)},mO=function(e,t,n){for(var i=-1,c=(t=Vo(t,e)).length,s=!1;++i<c;){var f=ga(t[i]);if(!(s=e!=null&&n(e,f)))break;e=e[f]}return s||++i!=c?s:!!(c=e==null?0:e.length)&&Kr(c)&&On(f,c)&&(yn(e)||Mr(e))},xh=function(e,t){return e!=null&&mO(e,t,bO)},_O=function(e,t){return Wt(e)&&Ue(t)?ct(ga(e),t):function(n){var i=wh(n,e);return i===void 0&&i===t?xh(n,e):ge(t,i,3)}},tl=function(e){return e},OO=function(e){return function(t){return t==null?void 0:t[e]}},wO=function(e){return function(t){return el(t,e)}},xO=function(e){return Wt(e)?OO(ga(e)):wO(e)},EO=function(e){return typeof e=="function"?e:e==null?tl:typeof e=="object"?yn(e)?_O(e[0],e[1]):Nt(e):xO(e)},Eh=function(e){return function(t,n,i){for(var c=-1,s=Object(t),f=i(t),h=f.length;h--;){var v=f[e?h:++c];if(n(s[v],v,s)===!1)break}return t}}(),SO=function(e,t){return function(n,i){if(n==null)return n;if(!Jt(n))return e(n,i);for(var c=n.length,s=t?c:-1,f=Object(n);(t?s--:++s<c)&&i(f[s],s,f)!==!1;);return n}}(function(e,t){return e&&Eh(e,t,_o)}),jO=function(e,t){var n=-1,i=Jt(e)?Array(e.length):[];return SO(e,function(c,s,f){i[++n]=t(c,s,f)}),i},$u=function(e,t){return(yn(e)?Le:jO)(e,EO(t))};Object(d.n)({isolateGlobalState:!0});var Wu=function(){try{var e=jr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),nl=function(e,t,n){t=="__proto__"&&Wu?Wu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},PO=Object.prototype.hasOwnProperty,Gu=function(e,t,n){var i=e[t];PO.call(e,t)&&xt(i,n)&&(n!==void 0||t in e)||nl(e,t,n)},wi=function(e,t,n,i){var c=!n;n||(n={});for(var s=-1,f=t.length;++s<f;){var h=t[s],v=i?i(n[h],e[h],h,n,e):void 0;v===void 0&&(v=e[h]),c?nl(n,h,v):Gu(n,h,v)}return n},AO=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Sh=Math.max,jh=function(e,t,n){return t=Sh(t===void 0?e.length-1:t,0),function(){for(var i=arguments,c=-1,s=Sh(i.length-t,0),f=Array(s);++c<s;)f[c]=i[t+c];c=-1;for(var h=Array(t+1);++c<t;)h[c]=i[c];return h[t]=n(f),AO(e,this,h)}},TO=function(e){return function(){return e}},MO=Wu?function(e,t){return Wu(e,"toString",{configurable:!0,enumerable:!1,value:TO(t),writable:!0})}:tl,kO=Date.now,DO=function(e){var t=0,n=0;return function(){var i=kO(),c=16-(i-n);if(n=i,c>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ph=DO(MO),NO=function(e,t){return Ph(jh(e,t,tl),e+"")},CO=function(e,t,n){if(!Ht(n))return!1;var i=typeof t;return!!(i=="number"?Jt(n)&&On(t,n.length):i=="string"&&t in n)&&xt(n[t],e)},Ah=function(e){return NO(function(t,n){var i=-1,c=n.length,s=c>1?n[c-1]:void 0,f=c>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(c--,s):void 0,f&&CO(n[0],n[1],f)&&(s=c<3?void 0:s,c=1),t=Object(t);++i<c;){var h=n[i];h&&e(t,h,i,s)}return t})},RO=Object.prototype.hasOwnProperty,En=Ah(function(e,t){if(yi(t)||Jt(t))wi(t,_o(t),e);else for(var n in t)RO.call(t,n)&&Gu(e,n,t[n])}),IO=function(e,t,n,i){if(!Ht(e))return e;for(var c=-1,s=(t=Vo(t,e)).length,f=s-1,h=e;h!=null&&++c<s;){var v=ga(t[c]),_=n;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(c!=f){var E=h[v];(_=i?i(E,v,h):void 0)===void 0&&(_=Ht(E)?E:On(t[c+1])?[]:{})}Gu(h,v,_),h=h[v]}return e},LO=function(e,t,n){for(var i=-1,c=t.length,s={};++i<c;){var f=t[i],h=el(e,f);n(h,f)&&IO(s,Vo(f,e),h)}return s},BO=function(e,t){return LO(e,t,function(n,i){return xh(e,i)})},Th=gt?gt.isConcatSpreadable:void 0,zO=function(e){return yn(e)||Mr(e)||!!(Th&&e&&e[Th])},FO=function e(t,n,i,c,s){var f=-1,h=t.length;for(i||(i=zO),s||(s=[]);++f<h;){var v=t[f];n>0&&i(v)?n>1?e(v,n-1,i,c,s):Tr(s,v):c||(s[s.length]=v)}return s},$O=function(e){return e!=null&&e.length?FO(e,1):[]},Qt,Mh,kh,Dh,Nh,Ch,Rh,Ih,Lh,Bh,zh,Fh,$h,Wh,Gh,Hh,Uh,Xh,ba=function(e){return Ph(jh(e,void 0,$O),e+"")}(function(e,t){return e==null?{}:BO(e,t)});function vn(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function WO(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var Mt,Vh,Ot,on,at,Gt,GO={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,nodeSelectedOutline:!0,nodeTextEdit:!1,edgeTextEdit:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},rl=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],Kh=(Mh=hn((Qt=function(){function e(i){(function(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")})(this,e),vn(this,"isSilentMode",Mh,this),vn(this,"stopZoomGraph",kh,this),vn(this,"stopScrollGraph",Dh,this),vn(this,"stopMoveGraph",Nh,this),vn(this,"adjustEdge",Ch,this),vn(this,"adjustEdgeMiddle",Rh,this),vn(this,"adjustEdgeStartAndEnd",Ih,this),vn(this,"adjustNodePosition",Lh,this),vn(this,"hideAnchors",Bh,this),vn(this,"hoverOutline",zh,this),vn(this,"nodeSelectedOutline",Fh,this),vn(this,"edgeSelectedOutline",$h,this),vn(this,"nodeTextEdit",Wh,this),vn(this,"edgeTextEdit",Gh,this),vn(this,"nodeTextDraggable",Hh,this),vn(this,"edgeTextDraggable",Uh,this),vn(this,"autoExpand",Xh,this),Yh(this,"multipleSelectKey",""),Yh(this,"defaultConfig",{}),En(this,this.getConfigDetail(i))}var t,n;return t=e,(n=[{key:"updateEditConfig",value:function(i){var c=this.getConfigDetail(i);En(this,c)}},{key:"getConfigDetail",value:function(i){var c=i.isSilentMode,s=i.textEdit,f={};if(c===!1&&En(f,this.defaultConfig),c===!0&&c!==this.isSilentMode){var h=ba(GO,rl);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,hoverOutline:this.hoverOutline,nodeSelectedOutline:this.nodeSelectedOutline,edgeSelectedOutline:this.edgeSelectedOutline,nodeTextEdit:this.nodeTextEdit,edgeTextEdit:this.edgeTextEdit,nodeTextDraggable:this.nodeTextDraggable,edgeTextDraggable:this.edgeTextDraggable,autoExpand:this.autoExpand},En(f,h)}s===!1&&En(f,{nodeTextEdit:!1,edgeTextEdit:!1});var v=ba(i,rl);return En(f,v)}},{key:"getConfig",value:function(){return ba(this,rl)}}])&&WO(t.prototype,n),e}()).prototype,"isSilentMode",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kh=hn(Qt.prototype,"stopZoomGraph",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dh=hn(Qt.prototype,"stopScrollGraph",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Nh=hn(Qt.prototype,"stopMoveGraph",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ch=hn(Qt.prototype,"adjustEdge",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Rh=hn(Qt.prototype,"adjustEdgeMiddle",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ih=hn(Qt.prototype,"adjustEdgeStartAndEnd",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lh=hn(Qt.prototype,"adjustNodePosition",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Bh=hn(Qt.prototype,"hideAnchors",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zh=hn(Qt.prototype,"hoverOutline",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Fh=hn(Qt.prototype,"nodeSelectedOutline",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),$h=hn(Qt.prototype,"edgeSelectedOutline",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Wh=hn(Qt.prototype,"nodeTextEdit",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Gh=hn(Qt.prototype,"edgeTextEdit",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Hh=hn(Qt.prototype,"nodeTextDraggable",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Uh=hn(Qt.prototype,"edgeTextDraggable",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xh=hn(Qt.prototype,"autoExpand",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),hn(Qt.prototype,"updateEditConfig",[d.k],Object.getOwnPropertyDescriptor(Qt.prototype,"updateEditConfig"),Qt.prototype),Qt);o(63),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"}(Mt||(Mt={})),function(e){e.KEY="logic-flow",e.NODE_NAME="lf-node",e.EDGE_NAME="lf-edge"}(Vh||(Vh={})),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"}(Ot||(Ot={})),function(e){e.NODE="node",e.EDGE="edge",e.GRAPH="graph"}(on||(on={})),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_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.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"}(at||(at={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Gt||(Gt={}));var Un,en,qh,Zh,Jh,Qh,ey,ty,ny;function Hu(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return ry(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return ry(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  54. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ko(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function HO(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ol(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.INCREASE=1]="INCREASE"})(Un||(Un={}));var UO=(en=function(){function e(i){(function(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")})(this,e),ol(this,"MINI_SCALE_SIZE",.2),ol(this,"MAX_SCALE_SIZE",16),Ko(this,"SCALE_X",qh,this),Ko(this,"SKEW_Y",Zh,this),Ko(this,"SKEW_X",Jh,this),Ko(this,"SCALE_Y",Qh,this),Ko(this,"TRANSLATE_X",ey,this),Ko(this,"TRANSLATE_Y",ty,this),Ko(this,"ZOOM_SIZE",ny,this),ol(this,"eventCenter",void 0),this.eventCenter=i}var t,n;return t=e,n=[{key:"setZoomMiniSize",value:function(i){this.MINI_SCALE_SIZE=i}},{key:"setZoomMaxSize",value:function(i){this.MAX_SCALE_SIZE=i}},{key:"HtmlPointToCanvasPoint",value:function(i){var c=Hu(i,2),s=c[0],f=c[1];return[(s-this.TRANSLATE_X)/this.SCALE_X,(f-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(i){var c=Hu(i,2),s=c[0],f=c[1];return[s*this.SCALE_X+this.TRANSLATE_X,f*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(i,c,s){var f=Hu(i,2),h=f[0],v=f[1];return[h+c/this.SCALE_X,v+s/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(i,c){return[i/this.SCALE_X,c/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var i=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(i,")")}}},{key:"zoom",value:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],c=arguments.length>1?arguments[1]:void 0,s=this.SCALE_X,f=this.SCALE_Y;return i===!0?(s+=this.ZOOM_SIZE,f+=this.ZOOM_SIZE):i===!1?(s-=this.ZOOM_SIZE,f-=this.ZOOM_SIZE):typeof i=="number"&&(s=i,f=i),s<this.MINI_SCALE_SIZE||s>this.MAX_SCALE_SIZE||(c&&(this.TRANSLATE_X-=(s-this.SCALE_X)*c[0],this.TRANSLATE_Y-=(f-this.SCALE_Y)*c[1]),this.SCALE_X=s,this.SCALE_Y=f,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(i){this.eventCenter.emit(at.GRAPH_TRANSFORM,{type:i,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(i,c){this.TRANSLATE_X+=i,this.TRANSLATE_Y+=c,this.emitGraphTransform("translate")}},{key:"focusOn",value:function(i,c,s,f){var h=Hu(this.CanvasPointToHtmlPoint([i,c]),2),v=s/2-h[0],_=f/2-h[1];this.TRANSLATE_X+=v,this.TRANSLATE_Y+=_,this.emitGraphTransform("focusOn")}}],n&&HO(t.prototype,n),e}(),qh=yr(en.prototype,"SCALE_X",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Zh=yr(en.prototype,"SKEW_Y",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Jh=yr(en.prototype,"SKEW_X",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Qh=yr(en.prototype,"SCALE_Y",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),ey=yr(en.prototype,"TRANSLATE_X",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ty=yr(en.prototype,"TRANSLATE_Y",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ny=yr(en.prototype,"ZOOM_SIZE",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),yr(en.prototype,"zoom",[d.k],Object.getOwnPropertyDescriptor(en.prototype,"zoom"),en.prototype),yr(en.prototype,"resetZoom",[d.k],Object.getOwnPropertyDescriptor(en.prototype,"resetZoom"),en.prototype),yr(en.prototype,"translate",[d.k],Object.getOwnPropertyDescriptor(en.prototype,"translate"),en.prototype),yr(en.prototype,"focusOn",[d.k],Object.getOwnPropertyDescriptor(en.prototype,"focusOn"),en.prototype),en),XO=function(e,t){for(var n=-1,i=e==null?0:e.length;++n<i&&t(e[n],n,e)!==!1;);return e},YO=function(e,t){return e&&wi(t,_o(t),e)},VO=function(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t},KO=Object.prototype.hasOwnProperty,qO=function(e){if(!Ht(e))return VO(e);var t=yi(e),n=[];for(var i in e)(i!="constructor"||!t&&KO.call(e,i))&&n.push(i);return n},ma=function(e){return Jt(e)?er(e,!0):qO(e)},ZO=function(e,t){return e&&wi(t,ma(t),e)},oy=o(106),iy=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},JO=function(e,t){return wi(e,Jn(e),t)},il=tr(Object.getPrototypeOf,Object),ay=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Tr(t,Jn(e)),e=il(e);return t}:Au,QO=function(e,t){return wi(e,ay(e),t)},ew=function(e){return ju(e,ma,ay)},tw=Object.prototype.hasOwnProperty,nw=function(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&tw.call(e,"index")&&(n.index=e.index,n.input=e.input),n},al=function(e){var t=new e.constructor(e.byteLength);return new Go(t).set(new Go(e)),t},rw=function(e,t){var n=t?al(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},ow=/\w*$/,iw=function(e){var t=new e.constructor(e.source,ow.exec(e));return t.lastIndex=e.lastIndex,t},uy=gt?gt.prototype:void 0,sy=uy?uy.valueOf:void 0,aw=function(e){return sy?Object(sy.call(e)):{}},cy=function(e,t){var n=t?al(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},uw=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return al(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return rw(e,n);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 cy(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return iw(e);case"[object Symbol]":return aw(e)}},ly=Object.create,sw=function(){function e(){}return function(t){if(!Ht(t))return{};if(ly)return ly(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),fy=function(e){return typeof e.constructor!="function"||yi(e)?{}:sw(il(e))},cw=function(e){return Qn(e)&&b(e)=="[object Map]"},py=dn.a&&dn.a.isMap,lw=py?qr(py):cw,fw=function(e){return Qn(e)&&b(e)=="[object Set]"},dy=dn.a&&dn.a.isSet,pw=dy?qr(dy):fw,hy="[object Arguments]",yy="[object Function]",dw="[object Object]",$t={};$t[hy]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t["[object Object]"]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[yy]=$t["[object WeakMap]"]=!1;var hw=function e(t,n,i,c,s,f){var h,v=1&n,_=2&n,E=4&n;if(i&&(h=s?i(t,c,s,f):i(t)),h!==void 0)return h;if(!Ht(t))return t;var M=yn(t);if(M){if(h=nw(t),!v)return iy(t,h)}else{var N=b(t),$=N==yy||N=="[object GeneratorFunction]";if(Object(Uo.a)(t))return Object(oy.a)(t,v);if(N==dw||N==hy||$&&!s){if(h=_||$?{}:fy(t),!v)return _?QO(t,ZO(h,t)):JO(t,YO(h,t))}else{if(!$t[N])return s?t:{};h=uw(t,N,v)}}f||(f=new Ar);var Y=f.get(t);if(Y)return Y;f.set(t,h),pw(t)?t.forEach(function(se){h.add(e(se,n,i,se,t,f))}):lw(t)&&t.forEach(function(se,ae){h.set(ae,e(se,n,i,ae,t,f))});var Q=M?void 0:(E?_?ew:vi:_?ma:_o)(t);return XO(Q||t,function(se,ae){Q&&(se=t[ae=se]),Gu(h,ae,e(se,n,i,ae,t,f))}),h},Xt=function(e){return hw(e,5)},ul=function(e,t,n){(n!==void 0&&!xt(e[t],n)||n===void 0&&!(t in e))&&nl(e,t,n)},yw=function(e){return Qn(e)&&Jt(e)},vw=Function.prototype,gw=Object.prototype,vy=vw.toString,bw=gw.hasOwnProperty,mw=vy.call(Object),_w=function(e){if(!Qn(e)||Dt(e)!="[object Object]")return!1;var t=il(e);if(t===null)return!0;var n=bw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vy.call(n)==mw},sl=function(e,t){if((t!=="constructor"||typeof e[t]!="function")&&t!="__proto__")return e[t]},Ow=function(e){return wi(e,ma(e))},ww=function(e,t,n,i,c,s,f){var h=sl(e,n),v=sl(t,n),_=f.get(v);if(_)ul(e,n,_);else{var E=s?s(h,v,n+"",e,t,f):void 0,M=E===void 0;if(M){var N=yn(v),$=!N&&Object(Uo.a)(v),Y=!N&&!$&&fa(v);E=v,N||$||Y?yn(h)?E=h:yw(h)?E=iy(h):$?(M=!1,E=Object(oy.a)(v,!0)):Y?(M=!1,E=cy(v,!0)):E=[]:_w(v)||Mr(v)?(E=h,Mr(h)?E=Ow(h):Ht(h)&&!Er(h)||(E=fy(v))):M=!1}M&&(f.set(v,E),c(E,v,i,s,f),f.delete(v)),ul(e,n,E)}},xw=function e(t,n,i,c,s){t!==n&&Eh(n,function(f,h){if(s||(s=new Ar),Ht(f))ww(t,n,h,i,e,c,s);else{var v=c?c(sl(t,h),f,h+"",t,n,s):void 0;v===void 0&&(v=f),ul(t,h,v)}},ma)},gy=Ah(function(e,t,n){xw(e,t,n)}),Ew={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"}},by=function(e){var t=Xt(Ew);return e&&(t=gy(t,e)),t};o(77),o(158);function Sw(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var jw=function(){function e(){var i,c,s;(function(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")})(this,e),s={},(c="_events")in(i=this)?Object.defineProperty(i,c,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[c]=s}var t,n;return t=e,(n=[{key:"on",value:function(i,c,s){var f=this;return i==null||i.split(",").forEach(function(h){h=h.trim(),f._events[h]||(f._events[h]=[]),f._events[h].push({callback:c,once:!!s})}),this}},{key:"once",value:function(i,c){var s=this;i==null||i.split(",").forEach(function(f){return f=f.trim(),s.on(f,c,!0)})}},{key:"emit",value:function(i,c){var s=this;i==null||i.split(",").forEach(function(f){var h=s._events[f]||[],v=s._events["*"]||[],_=function(E){for(var M=E.length,N=0;N<M;N++)if(E[N]){var $=E[N],Y=$.callback;$.once&&(E.splice(N,1),E.length===0&&delete s._events[f],M--,N--),Y.apply(s,[c])}};_(h),_(v)})}},{key:"off",value:function(i,c){var s=this;return i||(this._events={}),i.split(",").forEach(function(f){if(c){for(var h=s._events[f]||[],v=h.length,_=0;_<v;_++)h[_].callback===c&&(h.splice(_,1),v--,_--);h.length===0&&delete s._events[f]}else delete s._events[f]}),this}},{key:"getEvents",value:function(){return this._events}}])&&Sw(t.prototype,n),e}();function wo(e,t){return t*Math.round(e/t)||e}function my(e,t){return e%t}function cl(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return _y(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _y(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  55. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _y(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ll,fl=function(e,t,n){var i=cl(e,2),c=i[0],s=i[1],f=cl(t,2),h=f[0],v=f[1],_=cl(n,2),E=_[0],M=_[1];return c>h&&c<E&&s>v&&s<M},Oy=function(e,t){var n=!1;switch(t.multipleSelectKey){case"meta":n=e.metaKey;break;case"alt":n=e.altKey;break;case"shift":n=e.shiftKey;break;case"ctrl":n=e.ctrlKey;break;default:n=!1}return n},Pw=(o(78),o(161),o(125),o(79),o(30),o(12),o(13),o(14),o(47),new Uint8Array(16));function Aw(){if(!ll&&!(ll=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&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 ll(Pw)}for(var Tw=/^(?:[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,Mw=function(e){return typeof e=="string"&&Tw.test(e)},gn=[],pl=0;pl<256;++pl)gn.push((pl+256).toString(16).substr(1));var kw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(gn[e[t+0]]+gn[e[t+1]]+gn[e[t+2]]+gn[e[t+3]]+"-"+gn[e[t+4]]+gn[e[t+5]]+"-"+gn[e[t+6]]+gn[e[t+7]]+"-"+gn[e[t+8]]+gn[e[t+9]]+"-"+gn[e[t+10]]+gn[e[t+11]]+gn[e[t+12]]+gn[e[t+13]]+gn[e[t+14]]+gn[e[t+15]]).toLowerCase();if(!Mw(n))throw TypeError("Stringified UUID is invalid");return n},dl=function(e,t,n){var i=(e=e||{}).random||(e.rng||Aw)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var c=0;c<16;++c)t[n+c]=i[c];return t}return kw(i)},xo=function(){return dl()},Dw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.nodes.reduce(function(i,c){return i[c.id]=t+dl(),c.id=i[c.id],i},{});return e.edges.forEach(function(i){i.id=t+dl(),i.sourceNodeId=n[i.sourceNodeId],i.targetNodeId=n[i.targetNodeId]}),e},_a=(o(104),o(162),function(e,t,n){var i=e.x,c=e.y;return(i-t.x)*(i-n.x)<=0&&(c-t.y)*(c-n.y)<=0});function hl(e){return hl=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},hl(e)}function wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function xy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(n),!0).forEach(function(i){Nw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wy(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Nw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ee,Ey,Sy,jy,Py,Ay,Ty,My,ky,Dy,Ny,Cy,Ry,Iy,Ly,By,zy,Fy,$y,Wy,Gy,yl=function(e){return e.anchors},Uu=function(e,t){for(var n,i=t.nodes,c=i.length-1;c>=0;c--){var s=i[c];if(Rw(e,s)){var f=s.getTargetAnchor(e);if(f){var h={node:s,anchorIndex:f.index,anchor:f.anchor};n&&!Cw(s,n.node,t)||(n=h)}}}return n},Cw=function(e,t,n){return e.zIndex>t.zIndex||n.nodesMap[e.id].index>n.nodesMap[t.id].index},vr=function(e,t,n,i){return Math.hypot(e-n,t-i)},Eo=function(e,t){var n=!1,i=Xn(t);return e.x>=i.minX-0&&e.x<=i.maxX+0&&e.y>=i.minY-0&&e.y<=i.maxY+0&&(n=!0),n},Rw=function(e,t){var n=!1,i=Xn(t);return e.x>=i.minX-5&&e.x<=i.maxX+5&&e.y>=i.minY-5&&e.y<=i.maxY+5&&(n=!0),n},Xn=function(e){var t=e.x,n=e.y,i=e.width,c=e.height;return{minX:t-i/2,minY:n-c/2,maxX:t+i/2,maxY:n+c/2,x:t,y:n,width:i,height:c,centerX:t,centerY:n}},Hy=function(e,t,n){var i,c=function(f){var h=f,v=h.x,_=h.y,E=h.width,M=h.height,N=h.radius;return[{x:v-E/2+N,y:_-M/2+N,r:N},{x:v+E/2-N,y:_-M/2+N,r:N},{x:v-E/2+N,y:_+M/2-N,r:N},{x:v+E/2-N,y:_+M/2-N,r:N}]}(n),s=Number.MAX_SAFE_INTEGER;return c.forEach(function(f){var h=vr(e.x,e.y,f.x,f.y);h<s&&(s=h,i=f)}),vl(e,t,i)},vl=function(e,t,n){var i,c=n,s=c.x,f=c.y,h=c.r;if(t===Gt.HORIZONTAL){var v=s-Math.sqrt(h*h-(e.y-f)*(e.y-f)),_=s+Math.sqrt(h*h-(e.y-f)*(e.y-f));i={x:Math.abs(v-e.x)<Math.abs(_-e.x)?v:_,y:e.y}}else if(t===Gt.VERTICAL){var E=f-Math.sqrt(h*h-(e.x-s)*(e.x-s)),M=f+Math.sqrt(h*h-(e.x-s)*(e.x-s)),N=Math.abs(E-e.y)<Math.abs(M-e.y)?E:M;i={x:e.x,y:N}}return i},Uy=function(e,t){var n=t,i=!1,c=n.x-n.width/2+n.radius,s=n.x+n.width/2-n.radius,f=n.y-n.height/2+n.radius,h=n.y+n.height/2-n.radius,v=n.x,_=n.y,E=n.width,M=n.height;return e.y===_+M/2||e.y===_-M/2?i=e.x>c&&e.x<s:e.x!==v+E/2&&e.x!==v-E/2||(i=e.y>f&&e.y<h),i},Xy=function(e,t,n){var i,c=n,s=c.x,f=c.y,h=c.rx,v=c.ry;if(t===Gt.HORIZONTAL){var _=s-Math.sqrt(h*h-(e.y-f)*(e.y-f)*h*h/(v*v)),E=s+Math.sqrt(h*h-(e.y-f)*(e.y-f)*h*h/(v*v));i={x:Math.abs(_-e.x)<Math.abs(E-e.x)?_:E,y:e.y}}else if(t===Gt.VERTICAL){var M=f-Math.sqrt(v*v-(e.x-s)*(e.x-s)*v*v/(h*h)),N=f+Math.sqrt(v*v-(e.x-s)*(e.x-s)*v*v/(h*h)),$=Math.abs(M-e.y)<Math.abs(N-e.y)?M:N;i={x:e.x,y:$}}return i},Yy=function(e,t,n){for(var i,c=n.pointsPosition,s=Number.MAX_SAFE_INTEGER,f=[],h=0;h<c.length;h++)f.push({start:c[h],end:c[(h+1)%c.length]});return f.forEach(function(v){var _=v.start,E=v.end,M=_,N=E;_.x>E.x&&(M=E,N=_);var $={x:e.x,y:e.y};if(M.x===N.x&&t===Gt.HORIZONTAL&&($={x:M.x,y:e.y}),M.y===N.y&&t===Gt.VERTICAL&&($={x:e.x,y:M.y}),M.x!==N.x&&M.y!==N.y){var Y=(N.y-M.y)/(N.x-M.x),Q=(M.x*N.y-N.x*M.y)/(M.x-N.x);t===Gt.HORIZONTAL?$={x:(e.y-Q)/Y,y:e.y}:t===Gt.VERTICAL&&($={x:e.x,y:Y*e.x+Q})}if(_a($,_,E)){var se=vr($.x,$.y,e.x,e.y);se<s&&(s=se,i=$)}}),i},Vy=function(e,t,n,i){var c=e.x,s=e.y;return t.x>e.x?c=e.x+n/2:t.x<e.x&&(c=e.x-n/2),t.y>e.y?s=e.y+i/2:t.y<e.y&&(s=e.y-i/2),{x:c,y:s}},Ky=function(e){var t=e.rows,n=e.style,i=e.rowsLength,c=e.className,s=document.createElement("div");s.style.fontSize=n.fontSize,s.style.width=n.width,s.className=c,s.style.lineHeight=n.lineHeight,s.style.padding=n.padding,n.fontFamily&&(s.style.fontFamily=n.fontFamily),i>1?t.forEach(function(h){var v=document.createElement("div");v.textContent=h,s.appendChild(v)}):s.textContent=t,document.body.appendChild(s);var f=s.clientHeight;return document.body.removeChild(s),f},gl=function(e){var t=e.rows,n=e.rowsLength,i=e.fontSize,c=0;return t&&t.forEach(function(s){var f=bv(s);c=f>c?f:c}),{width:Math.ceil(c/2)*i+i/4,height:n*(i+2)+i/4}},Oa=function(e){return hl(e)!=="object"?{isAllPass:!!e,msg:e?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:e},bn=function(e){try{return JSON.parse(JSON.stringify(e))}catch{return e}},Iw=1e3,Lw=999,bl=function(){return++Iw};function qy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qy(Object(n),!0).forEach(function(i){nr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qy(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function an(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Bw(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var ml=(Ee=function(){function e(i,c){(function(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")})(this,e),nr(this,"id",""),an(this,"type",Ey,this),an(this,"sourceNodeId",Sy,this),an(this,"targetNodeId",jy,this),an(this,"startPoint",Py,this),an(this,"endPoint",Ay,this),an(this,"text",Ty,this),an(this,"properties",My,this),an(this,"points",ky,this),an(this,"pointsList",Dy,this),an(this,"isSelected",Ny,this),an(this,"isHovered",Cy,this),an(this,"isHitable",Ry,this),an(this,"draggable",Iy,this),an(this,"visible",Ly,this),nr(this,"virtual",!1),an(this,"isAnimation",By,this),an(this,"isShowAdjustPoint",zy,this),nr(this,"graphModel",void 0),an(this,"zIndex",Fy,this),nr(this,"BaseType",on.EDGE),nr(this,"modelType",Ot.EDGE),an(this,"state",$y,this),nr(this,"additionStateData",void 0),nr(this,"sourceAnchorId",""),nr(this,"targetAnchorId",""),nr(this,"menu",void 0),nr(this,"customTextPosition",!1),an(this,"style",Wy,this),an(this,"arrowConfig",Gy,this),this.graphModel=c,this.initEdgeData(i),this.setAttributes()}var t,n;return t=e,n=[{key:"initEdgeData",value:function(i){if(i.properties||(i.properties={}),!i.id){var c=this.graphModel.idGenerator,s=c&&c(i.type),f=this.createId();i.id=f||s||xo()}this.arrowConfig.markerEnd="url(#marker-end-".concat(i.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(i.id,")");var h=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=h,En(this,ix(i)),this.graphModel.overlapMode===Un.INCREASE&&(this.zIndex=i.zIndex||bl()),this.setAnchors(),this.initPoints(),this.formatText(i)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Rn(Rn({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return Rn({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var i=this.graphModel.theme.edgeText;return Xt(i)}},{key:"getEdgeAnimationStyle",value:function(){var i=this.graphModel.theme.edgeAnimation;return Xt(i)}},{key:"getArrowStyle",value:function(){var i=this.getEdgeStyle(),c=this.getEdgeAnimationStyle(),s=this.graphModel.theme.arrow,f=this.isAnimation?c.stroke:i.stroke;return Rn(Rn({},i),{},{fill:f,stroke:f},s)}},{key:"getOutlineStyle",value:function(){var i=this.graphModel.theme.outline;return Xt(i)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var i,c;return(i=this.graphModel)===null||i===void 0||(c=i.nodesMap[this.sourceNodeId])===null||c===void 0?void 0:c.model}},{key:"targetNode",get:function(){var i,c;return(i=this.graphModel)===null||i===void 0||(c=i.nodesMap[this.targetNodeId])===null||c===void 0?void 0:c.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(i,c){var s,f;return yl(i).forEach(function(h){var v=wv(h,c);(f===void 0||v<f)&&(f=v,s=h)}),s}},{key:"getEndAnchor",value:function(i){var c,s,f=this;return yl(i).forEach(function(h){var v=wv(h,f.startPoint);(s===void 0||v<s)&&(s=v,c=h)}),c}},{key:"getProperties",value:function(){return Object(d.I)(this.properties)}},{key:"getData",value:function(){var i=this.text,c=i.x,s=i.y,f=i.value,h={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(d.I)(this.properties)};return f&&(h.text={x:c,y:s,value:f}),this.graphModel.overlapMode===Un.INCREASE&&(h.zIndex=this.zIndex),h}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(i,c){this.properties[i]=bn(c),this.setAttributes()}},{key:"deleteProperty",value:function(i){delete this.properties[i],this.setAttributes()}},{key:"setProperties",value:function(i){this.properties=Rn(Rn({},Object(d.I)(this.properties)),bn(i)),this.setAttributes()}},{key:"changeEdgeId",value:function(i){var c=this.arrowConfig,s=c.markerEnd,f=c.markerStart;f&&f==="url(#marker-start-".concat(this.id,")")&&(this.arrowConfig.markerStart="url(#marker-start-".concat(i,")")),s&&s==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(i,")")),this.id=i}},{key:"setStyle",value:function(i,c){this.style=Rn(Rn({},this.style),{},nr({},i,bn(c)))}},{key:"setStyles",value:function(i){this.style=Rn(Rn({},this.style),bn(i))}},{key:"updateStyles",value:function(i){this.style=Rn({},bn(i))}},{key:"formatText",value:function(i){var c=this.textPosition,s=c.x,f=c.y;i.text&&typeof i.text!="string"?Object.prototype.toString.call(i.text)==="[object Object]"&&(this.text={x:i.text.x||s,y:i.text.y||f,value:i.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:i.text||"",x:s,y:f,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var i=this.textPosition,c=i.x,s=i.y;this.text.x=c,this.text.y=s}},{key:"moveText",value:function(i,c){if(this.text){var s=this.text,f=s.x,h=s.y,v=s.value,_=s.draggable,E=s.editable;this.text={value:v,draggable:_,x:f+i,y:h+c,editable:E}}}},{key:"setText",value:function(i){i&&En(this.text,i)}},{key:"updateText",value:function(i){this.text=Rn(Rn({},Object(d.I)(this.text)),{},{value:i})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var i=this.getBeginAnchor(this.sourceNode,this.targetNode);this.startPoint||(this.startPoint={x:i.x,y:i.y}),this.sourceAnchorId||(this.sourceAnchorId=i.id)}if(!this.targetAnchorId||!this.endPoint){var c=this.getEndAnchor(this.targetNode);this.endPoint||(this.endPoint={x:c.x,y:c.y}),this.targetAnchorId||(this.targetAnchorId=c.id)}}},{key:"setSelected",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=i}},{key:"setHovered",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=i}},{key:"setHitable",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=i}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(i,c){this.state=i,this.additionStateData=c}},{key:"updateStartPoint",value:function(i){this.startPoint=i}},{key:"moveStartPoint",value:function(i,c){this.startPoint.x+=i,this.startPoint.y+=c}},{key:"updateEndPoint",value:function(i){this.endPoint=i}},{key:"moveEndPoint",value:function(i,c){this.endPoint.x+=i,this.endPoint.y+=c}},{key:"setZIndex",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=i}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(i){En(this,i)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(i){var c=i.startPoint,s=i.endPoint;this.updateStartPoint({x:c.x,y:c.y}),this.updateEndPoint({x:s.x,y:s.y})}}],n&&Bw(t.prototype,n),e}(),Ey=rt(Ee.prototype,"type",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Sy=rt(Ee.prototype,"sourceNodeId",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),jy=rt(Ee.prototype,"targetNodeId",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Py=rt(Ee.prototype,"startPoint",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ay=rt(Ee.prototype,"endPoint",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ty=rt(Ee.prototype,"text",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),My=rt(Ee.prototype,"properties",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ky=rt(Ee.prototype,"points",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Dy=rt(Ee.prototype,"pointsList",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ny=rt(Ee.prototype,"isSelected",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cy=rt(Ee.prototype,"isHovered",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ry=rt(Ee.prototype,"isHitable",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Iy=rt(Ee.prototype,"draggable",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ly=rt(Ee.prototype,"visible",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),By=rt(Ee.prototype,"isAnimation",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zy=rt(Ee.prototype,"isShowAdjustPoint",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fy=rt(Ee.prototype,"zIndex",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$y=rt(Ee.prototype,"state",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Wy=rt(Ee.prototype,"style",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Gy=rt(Ee.prototype,"arrowConfig",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),rt(Ee.prototype,"sourceNode",[d.m],Object.getOwnPropertyDescriptor(Ee.prototype,"sourceNode"),Ee.prototype),rt(Ee.prototype,"targetNode",[d.m],Object.getOwnPropertyDescriptor(Ee.prototype,"targetNode"),Ee.prototype),rt(Ee.prototype,"textPosition",[d.m],Object.getOwnPropertyDescriptor(Ee.prototype,"textPosition"),Ee.prototype),rt(Ee.prototype,"setProperty",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setProperty"),Ee.prototype),rt(Ee.prototype,"deleteProperty",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"deleteProperty"),Ee.prototype),rt(Ee.prototype,"setProperties",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setProperties"),Ee.prototype),rt(Ee.prototype,"changeEdgeId",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"changeEdgeId"),Ee.prototype),rt(Ee.prototype,"setStyle",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setStyle"),Ee.prototype),rt(Ee.prototype,"setStyles",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setStyles"),Ee.prototype),rt(Ee.prototype,"updateStyles",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"updateStyles"),Ee.prototype),rt(Ee.prototype,"formatText",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"formatText"),Ee.prototype),rt(Ee.prototype,"resetTextPosition",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"resetTextPosition"),Ee.prototype),rt(Ee.prototype,"moveText",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"moveText"),Ee.prototype),rt(Ee.prototype,"setText",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setText"),Ee.prototype),rt(Ee.prototype,"updateText",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"updateText"),Ee.prototype),rt(Ee.prototype,"setAnchors",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setAnchors"),Ee.prototype),rt(Ee.prototype,"setSelected",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setSelected"),Ee.prototype),rt(Ee.prototype,"setHovered",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setHovered"),Ee.prototype),rt(Ee.prototype,"setHitable",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setHitable"),Ee.prototype),rt(Ee.prototype,"openEdgeAnimation",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"openEdgeAnimation"),Ee.prototype),rt(Ee.prototype,"closeEdgeAnimation",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"closeEdgeAnimation"),Ee.prototype),rt(Ee.prototype,"setElementState",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setElementState"),Ee.prototype),rt(Ee.prototype,"updateStartPoint",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"updateStartPoint"),Ee.prototype),rt(Ee.prototype,"moveStartPoint",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"moveStartPoint"),Ee.prototype),rt(Ee.prototype,"updateEndPoint",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"updateEndPoint"),Ee.prototype),rt(Ee.prototype,"moveEndPoint",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"moveEndPoint"),Ee.prototype),rt(Ee.prototype,"setZIndex",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"setZIndex"),Ee.prototype),rt(Ee.prototype,"initPoints",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"initPoints"),Ee.prototype),rt(Ee.prototype,"updateAttributes",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"updateAttributes"),Ee.prototype),rt(Ee.prototype,"getAdjustStart",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"getAdjustStart"),Ee.prototype),rt(Ee.prototype,"getAdjustEnd",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"getAdjustEnd"),Ee.prototype),rt(Ee.prototype,"updateAfterAdjustStartAndEnd",[d.k],Object.getOwnPropertyDescriptor(Ee.prototype,"updateAfterAdjustStartAndEnd"),Ee.prototype),Ee),_l=ml;function Ol(e){return Ol=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},Ol(e)}function Zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Jy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zy(Object(n),!0).forEach(function(i){ev(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zy(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function zw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fw(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wl(){return wl=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=$w(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},wl.apply(this,arguments)}function $w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=xi(e))!==null;);return e}function xl(e,t){return xl=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xl(e,t)}function Ww(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=xi(e);if(t){var c=xi(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Gw(this,n)}}function Gw(e,t){if(t&&(Ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qy(e)}function Qy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xi(e)}function ev(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt,tv,El=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&xl(s,f)})(c,e);var t,n,i=Ww(c);function c(){var s;zw(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return ev(Qy(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.LINE_EDGE),s}return t=c,(n=[{key:"getEdgeStyle",value:function(){var s=this.graphModel.theme.line;return Jy(Jy({},wl(xi(c.prototype),"getEdgeStyle",this).call(this)),Xt(s))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&Fw(t.prototype,n),c}(_l);function Sl(e){return Sl=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},Sl(e)}function Hw(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return nv(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return nv(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  56. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function ov(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rv(Object(n),!0).forEach(function(i){Pl(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rv(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Uw(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Xw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yw(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wa(){return wa=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=Vw(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},wa.apply(this,arguments)}function Vw(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=So(e))!==null;);return e}function jl(e,t){return jl=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},jl(e,t)}function Kw(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=So(e);if(t){var c=So(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return qw(this,n)}}function qw(e,t){if(t&&(Sl(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 So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},So(e)}function Pl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var Al=(pt=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&jl(s,f)})(c,e);var t,n,i=Kw(c);function c(){var s;Xw(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return Pl(xa(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.POLYLINE_EDGE),Pl(xa(s),"draggingPointList",void 0),Uw(xa(s),"dbClickPosition",tv,xa(s)),s}return t=c,(n=[{key:"initEdgeData",value:function(s){this.offset=30,wa(So(c.prototype),"initEdgeData",this).call(this,s)}},{key:"getEdgeStyle",value:function(){var s=this.graphModel.theme.polyline;return ov(ov({},wa(So(c.prototype),"getEdgeStyle",this).call(this)),Xt(s))}},{key:"getTextPosition",value:function(){var s,f=(s=this.text)===null||s===void 0?void 0:s.value;if(this.dbClickPosition&&!f){var h=this.dbClickPosition;return{x:h.x,y:h.y}}var v=qo(this.points),_=Hw(rx(v),2),E=_[0],M=_[1];return{x:(E.x+M.x)/2,y:(E.y+M.y)/2}}},{key:"getAfterAnchor",value:function(s,f,h){var v,_;return h.forEach(function(E){var M;s===Gt.HORIZONTAL?M=Math.abs(f.y-E.y):s===Gt.VERTICAL&&(M=Math.abs(f.x-E.x)),(!_||_>M)&&(_=M,v=E)}),v}},{key:"getCrossPoint",value:function(s,f,h){var v;return s===Gt.HORIZONTAL?v={x:h.x,y:f.y}:s===Gt.VERTICAL&&(v={x:f.x,y:h.y}),v}},{key:"removeCrossPoints",value:function(s,f,h){var v=h.map(function(ae){return ae});if(s===1){var _=v[s],E=v[f],M=v[s-1];if(hv(M,_,this.sourceNode)){if(yv(_,E,this.sourceNode)){var N=vv(_,E,this.sourceNode);N&&(v[s]=N,v.splice(s-1,1),s--,f--)}}else this.sourceNode.anchors.forEach(function(ae){(ae.x===M.x&&ae.x===_.x||ae.y===M.y&&ae.y===_.y)&&vr(ae.x,ae.y,_.x,_.y)<vr(M.x,M.y,_.x,_.y)&&(v[s-1]=ae)})}if(f===h.length-2){var $=v[s],Y=v[f],Q=v[f+1];if(hv(Y,Q,this.targetNode)){if(yv($,Y,this.targetNode)){var se=vv($,Y,this.targetNode);se&&(v[f]=se,v.splice(f+1,1))}}else this.targetNode.anchors.forEach(function(ae){(ae.x===Q.x&&ae.x===Y.x||ae.y===Q.y&&ae.y===Y.y)&&vr(ae.x,ae.y,Y.x,Y.y)<vr(Q.x,Q.y,Y.x,Y.y)&&(v[f+1]=ae)})}return v}},{key:"getDraggingPoints",value:function(s,f,h,v,_){var E=_.map(function($){return $}),M=this.getAfterAnchor(s,h,v),N=this.getCrossPoint(s,h,M);return f==="start"?(E.unshift(N),E.unshift(M)):(E.push(N),E.push(M)),E}},{key:"updateCrossPoints",value:function(s){var f=s.map(function(we){return we}),h=s[0],v=s[1],_=s[f.length-2],E=s[f.length-1],M=this.sourceNode,N=this.targetNode,$=M.modelType,Y=N.modelType,Q=Ju(h,v),se=f[0];switch($){case Ot.RECT_NODE:M.radius!==0&&(Uy(h,M)||(se=Hy(h,Q,M)));break;case Ot.CIRCLE_NODE:se=vl(h,Q,M);break;case Ot.ELLIPSE_NODE:se=Xy(h,Q,M);break;case Ot.DIAMOND_NODE:case Ot.POLYGON_NODE:se=Yy(h,Q,M)}f[0]=se;var ae=Ju(_,E),de=f[f.length-1];switch(Y){case Ot.RECT_NODE:N.radius!==0&&(Uy(E,N)||(de=Hy(E,ae,N)));break;case Ot.CIRCLE_NODE:de=vl(E,ae,N);break;case Ot.ELLIPSE_NODE:de=Xy(E,ae,N);break;case Ot.DIAMOND_NODE:case Ot.POLYGON_NODE:de=Yy(E,ae,N)}return f[f.length-1]=de,f}},{key:"getData",value:function(){var s=wa(So(c.prototype),"getData",this).call(this),f=this.pointsList.map(function(h){return{x:h.x,y:h.y}});return Object.assign({},s,{pointsList:f})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(s){return"".concat(s.x,",").concat(s.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var s=dv({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=s,this.points=s.map(function(f){return"".concat(f.x,",").concat(f.y)}).join(" ")}},{key:"updateStartPoint",value:function(s){this.startPoint=s,this.updatePoints()}},{key:"moveStartPoint",value:function(s,f){this.startPoint.x+=s,this.startPoint.y+=f,this.updatePoints()}},{key:"updateEndPoint",value:function(s){this.endPoint=s,this.updatePoints()}},{key:"moveEndPoint",value:function(s,f){this.endPoint.x+=s,this.endPoint.y+=f,this.updatePoints()}},{key:"dragAppendStart",value:function(){this.draggingPointList=this.pointsList.map(function(s){return s})}},{key:"dragAppendSimple",value:function(s,f){this.isDragging=!0;var h=s.start,v=s.end,_=s.startIndex,E=s.endIndex,M=s.direction,N=this.pointsList,$=N;return M===Gt.HORIZONTAL?(N[_]={x:h.x,y:h.y+f.y},N[E]={x:v.x,y:v.y+f.y},$=this.pointsList.map(function(Y){return Y})):M===Gt.VERTICAL&&(N[_]={x:h.x+f.x,y:h.y},N[E]={x:v.x+f.x,y:v.y},$=this.pointsList.map(function(Y){return Y})),this.updatePointsAfterDrag($),this.draggingPointList=$,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},N[_]),end:Object.assign({},N[E]),startIndex:_,endIndex:E,direction:M}}},{key:"dragAppend",value:function(s,f){this.isDragging=!0;var h=s.start,v=s.end,_=s.startIndex,E=s.endIndex,M=s.direction,N=this.pointsList;if(M===Gt.HORIZONTAL){N[_]={x:h.x,y:h.y+f.y},N[E]={x:v.x,y:v.y+f.y};var $=this.pointsList.map(function(De){return De});if(_!==0&&E!==this.pointsList.length-1&&($=this.removeCrossPoints(_,E,$)),_===0){var Y={x:h.x,y:h.y+f.y};if(!Eo(Y,this.sourceNode)){var Q=this.sourceNode.anchors;$=this.getDraggingPoints(M,"start",Y,Q,$)}}if(E===this.pointsList.length-1){var se={x:v.x,y:v.y+f.y};if(!Eo(se,this.targetNode)){var ae=this.targetNode.anchors;$=this.getDraggingPoints(M,"end",se,ae,$)}}this.updatePointsAfterDrag($),this.draggingPointList=$}else if(M===Gt.VERTICAL){N[_]={x:h.x+f.x,y:h.y},N[E]={x:v.x+f.x,y:v.y};var de=this.pointsList.map(function(De){return De});if(_!==0&&E!==this.pointsList.length-1&&(de=this.removeCrossPoints(_,E,de)),_===0){var we={x:h.x+f.x,y:h.y};if(!Eo(we,this.sourceNode)){var ke=this.sourceNode.anchors;de=this.getDraggingPoints(M,"start",we,ke,de)}}if(E===this.pointsList.length-1){var Pe={x:v.x+f.x,y:v.y};if(!Eo(Pe,this.targetNode)){var Xe=this.targetNode.anchors;de=this.getDraggingPoints(M,"end",Pe,Xe,de)}}this.updatePointsAfterDrag(de),this.draggingPointList=de}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},N[_]),end:Object.assign({},N[E]),startIndex:_,endIndex:E,direction:M}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var s=pv(qo(this.points));this.pointsList=s.map(function(v){return v}),this.draggingPointList=[];var f=s[0];this.startPoint=Object.assign({},f);var h=s[s.length-1];this.endPoint=Object.assign({},h)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(s){var f=this.updateCrossPoints(s);this.points=f.map(function(h){return"".concat(h.x,",").concat(h.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var s=this.pointsList;return s[s.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(s){var f=s.startPoint,h=s.endPoint,v=s.sourceNode,_=s.targetNode,E=dv({x:f.x,y:f.y},{x:h.x,y:h.y},v,_,this.offset||0);this.pointsList=E,this.initPoints()}}])&&Yw(t.prototype,n),c}(_l),tv=Sn(pt.prototype,"dbClickPosition",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sn(pt.prototype,"initPoints",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"initPoints"),pt.prototype),Sn(pt.prototype,"updatePoints",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"updatePoints"),pt.prototype),Sn(pt.prototype,"updateStartPoint",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"updateStartPoint"),pt.prototype),Sn(pt.prototype,"moveStartPoint",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"moveStartPoint"),pt.prototype),Sn(pt.prototype,"updateEndPoint",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"updateEndPoint"),pt.prototype),Sn(pt.prototype,"moveEndPoint",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"moveEndPoint"),pt.prototype),Sn(pt.prototype,"dragAppendStart",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"dragAppendStart"),pt.prototype),Sn(pt.prototype,"dragAppendSimple",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"dragAppendSimple"),pt.prototype),Sn(pt.prototype,"dragAppend",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"dragAppend"),pt.prototype),Sn(pt.prototype,"dragAppendEnd",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"dragAppendEnd"),pt.prototype),Sn(pt.prototype,"updatePointsAfterDrag",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"updatePointsAfterDrag"),pt.prototype),Sn(pt.prototype,"getAdjustStart",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"getAdjustStart"),pt.prototype),Sn(pt.prototype,"getAdjustEnd",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"getAdjustEnd"),pt.prototype),Sn(pt.prototype,"updateAfterAdjustStartAndEnd",[d.k],Object.getOwnPropertyDescriptor(pt.prototype,"updateAfterAdjustStartAndEnd"),pt.prototype),pt),Ea=function(e){var t=e.start,n=e.end,i=e.offset,c=e.verticalLength,s=e.type,f={leftX:0,leftY:0,rightX:0,rightY:0},h=Math.atan((n.y-t.y)/(n.x-t.x)),v=Math.atan(i/c),_=Math.sqrt(c*c+i*i);return s==="start"?n.x>=t.x?(f.leftX=t.x+_*Math.sin(h+v),f.leftY=t.y-_*Math.cos(h+v),f.rightX=t.x-_*Math.sin(h-v),f.rightY=t.y+_*Math.cos(h-v)):(f.leftX=t.x-_*Math.sin(h+v),f.leftY=t.y+_*Math.cos(h+v),f.rightX=t.x+_*Math.sin(h-v),f.rightY=t.y-_*Math.cos(h-v)):s==="end"&&(n.x>=t.x?(f.leftX=n.x+_*Math.sin(h-v),f.leftY=n.y-_*Math.cos(h-v),f.rightX=n.x-_*Math.sin(h+v),f.rightY=n.y+_*Math.cos(h+v)):(f.leftX=n.x-_*Math.sin(h-v),f.leftY=n.y+_*Math.cos(h-v),f.rightX=n.x+_*Math.sin(h+v),f.rightY=n.y-_*Math.cos(h+v))),f},Zw={x:1,y:0,z:0};function iv(e){var t=Math.hypot(e.x,e.y);return{x:e.x/t,y:e.y/t,z:0}}function Jw(e){return i=function(s,f){return s.x*f.y-s.y*f.x}(t=Zw,n=e),c=Math.acos(function(s,f){var h=[s.x,s.y,s.z];return[f.x,f.y,f.z].reduce(function(v,_,E){return v+_*h[E]})}(iv(t),iv(n))),i>=0?c:-c;var t,n,i,c}function av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Xu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?av(Object(n),!0).forEach(function(i){Qw(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(e){return function(t){if(Array.isArray(t))return Ml(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||uv(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  57. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Tl(e){return Tl=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},Tl(e)}function Yu(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||uv(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  58. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function uv(e,t){if(e){if(typeof e=="string")return Ml(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ml(e,t):void 0}}function Ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var kl=function(e){var t=[],n={};return e.forEach(function(i){var c="".concat(i.x,"-").concat(i.y);i.id=c,n[c]=i}),Object.keys(n).forEach(function(i){t.push(n[i])}),t},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}},Ku=function(e,t,n){var i=function(c,s){var f=Math.abs(c.x-s.centerX),h=Math.abs(c.y-s.centerY);return f/s.width>h/s.height?Gt.HORIZONTAL:Gt.VERTICAL}(n,t);return i===Gt.HORIZONTAL?{x:n.x>e.centerX?e.maxX:e.minX,y:n.y}:{x:n.x,y:n.y>e.centerY?e.maxY:e.minY}},sv=function(e,t){var n=Math.min(e.minX,t.minX),i=Math.min(e.minY,t.minY),c=Math.max(e.maxX,t.maxX),s=Math.max(e.maxY,t.maxY);return{centerX:(n+c)/2,centerY:(i+s)/2,minX:n,minY:i,maxX:c,maxY:s,height:s-i,width:c-n}},Sa=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=[],i=[];e.forEach(function(E){n.push(E.x),i.push(E.y)});var c=Math.min.apply(Math,n),s=Math.max.apply(Math,n),f=Math.min.apply(Math,i),h=Math.max.apply(Math,i),v=s-c,_=h-f;return t&&(v+=t,_+=t),{centerX:(c+s)/2,centerY:(f+h)/2,maxX:s,maxY:h,minX:c,minY:f,x:(c+s)/2,y:(f+h)/2,height:_,width:v}},qu=function(e){var t=e.minX,n=e.minY,i=e.maxX,c=e.maxY;return[{x:t,y:n},{x:i,y:n},{x:i,y:c},{x:t,y:c}]},Zu=function(e,t){var n=e.x,i=e.y;return n<t.minX||n>t.maxX||i<t.minY||i>t.maxY},Dl=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},cv=function(e,t,n,i,c){return Dl(e,t)+Dl(e,n)+function(s,f){var h=0;return f.forEach(function(v){v&&(s.x===v.x&&(h+=-2),s.y===v.y&&(h+=-2))}),h}(e,[t,n,i,c])},tx=function e(t,n,i,c,s){s||(s=0),t.unshift(n[c]),i[c]&&i[c]!==c&&s<=100&&e(t,n,i,i[c],s+1)},ja=function(e,t,n,i){var c=t.x-e.x,s=t.y-e.y,f=i.x-n.x,h=i.y-n.y,v=(-s*(e.x-n.x)+c*(e.y-n.y))/(-f*s+c*h),_=(f*(e.y-n.y)-h*(e.x-n.x))/(-f*s+c*h);return v>=0&&v<=1&&_>=0&&_<=1},lv=function(e,t,n){if(n.width===0&&n.height===0)return!1;var i=Yu(qu(n),4),c=i[0],s=i[1],f=i[2],h=i[3];return ja(e,t,c,s)||ja(e,t,c,h)||ja(e,t,s,f)||ja(e,t,f,h)},nx=function(e,t,n,i,c,s,f){var h=[],v=[t],_={},E={},M={};E[t.id]=0,M[t.id]=cv(t,n,t);var N={};e.forEach(function(Q){N[Q.id]=Q});for(var $=function(){var Q,se,ae,de=void 0,we=1/0;if(v.forEach(function(Pe){M[Pe.id]<we&&(we=M[Pe.id],de=Pe)}),de===n){var ke=[];return tx(ke,N,_,n.id),{v:ke}}se=de,(ae=(Q=v).indexOf(se))>-1&&Q.splice(ae,1),h.push(de),function(Pe,Xe,De,Ge){var $e=[];return Pe.forEach(function(ht){ht!==Xe&&(ht.x!==Xe.x&&ht.y!==Xe.y||lv(ht,Xe,De)||lv(ht,Xe,Ge)||$e.push(ht))}),kl($e)}(e,de,i,c).forEach(function(Pe){if(h.indexOf(Pe)===-1){v.indexOf(Pe)===-1&&v.push(Pe);var Xe=M[de.id]+Dl(de,Pe);E[Pe.id]&&Xe>=E[Pe.id]||(_[Pe.id]=de.id,E[Pe.id]=Xe,M[Pe.id]=E[Pe.id]+cv(Pe,n,t,s,f))}})};v.length;){var Y=$();if(Tl(Y)==="object")return Y.v}return[t,n]},fv=function(e){return Xn(e)},pv=function(e){for(var t=1;t<e.length-1;){var n=e[t-1],i=e[t],c=e[t+1];n.x===i.x&&i.x===c.x||n.y===i.y&&i.y===c.y?e.splice(t,1):t++}return e},dv=function(e,t,n,i,c){var s,f,h=fv(n),v=fv(i),_=Vu(h,c),E=Vu(v,c),M=Ku(_,h,e),N=Ku(E,v,t);if(s=_,f=E,2*Math.abs(s.centerX-f.centerX)<s.width+f.width&&2*Math.abs(s.centerY-f.centerY)<s.height+f.height){var $=ox(e,t,M,N);return[e,M].concat(ex($),[N,t])}var Y=Sa([M,N]),Q=sv(_,Y),se=sv(E,Y),ae=[];ae=(ae=ae.concat(qu(Q))).concat(qu(se));var de={x:(e.x+t.x)/2,y:(e.y+t.y)/2};[Y,Q,se].forEach(function(ke){ae=ae.concat(function(Pe,Xe){return function(De,Ge){return Ge<De.minX||Ge>De.maxX?[]:[{x:Ge,y:De.minY},{x:Ge,y:De.maxY}]}(Pe,Xe.x).concat(function(De,Ge){return Ge<De.minY||Ge>De.maxY?[]:[{x:De.minX,y:Ge},{x:De.maxX,y:Ge}]}(Pe,Xe.y))}(ke,de).filter(function(Pe){return Zu(Pe,_)&&Zu(Pe,E)}))}),[{x:M.x,y:N.y},{x:N.x,y:M.y}].forEach(function(ke){Zu(ke,_)&&Zu(ke,E)&&ae.push(ke)}),ae.unshift(M),ae.push(N),ae=kl(ae);var we=nx(ae,M,N,h,v,e,t);return we.unshift(e),we.push(t),we.length>2&&(we=pv(we)),kl(we)},rx=function(e){var t;if(e.length===1)t=[e[0],e[0]];else if(e.length>=2){for(var n=e[0],i=e[1],c=vr(n.x,n.y,i.x,i.y),s=1;s<e.length-1;s++){var f=e[s],h=e[s+1],v=vr(f.x,f.y,h.x,h.y);v>c&&(c=v,n=f,i=h)}t=[n,i]}return t},hv=function(e,t,n){var i=Eo(e,n),c=Eo(t,n);return i&&c},yv=function(e,t,n){var i=Eo(e,n),c=Eo(t,n);return!(i&&c)&&(i||c)},vv=function(e,t,n){for(var i,c,s=Xn(n),f=qu(s),h=0;h<f.length;h++)ja(e,t,f[h],f[(h+1)%f.length])&&(c=[f[h],f[(h+1)%f.length]]);return c&&(i=function(v,_,E,M){var N=(_.y-v.y)*(M.x-E.x)-(v.x-_.x)*(E.y-M.y);if(N===0)return!1;var $=((_.x-v.x)*(M.x-E.x)*(E.y-v.y)+(_.y-v.y)*(M.x-E.x)*v.x-(M.y-E.y)*(_.x-v.x)*E.x)/N,Y=-((_.y-v.y)*(M.y-E.y)*(E.x-v.x)+(_.x-v.x)*(M.y-E.y)*v.y-(M.x-E.x)*(_.y-v.y)*E.y)/N;return($-v.x)*($-_.x)<=0&&(Y-v.y)*(Y-_.y)<=0&&($-E.x)*($-M.x)<=0&&(Y-E.y)*(Y-M.y)<=0&&{x:$,y:Y}}(e,t,c[0],c[1])),i},Ju=function(e,t){var n;return e.x===t.x?n=Gt.VERTICAL:e.y===t.y&&(n=Gt.HORIZONTAL),n},qo=function(e){var t=e.split(" "),n=[];return t&&t.forEach(function(i){var c=Yu(i.split(","),2),s=c[0],f=c[1];n.push({x:Number(s),y:Number(f)})}),n},ox=function(e,t,n,i){var c=[];if(Ju(e,n)===Ju(t,i))e.y===n.y?(c.push({x:n.x,y:(n.y+i.y)/2}),c.push({x:i.x,y:(n.y+i.y)/2})):(c.push({x:(n.x+i.x)/2,y:n.y}),c.push({x:(n.x+i.x)/2,y:i.y}));else{var s={x:n.x,y:i.y},f=_a(s,e,n),h=_a(s,t,i);if(f||h)s={x:i.x,y:n.y};else{var v=gv(s,e,n),_=gv(s,t,i);v&&_&&(s={x:i.x,y:n.y})}c.push(s)}return c},gv=function(e,t,n){return e.x===t.x&&e.x===n.x||e.y===t.y&&e.y===n.y},bv=function(e){if(!e)return 0;for(var t=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);e.match(/[A-Z]/)?t+=1.5:t+=i>=1&&i<=126||i>=65376&&i<=65439?1:2}return t},mv=function(e){var t=e.start,n=e.end,i=e.sourceNode,c=e.targetNode,s=e.offset,f=Xn(i),h=Xn(c),v=Vu(f,s),_=Vu(h,s);return{sNext:Ku(v,f,t),ePre:Ku(_,h,n)}},Nl=function(e){var t=e.replace(/M/g,"").replace(/C/g,",").split(",");return[Qu(t[0]),Qu(t[1]),Qu(t[2]),Qu(t[3])]},Qu=function(e){var t=Yu(e.replace(/(^\s*)/g,"").split(" "),2);return{x:+t[0],y:+t[1]}},_v=function(e,t){var n=Yu(e,4),i=function(c,s,f,h,v){for(var _=function(de){if(de<0||de>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:c.x*Math.pow(1-de,3)+3*s.x*de*Math.pow(1-de,2)+3*f.x*Math.pow(de,2)*(1-de)+h.x*Math.pow(de,3),y:c.y*Math.pow(1-de,3)+3*s.y*de*Math.pow(1-de,2)+3*f.y*Math.pow(de,2)*(1-de)+h.y*Math.pow(de,3)}},E=0,M=2,N=h.x,$=h.y,Y=h;E<v&&M<50;){var Q=Y=_(1-M/100),se=Q.x,ae=Q.y;E=vr(N,$,se,ae),M++}return Y}(n[0],n[1],n[2],n[3],t);return[i,e[3]]},Ov=function(e,t){for(var n,i=e.x,c=e.y,s=qo(t),f=Number.MAX_SAFE_INTEGER,h=[],v=0;v<s.length;v++)h.push({start:s[v],end:s[(v+1)%s.length]});if(h.forEach(function(N){var $=N.start,Y=N.end;if($.x===Y.x){var Q={x:$.x,y:c};if(_a(Q,$,Y)){var se=Math.abs($.x-i);se<f&&(f=se,n=Q)}}else if($.y===Y.y){var ae={x:i,y:$.y};if(_a(ae,$,Y)){var de=Math.abs($.y-c);de<f&&(f=de,n=ae)}}}),!n){var _=h[0],E=_.start,M=_.end;n={x:E.x+(M.x-E.x)/2,y:E.y+(M.y-E.y)/2}}return n},ix=function(e){return ba(e,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},wv=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))};o(204);var Ei=function(){};function ax(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kr=window.document;function ux(e){var t=e.onDragStart,n=t===void 0?Ei:t,i=e.onDragging,c=i===void 0?Ei:i,s=e.onDragEnd,f=s===void 0?Ei:s,h=e.step,v=h===void 0?1:h,_=e.isStopPropagation,E=_===void 0||_,M=!1,N=!1,$=0,Y=0,Q=0,se=0;function ae(we){if(E&&we.stopPropagation(),N&&(M=!0,Q+=we.clientX-$,se+=we.clientY-Y,$=we.clientX,Y=we.clientY,Math.abs(Q)>v||Math.abs(se)>v)){var ke=Q%v,Pe=se%v,Xe=Q-ke,De=se-Pe;Q=ke,se=Pe,c({deltaX:Xe,deltaY:De,event:we})}}function de(we){if(E&&we.stopPropagation(),N=!1,kr.removeEventListener("mousemove",ae,!1),kr.removeEventListener("mouseup",de,!1),M)return M=!1,f({event:we})}return function(we){if(we.button===0)return E&&we.stopPropagation(),N=!0,$=we.clientX,Y=we.clientY,kr.addEventListener("mousemove",ae,!1),kr.addEventListener("mouseup",de,!1),n({event:we})}}var ye,xv,Ev,Sv,jv,Pv,Av,Tv,Mv,kv,Dv,Nv,Cv,Jr=function(){function e(i){var c=this,s=i.onDragStart,f=s===void 0?Ei:s,h=i.onDragging,v=h===void 0?Ei:h,_=i.onDragEnd,E=_===void 0?Ei:_,M=i.eventType,N=M===void 0?"":M,$=i.eventCenter,Y=$===void 0?null:$,Q=i.step,se=Q===void 0?1:Q,ae=i.isStopPropagation,de=ae===void 0||ae,we=i.model,ke=we===void 0?null:we,Pe=i.data,Xe=Pe===void 0?null:Pe;(function(De,Ge){if(!(De instanceof Ge))throw new TypeError("Cannot call a class as a function")})(this,e),un(this,"onDragStart",void 0),un(this,"onDragging",void 0),un(this,"onDragEnd",void 0),un(this,"step",void 0),un(this,"isStopPropagation",void 0),un(this,"isDragging",!1),un(this,"isStartDragging",!1),un(this,"startX",0),un(this,"startY",0),un(this,"sumDeltaX",0),un(this,"sumDeltaY",0),un(this,"eventType",void 0),un(this,"eventCenter",void 0),un(this,"model",void 0),un(this,"data",void 0),un(this,"startTime",void 0),un(this,"handleMouseDown",function(De){var Ge,$e;if(De.button===0){c.isStopPropagation&&De.stopPropagation(),c.isStartDragging=!0,c.startX=De.clientX,c.startY=De.clientY,kr.addEventListener("mousemove",c.handleMouseMove,!1),kr.addEventListener("mouseup",c.handleMouseUp,!1);var ht=(Ge=c.model)===null||Ge===void 0?void 0:Ge.getData();($e=c.eventCenter)===null||$e===void 0||$e.emit(at["".concat(c.eventType,"_MOUSEDOWN")],{e:De,data:c.data||ht}),c.startTime=new Date().getTime()}}),un(this,"handleMouseMove",function(De){if(c.isStopPropagation&&De.stopPropagation(),c.isStartDragging&&(c.sumDeltaX+=De.clientX-c.startX,c.sumDeltaY+=De.clientY-c.startY,c.startX=De.clientX,c.startY=De.clientY,c.step<=1||Math.abs(c.sumDeltaX)>c.step||Math.abs(c.sumDeltaY)>c.step)){var Ge,$e=c.sumDeltaX%c.step,ht=c.sumDeltaY%c.step,Ct=c.sumDeltaX-$e,Pt=c.sumDeltaY-ht;c.sumDeltaX=$e,c.sumDeltaY=ht;var zt,tn=(Ge=c.model)===null||Ge===void 0?void 0:Ge.getData();c.isDragging||((zt=c.eventCenter)===null||zt===void 0||zt.emit(at["".concat(c.eventType,"_DRAGSTART")],{e:De,data:c.data||tn}),c.onDragStart({event:De})),c.isDragging=!0,Promise.resolve().then(function(){var ln,An;c.onDragging({deltaX:Ct,deltaY:Pt,event:De}),(ln=c.eventCenter)===null||ln===void 0||ln.emit(at["".concat(c.eventType,"_MOUSEMOVE")],{e:De,data:c.data||tn}),(An=c.eventCenter)===null||An===void 0||An.emit(at["".concat(c.eventType,"_DRAG")],{e:De,data:c.data||tn})})}}),un(this,"handleMouseUp",function(De){c.isStartDragging=!1,c.isStopPropagation&&De.stopPropagation(),Promise.resolve().then(function(){var Ge,$e,ht;kr.removeEventListener("mousemove",c.handleMouseMove,!1),kr.removeEventListener("mouseup",c.handleMouseUp,!1);var Ct=(Ge=c.model)===null||Ge===void 0?void 0:Ge.getData();($e=c.eventCenter)===null||$e===void 0||$e.emit(at["".concat(c.eventType,"_MOUSEUP")],{e:De,data:c.data||Ct}),c.isDragging&&(c.isDragging=!1,c.onDragEnd({event:De}),(ht=c.eventCenter)===null||ht===void 0||ht.emit(at["".concat(c.eventType,"_DROP")],{e:De,data:c.data||Ct}))})}),un(this,"cancelDrag",function(){kr.removeEventListener("mousemove",c.handleMouseMove,!1),kr.removeEventListener("mouseup",c.handleMouseUp,!1),c.onDragEnd({event:null}),c.isDragging=!1}),this.onDragStart=f,this.onDragging=v,this.onDragEnd=E,this.step=se,this.isStopPropagation=de,this.eventType=N,this.eventCenter=Y,this.model=ke,this.data=Xe}var t,n;return t=e,(n=[{key:"setStep",value:function(i){this.step=i}}])&&ax(t.prototype,n),e}(),Rv={node:!1,edge:!1},sx={node:!0,edge:!0};function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Iv(Object(n),!0).forEach(function(i){Dr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iv(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pa(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||Lv(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  59. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Si(e){return function(t){if(Array.isArray(t))return Cl(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Lv(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  60. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Lv(e,t){if(e){if(typeof e=="string")return Cl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cl(e,t):void 0}}function Cl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ts(e){return ts=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},ts(e)}function rr(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function cx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var Bv,zv=200,Fv=(ye=function(){function e(i){(function(Y,Q){if(!(Y instanceof Q))throw new TypeError("Cannot call a class as a function")})(this,e),Dr(this,"rootEl",void 0),rr(this,"width",xv,this),rr(this,"height",Ev,this),Dr(this,"theme",void 0),Dr(this,"eventCenter",void 0),Dr(this,"modelMap",new Map),Dr(this,"topElement",void 0),Dr(this,"animation",void 0),Dr(this,"idGenerator",void 0),Dr(this,"edgeGenerator",void 0),Dr(this,"nodeMoveRules",[]),rr(this,"edgeType",Sv,this),rr(this,"nodes",jv,this),rr(this,"edges",Pv,this),rr(this,"overlapMode",Av,this),rr(this,"background",Tv,this),rr(this,"transformModel",Mv,this),rr(this,"editConfigModel",kv,this),rr(this,"gridSize",Dv,this),rr(this,"partial",Nv,this),rr(this,"fakerNode",Cv,this);var c,s,f,h=i.container,v=i.background,_=v===void 0?{}:v,E=i.grid,M=i.idGenerator,N=i.edgeGenerator,$=i.animation;this.background=_,ts(E)==="object"&&(this.gridSize=E.size),this.rootEl=h,this.editConfigModel=new Kh(i),this.eventCenter=new jw,this.transformModel=new UO(this.eventCenter),this.theme=by(i.style),this.edgeType=i.edgeType||"polyline",this.width=i.width,this.height=i.height,this.animation=(c=$)&&typeof c!="boolean"?gy(Xt(Rv),c):Xt(c===!0?sx:Rv),this.partial=i.partial,this.overlapMode=i.overlapMode||0,this.idGenerator=M,this.edgeGenerator=(s=this,typeof(f=N)!="function"?function(Y,Q,se){return Object.assign({type:s.edgeType},se)}:function(Y,Q,se){var ae=f(Y,Q,se);return ae?typeof ae=="string"?Object.assign({},se,{type:ae}):Object.assign({type:ae},se):{type:s.edgeType}}),this.width=i.width||this.rootEl.getBoundingClientRect().width,this.height=i.height||this.rootEl.getBoundingClientRect().height,this.flowId=xo()}var t,n;return t=e,n=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(i,c,s){return i[c.id]={index:s,model:c},i},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(i,c,s){return i[c.id]={index:s,model:c},i},{})}},{key:"modelsMap",get:function(){return[].concat(Si(this.nodes),Si(this.edges)).reduce(function(i,c){return i[c.id]=c,i},{})}},{key:"sortElements",get:function(){var i=[];this.nodes.forEach(function(_){return i.push(_)}),this.edges.forEach(function(_){return i.push(_)}),i=i.sort(function(_,E){return _.zIndex-E.zIndex});for(var c=[],s=[-200,-200],f=[this.width+zv,this.height+zv],h=0;h<i.length;h++){var v=i[h];v.visible&&(!this.partial||v.isSelected||this.isElementInArea(v,s,f,!1,!1))&&c.push(v)}return c}},{key:"textEditElement",get:function(){var i=this.nodes.find(function(s){return s.state===Mt.TEXT_EDIT}),c=this.edges.find(function(s){return s.state===Mt.TEXT_EDIT});return i||c}},{key:"selectElements",get:function(){var i=new Map;return this.nodes.forEach(function(c){c.isSelected&&i.set(c.id,c)}),this.edges.forEach(function(c){c.isSelected&&i.set(c.id,c)}),i}},{key:"selectNodes",get:function(){var i=[];return this.nodes.forEach(function(c){c.isSelected&&i.push(c)}),i}},{key:"getAreaElement",value:function(i,c){var s=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],f=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],h=arguments.length>4&&arguments[4]!==void 0&&arguments[4],v=[],_=[];this.nodes.forEach(function(N){return _.push(N)}),this.edges.forEach(function(N){return _.push(N)});for(var E=0;E<_.length;E++){var M=_[E];h&&!M.visible||!this.isElementInArea(M,i,c,s,f)||v.push(M)}return v}},{key:"getModel",value:function(i){return this.modelMap.get(i)}},{key:"getNodeModelById",value:function(i){var c;return this.fakerNode&&i===this.fakerNode.id?this.fakerNode:(c=this.nodesMap[i])===null||c===void 0?void 0:c.model}},{key:"getPointByClient",value:function(i){var c=i.x,s=i.y,f=this.rootEl.getBoundingClientRect(),h={x:c-f.left,y:s-f.top},v=Pa(this.transformModel.HtmlPointToCanvasPoint([h.x,h.y]),2);return{domOverlayPosition:h,canvasOverlayPosition:{x:v[0],y:v[1]}}}},{key:"isElementInArea",value:function(i,c,s){var f=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],h=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(i.BaseType===on.NODE){for(var v=Xn(i=i),_=v.minX,E=v.minY,M=v.maxX,N=v.maxY,$=[{x:_,y:E},{x:M,y:E},{x:M,y:N},{x:_,y:N}],Y=h,Q=0;Q<$.length;Q++){var se=$[Q],ae=se.x,de=se.y,we=this.transformModel.CanvasPointToHtmlPoint([ae,de]),ke=Pa(we,2);if(ae=ke[0],de=ke[1],fl([ae,de],c,s)!==h){Y=!h;break}}return Y}if(i.BaseType===on.EDGE){var Pe=i=i,Xe=Pe.startPoint,De=Pe.endPoint,Ge=this.transformModel.CanvasPointToHtmlPoint([Xe.x,Xe.y]),$e=this.transformModel.CanvasPointToHtmlPoint([De.x,De.y]),ht=fl(Ge,c,s),Ct=fl($e,c,s);return f?ht&&Ct:ht||Ct}return!1}},{key:"graphDataToModel",value:function(i){var c=this;if(this.width&&this.height||this.resize(),!i)return this.nodes=[],void(this.edges=[]);i.nodes?this.nodes=$u(i.nodes,function(s){var f=c.getModel(s.type);if(!f)throw new Error("\u627E\u4E0D\u5230".concat(s.type,"\u5BF9\u5E94\u7684\u8282\u70B9\u3002"));var h=s.x,v=s.y;return h&&v&&(s.x=wo(h,c.gridSize),s.y=wo(v,c.gridSize),ts(s.text)==="object"&&(s.text.x-=my(h,c.gridSize),s.text.y-=my(v,c.gridSize))),new f(s,c)}):this.nodes=[],i.edges?this.edges=$u(i.edges,function(s){var f=c.getModel(s.type);if(!f)throw new Error("\u627E\u4E0D\u5230".concat(s.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new f(s,c)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var i=[];this.edges.forEach(function(s){var f=s.getData();f&&!s.virtual&&i.push(f)});var c=[];return this.nodes.forEach(function(s){var f=s.getData();f&&!s.virtual&&c.push(f)}),{nodes:c,edges:i}}},{key:"modelToHistoryData",value:function(){for(var i=!1,c=[],s=0;s<this.nodes.length;s++){var f=this.nodes[s];if(f.isDragging){i=!0;break}c.push(f.getHistoryData())}if(i)return!1;for(var h=!1,v=[],_=0;_<this.edges.length;_++){var E=this.edges[_];if(E.isDragging){h=!0;break}v.push(E.getHistoryData())}return!h&&{nodes:c,edges:v}}},{key:"getEdgeModelById",value:function(i){var c;return(c=this.edgesMap[i])===null||c===void 0?void 0:c.model}},{key:"getElement",value:function(i){return this.modelsMap[i]}},{key:"getNodeEdges",value:function(i){for(var c=[],s=0;s<this.edges.length;s++){var f=this.edges[s],h=this.edges[s].sourceNodeId===i,v=this.edges[s].targetNodeId===i;(h||v)&&c.push(f)}return c}},{key:"getSelectElements",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],c=this.selectElements,s={nodes:[],edges:[]};return c.forEach(function(f){if(f.BaseType===on.NODE&&s.nodes.push(f.getData()),f.BaseType===on.EDGE){var h=f.getData(),v=c.get(h.sourceNodeId)&&c.get(h.targetNodeId);(i||v)&&s.edges.push(h)}}),s}},{key:"updateAttributes",value:function(i,c){this.getElement(i).updateAttributes(c)}},{key:"changeNodeId",value:function(i,c){return c||(c=xo()),this.nodesMap[c]?"":this.nodesMap[i]?(this.edges.forEach(function(s){s.sourceNodeId===i&&(s.sourceNodeId=c),s.targetNodeId===i&&(s.targetNodeId=c)}),this.nodesMap[i].model.id=c,this.nodesMap[c]=this.nodesMap[i],c):""}},{key:"changeEdgeId",value:function(i,c){return c||(c=xo()),this.edgesMap[c]?"":this.edgesMap[i]?(this.edges.forEach(function(s){s.id===i&&s.changeEdgeId(c)}),c):""}},{key:"setFakerNode",value:function(i){this.fakerNode=i}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(i,c){return this.modelMap.set(i,c)}},{key:"toFront",value:function(i){var c,s,f,h=((c=this.nodesMap[i])===null||c===void 0?void 0:c.model)||((s=this.edgesMap[i])===null||s===void 0?void 0:s.model);h&&(this.overlapMode===Un.DEFAULT&&((f=this.topElement)===null||f===void 0||f.setZIndex(),h.setZIndex(9999),this.topElement=h),this.overlapMode===Un.INCREASE&&this.setElementZIndex(i,"top"))}},{key:"setElementZIndex",value:function(i,c){var s,f,h,v=((s=this.nodesMap[i])===null||s===void 0?void 0:s.model)||((f=this.edgesMap[i])===null||f===void 0?void 0:f.model);v&&(typeof c=="number"&&(h=c),c==="top"&&(h=bl()),c==="bottom"&&(h=--Lw),v.setZIndex(h))}},{key:"deleteNode",value:function(i){var c=this.nodesMap[i].model.getData();this.deleteEdgeBySource(i),this.deleteEdgeByTarget(i),this.nodes.splice(this.nodesMap[i].index,1),this.eventCenter.emit(at.NODE_DELETE,{data:c})}},{key:"addNode",value:function(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at.NODE_ADD,s=arguments.length>2?arguments[2]:void 0,f=bn(i);f.id&&this.nodesMap[i.id]&&delete f.id;var h=this.getModel(f.type);if(!h)throw new Error("\u627E\u4E0D\u5230".concat(f.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));f.x=wo(f.x,this.gridSize),f.y=wo(f.y,this.gridSize);var v=new h(f,this);this.nodes.push(v);var _=v.getData(),E={data:_};return s&&(E.e=s),this.eventCenter.emit(c,E),v}},{key:"cloneNode",value:function(i){var c=this.getNodeModelById(i),s=c.getData();s.x+=30,s.y+=30,delete s.id,s.text&&(s.text.x+=30,s.text.y+=30);var f=this.addNode(s);return f.setSelected(!0),c.setSelected(!1),f.getData()}},{key:"moveNode",value:function(i,c,s){var f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],h=this.nodesMap[i];if(h){var v=h.model,_=v.getMoveDistance(c,s,f),E=Pa(_,2);c=E[0],s=E[1],this.moveEdge(i,c,s)}}},{key:"moveNode2Coordinate",value:function(i,c,s){var f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],h=this.nodesMap[i];if(h){var v=h.model,_=v.x,E=v.y,M=c-_,N=s-E;this.moveNode(i,M,N,f)}}},{key:"editText",value:function(i){this.setElementStateById(i,Mt.TEXT_EDIT)}},{key:"addEdge",value:function(i){var c=bn(i),s=c.type;s||(s=this.edgeType),c.id&&this.edgesMap[c.id]&&delete c.id;var f=this.getModel(s);if(!f)throw new Error("\u627E\u4E0D\u5230".concat(s,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var h=new f(es(es({},c),{},{type:s}),this),v=h.getData();return this.edges.push(h),this.eventCenter.emit(at.EDGE_ADD,{data:v}),h}},{key:"moveEdge",value:function(i,c,s){for(var f=0;f<this.edges.length;f++){var h=this.edges[f],v=h.textPosition,_=v.x,E=v.y,M=this.edges[f].sourceNodeId===i,N=this.edges[f].targetNodeId===i;M&&h.moveStartPoint(c,s),N&&h.moveEndPoint(c,s),(M||N)&&this.handleEdgeTextMove(h,_,E)}}},{key:"handleEdgeTextMove",value:function(i,c,s){var f;if(i.customTextPosition===!0)i.resetTextPosition();else if(i.modelType===Ot.POLYLINE_EDGE&&(f=i.text)!==null&&f!==void 0&&f.value){var h=i.text,v=Ov(h,i.points);i.moveText(v.x-h.x,v.y-h.y)}else{var _=i.textPosition,E=_.x,M=_.y;i.moveText(E-c,M-s)}}},{key:"deleteEdgeBySourceAndTarget",value:function(i,c){for(var s=0;s<this.edges.length;s++)if(this.edges[s].sourceNodeId===i&&this.edges[s].targetNodeId===c){var f=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(at.EDGE_DELETE,{data:f})}}},{key:"deleteEdgeById",value:function(i){if(this.edgesMap[i]){var c=this.edgesMap[i].index,s=this.edgesMap[i].model.getData();this.edges.splice(c,1),this.eventCenter.emit(at.EDGE_DELETE,{data:s})}}},{key:"deleteEdgeBySource",value:function(i){for(var c=0;c<this.edges.length;c++)if(this.edges[c].sourceNodeId===i){var s=this.edges[c].getData();this.edges.splice(c,1),c--,this.eventCenter.emit(at.EDGE_DELETE,{data:s})}}},{key:"deleteEdgeByTarget",value:function(i){for(var c=0;c<this.edges.length;c++)if(this.edges[c].targetNodeId===i){var s=this.edges[c].getData();this.edges.splice(c,1),c--,this.eventCenter.emit(at.EDGE_DELETE,{data:s})}}},{key:"setElementStateById",value:function(i,c,s){this.nodes.forEach(function(f){f.id===i?f.setElementState(c,s):f.setElementState(Mt.DEFAULT)}),this.edges.forEach(function(f){f.id===i?f.setElementState(c,s):f.setElementState(Mt.DEFAULT)})}},{key:"updateText",value:function(i,c){this.nodes.forEach(function(s){s.id===i&&s.updateText(c)}),this.edges.forEach(function(s){s.id===i&&s.updateText(c)})}},{key:"selectNodeById",value:function(i){var c,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];s||this.clearSelectElements();var f=(c=this.nodesMap[i])===null||c===void 0?void 0:c.model;f==null||f.setSelected(!0)}},{key:"selectEdgeById",value:function(i){var c,s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];s||this.clearSelectElements();var f=(c=this.edgesMap[i])===null||c===void 0?void 0:c.model;f==null||f.setSelected(!0)}},{key:"selectElementById",value:function(i){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c||this.clearSelectElements();var s=this.getElement(i);s==null||s.setSelected(!0)}},{key:"clearSelectElements",value:function(){var i;this.selectElements.forEach(function(c){c==null||c.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===Un.DEFAULT&&((i=this.topElement)===null||i===void 0||i.setZIndex())}},{key:"moveNodes",value:function(i,c,s){for(var f=this,h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=i.reduce(function(ke,Pe){var Xe=f.nodesMap[Pe].model.getMoveDistance(c,s,h);return ke[Pe]=Xe,ke},{}),_=0;_<this.edges.length;_++){var E=this.edges[_],M=E.textPosition,N=M.x,$=M.y,Y=v[E.sourceNodeId],Q=void 0,se=void 0;if(Y){var ae=Pa(Y,2);Q=ae[0],se=ae[1],E.moveStartPoint(Q,se)}var de=v[E.targetNodeId];if(de){var we=Pa(de,2);Q=we[0],se=we[1],E.moveEndPoint(Q,se)}(Y||de)&&this.handleEdgeTextMove(E,N,$)}}},{key:"addNodeMoveRules",value:function(i){this.nodeMoveRules.includes(i)||this.nodeMoveRules.push(i)}},{key:"setDefaultEdgeType",value:function(i){this.edgeType=i}},{key:"changeNodeType",value:function(i,c){var s=this.getNodeModelById(i);if(s){var f=s.getData();f.type=c;var h=this.getModel(c);if(!h)throw new Error("\u627E\u4E0D\u5230".concat(c,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var v=new h(f,this);this.nodes.splice(this.nodesMap[i].index,1,v),this.getNodeEdges(i).forEach(function(_){if(_.sourceNodeId===i){var E=Vy(v,_.startPoint,v.width,v.height);_.updateStartPoint(E)}if(_.targetNodeId===i){var M=Vy(v,_.endPoint,v.width,v.height);_.updateEndPoint(M)}})}}},{key:"changeEdgeType",value:function(i,c){var s=this.getEdgeModelById(i);if(s&&s.type!==c){var f=s.getData();f.type=c;var h=this.getModel(c);if(!h)throw new Error("\u627E\u4E0D\u5230".concat(c,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));delete f.pointsList;var v=new h(f,this);this.edges.splice(this.edgesMap[i].index,1,v)}}},{key:"getNodeIncomingEdge",value:function(i){var c=[];return this.edges.forEach(function(s){s.targetNodeId===i&&c.push(s)}),c}},{key:"getNodeOutgoingEdge",value:function(i){var c=[];return this.edges.forEach(function(s){s.sourceNodeId===i&&c.push(s)}),c}},{key:"getNodeIncomingNode",value:function(i){var c=this,s=[];return this.edges.forEach(function(f){f.targetNodeId===i&&s.push(c.nodesMap[f.sourceNodeId].model)}),s}},{key:"getNodeOutgoingNode",value:function(i){var c=this,s=[];return this.edges.forEach(function(f){f.sourceNodeId===i&&s.push(c.nodesMap[f.targetNodeId].model)}),s}},{key:"setTheme",value:function(i){this.theme=by(es(es({},this.theme),i))}},{key:"resize",value:function(i,c){this.width=i||this.rootEl.getBoundingClientRect().width,this.height=c||this.rootEl.getBoundingClientRect().height,!this.width||this.height}},{key:"clearData",value:function(){this.nodes=[],this.edges=[]}},{key:"getVirtualRectSize",value:function(){var i=this.nodes,c=[],s=[];i.forEach(function(M){var N=M.x,$=M.y,Y=M.width,Q=M.height,se=M.getNodeStyle().strokeWidth,ae=se===void 0?0:se;c=c.concat([N+Y/2+ae,N-Y/2-ae]),s=s.concat([$+Q/2+ae,$-Q/2-ae])});var f=Math.min.apply(Math,Si(c)),h=Math.max.apply(Math,Si(c)),v=Math.min.apply(Math,Si(s)),_=h-f||0,E=Math.max.apply(Math,Si(s))-v||0;return{virtualRectWidth:_,virtualRectHeight:E,virtualRectCenterPositionX:f+_/2,virtualRectCenterPositionY:v+E/2}}},{key:"translateCenter",value:function(){var i=this.nodes,c=this.width,s=this.height,f=this.rootEl,h=this.transformModel;if(i.length){var v=c||f.clientWidth,_=s||f.clientHeight,E=this.getVirtualRectSize(),M=E.virtualRectCenterPositionX,N=E.virtualRectCenterPositionY;h.focusOn(M,N,v,_)}}},{key:"fitView",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,s=this.nodes,f=this.width,h=this.height,v=this.rootEl,_=this.transformModel;if(s.length){var E=f||v.clientWidth,M=h||v.clientHeight,N=this.getVirtualRectSize(),$=N.virtualRectWidth,Y=N.virtualRectHeight,Q=N.virtualRectCenterPositionX,se=N.virtualRectCenterPositionY,ae=($+c)/E,de=(Y+i)/M,we=0;we=1/Math.max(ae,de);var ke=[E/2,M/2];_.zoom(we,ke),_.focusOn(Q,se,E,M)}}},{key:"openEdgeAnimation",value:function(i){this.getEdgeModelById(i).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(i){this.getEdgeModelById(i).closeEdgeAnimation()}}],n&&cx(t.prototype,n),e}(),xv=tt(ye.prototype,"width",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ev=tt(ye.prototype,"height",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sv=tt(ye.prototype,"edgeType",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jv=tt(ye.prototype,"nodes",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Pv=tt(ye.prototype,"edges",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Av=tt(ye.prototype,"overlapMode",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Un.DEFAULT}}),Tv=tt(ye.prototype,"background",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Mv=tt(ye.prototype,"transformModel",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kv=tt(ye.prototype,"editConfigModel",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dv=tt(ye.prototype,"gridSize",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Nv=tt(ye.prototype,"partial",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cv=tt(ye.prototype,"fakerNode",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tt(ye.prototype,"nodesMap",[d.m],Object.getOwnPropertyDescriptor(ye.prototype,"nodesMap"),ye.prototype),tt(ye.prototype,"edgesMap",[d.m],Object.getOwnPropertyDescriptor(ye.prototype,"edgesMap"),ye.prototype),tt(ye.prototype,"modelsMap",[d.m],Object.getOwnPropertyDescriptor(ye.prototype,"modelsMap"),ye.prototype),tt(ye.prototype,"sortElements",[d.m],Object.getOwnPropertyDescriptor(ye.prototype,"sortElements"),ye.prototype),tt(ye.prototype,"textEditElement",[d.m],Object.getOwnPropertyDescriptor(ye.prototype,"textEditElement"),ye.prototype),tt(ye.prototype,"selectElements",[d.m],Object.getOwnPropertyDescriptor(ye.prototype,"selectElements"),ye.prototype),tt(ye.prototype,"selectNodes",[d.m],Object.getOwnPropertyDescriptor(ye.prototype,"selectNodes"),ye.prototype),tt(ye.prototype,"setFakerNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"setFakerNode"),ye.prototype),tt(ye.prototype,"removeFakerNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"removeFakerNode"),ye.prototype),tt(ye.prototype,"setModel",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"setModel"),ye.prototype),tt(ye.prototype,"toFront",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"toFront"),ye.prototype),tt(ye.prototype,"setElementZIndex",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"setElementZIndex"),ye.prototype),tt(ye.prototype,"deleteNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"deleteNode"),ye.prototype),tt(ye.prototype,"addNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"addNode"),ye.prototype),tt(ye.prototype,"cloneNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"cloneNode"),ye.prototype),tt(ye.prototype,"moveNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"moveNode"),ye.prototype),tt(ye.prototype,"moveNode2Coordinate",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"moveNode2Coordinate"),ye.prototype),tt(ye.prototype,"editText",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"editText"),ye.prototype),tt(ye.prototype,"addEdge",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"addEdge"),ye.prototype),tt(ye.prototype,"moveEdge",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"moveEdge"),ye.prototype),tt(ye.prototype,"deleteEdgeBySourceAndTarget",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"deleteEdgeBySourceAndTarget"),ye.prototype),tt(ye.prototype,"deleteEdgeById",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"deleteEdgeById"),ye.prototype),tt(ye.prototype,"deleteEdgeBySource",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"deleteEdgeBySource"),ye.prototype),tt(ye.prototype,"deleteEdgeByTarget",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"deleteEdgeByTarget"),ye.prototype),tt(ye.prototype,"setElementStateById",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"setElementStateById"),ye.prototype),tt(ye.prototype,"updateText",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"updateText"),ye.prototype),tt(ye.prototype,"selectNodeById",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"selectNodeById"),ye.prototype),tt(ye.prototype,"selectEdgeById",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"selectEdgeById"),ye.prototype),tt(ye.prototype,"selectElementById",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"selectElementById"),ye.prototype),tt(ye.prototype,"clearSelectElements",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"clearSelectElements"),ye.prototype),tt(ye.prototype,"moveNodes",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"moveNodes"),ye.prototype),tt(ye.prototype,"setDefaultEdgeType",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"setDefaultEdgeType"),ye.prototype),tt(ye.prototype,"changeNodeType",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"changeNodeType"),ye.prototype),tt(ye.prototype,"changeEdgeType",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"changeEdgeType"),ye.prototype),tt(ye.prototype,"getNodeIncomingEdge",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"getNodeIncomingEdge"),ye.prototype),tt(ye.prototype,"getNodeOutgoingEdge",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"getNodeOutgoingEdge"),ye.prototype),tt(ye.prototype,"getNodeIncomingNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"getNodeIncomingNode"),ye.prototype),tt(ye.prototype,"getNodeOutgoingNode",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"getNodeOutgoingNode"),ye.prototype),tt(ye.prototype,"setTheme",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"setTheme"),ye.prototype),tt(ye.prototype,"resize",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"resize"),ye.prototype),tt(ye.prototype,"clearData",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"clearData"),ye.prototype),tt(ye.prototype,"translateCenter",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"translateCenter"),ye.prototype),tt(ye.prototype,"fitView",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"fitView"),ye.prototype),tt(ye.prototype,"openEdgeAnimation",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"openEdgeAnimation"),ye.prototype),tt(ye.prototype,"closeEdgeAnimation",[d.k],Object.getOwnPropertyDescriptor(ye.prototype,"closeEdgeAnimation"),ye.prototype),ye),lx=Fv;function Rl(e){return Rl=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},Rl(e)}function Il(){return Il=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Il.apply(this,arguments)}function fx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ll(e,t){return Ll=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ll(e,t)}function px(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ns(e);if(t){var c=ns(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return dx(this,n)}}function dx(e,t){if(t&&(Rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nr(e)}function Nr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ns(e){return ns=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ns(e)}function Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $v,hx=_r(Bv=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Ll(s,f)})(c,e);var t,n,i=px(c);function c(s){var f;(function(E,M){if(!(E instanceof M))throw new TypeError("Cannot call a class as a function")})(this,c),Qr(Nr(f=i.call(this)),"stepDrag",void 0),Qr(Nr(f),"stepScrollX",0),Qr(Nr(f),"stepScrollY",0),Qr(Nr(f),"onDragging",function(E){var M=E.deltaX,N=E.deltaY;f.setState({isDragging:!0});var $=f.props.graphModel,Y=$.transformModel;$.editConfigModel.stopMoveGraph||Y.translate(M,N)}),Qr(Nr(f),"onDragEnd",function(){f.setState({isDragging:!1})}),Qr(Nr(f),"zoomHandler",function(E){var M=f.props,N=M.graphModel,$=N.editConfigModel,Y=N.transformModel,Q=N.gridSize,se=M.graphModel,ae=E.deltaX,de=E.deltaY;if($.stopScrollGraph||E.ctrlKey===!0){if(!$.stopZoomGraph){E.preventDefault();var we=se.getPointByClient({x:E.clientX,y:E.clientY}).canvasOverlayPosition,ke=we.x,Pe=we.y;Y.zoom(E.deltaY<0,[ke,Pe])}}else{if(E.preventDefault(),f.stepScrollX+=ae,f.stepScrollY+=de,Math.abs(f.stepScrollX)>=Q){var Xe=f.stepScrollX%Q,De=f.stepScrollX-Xe;Y.translate(-De*Y.SCALE_X,0),f.stepScrollX=Xe}if(Math.abs(f.stepScrollY)>=Q){var Ge=f.stepScrollY%Q,$e=f.stepScrollY-Ge;Y.translate(0,-$e*Y.SCALE_Y),f.stepScrollY=Ge}}}),Qr(Nr(f),"clickHandler",function(E){if(E.target.getAttribute("name")==="canvas-overlay"){var M=f.props.graphModel;M.selectElements.size>0&&M.clearSelectElements(),M.eventCenter.emit(at.BLANK_CLICK,{e:E})}}),Qr(Nr(f),"handleContextMenu",function(E){if(E.target.getAttribute("name")==="canvas-overlay"){E.preventDefault();var M=f.props.graphModel,N=M.getPointByClient({x:E.clientX,y:E.clientY});M.eventCenter.emit(at.BLANK_CONTEXTMENU,{e:E,position:N})}}),Qr(Nr(f),"mouseDownHandler",function(E){var M=f.props.graphModel,N=M.eventCenter,$=M.editConfigModel,Y=M.transformModel.SCALE_X,Q=M.gridSize,se=E.target,ae=!$.adjustEdge&&!$.adjustNodePosition;(se.getAttribute("name")==="canvas-overlay"||ae)&&($.stopMoveGraph?N.emit(at.BLANK_MOUSEDOWN,{e:E}):(f.stepDrag.setStep(Q*Y),f.stepDrag.handleMouseDown(E)),f.clickHandler(E))});var h=s.graphModel,v=h.gridSize,_=h.eventCenter;return f.stepDrag=new Jr({onDragging:f.onDragging,onDragEnd:f.onDragEnd,step:v,eventType:"BLANK",isStopPropagation:!1,eventCenter:_,model:null}),f.state={isDragging:!1},f}return t=c,(n=[{key:"render",value:function(){var s=this.props.graphModel.transformModel.getTransformStyle().transform,f=this.props,h=f.children,v=f.dnd,_=this.state.isDragging;return Object(re.g)("svg",Il({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:_?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},v.eventMap()),Object(re.g)("g",{transform:s},h))}}])&&fx(t.prototype,n),c}(re.a))||Bv;function Bl(e){return Bl=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},Bl(e)}function yx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function zl(e,t){return zl=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},zl(e,t)}function gx(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=rs(e);if(t){var c=rs(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return bx(this,n)}}function bx(e,t){if(t&&(Bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function rs(e){return rs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},rs(e)}var mx=_r($v=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&zl(s,f)})(c,e);var t,n,i=gx(c);function c(){return yx(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"componentDidMount",value:function(){this.triggerToolRender()}},{key:"componentDidUpdate",value:function(){this.triggerToolRender()}},{key:"getTools",value:function(){var s=this.props,f=s.tool,h=s.graphModel,v=f.getTools().map(function(_){return Object(re.g)(_,{graphModel:h,logicFlow:f.instance})});return f.components=v,v}},{key:"triggerToolRender",value:function(){var s=this.props,f=s.tool,h=s.graphModel,v=document.querySelector("#ToolOverlay_".concat(h.flowId)),_=f.getInstance();_.components.forEach(function(E){return E(_,v)}),_.components=[]}},{key:"render",value:function(){var s=this.props.graphModel;return Object(re.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(s.flowId)},this.getTools())}}])&&vx(t.prototype,n),c}(re.a))||$v;function Fl(e){return Fl=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},Fl(e)}function _x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ox(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function $l(e,t){return $l=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$l(e,t)}function wx(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=os(e);if(t){var c=os(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return xx(this,n)}}function xx(e,t){if(t&&(Fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function os(e){return os=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},os(e)}var Wv,Ex=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&$l(s,f)})(c,e);var t,n,i=wx(c);function c(){return _x(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"render",value:function(){var s=this.props.background;return Object(re.g)("div",{className:"lf-background"},Object(re.g)("div",{style:s,className:"lf-background-area"}))}}])&&Ox(t.prototype,n),c}(re.a);function Wl(e){return Wl=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},Wl(e)}function Sx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Gl(e,t){return Gl=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Gl(e,t)}function Px(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=is(e);if(t){var c=is(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Ax(this,n)}}function Ax(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gv(e)}function Gv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},is(e)}function Tx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hv=_r(Wv=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Gl(s,f)})(c,e);var t,n,i=Px(c);function c(){var s;Sx(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return Tx(Gv(s=i.call.apply(i,[this].concat(h))),"id",xo()),s}return t=c,(n=[{key:"renderDot",value:function(){var s=this.props,f=s.config,h=f.color,v=f.thickness,_=v===void 0?2:v,E=s.size,M=s.visible,N=Math.min(Math.max(2,_),E/2),$=1;return M||($=0),Object(re.g)("rect",{width:N,height:N,rx:N/2,ry:N/2,fill:h,opacity:$})}},{key:"renderMesh",value:function(){var s=this.props,f=s.config,h=f.color,v=f.thickness,_=v===void 0?1:v,E=s.size,M=s.visible,N=Math.min(Math.max(1,_),E/2),$="M ".concat(E," 0 H0 M0 0 V0 ").concat(E),Y=1;return M||(Y=0),Object(re.g)("path",{d:$,stroke:h,strokeWidth:N,opacity:Y})}},{key:"render",value:function(){var s=this.props,f=s.type,h=s.size,v=s.graphModel.transformModel,_=[v.SCALE_X,v.SKEW_Y,v.SKEW_X,v.SCALE_Y,v.TRANSLATE_X,v.TRANSLATE_Y].join(","),E="matrix(".concat(_,")");return Object(re.g)("div",{className:"lf-grid"},Object(re.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(re.g)("defs",null,Object(re.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:E,x:"0",y:"0",width:h,height:h},f==="dot"&&this.renderDot(),f==="mesh"&&this.renderMesh())),Object(re.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&jx(t.prototype,n),c}(re.a))||Wv;Hv.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(52);function Hl(e){return Hl=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},Hl(e)}function Mx(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Uv(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Uv(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  61. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Uv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Xv,ji=function(e){var t={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(e).forEach(function(n){var i=Mx(n,2),c=i[0],s=i[1];(c==="style"||Hl(s)!=="object")&&(t[c]=s)}),Object(re.g)("line",t)};function Ul(e){return Ul=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},Ul(e)}function Yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yv(Object(n),!0).forEach(function(i){kx(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yv(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function kx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Xl(e,t){return Xl=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xl(e,t)}function Cx(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=us(e);if(t){var c=us(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Rx(this,n)}}function Rx(e,t){if(t&&(Ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function us(e){return us=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},us(e)}var Vv,Ix=_r(Xv=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Xl(s,f)})(c,e);var t,n,i=Cx(c);function c(){return Dx(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"render",value:function(){var s=this.props.snaplineModel,f=s.position,h=s.isShowHorizontal,v=s.isShowVertical,_=s.getStyle(),E=f.x,M=E===void 0?0:E,N=f.y,$=N===void 0?0:N,Y=as(as({x1:-1e5,y1:$,x2:1e5,y2:$},_),{},{stroke:h?_.stroke:"none"}),Q=as(as({x1:M,y1:-1e5,x2:M,y2:1e5},_),{},{stroke:v?_.stroke:"none"});return Object(re.g)("g",{className:"lf-snapline"},Object(re.g)(ji,Y),Object(re.g)(ji,Q))}}])&&Nx(t.prototype,n),c}(re.a))||Xv;function Yl(e){return Yl=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},Yl(e)}function Lx(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Kv(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Kv(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  62. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function jo(e){var t=e.x,n=e.y,i=e.width,c=e.height,s=e.className,f=e.radius,h=t-i/2,v=n-c/2,_={};return Object.entries(e).forEach(function(E){var M=Lx(E,2),N=M[0],$=M[1];Yl($)!=="object"&&(_[N]=$)}),_.className=s?"lf-basic-shape ".concat(s):"lf-basic-shape",f&&(_.rx=f,_.ry=f),_.x=h,_.y=v,Object(re.g)("rect",_)}function Vl(e){return Vl=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},Vl(e)}function Pi(){return Pi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pi.apply(this,arguments)}function qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Zv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qv(Object(n),!0).forEach(function(i){Bx(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qv(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Bx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Kl(e,t){return Kl=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Kl(e,t)}function $x(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ss(e);if(t){var c=ss(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Wx(this,n)}}function Wx(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function ss(e){return ss=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ss(e)}jo.defaultProps={className:"",radius:""};var Jv,Gx=_r(Vv=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Kl(s,f)})(c,e);var t,n,i=$x(c);function c(){return zx(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getNodesOutline",value:function(){var s=this.props.graphModel,f=s.nodes,h=s.editConfigModel,v=h.hoverOutline,_=h.nodeSelectedOutline,E=[];return f.forEach(function(M){if(M.isHovered||M.isSelected){var N=M.isHovered,$=M.isSelected,Y=M.x,Q=M.y,se=M.width,ae=M.height;if(_&&$||v&&N){var de=M.getOutlineStyle(),we={};if(Object.keys(de).forEach(function(Pe){Pe!=="hover"&&(we[Pe]=de[Pe])}),N){var ke=de.hover;we=Zv(Zv({},we),ke)}E.push(Object(re.g)(jo,Pi({className:"lf-outline-node",x:Y,y:Q,width:se+10,height:ae+10},we)))}}}),E}},{key:"getEdgeOutline",value:function(){for(var s=this.props.graphModel,f=s.edges,h=s.editConfigModel,v=h.edgeSelectedOutline,_=h.hoverOutline,E=[],M=0;M<f.length;M++){var N=f[M];(v&&N.isSelected||_&&N.isHovered)&&(N.modelType===Ot.LINE_EDGE?E.push(this.getLineOutline(N)):N.modelType===Ot.POLYLINE_EDGE?E.push(this.getPolylineOutline(N)):N.modelType===Ot.BEZIER_EDGE&&E.push(this.getBezierOutline(N)))}return E}},{key:"getLineOutline",value:function(s){var f=s.startPoint,h=s.endPoint,v=(f.x+h.x)/2,_=(f.y+h.y)/2,E=Math.abs(f.x-h.x)+10,M=Math.abs(f.y-h.y)+10,N=s.getOutlineStyle();return Object(re.g)(jo,Pi({className:"lf-outline-edge",x:v,y:_,width:E,height:M},N))}},{key:"getPolylineOutline",value:function(s){var f=s.points,h=qo(f),v=Sa(h,8),_=v.x,E=v.y,M=v.width,N=v.height,$=s.getOutlineStyle();return Object(re.g)(jo,Pi({className:"lf-outline",x:_,y:E,width:M,height:N},$))}},{key:"getBezierOutline",value:function(s){var f=s.path,h=Nl(f),v=Sa(h,8),_=v.x,E=v.y,M=v.width,N=v.height,$=s.getOutlineStyle();return Object(re.g)(jo,Pi({className:"lf-outline",x:_,y:E,width:M,height:N},$))}},{key:"render",value:function(){return Object(re.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&Fx(t.prototype,n),c}(re.a))||Vv;function ql(e){return ql=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},ql(e)}function Hx(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Qv(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Qv(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  63. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Qv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Aa(e){var t=e.x,n=t===void 0?0:t,i=e.y,c=i===void 0?0:i,s=e.r,f=s===void 0?4:s,h=e.className,v={cx:n,cy:c,r:f,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(_){var E=Hx(_,2),M=E[0],N=E[1];ql(N)!=="object"&&(v[M]=N)}),v.className=h?"lf-basic-shape ".concat(h):"lf-basic-shape",Object(re.g)("circle",v)}function Zl(e){return Zl=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},Zl(e)}function Ux(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return eg(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return eg(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  64. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ta(){return Ta=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ta.apply(this,arguments)}function tg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ng(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function rg(e,t,n){return t&&ng(e.prototype,t),n&&ng(e,n),e}function og(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&&Jl(e,t)}function Jl(e,t){return Jl=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jl(e,t)}function ig(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ls(e);if(t){var c=ls(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Xx(this,n)}}function Xx(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cs(e)}function cs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ls(e){return ls=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ls(e)}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ag,ug=function(e){og(n,e);var t=ig(n);function n(){var i;return tg(this,n),Ql(cs(i=t.call(this)),"dragHandler",void 0),Ql(cs(i),"onDragging",function(c){var s=c.event,f=i.props,h=f.graphModel,v=f.bezierModel,_=f.type,E=h.getPointByClient({x:s.clientX,y:s.clientY}).canvasOverlayPosition,M=E.x,N=E.y;v.updateAdjustAnchor({x:M,y:N},_)}),Ql(cs(i),"onDragEnd",function(){i.props.bezierModel.isDragging=!1}),i.dragHandler=new Jr({onDragging:i.onDragging,onDragEnd:i.onDragEnd}),i}return rg(n,[{key:"render",value:function(){var i=this,c=this.props.position,s=c.x,f=c.y,h=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(re.g)(Aa,Ta({className:"lf-bezier-adjust-anchor",x:s,y:f},h,{onMouseDown:function(v){i.dragHandler.handleMouseDown(v)}}))}}]),n}(re.a),Yx=_r(Jv=function(e){og(n,e);var t=ig(n);function n(){return tg(this,n),t.apply(this,arguments)}return rg(n,[{key:"getBezierAdjust",value:function(i,c){var s=i.path,f=i.id,h=Ux(Nl(s),4),v=h[0],_=h[1],E=h[2],M=h[3],N=i.getEdgeStyle().adjustLine,$=[];return $.push(Object(re.g)(ji,Ta({x1:v.x,y1:v.y,x2:_.x,y2:_.y},N))),$.push(Object(re.g)(ug,{position:_,bezierModel:i,graphModel:c,key:"".concat(f,"_ePre"),type:"sNext"})),$.push(Object(re.g)(ji,Ta({x1:M.x,y1:M.y,x2:E.x,y2:E.y},N))),$.push(Object(re.g)(ug,{position:E,bezierModel:i,graphModel:c,key:"".concat(f,"_sNext"),type:"ePre"})),$}},{key:"selectedBezierEdge",value:function(){for(var i=this.props.graphModel,c=i.edges,s=[],f=0;f<c.length;f++){var h=c[f];h.isSelected&&h.modelType===Ot.BEZIER_EDGE&&h.draggable&&s.push(this.getBezierAdjust(h,i))}return s}},{key:"render",value:function(){return Object(re.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),n}(re.a))||Jv;function ef(e){return ef=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},ef(e)}function Vx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function tf(e,t){return tf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},tf(e,t)}function qx(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=fs(e);if(t){var c=fs(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Zx(this,n)}}function Zx(e,t){if(t&&(ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function fs(e){return fs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},fs(e)}var sg,Jx=_r(ag=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&tf(s,f)})(c,e);var t,n,i=qx(c);function c(){return Vx(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"render",value:function(){var s=this.props.graphModel.transformModel.getTransformStyle().transform,f=this.props.children;return Object(re.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(re.g)("g",{transform:s},f))}}])&&Kx(t.prototype,n),c}(re.a))||ag;function nf(e){return nf=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},nf(e)}function rf(){return rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},rf.apply(this,arguments)}function Qx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function of(e,t){return of=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},of(e,t)}function tE(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ps(e);if(t){var c=ps(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return nE(this,n)}}function nE(e,t){if(t&&(nf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ps(e)}var rE=_r(sg=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&of(s,f)})(c,e);var t,n,i=tE(c);function c(){return Qx(this,c),i.apply(this,arguments)}return t=c,n=[{key:"getComponent",value:function(s,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",v=this.props.getView,_=v(s.type);return Object(re.g)(_,{key:s.id,model:s,graphModel:f,overlay:h})}},{key:"render",value:function(){var s=this,f=this.props,h=f.graphModel,v=f.tool,_=f.options,E=f.dnd,M=f.snaplineModel,N={};_.width&&(N.width="".concat(h.width,"px")),_.height&&(N.height="".concat(h.height,"px"));var $=_.grid,Y=h.fakerNode,Q=h.editConfigModel.adjustEdge;return Object(re.g)("div",{className:"lf-graph","flow-id":h.flowId,style:N},Object(re.g)(hx,{graphModel:h,dnd:E},Object(re.g)("g",{className:"lf-base"},$u(h.sortElements,function(se){return s.getComponent(se,h)})),Y?this.getComponent(Y,h):""),Object(re.g)(Jx,{graphModel:h},Object(re.g)(Gx,{graphModel:h}),Q?Object(re.g)(Yx,{graphModel:h}):"",_.snapline!==!1?Object(re.g)(Ix,{snaplineModel:M}):""),Object(re.g)(mx,{graphModel:h,tool:v}),_.background&&Object(re.g)(Ex,{background:_.background}),_.grid&&Object(re.g)(Hv,rf({},$,{graphModel:h})))}}],n&&eE(t.prototype,n),c}(re.a))||sg,oE=rE;function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cg(Object(n),!0).forEach(function(i){eo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function iE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aE=function(){function e(i){var c=this;(function(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")})(this,e),eo(this,"nodeConfig",void 0),eo(this,"lf",void 0),eo(this,"fakerNode",void 0),eo(this,"stopDrag",function(){c.nodeConfig=null,window.document.removeEventListener("mouseup",c.stopDrag)}),eo(this,"dragEnter",function(f){c.nodeConfig&&!c.fakerNode&&(c.fakerNode=c.lf.createFakerNode(ds(ds({},c.nodeConfig),c.clientToLocalPoint({x:f.clientX,y:f.clientY}))))}),eo(this,"onDragOver",function(f){if(f.preventDefault(),c.fakerNode){var h=c.clientToLocalPoint({x:f.clientX,y:f.clientY}),v=h.x,_=h.y;c.fakerNode.moveTo(v,_);var E=c.fakerNode.getData();c.lf.setNodeSnapLine(E),c.lf.graphModel.eventCenter.emit(at.NODE_DND_DRAG,{data:E})}return!1}),eo(this,"onDragLeave",function(){c.fakerNode&&(c.lf.removeNodeSnapLine(),c.lf.graphModel.removeFakerNode(),c.fakerNode=null)}),eo(this,"onDrop",function(f){c.lf.graphModel&&f&&c.nodeConfig&&(c.lf.addNode(ds(ds({},c.nodeConfig),c.clientToLocalPoint({x:f.clientX,y:f.clientY})),at.NODE_DND_ADD,f),f.preventDefault(),f.stopPropagation(),c.nodeConfig=null,c.lf.removeNodeSnapLine(),c.lf.graphModel.removeFakerNode(),c.fakerNode=null)});var s=i.lf;this.lf=s}var t,n;return t=e,(n=[{key:"clientToLocalPoint",value:function(i){var c=i.x,s=i.y,f=wh(this.lf.options,["grid","size"]),h=this.lf.graphModel.getPointByClient({x:c,y:s}).canvasOverlayPosition,v=h.x,_=h.y;return{x:wo(v,f),y:wo(_,f)}}},{key:"startDrag",value:function(i){this.nodeConfig=i,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}}}])&&iE(t.prototype,n),e}();function lg(e){var t=e.container,n=e.grid,i=e.width,c=e.height;if(!t)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof i=="string"||typeof c=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return n&&(e.grid=En({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},n)),En({},pg,e)}var jt,fg,pg={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function af(e){return af=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},af(e)}function uf(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return dg(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return dg(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  65. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function dg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(n),!0).forEach(function(i){yg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function uE(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function sE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ma(){return Ma=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=lE(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},Ma.apply(this,arguments)}function lE(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Po(e))!==null;);return e}function sf(e,t){return sf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},sf(e,t)}function fE(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Po(e);if(t){var c=Po(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return pE(this,n)}}function pE(e,t){if(t&&(af(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ys(e)}function ys(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e){return Po=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Po(e)}function yg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var cf=(jt=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&sf(s,f)})(c,e);var t,n,i=fE(c);function c(){var s;sE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return yg(ys(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.BEZIER_EDGE),uE(ys(s),"path",fg,ys(s)),s}return t=c,(n=[{key:"initEdgeData",value:function(s){this.offset=100,Ma(Po(c.prototype),"initEdgeData",this).call(this,s)}},{key:"getEdgeStyle",value:function(){var s=this.graphModel.theme.bezier;return hs(hs({},Ma(Po(c.prototype),"getEdgeStyle",this).call(this)),Xt(s))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var s=0,f=0;return this.pointsList.forEach(function(h){var v=h.x,_=h.y;s+=v,f+=_}),{x:s/this.pointsList.length,y:f/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 s=Ma(Po(c.prototype),"getData",this).call(this),f=this.pointsList.map(function(h){return{x:h.x,y:h.y}});return hs(hs({},s),{},{pointsList:f})}},{key:"getControls",value:function(){var s=this.startPoint,f=this.endPoint;return mv({start:s,end:f,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(s){var f=uf(s,4),h=f[0],v=f[1],_=f[2],E=f[3];return"M ".concat(h.x," ").concat(h.y,`
  66. C `).concat(v.x," ").concat(v.y,`,
  67. `).concat(_.x," ").concat(_.y,`,
  68. `).concat(E.x," ").concat(E.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var s=this.getControls(),f=s.sNext,h=s.ePre;this.updatePath(f,h)}},{key:"updatePath",value:function(s,f){s=Xt(s),f=Xt(f);var h={x:this.startPoint.x,y:this.startPoint.y},v={x:this.endPoint.x,y:this.endPoint.y};if(!s||!f){var _=this.getControls();s=_.sNext,f=_.ePre}this.pointsList=[h,s,f,v],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(s){this.startPoint=s,this.updatePoints()}},{key:"updateEndPoint",value:function(s){this.endPoint=s,this.updatePoints()}},{key:"moveStartPoint",value:function(s,f){this.startPoint.x+=s,this.startPoint.y+=f;var h=uf(this.pointsList,3),v=h[1],_=h[2];v.x+=s,v.y+=f,this.updatePath(v,_)}},{key:"moveEndPoint",value:function(s,f){this.endPoint.x+=s,this.endPoint.y+=f;var h=uf(this.pointsList,3),v=h[1],_=h[2];_.x+=s,_.y+=f,this.updatePath(v,_)}},{key:"updateAdjustAnchor",value:function(s,f){f==="sNext"?this.pointsList[1]=s:f==="ePre"&&(this.pointsList[2]=s),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 s=this.pointsList;return s[s.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(s){var f=s.startPoint,h=s.endPoint,v=s.sourceNode,_=s.targetNode,E=mv({start:f,end:h,sourceNode:v,targetNode:_,offset:this.offset}),M=E.sNext,N=E.ePre;this.pointsList=[f,M,N,h],this.initPoints()}}])&&cE(t.prototype,n),c}(_l),fg=gr(jt.prototype,"path",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gr(jt.prototype,"initPoints",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"initPoints"),jt.prototype),gr(jt.prototype,"updatePoints",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"updatePoints"),jt.prototype),gr(jt.prototype,"updateStartPoint",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"updateStartPoint"),jt.prototype),gr(jt.prototype,"updateEndPoint",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"updateEndPoint"),jt.prototype),gr(jt.prototype,"moveStartPoint",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"moveStartPoint"),jt.prototype),gr(jt.prototype,"moveEndPoint",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"moveEndPoint"),jt.prototype),gr(jt.prototype,"updateAdjustAnchor",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"updateAdjustAnchor"),jt.prototype),gr(jt.prototype,"getAdjustStart",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"getAdjustStart"),jt.prototype),gr(jt.prototype,"getAdjustEnd",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"getAdjustEnd"),jt.prototype),gr(jt.prototype,"updateAfterAdjustStartAndEnd",[d.k],Object.getOwnPropertyDescriptor(jt.prototype,"updateAfterAdjustStartAndEnd"),jt.prototype),jt),Re,vg,gg,bg,mg,_g,Og,wg,xg,Eg,Sg,jg,Pg,Ag,Tg,Mg,kg,Dg,Ng,Cg,dE=function(e){return e==null};function lf(e){return lf=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},lf(e)}function hE(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(v,_){if(!!v){if(typeof v=="string")return Rg(v,_);var E=Object.prototype.toString.call(v).slice(8,-1);if(E==="Object"&&v.constructor&&(E=v.constructor.name),E==="Map"||E==="Set")return Array.from(v);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return Rg(v,_)}}(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var i=0,c=function(){};return{s:c,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(v){throw v},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  69. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,f=!0,h=!1;return{s:function(){n=n.call(e)},n:function(){var v=n.next();return f=v.done,v},e:function(v){h=!0,s=v},f:function(){try{f||n.return==null||n.return()}finally{if(h)throw s}}}}function Rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(n),!0).forEach(function(i){In(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function cn(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function yE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var to,Lg,no=(Re=function(){function e(i,c){(function(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")})(this,e),In(this,"id",""),cn(this,"type",vg,this),cn(this,"x",gg,this),cn(this,"y",bg,this),cn(this,"text",mg,this),cn(this,"properties",_g,this),cn(this,"_width",Og,this),cn(this,"_height",wg,this),cn(this,"anchorsOffset",xg,this),cn(this,"isSelected",Eg,this),cn(this,"isHovered",Sg,this),cn(this,"isShowAnchor",jg,this),cn(this,"isDragging",Pg,this),cn(this,"isHitable",Ag,this),cn(this,"draggable",Tg,this),cn(this,"visible",Mg,this),In(this,"virtual",!1),In(this,"graphModel",void 0),cn(this,"zIndex",kg,this),cn(this,"state",Dg,this),cn(this,"autoToFront",Ng,this),cn(this,"style",Cg,this),In(this,"BaseType",on.NODE),In(this,"modelType",Ot.NODE),In(this,"additionStateData",void 0),In(this,"targetRules",[]),In(this,"sourceRules",[]),In(this,"moveRules",[]),In(this,"hasSetTargetRules",!1),In(this,"hasSetSourceRules",!1),this.graphModel=c,this.initNodeData(i),this.setAttributes()}var t,n;return t=e,n=[{key:"width",get:function(){return this._width},set:function(i){this._width=i}},{key:"height",get:function(){return this._height},set:function(i){this._height=i}},{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(i){if(i.properties||(i.properties={}),!i.id){var c=this.graphModel.idGenerator,s=c&&c(i.type),f=this.createId();i.id=f||s||xo()}this.formatText(i),En(this,function(h){return ba(h,["id","type","x","y","text","properties","virtual"])}(i)),this.graphModel.overlapMode===Un.INCREASE&&(this.zIndex=i.zIndex||bl())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(i){i.text||(i.text={value:"",x:i.x,y:i.y,draggable:!1,editable:!0}),i.text&&typeof i.text=="string"?i.text={value:i.text,x:i.x,y:i.y,draggable:!1,editable:!0}:i.text&&i.text.editable===void 0&&(i.text.editable=!0)}},{key:"getData",value:function(){var i=this.text,c=i.x,s=i.y,f=i.value,h=this.properties;Object(d.x)(h)&&(h=Object(d.I)(h));var v={id:this.id,type:this.type,x:this.x,y:this.y,properties:h};return this.graphModel.overlapMode===Un.INCREASE&&(v.zIndex=this.zIndex),f&&(v.text={x:c,y:s,value:f}),v}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(d.I)(this.properties)}},{key:"getNodeStyle",value:function(){return jn(jn({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var i=this.graphModel.theme.nodeText;return Xt(i)}},{key:"getAnchorStyle",value:function(i){var c=this.graphModel.theme.anchor;return Xt(c)}},{key:"getAnchorLineStyle",value:function(i){var c=this.graphModel.theme.anchorLine;return Xt(c)}},{key:"getOutlineStyle",value:function(){var i=this.graphModel.theme.outline;return Xt(i)}},{key:"isAllowConnectedAsSource",value:function(i,c,s,f){var h=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var v,_=!0,E=0;E<h.length;E++){var M=h[E];if(!M.validate.call(this,this,i,c,s,f)){_=!1,v=M.message;break}}return{isAllPass:_,msg:v}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(i,c,s,f){var h=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var v,_=!0,E=0;E<h.length;E++){var M=h[E];if(!M.validate.call(this,i,this,c,s,f)){_=!1,v=M.message;break}}return{isAllPass:_,msg:v}}},{key:"isAllowMoveNode",value:function(i,c){var s,f=!0,h=!0,v=hE(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(v.s();!(s=v.n()).done;){var _=(0,s.value)(this,i,c);if(!_)return!1;if(lf(_)==="object"){var E=_;if(E.x===!1&&E.y===!1)return!1;f=f&&E.x,h=h&&E.y}}}catch(M){v.e(M)}finally{v.f()}return{x:f,y:h}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var i=this.anchorsOffset,c=this.id,s=this.x,f=this.y;return i&&i.length>0?i.map(function(h,v){return h.length?(h=h,{id:"".concat(c,"_").concat(v),x:s+h[0],y:f+h[1]}):jn(jn({},h=h),{},{x:s+h.x,y:f+h.y,id:h.id||"".concat(c,"_").concat(v)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(i){return function(c,s){for(var f,h=yl(s),v=Number.MAX_SAFE_INTEGER,_=0;_<h.length;_++){var E=vr(c.x,c.y,h[_].x,h[_].y);E<v&&(v=E,f={index:_,anchor:xy(xy({},h[_]),{},{x:h[_].x,y:h[_].y,id:h[_].id})})}return f}(i,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(){return this.getAnchorsByOffset()}},{key:"getAnchorInfo",value:function(i){if(!dE(i))for(var c=0;c<this.anchors.length;c++){var s=this.anchors[c];if(s.id===i)return s}}},{key:"addNodeMoveRules",value:function(i){this.moveRules.includes(i)||this.moveRules.push(i)}},{key:"move",value:function(i,c){var s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],f=!1,h=!1;if(s)f=!0,h=!0;else{var v=this.isAllowMoveNode(i,c);typeof v=="boolean"?(f=v,h=v):(f=v.x,h=v.y)}if(f){var _=this.x+i;this.x=_,this.text&&this.moveText(i,0)}if(h){var E=this.y+c;this.y=E,this.text&&this.moveText(0,c)}return f||h}},{key:"getMoveDistance",value:function(i,c){var s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],f=!1,h=!1,v=0,_=0;if(s)f=!0,h=!0;else{var E=this.isAllowMoveNode(i,c);typeof E=="boolean"?(f=E,h=E):(f=E.x,h=E.y)}if(f&&i){var M=this.x+i;this.x=M,this.text&&this.moveText(i,0),v=i}if(h&&c){var N=this.y+c;this.y=N,this.text&&this.moveText(0,c),_=c}return[v,_]}},{key:"moveTo",value:function(i,c){var s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],f=i-this.x,h=c-this.y;return!(!s&&!this.isAllowMoveNode(f,h)||(this.text&&this.text&&this.moveText(f,h),this.x=i,this.y=c,0))}},{key:"moveText",value:function(i,c){var s=this.text,f=s.x,h=s.y,v=s.value,_=s.draggable,E=s.editable;this.text={value:v,editable:E,draggable:_,x:f+i,y:h+c}}},{key:"updateText",value:function(i){this.text=jn(jn({},Object(d.I)(this.text)),{},{value:i})}},{key:"setSelected",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=i}},{key:"setHovered",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=i,this.setIsShowAnchor(i)}},{key:"setIsShowAnchor",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=i}},{key:"setHitable",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=i}},{key:"setElementState",value:function(i,c){this.state=i,this.additionStateData=c}},{key:"setProperty",value:function(i,c){this.properties=jn(jn({},Object(d.I)(this.properties)),{},In({},i,bn(c))),this.setAttributes()}},{key:"setProperties",value:function(i){this.properties=jn(jn({},Object(d.I)(this.properties)),bn(i)),this.setAttributes()}},{key:"deleteProperty",value:function(i){delete this.properties[i],this.setAttributes()}},{key:"setStyle",value:function(i,c){this.style=jn(jn({},this.style),{},In({},i,bn(c)))}},{key:"setStyles",value:function(i){this.style=jn(jn({},this.style),bn(i))}},{key:"updateStyles",value:function(i){this.style=jn({},bn(i))}},{key:"setZIndex",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=i}},{key:"updateAttributes",value:function(i){En(this,i)}}],n&&yE(t.prototype,n),e}(),vg=mt(Re.prototype,"type",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gg=mt(Re.prototype,"x",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),bg=mt(Re.prototype,"y",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),mg=mt(Re.prototype,"text",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),_g=mt(Re.prototype,"properties",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Og=mt(Re.prototype,"_width",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),wg=mt(Re.prototype,"_height",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),xg=mt(Re.prototype,"anchorsOffset",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Eg=mt(Re.prototype,"isSelected",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Sg=mt(Re.prototype,"isHovered",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jg=mt(Re.prototype,"isShowAnchor",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pg=mt(Re.prototype,"isDragging",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ag=mt(Re.prototype,"isHitable",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tg=mt(Re.prototype,"draggable",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Mg=mt(Re.prototype,"visible",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),kg=mt(Re.prototype,"zIndex",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Dg=mt(Re.prototype,"state",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Ng=mt(Re.prototype,"autoToFront",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Cg=mt(Re.prototype,"style",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),mt(Re.prototype,"incoming",[d.m],Object.getOwnPropertyDescriptor(Re.prototype,"incoming"),Re.prototype),mt(Re.prototype,"outgoing",[d.m],Object.getOwnPropertyDescriptor(Re.prototype,"outgoing"),Re.prototype),mt(Re.prototype,"addNodeMoveRules",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"addNodeMoveRules"),Re.prototype),mt(Re.prototype,"move",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"move"),Re.prototype),mt(Re.prototype,"getMoveDistance",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"getMoveDistance"),Re.prototype),mt(Re.prototype,"moveTo",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"moveTo"),Re.prototype),mt(Re.prototype,"moveText",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"moveText"),Re.prototype),mt(Re.prototype,"updateText",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"updateText"),Re.prototype),mt(Re.prototype,"setSelected",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setSelected"),Re.prototype),mt(Re.prototype,"setHovered",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setHovered"),Re.prototype),mt(Re.prototype,"setIsShowAnchor",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setIsShowAnchor"),Re.prototype),mt(Re.prototype,"setHitable",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setHitable"),Re.prototype),mt(Re.prototype,"setElementState",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setElementState"),Re.prototype),mt(Re.prototype,"setProperty",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setProperty"),Re.prototype),mt(Re.prototype,"setProperties",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setProperties"),Re.prototype),mt(Re.prototype,"deleteProperty",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"deleteProperty"),Re.prototype),mt(Re.prototype,"setStyle",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setStyle"),Re.prototype),mt(Re.prototype,"setStyles",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setStyles"),Re.prototype),mt(Re.prototype,"updateStyles",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"updateStyles"),Re.prototype),mt(Re.prototype,"setZIndex",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"setZIndex"),Re.prototype),mt(Re.prototype,"updateAttributes",[d.k],Object.getOwnPropertyDescriptor(Re.prototype,"updateAttributes"),Re.prototype),Re);function ff(e){return ff=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},ff(e)}function Bg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function zg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(n),!0).forEach(function(i){Fg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bg(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function vE(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function gE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function pf(){return pf=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=mE(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},pf.apply(this,arguments)}function mE(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ai(e))!==null;);return e}function df(e,t){return df=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},df(e,t)}function _E(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ai(e);if(t){var c=Ai(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return OE(this,n)}}function OE(e,t){if(t&&(ff(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vs(e)}function vs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ai(e)}function Fg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hf(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var mn,$g,Wg,yf=(to=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&df(s,f)})(c,e);var t,n,i=_E(c);function c(){var s;gE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return Fg(vs(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.CIRCLE_NODE),vE(vs(s),"r",Lg,vs(s)),s}return t=c,(n=[{key:"width",get:function(){return 2*this.r}},{key:"height",get:function(){return 2*this.r}},{key:"getNodeStyle",value:function(){var s=pf(Ai(c.prototype),"getNodeStyle",this).call(this),f=this.graphModel.theme.circle;return zg(zg({},s),Xt(f))}},{key:"getDefaultAnchor",value:function(){var s=this.x,f=this.y,h=this.r;return[{x:s,y:f-h,id:"".concat(this.id,"_0")},{x:s+h,y:f,id:"".concat(this.id,"_1")},{x:s,y:f+h,id:"".concat(this.id,"_2")},{x:s-h,y:f,id:"".concat(this.id,"_3")}]}}])&&bE(t.prototype,n),c}(no),Lg=hf(to.prototype,"r",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),hf(to.prototype,"width",[d.m],Object.getOwnPropertyDescriptor(to.prototype,"width"),to.prototype),hf(to.prototype,"height",[d.m],Object.getOwnPropertyDescriptor(to.prototype,"height"),to.prototype),to);o(127);function vf(e){return vf=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},vf(e)}function gf(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Gg(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Gg(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  70. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(n),!0).forEach(function(i){Yg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Xg(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function wE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function bf(){return bf=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=EE(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},bf.apply(this,arguments)}function EE(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Mi(e))!==null;);return e}function mf(e,t){return mf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},mf(e,t)}function SE(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Mi(e);if(t){var c=Mi(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return jE(this,n)}}function jE(e,t){if(t&&(vf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ti(e)}function Ti(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Mi(e)}function Yg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var Cr,Vg,Kg,_f=(mn=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&mf(s,f)})(c,e);var t,n,i=SE(c);function c(){var s;wE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return Yg(Ti(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.DIAMOND_NODE),Xg(Ti(s),"rx",$g,Ti(s)),Xg(Ti(s),"ry",Wg,Ti(s)),s}return t=c,(n=[{key:"getNodeStyle",value:function(){var s=bf(Mi(c.prototype),"getNodeStyle",this).call(this),f=this.graphModel.theme.diamond;return Ug(Ug({},s),Xt(f))}},{key:"points",get:function(){var s=this.x,f=this.y,h=this.rx,v=this.ry;return[[s,f-v],[s+h,f],[s,f+v],[s-h,f]]}},{key:"pointsPosition",get:function(){return this.points.map(function(s){return{x:s[0],y:s[1]}})}},{key:"width",get:function(){var s=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(h){var v=gf(h,1)[0];v<s&&(s=v),v>f&&(f=v)}),f-s}},{key:"height",get:function(){var s=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(h){var v=gf(h,2)[1];v<s&&(s=v),v>f&&(f=v)}),f-s}},{key:"getDefaultAnchor",value:function(){var s=this;return this.points.map(function(f,h){var v=gf(f,2);return{x:v[0],y:v[1],id:"".concat(s.id,"_").concat(h)}})}}])&&xE(t.prototype,n),c}(no),$g=ki(mn.prototype,"rx",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),Wg=ki(mn.prototype,"ry",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),ki(mn.prototype,"points",[d.m],Object.getOwnPropertyDescriptor(mn.prototype,"points"),mn.prototype),ki(mn.prototype,"pointsPosition",[d.m],Object.getOwnPropertyDescriptor(mn.prototype,"pointsPosition"),mn.prototype),ki(mn.prototype,"width",[d.m],Object.getOwnPropertyDescriptor(mn.prototype,"width"),mn.prototype),ki(mn.prototype,"height",[d.m],Object.getOwnPropertyDescriptor(mn.prototype,"height"),mn.prototype),mn);function Of(e){return Of=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},Of(e)}function qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Zg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qg(Object(n),!0).forEach(function(i){Qg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Jg(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function PE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wf(){return wf=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=TE(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},wf.apply(this,arguments)}function TE(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ni(e))!==null;);return e}function xf(e,t){return xf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xf(e,t)}function ME(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ni(e);if(t){var c=Ni(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return kE(this,n)}}function kE(e,t){if(t&&(Of(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Di(e)}function Di(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ni(e)}function Qg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gs(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var or,eb,Ef=(Cr=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&xf(s,f)})(c,e);var t,n,i=ME(c);function c(){var s;PE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return Qg(Di(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.ELLIPSE_NODE),Jg(Di(s),"rx",Vg,Di(s)),Jg(Di(s),"ry",Kg,Di(s)),s}return t=c,(n=[{key:"getNodeStyle",value:function(){var s=wf(Ni(c.prototype),"getNodeStyle",this).call(this),f=this.graphModel.theme.ellipse;return Zg(Zg({},s),Xt(f))}},{key:"width",get:function(){return 2*this.rx}},{key:"height",get:function(){return 2*this.ry}},{key:"getDefaultAnchor",value:function(){var s=this.x,f=this.y,h=this.rx,v=this.ry;return[{x:s,y:f-v,id:"".concat(this.id,"_0")},{x:s+h,y:f,id:"".concat(this.id,"_1")},{x:s,y:f+v,id:"".concat(this.id,"_2")},{x:s-h,y:f,id:"".concat(this.id,"_3")}]}}])&&AE(t.prototype,n),c}(no),Vg=gs(Cr.prototype,"rx",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),Kg=gs(Cr.prototype,"ry",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),gs(Cr.prototype,"width",[d.m],Object.getOwnPropertyDescriptor(Cr.prototype,"width"),Cr.prototype),gs(Cr.prototype,"height",[d.m],Object.getOwnPropertyDescriptor(Cr.prototype,"height"),Cr.prototype),Cr);function Sf(e){return Sf=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},Sf(e)}function jf(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return tb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return tb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  71. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function rb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(i){ob(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function DE(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function NE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Pf(){return Pf=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=RE(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},Pf.apply(this,arguments)}function RE(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ci(e))!==null;);return e}function Af(e,t){return Af=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Af(e,t)}function IE(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ci(e);if(t){var c=Ci(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return LE(this,n)}}function LE(e,t){if(t&&(Sf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bs(e)}function bs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ci(e)}function ob(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var Tf,ib,Mf=(or=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Af(s,f)})(c,e);var t,n,i=IE(c);function c(){var s;NE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return ob(bs(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.POLYGON_NODE),DE(bs(s),"points",eb,bs(s)),s}return t=c,(n=[{key:"getNodeStyle",value:function(){var s=Pf(Ci(c.prototype),"getNodeStyle",this).call(this),f=this.graphModel.theme.polygon;return rb(rb({},s),Xt(f))}},{key:"pointsPosition",get:function(){var s=this.x,f=this.y,h=this.width,v=this.height;return this.points.map(function(_){return{x:_[0]+s-h/2,y:_[1]+f-v/2}})}},{key:"width",get:function(){var s=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(h){var v=jf(h,1)[0];v<s&&(s=v),v>f&&(f=v)}),f-s}},{key:"height",get:function(){var s=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(h){var v=jf(h,2)[1];v<s&&(s=v),v>f&&(f=v)}),f-s}},{key:"getDefaultAnchor",value:function(){var s=this,f=this.x,h=this.y,v=this.width,_=this.height;return this.points.map(function(E,M){var N=jf(E,2),$=N[0],Y=N[1];return{x:f+$-v/2,y:h+Y-_/2,id:"".concat(s.id,"_").concat(M)}})}}])&&CE(t.prototype,n),c}(no),eb=ms(or.prototype,"points",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),ms(or.prototype,"pointsPosition",[d.m],Object.getOwnPropertyDescriptor(or.prototype,"pointsPosition"),or.prototype),ms(or.prototype,"width",[d.m],Object.getOwnPropertyDescriptor(or.prototype,"width"),or.prototype),ms(or.prototype,"height",[d.m],Object.getOwnPropertyDescriptor(or.prototype,"height"),or.prototype),or);function kf(e){return kf=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},kf(e)}function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function ub(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ab(Object(n),!0).forEach(function(i){sb(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function BE(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function zE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Df(){return Df=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=$E(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},Df.apply(this,arguments)}function $E(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ri(e))!==null;);return e}function Nf(e,t){return Nf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Nf(e,t)}function WE(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ri(e);if(t){var c=Ri(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return GE(this,n)}}function GE(e,t){if(t&&(kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _s(e)}function _s(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ri(e){return Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ri(e)}function sb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ao,Cf=(Tf=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Nf(s,f)})(c,e);var t,n,i=WE(c);function c(){var s;zE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return sb(_s(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.RECT_NODE),BE(_s(s),"radius",ib,_s(s)),s}return t=c,(n=[{key:"getDefaultAnchor",value:function(){var s=this.x,f=this.y,h=this.width,v=this.height;return[{x:s,y:f-v/2,id:"".concat(this.id,"_0")},{x:s+h/2,y:f,id:"".concat(this.id,"_1")},{x:s,y:f+v/2,id:"".concat(this.id,"_2")},{x:s-h/2,y:f,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var s=Df(Ri(c.prototype),"getNodeStyle",this).call(this),f=this.graphModel.theme.rect;return ub(ub({},s),Xt(f))}}])&&FE(t.prototype,n),c}(no),ib=function(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}(Tf.prototype,"radius",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tf);function Rf(e){return Rf=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},Rf(e)}function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function lb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(n),!0).forEach(function(i){pb(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function HE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function If(){return If=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(e,t,n){var i=XE(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(arguments.length<3?e:n):c.value}},If.apply(this,arguments)}function XE(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ii(e))!==null;);return e}function Lf(e,t){return Lf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Lf(e,t)}function YE(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ii(e);if(t){var c=Ii(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return VE(this,n)}}function VE(e,t){if(t&&(Rf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fb(e)}function fb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ii(e){return Ii=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ii(e)}function pb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function db(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var Bf=(Ao=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Lf(s,f)})(c,e);var t,n,i=YE(c);function c(){var s;HE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return pb(fb(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.TEXT_NODE),s}return t=c,(n=[{key:"getTextStyle",value:function(){var s=If(Ii(c.prototype),"getTextStyle",this).call(this),f=this.graphModel.theme.text;return lb(lb({},s),Xt(f))}},{key:"width",get:function(){var s=String(this.text.value).split(/[\r\n]/g),f=this.getTextStyle().fontSize;return gl({rows:s,fontSize:f,rowsLength:s.length}).width}},{key:"height",get:function(){var s=String(this.text.value).split(/[\r\n]/g),f=this.getTextStyle().fontSize;return gl({rows:s,fontSize:f,rowsLength:s.length}).height}}])&&UE(t.prototype,n),c}(no),db(Ao.prototype,"width",[d.m],Object.getOwnPropertyDescriptor(Ao.prototype,"width"),Ao.prototype),db(Ao.prototype,"height",[d.m],Object.getOwnPropertyDescriptor(Ao.prototype,"height"),Ao.prototype),Ao);function zf(e){return zf=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},zf(e)}function KE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ff(e,t){return Ff=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ff(e,t)}function ZE(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Os(e);if(t){var c=Os(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return JE(this,n)}}function JE(e,t){if(t&&(zf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hb(e)}function hb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Os(e)}function QE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br,yb,vb,gb,$f=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Ff(s,f)})(c,e);var t,n,i=ZE(c);function c(){var s;KE(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return QE(hb(s=i.call.apply(i,[this].concat(h))),"modelType",Ot.HTML_NODE),s}return t=c,(n=[{key:"getDefaultAnchor",value:function(){var s=this.x,f=this.y,h=this.width,v=this.height;return[{x:s,y:f-v/2,id:"".concat(this.id,"_0")},{x:s+h/2,y:f,id:"".concat(this.id,"_1")},{x:s,y:f+v/2,id:"".concat(this.id,"_2")},{x:s-h/2,y:f,id:"".concat(this.id,"_3")}]}}])&&qE(t.prototype,n),c}(no);function bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Wf(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function eS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function mb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(e,t,n,i,c){var s={};return Object.keys(i).forEach(function(f){s[f]=i[f]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce(function(f,h){return h(e,t,f)||f},s),c&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(c):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(e,t,s),s=null),s}var _b=(br=function(){function e(i){(function(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")})(this,e),mb(this,"graphModel",void 0),Wf(this,"isShowHorizontal",yb,this),Wf(this,"isShowVertical",vb,this),Wf(this,"position",gb,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=i}var t,n;return t=e,n=[{key:"getStyle",value:function(){return function(i){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{};c%2?bb(Object(s),!0).forEach(function(f){mb(i,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):bb(Object(s)).forEach(function(f){Object.defineProperty(i,f,Object.getOwnPropertyDescriptor(s,f))})}return i}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(i,c){for(var s=i.x,f=i.y,h=!1,v=!1,_=0;_<c.length;_++){var E=c[_];if(E.id!==i.id&&(s===E.x&&(h=!0),f===E.y&&(v=!0),h&&v))break}return{isShowVertical:h,isShowHorizontal:v,position:{x:s,y:f}}}},{key:"getHorizontalSnapline",value:function(i,c){var s,f,h=!1,v=i.id;if(v){var _=this.graphModel.fakerNode;if(_&&_.id===v)f=Xn(_);else{var E=this.graphModel.getNodeModelById(v);f=Xn(E)}}for(var M=0;M<c.length;M++){var N=c[M];if(N.id!==i.id){var $=Xn(N);if($.minY===f.minY||$.maxY===f.minY){h=!0,s=f.minY;break}if($.minY===f.maxY||$.maxY===f.maxY){h=!0,s=f.maxY;break}}}return En({isShowHorizontal:h,position:{y:s}})}},{key:"getVerticalSnapline",value:function(i,c){var s,f,h=!1,v=i.id;if(v){var _=this.graphModel.fakerNode;if(_&&_.id===v)f=Xn(_);else{var E=this.graphModel.getNodeModelById(v);f=Xn(E)}}for(var M=0;M<c.length;M++){var N=c[M];if(N.id!==i.id){var $=Xn(N);if($.minX===f.minX||$.maxX===f.minX){h=!0,s=f.minX;break}if($.minX===f.maxX||$.maxX===f.maxX){h=!0,s=f.maxX;break}}}return En({isShowVertical:h,position:{x:s}})}},{key:"getSnapLinePosition",value:function(i,c){var s=this.getCenterSnapLine(i,c),f=s.isShowHorizontal,h=s.isShowVertical;if(!f){var v=this.getHorizontalSnapline(i,c);v.isShowHorizontal&&(s.isShowHorizontal=v.isShowHorizontal,s.position.y=v.position.y)}if(!h){var _=this.getVerticalSnapline(i,c);_.isShowVertical&&(s.isShowVertical=_.isShowVertical,s.position.x=_.position.x)}return s}},{key:"setSnaplineInfo",value:function(i){var c=i.isShowHorizontal,s=i.isShowVertical,f=i.position;this.position=f,this.isShowHorizontal=c,this.isShowVertical=s}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(i){var c=this.graphModel.nodes,s=this.getSnapLinePosition(i,c);this.setSnaplineInfo(s)}}],n&&eS(t.prototype,n),e}(),yb=ka(br.prototype,"isShowHorizontal",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vb=ka(br.prototype,"isShowVertical",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gb=ka(br.prototype,"position",[d.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ka(br.prototype,"clearSnapline",[d.k],Object.getOwnPropertyDescriptor(br.prototype,"clearSnapline"),br.prototype),ka(br.prototype,"setNodeSnapLine",[d.k],Object.getOwnPropertyDescriptor(br.prototype,"setNodeSnapLine"),br.prototype),br),Da=new Map,Ob=function(e){var t=xo(),n=window.requestAnimationFrame(function i(){if(e(),Da.get(t)){var c=window.requestAnimationFrame(i);Da.set(t,c)}});return Da.set(t,n),t},ws=function(e){var t=Da.get(e);t&&(window.cancelAnimationFrame(t),Da.delete(e))};function Gf(e){return Gf=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},Gf(e)}function Na(){return Na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Na.apply(this,arguments)}function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wb(Object(n),!0).forEach(function(i){Ir(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function tS(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return xb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return xb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  72. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function nS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Hf(e,t){return Hf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Hf(e,t)}function rS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Es(e);if(t){var c=Es(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return oS(this,n)}}function oS(e,t){if(t&&(Gf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rr(e)}function Rr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Es(e)}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iS=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Hf(s,f)})(c,e);var t,n,i=rS(c);function c(){var s;return function(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}(this,c),Ir(Rr(s=i.call(this)),"preTargetNode",void 0),Ir(Rr(s),"sourceRuleResults",void 0),Ir(Rr(s),"targetRuleResults",void 0),Ir(Rr(s),"dragHandler",void 0),Ir(Rr(s),"t",void 0),Ir(Rr(s),"onDragStart",function(f){var h=f.event,v=s.props,_=v.anchorData,E=v.nodeModel,M=v.graphModel,N=M.overlapMode;M.selectNodeById(E.id),N!==Un.INCREASE&&E.autoToFront&&M.toFront(E.id),M.eventCenter.emit(at.ANCHOR_DRAGSTART,{data:_,e:h,nodeModel:E}),s.setState({startX:_.x,startY:_.y,endX:_.x,endY:_.y})}),Ir(Rr(s),"onDragging",function(f){var h=f.event,v=s.props,_=v.graphModel,E=v.nodeModel,M=v.anchorData,N=_.transformModel,$=_.eventCenter,Y=_.width,Q=_.height,se=_.editConfigModel,ae=se.autoExpand,de=se.stopMoveGraph,we=h.clientX,ke=h.clientY,Pe=_.getPointByClient({x:we,y:ke}),Xe=Pe.domOverlayPosition,De=Xe.x,Ge=Xe.y,$e=Pe.canvasOverlayPosition,ht=$e.x,Ct=$e.y;s.t&&ws(s.t);var Pt=[];De<10?Pt=[10,0]:De+10>Y?Pt=[-10,0]:Ge<10?Pt=[0,10]:Ge+10>Q&&(Pt=[0,-10]),s.setState({endX:ht,endY:Ct,dragging:!0}),s.moveAnchorEnd(ht,Ct),Pt.length>0&&!de&&ae&&(s.t=Ob(function(){var zt=tS(Pt,2),tn=zt[0],ln=zt[1];N.translate(tn,ln);var An=s.state,zr=An.endX,ir=An.endY;s.setState({endX:zr-tn,endY:ir-ln}),s.moveAnchorEnd(zr-tn,ir-ln)})),$.emit(at.ANCHOR_DRAG,{data:M,e:h,nodeModel:E})}),Ir(Rr(s),"onDragEnd",function(f){var h=f.event;s.t&&ws(s.t),s.checkEnd(h),s.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),s.sourceRuleResults.clear(),s.targetRuleResults.clear();var v=s.props,_=v.graphModel,E=v.nodeModel,M=v.anchorData;_.eventCenter.emit(at.ANCHOR_DRAGEND,{data:M,e:h,nodeModel:E})}),Ir(Rr(s),"checkEnd",function(f){var h=s.props,v=h.graphModel,_=h.nodeModel,E=h.anchorData,M=E.x,N=E.y,$=E.id,Y=(v.edgeType,s.state),Q=Y.endX,se=Y.endY,ae=Y.dragging,de=Uu({x:Q,y:se},v);if(s.preTargetNode&&s.preTargetNode.state!==Mt.DEFAULT&&s.preTargetNode.setElementState(Mt.DEFAULT),ae&&de&&de.node){var we=de.node,ke=de.anchor.id,Pe="".concat(_.id,"_").concat(we.id,"_").concat(ke,"_").concat($),Xe=s.sourceRuleResults.get(Pe)||{},De=Xe.isAllPass,Ge=Xe.msg,$e=s.targetRuleResults.get(Pe)||{},ht=$e.isAllPass,Ct=$e.msg;if(De&&ht){we.setElementState(Mt.DEFAULT);var Pt=v.edgeGenerator(_.getData(),v.getNodeModelById(de.node.id).getData()),zt=v.addEdge(xs(xs({},Pt),{},{sourceNodeId:_.id,sourceAnchorId:$,startPoint:{x:M,y:N},targetNodeId:de.node.id,targetAnchorId:de.anchor.id,endPoint:{x:de.anchor.x,y:de.anchor.y}})),tn=s.props.anchorData;v.eventCenter.emit(at.ANCHOR_DROP,{data:tn,e:f,nodeModel:_,edgeModel:zt})}else{var ln=we.getData();v.eventCenter.emit(at.CONNECTION_NOT_ALLOWED,{data:ln,msg:Ct||Ge})}}}),s.sourceRuleResults=new Map,s.targetRuleResults=new Map,s.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},s.dragHandler=new Jr({onDragStart:s.onDragStart,onDragging:s.onDragging,onDragEnd:s.onDragEnd}),s}return t=c,(n=[{key:"getAnchorShape",value:function(){var s=this.props,f=s.anchorData,h=s.style,v=s.node.getAnchorShape(f);if(v)return v;var _=f.x,E=f.y,M=xs(xs({},h),h.hover);return Object(re.g)("g",null,Object(re.g)(Aa,Na({className:"lf-node-anchor-hover"},M,{x:_,y:E})),Object(re.g)(Aa,Na({className:"lf-node-anchor"},h,{x:_,y:E})))}},{key:"moveAnchorEnd",value:function(s,f){var h=this.props,v=h.graphModel,_=h.nodeModel,E=h.anchorData,M=Uu({x:s,y:f},v);if(M){var N=M.node,$=M.anchor.id;if(this.preTargetNode&&this.preTargetNode!==M.node&&this.preTargetNode.setElementState(Mt.DEFAULT),E.id===$)return;this.preTargetNode=N;var Y="".concat(_.id,"_").concat(N.id,"_").concat($,"_").concat(E.id);if(!this.targetRuleResults.has(Y)){var Q=M.anchor,se=_.isAllowConnectedAsSource(N,E,Q),ae=N.isAllowConnectedAsTarget(_,E,Q);this.sourceRuleResults.set(Y,Oa(se)),this.targetRuleResults.set(Y,Oa(ae))}var de=this.sourceRuleResults.get(Y).isAllPass,we=this.targetRuleResults.get(Y).isAllPass;de&&we?N.setElementState(Mt.ALLOW_CONNECT):N.setElementState(Mt.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==Mt.DEFAULT&&this.preTargetNode.setElementState(Mt.DEFAULT)}},{key:"isShowLine",value:function(){var s=this.state,f=s.startX,h=s.startY,v=s.endX,_=s.endY;return vr(f,h,v,_)>10}},{key:"render",value:function(){var s=this,f=this.state,h=f.startX,v=f.startY,_=f.endX,E=f.endY,M=this.props,N=M.anchorData.edgeAddable,$=M.edgeStyle;return Object(re.g)("g",{className:"lf-anchor"},Object(re.g)("g",{onMouseDown:function(Y){N!==!1&&s.dragHandler.handleMouseDown(Y)}},this.getAnchorShape()),this.isShowLine()&&Object(re.g)(ji,Na({x1:h,y1:v,x2:_,y2:E},$,{"pointer-events":"none"})))}}])&&nS(t.prototype,n),c}(re.a);o(80);function Eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function aS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(n),!0).forEach(function(i){uS(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function uS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uf(e){return Uf=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},Uf(e)}function sS(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Sb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Sb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  73. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Sb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function jb(e){var t=e.x,n=t===void 0?0:t,i=e.y,c=i===void 0?0:i,s=e.value,f=e.fontSize,h=e.fill,v=h===void 0?"currentColor":h,_=e.overflowMode,E=_===void 0?"default":_,M=e.textWidth,N=M===void 0?"":M,$=e.model,Y={textAnchor:"middle","dominant-baseline":"middle",x:n,y:c,fill:v};if(Object.entries(e).forEach(function(ke){var Pe=sS(ke,2),Xe=Pe[0],De=Pe[1];Uf(De)!=="object"&&(Y[Xe]=De)}),s){var Q=String(s).split(/[\r\n]/g),se=Q.length;if(E!=="default"){var ae=$.BaseType,de=$.modelType;if(ae===on.NODE&&de!==Ot.TEXT_NODE||ae===on.EDGE&&N)return function(ke){var Pe=ke.value,Xe=ke.fontSize,De=ke.model,Ge=ke.fontFamily,$e=Ge===void 0?"":Ge,ht=ke.lineHeight,Ct=ke.wrapPadding,Pt=Ct===void 0?"0, 0":Ct,zt=ke.overflowMode,tn=ke.x,ln=ke.y,An=De.width,zr=De.textHeight,ir=ke.textWidth||An,zi=String(Pe).split(/[\r\n]/g),Ys=zi.length,Vs=Ky({rows:zi,style:{fontSize:"".concat(Xe,"px"),width:"".concat(ir,"px"),fontFamily:$e,lineHeight:ht,padding:Pt},rowsLength:Ys,className:"lf-get-text-height"}),ei=De.height>Vs?De.height:Vs;zr&&(ei=zr);var ko=zt==="ellipsis";return ko&&(ei=Xe+2),Object(re.g)("g",null,Object(re.g)("foreignObject",{width:ir,height:ei,x:tn-ir/2,y:ln-ei/2},Object(re.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:ei,width:ir,padding:Pt}},Object(re.g)("div",{className:ko?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:ko?zi.join(""):"",style:aS({},ke)},zi.map(function(Do){return Object(re.g)("div",{className:"lf-node-text--auto-wrap-inner"},Do)})))))}(e)}if(se>1){var we=Q.map(function(ke,Pe){var Xe=(Pe-(se-1)/2)*(f+2);return Object(re.g)("tspan",{className:"lf-text-tspan",x:n,y:c+Xe},ke)});return Object(re.g)("text",Y,we)}return Object(re.g)("text",Y,s)}}function Xf(e){return Xf=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},Xf(e)}function Yf(){return Yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Yf.apply(this,arguments)}function cS(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Pb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Pb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  74. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function lS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Vf(e,t){return Vf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vf(e,t)}function fS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ss(e);if(t){var c=Ss(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return pS(this,n)}}function pS(e,t){if(t&&(Xf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return To(e)}function To(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ss(e){return Ss=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ss(e)}function Zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ab=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Vf(s,f)})(c,e);var t,n,i=fS(c);function c(s){var f;(function(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")})(this,c),Zo(To(f=i.call(this)),"dragHandler",void 0),Zo(To(f),"sumDeltaX",0),Zo(To(f),"sumDeltaY",0),Zo(To(f),"stepDrag",void 0),Zo(To(f),"onDragging",function(v){var _=v.deltaX,E=v.deltaY,M=f.props,N=M.model,$=cS(M.graphModel.transformModel.fixDeltaXY(_,E),2),Y=$[0],Q=$[1];N.moveText(Y,Q)}),Zo(To(f),"dblClickHandler",function(){f.props.editable&&f.props.model.setElementState(Mt.TEXT_EDIT)}),Zo(To(f),"mouseDownHandle",function(v){var _=f.props,E=_.draggable,M=_.model,N=_.graphModel.editConfigModel.nodeTextDraggable;(E||N)&&(f.stepDrag.model=M,f.stepDrag.handleMouseDown(v))}),s.model;var h=s.draggable;return f.stepDrag=new Jr({onDragging:f.onDragging,step:1,isStopPropagation:h}),f}return t=c,(n=[{key:"getShape",value:function(){var s=this.props,f=s.model,h=s.graphModel,v=f.text,_=h.editConfigModel,E=v.value,M=v.x,N=v.y,$=v.editable,Y=v.draggable,Q={x:M,y:N,className:"",value:E};$?Q.className="lf-element-text":Y||_.nodeTextDraggable?Q.className="lf-text-draggable":Q.className="lf-text-disabled";var se=f.getTextStyle();return Object(re.g)(jb,Yf({},Q,se,{model:f}))}},{key:"render",value:function(){if(this.props.model.text)return Object(re.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&lS(t.prototype,n),c}(re.a),dS=window.navigator.userAgent.match(/MSIE|Trident/)!==null;function Kf(e){return Kf=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},Kf(e)}function js(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Tb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Tb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  75. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Mb(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qf(e,t){return qf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qf(e,t)}function hS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ps(e);if(t){var c=Ps(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return yS(this,n)}}function yS(e,t){if(t&&(Kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _n(e)}function _n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ps(e)}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ro=function(e){(function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&qf(f,h)})(s,e);var t,n,i,c=hS(s);function s(f){var h;(function(N,$){if(!(N instanceof $))throw new TypeError("Cannot call a class as a function")})(this,s),Pn(_n(h=c.call(this)),"t",void 0),Pn(_n(h),"moveOffset",void 0),Pn(_n(h),"stepDrag",void 0),Pn(_n(h),"contextMenuTime",void 0),Pn(_n(h),"startTime",void 0),Pn(_n(h),"clickTimer",void 0),Pn(_n(h),"onDragStart",function(N){var $=N.event,Y=$.clientX,Q=$.clientY,se=h.props,ae=se.model,de=se.graphModel.getPointByClient({x:Y,y:Q}).canvasOverlayPosition,we=de.x,ke=de.y;h.moveOffset={x:ae.x-we,y:ae.y-ke}}),Pn(_n(h),"onDragging",function(N){var $=N.event,Y=h.props,Q=Y.model,se=Y.graphModel,ae=se.editConfigModel,de=ae.stopMoveGraph,we=ae.autoExpand,ke=se.transformModel,Pe=se.selectNodes,Xe=se.width,De=se.height,Ge=se.gridSize;Q.isDragging=!0;var $e=$.clientX,ht=$.clientY,Ct=se.getPointByClient({x:$e,y:ht}).canvasOverlayPosition,Pt=Ct.x,zt=Ct.y,tn=js(ke.CanvasPointToHtmlPoint([Pt,zt]),2),ln=tn[0],An=tn[1];if(Pt+=h.moveOffset.x,zt+=h.moveOffset.y,Pt=wo(Pt,Ge),zt=wo(zt,Ge),Xe&&De){if(!we||de||!(ln<0||An<0||ln>Xe||An>De)){var zr=js(ke.CanvasPointToHtmlPoint([Pt-Q.width/2,zt-Q.height/2]),2),ir=zr[0],zi=zr[1],Ys=js(ke.CanvasPointToHtmlPoint([Pt+Q.width/2,zt+Q.height/2]),2),Vs=Ys[0],ei=Ys[1],ko=Math.max(Ge,20),Do=[];ir<0?Do=[ko,0]:Vs>se.width?Do=[-ko,0]:zi<0?Do=[0,ko]:ei>se.height&&(Do=[0,-ko]),h.t&&ws(h.t);var Ks=Pe.map(function(qs){return qs.id});Ks.indexOf(Q.id)===-1&&(Ks=[Q.id]),Do.length>0&&!de&&we?h.t=Ob(function(){var qs=js(Do,2),fm=qs[0],pm=qs[1];ke.translate(fm,pm);var oP=-fm/ke.SCALE_X,iP=-pm/ke.SCALE_X;se.moveNodes(Ks,oP,iP)}):se.moveNodes(Ks,Pt-Q.x,zt-Q.y)}}else se.moveNode2Coordinate(Q.id,Pt,zt)}),Pn(_n(h),"onDragEnd",function(){h.t&&ws(h.t),h.props.model.isDragging=!1}),Pn(_n(h),"handleClick",function(N){if(h.startTime&&!(new Date().getTime()-h.startTime>200)){var $=h.props,Y=$.model,Q=$.graphModel,se={data:Y.getData(),e:N,position:Q.getPointByClient({x:N.clientX,y:N.clientY}),isSelected:!1,isMultiple:!1},ae=N.button===2,de=N.detail===2;if(!ae){var we=Q.editConfigModel,ke=Oy(N,we);se.isMultiple=ke,Y.isSelected&&!de&&ke?(se.isSelected=!1,Y.setSelected(!1)):(Q.selectNodeById(Y.id,ke),se.isSelected=!0,h.toFront()),de?(we.nodeTextEdit&&Y.text.editable&&(Y.setSelected(!1),Q.setElementStateById(Y.id,Mt.TEXT_EDIT)),Q.eventCenter.emit(at.NODE_DBCLICK,se)):(Q.eventCenter.emit(at.ELEMENT_CLICK,se),Q.eventCenter.emit(at.NODE_CLICK,se))}}}),Pn(_n(h),"handleContextMenu",function(N){N.preventDefault();var $=h.props,Y=$.model,Q=$.graphModel,se=Y.getData(),ae=Q.getPointByClient({x:N.clientX,y:N.clientY});Q.setElementStateById(Y.id,Mt.SHOW_MENU,ae.domOverlayPosition),Y.isSelected||Q.selectNodeById(Y.id),Q.eventCenter.emit(at.NODE_CONTEXTMENU,{data:se,e:N,position:ae}),h.toFront()}),Pn(_n(h),"handleMouseDown",function(N){var $=h.props,Y=$.model,Q=$.graphModel;h.startTime=new Date().getTime(),Q.editConfigModel.adjustNodePosition&&Y.draggable&&h.stepDrag&&h.stepDrag.handleMouseDown(N)}),Pn(_n(h),"setHoverON",function(N){var $=h.props,Y=$.model,Q=$.graphModel;if(!Y.isHovered){var se=Y.getData();Y.setHovered(!0),Q.eventCenter.emit(at.NODE_MOUSEENTER,{data:se,e:N})}}),Pn(_n(h),"setHoverOFF",function(N){var $=h.props,Y=$.model,Q=$.graphModel,se=Y.getData();Y.isHovered&&(Y.setHovered(!1),Q.eventCenter.emit(at.NODE_MOUSELEAVE,{data:se,e:N}))}),Pn(_n(h),"onMouseOut",function(N){dS&&h.setHoverOFF(N)});var v=f.graphModel,_=v.gridSize,E=v.eventCenter,M=f.model;return h.stepDrag=new Jr({onDragStart:h.onDragStart,onDragging:h.onDragging,onDragEnd:h.onDragEnd,step:_,eventType:"NODE",isStopPropagation:!1,eventCenter:E,model:M}),h}return t=s,i=[{key:"getModel",value:function(f){return f}}],(n=[{key:"getAnchorShape",value:function(f){return null}},{key:"getAnchors",value:function(){var f=this,h=this.props,v=h.model,_=h.graphModel,E=v.isSelected,M=v.isHitable,N=v.isDragging,$=v.isShowAnchor;return M&&(E||$)&&!N?$u(v.anchors,function(Y,Q){var se=v.getAnchorLineStyle(Y),ae=v.getAnchorStyle(Y);return Object(re.g)(iS,{anchorData:Y,node:f,style:ae,edgeStyle:se,anchorIndex:Q,nodeModel:v,graphModel:_,setHoverOFF:f.setHoverOFF})}):[]}},{key:"getText",value:function(){var f=this.props,h=f.model,v=f.graphModel;if(h.state===Mt.TEXT_EDIT)return"";if(h.text){var _=v.editConfigModel,E=!1;return(h.text.draggable||_.nodeTextDraggable)&&(E=!0),Object(re.g)(Ab,{editable:_.nodeTextEdit&&h.text.editable,model:h,graphModel:v,draggable:E})}}},{key:"getStateClassName",value:function(){var f=this.props.model,h=f.state,v=f.isDragging,_=f.isSelected,E="lf-node";switch(h){case Mt.ALLOW_CONNECT:E+=" lf-node-allow";break;case Mt.NOT_ALLOW_CONNECT:E+=" lf-node-not-allow";break;default:E+=" lf-node-default"}return v&&(E+=" lf-isDragging"),_&&(E+=" lf-node-selected"),E}},{key:"toFront",value:function(){var f=this.props,h=f.model,v=f.graphModel;v.overlapMode!==Un.INCREASE&&h.autoToFront&&v.toFront(h.id)}},{key:"render",value:function(){var f,h=this.props,v=h.model,_=h.graphModel,E=_.editConfigModel,M=E.hideAnchors,N=E.adjustNodePosition,$=_.gridSize,Y=_.transformModel.SCALE_X,Q=v.isHitable,se=v.draggable,ae=Object(re.g)("g",{className:"lf-node-content"},this.getShape(),this.getText(),M?null:this.getAnchors());return Q?(N&&se&&this.stepDrag.setStep($*Y),f=Object(re.g)("g",{className:this.getStateClassName(),onMouseDown:this.handleMouseDown,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},ae)):f=Object(re.g)("g",{className:this.getStateClassName()},ae),f}}])&&Mb(t.prototype,n),i&&Mb(t,i),s}(re.a);function Zf(e){return Zf=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},Zf(e)}function Jf(){return Jf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Jf.apply(this,arguments)}function vS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Qf(e,t){return Qf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qf(e,t)}function bS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=As(e);if(t){var c=As(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return mS(this,n)}}function mS(e,t){if(t&&(Zf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function As(e){return As=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},As(e)}var ep=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Qf(s,f)})(c,e);var t,n,i=bS(c);function c(){return vS(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getShape",value:function(){var s=this.props.model,f=s.getNodeStyle();return Object(re.g)(jo,Jf({},f,{x:s.x,y:s.y,width:s.width,height:s.height,radius:s.radius}))}}])&&gS(t.prototype,n),c}(ro);function tp(e){return tp=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},tp(e)}function np(){return np=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},np.apply(this,arguments)}function _S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function rp(e,t){return rp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},rp(e,t)}function wS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ts(e);if(t){var c=Ts(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return xS(this,n)}}function xS(e,t){if(t&&(tp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ts(e)}var op=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&rp(s,f)})(c,e);var t,n,i=wS(c);function c(){return _S(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getShape",value:function(){var s=this.props.model,f=s.x,h=s.y,v=s.r,_=s.getNodeStyle();return Object(re.g)(Aa,np({},_,{x:f,y:h,r:v}))}}])&&OS(t.prototype,n),c}(ro);function ip(e){return ip=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},ip(e)}function ES(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return kb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return kb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  76. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function kb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Db(e){var t=e.points,n=e.className,i={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(e).forEach(function(c){var s=ES(c,2),f=s[0],h=s[1];ip(h)!=="object"&&(i[f]=h)}),i.className=n?"lf-basic-shape ".concat(n):"lf-basic-shape",i.points=t.map(function(c){return c.join(",")}).join(" "),Object(re.g)("polygon",i)}function ap(e){return ap=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},ap(e)}function up(){return up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},up.apply(this,arguments)}function SS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function sp(e,t){return sp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},sp(e,t)}function PS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ms(e);if(t){var c=Ms(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return AS(this,n)}}function AS(e,t){if(t&&(ap(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ms(e)}var cp=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&sp(s,f)})(c,e);var t,n,i=PS(c);function c(){return SS(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getShape",value:function(){var s=this.props.model,f=s.x,h=s.y,v=s.width,_=s.height,E=s.points,M=s.getNodeStyle(),N={transform:"matrix(1 0 0 1 ".concat(f-v/2," ").concat(h-_/2,")")};return Object(re.g)("g",N,Object(re.g)(Db,up({},M,{points:E,x:f,y:h})))}}])&&jS(t.prototype,n),c}(ro);function lp(e){return lp=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},lp(e)}function fp(){return fp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fp.apply(this,arguments)}function TS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function pp(e,t){return pp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},pp(e,t)}function kS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ks(e);if(t){var c=ks(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return DS(this,n)}}function DS(e,t){if(t&&(lp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function ks(e){return ks=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ks(e)}var dp=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&pp(s,f)})(c,e);var t,n,i=kS(c);function c(){return TS(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getShape",value:function(){var s=this.props.model,f=s.getNodeStyle();return Object(re.g)("g",null,Object(re.g)(Db,fp({},f,{points:s.points,x:s.x,y:s.y})))}}])&&MS(t.prototype,n),c}(ro);function hp(e){return hp=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},hp(e)}function NS(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Nb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Nb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  77. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Nb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function CS(e){var t=e.x,n=t===void 0?0:t,i=e.y,c=i===void 0?0:i,s=e.rx,f=s===void 0?4:s,h=e.ry,v=h===void 0?4:h,_=e.className,E={cx:n,cy:c,rx:f,ry:v,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(M){var N=NS(M,2),$=N[0],Y=N[1];hp(Y)!=="object"&&(E[$]=Y)}),E.className=_?"lf-basic-shape ".concat(_):"lf-basic-shape",Object(re.g)("ellipse",E)}function yp(e){return yp=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},yp(e)}function vp(){return vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vp.apply(this,arguments)}function RS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function gp(e,t){return gp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gp(e,t)}function LS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ds(e);if(t){var c=Ds(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return BS(this,n)}}function BS(e,t){if(t&&(yp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ds(e)}var bp=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&gp(s,f)})(c,e);var t,n,i=LS(c);function c(){return RS(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getShape",value:function(){var s=this.props.model,f=s.getNodeStyle();return Object(re.g)(CS,vp({},f,{x:s.x,y:s.y,rx:s.rx,ry:s.ry}))}}])&&IS(t.prototype,n),c}(ro);function mp(e){return mp=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},mp(e)}function Cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Rb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(n),!0).forEach(function(i){zS(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function zS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $S(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _p(e,t){return _p=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},_p(e,t)}function WS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ns(e);if(t){var c=Ns(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return GS(this,n)}}function GS(e,t){if(t&&(mp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ns(e)}var Op=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&_p(s,f)})(c,e);var t,n,i=WS(c);function c(){return FS(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getBackground",value:function(){var s=this.props.model,f=s.getTextStyle(),h=s.width,v=s.height,_=s.x,E=s.y,M=Rb(Rb({},f.background),{},{x:_,y:E-1,width:h,height:v});return Object(re.g)(jo,M)}},{key:"getShape",value:function(){return Object(re.g)("g",null,this.getBackground())}}])&&$S(t.prototype,n),c}(ro);function wp(e){return wp=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},wp(e)}function xp(){return xp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xp.apply(this,arguments)}function HS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function US(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ep(e,t){return Ep=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ep(e,t)}function XS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Cs(e);if(t){var c=Cs(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return YS(this,n)}}function YS(e,t){if(t&&(wp(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 Cs(e){return Cs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Cs(e)}function Rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sp=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Ep(s,f)})(c,e);var t,n,i=XS(c);function c(){var s;HS(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return Rs(Ca(s=i.call.apply(i,[this].concat(h))),"ref",void 0),Rs(Ca(s),"currentProperties",void 0),Rs(Ca(s),"preProperties",void 0),Rs(Ca(s),"setRef",function(_){s.ref=_}),s}return t=c,(n=[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(s){s.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 s=this.props.model,f=s.x,h=s.y,v=s.height,_=s.width,E=s.getNodeStyle();return this.currentProperties=JSON.stringify(s.properties),Object(re.g)("foreignObject",xp({},E,{x:f-_/2,y:h-v/2,width:_,height:v,ref:this.setRef}))}}])&&US(t.prototype,n),c}(ro);function jp(e){return jp=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},jp(e)}function Pp(){return Pp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pp.apply(this,arguments)}function Ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ib(Object(n),!0).forEach(function(i){Mp(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ib(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function VS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ap(e,t){return Ap=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ap(e,t)}function KS(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Is(e);if(t){var c=Is(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return qS(this,n)}}function qS(e,t){if(t&&(jp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tp(e)}function Tp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Is(e){return Is=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Is(e)}function Mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lr,ZS=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Ap(s,f)})(c,e);var t,n,i=KS(c);function c(s){var f;return function(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}(this,c),Mp(Tp(f=i.call(this,s)),"setHoverON",function(){f.setState({isHovered:!0})}),Mp(Tp(f),"setHoverOFF",function(){f.setState({isHovered:!1})}),f.state={isHovered:!1},f}return t=c,(n=[{key:"getBackground",value:function(){var s=this.props.model,f=s.getTextStyle(),h=s.text,v=s.width,_=f.background||{};if(this.state.isHovered&&f.hover&&f.hover.background&&(_=Jo(Jo({},_),f.hover.background)),h&&h.value&&_.fill!=="transparent"){var E,M=f.fontSize,N=f.overflowMode,$=f.lineHeight,Y=f.wrapPadding,Q=f.textWidth,se=h.value,ae=h.x,de=h.y,we=String(se).split(/[\r\n]/g),ke=we.length;if(N==="autoWrap"&&Q){var Pe=Ky({rows:we,style:{fontSize:"".concat(M,"px"),width:"".concat(Q,"px"),lineHeight:$,padding:Y},rowsLength:ke,className:"lf-get-text-height"});E=Jo(Jo({},_),{},{x:ae-1,y:de-1,width:Q,height:Pe})}else{we&&we.forEach(function(ht){bv(ht)});var Xe=gl({rows:we,fontSize:M,rowsLength:ke}),De=Xe.width,Ge=Xe.height;if(N==="ellipsis"&&(De=Q||v,Ge=M+2),typeof _.wrapPadding=="string"){var $e=_.wrapPadding.split(",").filter(function(ht){return ht.trim()}).map(function(ht){return parseFloat(ht.trim())});$e.length>0&&$e.length<=4&&($e.length===1?$e=[$e[0],$e[0],$e[0],$e[0]]:$e.length===2?$e=[$e[0],$e[1],$e[0],$e[1]]:$e.length===3&&($e=[$e[0],$e[1],$e[2],$e[1]]),De+=$e[1]+$e[3],Ge+=$e[0]+$e[2],ae+=($e[1]-$e[3])/2,de+=($e[2]-$e[0])/2)}E=Jo(Jo({},_),{},{x:ae-1,y:de-1,width:De,height:Ge})}return Object(re.g)(jo,E)}}},{key:"getShape",value:function(){var s=this.props.model,f=s.text,h=f.value,v=f.x,_=f.y;if(h){var E=Jo({x:v,y:_,className:"lf-element-text",value:h},s.getTextStyle());return Object(re.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(re.g)(jb,Pp({},E,{model:s})))}}}])&&VS(t.prototype,n),c}(Ab);function kp(e){return kp=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},kp(e)}function Lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lb(Object(n),!0).forEach(function(i){Vn(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function JS(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Bb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Bb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  78. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Bb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function QS(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Dp(e,t){return Dp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Dp(e,t)}function ej(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ls(e);if(t){var c=Ls(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return tj(this,n)}}function tj(e,t){if(t&&(kp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yn(e)}function Yn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ls(e)}function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Lr||(Lr={}));var zb=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Dp(s,f)})(c,e);var t,n,i=ej(c);function c(s){var f;(function(E,M){if(!(E instanceof M))throw new TypeError("Cannot call a class as a function")})(this,c),Vn(Yn(f=i.call(this)),"stepDragData",void 0),Vn(Yn(f),"stepDrag",void 0),Vn(Yn(f),"oldEdge",void 0),Vn(Yn(f),"preTargetNode",void 0),Vn(Yn(f),"targetRuleResults",void 0),Vn(Yn(f),"sourceRuleResults",void 0),Vn(Yn(f),"handleMouseDown",function(E){f.stepDrag&&f.stepDrag.handleMouseDown(E)}),Vn(Yn(f),"onDragStart",function(){var E=f.props,M=E.x,N=E.y,$=E.edgeModel,Y=$.startPoint,Q=$.endPoint,se=$.pointsList;f.oldEdge={startPoint:Y,endPoint:Q,pointsList:se},f.setState({endX:M,endY:N,dragging:!0})}),Vn(Yn(f),"onDragging",function(E){var M=E.deltaX,N=E.deltaY,$=f.state,Y=$.endX,Q=$.endY,se=f.props,ae=se.graphModel,de=se.type,we=ae.transformModel,ke=ae.editConfigModel,Pe=JS(we.moveCanvasPointByHtml([Y,Q],M,N),2),Xe=Pe[0],De=Pe[1];f.setState({endX:Xe,endY:De,dragging:!0});var Ge=f.props.edgeModel,$e=Uu({x:Y,y:Q},ae);if($e&&$e.node&&f.isAllowAdjust($e).pass){var ht,Ct=Ge.startPoint,Pt=Ge.endPoint,zt=Ge.sourceNode,tn=Ge.targetNode;de===Lr.SOURCE?ht={startPoint:{x:$e.anchor.x,y:$e.anchor.y},endPoint:{x:Pt.x,y:Pt.y},sourceNode:$e.node,targetNode:tn}:de===Lr.TARGET&&(ht={startPoint:{x:Ct.x,y:Ct.y},endPoint:{x:$e.anchor.x,y:$e.anchor.y},sourceNode:zt,targetNode:$e.node}),Ge.updateAfterAdjustStartAndEnd(ht)}else de===Lr.SOURCE?Ge.updateStartPoint({x:Xe,y:De}):de===Lr.TARGET&&Ge.updateEndPoint({x:Xe,y:De});Ge.text.value&&ke.adjustEdge&&Ge.setText(Object.assign({},Ge.text,Ge.textPosition))}),Vn(Yn(f),"onDragEnd",function(E){var M=E.event;try{var N;f.setState({dragging:!1});var $=f.props,Y=$.graphModel,Q=$.edgeModel,se=$.type,ae=f.state,de=ae.endX,we=ae.endY,ke=ae.dragging,Pe=Uu({x:de,y:we},Y);if(!ke)return;var Xe,De=!1;if(Pe&&Pe.node){var Ge=f.isAllowAdjust(Pe),$e=Ge.pass,ht=Ge.msg,Ct=Ge.newTargetNode;if($e){var Pt,zt=Q.getData();Xe=oo(oo({},zt),{},{sourceAnchorId:"",targetAnchorId:"",text:(zt==null||(Pt=zt.text)===null||Pt===void 0?void 0:Pt.value)||""}),se===Lr.SOURCE?(Xe=oo(oo({},Y.edgeGenerator(Y.getNodeModelById(Pe.node.id).getData(),Y.getNodeModelById(Q.targetNodeId).getData(),Xe)),{},{sourceNodeId:Pe.node.id,sourceAnchorId:Pe.anchor.id,startPoint:{x:Pe.anchor.x,y:Pe.anchor.y},targetNodeId:Q.targetNodeId,endPoint:oo({},Q.endPoint)}),Q.sourceNodeId===Pe.node.id&&Q.sourceAnchorId===Pe.anchor.id&&(De=!0)):se===Lr.TARGET&&(Xe=oo(oo({},Y.edgeGenerator(Y.getNodeModelById(Q.sourceNodeId).getData(),Y.getNodeModelById(Pe.node.id).getData(),Xe)),{},{sourceNodeId:Q.sourceNodeId,startPoint:oo({},Q.startPoint),targetNodeId:Pe.node.id,targetAnchorId:Pe.anchor.id,endPoint:{x:Pe.anchor.x,y:Pe.anchor.y}}),Q.targetNodeId===Pe.node.id&&Q.targetAnchorId===Pe.anchor.id&&(De=!0))}else{De=!0;var tn=Ct.getData();Y.eventCenter.emit(at.CONNECTION_NOT_ALLOWED,{data:tn,msg:ht})}}else De=!0;if(De)f.recoveryEdge();else{var ln=Q.getData();Y.deleteEdgeById(Q.id);var An=Y.addEdge(oo({},Xe));Y.eventCenter.emit(at.EDGE_EXCHANGE_NODE,{data:{newEdge:An.getData(),oldEdge:ln}})}(N=f.preTargetNode)===null||N===void 0||N.setElementState(Mt.DEFAULT)}finally{f.props.graphModel.eventCenter.emit(at.ADJUST_POINT_DRAGEND,{e:M,data:f.stepDragData})}}),Vn(Yn(f),"recoveryEdge",function(){var E=f.props.edgeModel,M=f.oldEdge,N=M.startPoint,$=M.endPoint,Y=M.pointsList;E.updateStartPoint(N),E.updateEndPoint($),E.modelType!==Ot.LINE_EDGE&&(E.pointsList=Y,E.initPoints())}),Vn(Yn(f),"getAdjustPointStyle",function(){var E=f.props,M=E.graphModel.theme;return E.edgeModel,M.edgeAdjust}),f.state={dragging:!1,endX:0,endY:0},f.targetRuleResults=new Map,f.sourceRuleResults=new Map;var h=s.type,v=s.edgeModel,_=s.graphModel.eventCenter;return f.stepDragData={type:h,edgeData:v.getData()},f.stepDrag=new Jr({onDragStart:f.onDragStart,onDragging:f.onDragging,onDragEnd:f.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:_,data:f.stepDragData}),f}return t=c,(n=[{key:"isAllowAdjust",value:function(s){var f=this.props,h=f.edgeModel,v=h.id,_=h.sourceNode,E=h.targetNode,M=h.sourceAnchorId,N=h.targetAnchorId,$=f.type,Y=null,Q=null,se=null,ae=null;if($===Lr.SOURCE?(Y=s.node,Q=E,se=s.anchor,ae=E.getAnchorInfo(N)):(Y=_,Q=s.node,ae=s.anchor,se=_.getAnchorInfo(M)),this.preTargetNode&&this.preTargetNode!==s.node&&this.preTargetNode.setElementState(Mt.DEFAULT),this.preTargetNode=s.node,ae.id===se.id)return{pass:!1,msg:"",newTargetNode:Q};var de="".concat(Y.id,"_").concat(Q.id,"_").concat(se.id,"_").concat(ae.id);if(!this.targetRuleResults.has(de)){var we=Y.isAllowConnectedAsSource(Q,se,ae,v),ke=Q.isAllowConnectedAsTarget(Y,se,ae,v);this.sourceRuleResults.set(de,Oa(we)),this.targetRuleResults.set(de,Oa(ke))}var Pe=this.sourceRuleResults.get(de),Xe=Pe.isAllPass,De=Pe.msg,Ge=this.targetRuleResults.get(de),$e=Ge.isAllPass,ht=Ge.msg,Ct=Xe&&$e?Mt.ALLOW_CONNECT:Mt.NOT_ALLOW_CONNECT;return $===Lr.SOURCE?Y.setElementState(Ct):Q.setElementState(Ct),{pass:Xe&&$e,msg:ht||De,newTargetNode:Q}}},{key:"render",value:function(){var s=this.props,f=s.x,h=s.y,v=s.getAdjustPointShape,_=s.edgeModel,E=this.state.dragging;return Object(re.g)("g",{pointerEvents:E?"none":"",onMouseDown:this.handleMouseDown},E?"":v(f,h,_))}}])&&QS(t.prototype,n),c}(re.a);function Np(e){return Np=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},Np(e)}function Ra(){return Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ra.apply(this,arguments)}function nj(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Fb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Fb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  79. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function rj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Cp(e,t){return Cp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Cp(e,t)}function ij(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Bs(e);if(t){var c=Bs(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return aj(this,n)}}function aj(e,t){if(t&&(Np(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mr(e)}function mr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Bs(e)}function Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ia=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Cp(s,f)})(c,e);var t,n,i=ij(c);function c(){var s;rj(this,c);for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return Br(mr(s=i.call.apply(i,[this].concat(h))),"startTime",void 0),Br(mr(s),"contextMenuTime",void 0),Br(mr(s),"clickTimer",void 0),Br(mr(s),"textRef",Object(re.f)()),Br(mr(s),"handleHover",function(_,E){var M=s.props,N=M.model,$=M.graphModel.eventCenter;N.setHovered(_);var Y=_?at.EDGE_MOUSEENTER:at.EDGE_MOUSELEAVE,Q=N.getData();$.emit(Y,{data:Q,e:E})}),Br(mr(s),"setHoverON",function(_){s.props.model.isHovered||(s.textRef&&s.textRef.current&&s.textRef.current.setHoverON(),s.handleHover(!0,_))}),Br(mr(s),"setHoverOFF",function(_){s.props.model.isHovered&&(s.textRef&&s.textRef.current&&s.textRef.current.setHoverOFF(),s.handleHover(!1,_))}),Br(mr(s),"handleContextMenu",function(_){_.preventDefault(),s.contextMenuTime=new Date().getTime(),s.clickTimer&&clearTimeout(s.clickTimer);var E=s.props,M=E.model,N=E.graphModel,$=N.getPointByClient({x:_.clientX,y:_.clientY});N.setElementStateById(M.id,Mt.SHOW_MENU,$.domOverlayPosition),s.toFront(),M.isSelected||N.selectEdgeById(M.id);var Y=M==null?void 0:M.getData();N.eventCenter.emit(at.EDGE_CONTEXTMENU,{data:Y,e:_,position:$})}),Br(mr(s),"handleMouseDown",function(_){_.stopPropagation(),s.startTime=new Date().getTime()}),Br(mr(s),"handleMouseUp",function(_){if(s.startTime&&!(new Date().getTime()-s.startTime>200||_.button===2)){var E=_.detail===2,M=s.props,N=M.model,$=M.graphModel,Y=N==null?void 0:N.getData(),Q=$.getPointByClient({x:_.clientX,y:_.clientY});if(E){var se=$.editConfigModel,ae=$.textEditElement;if(ae&&ae.id===N.id&&$.setElementStateById(N.id,Mt.DEFAULT),se.edgeTextEdit&&N.text.editable&&$.setElementStateById(N.id,Mt.TEXT_EDIT),N.modelType===Ot.POLYLINE_EDGE){var de=N,we=$.getPointByClient({x:_.x,y:_.y}).canvasOverlayPosition,ke=we.x,Pe=we.y,Xe=Ov({x:ke,y:Pe},de.points);de.dbClickPosition=Xe}$.eventCenter.emit(at.EDGE_DBCLICK,{data:Y,e:_,position:Q})}else $.eventCenter.emit(at.ELEMENT_CLICK,{data:Y,e:_,position:Q}),$.eventCenter.emit(at.EDGE_CLICK,{data:Y,e:_,position:Q});var De=$.editConfigModel;$.selectEdgeById(N.id,Oy(_,De)),s.toFront()}}),s}return t=c,(n=[{key:"getShape",value:function(){return Object(re.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var s=this.props,f=s.model,h=s.graphModel;if(f.state===Mt.TEXT_EDIT)return null;var v=!1,_=h.editConfigModel;return(f.text.draggable||_.edgeTextDraggable)&&(v=!0),Object(re.g)(ZS,{ref:this.textRef,editable:_.edgeTextEdit&&f.text.editable,model:f,graphModel:h,draggable:v})}},{key:"getArrowInfo",value:function(){var s=this.props.model,f=s.startPoint,h=s.endPoint,v=s.isSelected;return{start:f,end:h,hover:this.state.hover,isSelected:v}}},{key:"getLastTwoPoints",value:function(){var s=this.props.model;return[s.startPoint,s.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var s=this.props.model,f=s.id,h=s.getArrowStyle(),v=h.refY,_=v===void 0?0:v,E=h.refX,M=E===void 0?2:E,N=nj(this.getLastTwoPoints(),2),$=N[0],Y=N[1],Q="auto";return $!==null&&Y!==null&&(Q=Jw({x:Y.x-$.x,y:Y.y-$.y,z:0})*(180/Math.PI)),Object(re.g)("g",null,Object(re.g)("defs",null,Object(re.g)("marker",{id:"marker-start-".concat(f),refX:-M,refY:_,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(re.g)("marker",{id:"marker-end-".concat(f),refX:M,refY:_,overflow:"visible",orient:Q,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var s=this.props.model.getArrowStyle();return s.stroke,s.strokeWidth,s.offset,s.verticalLength,Object(re.g)("path",null)}},{key:"getEndArrow",value:function(){var s=this.props.model.getArrowStyle(),f=s.stroke,h=s.strokeWidth,v=s.offset,_=s.verticalLength;return Object(re.g)("path",{stroke:f,fill:f,strokeWidth:h,transform:"rotate(180)",d:"M 0 0 L ".concat(v," -").concat(_," L ").concat(v," ").concat(_," Z")})}},{key:"getAdjustPointShape",value:function(s,f,h){var v=h.getAdjustPointStyle();return Object(re.g)(Aa,Ra({className:"lf-edge-adjust-point"},v,{x:s,y:f}))}},{key:"getAdjustPoints",value:function(){var s=this.props,f=s.model,h=s.graphModel,v=f.getAdjustStart(),_=f.getAdjustEnd();return Object(re.g)("g",null,Object(re.g)(zb,Ra({type:"SOURCE"},v,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:f,graphModel:h})),Object(re.g)(zb,Ra({type:"TARGET"},_,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:f,graphModel:h})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(re.g)("g",null)}},{key:"getAppend",value:function(){return Object(re.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var s=this.props,f=s.graphModel,h=s.model;f.overlapMode!==Un.INCREASE&&f.toFront(h.id)}},{key:"render",value:function(){var s=this.props,f=s.model,h=f.isSelected,v=f.isHitable,_=f.isShowAdjustPoint;return s.graphModel.animation,Object(re.g)("g",null,Object(re.g)("g",{className:["lf-edge",!v&&"pointer-none",h&&"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()),_&&h?this.getAdjustPoints():"")}}])&&oj(t.prototype,n),c}(re.a);function Rp(e){return Rp=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},Rp(e)}function uj(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return $b(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return $b(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  80. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var La=function(e){var t={d:""};return Object.entries(e).forEach(function(n){var i=uj(n,2),c=i[0],s=i[1],f=Rp(s);c!=="style"&&f==="object"||(t[c]=s)}),Object(re.g)("path",t)};function Ip(e){return Ip=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},Ip(e)}function Lp(){return Lp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Lp.apply(this,arguments)}function sj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Bp(e,t){return Bp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Bp(e,t)}function lj(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=zs(e);if(t){var c=zs(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return fj(this,n)}}function fj(e,t){if(t&&(Ip(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zs(e)}var zp=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Bp(s,f)})(c,e);var t,n,i=lj(c);function c(){return sj(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getEdge",value:function(){var s=this.props.model,f=s.startPoint,h=s.endPoint,v=s.isAnimation,_=s.arrowConfig,E=s.getEdgeStyle(),M=s.getEdgeAnimationStyle(),N=M.strokeDasharray,$=M.stroke,Y=M.strokeDashoffset,Q=M.animationName,se=M.animationDuration,ae=M.animationIterationCount,de=M.animationTimingFunction,we=M.animationDirection;return Object(re.g)(ji,Lp({},E,{x1:f.x,y1:f.y,x2:h.x,y2:h.y},_,v?{strokeDasharray:N,stroke:$,style:{strokeDashoffset:Y,animationName:Q,animationDuration:se,animationIterationCount:ae,animationTimingFunction:de,animationDirection:we}}:{}))}},{key:"getAppendWidth",value:function(){var s=this.props.model,f=function(N){var $,Y=N.start,Q=N.end;if(Y.x===Q.x&&Y.y===Q.y)$="";else{var se={start:Y,end:Q,offset:10,verticalLength:5},ae=Ea(Xu(Xu({},se),{},{type:"start"})),de=Ea(Xu(Xu({},se),{},{type:"end"}));$="M".concat(ae.leftX," ").concat(ae.leftY,`
  81. L`).concat(ae.rightX," ").concat(ae.rightY,`
  82. L`).concat(de.rightX," ").concat(de.rightY,`
  83. L`).concat(de.leftX," ").concat(de.leftY," z")}return{d:$,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}({start:s.startPoint,end:s.endPoint}),h=f.d,v=f.strokeWidth,_=f.fill,E=f.strokeDasharray,M=f.stroke;return Object(re.g)(La,{d:h,fill:_,strokeWidth:v,stroke:M,strokeDasharray:E})}}])&&cj(t.prototype,n),c}(Ia);function Fp(e){return Fp=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},Fp(e)}function pj(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Wb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Wb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  84. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var dj=function(e){var t={points:"",fill:"none"};return Object.entries(e).forEach(function(n){var i=pj(n,2),c=i[0],s=i[1];(c==="style"||Fp(s)!=="object")&&(t[c]=s)}),Object(re.g)("polyline",t)};function $p(e){return $p=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},$p(e)}function Gb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(n),!0).forEach(function(i){ao(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Wp(){return Wp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Wp.apply(this,arguments)}function hj(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Hb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Hb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  85. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Hb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function yj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Gp(e,t){return Gp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Gp(e,t)}function vj(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=$s(e);if(t){var c=$s(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return gj(this,n)}}function gj(e,t){if(t&&($p(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return io(e)}function io(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$s(e)}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hp=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Gp(s,f)})(c,e);var t,n,i=vj(c);function c(){var s;return function(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}(this,c),ao(io(s=i.call(this)),"drag",void 0),ao(io(s),"isDragging",void 0),ao(io(s),"isShowAdjustPointTemp",void 0),ao(io(s),"appendInfo",void 0),ao(io(s),"onDragStart",function(){var f=s.props.model;f.dragAppendStart(),s.isShowAdjustPointTemp=f.isShowAdjustPoint,f.isShowAdjustPoint=!1}),ao(io(s),"onDragging",function(f){var h=f.deltaX,v=f.deltaY,_=s.props,E=_.model,M=_.graphModel;s.isDragging=!0;var N=M.transformModel,$=M.editConfigModel,Y=hj(N.fixDeltaXY(h,v),2),Q=Y[0],se=Y[1],ae=E,de=$.adjustEdgeMiddle;s.appendInfo=de?ae.dragAppendSimple(s.appendInfo,{x:Q,y:se}):ae.dragAppend(s.appendInfo,{x:Q,y:se})}),ao(io(s),"onDragEnd",function(){var f=s.props,h=f.model,v=f.graphModel.eventCenter,_=h;_.dragAppendEnd(),s.isDragging=!1,_.isShowAdjustPoint=s.isShowAdjustPointTemp,s.appendInfo=void 0,v.emit(at.EDGE_ADJUST,{data:_.getData()})}),ao(io(s),"beforeDragStart",function(f,h){h.dragAble&&s.drag.handleMouseDown(f),s.appendInfo=h}),s.drag=new Jr({onDragStart:s.onDragStart,onDragging:s.onDragging,onDragEnd:s.onDragEnd,isStopPropagation:!1}),s}return t=c,(n=[{key:"getEdge",value:function(){var s=this.props.model,f=s.points,h=s.isAnimation,v=s.arrowConfig,_=s.getEdgeStyle(),E=s.getEdgeAnimationStyle(),M=E.strokeDasharray,N=E.stroke,$=E.strokeDashoffset,Y=E.animationName,Q=E.animationDuration,se=E.animationIterationCount,ae=E.animationTimingFunction,de=E.animationDirection;return Object(re.g)(dj,Wp({points:f},_,v,h?{strokeDasharray:M,stroke:N,style:{strokeDashoffset:$,animationName:Y,animationDuration:Q,animationIterationCount:se,animationTimingFunction:ae,animationDirection:de}}:{}))}},{key:"getArrowInfo",value:function(){var s=this.props.model,f=s.points,h=s.isSelected,v={start:null,end:null,hover:this.state.hover,isSelected:h},_=qo(f);return _.length>=2&&(v.start=_[_.length-2],v.end=_[_.length-1]),v}},{key:"getLastTwoPoints",value:function(){var s=this.props.model.points,f=qo(s);return f.length>=2?[f[f.length-2],f[f.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(s){var f,h=s.start,v=s.end;if(h.x===v.x&&h.y===v.y)f="";else{var _={start:h,end:v,offset:10,verticalLength:5},E=Ea(Fs(Fs({},_),{},{type:"start"})),M=Ea(Fs(Fs({},_),{},{type:"end"}));f="M".concat(E.leftX," ").concat(E.leftY,`
  86. L`).concat(E.rightX," ").concat(E.rightY,`
  87. L`).concat(M.rightX," ").concat(M.rightY,`
  88. L`).concat(M.leftX," ").concat(M.leftY," z")}return{d:f,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(s){var f=this.getAppendAttributes(s),h=f.d,v=f.strokeWidth,_=f.fill,E=f.strokeDasharray,M=f.stroke;return Object(re.g)(La,{d:h,fill:_,strokeWidth:v,stroke:M,strokeDasharray:E})}},{key:"getAppendWidth",value:function(){for(var s=this,f=this.props,h=f.model,v=f.graphModel,_=h.pointsList,E=h.draggable,M=[],N=_.length,$=function(Q){var se="lf-polyline-append",ae={start:{x:_[Q].x,y:_[Q].y},end:{x:_[Q+1].x,y:_[Q+1].y},startIndex:Q,endIndex:Q+1,direction:"",dragAble:!0},de=Object(re.g)("g",{className:se},s.getAppendShape(ae)),we=v.editConfigModel,ke=we.adjustEdge,Pe=we.adjustEdgeMiddle;if(ke&&E){var Xe=ae.startIndex,De=ae.endIndex,Ge=Pe&&(Xe===0||De===N-1);ae.dragAble=!Ge,ae.start.x===ae.end.x?(ae.dragAble&&(se+="-ew-resize"),ae.direction=Gt.VERTICAL):ae.start.y===ae.end.y&&(ae.dragAble&&(se+="-ns-resize"),ae.direction=Gt.HORIZONTAL),de=Object(re.g)("g",{className:s.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function($e){return s.beforeDragStart($e,ae)}},Object(re.g)("g",{className:se},s.getAppendShape(ae)))}M.push(de)},Y=0;Y<N-1;Y++)$(Y);return Object(re.g)("g",null,M)}}])&&yj(t.prototype,n),c}(Ia);function Up(e){return Up=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},Up(e)}function bj(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Ub(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Ub(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  89. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ub(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Xp(){return Xp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xp.apply(this,arguments)}function mj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Yp(e,t){return Yp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Yp(e,t)}function Oj(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ws(e);if(t){var c=Ws(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return wj(this,n)}}function wj(e,t){if(t&&(Up(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function Ws(e){return Ws=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ws(e)}var Vp=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&Yp(s,f)})(c,e);var t,n,i=Oj(c);function c(){return mj(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getEdge",value:function(){var s=this.props.model,f=s.getEdgeStyle(),h=s.path,v=s.isAnimation,_=s.arrowConfig,E=s.getEdgeAnimationStyle(),M=E.strokeDasharray,N=E.stroke,$=E.strokeDashoffset,Y=E.animationName,Q=E.animationDuration,se=E.animationIterationCount,ae=E.animationTimingFunction,de=E.animationDirection;return Object(re.g)(La,Xp({d:h},f,_,v?{strokeDasharray:M,stroke:N,style:{strokeDashoffset:$,animationName:Y,animationDuration:Q,animationIterationCount:se,animationTimingFunction:ae,animationDirection:de}}:{}))}},{key:"getAppendWidth",value:function(){var s=this.props.model.path;return Object(re.g)(La,{d:s,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var s=this.props.model,f=this.state.hover,h=s.isSelected,v=s.getArrowStyle().offset,_=s.pointsList.map(function(M){return{x:M.x,y:M.y}}),E=bj(_v(_,v),2);return{start:E[0],end:E[1],hover:f,isSelected:h}}},{key:"getLastTwoPoints",value:function(){var s=this.props.model,f=s.getArrowStyle().offset,h=s.pointsList.map(function(v){return{x:v.x,y:v.y}});return _v(h,f)}}])&&_j(t.prototype,n),c}(Ia);function Kp(e){return Kp=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},Kp(e)}function Xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function xj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ej(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qp(e,t){return qp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qp(e,t)}function jj(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Gs(e);if(t){var c=Gs(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Pj(this,n)}}function Pj(e,t){if(t&&(Kp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gs(e)}var Aj=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&qp(s,f)})(c,e);var t,n,i=jj(c);function c(){return Ej(this,c),i.apply(this,arguments)}return t=c,n=[{key:"getArrowAttributes",value:function(){var s=this.props,f=s.arrowInfo,h=s.style,v=f.start,_=f.end,E={start:v,end:_,offset:h.offset,verticalLength:h.verticalLength,type:"end"},M=Ea(E),N=M.leftX,$=M.leftY,Y=M.rightX,Q=M.rightY;return function(se){for(var ae=1;ae<arguments.length;ae++){var de=arguments[ae]!=null?arguments[ae]:{};ae%2?Xb(Object(de),!0).forEach(function(we){xj(se,we,de[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(de)):Xb(Object(de)).forEach(function(we){Object.defineProperty(se,we,Object.getOwnPropertyDescriptor(de,we))})}return se}({d:"M".concat(N," ").concat($," L").concat(_.x," ").concat(_.y," L").concat(Y," ").concat(Q," z")},h)}},{key:"getShape",value:function(){var s=this.getArrowAttributes(),f=s.d,h=s.strokeWidth,v=s.stroke,_=s.fill;return Object(re.g)(La,{d:f,fill:_,strokeWidth:h,stroke:v})}},{key:"render",value:function(){return Object(re.g)("g",{className:"lf-arrow"},this.getShape())}}],n&&Sj(t.prototype,n),c}(re.a),Yb=function(e,t){return ge(e,t)},Tj=function(e){var t=e==null?0:e.length;return t?e[t-1]:void 0},Zp=function(){return Ke.a.Date.now()},Mj=/\s/,kj=function(e){for(var t=e.length;t--&&Mj.test(e.charAt(t)););return t},Dj=/^\s+/,Nj=function(e){return e&&e.slice(0,kj(e)+1).replace(Dj,"")},Cj=/^[-+]0x[0-9a-f]+$/i,Rj=/^0b[01]+$/i,Ij=/^0o[0-7]+$/i,Lj=parseInt,Vb=function(e){if(typeof e=="number")return e;if(dt(e))return NaN;if(Ht(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ht(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nj(e);var n=Rj.test(e);return n||Ij.test(e)?Lj(e.slice(2),n?2:8):Cj.test(e)?NaN:+e},Bj=Math.max,zj=Math.min,Fj=function(e,t,n){var i,c,s,f,h,v,_=0,E=!1,M=!1,N=!0;if(typeof e!="function")throw new TypeError("Expected a function");function $(we){var ke=i,Pe=c;return i=c=void 0,_=we,f=e.apply(Pe,ke)}function Y(we){return _=we,h=setTimeout(se,t),E?$(we):f}function Q(we){var ke=we-v;return v===void 0||ke>=t||ke<0||M&&we-_>=s}function se(){var we=Zp();if(Q(we))return ae(we);h=setTimeout(se,function(ke){var Pe=t-(ke-v);return M?zj(Pe,s-(ke-_)):Pe}(we))}function ae(we){return h=void 0,N&&i?$(we):(i=c=void 0,f)}function de(){var we=Zp(),ke=Q(we);if(i=arguments,c=this,v=we,ke){if(h===void 0)return Y(v);if(M)return clearTimeout(h),h=setTimeout(se,t),$(v)}return h===void 0&&(h=setTimeout(se,t)),f}return t=Vb(t)||0,Ht(n)&&(E=!!n.leading,s=(M="maxWait"in n)?Bj(Vb(n.maxWait)||0,t):s,N="trailing"in n?!!n.trailing:N),de.cancel=function(){h!==void 0&&clearTimeout(h),_=0,i=v=c=h=void 0},de.flush=function(){return h===void 0?f:ae(Zp())},de},$j=o(167);function Wj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kb,qb,Zb,Gj=function(){function e(i){(function(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")})(this,e),Mo(this,"undos",[]),Mo(this,"redos",[]),Mo(this,"callbacks",[]),Mo(this,"stopWatch",null),Mo(this,"curData",null),Mo(this,"maxSize",50),Mo(this,"waitTime",100),Mo(this,"eventCenter",void 0),this.eventCenter=i}var t,n;return t=e,(n=[{key:"add",value:function(i){Yb(Tj(this.undos),i)||(this.undos.push(i),Yb(this.curData,i)||(this.redos=[]),this.eventCenter.emit(at.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 i=this.undos.pop();this.redos.push(i);var c=this.undos.pop();return this.curData=Xt(c),c}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var i=this.redos.pop();return this.curData=Xt(i),i}}},{key:"watch",value:function(i){var c=this;this.stopWatch&&this.stopWatch(),this.undos.push(i.modelToGraphData()),this.stopWatch=Object($j.a)(i,Fj(function(){var s=i.modelToHistoryData();s&&c.add(s)},this.waitTime))}}])&&Wj(t.prototype,n),e}();function Jp(e){return Jp=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},Jp(e)}function Hj(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||function(n,i){if(!!n){if(typeof n=="string")return Jb(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Jb(n,i)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  90. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(n),!0).forEach(function(i){Qo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qb(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function em(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Qp(e,t){return Qp=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qp(e,t)}function Uj(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Hs(e);if(t){var c=Hs(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Xj(this,n)}}function Xj(e,t){if(t&&(Jp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bi(e)}function Bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hs(e){return Hs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Hs(e)}function Qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tm,nm,rm,ed=_r((Zb=qb=function(e){(function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&Qp(f,h)})(s,e);var t,n,i,c=Uj(s);function s(){var f;return function(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}(this,s),Qo(Bi(f=c.call(this)),"ref",Object(re.f)()),Qo(Bi(f),"__prevText",{type:"",text:"",id:""}),Qo(Bi(f),"keyupHandler",function(h){var v=f.props.graphModel.textEditElement;h.key==="Enter"&&h.altKey&&v.setElementState(0)}),Qo(Bi(f),"inputHandler",function(h){var v=h.target.innerText,_=f.props.graphModel.textEditElement;f.__prevText={type:_.type,text:v.replace(/(\r\n)+$|(\n)+$/,""),id:_.id}}),Qo(Bi(f),"keydownHandler",function(h){h.stopPropagation()}),f.state={style:{left:0,top:0}},f}return t=s,i=[{key:"getDerivedStateFromProps",value:function(f){var h,v=f.graphModel,_=v.transformModel,E=v.theme,M=v.textEditElement;if(M){var N;if((N=M.text)===null||N===void 0||!N.value)if(M.BaseType===on.EDGE){var $=(M=M).text,Y=M.textPosition,Q=Y.x,se=Y.y;$.x=Q,$.y=se,M.setText($)}else M=M;var ae={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(M.BaseType===on.EDGE){var de=E.edgeText,we=de.overflowMode,ke=de.lineHeight,Pe=de.wrapPadding,Xe=de.textWidth;Xe&&we==="autoWrap"&&(h=Li(Li({},ae),{},{width:Xe,minWidth:Xe,lineHeight:ke,padding:Pe}))}else if(M.BaseType===on.NODE){var De=E.nodeText,Ge=De.overflowMode,$e=De.lineHeight,ht=De.wrapPadding,Ct=De.textWidth,Pt=M,zt=Pt.width,tn=Pt.modelType;(tn!==Ot.TEXT_NODE&&Ge==="autoWrap"||tn===Ot.TEXT_NODE&&Ct)&&(h=Li(Li({},ae),{},{width:Ct||zt,minWidth:Ct||zt,lineHeight:$e,padding:ht}))}var ln=M.text,An=ln.x,zr=ln.y,ir=Hj(_.CanvasPointToHtmlPoint([An,zr]),2);return{style:Li({left:ir[0],top:ir[1]},h)}}}}],(n=[{key:"componentDidUpdate",value:function(){var f=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var h=this.__prevText,v=h.text,_=h.id;f.updateText(_,v),f.eventCenter.emit(at.TEXT_UPDATE,Li({},this.__prevText)),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}}},{key:"placeCaretAtEnd",value:function(f){if(window.getSelection!==void 0&&document.createRange!==void 0){var h=document.createRange();h.selectNodeContents(f),h.collapse(!1);var v=window.getSelection();v.removeAllRanges(),v.addRange(h)}}},{key:"render",value:function(){var f,h=this.props.graphModel.textEditElement,v=this.state.style;return h?Object(re.g)("div",{contentEditable:!0,className:"lf-text-input",style:v,ref:this.ref,key:h.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler},(f=h.text)===null||f===void 0?void 0:f.value):null}}])&&em(t.prototype,n),i&&em(t,i),s}(re.a),Qo(qb,"toolName","textEdit"),Kb=Zb))||Kb,Yj=function(e){return e.modelType===Ot.LINE_EDGE?function(t){var n=t.startPoint,i=t.endPoint,c=(n.x+i.x)/2,s=(n.y+i.y)/2,f=Math.abs(n.x-i.x)+10,h=Math.abs(n.y-i.y)+10;return{x:c-f/2,y:s-h/2,x1:c+f/2,y1:s+h/2}}(e):e.modelType===Ot.POLYLINE_EDGE?function(t){var n=t.points,i=qo(n),c=Sa(i,8),s=c.x,f=c.y,h=c.width,v=c.height;return{x:s-h/2,y:f-v/2,x1:s+h/2,y1:f+v/2}}(e):e.modelType===Ot.BEZIER_EDGE?function(t){var n=t.path,i=Nl(n),c=Sa(i,8),s=c.x,f=c.y,h=c.width,v=c.height;return{x:s-h/2,y:f-v/2,x1:s+h/2,y1:f+v/2}}(e):void 0};function td(e){return td=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},td(e)}function om(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,i){var c=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var s,f,h=[],v=!0,_=!1;try{for(c=c.call(n);!(v=(s=c.next()).done)&&(h.push(s.value),!i||h.length!==i);v=!0);}catch(E){_=!0,f=E}finally{try{v||c.return==null||c.return()}finally{if(_)throw f}}return h}}(e,t)||im(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  91. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Vj(e){return function(t){if(Array.isArray(t))return nd(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||im(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  92. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function im(e,t){if(e){if(typeof e=="string")return nd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nd(e,t):void 0}}function nd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Kj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function rd(e,t){return rd=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},rd(e,t)}function qj(e){var t=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Us(e);if(t){var c=Us(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return Zj(this,n)}}function Zj(e,t){if(t&&(td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ba(e)}function Ba(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Us(e)}function za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var od=_r((rm=nm=function(e){(function(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),f&&rd(s,f)})(c,e);var t,n,i=qj(c);function c(s){var f;(function(E,M){if(!(E instanceof M))throw new TypeError("Cannot call a class as a function")})(this,c),za(Ba(f=i.call(this)),"stepDrag",void 0),za(Ba(f),"handleMouseDown",function(E){f.stepDrag.handleMouseDown(E)}),za(Ba(f),"onDragging",function(E){var M=E.deltaX,N=E.deltaY,$=f.props.graphModel,Y=$.getSelectElements(!0);$.moveNodes(Y.nodes.map(function(Q){return Q.id}),M,N)}),za(Ba(f),"handleContextMenu",function(E){E.preventDefault();var M=f.props,N=M.graphModel,$=M.graphModel,Y=$.eventCenter,Q=$.selectElements,se=N.getPointByClient({x:E.clientX,y:E.clientY}),ae={nodes:[],edges:[]};Vj(Q.values()).forEach(function(de){de.BaseType===on.NODE&&ae.nodes.push(de.getData()),de.BaseType===on.EDGE&&ae.edges.push(de.getData())}),Y.emit(at.SELECTION_CONTEXTMENU,{data:ae,e:E,position:se})});var h=s.graphModel,v=h.gridSize,_=h.eventCenter;return f.stepDrag=new Jr({onDragging:f.onDragging,step:v,eventType:"SELECTION",eventCenter:_}),f}return t=c,(n=[{key:"render",value:function(){var s=this.props.graphModel,f=s.selectElements,h=s.transformModel;if(!(f.size<=1)){var v=Number.MAX_SAFE_INTEGER,_=Number.MAX_SAFE_INTEGER,E=Number.MIN_SAFE_INTEGER,M=Number.MIN_SAFE_INTEGER;f.forEach(function(Q){var se={x:0,y:0,x1:0,y1:0};Q.BaseType===on.NODE&&(se=function(ae){var de=ae.x,we=ae.y,ke=ae.width,Pe=ae.height;return{x:de-ke/2,y:we-Pe/2,x1:de+ke/2,y1:we+Pe/2}}(Q)),Q.BaseType===on.EDGE&&(se=Yj(Q)),v=Math.min(v,se.x),_=Math.min(_,se.y),E=Math.max(E,se.x1),M=Math.max(M,se.y1)});var N=om(h.CanvasPointToHtmlPoint([v,_]),2);v=N[0],_=N[1];var $=om(h.CanvasPointToHtmlPoint([E,M]),2);E=$[0],M=$[1];var Y={left:"".concat(v-10,"px"),top:"".concat(_-10,"px"),width:"".concat(E-v+20,"px"),height:"".concat(M-_+20,"px")};return Object(re.g)("div",{className:"lf-multiple-select",style:Y,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}])&&Kj(t.prototype,n),c}(re.a),za(nm,"toolName","multipleSelect"),tm=rm))||tm;function Jj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qj=function(){function e(i){(function(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")})(this,e),Xs(this,"tools",void 0),Xs(this,"components",void 0),Xs(this,"toolMap",new Map),Xs(this,"instance",void 0),this.instance=i,this.isDisabledTool(ed.toolName)||this.registerTool(ed.toolName,ed),this.isDisabledTool(od.toolName)||this.registerTool(od.toolName,od);var c=i.graphModel;c.eventCenter.on("".concat(at.GRAPH_TRANSFORM,",").concat(at.NODE_CLICK,",").concat(at.BLANK_CLICK," "),function(){var s=c.textEditElement,f=c.editConfigModel,h=f.edgeTextEdit,v=f.nodeTextEdit;(h||v)&&s&&c.textEditElement.setElementState(Mt.DEFAULT)})}var t,n;return t=e,(n=[{key:"isDisabledTool",value:function(i){return this.instance.options.disabledTools.indexOf(i)!==-1}},{key:"registerTool",value:function(i,c){this.toolMap.set(i,c)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&Jj(t.prototype,n),e}(),eP=o(168),tP=o.n(eP);function nP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var am=function(){function e(i){(function(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")})(this,e),id(this,"mousetrap",void 0),id(this,"options",void 0),id(this,"target",void 0),i.keyboard||(i.keyboard={enabled:!1}),this.options=i;var c=i.lf;this.target=c.container,this.mousetrap=new tP.a(this.target),i.keyboard.enabled&&this.enable(!0)}var t,n;return t=e,(n=[{key:"initShortcuts",value:function(){var i=this,c=this.options.keyboard.shortcuts;if(c)if(yn(c))c.forEach(function(v){var _=v.keys,E=v.callback,M=v.action;return i.on(_,E,M)});else{var s=c.keys,f=c.callback,h=c.action;this.on(s,f,h)}}},{key:"on",value:function(i,c,s){this.mousetrap.bind(this.getKeys(i),c,s)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(i,c){this.mousetrap.unbind(this.getKeys(i),c)}},{key:"enable",value:function(i){(this.disabled||i)&&(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(i){var c=this;return(Array.isArray(i)?i:[i]).map(function(s){return c.formatKey(s)})}},{key:"formatKey",value:function(i){return i.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&nP(t.prototype,n),e}(),rP=am,uo=null;function um(e,t){return e.x+=t,e.y+=t,e.text&&(e.text.x+=t,e.text.y+=t),e}function sm(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(n){n.x+=t,n.y+=t}),e.text&&(e.text.x+=t,e.text.y+=t),e}function ad(e){return ad=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},ad(e)}function cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,i)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cm(Object(n),!0).forEach(function(i){Ut(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cm(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function lm(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ud=Symbol("plugin register by Logicflow.use"),sd=function(){function e(c){var s,f,h=this;(function(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")})(this,e),Ut(this,"container",void 0),Ut(this,"width",void 0),Ut(this,"height",void 0),Ut(this,"graphModel",void 0),Ut(this,"history",void 0),Ut(this,"viewMap",new Map),Ut(this,"tool",void 0),Ut(this,"keyboard",void 0),Ut(this,"dnd",void 0),Ut(this,"options",void 0),Ut(this,"snaplineModel",void 0),Ut(this,"components",[]),Ut(this,"plugins",void 0),Ut(this,"extension",{}),Ut(this,"adapterIn",void 0),Ut(this,"adapterOut",void 0),Ut(this,"getView",function(v){return h.viewMap.get(v)}),c=lg(c),this.options=c,this.container=this.initContainer(c.container),this.plugins=c.plugins,this.graphModel=new lx(Fa({},c)),this.tool=new Qj(this),this.history=new Gj(this.graphModel.eventCenter),this.dnd=new aE({lf:this}),this.keyboard=new rP({lf:this,keyboard:c.keyboard}),c.snapline!==!1&&(this.snaplineModel=new _b(this.graphModel),s=this.graphModel.eventCenter,f=this.snaplineModel,s.on("node:mousemove",function(v){var _=v.data;f.setNodeSnapLine(_)}),s.on("node:mouseup",function(){f.clearSnapline()})),function(v,_){var E=v.keyboard,M=E.options.keyboard;E.on(["cmd + c","ctrl + c"],function(){if(!M.enabled||_.textEditElement)return!0;var N=v.options.guards,$=_.getSelectElements(!1);return N&&N.beforeClone&&!N.beforeClone($)||$.nodes.length===0&&$.edges.length===0?(uo=null,!0):((uo=$).nodes.forEach(function(Y){return um(Y,40)}),uo.edges.forEach(function(Y){return sm(Y,40)}),!1)}),E.on(["cmd + v","ctrl + v"],function(){if(!M.enabled||_.textEditElement)return!0;if(uo&&(uo.nodes||uo.edges)){v.clearSelectElements();var N=v.addElements(uo);if(!N)return!0;N.nodes.forEach(function($){return v.selectElementById($.id,!0)}),N.edges.forEach(function($){return v.selectElementById($.id,!0)}),uo.nodes.forEach(function($){return um($,40)}),uo.edges.forEach(function($){return sm($,40)})}return!1}),E.on(["cmd + z","ctrl + z"],function(){return!M.enabled||!!_.textEditElement||(v.undo(),!1)}),E.on(["cmd + y","ctrl + y"],function(){return!M.enabled||!!_.textEditElement||(v.redo(),!1)}),E.on(["backspace"],function(){if(!M.enabled||_.textEditElement)return!0;var N=_.getSelectElements(!0);return v.clearSelectElements(),N.edges.forEach(function($){return v.deleteEdge($.id)}),N.nodes.forEach(function($){return v.deleteNode($.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts(),this.defaultRegister(),this.installPlugins(c.disabledPlugins)}var t,n,i;return t=e,n=[{key:"register",value:function(c,s){var f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(typeof c=="string"){var h={BaseEdge:Ia,BaseEdgeModel:ml,BaseNode:ro,BaseNodeModel:no,RectNode:ep,RectNodeModel:Cf,CircleNode:op,CircleNodeModel:yf,PolygonNode:cp,PolygonNodeModel:Mf,TextNode:Op,TextNodeModel:Bf,LineEdge:zp,LineEdgeModel:El,DiamondNode:dp,DiamondNodeModel:_f,PolylineEdge:Hp,PolylineEdgeModel:Al,BezierEdge:Vp,BezierEdgeModel:cf,EllipseNode:bp,EllipseNodeModel:Ef,HtmlNode:Sp,HtmlNodeModel:$f,h:re.g,type:c};this.viewMap.forEach(function(N){var $=N.extendKey;$&&(h[$]=N)}),this.graphModel.modelMap.forEach(function(N){var $=N.extendKey;$&&(h[$]=N)});var v=s(h),_=v.view,E=v.model,M=_;f&&!M.isObervered&&(M.isObervered=!0,M=ze(M)),this.setView(c,M),this.graphModel.setModel(c,E)}else this.registerElement(c)}},{key:"registerElement",value:function(c){var s=c.view;c.isObserverView===!1||s.isObervered||(s.isObervered=!0,s=ze(s)),this.setView(c.type,s),this.graphModel.setModel(c.type,c.model)}},{key:"batchRegister",value:function(){var c=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(f){c.registerElement(f)})}},{key:"defaultRegister",value:function(){this.registerElement({view:ep,model:Cf,type:"rect"}),this.registerElement({type:"circle",view:op,model:yf}),this.registerElement({type:"polygon",view:cp,model:Mf}),this.registerElement({type:"line",view:zp,model:El}),this.registerElement({type:"polyline",view:Hp,model:Al}),this.registerElement({type:"bezier",view:Vp,model:cf}),this.registerElement({type:"text",view:Op,model:Bf}),this.registerElement({type:"ellipse",view:bp,model:Ef}),this.registerElement({type:"diamond",view:dp,model:_f}),this.registerElement({type:"html",view:Sp,model:$f})}},{key:"selectElementById",value:function(c){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1],f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.graphModel.selectElementById(c,s),!s&&f&&this.graphModel.toFront(c)}},{key:"focusOn",value:function(c){var s=this.graphModel.transformModel,f=c.coordinate,h=c.id;if(!f){var v=this.getNodeModelById(h);v&&(f=v.getData());var _=this.getEdgeModelById(h);_&&(f=_.textPosition)}var E=f,M=E.x,N=E.y;s.focusOn(M,N,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(c){this.graphModel.setTheme(c)}},{key:"resize",value:function(c,s){this.graphModel.resize(c,s),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(c){this.graphModel.setDefaultEdgeType(c)}},{key:"updateText",value:function(c,s){this.graphModel.updateText(c,s)}},{key:"deleteElement",value:function(c){var s,f,h,v=this.getModelById(c);return!!v&&(f=(h=(Ut(s={},on.NODE,this.deleteNode),Ut(s,on.EDGE,this.deleteEdge),s)[v.BaseType])===null||h===void 0?void 0:h.call(this,c))!==null&&f!==void 0&&f}},{key:"getModelById",value:function(c){return this.graphModel.getElement(c)}},{key:"getDataById",value:function(c){var s;return(s=this.graphModel.getElement(c))===null||s===void 0?void 0:s.getData()}},{key:"changeNodeType",value:function(c,s){this.graphModel.changeNodeType(c,s)}},{key:"changeEdgeType",value:function(c,s){this.graphModel.changeEdgeType(c,s)}},{key:"getNodeEdges",value:function(c){return this.graphModel.getNodeEdges(c)}},{key:"addNode",value:function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:at.NODE_ADD,f=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(c,s,f)}},{key:"deleteNode",value:function(c){var s=this.graphModel.getNodeModelById(c);if(!s)return!1;var f=s.getData(),h=this.options.guards,v=!h||!h.beforeDelete||h.beforeDelete(f);return v&&this.graphModel.deleteNode(c),v}},{key:"cloneNode",value:function(c){var s=this.graphModel.getNodeModelById(c).getData(),f=this.options.guards;if(!f||!f.beforeClone||f.beforeClone(s))return this.graphModel.cloneNode(c)}},{key:"changeNodeId",value:function(c,s){return this.graphModel.changeNodeId(c,s)}},{key:"getNodeModelById",value:function(c){return this.graphModel.getNodeModelById(c)}},{key:"getNodeDataById",value:function(c){var s;return(s=this.graphModel.getNodeModelById(c))===null||s===void 0?void 0:s.getData()}},{key:"addEdge",value:function(c){return this.graphModel.addEdge(c)}},{key:"deleteEdge",value:function(c){var s=this.options.guards,f=this.graphModel.edgesMap[c];if(!f)return!1;var h=f.model.getData(),v=!s||!s.beforeDelete||s.beforeDelete(h);return v&&this.graphModel.deleteEdgeById(c),v}},{key:"deleteEdgeByNodeId",value:function(c){var s=c.sourceNodeId,f=c.targetNodeId;s&&f?this.graphModel.deleteEdgeBySourceAndTarget(s,f):s?this.graphModel.deleteEdgeBySource(s):f&&this.graphModel.deleteEdgeByTarget(f)}},{key:"changeEdgeId",value:function(c,s){return this.graphModel.changeEdgeId(c,s)}},{key:"getEdgeModelById",value:function(c){var s;return(s=this.graphModel.edgesMap[c])===null||s===void 0?void 0:s.model}},{key:"getEdgeModels",value:function(c){var s=this.graphModel.edges,f=c.sourceNodeId,h=c.targetNodeId;if(f&&h){var v=[];return s.forEach(function(M){M.sourceNodeId===f&&M.targetNodeId===h&&v.push(M)}),v}if(f){var _=[];return s.forEach(function(M){M.sourceNodeId===f&&_.push(M)}),_}if(h){var E=[];return s.forEach(function(M){M.targetNodeId===h&&E.push(M)}),E}return[]}},{key:"getEdgeDataById",value:function(c){var s;return(s=this.getEdgeModelById(c))===null||s===void 0?void 0:s.getData()}},{key:"getNodeIncomingEdge",value:function(c){return this.graphModel.getNodeIncomingEdge(c)}},{key:"getNodeOutgoingEdge",value:function(c){return this.graphModel.getNodeOutgoingEdge(c)}},{key:"getNodeIncomingNode",value:function(c){return this.graphModel.getNodeIncomingNode(c)}},{key:"getNodeOutgoingNode",value:function(c){return this.graphModel.getNodeOutgoingNode(c)}},{key:"editText",value:function(c){this.graphModel.editText(c)}},{key:"setProperties",value:function(c,s){var f;(f=this.graphModel.getElement(c))===null||f===void 0||f.setProperties(bn(s))}},{key:"deleteProperty",value:function(c,s){var f;(f=this.graphModel.getElement(c))===null||f===void 0||f.deleteProperty(s)}},{key:"getProperties",value:function(c){var s;return(s=this.graphModel.getElement(c))===null||s===void 0?void 0:s.getProperties()}},{key:"toFront",value:function(c){this.graphModel.toFront(c)}},{key:"setElementZIndex",value:function(c,s){return this.graphModel.setElementZIndex(c,s)}},{key:"addElements",value:function(c){for(var s=this,f=c.nodes,h=c.edges,v={},_={nodes:[],edges:[]},E=0;E<f.length;E++){var M=f[E],N=M.id,$=this.addNode(M);if(!$)return;N&&(v[N]=$.id),_.nodes.push($)}return h.forEach(function(Y){var Q=Y.sourceNodeId,se=Y.targetNodeId;v[Q]&&(Q=v[Q]),v[se]&&(se=v[se]);var ae=s.graphModel.addEdge(Fa(Fa({},Y),{},{sourceNodeId:Q,targetNodeId:se}));_.edges.push(ae)}),_}},{key:"getAreaElement",value:function(c,s){var f=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],h=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],v=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(c,s,f,h,v).map(function(_){return _.getData()})}},{key:"getSelectElements",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.graphModel.getSelectElements(c)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var c=this.graphModel.modelToGraphData();if(this.adapterOut){for(var s=arguments.length,f=new Array(s),h=0;h<s;h++)f[h]=arguments[h];return this.adapterOut.apply(this,[c].concat(f))}return c}},{key:"getGraphRawData",value:function(){return this.graphModel.modelToGraphData()}},{key:"clearData",value:function(){this.graphModel.clearData()}},{key:"updateEditConfig",value:function(c){this.graphModel.editConfigModel.updateEditConfig(c)}},{key:"getEditConfig",value:function(){return this.graphModel.editConfigModel.getConfig()}},{key:"getPointByClient",value:function(c,s){return this.graphModel.getPointByClient({x:c,y:s})}},{key:"undo",value:function(){if(this.history.undoAble()){var c=bn(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(c)}}},{key:"redo",value:function(){if(this.history.redoAble()){var c=bn(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(c)}}},{key:"zoom",value:function(c,s){return this.graphModel.transformModel.zoom(c,s)}},{key:"resetZoom",value:function(){this.graphModel.transformModel.resetZoom()}},{key:"setZoomMiniSize",value:function(c){this.graphModel.transformModel.setZoomMiniSize(c)}},{key:"setZoomMaxSize",value:function(c){this.graphModel.transformModel.setZoomMaxSize(c)}},{key:"getTransform",value:function(){var c=this.graphModel.transformModel;return{SCALE_X:c.SCALE_X,SCALE_Y:c.SCALE_Y,TRANSLATE_X:c.TRANSLATE_X,TRANSLATE_Y:c.TRANSLATE_Y}}},{key:"translate",value:function(c,s){this.graphModel.transformModel.translate(c,s)}},{key:"resetTranslate",value:function(){var c=this.graphModel.transformModel,s=c.TRANSLATE_X,f=c.TRANSLATE_Y;this.translate(-s,-f)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(c,s){s===void 0&&(s=c),this.graphModel.fitView(c,s)}},{key:"openEdgeAnimation",value:function(c){this.graphModel.openEdgeAnimation(c)}},{key:"closeEdgeAnimation",value:function(c){this.graphModel.closeEdgeAnimation(c)}},{key:"on",value:function(c,s){this.graphModel.eventCenter.on(c,s)}},{key:"off",value:function(c,s){this.graphModel.eventCenter.off(c,s)}},{key:"once",value:function(c,s){this.graphModel.eventCenter.once(c,s)}},{key:"emit",value:function(c,s){this.graphModel.eventCenter.emit(c,s)}},{key:"initContainer",value:function(c){var s=document.createElement("div");return s.style.position="relative",s.style.width="100%",s.style.height="100%",c.innerHTML="",c.appendChild(s),s}},{key:"installPlugins",value:function(){var c,s=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=(c=this.plugins)!==null&&c!==void 0?c:e.extensions;h.forEach(function(v){var _=null,E=null;v[ud]?(_=v.extension,E=v.props):_=v;var M=_.pluginName||_.name;f.indexOf(M)===-1&&s.installPlugin(_,E)})}},{key:"installPlugin",value:function(c,s){if(ad(c)==="object"){var f=c.install,h=c.render;return f&&f.call(c,this,e),h&&this.components.push(h.bind(c)),void(this.extension[c.pluginName]=c)}var v=c,_=new v({lf:this,LogicFlow:e,options:this.options.pluginsOptions,props:s});_.render&&this.components.push(_.render.bind(_)),this.extension[v.pluginName]=_}},{key:"updateAttributes",value:function(c,s){this.graphModel.updateAttributes(c,s)}},{key:"createFakerNode",value:function(c){var s=this.graphModel.modelMap.get(c.type);if(s){var f=new s(Fa(Fa({},c),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(f),f}}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(c){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(c)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setView",value:function(c,s){this.viewMap.set(c,s)}},{key:"renderRawData",value:function(c){this.graphModel.graphDataToModel(bn(c)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(re.j)(Object(re.g)(oE,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(at.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.adapterIn&&(c=this.adapterIn(c)),this.renderRawData(c)}}],i=[{key:"use",value:function(c,s){var f,h,v=c.pluginName;v||(v=c.name);var _=(f=this.extensions.get(v))===null||f===void 0?void 0:f.extension;_&&_.destroy&&_.destroy(),this.extensions.set(v,(Ut(h={},ud,ud),Ut(h,"extension",c),Ut(h,"props",s),h))}}],n&&lm(t.prototype,n),i&&lm(t,i),e}();function _r(e){return ze(e)}Ut(sd,"extensions",new Map),l.default=sd}])})})(Be,Be.exports);var Js=i_(Be.exports);const DL=[{type:"bpmn:startEvent",text:"\u5F00\u59CB",class:"bpmn-start"},{type:"bpmn:endEvent",text:"\u7ED3\u675F",class:"bpmn-end"},{type:"bpmn:exclusiveGateway",text:"\u7F51\u5173",class:"bpmn-exclusiveGateway"},{type:"bpmn:userTask",text:"\u7528\u6237",class:"bpmn-user"}];var NL=function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){var u="xxxxxxx".replace(/[x]/g,function(a){var l=Math.random()*16|0,o=a==="x"?l:l&3|8;return o.toString(16)});return u},r.prototype.next=function(){for(var u=this.generateId();this._ids.has(u);)u=this.generateId();return this._ids.add(u),u},r}(),CL=(globalThis==null?void 0:globalThis._ids)||new NL;function oa(){return CL.next()}var H1=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),RL=function(r){H1(u,r);function u(a,l){var o=this;return a.id||(a.id="Event_"+oa()),a.text||(a.text=""),a.text&&typeof a.text=="string"&&(a.text={value:a.text,x:a.x,y:a.y+40}),o=r.call(this,a,l)||this,o}return u.prototype.setAttributes=function(){this.r=18},u.prototype.getConnectedTargetRules=function(){var a=r.prototype.getConnectedTargetRules.call(this),l={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return a.push(l),a},u.extendKey="StartEventModel",u}(Be.exports.CircleNodeModel),IL=function(r){H1(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.extendKey="StartEventNode",u}(Be.exports.CircleNode),LL={type:"bpmn:startEvent",view:IL,model:RL},U1=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),sc=globalThis&&globalThis.__assign||function(){return sc=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},sc.apply(this,arguments)},BL=function(r){U1(u,r);function u(a,l){var o=this;return a.id||(a.id="Event_"+oa()),a.text||(a.text=""),a.text&&typeof a.text=="string"&&(a.text={value:a.text,x:a.x,y:a.y+40}),o=r.call(this,a,l)||this,o}return u.prototype.setAttributes=function(){this.r=18},u.prototype.getConnectedSourceRules=function(){var a=r.prototype.getConnectedSourceRules.call(this),l={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return a.push(l),a},u.extendKey="EndEventModel",u}(Be.exports.CircleNodeModel),zL=function(r){U1(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},u.prototype.getShape=function(){var a=this.props.model,l=a.getNodeStyle(),o=a.x,p=a.y,d=a.r,y=r.prototype.getShape.call(this);return Be.exports.h("g",{},y,Be.exports.h("circle",sc(sc({},l),{cx:o,cy:p,r:d-5})))},u.extendKey="EndEventView",u}(Be.exports.CircleNode),FL={type:"bpmn:endEvent",view:zL,model:BL},X1=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Xa=globalThis&&globalThis.__assign||function(){return Xa=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Xa.apply(this,arguments)},$L=function(r){X1(u,r);function u(a,l){var o=this;return a.id||(a.id="Gateway_"+oa()),a.text||(a.text=""),a.text&&typeof a.text=="string"&&(a.text={value:a.text,x:a.x,y:a.y+40}),o=r.call(this,a,l)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return u.extendKey="ExclusiveGatewayModel",u}(Be.exports.PolygonNodeModel),WL=function(r){X1(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getShape=function(){var a=this.props.model,l=a.x,o=a.y,p=a.width,d=a.height,y=a.points,g=a.getNodeStyle();return Be.exports.h("g",{transform:"matrix(1 0 0 1 "+(l-p/2)+" "+(o-d/2)+")"},Be.exports.h("polygon",Xa(Xa({},g),{x:l,y:o,points:y})),Be.exports.h("path",Xa({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"},g)))},u.extendKey="ExclusiveGatewayNode",u}(Be.exports.PolygonNode),GL={type:"bpmn:exclusiveGateway",view:WL,model:$L},Y1=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),cc=globalThis&&globalThis.__assign||function(){return cc=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},cc.apply(this,arguments)},HL=function(r){Y1(u,r);function u(a,l){var o=this;return a.id||(a.id="Activity_"+oa()),o=r.call(this,a,l)||this,o}return u.extendKey="UserTaskModel",u}(Be.exports.RectNodeModel),UL=function(r){Y1(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getLabelShape=function(){var a=this.props.model,l=a.x,o=a.y,p=a.width,d=a.height,y=a.getNodeStyle();return Be.exports.h("svg",{x:l-p/2+5,y:o-d/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},Be.exports.h("path",{fill:y.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"}))},u.prototype.getShape=function(){var a=this.props.model,l=a.x,o=a.y,p=a.width,d=a.height,y=a.radius,g=a.getNodeStyle();return Be.exports.h("g",{},[Be.exports.h("rect",cc(cc({},g),{x:l-p/2,y:o-d/2,rx:y,ry:y,width:p,height:d})),this.getLabelShape()])},u.extendKey="UserTaskNode",u}(Be.exports.RectNode),XL={type:"bpmn:userTask",view:UL,model:HL},V1=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Pd=globalThis&&globalThis.__assign||function(){return Pd=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Pd.apply(this,arguments)},YL=function(r){V1(u,r);function u(a,l){var o=this;return a.id||(a.id="Activity_"+oa()),o=r.call(this,a,l)||this,o}return u.extendKey="ServiceTaskModel",u}(Be.exports.RectNodeModel),VL=function(r){V1(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getLabelShape=function(){var a=this.props.model,l=a.x,o=a.y,p=a.width,d=a.height,y=a.getNodeStyle();return Be.exports.h("svg",{x:l-p/2+5,y:o-d/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},Be.exports.h("path",{fill:y.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"}))},u.prototype.getShape=function(){var a=this.props.model,l=a.x,o=a.y,p=a.width,d=a.height,y=a.radius,g=a.getNodeStyle();return Be.exports.h("g",{},[Be.exports.h("rect",Pd({x:l-p/2,y:o-d/2,rx:y,ry:y,width:p,height:d},g)),this.getLabelShape()])},u.extendKey="ServiceTaskNode",u}(Be.exports.RectNode),KL={type:"bpmn:serviceTask",view:VL,model:YL},K1=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),qL=function(r){K1(u,r);function u(a,l){var o=this;return a.id||(a.id="Flow_"+oa()),o=r.call(this,a,l)||this,o}return u.extendKey="SequenceFlowModel",u}(Be.exports.PolylineEdgeModel),ZL=function(r){K1(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.extendKey="SequenceFlowEdge",u}(Be.exports.PolylineEdge),JL={type:"bpmn:sequenceFlow",view:ZL,model:qL},Km={width:40,height:40},qm={width:40,height:40},Zm={width:40,height:40},Jm={width:100,height:80},Qm={width:100,height:80},QL={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}}},e4=function(){function r(u){var a=u.lf;a.setTheme(QL),a.register(LL),a.register(FL),a.register(GL),a.register(XL),a.register(KL),a.options.customBpmnEdge||(a.register(JL),a.setDefaultEdgeType("bpmn:sequenceFlow"))}return r.pluginName="bpmnElement",r}(),t4=function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){var u="xxxxxxx".replace(/[x]/g,function(a){var l=Math.random()*16|0,o=a==="x"?l:l&3|8;return o.toString(16)});return u},r.prototype.next=function(){for(var u=this.generateId();this._ids.has(u);)u=this.generateId();return this._ids.add(u),u},r}(),n4=(globalThis==null?void 0:globalThis._ids)||new t4;function e0(){return n4.next()}function q1(r){return Object.prototype.toString.call(r)}function r4(r){return" ".repeat(r)}function lc(r){var u=r;return q1(r)==="[object Object]"?(u={},Object.keys(r).forEach(function(a){var l=a;a.charAt(0)==="-"&&(l=a.substring(1)),u[l]=lc(r[a])})):Array.isArray(r)&&(u=[],r.forEach(function(a,l){u[l]=lc(a)})),u}function o4(r){var u=r;try{typeof u!="string"&&(u=JSON.parse(r))}catch{u=JSON.stringify(lc(r)).replace(/"/g,"'")}return u}var Fi=`
  93. `;function ec(r,u,a){var l=r4(a),o="";if(u==="#text")return Fi+l+r;if(u==="#cdata-section")return Fi+l+"<![CDATA["+r+"]]>";if(u==="#comment")return Fi+l+"<!--"+r+"-->";if((""+u).charAt(0)==="-")return" "+u.substring(1)+'="'+o4(r)+'"';if(Array.isArray(r))r.forEach(function(g){o+=ec(g,u,a+1)});else if(q1(r)==="[object Object]"){var p=Object.keys(r),d="",y="";o+=(a===0?"":Fi+l)+"<"+u,p.forEach(function(g){g.charAt(0)==="-"?d+=ec(r[g],g,a+1):y+=ec(r[g],g,a+1)}),o+=d+(y!==""?">"+y+(Fi+l)+"</"+u+">":" />")}else o+=Fi+l+("<"+u+">"+r.toString()+"</"+u+">");return o}function i4(r){var u="";for(var a in r)u+=ec(r[a],a,0);return u}var kn=function(){};kn.ObjTree=function(){return this};kn.ObjTree.VERSION="0.23";kn.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  94. `;kn.ObjTree.prototype.attr_prefix="-";kn.ObjTree.prototype.parseXML=function(r){var u;if(window.DOMParser){var a=new DOMParser,l=a.parseFromString(r,"application/xml");if(!l)return;u=l.documentElement}else window.ActiveXObject&&(a=new ActiveXObject("Microsoft.XMLDOM"),a.async=!1,a.loadXML(r),u=a.documentElement);if(!!u)return this.parseDOM(u)};kn.ObjTree.prototype.parseHTTP=function(r,u,a){var l={};for(var o in u)l[o]=u[o];if(l.method||(typeof l.postBody=="undefined"&&typeof l.postbody=="undefined"&&typeof l.parameters=="undefined"?l.method="get":l.method="post"),a){l.asynchronous=!0;var p=this,d=a,y=l.onComplete;l.onComplete=function(x){var w;x&&x.responseXML&&x.responseXML.documentElement&&(w=p.parseDOM(x.responseXML.documentElement)),d(w,x),y&&y(x)}}else l.asynchronous=!1;var g;if(typeof HTTP!="undefined"&&HTTP.Request){l.uri=r;var O=new HTTP.Request(l);O&&(g=O.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var O=new Ajax.Request(r,l);O&&(g=O.transport)}if(a)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};kn.ObjTree.prototype.parseDOM=function(r){if(!!r){if(this.__force_array={},this.force_array)for(var u=0;u<this.force_array.length;u++)this.__force_array[this.force_array[u]]=1;var a=this.parseElement(r);if(this.__force_array[r.nodeName]&&(a=[a]),r.nodeType!=11){var l={};l[r.nodeName]=a,a=l}return a}};kn.ObjTree.prototype.parseElement=function(r){if(r.nodeType!=7){if(r.nodeType==3||r.nodeType==4||r.nodeType==8){var u=r.nodeValue.match(/[^\x00-\x20]/);return u==null?void 0:r.nodeValue}var a=null,l={};if(r.attributes&&r.attributes.length){a={};for(var o=0;o<r.attributes.length;o++){var p=r.attributes[o].nodeName;if(typeof p=="string"){var d=r.attributes[o].nodeValue;try{d=JSON.parse(r.attributes[o].nodeValue.replace(/'/g,'"'))}catch{d=r.attributes[o].nodeValue}!d||(p=this.attr_prefix+p,typeof l[p]=="undefined"&&(l[p]=0),l[p]++,this.addNode(a,p,l[p],d))}}}if(r.childNodes&&r.childNodes.length){var y=!0;a&&(y=!1);for(var o=0;o<r.childNodes.length&&y;o++){var g=r.childNodes[o].nodeType;g==3||g==4||g==8||(y=!1)}if(y){a||(a="");for(var o=0;o<r.childNodes.length;o++)a+=r.childNodes[o].nodeValue}else{a||(a={});for(var o=0;o<r.childNodes.length;o++){var p=r.childNodes[o].nodeName;if(typeof p=="string"){var d=this.parseElement(r.childNodes[o]);!d||(typeof l[p]=="undefined"&&(l[p]=0),l[p]++,this.addNode(a,p,l[p],d))}}}}else a===null&&(a={});return a}};kn.ObjTree.prototype.addNode=function(r,u,a,l){this.__force_array[u]?(a==1&&(r[u]=[]),r[u][r[u].length]=l):a==1?r[u]=l:a==2?r[u]=[r[u],l]:r[u][r[u].length]=l};kn.ObjTree.prototype.writeXML=function(r){var u=this.hash_to_xml(null,r);return this.xmlDecl+u};kn.ObjTree.prototype.hash_to_xml=function(r,u){var a=[],l=[];for(var o in u)if(!!u.hasOwnProperty(o)){var p=u[o];o.charAt(0)!=this.attr_prefix?typeof p=="undefined"||p==null?a[a.length]="<"+o+" />":typeof p=="object"&&p.constructor==Array?a[a.length]=this.array_to_xml(o,p):typeof p=="object"?a[a.length]=this.hash_to_xml(o,p):a[a.length]=this.scalar_to_xml(o,p):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(p)+'"'}var d=l.join(""),y=a.join("");return typeof r=="undefined"||r==null||(a.length>0?y.match(/\n/)?y="<"+r+d+`>
  95. `+y+"</"+r+`>
  96. `:y="<"+r+d+">"+y+"</"+r+`>
  97. `:y="<"+r+d+` />
  98. `),y};kn.ObjTree.prototype.array_to_xml=function(r,u){for(var a=[],l=0;l<u.length;l++){var o=u[l];typeof o=="undefined"||o==null?a[a.length]="<"+r+" />":typeof o=="object"&&o.constructor==Array?a[a.length]=this.array_to_xml(r,o):typeof o=="object"?a[a.length]=this.hash_to_xml(r,o):a[a.length]=this.scalar_to_xml(r,o)}return a.join("")};kn.ObjTree.prototype.scalar_to_xml=function(r,u){return r=="#text"?this.xml_escape(u):"<"+r+">"+this.xml_escape(u)+"</"+r+`>
  99. `};kn.ObjTree.prototype.xml_escape=function(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var a4=function(r){return new kn.ObjTree().parseXML(r)},u4=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Ad=globalThis&&globalThis.__assign||function(){return Ad=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Ad.apply(this,arguments)},Ic=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p},Gr;(function(r){r.START="bpmn:startEvent",r.END="bpmn:endEvent",r.GATEWAY="bpmn:exclusiveGateway",r.USER="bpmn:userTask",r.SYSTEM="bpmn:serviceTask",r.FLOW="bpmn:sequenceFlow"})(Gr||(Gr={}));var Z1=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],t0=["properties","startPoint","endPoint","pointsList"];function n0(r){var u=r?t0.concat(r):t0;return function(a){function l(o){var p={};return typeof o=="string"?o:Array.isArray(o)?o.map(function(d){return l(d)}):(Object.entries(o).forEach(function(d){var y=Ic(d,2),g=y[0],O=y[1];typeof O!="object"?g.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(g)?p[g]=O:p["-"+g]=O:u.includes(g)?p["-"+g]=l(O):p[g]=l(O)}),p)}return l(a)}}function fc(r){var u={};return Object.entries(r).forEach(function(a){var l=Ic(a,2),o=l[0],p=l[1];o.indexOf("-")===0?u[o.substring(1)]=lc(p):typeof p=="string"?u[o]=p:Object.prototype.toString.call(p)==="[object Object]"?u[o]=fc(p):Array.isArray(p)?u[o]=p.map(function(d){return fc(d)}):u[o]=p}),u}function s4(r,u,a){var l=new Map;u.nodes.forEach(function(p){var d,y={"-id":p.id};if(!((d=p.text)===null||d===void 0)&&d.value&&(y["-name"]=p.text.value),p.properties){var g=n0(a)(p.properties);Object.assign(y,g)}l.set(p.id,y),r[p.type]?Array.isArray(r[p.type])?r[p.type].push(y):r[p.type]=[r[p.type],y]:r[p.type]=y});var o=u.edges.map(function(p){var d,y,g=l.get(p.targetNodeId);g["bpmn:incoming"]?Array.isArray(g["bpmn:incoming"])?g["bpmn:incoming"].push(p.id):g["bpmn:incoming"]=[g["bpmn:incoming"],p.id]:g["bpmn:incoming"]=p.id;var O={"-id":p.id,"-sourceRef":p.sourceNodeId,"-targetRef":p.targetNodeId};if(!((d=p.text)===null||d===void 0)&&d.value&&(O["-name"]=(y=p.text)===null||y===void 0?void 0:y.value),p.properties){var x=n0(a)(p.properties);Object.assign(O,x)}return O});u.edges.forEach(function(p){var d=l.get(p.sourceNodeId);d["bpmn:outgoing"]?Array.isArray(d["bpmn:outgoing"])?d["bpmn:outgoing"].push(p.id):d["bpmn:outgoing"]=[d["bpmn:outgoing"],p.id]:d["bpmn:outgoing"]=p.id}),r[Gr.FLOW]=o}function c4(r,u){r["bpmndi:BPMNEdge"]=u.edges.map(function(a){var l,o=a.id,p=a.pointsList.map(function(y){var g=y.x,O=y.y;return{"-x":g,"-y":O}}),d={"-id":o+"_di","-bpmnElement":o,"di:waypoint":p};return!((l=a.text)===null||l===void 0)&&l.value&&(d["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),d}),r["bpmndi:BPMNShape"]=u.nodes.map(function(a){var l,o=a.id,p=100,d=80,y=a.x,g=a.y,O=Fo.shapeConfigMap.get(a.type);O&&(p=O.width,d=O.height),y-=p/2,g-=d/2;var x={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":y,"-y":g,"-width":p,"-height":d}};return!((l=a.text)===null||l===void 0)&&l.value&&(x["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),x})}function l4(r){var u=[],a=[],l=r["bpmn:definitions"];if(l){var o=l["bpmn:process"];Object.keys(o).forEach(function(p){if(p.indexOf("bpmn:")===0){var d=o[p];if(p===Gr.FLOW){var y=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];a=p4(d,y)}else{var g=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];u=u.concat(f4(d,g,p))}}})}return{nodes:u,edges:a}}function f4(r,u,a){var l=[];if(Array.isArray(r))r.forEach(function(d){var y;Array.isArray(u)?y=u.find(function(O){return O["-bpmnElement"]===d["-id"]}):y=u;var g=r0(y,a,d);l.push(g)});else{var o=void 0;Array.isArray(u)?o=u.find(function(d){return d["-bpmnElement"]===r["-id"]}):o=u;var p=r0(o,a,r);l.push(p)}return l}function r0(r,u,a){var l=Number(r["dc:Bounds"]["-x"]),o=Number(r["dc:Bounds"]["-y"]),p=a["-name"],d=Fo.shapeConfigMap.get(u);d&&(l+=d.width/2,o+=d.height/2);var y;Object.entries(a).forEach(function(w){var j=Ic(w,2),P=j[0],k=j[1];Z1.indexOf(P)===-1&&(y||(y={}),y[P]=k)}),y&&(y=fc(y));var g;if(p&&(g={x:l,y:o,value:p},r["bpmndi:BPMNLabel"]&&r["bpmndi:BPMNLabel"]["dc:Bounds"])){var O=r["bpmndi:BPMNLabel"]["dc:Bounds"];g.x=Number(O["-x"])+Number(O["-width"])/2,g.y=Number(O["-y"])+Number(O["-height"])/2}var x={id:r["-bpmnElement"],type:u,x:l,y:o,properties:y};return g&&(x.text=g),x}function p4(r,u){var a=[];if(Array.isArray(r))r.forEach(function(o){var p;Array.isArray(u)?p=u.find(function(d){return d["-bpmnElement"]===o["-id"]}):p=u,a.push(o0(p,o))});else{var l=void 0;Array.isArray(u)?l=u.find(function(o){return o["-bpmnElement"]===r["-id"]}):l=u,a.push(o0(l,r))}return a}function o0(r,u){var a,l=u["-name"];if(l){var o=r["bpmndi:BPMNLabel"]["dc:Bounds"],p=0;l.split(`
  100. `).forEach(function(g){p<g.length&&(p=g.length)}),a={value:l,x:Number(o["-x"])+p*10/2,y:Number(o["-y"])+7}}var d;Object.entries(u).forEach(function(g){var O=Ic(g,2),x=O[0],w=O[1];Z1.indexOf(x)===-1&&(d||(d={}),d[x]=w)}),d&&(d=fc(d));var y={id:u["-id"],type:Gr.FLOW,pointsList:r["di:waypoint"].map(function(g){return{x:Number(g["-x"]),y:Number(g["-y"])}}),sourceNodeId:u["-sourceRef"],targetNodeId:u["-targetRef"],properties:d};return a&&(y.text=a),y}var Fo=function(){function r(u){var a=this,l=u.lf;this.adapterOut=function(o,p){var d=Ad({},a.processAttributes);s4(d,o,p);var y={"-id":"BPMNPlane_1","-bpmnElement":d["-id"]};c4(y,o);var g=a.definitionAttributes;g["bpmn:process"]=d,g["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":y};var O={"bpmn:definitions":g};return O},this.adapterIn=function(o){if(o)return l4(o)},l.adapterIn=function(o){return a.adapterIn(o)},l.adapterOut=function(o,p){return a.adapterOut(o,p)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+e0()},this.definitionAttributes={"-id":"Definitions_"+e0(),"-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 r.prototype.setCustomShape=function(u,a){r.shapeConfigMap.set(u,a)},r.pluginName="bpmn-adapter",r.shapeConfigMap=new Map,r}();Fo.shapeConfigMap.set(Gr.START,{width:Km.width,height:Km.height});Fo.shapeConfigMap.set(Gr.END,{width:qm.width,height:qm.height});Fo.shapeConfigMap.set(Gr.GATEWAY,{width:Zm.width,height:Zm.height});Fo.shapeConfigMap.set(Gr.SYSTEM,{width:Jm.width,height:Jm.height});Fo.shapeConfigMap.set(Gr.USER,{width:Qm.width,height:Qm.height});(function(r){u4(u,r);function u(a){var l=r.call(this,a)||this;l.adapterXmlIn=function(p){var d=a4(p);return l.adapterIn(d)},l.adapterXmlOut=function(p,d){var y=l.adapterOut(p,d);return i4(y)};var o=a.lf;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l}return u.pluginName="bpmnXmlAdapter",u})(Fo);var d4=function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){var u="xxxxxxx".replace(/[x]/g,function(a){var l=Math.random()*16|0,o=a==="x"?l:l&3|8;return o.toString(16)});return u},r.prototype.next=function(){for(var u=this.generateId();this._ids.has(u);)u=this.generateId();return this._ids.add(u),u},r}(),h4=(globalThis==null?void 0:globalThis._ids)||new d4;function y4(){return h4.next()}globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var i0=globalThis&&globalThis.__assign||function(){return i0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},i0.apply(this,arguments)},v4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var a0=globalThis&&globalThis.__assign||function(){return a0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},a0.apply(this,arguments)},g4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var u0=globalThis&&globalThis.__assign||function(){return u0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},u0.apply(this,arguments)},b4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var s0=globalThis&&globalThis.__assign||function(){return s0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},s0.apply(this,arguments)},m4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var c0=globalThis&&globalThis.__assign||function(){return c0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},c0.apply(this,arguments)},_4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;Be.exports.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"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"}),Be.exports.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;"});Be.exports.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);"});Be.exports.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 r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var l0=globalThis&&globalThis.__assign||function(){return l0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},l0.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var f0=globalThis&&globalThis.__assign||function(){return f0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},f0.apply(this,arguments)},O4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;var vh,sn,J1,ti,p0,Q1,Td,tc={},eO=[],w4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,gh=Array.isArray;function Co(r,u){for(var a in u)r[a]=u[a];return r}function tO(r){var u=r.parentNode;u&&u.removeChild(r)}function Ya(r,u,a){var l,o,p,d={};for(p in u)p=="key"?l=u[p]:p=="ref"?o=u[p]:d[p]=u[p];if(arguments.length>2&&(d.children=arguments.length>3?vh.call(arguments,2):a),typeof r=="function"&&r.defaultProps!=null)for(p in r.defaultProps)d[p]===void 0&&(d[p]=r.defaultProps[p]);return nc(r,d,l,o,null)}function nc(r,u,a,l,o){var p={type:r,props:u,key:a,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++J1:o};return o==null&&sn.vnode!=null&&sn.vnode(p),p}function bh(r){return r.children}function Yi(r,u){this.props=r,this.context=u}function Za(r,u){if(u==null)return r.__?Za(r.__,r.__.__k.indexOf(r)+1):null;for(var a;u<r.__k.length;u++)if((a=r.__k[u])!=null&&a.__e!=null)return a.__e;return typeof r.type=="function"?Za(r):null}function nO(r){var u,a;if((r=r.__)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,u=0;u<r.__k.length;u++)if((a=r.__k[u])!=null&&a.__e!=null){r.__e=r.__c.base=a.__e;break}return nO(r)}}function d0(r){(!r.__d&&(r.__d=!0)&&ti.push(r)&&!pc.__r++||p0!==sn.debounceRendering)&&((p0=sn.debounceRendering)||Q1)(pc)}function pc(){var r,u,a,l,o,p,d,y,g;for(ti.sort(Td);r=ti.shift();)r.__d&&(u=ti.length,l=void 0,o=void 0,p=void 0,y=(d=(a=r).__v).__e,(g=a.__P)&&(l=[],o=[],(p=Co({},d)).__v=d.__v+1,aO(g,d,p,a.__n,g.ownerSVGElement!==void 0,d.__h!=null?[y]:null,l,y==null?Za(d):y,d.__h,o),S4(l,d,o),d.__e!=y&&nO(d)),ti.length>u&&ti.sort(Td));pc.__r=0}function rO(r,u,a,l,o,p,d,y,g,O,x){var w,j,P,k,T,D,B,z,q,ne=0,V=l&&l.__k||eO,Z=V.length,ee=Z,W=u.length;for(a.__k=[],w=0;w<W;w++)(k=a.__k[w]=(k=u[w])==null||typeof k=="boolean"||typeof k=="function"?null:typeof k=="string"||typeof k=="number"||typeof k=="bigint"?nc(null,k,null,null,k):gh(k)?nc(bh,{children:k},null,null,null):k.__b>0?nc(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)!=null?(k.__=a,k.__b=a.__b+1,(z=x4(k,V,B=w+ne,ee))===-1?P=tc:(P=V[z]||tc,V[z]=void 0,ee--),aO(r,k,P,o,p,d,y,g,O,x),T=k.__e,(j=k.ref)&&P.ref!=j&&(P.ref&&mh(P.ref,null,k),x.push(j,k.__c||T,k)),T!=null&&(D==null&&(D=T),(q=P===tc||P.__v===null)?z==-1&&ne--:z!==B&&(z===B+1?ne++:z>B?ee>W-B?ne+=z-B:ne--:ne=z<B&&z==B-1?z-B:0),B=w+ne,typeof k.type!="function"||z===B&&P.__k!==k.__k?typeof k.type=="function"||z===B&&!q?k.__d!==void 0?(g=k.__d,k.__d=void 0):g=T.nextSibling:g=iO(r,T,g):g=oO(k,g,r),typeof a.type=="function"&&(a.__d=g))):(P=V[w])&&P.key==null&&P.__e&&(P.__e==g&&(g=Za(P)),Md(P,P,!1),V[w]=null);for(a.__e=D,w=Z;w--;)V[w]!=null&&(typeof a.type=="function"&&V[w].__e!=null&&V[w].__e==a.__d&&(a.__d=V[w].__e.nextSibling),Md(V[w],V[w]))}function oO(r,u,a){for(var l,o=r.__k,p=0;o&&p<o.length;p++)(l=o[p])&&(l.__=r,u=typeof l.type=="function"?oO(l,u,a):iO(a,l.__e,u));return u}function iO(r,u,a){return a==null||a.parentNode!==r?r.insertBefore(u,null):u==a&&u.parentNode!=null||r.insertBefore(u,a),u.nextSibling}function x4(r,u,a,l){var o=r.key,p=r.type,d=a-1,y=a+1,g=u[a];if(g===null||g&&o==g.key&&p===g.type)return a;if(l>(g!=null?1:0))for(;d>=0||y<u.length;){if(d>=0){if((g=u[d])&&o==g.key&&p===g.type)return d;d--}if(y<u.length){if((g=u[y])&&o==g.key&&p===g.type)return y;y++}}return-1}function E4(r,u,a,l,o){var p;for(p in a)p==="children"||p==="key"||p in u||dc(r,p,null,a[p],l);for(p in u)o&&typeof u[p]!="function"||p==="children"||p==="key"||p==="value"||p==="checked"||a[p]===u[p]||dc(r,p,u[p],a[p],l)}function h0(r,u,a){u[0]==="-"?r.setProperty(u,a==null?"":a):r[u]=a==null?"":typeof a!="number"||w4.test(u)?a:a+"px"}function dc(r,u,a,l,o){var p;e:if(u==="style")if(typeof a=="string")r.style.cssText=a;else{if(typeof l=="string"&&(r.style.cssText=l=""),l)for(u in l)a&&u in a||h0(r.style,u,"");if(a)for(u in a)l&&a[u]===l[u]||h0(r.style,u,a[u])}else if(u[0]==="o"&&u[1]==="n")p=u!==(u=u.replace(/(PointerCapture)$|Capture$/,"$1")),u=u.toLowerCase()in r?u.toLowerCase().slice(2):u.slice(2),r.l||(r.l={}),r.l[u+p]=a,a?l||r.addEventListener(u,p?v0:y0,p):r.removeEventListener(u,p?v0:y0,p);else if(u!=="dangerouslySetInnerHTML"){if(o)u=u.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(u!=="width"&&u!=="height"&&u!=="href"&&u!=="list"&&u!=="form"&&u!=="tabIndex"&&u!=="download"&&u!=="rowSpan"&&u!=="colSpan"&&u in r)try{r[u]=a==null?"":a;break e}catch{}typeof a=="function"||(a==null||a===!1&&u[4]!=="-"?r.removeAttribute(u):r.setAttribute(u,a))}}function y0(r){return this.l[r.type+!1](sn.event?sn.event(r):r)}function v0(r){return this.l[r.type+!0](sn.event?sn.event(r):r)}function aO(r,u,a,l,o,p,d,y,g,O){var x,w,j,P,k,T,D,B,z,q,ne,V,Z,ee,W,R=u.type;if(u.constructor!==void 0)return null;a.__h!=null&&(g=a.__h,y=u.__e=a.__e,u.__h=null,p=[y]),(x=sn.__b)&&x(u);e:if(typeof R=="function")try{if(B=u.props,z=(x=R.contextType)&&l[x.__c],q=x?z?z.props.value:x.__:l,a.__c?D=(w=u.__c=a.__c).__=w.__E:("prototype"in R&&R.prototype.render?u.__c=w=new R(B,q):(u.__c=w=new Yi(B,q),w.constructor=R,w.render=P4),z&&z.sub(w),w.props=B,w.state||(w.state={}),w.context=q,w.__n=l,j=w.__d=!0,w.__h=[],w._sb=[]),w.__s==null&&(w.__s=w.state),R.getDerivedStateFromProps!=null&&(w.__s==w.state&&(w.__s=Co({},w.__s)),Co(w.__s,R.getDerivedStateFromProps(B,w.__s))),P=w.props,k=w.state,w.__v=u,j)R.getDerivedStateFromProps==null&&w.componentWillMount!=null&&w.componentWillMount(),w.componentDidMount!=null&&w.__h.push(w.componentDidMount);else{if(R.getDerivedStateFromProps==null&&B!==P&&w.componentWillReceiveProps!=null&&w.componentWillReceiveProps(B,q),!w.__e&&(w.shouldComponentUpdate!=null&&w.shouldComponentUpdate(B,w.__s,q)===!1||u.__v===a.__v)){for(u.__v!==a.__v&&(w.props=B,w.state=w.__s,w.__d=!1),u.__e=a.__e,u.__k=a.__k,u.__k.forEach(function(F){F&&(F.__=u)}),ne=0;ne<w._sb.length;ne++)w.__h.push(w._sb[ne]);w._sb=[],w.__h.length&&d.push(w);break e}w.componentWillUpdate!=null&&w.componentWillUpdate(B,w.__s,q),w.componentDidUpdate!=null&&w.__h.push(function(){w.componentDidUpdate(P,k,T)})}if(w.context=q,w.props=B,w.__P=r,w.__e=!1,V=sn.__r,Z=0,"prototype"in R&&R.prototype.render){for(w.state=w.__s,w.__d=!1,V&&V(u),x=w.render(w.props,w.state,w.context),ee=0;ee<w._sb.length;ee++)w.__h.push(w._sb[ee]);w._sb=[]}else do w.__d=!1,V&&V(u),x=w.render(w.props,w.state,w.context),w.state=w.__s;while(w.__d&&++Z<25);w.state=w.__s,w.getChildContext!=null&&(l=Co(Co({},l),w.getChildContext())),j||w.getSnapshotBeforeUpdate==null||(T=w.getSnapshotBeforeUpdate(P,k)),rO(r,gh(W=x!=null&&x.type===bh&&x.key==null?x.props.children:x)?W:[W],u,a,l,o,p,d,y,g,O),w.base=u.__e,u.__h=null,w.__h.length&&d.push(w),D&&(w.__E=w.__=null)}catch(F){u.__v=null,(g||p!=null)&&(u.__e=y,u.__h=!!g,p[p.indexOf(y)]=null),sn.__e(F,u,a)}else p==null&&u.__v===a.__v?(u.__k=a.__k,u.__e=a.__e):u.__e=j4(a.__e,u,a,l,o,p,d,g,O);(x=sn.diffed)&&x(u)}function S4(r,u,a){for(var l=0;l<a.length;l++)mh(a[l],a[++l],a[++l]);sn.__c&&sn.__c(u,r),r.some(function(o){try{r=o.__h,o.__h=[],r.some(function(p){p.call(o)})}catch(p){sn.__e(p,o.__v)}})}function j4(r,u,a,l,o,p,d,y,g){var O,x,w,j=a.props,P=u.props,k=u.type,T=0;if(k==="svg"&&(o=!0),p!=null){for(;T<p.length;T++)if((O=p[T])&&"setAttribute"in O==!!k&&(k?O.localName===k:O.nodeType===3)){r=O,p[T]=null;break}}if(r==null){if(k===null)return document.createTextNode(P);r=o?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,P.is&&P),p=null,y=!1}if(k===null)j===P||y&&r.data===P||(r.data=P);else{if(p=p&&vh.call(r.childNodes),x=(j=a.props||tc).dangerouslySetInnerHTML,w=P.dangerouslySetInnerHTML,!y){if(p!=null)for(j={},T=0;T<r.attributes.length;T++)j[r.attributes[T].name]=r.attributes[T].value;(w||x)&&(w&&(x&&w.__html==x.__html||w.__html===r.innerHTML)||(r.innerHTML=w&&w.__html||""))}if(E4(r,P,j,o,y),w)u.__k=[];else if(rO(r,gh(T=u.props.children)?T:[T],u,a,l,o&&k!=="foreignObject",p,d,p?p[0]:a.__k&&Za(a,0),y,g),p!=null)for(T=p.length;T--;)p[T]!=null&&tO(p[T]);y||("value"in P&&(T=P.value)!==void 0&&(T!==r.value||k==="progress"&&!T||k==="option"&&T!==j.value)&&dc(r,"value",T,j.value,!1),"checked"in P&&(T=P.checked)!==void 0&&T!==r.checked&&dc(r,"checked",T,j.checked,!1))}return r}function mh(r,u,a){try{typeof r=="function"?r(u):r.current=u}catch(l){sn.__e(l,a)}}function Md(r,u,a){var l,o;if(sn.unmount&&sn.unmount(r),(l=r.ref)&&(l.current&&l.current!==r.__e||mh(l,null,u)),(l=r.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(p){sn.__e(p,u)}l.base=l.__P=null,r.__c=void 0}if(l=r.__k)for(o=0;o<l.length;o++)l[o]&&Md(l[o],u,a||typeof r.type!="function");a||r.__e==null||tO(r.__e),r.__=r.__e=r.__d=void 0}function P4(r,u,a){return this.constructor(r,a)}vh=eO.slice,sn={__e:function(r,u,a,l){for(var o,p,d;u=u.__;)if((o=u.__c)&&!o.__)try{if((p=o.constructor)&&p.getDerivedStateFromError!=null&&(o.setState(p.getDerivedStateFromError(r)),d=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(r,l||{}),d=o.__d),d)return o.__E=o}catch(y){r=y}throw r}},J1=0,Yi.prototype.setState=function(r,u){var a;a=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Co({},this.state),typeof r=="function"&&(r=r(Co({},a),this.props)),r&&Co(a,r),r!=null&&this.__v&&(u&&this._sb.push(u),d0(this))},Yi.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),d0(this))},Yi.prototype.render=bh,ti=[],Q1=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Td=function(r,u){return r.__v.__b-u.__v.__b},pc.__r=0;var Va=globalThis&&globalThis.__assign||function(){return Va=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Va.apply(this,arguments)};function _h(r){var u=r.x,a=r.y,l=r.width,o=r.height,p=r.radius,d=r.className,y=u-l/2,g=a-o/2,O=Va(Va({width:10,height:10,cx:0,cy:0,rx:p||0,ry:p||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+d},r),{x:y,y:g});return Be.exports.h("rect",Va({},O))}_h.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var Hi;(function(r){r.NODE="node",r.CIRCLE_NODE="circle-node",r.POLYGON_NODE="polygon-node",r.RECT_NODE="rect-node",r.HTML_NODE="html-node",r.TEXT_NODE="text-node",r.ELLIPSE_NODE="ellipse-node",r.DIAMOND_NODE="diamond-node",r.EDGE="edge",r.LINE_EDGE="line-edge",r.POLYLINE_EDGE="polyline-edge",r.BEZIER_EDGE="bezier-edge",r.GRAPH="graph"})(Hi||(Hi={}));var A4=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),ni=globalThis&&globalThis.__assign||function(){return ni=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},ni.apply(this,arguments)},T4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p},M4=Be.exports.LogicFlowUtil.StepDrag,k4=function(r){A4(u,r);function u(a){var l=r.call(this)||this;return l.updatePosition=function(o){var p=o.deltaX,d=o.deltaY,y=l.nodeModel,g=y.x,O=y.y;l.nodeModel.x=g+p/2,l.nodeModel.y=O+d/2,l.nodeModel.moveText(p/2,d/2)},l.getResize=function(o){var p=o.index,d=o.deltaX,y=o.deltaY,g=o.width,O=o.height,x=o.PCTResizeInfo,w=o.pct,j=w===void 0?1:w,P={width:g,height:O,deltaX:d,deltaY:y};if(x){var k=4,T=0,D=0;switch(p){case 0:D=(d*-1-y)/k;break;case 1:D=(d-y)/k;break;case 2:D=(d+y)/k;break;case 3:D=(d*-1+y)/k;break}D!==0&&(T=Math.round(D/x.ResizeBasis.basisHeight*1e5)/1e3),x.ResizePCT.widthPCT=Math.max(Math.min(x.ResizePCT.widthPCT+T,x.ScaleLimit.maxScaleLimit),x.ScaleLimit.minScaleLimit),x.ResizePCT.hightPCT=Math.max(Math.min(x.ResizePCT.hightPCT+T,x.ScaleLimit.maxScaleLimit),x.ScaleLimit.minScaleLimit);var B=Math.round(x.ResizePCT.widthPCT*x.ResizeBasis.basisWidth/100),z=Math.round(x.ResizePCT.hightPCT*x.ResizeBasis.basisHeight/100);switch(p){case 0:d=g-B,y=O-z;break;case 1:d=B-g,y=O-z;break;case 2:d=B-g,y=z-O;break;case 3:d=g-B,y=z-O;break}return P.width=B,P.height=z,P.deltaX=d/j,P.deltaY=y/j,P}switch(p){case 0:P.width=g-d*j,P.height=O-y*j;break;case 1:P.width=g+d*j,P.height=O-y*j;break;case 2:P.width=g+d*j,P.height=O+y*j;break;case 3:P.width=g-d*j,P.height=O+y*j;break}return P},l.updateEdgePointByAnchors=function(){var o=l.nodeModel,p=o.id,d=o.anchors,y=l.getNodeEdges(p);y.sourceEdges.forEach(function(g){var O=d.find(function(x){return x.id===g.sourceAnchorId});g.updateStartPoint({x:O.x,y:O.y})}),y.targetEdges.forEach(function(g){var O=d.find(function(x){return x.id===g.targetAnchorId});g.updateEndPoint({x:O.x,y:O.y})})},l.updateRect=function(o){var p=o.deltaX,d=o.deltaY,y=l.nodeModel,g=y.id,O=y.x,x=y.y,w=y.width,j=y.height,P=y.radius,k=y.PCTResizeInfo,T=l.index,D=l.getResize({index:T,deltaX:p,deltaY:d,width:w,height:j,PCTResizeInfo:k,pct:1}),B=l.nodeModel,z=B.minWidth,q=B.minHeight,ne=B.maxWidth,V=B.maxHeight;if(D.width<z||D.width>ne||D.height<q||D.height>V){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:D.deltaX,deltaY:D.deltaY}),l.nodeModel.width=D.width,l.nodeModel.height=D.height,l.nodeModel.setProperties({nodeSize:{width:D.width,height:D.height}}),l.getNodeEdges(g);var Z={x:O,y:x,width:w,height:j,radius:P},ee={x:l.nodeModel.x,y:l.nodeModel.y,width:l.nodeModel.width,height:l.nodeModel.height,radius:P};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:Z,afterNode:ee})},l.updateEllipse=function(o){var p=o.deltaX,d=o.deltaY,y=l.nodeModel,g=y.id,O=y.rx,x=y.ry,w=y.x,j=y.y,P=y.PCTResizeInfo,k=l.index,T=O,D=x,B=l.getResize({index:k,deltaX:p,deltaY:d,width:T,height:D,PCTResizeInfo:P,pct:1/2}),z=l.nodeModel,q=z.minWidth,ne=z.minHeight,V=z.maxWidth,Z=z.maxHeight;if(B.width<q/2||B.width>V/2||B.height<ne/2||B.height>Z/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:B.deltaX,deltaY:B.deltaY}),l.nodeModel.rx=B.width,l.nodeModel.ry=B.height,l.nodeModel.setProperties({nodeSize:{rx:B.width,ry:B.height}}),l.getNodeEdges(g);var ee={x:w,y:j},W={rx:B.width,ry:B.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:ni(ni({},ee),{rx:O,ry:x}),afterNode:W})},l.updateDiamond=function(o){var p=o.deltaX,d=o.deltaY,y=l.nodeModel;y.id;var g=y.rx,O=y.ry,x=y.x,w=y.y,j=y.PCTResizeInfo,P=l.index,k=g,T=O,D=l.getResize({index:P,deltaX:p,deltaY:d,width:k,height:T,PCTResizeInfo:j,pct:1/2}),B=l.nodeModel,z=B.minWidth,q=B.minHeight,ne=B.maxWidth,V=B.maxHeight;if(D.width<z/2||D.width>ne/2||D.height<q/2||D.height>V/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:D.deltaX,deltaY:D.deltaY}),l.nodeModel.rx=D.width,l.nodeModel.ry=D.height,l.nodeModel.setProperties({nodeSize:{rx:D.width,ry:D.height}});var Z={x,y:w,rx:g,ry:O},ee={rx:D.width,ry:D.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:Z,afterNode:ee})},l.eventEmit=function(o){var p=o.beforeNode,d=o.afterNode,y=l.nodeModel,g=y.id,O=y.modelType,x=y.type,w=ni({id:g,modelType:O,type:x},p),j=ni({id:g,modelType:O,type:x},d);l.graphModel.eventCenter.emit("node:resize",{oldNodeSize:w,newNodeSize:j})},l.onDragging=function(o){var p,d=o.deltaX,y=o.deltaY,g=l.graphModel.transformModel,O=l.nodeModel.modelType;p=T4(g.fixDeltaXY(d,y),2),d=p[0],y=p[1],O===Hi.RECT_NODE||O===Hi.HTML_NODE?l.updateRect({deltaX:d,deltaY:y}):O===Hi.ELLIPSE_NODE?l.updateEllipse({deltaX:d,deltaY:y}):O===Hi.DIAMOND_NODE&&l.updateDiamond({deltaX:d,deltaY:y})},l.onDragEnd=function(){l.updateEdgePointByAnchors();var o=l.graphModel.gridSize,p=o===void 0?1:o,d=p*Math.round(l.nodeModel.x/p),y=p*Math.round(l.nodeModel.y/p);l.nodeModel.moveTo(d,y)},l.index=a.index,l.nodeModel=a.model,l.graphModel=a.graphModel,l.state={},l.dragHandler=new M4({onDragging:l.onDragging,onDragEnd:l.onDragEnd,step:1}),l}return u.prototype.getNodeEdges=function(a){for(var l=this.graphModel,o=l.edges,p=[],d=[],y=0;y<o.length;y++){var g=o[y];g.sourceNodeId===a?p.push(g):o[y].targetNodeId===a&&d.push(g)}return{sourceEdges:p,targetEdges:d}},u.prototype.render=function(){var a=this.props,l=a.x,o=a.y,p=a.index,d=a.model,y=d.getControlPointStyle();return Ya("g",{className:"lf-resize-control-"+p},Ya(_h,ni({className:"lf-node-control"},{x:l,y:o},y,{onMouseDown:this.dragHandler.handleMouseDown})))},u}(Yi),D4=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),hc=globalThis&&globalThis.__assign||function(){return hc=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},hc.apply(this,arguments)},Lc=function(r){D4(u,r);function u(){var a=r.call(this)||this;return a.state={},a}return u.prototype.getResizeControl=function(){var a=this.props,l=a.model,o=a.graphModel,p=l.x,d=l.y,y=l.width,g=l.height,O={minX:p-y/2,minY:d-g/2,maxX:p+y/2,maxY:d+g/2},x=O.minX,w=O.minY,j=O.maxX,P=O.maxY,k=[{x,y:w},{x:j,y:w},{x:j,y:P},{x,y:P}];return k.map(function(T,D){return Ya(k4,hc({index:D},T,{model:l,graphModel:o}))})},u.prototype.getGroupSolid=function(){var a=this.props.model,l=a.x,o=a.y,p=a.width,d=a.height,y=a.getResizeOutlineStyle();return Ya(_h,hc({fill:"none"},y,{x:l,y:o,width:p,height:d}))},u.prototype.render=function(){return Ya("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},u}(Yi),uO=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),N4=function(r){uO(u,r);function u(a,l){var o=r.call(this,a,l)||this,p=o.properties.nodeSize;return p&&(o.width=p.width,o.height=p.height),o}return u.prototype.initNodeData=function(a){r.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},u.prototype.getOutlineStyle=function(){var a=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.resize=function(a,l){console.log(a,l)},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},p={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:l,ResizeBasis:o,ScaleLimit:p}}else delete this.PCTResizeInfo},u}(Be.exports.RectNodeModel),C4=function(r){uO(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return Be.exports.h(Lc,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){return r.prototype.getShape.call(this)},u.prototype.getShape=function(){var a=this.props,l=a.model.isSelected,o=a.graphModel.editConfigModel.isSilentMode;return Be.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},u}(Be.exports.RectNode),sO={type:"rect",view:C4,model:N4},cO=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();(function(r){cO(u,r);function u(a,l){var o=r.call(this,a,l)||this,p=o.properties.nodeSize;return p&&(o.rx=p.rx,o.ry=p.ry),o}return u.prototype.initNodeData=function(a){r.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},u.prototype.getOutlineStyle=function(){var a=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},p={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:l,ResizeBasis:o,ScaleLimit:p}}else delete this.PCTResizeInfo},u})(Be.exports.EllipseNodeModel);(function(r){cO(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return Be.exports.h(Lc,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){return r.prototype.getShape.call(this)},u.prototype.getShape=function(){var a=this.props,l=a.model,o=a.graphModel.editConfigModel.isSilentMode;return Be.exports.h("g",null,this.getResizeShape(),l.isSelected&&!o?this.getControlGroup():"")},u})(Be.exports.EllipseNode);var kd=globalThis&&globalThis.__assign||function(){return kd=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},kd.apply(this,arguments)};function R4(r){var u=r.fillOpacity,a=u===void 0?1:u,l=r.strokeWidth,o=l===void 0?1:l,p=r.strokeOpacity,d=p===void 0?1:p,y=r.fill,g=y===void 0?"transparent":y,O=r.stroke,x=O===void 0?"#000":O,w=r.points,j=r.className,P=j===void 0?"lf-basic-shape":j,k={fill:g,fillOpacity:a,strokeWidth:o,stroke:x,strokeOpacity:d,points:"",className:P};return k.points=w.map(function(T){return T.join(",")}).join(" "),Be.exports.h("polygon",kd({},k))}var lO=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Dd=globalThis&&globalThis.__assign||function(){return Dd=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Dd.apply(this,arguments)};(function(r){lO(u,r);function u(a,l){var o=r.call(this,a,l)||this,p=o.properties.nodeSize;return p&&(o.rx=p.rx,o.ry=p.ry),o}return u.prototype.initNodeData=function(a){r.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},u.prototype.getOutlineStyle=function(){var a=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},p={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:l,ResizeBasis:o,ScaleLimit:p}}else delete this.PCTResizeInfo},u})(Be.exports.DiamondNodeModel);(function(r){lO(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return Be.exports.h(Lc,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){var a=this.props.model,l=a.points,o=a.getNodeStyle();return Be.exports.h("g",null,Be.exports.h(R4,Dd({},o,{points:l})))},u.prototype.getShape=function(){var a=this.props,l=a.model.isSelected,o=a.graphModel.editConfigModel.isSilentMode;return Be.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},u})(Be.exports.DiamondNode);var fO=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();(function(r){fO(u,r);function u(a,l){var o=r.call(this,a,l)||this,p=o.properties.nodeSize;return p&&(o.width=p.width,o.height=p.height),o}return u.prototype.initNodeData=function(a){r.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},u.prototype.getOutlineStyle=function(){var a=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},p={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:l,ResizeBasis:o,ScaleLimit:p}}else delete this.PCTResizeInfo},u})(Be.exports.HtmlNodeModel);(function(r){fO(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return Be.exports.h(Lc,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){return r.prototype.getShape.call(this)},u.prototype.getShape=function(){var a=this.props,l=a.model.isSelected,o=a.graphModel.editConfigModel.isSilentMode;return Be.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},u})(Be.exports.HtmlNode);var pO=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),yc=globalThis&&globalThis.__assign||function(){return yc=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},yc.apply(this,arguments)},I4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p},L4=globalThis&&globalThis.__spread||function(){for(var r=[],u=0;u<arguments.length;u++)r=r.concat(I4(arguments[u]));return r},g0=500,b0=300,B4=-1e4;(function(r){pO(u,r);function u(){var a=r!==null&&r.apply(this,arguments)||this;return a.isGroup=!0,a.unfoldedWidth=g0,a.unfoldedHight=b0,a.childrenLastFoldStatus={},a}return u.prototype.initNodeData=function(a){var l=this;r.prototype.initNodeData.call(this,a);var o=[];Array.isArray(a.children)&&(o=a.children),this.children=new Set(o),this.width=g0,this.height=b0,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=B4,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(){l.isFolded&&l.foldGroup(l.isFolded)})},u.prototype.getResizeOutlineStyle=function(){var a=r.prototype.getResizeOutlineStyle.call(this);return a.stroke="none",a},u.prototype.foldGroup=function(a){var l=this;if(a!==this.isFolded){this.setProperty("isFolded",a),this.isFolded=a,a?(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(p){var d=l.graphModel.getElement(p),y=d.isFolded;if(d.isGroup&&!d.isFolded&&d.foldGroup(a),d.isGroup&&!a){var g=l.childrenLastFoldStatus[p];g!==void 0&&g!==d.isFolded&&d.foldGroup(g)}l.childrenLastFoldStatus[p]=y,d.visible=!a,o=o.concat(d.incoming.edges.concat(d.outgoing.edges))}),this.foldEdge(a,o)}},u.prototype.getAnchorStyle=function(a){var l=r.prototype.getAnchorStyle.call(this,a);return l.stroke="transparent",l.fill="transparent",l.hover.fill="transparent",l.hover.stroke="transparent",l},u.prototype.foldEdge=function(a,l){var o=this;l.forEach(function(p,d){var y=p.id,g=p.sourceNodeId,O=p.targetNodeId,x=p.startPoint,w=p.endPoint,j=p.type,P=p.text,k=p.getProperties(),T={id:y+"__"+d,sourceNodeId:g,targetNodeId:O,startPoint:x,endPoint:w,type:j,properties:k,text:P==null?void 0:P.value};p.virtual&&o.graphModel.deleteEdgeById(p.id);var D=o.graphModel.group.getNodeGroup(O);D||(D=o.graphModel.getNodeModelById(O));var B=o.graphModel.group.getNodeGroup(g);B||(B=o.graphModel.getNodeModelById(g)),a&&p.visible!==!1&&(o.children.has(g)||o.id===g?(T.startPoint=void 0,T.sourceNodeId=o.id):(T.endPoint=void 0,T.targetNodeId=o.id),(D.id!==o.id||B.id!==o.id)&&o.createVirtualEdge(T),p.visible=!1),!a&&p.visible===!1&&(D&&D.isGroup&&D.isFolded?(T.targetNodeId=D.id,T.endPoint=void 0,o.createVirtualEdge(T)):B&&B.isGroup&&B.isFolded?(T.sourceNodeId=B.id,T.startPoint=void 0,o.createVirtualEdge(T)):p.visible=!0)})},u.prototype.createVirtualEdge=function(a){a.pointsList=void 0;var l=this.graphModel.addEdge(a);l.virtual=!0,l.text.editable=!1,l.isFoldedEdge=!0},u.prototype.isInRange=function(a){var l=a.x1,o=a.y1,p=a.x2,d=a.y2;return l>=this.x-this.width/2&&p<=this.x+this.width/2&&o>=this.y-this.height/2&&d<=this.y+this.height/2},u.prototype.isAllowMoveTo=function(a){var l=a.x1,o=a.y1,p=a.x2,d=a.y2;return{x:l>=this.x-this.width/2&&p<=this.x+this.width/2,y:o>=this.y-this.height/2&&d<=this.y+this.height/2}},u.prototype.setAllowAppendChild=function(a){this.setProperty("groupAddable",a)},u.prototype.addChild=function(a){this.children.add(a)},u.prototype.removeChild=function(a){this.children.delete(a)},u.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},u.prototype.getData=function(){var a=this,l=r.prototype.getData.call(this);l.children=[],this.children.forEach(function(p){var d=a.graphModel.getNodeModelById(p);d&&!d.virtual&&l.children.push(p)});var o=l.properties;return delete o.groupAddable,delete o.isFolded,l},u.prototype.getHistoryData=function(){var a=r.prototype.getData.call(this);a.children=L4(this.children),a.isGroup=!0;var l=a.properties;return delete l.groupAddable,l.isFolded&&(a.x=a.x+this.unfoldedWidth/2-this.foldedWidth/2,a.y=a.y+this.unfoldedHight/2-this.foldedHeight/2),a},u.prototype.isAllowAppendIn=function(a){return!0},u.prototype.toBack=function(){this.zIndex--},u})(sO.model);(function(r){pO(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props.model,l=a.resizable,o=a.properties;return l&&!o.isFolded?r.prototype.getControlGroup.call(this):null},u.prototype.getAddableShape=function(){var a=this.props.model,l=a.width,o=a.height,p=a.x,d=a.y,y=a.radius,g=a.properties;if(!g.groupAddable)return null;var O=this.props.model.getNodeStyle().strokeWidth,x=this.props.model.getAddableOutlineStyle(),w=l+O+8,j=o+O+8;return Be.exports.h("rect",yc(yc({},x),{width:w,height:j,x:p-w/2,y:d-j/2,rx:y,ry:y}))},u.prototype.getFoldIcon=function(){var a=this.props.model,l=a.x-a.width/2+5,o=a.y-a.height/2+5;if(!a.foldable)return null;var p=Be.exports.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:a.properties.isFolded?"M "+(l+3)+","+(o+6)+" "+(l+11)+","+(o+6)+" M"+(l+7)+","+(o+2)+" "+(l+7)+","+(o+10):"M "+(l+3)+","+(o+6)+" "+(l+11)+","+(o+6)+" "});return Be.exports.h("g",{},[Be.exports.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:a.x-a.width/2+5,y:a.y-a.height/2+5,onClick:function(){a.foldGroup(!a.properties.isFolded)}}),p])},u.prototype.getResizeShape=function(){return Be.exports.h("g",{},[this.getAddableShape(),r.prototype.getResizeShape.call(this),this.getFoldIcon()])},u})(sO.view);globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var m0=globalThis&&globalThis.__assign||function(){return m0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},m0.apply(this,arguments)};globalThis&&globalThis.__values;var _0=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Ka=globalThis&&globalThis.__assign||function(){return Ka=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Ka.apply(this,arguments)};function z4(r){var u=function(l){_0(o,l);function o(p,d){var y=this;p.id||(p.id="Flow_"+y4());var g=Ka(Ka(Ka({},r||{}),p.properties),{isDefaultFlow:!1});return p.properties=g,y=l.call(this,p,d)||this,y}return o.extendKey="SequenceFlowModel",o}(Be.exports.PolylineEdgeModel),a=function(l){_0(o,l);function o(){return l!==null&&l.apply(this,arguments)||this}return o.prototype.getStartArrow=function(){var p=this.props.model,d=p.properties.isDefaultFlow;return d?Be.exports.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):Be.exports.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(Be.exports.PolylineEdge);return{type:"bpmn:sequenceFlow",view:a,model:u}}z4();globalThis&&globalThis.__read;var O0={width:40,height:40},w0={width:40,height:40},x0={width:100,height:80},vc={width:100,height:80},E0={width:100,height:80},S0={width:100,height:80},j0={width:100,height:80},P0={width:100,height:80},A0={width:100,height:80},T0={width:100,height:80},Dn=function(){};Dn.ObjTree=function(){return this};Dn.ObjTree.VERSION="0.23";Dn.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  101. `;Dn.ObjTree.prototype.attr_prefix="-";Dn.ObjTree.prototype.parseXML=function(r){var u;if(window.DOMParser){var a=new DOMParser,l=a.parseFromString(r,"application/xml");if(!l)return;u=l.documentElement}else window.ActiveXObject&&(a=new ActiveXObject("Microsoft.XMLDOM"),a.async=!1,a.loadXML(r),u=a.documentElement);if(!!u){var o=this.parseDOM(u);return o}};Dn.ObjTree.prototype.parseHTTP=function(r,u,a){var l={};for(var o in u)l[o]=u[o];if(l.method||(typeof l.postBody=="undefined"&&typeof l.postbody=="undefined"&&typeof l.parameters=="undefined"?l.method="get":l.method="post"),a){l.asynchronous=!0;var p=this,d=a,y=l.onComplete;l.onComplete=function(x){var w;x&&x.responseXML&&x.responseXML.documentElement&&(w=p.parseDOM(x.responseXML.documentElement)),d(w,x),y&&y(x)}}else l.asynchronous=!1;var g;if(typeof HTTP!="undefined"&&HTTP.Request){l.uri=r;var O=new HTTP.Request(l);O&&(g=O.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var O=new Ajax.Request(r,l);O&&(g=O.transport)}if(a)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};Dn.ObjTree.prototype.parseDOM=function(r){if(!!r){if(this.__force_array={},this.force_array)for(var u=0;u<this.force_array.length;u++)this.__force_array[this.force_array[u]]=1;var a=this.parseElement(r);if(this.__force_array[r.nodeName]&&(a=[a]),r.nodeType!==11){var l={};l[r.nodeName]=a,a=l}return a}};Dn.ObjTree.prototype.parseElement=function(r){if(r.nodeType!==7){if(r.nodeType===3||r.nodeType===4||r.nodeType===8){var u=r.nodeValue.match(/[^\x00-\x20]/);return u==null?void 0:r.nodeValue}var a=null,l={};if(r.attributes&&r.attributes.length){a={};for(var o=0;o<r.attributes.length;o++){var p=r.attributes[o].nodeName;if(typeof p=="string"){var d=r.attributes[o].nodeValue;try{d=JSON.parse(r.attributes[o].nodeValue.replace(/'/g,'"'))}catch{d=r.attributes[o].nodeValue}d!=null&&(p=this.attr_prefix+p,typeof l[p]=="undefined"&&(l[p]=0),l[p]++,this.addNode(a,p,l[p],d))}}}if(r.childNodes&&r.childNodes.length){var y=!0;a&&(y=!1);for(var o=0;o<r.childNodes.length&&y;o++){var g=r.childNodes[o].nodeType;g===3||g===4||g===8||(y=!1)}if(y){a||(a="");for(var o=0;o<r.childNodes.length;o++)a+=r.childNodes[o].nodeValue}else{a||(a={});for(var o=0;o<r.childNodes.length;o++){var p=r.childNodes[o].nodeName;if(typeof p=="string"){var d=this.parseElement(r.childNodes[o]);!d||(typeof l[p]=="undefined"&&(l[p]=0),l[p]++,this.addNode(a,p,l[p],d))}}}}else a===null&&(a={});return a}};Dn.ObjTree.prototype.addNode=function(r,u,a,l){this.__force_array[u]?(a===1&&(r[u]=[]),r[u][r[u].length]=l):a===1?r[u]=l:a===2?r[u]=[r[u],l]:r[u][r[u].length]=l};Dn.ObjTree.prototype.writeXML=function(r){var u=this.hash_to_xml(null,r);return this.xmlDecl+u};Dn.ObjTree.prototype.hash_to_xml=function(r,u){var a=[],l=[];for(var o in u)if(!!(u!=null&&u.hasOwnProperty(o))){var p=u[o];o.charAt(0)!==this.attr_prefix?typeof p=="undefined"||p==null?a[a.length]="<"+o+" />":typeof p=="object"&&p.constructor===Array?a[a.length]=this.array_to_xml(o,p):typeof p=="object"?a[a.length]=this.hash_to_xml(o,p):a[a.length]=this.scalar_to_xml(o,p):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(p)+'"'}var d=l.join(""),y=a.join("");return typeof r=="undefined"||r==null||(a.length>0?y.match(/\n/)?y="<"+r+d+`>
  102. `+y+"</"+r+`>
  103. `:y="<"+r+d+">"+y+"</"+r+`>
  104. `:y="<"+r+d+` />
  105. `),y};Dn.ObjTree.prototype.array_to_xml=function(r,u){for(var a=[],l=0;l<u.length;l++){var o=u[l];typeof o=="undefined"||o==null?a[a.length]="<"+r+" />":typeof o=="object"&&o.constructor===Array?a[a.length]=this.array_to_xml(r,o):typeof o=="object"?a[a.length]=this.hash_to_xml(r,o):a[a.length]=this.scalar_to_xml(r,o)}return a.join("")};Dn.ObjTree.prototype.scalar_to_xml=function(r,u){return r==="#text"?this.xml_escape(u):"<"+r+">"+this.xml_escape(u)+"</"+r+`>
  106. `};Dn.ObjTree.prototype.xml_escape=function(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var F4=function(r){return new Dn.ObjTree().parseXML(r)};function dO(r){return Object.prototype.toString.call(r)}function M0(r){return" ".repeat(r)}function gc(r){return dO(r)==="[object Object]"?Object.keys(r).reduce(function(u,a){var l=a;return a.charAt(0)==="-"&&(l=a.substring(1)),u[l]=gc(r[a]),u},{}):Array.isArray(r)?r.map(function(u){return gc(u)}):r}function $4(r){var u=r;try{typeof u!="string"&&(u=JSON.parse(r))}catch{u=JSON.stringify(gc(r)).replace(/"/g,"'")}return u}var k0=`
  107. `;function rc(r,u,a){var l=M0(a),o="",p=k0+l;if(u==="-json")return"";if(u==="#text")return p+r;if(u==="#cdata-section")return p+"<![CDATA["+r+"]]>";if(u==="#comment")return p+"<!--"+r+"-->";if((""+u).charAt(0)==="-")return" "+u.substring(1)+'="'+$4(r)+'"';if(Array.isArray(r))o+=r.map(function(O){return rc(O,u,a+1)}).join("");else if(dO(r)==="[object Object]"){var d=Object.keys(r),y="",g=r["-json"]?k0+M0(a+1)+r["-json"]:"";o+=(a===0?"":p)+"<"+u,d.forEach(function(O){O.charAt(0)==="-"?y+=rc(r[O],O,a+1):g+=rc(r[O],O,a+1)}),o+=y+(g!==""?">"+g+p+"</"+u+">":" />")}else o+=p+"<"+u+">"+r.toString()+"</"+u+">";return o}function W4(r){var u="";for(var a in r)u+=rc(r[a],a,0);return u}var G4=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Nd=globalThis&&globalThis.__assign||function(){return Nd=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Nd.apply(this,arguments)},D0=globalThis&&globalThis.__rest||function(r,u){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&u.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(r);o<l.length;o++)u.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(r,l[o])&&(a[l[o]]=r[l[o]]);return a},Oh=globalThis&&globalThis.__values||function(r){var u=typeof Symbol=="function"&&Symbol.iterator,a=u&&r[u],l=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},ia=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p},Vi=globalThis&&globalThis.__spread||function(){for(var r=[],u=0;u<arguments.length;u++)r=r.concat(ia(arguments[u]));return r},Tn;(function(r){r.START="bpmn:startEvent",r.END="bpmn:endEvent",r.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",r.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",r.BOUNDARY="bpmn:boundaryEvent",r.PARALLEL_GATEWAY="bpmn:parallelGateway",r.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",r.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",r.USER="bpmn:userTask",r.SYSTEM="bpmn:serviceTask",r.FLOW="bpmn:sequenceFlow",r.SUBPROCESS="bpmn:subProcess"})(Tn||(Tn={}));var hO=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],H4=["properties","startPoint","endPoint","pointsList"],bc={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},yO=function(r,u){var a=Object.keys(u||{});return a.forEach(function(l){if(r[l]){var o=u[l],p=o.in,d=o.out;p&&(r[l].in=p),d&&(r[l].out=d)}else r[l]=u[l]}),r},ar={"bpmn:startEvent":{out:function(r){var u,a,l=r.properties;return((a=(u=ar[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,r))||{}}},"bpmn:intermediateCatchEvent":{out:function(r){var u,a,l=r.properties;return((a=(u=ar[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,r))||{}}},"bpmn:intermediateThrowEvent":{out:function(r){var u,a,l=r.properties;return((a=(u=ar[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,r))||{}}},"bpmn:boundaryEvent":{out:function(r){var u,a,l=r.properties;return((a=(u=ar[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,r))||{}}},"bpmn:sequenceFlow":{out:function(r){var u=r.properties,a=u.expressionType,l=u.condition;return l?a==="cdata"?{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${'+l+"}]]></bpmn:conditionExpression>"}:{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression">'+l+"</bpmn:conditionExpression>"}:{json:""}}},"bpmn:timerEventDefinition":{out:function(r){var u=r.properties,a=u.timerType,l=u.timerValue,o=u.definitionId,p=function(){return"<bpmn:"+a+' xsi:type="bpmn:tFormalExpression">'+l+"</bpmn:"+a+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(a&&l?">"+p()+"</bpmn:timerEventDefinition>":"/>")}},in:function(r,u){var a,l,o,p,d=r,y=u["-id"],g="",O="";try{for(var x=Oh(Object.keys(u)),w=x.next();!w.done;w=x.next()){var j=w.value;j.includes("bpmn:")&&(o=ia(j.split(":"),2),g=o[1],O=(p=u[j])===null||p===void 0?void 0:p["#text"])}}catch(P){a={error:P}}finally{try{w&&!w.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}return{"-definitionId":y,"-definitionType":d,"-timerType":g,"-timerValue":O}}},"bpmn:conditionExpression":{in:function(r,u){var a,l="",o="";return u["#cdata-section"]?(o="cdata",l=((a=/^\$\{(.*)\}$/g.exec(u["#cdata-section"]))===null||a===void 0?void 0:a[1])||""):u["#text"]&&(o="normal",l=u["#text"]),{"-condition":l,"-expressionType":o}}}};function U4(r){var u=r!=null?r:{},a=u.retainedAttrsFields,l=u.excludeFields,o=u.transformer,p=new Set(Vi(H4,a||[])),d={in:new Set(Vi(bc.in,(l==null?void 0:l.in)||[])),out:new Set(Vi(bc.out,(l==null?void 0:l.out)||[]))};return ar=yO(ar,o),function(y){var g=y.nodes,O=y.edges;function x(w,j){var P,k,T;if((w==null?void 0:w.flag)!==1){var D;if((D=ar[w.type])&&D.out){var B=D.out(w),z=Object.keys(B);z.length>0&&z.forEach(function(F){w[F]=B[F]})}w!=null&&w.children&&(w.children=w.children.map(function(F){var A=g.find(function(L){return L.id===F})||O.find(function(L){return L.id===F});return A||{}}));var q={};if(typeof w=="string")return w;if(Array.isArray(w))return w.map(function(F){return x(F,"")}).filter(function(F){return F!=null});try{for(var ne=Oh(Object.entries(w)),V=ne.next();!V.done;V=ne.next()){var Z=ia(V.value,2),ee=Z[0],W=Z[1];if(((T=W)===null||T===void 0?void 0:T.flag)===1)return;var R=[j,ee].filter(function(F){return F}).join(".");d.out.has(R)||(typeof W!="object"?ee.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(ee)?q[ee]=W:q["-"+ee]=W:p.has(R)?q["-"+ee]=x(W,R):q[ee]=x(W,R))}}catch(F){P={error:F}}finally{try{V&&!V.done&&(k=ne.return)&&k.call(ne)}finally{if(P)throw P.error}}return q}}return x(y,"")}}function mc(r){var u,a,l={};try{for(var o=Oh(Object.entries(r)),p=o.next();!p.done;p=o.next()){var d=ia(p.value,2),y=d[0],g=d[1];y.indexOf("-")===0?l[y.substring(1)]=gc(g):typeof g=="string"?l[y]=g:Object.prototype.toString.call(g)==="[object Object]"?l[y]=mc(g):Array.isArray(g)?l[y]=g.map(function(O){return mc(O)}):l[y]=g}}catch(O){u={error:O}}finally{try{p&&!p.done&&(a=o.return)&&a.call(o)}finally{if(u)throw u.error}}return l}function X4(r,u,a){var l,o=new Map,p=U4(a)(u);p.nodes.forEach(function(y){var g=y["-id"],O=y["-type"],x=y.text,w=y.children,j=D0(y,["-id","-type","text","children"]),P={"-id":g};x!=null&&x["-value"]&&(P["-name"]=x["-value"]),j["-json"]&&(P["-json"]=j["-json"]),j["-properties"]&&Object.assign(P,j["-properties"]),w&&(P.children=w),r[O]||(r[O]=[]),r[O].push(P),o.set(g,P)});var d=p.edges.map(function(y){var g=y["-id"];y["-type"];var O=y["-sourceNodeId"],x=y["-targetNodeId"],w=y.text,j=D0(y,["-id","-type","-sourceNodeId","-targetNodeId","text"]),P=o.get(x);P["bpmn:incoming"]||(P["bpmn:incoming"]=[]),P["bpmn:incoming"].push(g);var k={"-id":g,"-sourceRef":O,"-targetRef":x};return w!=null&&w["-value"]&&(k["-name"]=w["-value"]),j["-json"]&&(k["-json"]=j["-json"]),j["-properties"]&&Object.assign(k,j["-properties"]),k});return u.edges.forEach(function(y){var g=y.sourceNodeId,O=y.id,x=o.get(g);x["bpmn:outgoing"]||(x["bpmn:outgoing"]=[]),x["bpmn:outgoing"].push(O)}),(l=r["bpmn:subProcess"])===null||l===void 0||l.forEach(function(y){var g={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},O=[];y.children.forEach(function(T){var D,B=o.get(T["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function(q){B[q]&&B[q].forEach(function(ne){g[q].add(ne)})});var z=(D=r[T["-type"]])===null||D===void 0?void 0:D.findIndex(function(q){return q["-id"]===T["-id"]});z>=0&&r[T["-type"]].splice(z,1),o.delete(T["-id"]),y[T["-type"]]||(y[T["-type"]]=[]),y[T["-type"]].push(B)});var x=g["bpmn:incoming"],w=g["bpmn:outgoing"];w.forEach(function(T){x.has(T)&&O.push(T)});for(var j=function(T){var D=d.findIndex(function(B){return B["-id"]===O[T]});D>=0?(y["bpmn:sequenceFlow"]||(y["bpmn:sequenceFlow"]=[]),y["bpmn:sequenceFlow"].push(d[D]),d.splice(D,1)):T++,P=T},P,k=0;k<O.length;)j(k),k=P;delete y.children}),r[Tn.FLOW]=d,r}function Y4(r,u){r["bpmndi:BPMNEdge"]=u.edges.map(function(a){var l,o=a.id,p=a.pointsList.map(function(y){var g=y.x,O=y.y;return{"-x":g,"-y":O}}),d={"-id":o+"_di","-bpmnElement":o,"di:waypoint":p};return!((l=a.text)===null||l===void 0)&&l.value&&(d["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),d}),r["bpmndi:BPMNShape"]=u.nodes.map(function(a){var l,o=a.id,p=100,d=80,y=a.x,g=a.y,O=Bn.shapeConfigMap.get(a.type);O&&(p=O.width,d=O.height),y-=p/2,g-=d/2;var x={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":y,"-y":g,"-width":p,"-height":d}};return!((l=a.text)===null||l===void 0)&&l.value&&(x["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),x})}var V4=["bpmn:incoming","bpmn:outgoing"];function K4(r,u){var a=[],l=[],o=new Map,p=u!=null?u:{},d=p.transformer,y=p.excludeFields,g={in:new Set(Vi(bc.in,(y==null?void 0:y.in)||[])),out:new Set(Vi(bc.out,(y==null?void 0:y.out)||[]))};ar=yO(ar,d);var O=r["bpmn:definitions"];if(O){var x=O["bpmn:process"];(function(j,P){P.forEach(function(k){try{Object.keys(j).forEach(function(T){try{k(T)}catch(D){console.error(D)}})}catch(T){console.error(T)}})})(x,[function(j){function P(T){T["-children"]||(T["-children"]=[]),Object.keys(T).forEach(function(D){var B;D.indexOf("bpmn:")===0&&!V4.includes(D)&&(x[D]||(x[D]=[]),!Array.isArray(x[D])&&(x[D]=[x[D]]),Array.isArray(T[D])?(B=x[D]).push.apply(B,Vi(T[D])):x[D].push(T[D]),Array.isArray(T[D])?T[D].forEach(function(z){!D.includes("Flow")&&T["-children"].push(z["-id"])}):!D.includes("Flow")&&T["-children"].push(T[D]["-id"]),delete T[D])})}if(j==="bpmn:subProcess"){var k=x[j];Array.isArray(k)?k.forEach(function(T){j==="bpmn:subProcess"&&P(T)}):P(k)}},function(j){var P=function(T){Object.keys(T).forEach(function(D){var B,z;if(D.includes("bpmn:")){var q={};ar[D]&&ar[D].in?(q=(z=(B=ar[D]).in)===null||z===void 0?void 0:z.call(B,D,I.cloneDeep(T[D])),delete T[D]):k(T[D]);var ne=void 0;(ne=Reflect.ownKeys(q)).length>0&&ne.forEach(function(V){Reflect.set(T,V,q[V])})}})};function k(T){o.set(T["-id"],T),Array.isArray(T)?T.forEach(function(D){k(D)}):typeof T=="object"&&P(T)}k(x[j])},function(j){if(j.indexOf("bpmn:")===0){var P=x[j];if(j==="bpmn:sequenceFlow"){var k=O["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];l=Z4(P,k)}else{var T=O["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(j==="bpmn:boundaryEvent"){var D=x[j],B=function(z){var q=z["-attachedToRef"],ne=o.get(q);ne["-boundaryEvents"]||(ne["-boundaryEvents"]=[]),ne["-boundaryEvents"].push(z["-id"])};Array.isArray(D)?D.forEach(function(z){B(z)}):B(D)}a=a.concat(q4(P,T,j))}}}])}var w=function(j,P,k){Object.keys(j).forEach(function(T){var D=k?k+"."+T:T;P.has(D)?delete j[T]:typeof j[T]=="object"&&w(j[T],P,D)})};return a.forEach(function(j){var P,k;if(!((P=u==null?void 0:u.mapping)===null||P===void 0)&&P.in){var T=(k=u==null?void 0:u.mapping)===null||k===void 0?void 0:k.in,D=j.type;T[D]&&(j.type=T[D])}w(j,g.in,"")}),l.forEach(function(j){var P,k;if(!((P=u==null?void 0:u.mapping)===null||P===void 0)&&P.in){var T=(k=u==null?void 0:u.mapping)===null||k===void 0?void 0:k.in,D=j.type;T[D]&&(j.type=T[D])}w(j,g.in,"")}),{nodes:a,edges:l}}function q4(r,u,a){var l=[];if(Array.isArray(r))r.forEach(function(d){var y;Array.isArray(u)?y=u.find(function(O){return O["-bpmnElement"]===d["-id"]}):y=u;var g=N0(y,a,d);l.push(g)});else{var o=void 0;Array.isArray(u)?o=u.find(function(d){return d["-bpmnElement"]===r["-id"]}):o=u;var p=N0(o,a,r);l.push(p)}return l}function N0(r,u,a){var l=Number(r["dc:Bounds"]["-x"]),o=Number(r["dc:Bounds"]["-y"]),p=a["-children"],d=a["-name"],y=Bn.shapeConfigMap.get(u);y&&(l+=y.width/2,o+=y.height/2);var g={};Object.entries(a).forEach(function(j){var P=ia(j,2),k=P[0],T=P[1];hO.includes(k)||(g[k]=T)}),g=mc(g);var O;if(d&&(O={x:l,y:o,value:d},r["bpmndi:BPMNLabel"]&&r["bpmndi:BPMNLabel"]["dc:Bounds"])){var x=r["bpmndi:BPMNLabel"]["dc:Bounds"];O.x=Number(x["-x"])+Number(x["-width"])/2,O.y=Number(x["-y"])+Number(x["-height"])/2}var w={id:r["-bpmnElement"],type:u,x:l,y:o,properties:g};return p&&(w.children=p),O&&(w.text=O),w}function Z4(r,u){var a=[];if(Array.isArray(r))r.forEach(function(o){var p;Array.isArray(u)?p=u.find(function(d){return d["-bpmnElement"]===o["-id"]}):p=u,a.push(C0(p,o))});else{var l=void 0;Array.isArray(u)?l=u.find(function(o){return o["-bpmnElement"]===r["-id"]}):l=u,a.push(C0(l,r))}return a}function C0(r,u){var a,l=u["-name"];if(l){var o=r["bpmndi:BPMNLabel"]["dc:Bounds"],p=0;l.split(`
  108. `).forEach(function(O){p<O.length&&(p=O.length)}),a={value:l,x:Number(o["-x"])+p*10/2,y:Number(o["-y"])+7}}var d={};Object.entries(u).forEach(function(O){var x=ia(O,2),w=x[0],j=x[1];hO.includes(w)||(d[w]=j)}),d=mc(d);var y=r["di:waypoint"].map(function(O){return{x:Number(O["-x"]),y:Number(O["-y"])}}),g={id:u["-id"],type:Tn.FLOW,pointsList:y,sourceNodeId:u["-sourceRef"],targetNodeId:u["-targetRef"],properties:d};return a&&(g.text=a),g}var Bn=function(){function r(u){var a=this,l=u.lf;this.adapterOut=function(o,p){var d,y,g=Nd({},a.processAttributes);X4(g,o,p);var O={"-id":"BPMNPlane_1","-bpmnElement":g["-id"]};Y4(O,o);var x=a.definitionAttributes;x["bpmn:process"]=g,x["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":O};var w={"bpmn:definitions":x};if(!((d=p==null?void 0:p.mapping)===null||d===void 0)&&d.out){var j=(y=p==null?void 0:p.mapping)===null||y===void 0?void 0:y.out,P=function(k){Array.isArray(k)&&k.forEach(function(T){return P(T)}),typeof k=="object"&&Object.keys(k).forEach(function(T){var D;(D=j[T])?(k[D]=I.cloneDeep(k[T]),delete k[T],P(k[D])):P(k[T])})};P(w)}return w},this.adapterIn=function(o,p){if(o)return K4(o,p)},l.adapterIn=this.adapterIn,l.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 r.prototype.setCustomShape=function(u,a){r.shapeConfigMap.set(u,a)},r.pluginName="bpmn-adapter",r.shapeConfigMap=new Map,r}();Bn.shapeConfigMap.set(Tn.START,{width:O0.width,height:O0.height});Bn.shapeConfigMap.set(Tn.END,{width:w0.width,height:w0.height});Bn.shapeConfigMap.set(Tn.INTERMEDIATE_CATCH,{width:vc.width,height:vc.height});Bn.shapeConfigMap.set(Tn.INTERMEDIATE_THROW,{width:vc.width,height:vc.height});Bn.shapeConfigMap.set(Tn.BOUNDARY,{width:x0.width,height:x0.height});Bn.shapeConfigMap.set(Tn.PARALLEL_GATEWAY,{width:E0.width,height:E0.height});Bn.shapeConfigMap.set(Tn.INCLUSIVE_GATEWAY,{width:S0.width,height:S0.height});Bn.shapeConfigMap.set(Tn.EXCLUSIVE_GATEWAY,{width:j0.width,height:j0.height});Bn.shapeConfigMap.set(Tn.SYSTEM,{width:P0.width,height:P0.height});Bn.shapeConfigMap.set(Tn.USER,{width:A0.width,height:A0.height});Bn.shapeConfigMap.set(Tn.SUBPROCESS,{width:T0.width,height:T0.height});(function(r){G4(u,r);function u(a){var l=r.call(this,a)||this;l.adapterXmlIn=function(d){var y=F4(d);return l.adapterIn(y,l.props)},l.adapterXmlOut=function(d){var y=l.adapterOut(d,l.props);return W4(y)};var o=a.lf,p=a.props;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l.props=p,l}return u.pluginName="BPMNAdapter",u})(Bn);var J4=function(){function r(u){var a=this,l=u.lf;this.lf=l,this.customCssRules="",this.useGlobalRules=!0,l.getSnapshot=function(o,p){a.getSnapshot(o,p)},l.getSnapshotBlob=function(o){return a.getSnapshotBlob(o)},l.getSnapshotBase64=function(o){return a.getSnapshotBase64(o)}}return r.prototype.getSvgRootElement=function(u){var a=u.container.querySelector(".lf-canvas-overlay");return a},r.prototype.triggerDownload=function(u){var a=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0}),l=document.createElement("a");l.setAttribute("download",this.fileName),l.setAttribute("href",u),l.setAttribute("target","_blank"),l.dispatchEvent(a)},r.prototype.removeAnchor=function(u){for(var a=u.childNodes,l=u.childNodes&&u.childNodes.length,o=0;o<l;o++){var p=a[o],d=p.classList&&Array.from(p.classList)||[];d.indexOf("lf-anchor")>-1&&(u.removeChild(u.childNodes[o]),l--,o--)}},r.prototype.getSnapshot=function(u,a){var l=this;this.fileName=u||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,a).then(function(p){var d=p.toDataURL("image/png").replace("image/png","image/octet-stream");l.triggerDownload(d)})},r.prototype.getSnapshotBase64=function(u){var a=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){a.getCanvasData(l,u).then(function(p){var d=p.toDataURL("image/png");o({data:d,width:p.width,height:p.height})})})},r.prototype.getSnapshotBlob=function(u){var a=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){a.getCanvasData(l,u).then(function(p){p.toBlob(function(d){o({data:d,width:p.width,height:p.height})},"image/png")})})},r.prototype.getClassRules=function(){var u="";if(this.useGlobalRules)for(var a=document.styleSheets,l=0;l<a.length;l++)for(var o=a[l],p=0;p<o.cssRules.length;p++)u+=o.cssRules[p].cssText;return this.customCssRules&&(u+=this.customCssRules),u},r.prototype.getCanvasData=function(u,a){var l=this,o=u.cloneNode(!0),p=o.lastChild,d=p.childNodes&&p.childNodes.length;if(d)for(var y=0;y<d;y++){var g=p.childNodes[y],O=g.classList&&Array.from(g.classList);if(O&&O.indexOf("lf-base")<0)p.removeChild(p.childNodes[y]),d--,y--;else{var x=p.childNodes[y];x&&x.childNodes.forEach(function(oe){var le=oe;l.removeAnchor(le.firstChild)})}}var w=window.devicePixelRatio||1;w<1&&(w=1);var j=document.createElement("canvas"),P=this.lf.graphModel.rootEl.querySelector(".lf-base"),k=P.getBoundingClientRect(),T=document.querySelector(".lf-canvas-overlay").getBoundingClientRect(),D=k.x-T.x,B=k.y-T.y,z=this.lf.graphModel,q=z.transformModel,ne=q.SCALE_X,V=q.SCALE_Y,Z=q.TRANSLATE_X,ee=q.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-D+Z)*(1/ne)+10)+", "+((-B+ee)*(1/V)+10)+")";var W=Math.ceil(k.width/ne),R=Math.ceil(k.height/V);j.style.width=W+"px",j.style.height=R+"px",j.width=W*w+80,j.height=R*w+80;var F=j.getContext("2d");F.clearRect(0,0,j.width,j.height),F.scale(w,w),a?(F.fillStyle=a,F.fillRect(0,0,W*w+80,R*w+80)):F.clearRect(0,0,W,R);var A=new Image,L=document.createElement("style");L.innerHTML=this.getClassRules();var G=document.createElement("foreignObject");return G.appendChild(L),o.appendChild(G),new Promise(function(oe){A.onload=function(){var Se=navigator.userAgent.indexOf("Firefox")>-1;try{Se?createImageBitmap(A,{resizeWidth:j.width,resizeHeight:j.height}).then(function(ve){F.drawImage(ve,0,0),oe(j)}):(F.drawImage(A,0,0),oe(j))}catch{F.drawImage(A,0,0),oe(j)}};var le="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),be=le.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");A.src=be})},r.pluginName="snapshot",r}(),R0=globalThis&&globalThis.__assign||function(){return R0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},R0.apply(this,arguments)};globalThis&&globalThis.__read;var I0;(function(r){r.HORIZONTAL="horizontal",r.VERTICAL="vertical"})(I0||(I0={}));var Q4=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;var e5=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;var t5=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p},n5=globalThis&&globalThis.__spread||function(){for(var r=[],u=0;u<arguments.length;u++)r=r.concat(t5(arguments[u]));return r},Wa="lf:defaultNodeMenu",Ga="lf:defaultEdgeMenu",Ha="lf:defaultGraphMenu",L0="lf:defaultSelectionMenu",r5=function(){function r(u){var a=this,l=u.lf;this.__menuDOM=document.createElement("ul"),this.lf=l,this.menuTypeMap=new Map,this.init(),this.lf.setMenuConfig=function(o){a.setMenuConfig(o)},this.lf.addMenuConfig=function(o){a.addMenuConfig(o)},this.lf.setMenuByType=function(o){a.setMenuByType(o)}}return r.prototype.init=function(){var u=this,a=[{text:"\u5220\u9664",callback:function(p){u.lf.deleteNode(p.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(p){u.lf.graphModel.editText(p.id)}},{text:"\u590D\u5236",callback:function(p){u.lf.cloneNode(p.id)}}];this.menuTypeMap.set(Wa,a);var l=[{text:"\u5220\u9664",callback:function(p){u.lf.deleteEdge(p.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(p){u.lf.graphModel.editText(p.id)}}];this.menuTypeMap.set(Ga,l),this.menuTypeMap.set(Ha,[]);var o=[{text:"\u5220\u9664",callback:function(p){u.lf.clearSelectElements(),p.edges.forEach(function(d){return u.lf.deleteEdge(d.id)}),p.nodes.forEach(function(d){return u.lf.deleteNode(d.id)})}}];this.menuTypeMap.set(L0,o)},r.prototype.render=function(u,a){var l=this;this.__container=a,this.__currentData=null,this.__menuDOM.className="lf-menu",a.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",function(o){o.stopPropagation();for(var p=o.target;Array.from(p.classList).indexOf("lf-menu-item")===-1&&Array.from(p.classList).indexOf("lf-menu")===-1;)p=p.parentElement;Array.from(p.classList).indexOf("lf-menu-item")>-1?(p.onclickCallback(l.__currentData),l.__menuDOM.style.display="none",l.__currentData=null):console.warn("\u70B9\u51FB\u533A\u57DF\u4E0D\u5728\u83DC\u5355\u9879\u5185\uFF0C\u8BF7\u68C0\u67E5\u4EE3\u7801\uFF01")},!0),this.lf.on("node:contextmenu",function(o){var p=o.data,d=o.position,y=o.e,g=d.domOverlayPosition,O=g.x,x=g.y,w=p.id,j=l.lf.graphModel.getNodeModelById(w),P=[],k=l.menuTypeMap.get(j.type);j&&j.menu&&Array.isArray(j.menu)?P=j.menu:k?P=k:P=l.menuTypeMap.get(Wa),l.__currentData=p,l.showMenu(O,x,P,{width:j.width,height:j.height,clientX:y.clientX,clientY:y.clientY})}),this.lf.on("edge:contextmenu",function(o){var p=o.data,d=o.position,y=o.e,g=d.domOverlayPosition,O=g.x,x=g.y,w=p.id,j=l.lf.graphModel.getEdgeModelById(w),P=[],k=l.menuTypeMap.get(j.type);j&&j.menu&&Array.isArray(j.menu)?P=j.menu:k?P=k:P=l.menuTypeMap.get(Ga),l.__currentData=p,l.showMenu(O,x,P,{width:j.width,height:j.height,clientX:y.clientX,clientY:y.clientY})}),this.lf.on("blank:contextmenu",function(o){var p=o.position,d=l.menuTypeMap.get(Ha),y=p.domOverlayPosition,g=y.x,O=y.y;l.showMenu(g,O,d)}),this.lf.on("selection:contextmenu",function(o){var p=o.data,d=o.position,y=l.menuTypeMap.get(L0),g=d.domOverlayPosition,O=g.x,x=g.y;l.__currentData=p,l.showMenu(O,x,y)}),this.lf.on("node:mousedown",function(){l.__menuDOM.style.display="none"}),this.lf.on("edge:click",function(){l.__menuDOM.style.display="none"}),this.lf.on("blank:click",function(){l.__menuDOM.style.display="none"})},r.prototype.destroy=function(){var u;(u=this===null||this===void 0?void 0:this.__container)===null||u===void 0||u.removeChild(this.__menuDOM),this.__menuDOM=null},r.prototype.showMenu=function(u,a,l,o){if(!(!l||!l.length)){var p=this.__menuDOM;if(p.innerHTML="",p.append.apply(p,n5(this.__getMenuDom(l))),!!p.children.length){if(p.style.display="block",!o){p.style.top=a+"px",p.style.left=u+"px";return}var d=o.width,y=o.height,g=o.clientX,O=o.clientY,x=this.lf.graphModel,w=p.offsetWidth,j=!0,P=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,k=P-g,T=x.rootEl.getBoundingClientRect(),D=T.left+T.width;D<P&&(k=D-g),k<w&&(j=!1),j?p.style.left=u+"px":p.style.left=u-d+"px";var B=p.offsetHeight,z=!0,q=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ne=q-O,V=T.top+T.height;V<q&&(ne=V-O),ne<B&&(z=!1),z?p.style.top=a+"px":p.style.top=a-y+"px"}}},r.prototype.setMenuByType=function(u){!u.type||!u.menu||this.menuTypeMap.set(u.type,u.menu)},r.prototype.__getMenuDom=function(u){var a=[];return u&&u.length>0&&u.forEach(function(l){var o=document.createElement("li");if(l.className?o.className="lf-menu-item "+l.className:o.className="lf-menu-item",l.icon===!0){var p=document.createElement("span");p.className="lf-menu-item-icon",o.appendChild(p)}var d=document.createElement("span");d.className="lf-menu-item-text",l.text&&(d.innerText=l.text),o.appendChild(d),o.onclickCallback=l.callback,a.push(o)}),a},r.prototype.setMenuConfig=function(u){!u||(u.nodeMenu!==void 0&&this.menuTypeMap.set(Wa,u.nodeMenu?u.nodeMenu:[]),u.edgeMenu!==void 0&&this.menuTypeMap.set(Ga,u.edgeMenu?u.edgeMenu:[]),u.graphMenu!==void 0&&this.menuTypeMap.set(Ha,u.graphMenu?u.graphMenu:[]))},r.prototype.addMenuConfig=function(u){if(!!u){if(Array.isArray(u.nodeMenu)){var a=this.menuTypeMap.get(Wa);this.menuTypeMap.set(Wa,a.concat(u.nodeMenu))}if(Array.isArray(u.edgeMenu)){var a=this.menuTypeMap.get(Ga);this.menuTypeMap.set(Ga,a.concat(u.edgeMenu))}if(Array.isArray(u.graphMenu)){var a=this.menuTypeMap.get(Ha);this.menuTypeMap.set(Ha,a.concat(u.graphMenu))}}},r.prototype.changeMenuItem=function(u,a){if(u==="add")this.addMenuConfig(a);else if(u==="reset")this.setMenuConfig(a);else throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'")},r.pluginName="menu",r}();globalThis&&globalThis.__read;globalThis&&globalThis.__values;function o5(r){if(r.length<=1)return!1;for(var u=0,a=r.length-1;u!==a&&u+1!==a&&a-1!==u;)u++,a--;return u===a?[--u,a]:[u,a]}var vO=globalThis&&globalThis.__extends||function(){var r=function(u,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var p in o)o.hasOwnProperty(p)&&(l[p]=o[p])},r(u,a)};return function(u,a){r(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Ui=globalThis&&globalThis.__assign||function(){return Ui=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},Ui.apply(this,arguments)},so=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};(function(r){vO(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u.prototype.pointFilter=function(a){for(var l=a,o=1;o<l.length-1;){var p=so(l[o-1],2),d=p[0],y=p[1],g=so(l[o],2),O=g[0],x=g[1],w=so(l[o+1],2),j=w[0],P=w[1];d===O&&O===j||y===x&&x===P?l.splice(o,1):o++}return l},u.prototype.getEdge=function(){var a=this.props.model,l=a.points,o=a.isAnimation,p=a.arrowConfig,d=a.radius,y=d===void 0?5:d,g=a.getEdgeStyle(),O=a.getEdgeAnimationStyle(),x=this.pointFilter(l.split(" ").map(function(Te){return Te.split(",").map(function(Me){return Number(Me)})})),w=o5(x);if(w){var j=so(w,2),P=j[0],k=j[1],T=x[P],D=x[k],B=T.some(function(Te,Me){return Te===D[Me]});if(!B){var z=(D[1]-T[1])/2,q=[D[0],D[1]-z],ne=[T[0],T[1]+z];x.splice(P+1,0,ne,q)}}for(var V=so(x[0],2),Z=V[0],ee=V[1],W="M"+Z+" "+ee,R=1;R<x.length-1;R++){var F=so(x[R-1],2),A=F[0],L=F[1],G=so(x[R],2),oe=G[0],le=G[1],be=so(x[R+1],2),Se=be[0],ve=be[1];if(oe===A&&le!==L){var ce=le>L?le-y:le+y;W=W+" L "+oe+" "+ce}if(le===L&&oe!==A){var he=oe>A?oe-y:oe+y;W=W+" L "+he+" "+le}if(W=W+" Q "+oe+" "+le,oe===Se&&le!==ve){var ce=le>ve?le-y:le+y;W=W+" "+oe+" "+ce}if(le===ve&&oe!==Se){var he=oe>Se?oe-y:oe+y;W=W+" "+he+" "+le}}var _e=so(x[x.length-1],2),je=_e[0],Ie=_e[1];W=W+" L "+je+" "+Ie;var Ze=Ui(Ui(Ui({d:W,style:o?O:{}},g),p),{fill:"none"});return Be.exports.h("path",Ui({d:W},Ze))},u})(Be.exports.PolylineEdge);(function(r){vO(u,r);function u(){return r!==null&&r.apply(this,arguments)||this}return u})(Be.exports.PolylineEdgeModel);var i5=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;var B0=globalThis&&globalThis.__assign||function(){return B0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},B0.apply(this,arguments)},z0=globalThis&&globalThis.__assign||function(){return z0=Object.assign||function(r){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(r[o]=u[o])}return r},z0.apply(this,arguments)},a5=globalThis&&globalThis.__read||function(r,u){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),o,p=[],d;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)p.push(o.value)}catch(y){d={error:y}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(d)throw d.error}}return p};globalThis&&globalThis.__spread;const u5={class:"control-container"},s5=["title","onMouseenter"],c5=["disabled","onClick"],l5=xc({__name:"Control",props:{lf:{type:Object,required:!0,default:null},catTurboData:{type:Boolean,required:!1}},emits:["catData"],setup(r,{emit:u}){const a=r,l=hm("controlButton3",null),o=hm("controlButton4",null);let p=ri(-1),d=ri([{icon:"icon-zoom-out-hs",text:"\u7F29\u5C0F",size:"18",disabled:!1},{icon:"icon-enlarge-hs",text:"\u653E\u5927",size:"18",disabled:!1},{icon:"icon-full-screen-hs",text:"\u9002\u5E94",size:"15",disabled:!1},{icon:"icon-previous-hs",text:"\u4E0A\u4E00\u6B65",size:"15",disabled:!0},{icon:"icon-next-step-hs",text:"\u4E0B\u4E00\u6B65",size:"17",disabled:!0},{icon:"icon-download-hs",text:"\u4E0B\u8F7D\u56FE\u7247",size:"17",disabled:!1},{icon:"icon-watch-hs",text:"\u67E5\u770B\u6570\u636E",size:"17",disabled:!1}]);const y=(O,x)=>{["zoom","zoom","resetZoom","undo","redo","getSnapshot"].forEach((w,j)=>{let P=a.lf;x===1&&P.zoom(!0),x===6&&u("catData"),x===j&&P[w]()})},g=O=>{p.value=O};return a_(()=>{a.lf.on("history:change",({data:{undoAble:O,redoAble:x}})=>{nn(d)[3].disabled=nn(l).disabled=!O,nn(d)[4].disabled=nn(o).disabled=!x})}),(O,x)=>{const w=Ua("el-tooltip");return Fr(),oi("div",u5,[No(" \u529F\u80FD\u6309\u94AE "),$r("ul",null,[(Fr(!0),oi(gd,null,u_(nn(d),(j,P)=>(Fr(),oi("li",{key:P,title:j.text,class:"dark:color-bg_color",onMouseenter:ym(k=>g(P),["prevent"]),onMouseleave:x[0]||(x[0]=ym(k=>c_(p)?p.value=-1:p=-1,["prevent"]))},[$i(w,{content:j.text,visible:nn(p)===P,placement:"right"},{default:Wi(()=>[$r("button",{ref_for:!0,ref:"controlButton"+P,disabled:j.disabled,style:vm({cursor:j.disabled===!1?"pointer":"not-allowed",color:j.disabled===!1?"":"#00000040"}),onClick:k=>y(j,P)},[$r("span",{class:s_("iconfont "+j.icon),style:vm({fontSize:`${j.size}px`})},null,6)],12,c5)]),_:2},1032,["content","visible"])],40,s5))),128))])])}}});var f5=Ec(l5,[["__scopeId","data-v-518de540"],["__file","C:/Users/89793/Desktop/projects/report-v3/src/components/ReFlowChart/src/Control.vue"]]);const p5={class:"node-panel"},d5=["onMousedown"],h5={key:0,class:"shape"},y5={class:"node-label"},v5=xc({__name:"NodePanel",props:{lf:{type:Object,required:!0,default:null},nodeList:{type:Array,required:!0,default:null}},setup(r){const u=r;let a=ri({a:"efrwe",b:"wewe"});const l=o=>{u.lf.dnd.startDrag({type:o.type,properties:nn(a)})};return(o,p)=>(Fr(),oi(gd,null,[No(" \u5DE6\u4FA7bpmn\u5143\u7D20\u9009\u62E9\u5668 "),$r("div",p5,[(Fr(!0),oi(gd,null,u_(u.nodeList,d=>(Fr(),oi("div",{class:"node-item dark:color-bg_color",key:d.text,onMousedown:y=>l(d)},[$r("div",{class:s_(["node-item-icon",d.class])},[d.type==="user"||d.type==="time"?(Fr(),oi("div",h5)):No("v-if",!0)],2),$r("span",y5,ZP(d.text),1)],40,d5))),128))])],2112))}});var g5=Ec(v5,[["__scopeId","data-v-7322cbe5"],["__file","C:/Users/89793/Desktop/projects/report-v3/src/components/ReFlowChart/src/NodePanel.vue"]]),gO={exports:{}},b5=JP(QP);(function(r,u){(function(a,l){r.exports=l(b5)})(eA,function(a){return function(){var l={789:function(y){y.exports=a}},o={};function p(y){var g=o[y];if(g!==void 0)return g.exports;var O=o[y]={exports:{}};return l[y](O,O.exports,p),O.exports}p.d=function(y,g){for(var O in g)p.o(g,O)&&!p.o(y,O)&&Object.defineProperty(y,O,{enumerable:!0,get:g[O]})},p.o=function(y,g){return Object.prototype.hasOwnProperty.call(y,g)},p.r=function(y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var d={};return function(){function y(A,L){(L==null||L>A.length)&&(L=A.length);for(var G=0,oe=new Array(L);G<L;G++)oe[G]=A[G];return oe}function g(A,L){if(A){if(typeof A=="string")return y(A,L);var G=Object.prototype.toString.call(A).slice(8,-1);return G==="Object"&&A.constructor&&(G=A.constructor.name),G==="Map"||G==="Set"?Array.from(A):G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G)?y(A,L):void 0}}function O(A){return function(L){if(Array.isArray(L))return y(L)}(A)||function(L){if(typeof Symbol!="undefined"&&L[Symbol.iterator]!=null||L["@@iterator"]!=null)return Array.from(L)}(A)||g(A)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  109. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function x(A,L,G){return L in A?Object.defineProperty(A,L,{value:G,enumerable:!0,configurable:!0,writable:!0}):A[L]=G,A}p.r(d),p.d(d,{default:function(){return F}});var w=p(789),j=(0,w.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var A=this.data,L=this.onClick;return(0,w.createVNode)("span",{class:"vjs-tree-brackets",onClick:L},[A])}}),P=(0,w.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(A,L){var G=L.emit;return{uiType:(0,w.computed)(function(){return A.isMultiple?"checkbox":"radio"}),model:(0,w.computed)({get:function(){return A.checked},set:function(oe){return G("update:modelValue",oe)}})}},render:function(){var A=this.uiType,L=this.model,G=this.$emit;return(0,w.createVNode)("label",{class:["vjs-check-controller",L?"is-checked":""],onClick:function(oe){return oe.stopPropagation()}},[(0,w.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(A)},null),(0,w.createVNode)("input",{checked:L,class:"vjs-check-controller-original is-".concat(A),type:A,onChange:function(){return G("change",L)}},null)])}}),k=(0,w.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var A=this.nodeType,L=this.onClick,G=A==="objectStart"||A==="arrayStart";return G||A==="objectCollapsed"||A==="arrayCollapsed"?(0,w.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(G?"open":"close"),onClick:L},[(0,w.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,w.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});function T(A){return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},T(A)}function D(A){return Object.prototype.toString.call(A).slice(8,-1).toLowerCase()}function B(A){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,oe=arguments.length>3?arguments[3]:void 0,le=oe||{},be=le.key,Se=le.index,ve=le.type,ce=ve===void 0?"content":ve,he=le.showComma,_e=he!==void 0&&he,je=le.length,Ie=je===void 0?1:je,Ze=D(A);if(Ze==="array"){var Te=z(A.map(function(te,K,X){return B(te,"".concat(L,"[").concat(K,"]"),G+1,{index:K,showComma:K!==X.length-1,length:Ie,type:ce})}));return[B("[",L,G,{showComma:!1,key:be,length:A.length,type:"arrayStart"})[0]].concat(Te,B("]",L,G,{showComma:_e,length:A.length,type:"arrayEnd"})[0])}if(Ze==="object"){var Me=Object.keys(A),Je=z(Me.map(function(te,K,X){return B(A[te],/^[a-zA-Z_]\w*$/.test(te)?"".concat(L,".").concat(te):"".concat(L,'["').concat(te,'"]'),G+1,{key:te,showComma:K!==X.length-1,length:Ie,type:ce})}));return[B("{",L,G,{showComma:!1,key:be,index:Se,length:Me.length,type:"objectStart"})[0]].concat(Je,B("}",L,G,{showComma:_e,length:Me.length,type:"objectEnd"})[0])}return[{content:A,level:G,key:be,index:Se,path:L,showComma:_e,length:Ie,type:ce}]}function z(A){if(typeof Array.prototype.flat=="function")return A.flat();for(var L=O(A),G=[];L.length;){var oe=L.shift();Array.isArray(oe)?L.unshift.apply(L,O(oe)):G.push(oe)}return G}function q(A){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(A==null)return A;if(A instanceof Date)return new Date(A);if(A instanceof RegExp)return new RegExp(A);if(T(A)!=="object")return A;if(L.get(A))return L.get(A);if(Array.isArray(A)){var G=A.map(function(be){return q(be,L)});return L.set(A,G),G}var oe={};for(var le in A)oe[le]=q(A[le],L);return L.set(A,oe),oe}function ne(A,L){var G=Object.keys(A);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(A);L&&(oe=oe.filter(function(le){return Object.getOwnPropertyDescriptor(A,le).enumerable})),G.push.apply(G,oe)}return G}function V(A){for(var L=1;L<arguments.length;L++){var G=arguments[L]!=null?arguments[L]:{};L%2?ne(Object(G),!0).forEach(function(oe){x(A,oe,G[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(G)):ne(Object(G)).forEach(function(oe){Object.defineProperty(A,oe,Object.getOwnPropertyDescriptor(G,oe))})}return A}var Z={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}},ee=(0,w.defineComponent)({name:"TreeNode",props:V(V({},Z),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(A,L){var G=L.emit,oe=(0,w.computed)(function(){return D(A.node.content)}),le=(0,w.computed)(function(){return"vjs-value vjs-value-".concat(oe.value)}),be=(0,w.computed)(function(){return A.showDoubleQuotes?'"'.concat(A.node.key,'"'):A.node.key}),Se=(0,w.computed)(function(){return A.selectableType==="multiple"}),ve=(0,w.computed)(function(){return A.selectableType==="single"}),ce=(0,w.computed)(function(){return A.nodeSelectable(A.node)&&(Se.value||ve.value)}),he=(0,w.reactive)({editing:!1}),_e=function(K){var X,fe,xe=(fe=(X=K.target)===null||X===void 0?void 0:X.value)==="null"?null:fe==="undefined"?void 0:fe==="true"||fe!=="false"&&(fe[0]+fe[fe.length-1]==='""'||fe[0]+fe[fe.length-1]==="''"?fe.slice(1,-1):typeof Number(fe)=="number"&&!isNaN(Number(fe))||fe==="NaN"?Number(fe):fe);G("valueChange",xe,A.node.path)},je=(0,w.computed)(function(){var K,X=(K=A.node)===null||K===void 0?void 0:K.content;return X===null?X="null":X===void 0&&(X="undefined"),oe.value==="string"?'"'.concat(X,'"'):X+""}),Ie=function(){var K=A.renderNodeValue;return K?K({node:A.node,defaultValue:je.value}):je.value},Ze=function(){G("bracketsClick",!A.collapsed,A.node.path)},Te=function(){G("iconClick",!A.collapsed,A.node.path)},Me=function(){G("selectedChange",A.node)},Je=function(){G("nodeClick",A.node),ce.value&&A.selectOnClickNode&&G("selectedChange",A.node)},te=function(K){if(A.editable&&!he.editing){he.editing=!0;var X=function fe(xe){var me;xe.target!==K.target&&((me=xe.target)===null||me===void 0?void 0:me.parentElement)!==K.target&&(he.editing=!1,document.removeEventListener("click",fe))};document.removeEventListener("click",X),document.addEventListener("click",X)}};return function(){var K,X=A.node;return(0,w.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":A.showSelectController,"has-carets":A.showIcon,"is-highlight":A.highlightSelectedNode&&A.checked},onClick:Je,style:A.style},[A.showLineNumber&&(0,w.createVNode)("span",{class:"vjs-node-index"},[X.id+1]),A.showSelectController&&ce.value&&X.type!=="objectEnd"&&X.type!=="arrayEnd"&&(0,w.createVNode)(P,{isMultiple:Se.value,checked:A.checked,onChange:Me},null),(0,w.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(X.level)).map(function(fe,xe){return(0,w.createVNode)("div",{key:xe,class:{"vjs-indent-unit":!0,"has-line":A.showLine}},null)}),A.showIcon&&(0,w.createVNode)(k,{nodeType:X.type,onClick:Te},null)]),X.key&&(0,w.createVNode)("span",{class:"vjs-key"},[(K=A.renderNodeKey,K?K({node:A.node,defaultKey:be.value||""}):be.value),(0,w.createVNode)("span",{class:"vjs-colon"},[":".concat(A.showKeyValueSpace?" ":"")])]),(0,w.createVNode)("span",null,[X.type!=="content"&&X.content?(0,w.createVNode)(j,{data:X.content.toString(),onClick:Ze},null):(0,w.createVNode)("span",{class:le.value,onClick:!A.editable||A.editableTrigger&&A.editableTrigger!=="click"?void 0:te,onDblclick:A.editable&&A.editableTrigger==="dblclick"?te:void 0},[A.editable&&he.editing?(0,w.createVNode)("input",{value:je.value,onChange:_e,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):Ie()]),X.showComma&&(0,w.createVNode)("span",null,[","]),A.showLength&&A.collapsed&&(0,w.createVNode)("span",{class:"vjs-comment"},[(0,w.createTextVNode)(" // "),X.length,(0,w.createTextVNode)(" items ")])])])}}});function W(A,L){var G=Object.keys(A);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(A);L&&(oe=oe.filter(function(le){return Object.getOwnPropertyDescriptor(A,le).enumerable})),G.push.apply(G,oe)}return G}function R(A){for(var L=1;L<arguments.length;L++){var G=arguments[L]!=null?arguments[L]:{};L%2?W(Object(G),!0).forEach(function(oe){x(A,oe,G[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(G)):W(Object(G)).forEach(function(oe){Object.defineProperty(A,oe,Object.getOwnPropertyDescriptor(G,oe))})}return A}var F=(0,w.defineComponent)({name:"Tree",props:R(R({},Z),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(A,L){var G=L.emit,oe=L.slots,le=(0,w.ref)(),be=(0,w.computed)(function(){return B(A.data,A.rootPath)}),Se=function(X){return be.value.reduce(function(fe,xe){var me,Fe=xe.level>=X,He=(me=A.pathCollapsible)===null||me===void 0?void 0:me.call(A,xe);return xe.type!=="objectStart"&&xe.type!=="arrayStart"||!Fe&&!He?fe:R(R({},fe),{},x({},xe.path,1))},{})},ve=(0,w.reactive)({translateY:0,visibleData:null,hiddenPaths:Se(A.deep)}),ce=(0,w.computed)(function(){for(var X=null,fe=[],xe=be.value.length,me=0;me<xe;me++){var Fe=R(R({},be.value[me]),{},{id:me}),He=ve.hiddenPaths[Fe.path];if(X&&X.path===Fe.path){var Qe=X.type==="objectStart",Ve=R(R(R({},Fe),X),{},{showComma:Fe.showComma,content:Qe?"{...}":"[...]",type:Qe?"objectCollapsed":"arrayCollapsed"});X=null,fe.push(Ve)}else{if(He&&!X){X=Fe;continue}if(X)continue;fe.push(Fe)}}return fe}),he=(0,w.computed)(function(){var X=A.selectedValue;return X&&A.selectableType==="multiple"&&Array.isArray(X)?X:[X]}),_e=(0,w.computed)(function(){return!A.selectableType||A.selectOnClickNode||A.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),je=function(){var X=ce.value;if(A.virtual){var fe,xe=A.height/A.itemHeight,me=((fe=le.value)===null||fe===void 0?void 0:fe.scrollTop)||0,Fe=Math.floor(me/A.itemHeight),He=Fe<0?0:Fe+xe>X.length?X.length-xe:Fe;He<0&&(He=0);var Qe=He+xe;ve.translateY=He*A.itemHeight,ve.visibleData=X.filter(function(Ve,Oe){return Oe>=He&&Oe<Qe})}else ve.visibleData=X},Ie=function(){je()},Ze=function(X){var fe,xe,me=X.path,Fe=A.selectableType;if(Fe==="multiple"){var He=he.value.findIndex(function(ze){return ze===me}),Qe=O(he.value);He!==-1?Qe.splice(He,1):Qe.push(me),G("update:selectedValue",Qe),G("selectedChange",Qe,O(he.value))}else if(Fe==="single"&&he.value[0]!==me){var Ve=(fe=he.value,xe=1,function(ze){if(Array.isArray(ze))return ze}(fe)||function(ze,re){var Le=ze==null?null:typeof Symbol!="undefined"&&ze[Symbol.iterator]||ze["@@iterator"];if(Le!=null){var ut,xt,ot=[],vt=!0,At=!1;try{for(Le=Le.call(ze);!(vt=(ut=Le.next()).done)&&(ot.push(ut.value),!re||ot.length!==re);vt=!0);}catch(Bt){At=!0,xt=Bt}finally{try{vt||Le.return==null||Le.return()}finally{if(At)throw xt}}return ot}}(fe,xe)||g(fe,xe)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  110. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],Oe=me;G("update:selectedValue",Oe),G("selectedChange",Oe,Ve)}},Te=function(X){G("nodeClick",X)},Me=function(X,fe){if(X)ve.hiddenPaths=R(R({},ve.hiddenPaths),{},x({},fe,1));else{var xe=R({},ve.hiddenPaths);delete xe[fe],ve.hiddenPaths=xe}},Je=function(X,fe){A.collapsedOnClickBrackets&&Me(X,fe),G("bracketsClick",X)},te=function(X,fe){Me(X,fe),G("iconClick",X)},K=function(X,fe){var xe=q(A.data),me=A.rootPath;new Function("data","val","data".concat(fe.slice(me.length),"=val"))(xe,X),G("update:data",xe)};return(0,w.watchEffect)(function(){_e.value&&function(X){throw new Error("[VueJSONPretty] ".concat(X))}(_e.value)}),(0,w.watchEffect)(function(){ce.value&&je()}),(0,w.watch)(function(){return A.deep},function(X){X&&(ve.hiddenPaths=Se(X))}),function(){var X,fe,xe=(X=A.renderNodeKey)!==null&&X!==void 0?X:oe.renderNodeKey,me=(fe=A.renderNodeValue)!==null&&fe!==void 0?fe:oe.renderNodeValue,Fe=ve.visibleData&&ve.visibleData.map(function(He){return(0,w.createVNode)(ee,{key:He.id,node:He,collapsed:!!ve.hiddenPaths[He.path],showDoubleQuotes:A.showDoubleQuotes,showLength:A.showLength,checked:he.value.includes(He.path),selectableType:A.selectableType,showLine:A.showLine,showLineNumber:A.showLineNumber,showSelectController:A.showSelectController,selectOnClickNode:A.selectOnClickNode,nodeSelectable:A.nodeSelectable,highlightSelectedNode:A.highlightSelectedNode,editable:A.editable,editableTrigger:A.editableTrigger,showIcon:A.showIcon,showKeyValueSpace:A.showKeyValueSpace,renderNodeKey:xe,renderNodeValue:me,onNodeClick:Te,onBracketsClick:Je,onIconClick:te,onSelectedChange:Ze,onValueChange:K,style:A.itemHeight&&A.itemHeight!==20?{lineHeight:"".concat(A.itemHeight,"px")}:{}},null)});return(0,w.createVNode)("div",{ref:le,class:{"vjs-tree":!0,"is-virtual":A.virtual},onScroll:A.virtual?Ie:void 0,style:A.showLineNumber?R({paddingLeft:"".concat(12*Number(be.value.length.toString().length),"px")},A.style):A.style},[A.virtual?(0,w.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(A.height,"px")}},[(0,w.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(ce.value.length*A.itemHeight,"px")}},[(0,w.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(ve.translateY,"px)")}},[Fe])])]):Fe])}}})}(),d}()})})(gO);var m5=i_(gO.exports);const _5=xc({__name:"DataDialog",props:{graphData:Object},setup(r){const u=r;return(a,l)=>(Fr(),bd(nn(m5),{path:"res",deep:3,showLength:!0,data:u.graphData},null,8,["data"]))}});var O5=Ec(_5,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/components/ReFlowChart/src/DataDialog.vue"]]);const w5=zd(f5),x5=zd(g5),E5=zd(O5),S5={SEQUENCE_FLOW:1,START_EVENT:2,END_EVENT:3,USER_TASK:4,SERVICE_TASK:5,EXCLUSIVE_GATEWAY:6};function j5(r){const{incoming:u,outgoing:a,properties:l,key:o}=r,{text:p,startPoint:d,endPoint:y,pointsList:g,logicFlowType:O}=l,x={id:o,type:O,sourceNodeId:u[0],targetNodeId:a[0],text:p,startPoint:d,endPoint:y,pointsList:g,properties:{}},w=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(r.properties).forEach(j=>{w.indexOf(j)===-1&&(x.properties[j]=r.properties[j])}),x}function P5(r){const{properties:u,key:a}=r,{x:l,y:o,text:p,logicFlowType:d}=u,y={id:a,type:d,x:l,y:o,text:p,properties:{}},g=["x","y","text","logicFlowType"];return Object.keys(r.properties).forEach(O=>{g.indexOf(O)===-1&&(y.properties[O]=r.properties[O])}),y}function A5(r){const u={nodes:[],edges:[]},a=r.flowElementList;return a&&a.length>0&&a.forEach(l=>{if(l.type===S5.SEQUENCE_FLOW){const o=j5(l);u.edges.push(o)}else{const o=P5(l);u.nodes.push(o)}}),u}const T5=r=>(nA("data-v-77d65f48"),r=r(),rA(),r),M5={class:"card-header"},k5={class:"font-medium"},D5={class:"logic-flow-view"},N5=T5(()=>$r("div",{id:"LF-Turbo"},null,-1)),C5={name:"FlowChart"},R5=xc({...C5,setup(r){let u=ri(null),a=ri(null),l=ri(!1),o=ri({grid:!0,background:{color:"#f7f9ff"},keyboard:{enabled:!0}}),p=DL;function d(){Js.use(J4),Js.use(e4),Js.use(r5);const O=new Js({...nn(o),container:document.querySelector("#LF-Turbo")});u.value=O,nn(u).setDefaultEdgeType("bpmn:sequenceFlow"),y()}function y(){const O=A5(kL);u.value.render(O)}function g(){a.value=nn(u).getGraphData(),l.value=!0}return a_(()=>{d()}),(O,x)=>{const w=Ua("el-link"),j=Ua("el-scrollbar"),P=Ua("el-dialog"),k=Ua("el-card");return Fr(),bd(k,null,{header:Wi(()=>[$r("div",M5,[$r("span",k5,[gm(" \u6D41\u7A0B\u56FE\u7EC4\u4EF6\uFF0C\u91C7\u7528\u5F00\u6E90\u7684 "),$i(w,{href:"http://logic-flow.org/",target:"_blank",icon:nn(tA)("set-up"),style:{"font-size":"16px",margin:"0 4px 5px"}},{default:Wi(()=>[gm(" LogicFlow ")]),_:1},8,["icon"])])])]),default:Wi(()=>[$r("div",D5,[No(" \u8F85\u52A9\u5DE5\u5177\u680F "),nn(u)?(Fr(),bd(nn(w5),{key:0,class:"demo-control",lf:nn(u),catTurboData:!1,onCatData:g},null,8,["lf"])):No("v-if",!0),No(" \u8282\u70B9\u9762\u677F "),$i(nn(x5),{lf:nn(u),nodeList:nn(p)},null,8,["lf","nodeList"]),No(" \u753B\u5E03 "),N5,No(" \u6570\u636E\u67E5\u770B\u9762\u677F "),$i(P,{customClass:"flow-dialog",title:"\u6570\u636E",modelValue:nn(l),"onUpdate:modelValue":x[0]||(x[0]=T=>c_(l)?l.value=T:l=T),width:"50%","close-on-click-modal":!1},{default:Wi(()=>[$i(j,null,{default:Wi(()=>[$i(nn(E5),{graphData:nn(a)},null,8,["graphData"])]),_:1})]),_:1},8,["modelValue"])])]),_:1})}}});var B5=Ec(R5,[["__scopeId","data-v-77d65f48"],["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/flow-chart/index.vue"]]);export{B5 as default};