163 lines
502 KiB
JavaScript
163 lines
502 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[77914,42270],{20532:function(N){(function(M,x){N.exports=x()})(window,function(){return function(M){var x={};function g(f){if(x[f])return x[f].exports;var p=x[f]={i:f,l:!1,exports:{}};return M[f].call(p.exports,p,p.exports,g),p.l=!0,p.exports}return g.m=M,g.c=x,g.d=function(f,p,l){g.o(f,p)||Object.defineProperty(f,p,{enumerable:!0,get:l})},g.r=function(f){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},g.t=function(f,p){if(1&p&&(f=g(f)),8&p||4&p&&typeof f=="object"&&f&&f.__esModule)return f;var l=Object.create(null);if(g.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:f}),2&p&&typeof f!="string")for(var i in f)g.d(l,i,function(o){return f[o]}.bind(null,i));return l},g.n=function(f){var p=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(p,"a",p),p},g.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)},g.p="",g(g.s=820)}([,function(M,x,g){"use strict";var f=function(Z,lt,it){Z.prototype=lt.prototype=it,it.constructor=Z};function p(z,Z){var lt=Object.create(z.prototype);for(var it in Z)lt[it]=Z[it];return lt}function l(){}var i="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",t=/^#([0-9a-f]{3})$/,e=/^#([0-9a-f]{6})$/,r=new RegExp("^rgb\\("+[i,i,i]+"\\)$"),a=new RegExp("^rgb\\("+[n,n,n]+"\\)$"),u=new RegExp("^rgba\\("+[i,i,i,o]+"\\)$"),c=new RegExp("^rgba\\("+[n,n,n,o]+"\\)$"),s=new RegExp("^hsl\\("+[o,n,n]+"\\)$"),h=new RegExp("^hsla\\("+[o,n,n,o]+"\\)$"),d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(z){var Z;return z=(z+"").trim().toLowerCase(),(Z=t.exec(z))?new P((Z=parseInt(Z[1],16))>>8&15|Z>>4&240,Z>>4&15|240&Z,(15&Z)<<4|15&Z,1):(Z=e.exec(z))?y(parseInt(Z[1],16)):(Z=r.exec(z))?new P(Z[1],Z[2],Z[3],1):(Z=a.exec(z))?new P(255*Z[1]/100,255*Z[2]/100,255*Z[3]/100,1):(Z=u.exec(z))?m(Z[1],Z[2],Z[3],Z[4]):(Z=c.exec(z))?m(255*Z[1]/100,255*Z[2]/100,255*Z[3]/100,Z[4]):(Z=s.exec(z))?O(Z[1],Z[2]/100,Z[3]/100,1):(Z=h.exec(z))?O(Z[1],Z[2]/100,Z[3]/100,Z[4]):d.hasOwnProperty(z)?y(d[z]):z==="transparent"?new P(NaN,NaN,NaN,0):null}function y(z){return new P(z>>16&255,z>>8&255,255&z,1)}function m(z,Z,lt,it){return it<=0&&(z=Z=lt=NaN),new P(z,Z,lt,it)}function b(z){return z instanceof l||(z=v(z)),z?new P((z=z.rgb()).r,z.g,z.b,z.opacity):new P}function w(z,Z,lt,it){return arguments.length===1?b(z):new P(z,Z,lt,it==null?1:it)}function P(z,Z,lt,it){this.r=+z,this.g=+Z,this.b=+lt,this.opacity=+it}function S(z){return((z=Math.max(0,Math.min(255,Math.round(z)||0)))<16?"0":"")+z.toString(16)}function O(z,Z,lt,it){return it<=0?z=Z=lt=NaN:lt<=0||lt>=1?z=Z=NaN:Z<=0&&(z=NaN),new E(z,Z,lt,it)}function A(z,Z,lt,it){return arguments.length===1?function(dt){if(dt instanceof E)return new E(dt.h,dt.s,dt.l,dt.opacity);if(dt instanceof l||(dt=v(dt)),!dt)return new E;if(dt instanceof E)return dt;var yt=(dt=dt.rgb()).r/255,wt=dt.g/255,Mt=dt.b/255,At=Math.min(yt,wt,Mt),xt=Math.max(yt,wt,Mt),St=NaN,Et=xt-At,Pt=(xt+At)/2;return Et?(St=yt===xt?(wt-Mt)/Et+6*(wt<Mt):wt===xt?(Mt-yt)/Et+2:(yt-wt)/Et+4,Et/=Pt<.5?xt+At:2-xt-At,St*=60):Et=Pt>0&&Pt<1?0:St,new E(St,Et,Pt,dt.opacity)}(z):new E(z,Z,lt,it==null?1:it)}function E(z,Z,lt,it){this.h=+z,this.s=+Z,this.l=+lt,this.opacity=+it}function _(z,Z,lt){return 255*(z<60?Z+(lt-Z)*z/60:z<180?lt:z<240?Z+(lt-Z)*(240-z)/60:Z)}f(l,v,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),f(P,w,p(l,{brighter:function(Z){return Z=Z==null?1/.7:Math.pow(1/.7,Z),new P(this.r*Z,this.g*Z,this.b*Z,this.opacity)},darker:function(Z){return Z=Z==null?.7:Math.pow(.7,Z),new P(this.r*Z,this.g*Z,this.b*Z,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+S(this.r)+S(this.g)+S(this.b)},toString:function(){var Z=this.opacity;return((Z=isNaN(Z)?1:Math.max(0,Math.min(1,Z)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(Z===1?")":", "+Z+")")}})),f(E,A,p(l,{brighter:function(Z){return Z=Z==null?1/.7:Math.pow(1/.7,Z),new E(this.h,this.s,this.l*Z,this.opacity)},darker:function(Z){return Z=Z==null?.7:Math.pow(.7,Z),new E(this.h,this.s,this.l*Z,this.opacity)},rgb:function(){var Z=this.h%360+360*(this.h<0),lt=isNaN(Z)||isNaN(this.s)?0:this.s,it=this.l,dt=it+(it<.5?it:1-it)*lt,yt=2*it-dt;return new P(_(Z>=240?Z-240:Z+120,yt,dt),_(Z,yt,dt),_(Z<120?Z+240:Z-120,yt,dt),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var C=Math.PI/180,k=180/Math.PI,T=.96422,I=1,R=.82521,F=4/29,j=6/29,B=3*j*j,H=j*j*j;function et(z){if(z instanceof K)return new K(z.l,z.a,z.b,z.opacity);if(z instanceof L){if(isNaN(z.h))return new K(z.l,0,0,z.opacity);var Z=z.h*C;return new K(z.l,Math.cos(Z)*z.c,Math.sin(Z)*z.c,z.opacity)}z instanceof P||(z=b(z));var lt,it,dt=tt(z.r),yt=tt(z.g),wt=tt(z.b),Mt=nt((.2225045*dt+.7168786*yt+.0606169*wt)/I);return dt===yt&&yt===wt?lt=it=Mt:(lt=nt((.4360747*dt+.3850649*yt+.1430804*wt)/T),it=nt((.0139322*dt+.0971045*yt+.7141733*wt)/R)),new K(116*Mt-16,500*(lt-Mt),200*(Mt-it),z.opacity)}function Q(z,Z){return new K(z,0,0,Z==null?1:Z)}function J(z,Z,lt,it){return arguments.length===1?et(z):new K(z,Z,lt,it==null?1:it)}function K(z,Z,lt,it){this.l=+z,this.a=+Z,this.b=+lt,this.opacity=+it}function nt(z){return z>H?Math.pow(z,1/3):z/B+F}function st(z){return z>j?z*z*z:B*(z-F)}function V(z){return 255*(z<=.0031308?12.92*z:1.055*Math.pow(z,1/2.4)-.055)}function tt(z){return(z/=255)<=.04045?z/12.92:Math.pow((z+.055)/1.055,2.4)}function $(z){if(z instanceof L)return new L(z.h,z.c,z.l,z.opacity);if(z instanceof K||(z=et(z)),z.a===0&&z.b===0)return new L(NaN,0,z.l,z.opacity);var Z=Math.atan2(z.b,z.a)*k;return new L(Z<0?Z+360:Z,Math.sqrt(z.a*z.a+z.b*z.b),z.l,z.opacity)}function ot(z,Z,lt,it){return arguments.length===1?$(z):new L(lt,Z,z,it==null?1:it)}function Y(z,Z,lt,it){return arguments.length===1?$(z):new L(z,Z,lt,it==null?1:it)}function L(z,Z,lt,it){this.h=+z,this.c=+Z,this.l=+lt,this.opacity=+it}f(K,J,p(l,{brighter:function(Z){return new K(this.l+18*(Z==null?1:Z),this.a,this.b,this.opacity)},darker:function(Z){return new K(this.l-18*(Z==null?1:Z),this.a,this.b,this.opacity)},rgb:function(){var Z=(this.l+16)/116,lt=isNaN(this.a)?Z:Z+this.a/500,it=isNaN(this.b)?Z:Z-this.b/200;return new P(V(3.1338561*(lt=T*st(lt))-1.6168667*(Z=I*st(Z))-.4906146*(it=R*st(it))),V(-.9787684*lt+1.9161415*Z+.033454*it),V(.0719453*lt-.2289914*Z+1.4052427*it),this.opacity)}})),f(L,Y,p(l,{brighter:function(Z){return new L(this.h,this.c,this.l+18*(Z==null?1:Z),this.opacity)},darker:function(Z){return new L(this.h,this.c,this.l-18*(Z==null?1:Z),this.opacity)},rgb:function(){return et(this).rgb()}}));var D=-.14861,G=1.78277,U=-.29227,X=-.90649,q=1.97294,ut=q*X,rt=q*G,at=G*U-X*D;function pt(z,Z,lt,it){return arguments.length===1?function(dt){if(dt instanceof gt)return new gt(dt.h,dt.s,dt.l,dt.opacity);dt instanceof P||(dt=b(dt));var yt=dt.r/255,wt=dt.g/255,Mt=dt.b/255,At=(at*Mt+ut*yt-rt*wt)/(at+ut-rt),xt=Mt-At,St=(q*(wt-At)-U*xt)/X,Et=Math.sqrt(St*St+xt*xt)/(q*At*(1-At)),Pt=Et?Math.atan2(St,xt)*k-120:NaN;return new gt(Pt<0?Pt+360:Pt,Et,At,dt.opacity)}(z):new gt(z,Z,lt,it==null?1:it)}function gt(z,Z,lt,it){this.h=+z,this.s=+Z,this.l=+lt,this.opacity=+it}f(gt,pt,p(l,{brighter:function(Z){return Z=Z==null?1/.7:Math.pow(1/.7,Z),new gt(this.h,this.s,this.l*Z,this.opacity)},darker:function(Z){return Z=Z==null?.7:Math.pow(.7,Z),new gt(this.h,this.s,this.l*Z,this.opacity)},rgb:function(){var Z=isNaN(this.h)?0:(this.h+120)*C,lt=+this.l,it=isNaN(this.s)?0:this.s*lt*(1-lt),dt=Math.cos(Z),yt=Math.sin(Z);return new P(255*(lt+it*(D*dt+G*yt)),255*(lt+it*(U*dt+X*yt)),255*(lt+it*(q*dt)),this.opacity)}})),g.d(x,"a",function(){return v}),g.d(x,"h",function(){return w}),g.d(x,"e",function(){return A}),g.d(x,"f",function(){return J}),g.d(x,"d",function(){return Y}),g.d(x,"g",function(){return ot}),g.d(x,"c",function(){return Q}),g.d(x,"b",function(){return pt})},,,,,,,,,,,,,,,function(M,x){M.exports=function(g){var f=typeof g;return g!=null&&(f=="object"||f=="function")}},function(M,x,g){"use strict";g.r(x);var f,p,l=0,i=0,o=0,n=1e3,t=0,e=0,r=0,a=typeof performance=="object"&&performance.now?performance:Date,u=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(S){setTimeout(S,17)};function c(){return e||(u(s),e=a.now()+r)}function s(){e=0}function h(){this._call=this._time=this._next=null}function d(S,O,A){var E=new h;return E.restart(S,O,A),E}function v(){c(),++l;for(var S,O=f;O;)(S=e-O._time)>=0&&O._call.call(null,S),O=O._next;--l}function y(){e=(t=a.now())+r,l=i=0;try{v()}finally{l=0,function(){for(var S,O,A=f,E=1/0;A;)A._call?(E>A._time&&(E=A._time),S=A,A=A._next):(O=A._next,A._next=null,A=S?S._next=O:f=O);p=S,b(E)}(),e=0}}function m(){var S=a.now(),O=S-t;O>n&&(r-=O,t=S)}function b(S){l||(i&&(i=clearTimeout(i)),S-e>24?(S<1/0&&(i=setTimeout(y,S-a.now()-r)),o&&(o=clearInterval(o))):(o||(t=a.now(),o=setInterval(m,n)),l=1,u(y)))}h.prototype=d.prototype={constructor:h,restart:function(O,A,E){if(typeof O!="function")throw new TypeError("callback is not a function");E=(E==null?c():+E)+(A==null?0:+A),this._next||p===this||(p?p._next=this:f=this,p=this),this._call=O,this._time=E,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};var w=function(O,A,E){var _=new h;return A=A==null?0:+A,_.restart(function(C){_.stop(),O(C+A)},A,E),_},P=function(O,A,E){var _=new h,C=A;return A==null?(_.restart(O,A,E),_):(A=+A,E=E==null?c():+E,_.restart(function k(T){T+=C,_.restart(k,C+=A,E),O(T)},A,E),_)};g.d(x,"now",function(){return c}),g.d(x,"timer",function(){return d}),g.d(x,"timerFlush",function(){return v}),g.d(x,"timeout",function(){return w}),g.d(x,"interval",function(){return P})},,function(M,x,g){var f=g(644),p={};f.merge(p,f,{mixin:function(i,o){var n=i.CFG?"CFG":"ATTRS";if(i&&o){i._mixins=o,i[n]=i[n]||{};var t={};p.each(o,function(e){p.augment(i,e);var r=e[n];r&&p.merge(t,r)}),i[n]=p.merge(t,i[n])}}}),M.exports=p},function(M,x,g){var f=g(117),p=typeof self=="object"&&self&&self.Object===Object&&self,l=f||p||Function("return this")();M.exports=l},,,function(M,x){M.exports=function(g){return g!=null&&typeof g=="object"}},,,function(M,x,g){var f={},p=g(682),l=g(748),i=g(257),o=g(727),n=g(726),t=g(725);i.mix(f,i,n,t,o,l,p),M.exports=f},,,,,,,,function(M,x,g){var f=g(38),p=g(250),l=g(249),i="[object Null]",o="[object Undefined]",n=f?f.toStringTag:void 0;M.exports=function(t){return t==null?t===void 0?o:i:n&&n in Object(t)?p(t):l(t)}},,,,function(M,x,g){var f=g(20).Symbol;M.exports=f},function(M,x,g){var f=g(34),p=g(23),l="[object Symbol]";M.exports=function(i){return typeof i=="symbol"||p(i)&&f(i)==l}},,,,,function(M,x,g){"use strict";function f(V){return+V}function p(V){return V*V}function l(V){return V*(2-V)}function i(V){return((V*=2)<=1?V*V:--V*(2-V)+1)/2}function o(V){return V*V*V}function n(V){return--V*V*V+1}function t(V){return((V*=2)<=1?V*V*V:(V-=2)*V*V+2)/2}g.r(x);var e=function V(tt){function $(ot){return Math.pow(ot,tt)}return tt=+tt,$.exponent=V,$}(3),r=function V(tt){function $(ot){return 1-Math.pow(1-ot,tt)}return tt=+tt,$.exponent=V,$}(3),a=function V(tt){function $(ot){return((ot*=2)<=1?Math.pow(ot,tt):2-Math.pow(2-ot,tt))/2}return tt=+tt,$.exponent=V,$}(3),u=Math.PI,c=u/2;function s(V){return 1-Math.cos(V*c)}function h(V){return Math.sin(V*c)}function d(V){return(1-Math.cos(u*V))/2}function v(V){return Math.pow(2,10*V-10)}function y(V){return 1-Math.pow(2,-10*V)}function m(V){return((V*=2)<=1?Math.pow(2,10*V-10):2-Math.pow(2,10-10*V))/2}function b(V){return 1-Math.sqrt(1-V*V)}function w(V){return Math.sqrt(1- --V*V)}function P(V){return((V*=2)<=1?1-Math.sqrt(1-V*V):Math.sqrt(1-(V-=2)*V)+1)/2}var S=4/11,O=6/11,A=8/11,E=.75,_=9/11,C=10/11,k=.9375,T=21/22,I=63/64,R=1/S/S;function F(V){return 1-j(1-V)}function j(V){return(V=+V)<S?R*V*V:V<A?R*(V-=O)*V+E:V<C?R*(V-=_)*V+k:R*(V-=T)*V+I}function B(V){return((V*=2)<=1?1-j(1-V):j(V-1)+1)/2}var H=function V(tt){function $(ot){return ot*ot*((tt+1)*ot-tt)}return tt=+tt,$.overshoot=V,$}(1.70158),et=function V(tt){function $(ot){return--ot*ot*((tt+1)*ot+tt)+1}return tt=+tt,$.overshoot=V,$}(1.70158),Q=function V(tt){function $(ot){return((ot*=2)<1?ot*ot*((tt+1)*ot-tt):(ot-=2)*ot*((tt+1)*ot+tt)+2)/2}return tt=+tt,$.overshoot=V,$}(1.70158),J=2*Math.PI,K=function V(tt,$){var ot=Math.asin(1/(tt=Math.max(1,tt)))*($/=J);function Y(L){return tt*Math.pow(2,10*--L)*Math.sin((ot-L)/$)}return Y.amplitude=function(L){return V(L,$*J)},Y.period=function(L){return V(tt,L)},Y}(1,.3),nt=function V(tt,$){var ot=Math.asin(1/(tt=Math.max(1,tt)))*($/=J);function Y(L){return 1-tt*Math.pow(2,-10*(L=+L))*Math.sin((L+ot)/$)}return Y.amplitude=function(L){return V(L,$*J)},Y.period=function(L){return V(tt,L)},Y}(1,.3),st=function V(tt,$){var ot=Math.asin(1/(tt=Math.max(1,tt)))*($/=J);function Y(L){return((L=2*L-1)<0?tt*Math.pow(2,10*L)*Math.sin((ot-L)/$):2-tt*Math.pow(2,-10*L)*Math.sin((ot+L)/$))/2}return Y.amplitude=function(L){return V(L,$*J)},Y.period=function(L){return V(tt,L)},Y}(1,.3);g.d(x,"easeLinear",function(){return f}),g.d(x,"easeQuad",function(){return i}),g.d(x,"easeQuadIn",function(){return p}),g.d(x,"easeQuadOut",function(){return l}),g.d(x,"easeQuadInOut",function(){return i}),g.d(x,"easeCubic",function(){return t}),g.d(x,"easeCubicIn",function(){return o}),g.d(x,"easeCubicOut",function(){return n}),g.d(x,"easeCubicInOut",function(){return t}),g.d(x,"easePoly",function(){return a}),g.d(x,"easePolyIn",function(){return e}),g.d(x,"easePolyOut",function(){return r}),g.d(x,"easePolyInOut",function(){return a}),g.d(x,"easeSin",function(){return d}),g.d(x,"easeSinIn",function(){return s}),g.d(x,"easeSinOut",function(){return h}),g.d(x,"easeSinInOut",function(){return d}),g.d(x,"easeExp",function(){return m}),g.d(x,"easeExpIn",function(){return v}),g.d(x,"easeExpOut",function(){return y}),g.d(x,"easeExpInOut",function(){return m}),g.d(x,"easeCircle",function(){return P}),g.d(x,"easeCircleIn",function(){return b}),g.d(x,"easeCircleOut",function(){return w}),g.d(x,"easeCircleInOut",function(){return P}),g.d(x,"easeBounce",function(){return j}),g.d(x,"easeBounceIn",function(){return F}),g.d(x,"easeBounceOut",function(){return j}),g.d(x,"easeBounceInOut",function(){return B}),g.d(x,"easeBack",function(){return Q}),g.d(x,"easeBackIn",function(){return H}),g.d(x,"easeBackOut",function(){return et}),g.d(x,"easeBackInOut",function(){return Q}),g.d(x,"easeElastic",function(){return nt}),g.d(x,"easeElasticIn",function(){return K}),g.d(x,"easeElasticOut",function(){return nt}),g.d(x,"easeElasticInOut",function(){return st})},function(M,x,g){var f=g(115),p=Array.isArray?Array.isArray:function(l){return f(l,"Array")};M.exports=p},function(M,x,g){var f=g(621),p=g(45);M.exports=function(l,i){if(l){if(p(l))for(var o=0,n=l.length;o<n&&i(l[o],o)!==!1;o++);else if(f(l)){for(var t in l)if(l.hasOwnProperty(t)&&i(l[t],t)===!1)break}}}},,,,,,,,,,,,function(M,x,g){var f=g(19),p=g(742),l=g(641),i=g(613),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={},f.extend(o,l);var n={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};f.augment(o,p,{isShape:!0,drawInner:function(e){var r=this._attrs;this.createPath(e);var a=e.globalAlpha;if(this.hasFill()){var u=r.fillOpacity;f.isNil(u)||u===1?e.fill():(e.globalAlpha=u,e.fill(),e.globalAlpha=a)}if(this.hasStroke()&&this._attrs.lineWidth>0){var c=r.strokeOpacity;f.isNil(c)||c===1||(e.globalAlpha=c),e.stroke()}this.afterPath(e)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(e,r){var a=[e,r,1];if(this.invert(a),this.isHitBox()){var u=this.getBBox();if(u&&!i.box(u.minX,u.maxX,u.minY,u.maxY,a[0],a[1]))return!1}var c=this._attrs.clip;return c?(c.invert(a,this.get("canvas")),!!c.isPointInPath(a[0],a[1])&&this.isPointInPath(a[0],a[1])):this.isPointInPath(a[0],a[1])},calculateBox:function(){return null},getHitLineWidth:function(){var e=this._attrs,r=e.lineAppendWidth||0;return(e.lineWidth||0)+r},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var e=this._cfg.box;return e||((e=this.calculateBox())&&(e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY),this._cfg.box=e),e},clone:function(){var e=null,r=this._attrs,a={};return f.each(r,function(u,c){n[c]&&f.isArray(r[c])?a[c]=function(s){for(var h=[],d=0;d<s.length;d++)f.isArray(s[d])?h.push([].concat(s[d])):h.push(s[d]);return h}(r[c]):a[c]=r[c]}),e=new this.constructor({attrs:a}),e._cfg.zIndex=this._cfg.zIndex,e}}),M.exports=o},function(M,x,g){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.setMatrixArrayType=function(l){x.ARRAY_TYPE=l},x.toRadian=function(l){return l*p},x.equals=function(l,i){return Math.abs(l-i)<=f*Math.max(1,Math.abs(l),Math.abs(i))};var f=x.EPSILON=1e-6;x.ARRAY_TYPE=typeof Float32Array!="undefined"?Float32Array:Array,x.RANDOM=Math.random;var p=Math.PI/180},,,,,,,,,,,,,,,,,,,,,,,,,function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"Function")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(M,x){var g={}.toString;M.exports=function(f,p){return g.call(f)==="[object "+p+"]"}},function(M,x,g){var f;/*!
|
|
* EventEmitter v5.1.0 - git.io/ee
|
|
* Unlicense - http://unlicense.org/
|
|
* Oliver Caldwell - http://oli.me.uk/
|
|
* @preserve
|
|
*/(function(p){"use strict";function l(){}var i=l.prototype,o=p.EventEmitter;function n(e,r){for(var a=e.length;a--;)if(e[a].listener===r)return a;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}i.getListeners=function(e){var r,a,u=this._getEvents();if(e instanceof RegExp)for(a in r={},u)u.hasOwnProperty(a)&&e.test(a)&&(r[a]=u[a]);else r=u[e]||(u[e]=[]);return r},i.flattenListeners=function(e){var r,a=[];for(r=0;r<e.length;r+=1)a.push(e[r].listener);return a},i.getListenersAsObject=function(e){var r,a=this.getListeners(e);return a instanceof Array&&((r={})[e]=a),r||a},i.addListener=function(e,r){if(!function s(h){return typeof h=="function"||h instanceof RegExp||!(!h||typeof h!="object")&&s(h.listener)}(r))throw new TypeError("listener must be a function");var a,u=this.getListenersAsObject(e),c=typeof r=="object";for(a in u)u.hasOwnProperty(a)&&n(u[a],r)===-1&&u[a].push(c?r:{listener:r,once:!1});return this},i.on=t("addListener"),i.addOnceListener=function(e,r){return this.addListener(e,{listener:r,once:!0})},i.once=t("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var r=0;r<e.length;r+=1)this.defineEvent(e[r]);return this},i.removeListener=function(e,r){var a,u,c=this.getListenersAsObject(e);for(u in c)c.hasOwnProperty(u)&&(a=n(c[u],r))!==-1&&c[u].splice(a,1);return this},i.off=t("removeListener"),i.addListeners=function(e,r){return this.manipulateListeners(!1,e,r)},i.removeListeners=function(e,r){return this.manipulateListeners(!0,e,r)},i.manipulateListeners=function(e,r,a){var u,c,s=e?this.removeListener:this.addListener,h=e?this.removeListeners:this.addListeners;if(typeof r!="object"||r instanceof RegExp)for(u=a.length;u--;)s.call(this,r,a[u]);else for(u in r)r.hasOwnProperty(u)&&(c=r[u])&&(typeof c=="function"?s.call(this,u,c):h.call(this,u,c));return this},i.removeEvent=function(e){var r,a=typeof e,u=this._getEvents();if(a==="string")delete u[e];else if(e instanceof RegExp)for(r in u)u.hasOwnProperty(r)&&e.test(r)&&delete u[r];else delete this._events;return this},i.removeAllListeners=t("removeEvent"),i.emitEvent=function(e,r){var a,u,c,s,h=this.getListenersAsObject(e);for(s in h)if(h.hasOwnProperty(s))for(a=h[s].slice(0),c=0;c<a.length;c++)(u=a[c]).once===!0&&this.removeListener(e,u.listener),u.listener.apply(this,r||[])===this._getOnceReturnValue()&&this.removeListener(e,u.listener);return this},i.trigger=t("emitEvent"),i.emit=function(e){var r=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,r)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},i._getEvents=function(){return this._events||(this._events={})},l.noConflict=function(){return p.EventEmitter=o,l},(f=function(){return l}.call(p,g,p,M))===void 0||(M.exports=f)})(this||{})},function(M,x,g){(function(f){var p=typeof f=="object"&&f&&f.Object===Object&&f;M.exports=p}).call(this,g(252))},function(M,x){M.exports=function(g){return g!==null&&typeof g!="function"&&isFinite(g.length)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"Number")}},function(M,x){M.exports=function(g){return g==null}},function(M,x,g){"use strict";g.r(x);var f=g(1);function p(L,D,G,U,X){var q=L*L,ut=q*L;return((1-3*L+3*q-ut)*D+(4-6*q+3*ut)*G+(1+3*L+3*q-3*ut)*U+ut*X)/6}var l=function(D){var G=D.length-1;return function(U){var X=U<=0?U=0:U>=1?(U=1,G-1):Math.floor(U*G),q=D[X],ut=D[X+1],rt=X>0?D[X-1]:2*q-ut,at=X<G-1?D[X+2]:2*ut-q;return p((U-X/G)*G,rt,q,ut,at)}},i=function(D){var G=D.length;return function(U){var X=Math.floor(((U%=1)<0?++U:U)*G),q=D[(X+G-1)%G],ut=D[X%G],rt=D[(X+1)%G],at=D[(X+2)%G];return p((U-X/G)*G,q,ut,rt,at)}},o=function(D){return function(){return D}};function n(L,D){return function(G){return L+G*D}}function t(L,D){var G=D-L;return G?n(L,G>180||G<-180?G-360*Math.round(G/360):G):o(isNaN(L)?D:L)}function e(L){return(L=+L)==1?r:function(D,G){return G-D?function(U,X,q){return U=Math.pow(U,q),X=Math.pow(X,q)-U,q=1/q,function(ut){return Math.pow(U+ut*X,q)}}(D,G,L):o(isNaN(D)?G:D)}}function r(L,D){var G=D-L;return G?n(L,G):o(isNaN(L)?D:L)}var a=function L(D){var G=e(D);function U(X,q){var ut=G((X=Object(f.h)(X)).r,(q=Object(f.h)(q)).r),rt=G(X.g,q.g),at=G(X.b,q.b),pt=r(X.opacity,q.opacity);return function(gt){return X.r=ut(gt),X.g=rt(gt),X.b=at(gt),X.opacity=pt(gt),X+""}}return U.gamma=L,U}(1);function u(L){return function(D){var G,U,X=D.length,q=new Array(X),ut=new Array(X),rt=new Array(X);for(G=0;G<X;++G)U=Object(f.h)(D[G]),q[G]=U.r||0,ut[G]=U.g||0,rt[G]=U.b||0;return q=L(q),ut=L(ut),rt=L(rt),U.opacity=1,function(at){return U.r=q(at),U.g=ut(at),U.b=rt(at),U+""}}}var c=u(l),s=u(i),h=function(D,G){var U,X=G?G.length:0,q=D?Math.min(X,D.length):0,ut=new Array(q),rt=new Array(X);for(U=0;U<q;++U)ut[U]=E(D[U],G[U]);for(;U<X;++U)rt[U]=G[U];return function(at){for(U=0;U<q;++U)rt[U]=ut[U](at);return rt}},d=function(D,G){var U=new Date;return G-=D=+D,function(X){return U.setTime(D+G*X),U}},v=function(D,G){return G-=D=+D,function(U){return D+G*U}},y=function(D,G){var U,X={},q={};for(U in D!==null&&typeof D=="object"||(D={}),G!==null&&typeof G=="object"||(G={}),G)U in D?X[U]=E(D[U],G[U]):q[U]=G[U];return function(ut){for(U in X)q[U]=X[U](ut);return q}},m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,b=new RegExp(m.source,"g"),w,P,S,O,A=function(D,G){var U,X,q,ut=m.lastIndex=b.lastIndex=0,rt=-1,at=[],pt=[];for(D+="",G+="";(U=m.exec(D))&&(X=b.exec(G));)(q=X.index)>ut&&(q=G.slice(ut,q),at[rt]?at[rt]+=q:at[++rt]=q),(U=U[0])===(X=X[0])?at[rt]?at[rt]+=X:at[++rt]=X:(at[++rt]=null,pt.push({i:rt,x:v(U,X)})),ut=b.lastIndex;return ut<G.length&&(q=G.slice(ut),at[rt]?at[rt]+=q:at[++rt]=q),at.length<2?pt[0]?function(gt){return function(z){return gt(z)+""}}(pt[0].x):function(gt){return function(){return gt}}(G):(G=pt.length,function(gt){for(var z,Z=0;Z<G;++Z)at[(z=pt[Z]).i]=z.x(gt);return at.join("")})},E=function(D,G){var U,X=typeof G;return G==null||X==="boolean"?o(G):(X==="number"?v:X==="string"?(U=Object(f.a)(G))?(G=U,a):A:G instanceof f.a?a:G instanceof Date?d:Array.isArray(G)?h:typeof G.valueOf!="function"&&typeof G.toString!="function"||isNaN(G)?y:v)(D,G)},_=function(D,G){return G-=D=+D,function(U){return Math.round(D+G*U)}},C=180/Math.PI,k={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},T=function(D,G,U,X,q,ut){var rt,at,pt;return(rt=Math.sqrt(D*D+G*G))&&(D/=rt,G/=rt),(pt=D*U+G*X)&&(U-=D*pt,X-=G*pt),(at=Math.sqrt(U*U+X*X))&&(U/=at,X/=at,pt/=at),D*X<G*U&&(D=-D,G=-G,pt=-pt,rt=-rt),{translateX:q,translateY:ut,rotate:Math.atan2(G,D)*C,skewX:Math.atan(pt)*C,scaleX:rt,scaleY:at}};function I(L,D,G,U){function X(q){return q.length?q.pop()+" ":""}return function(q,ut){var rt=[],at=[];return q=L(q),ut=L(ut),function(pt,gt,z,Z,lt,it){if(pt!==z||gt!==Z){var dt=lt.push("translate(",null,D,null,G);it.push({i:dt-4,x:v(pt,z)},{i:dt-2,x:v(gt,Z)})}else(z||Z)&<.push("translate("+z+D+Z+G)}(q.translateX,q.translateY,ut.translateX,ut.translateY,rt,at),function(pt,gt,z,Z){pt!==gt?(pt-gt>180?gt+=360:gt-pt>180&&(pt+=360),Z.push({i:z.push(X(z)+"rotate(",null,U)-2,x:v(pt,gt)})):gt&&z.push(X(z)+"rotate("+gt+U)}(q.rotate,ut.rotate,rt,at),function(pt,gt,z,Z){pt!==gt?Z.push({i:z.push(X(z)+"skewX(",null,U)-2,x:v(pt,gt)}):gt&&z.push(X(z)+"skewX("+gt+U)}(q.skewX,ut.skewX,rt,at),function(pt,gt,z,Z,lt,it){if(pt!==z||gt!==Z){var dt=lt.push(X(lt)+"scale(",null,",",null,")");it.push({i:dt-4,x:v(pt,z)},{i:dt-2,x:v(gt,Z)})}else z===1&&Z===1||lt.push(X(lt)+"scale("+z+","+Z+")")}(q.scaleX,q.scaleY,ut.scaleX,ut.scaleY,rt,at),q=ut=null,function(pt){for(var gt,z=-1,Z=at.length;++z<Z;)rt[(gt=at[z]).i]=gt.x(pt);return rt.join("")}}}var R=I(function(L){return L==="none"?k:(w||(w=document.createElement("DIV"),P=document.documentElement,S=document.defaultView),w.style.transform=L,L=S.getComputedStyle(P.appendChild(w),null).getPropertyValue("transform"),P.removeChild(w),L=L.slice(7,-1).split(","),T(+L[0],+L[1],+L[2],+L[3],+L[4],+L[5]))},"px, ","px)","deg)"),F=I(function(L){return L==null?k:(O||(O=document.createElementNS("http://www.w3.org/2000/svg","g")),O.setAttribute("transform",L),(L=O.transform.baseVal.consolidate())?(L=L.matrix,T(L.a,L.b,L.c,L.d,L.e,L.f)):k)},", ",")",")"),j=Math.SQRT2;function B(L){return((L=Math.exp(L))+1/L)/2}var H=function(D,G){var U,X,q=D[0],ut=D[1],rt=D[2],at=G[0],pt=G[1],gt=G[2],z=at-q,Z=pt-ut,lt=z*z+Z*Z;if(lt<1e-12)X=Math.log(gt/rt)/j,U=function(xt){return[q+xt*z,ut+xt*Z,rt*Math.exp(j*xt*X)]};else{var it=Math.sqrt(lt),dt=(gt*gt-rt*rt+4*lt)/(2*rt*2*it),yt=(gt*gt-rt*rt-4*lt)/(2*gt*2*it),wt=Math.log(Math.sqrt(dt*dt+1)-dt),Mt=Math.log(Math.sqrt(yt*yt+1)-yt);X=(Mt-wt)/j,U=function(xt){var St=xt*X,Et=B(wt),Pt=rt/(2*it)*(Et*function(Ot){return((Ot=Math.exp(2*Ot))-1)/(Ot+1)}(j*St+wt)-function(Ot){return((Ot=Math.exp(Ot))-1/Ot)/2}(wt));return[q+Pt*z,ut+Pt*Z,rt*Et/B(j*St+wt)]}}return U.duration=1e3*X,U};function et(L){return function(D,G){var U=L((D=Object(f.e)(D)).h,(G=Object(f.e)(G)).h),X=r(D.s,G.s),q=r(D.l,G.l),ut=r(D.opacity,G.opacity);return function(rt){return D.h=U(rt),D.s=X(rt),D.l=q(rt),D.opacity=ut(rt),D+""}}}var Q=et(t),J=et(r);function K(L,D){var G=r((L=Object(f.f)(L)).l,(D=Object(f.f)(D)).l),U=r(L.a,D.a),X=r(L.b,D.b),q=r(L.opacity,D.opacity);return function(ut){return L.l=G(ut),L.a=U(ut),L.b=X(ut),L.opacity=q(ut),L+""}}function nt(L){return function(D,G){var U=L((D=Object(f.d)(D)).h,(G=Object(f.d)(G)).h),X=r(D.c,G.c),q=r(D.l,G.l),ut=r(D.opacity,G.opacity);return function(rt){return D.h=U(rt),D.c=X(rt),D.l=q(rt),D.opacity=ut(rt),D+""}}}var st=nt(t),V=nt(r);function tt(L){return function D(G){function U(X,q){var ut=L((X=Object(f.b)(X)).h,(q=Object(f.b)(q)).h),rt=r(X.s,q.s),at=r(X.l,q.l),pt=r(X.opacity,q.opacity);return function(gt){return X.h=ut(gt),X.s=rt(gt),X.l=at(Math.pow(gt,G)),X.opacity=pt(gt),X+""}}return G=+G,U.gamma=D,U}(1)}var $=tt(t),ot=tt(r),Y=function(D,G){for(var U=new Array(G),X=0;X<G;++X)U[X]=D(X/(G-1));return U};g.d(x,"interpolate",function(){return E}),g.d(x,"interpolateArray",function(){return h}),g.d(x,"interpolateBasis",function(){return l}),g.d(x,"interpolateBasisClosed",function(){return i}),g.d(x,"interpolateDate",function(){return d}),g.d(x,"interpolateNumber",function(){return v}),g.d(x,"interpolateObject",function(){return y}),g.d(x,"interpolateRound",function(){return _}),g.d(x,"interpolateString",function(){return A}),g.d(x,"interpolateTransformCss",function(){return R}),g.d(x,"interpolateTransformSvg",function(){return F}),g.d(x,"interpolateZoom",function(){return H}),g.d(x,"interpolateRgb",function(){return a}),g.d(x,"interpolateRgbBasis",function(){return c}),g.d(x,"interpolateRgbBasisClosed",function(){return s}),g.d(x,"interpolateHsl",function(){return Q}),g.d(x,"interpolateHslLong",function(){return J}),g.d(x,"interpolateLab",function(){return K}),g.d(x,"interpolateHcl",function(){return st}),g.d(x,"interpolateHclLong",function(){return V}),g.d(x,"interpolateCubehelix",function(){return $}),g.d(x,"interpolateCubehelixLong",function(){return ot}),g.d(x,"quantize",function(){return Y})},,,,,,,,,function(M,x,g){var f=g(609);M.exports={track:!1,defaultNodeSize:40,labelStyle:{fill:"#595959",textAlign:"center",textBaseline:"middle"},groupStyle:{stroke:"#CED4D9",fill:"#F2F4F5",radius:2},groupBackgroundPadding:[40,10,10,10],updateDuration:450,enterDuration:450,leaveDuration:450,updateEasing:"easeQuadOut",enterEasing:"easeQuadOut",leaveEasing:"easeQuadOut",version:f}},function(M,x,g){M.exports={Canvas:g(747),Group:g(642),Shape:g(58),Arc:g(638),Circle:g(637),Dom:g(636),Ellipse:g(635),Fan:g(634),Image:g(633),Line:g(632),Marker:g(611),Path:g(631),Polygon:g(630),Polyline:g(629),Rect:g(628),Text:g(627),PathSegment:g(600),PathUtil:g(610),Event:g(643),version:"3.3.5"}},function(M,x){var g=Object.prototype.toString;M.exports=function(f){return g.call(f)}},function(M,x,g){var f=g(38),p=Object.prototype,l=p.hasOwnProperty,i=p.toString,o=f?f.toStringTag:void 0;M.exports=function(n){var t=l.call(n,o),e=n[o];try{n[o]=void 0;var r=!0}catch(u){}var a=i.call(n);return r&&(t?n[o]=e:delete n[o]),a}},function(M,x,g){var f=g(16),p=g(39),l=NaN,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,t=/^0o[0-7]+$/i,e=parseInt;M.exports=function(r){if(typeof r=="number")return r;if(p(r))return l;if(f(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=f(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=r.replace(i,"");var u=n.test(r);return u||t.test(r)?e(r.slice(2),u?2:8):o.test(r)?l:+r}},function(M,x){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(f){typeof window=="object"&&(g=window)}M.exports=g},function(M,x,g){var f=g(20);M.exports=function(){return f.Date.now()}},function(M,x,g){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.forEach=x.sqrLen=x.len=x.sqrDist=x.dist=x.div=x.mul=x.sub=void 0,x.create=p,x.clone=function(s){var h=new f.ARRAY_TYPE(3);return h[0]=s[0],h[1]=s[1],h[2]=s[2],h},x.length=l,x.fromValues=i,x.copy=function(s,h){return s[0]=h[0],s[1]=h[1],s[2]=h[2],s},x.set=function(s,h,d,v){return s[0]=h,s[1]=d,s[2]=v,s},x.add=function(s,h,d){return s[0]=h[0]+d[0],s[1]=h[1]+d[1],s[2]=h[2]+d[2],s},x.subtract=o,x.multiply=n,x.divide=t,x.ceil=function(s,h){return s[0]=Math.ceil(h[0]),s[1]=Math.ceil(h[1]),s[2]=Math.ceil(h[2]),s},x.floor=function(s,h){return s[0]=Math.floor(h[0]),s[1]=Math.floor(h[1]),s[2]=Math.floor(h[2]),s},x.min=function(s,h,d){return s[0]=Math.min(h[0],d[0]),s[1]=Math.min(h[1],d[1]),s[2]=Math.min(h[2],d[2]),s},x.max=function(s,h,d){return s[0]=Math.max(h[0],d[0]),s[1]=Math.max(h[1],d[1]),s[2]=Math.max(h[2],d[2]),s},x.round=function(s,h){return s[0]=Math.round(h[0]),s[1]=Math.round(h[1]),s[2]=Math.round(h[2]),s},x.scale=function(s,h,d){return s[0]=h[0]*d,s[1]=h[1]*d,s[2]=h[2]*d,s},x.scaleAndAdd=function(s,h,d,v){return s[0]=h[0]+d[0]*v,s[1]=h[1]+d[1]*v,s[2]=h[2]+d[2]*v,s},x.distance=e,x.squaredDistance=r,x.squaredLength=a,x.negate=function(s,h){return s[0]=-h[0],s[1]=-h[1],s[2]=-h[2],s},x.inverse=function(s,h){return s[0]=1/h[0],s[1]=1/h[1],s[2]=1/h[2],s},x.normalize=u,x.dot=c,x.cross=function(s,h,d){var v=h[0],y=h[1],m=h[2],b=d[0],w=d[1],P=d[2];return s[0]=y*P-m*w,s[1]=m*b-v*P,s[2]=v*w-y*b,s},x.lerp=function(s,h,d,v){var y=h[0],m=h[1],b=h[2];return s[0]=y+v*(d[0]-y),s[1]=m+v*(d[1]-m),s[2]=b+v*(d[2]-b),s},x.hermite=function(s,h,d,v,y,m){var b=m*m,w=b*(2*m-3)+1,P=b*(m-2)+m,S=b*(m-1),O=b*(3-2*m);return s[0]=h[0]*w+d[0]*P+v[0]*S+y[0]*O,s[1]=h[1]*w+d[1]*P+v[1]*S+y[1]*O,s[2]=h[2]*w+d[2]*P+v[2]*S+y[2]*O,s},x.bezier=function(s,h,d,v,y,m){var b=1-m,w=b*b,P=m*m,S=w*b,O=3*m*w,A=3*P*b,E=P*m;return s[0]=h[0]*S+d[0]*O+v[0]*A+y[0]*E,s[1]=h[1]*S+d[1]*O+v[1]*A+y[1]*E,s[2]=h[2]*S+d[2]*O+v[2]*A+y[2]*E,s},x.random=function(s,h){h=h||1;var d=2*f.RANDOM()*Math.PI,v=2*f.RANDOM()-1,y=Math.sqrt(1-v*v)*h;return s[0]=Math.cos(d)*y,s[1]=Math.sin(d)*y,s[2]=v*h,s},x.transformMat4=function(s,h,d){var v=h[0],y=h[1],m=h[2],b=d[3]*v+d[7]*y+d[11]*m+d[15];return b=b||1,s[0]=(d[0]*v+d[4]*y+d[8]*m+d[12])/b,s[1]=(d[1]*v+d[5]*y+d[9]*m+d[13])/b,s[2]=(d[2]*v+d[6]*y+d[10]*m+d[14])/b,s},x.transformMat3=function(s,h,d){var v=h[0],y=h[1],m=h[2];return s[0]=v*d[0]+y*d[3]+m*d[6],s[1]=v*d[1]+y*d[4]+m*d[7],s[2]=v*d[2]+y*d[5]+m*d[8],s},x.transformQuat=function(s,h,d){var v=d[0],y=d[1],m=d[2],b=d[3],w=h[0],P=h[1],S=h[2],O=y*S-m*P,A=m*w-v*S,E=v*P-y*w,_=y*E-m*A,C=m*O-v*E,k=v*A-y*O,T=2*b;return O*=T,A*=T,E*=T,_*=2,C*=2,k*=2,s[0]=w+O+_,s[1]=P+A+C,s[2]=S+E+k,s},x.rotateX=function(s,h,d,v){var y=[],m=[];return y[0]=h[0]-d[0],y[1]=h[1]-d[1],y[2]=h[2]-d[2],m[0]=y[0],m[1]=y[1]*Math.cos(v)-y[2]*Math.sin(v),m[2]=y[1]*Math.sin(v)+y[2]*Math.cos(v),s[0]=m[0]+d[0],s[1]=m[1]+d[1],s[2]=m[2]+d[2],s},x.rotateY=function(s,h,d,v){var y=[],m=[];return y[0]=h[0]-d[0],y[1]=h[1]-d[1],y[2]=h[2]-d[2],m[0]=y[2]*Math.sin(v)+y[0]*Math.cos(v),m[1]=y[1],m[2]=y[2]*Math.cos(v)-y[0]*Math.sin(v),s[0]=m[0]+d[0],s[1]=m[1]+d[1],s[2]=m[2]+d[2],s},x.rotateZ=function(s,h,d,v){var y=[],m=[];return y[0]=h[0]-d[0],y[1]=h[1]-d[1],y[2]=h[2]-d[2],m[0]=y[0]*Math.cos(v)-y[1]*Math.sin(v),m[1]=y[0]*Math.sin(v)+y[1]*Math.cos(v),m[2]=y[2],s[0]=m[0]+d[0],s[1]=m[1]+d[1],s[2]=m[2]+d[2],s},x.angle=function(s,h){var d=i(s[0],s[1],s[2]),v=i(h[0],h[1],h[2]);u(d,d),u(v,v);var y=c(d,v);return y>1?0:y<-1?Math.PI:Math.acos(y)},x.str=function(s){return"vec3("+s[0]+", "+s[1]+", "+s[2]+")"},x.exactEquals=function(s,h){return s[0]===h[0]&&s[1]===h[1]&&s[2]===h[2]},x.equals=function(s,h){var d=s[0],v=s[1],y=s[2],m=h[0],b=h[1],w=h[2];return Math.abs(d-m)<=f.EPSILON*Math.max(1,Math.abs(d),Math.abs(m))&&Math.abs(v-b)<=f.EPSILON*Math.max(1,Math.abs(v),Math.abs(b))&&Math.abs(y-w)<=f.EPSILON*Math.max(1,Math.abs(y),Math.abs(w))};var f=function(s){if(s&&s.__esModule)return s;var h={};if(s!=null)for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(h[d]=s[d]);return h.default=s,h}(g(59));function p(){var s=new f.ARRAY_TYPE(3);return f.ARRAY_TYPE!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0),s}function l(s){var h=s[0],d=s[1],v=s[2];return Math.sqrt(h*h+d*d+v*v)}function i(s,h,d){var v=new f.ARRAY_TYPE(3);return v[0]=s,v[1]=h,v[2]=d,v}function o(s,h,d){return s[0]=h[0]-d[0],s[1]=h[1]-d[1],s[2]=h[2]-d[2],s}function n(s,h,d){return s[0]=h[0]*d[0],s[1]=h[1]*d[1],s[2]=h[2]*d[2],s}function t(s,h,d){return s[0]=h[0]/d[0],s[1]=h[1]/d[1],s[2]=h[2]/d[2],s}function e(s,h){var d=h[0]-s[0],v=h[1]-s[1],y=h[2]-s[2];return Math.sqrt(d*d+v*v+y*y)}function r(s,h){var d=h[0]-s[0],v=h[1]-s[1],y=h[2]-s[2];return d*d+v*v+y*y}function a(s){var h=s[0],d=s[1],v=s[2];return h*h+d*d+v*v}function u(s,h){var d=h[0],v=h[1],y=h[2],m=d*d+v*v+y*y;return m>0&&(m=1/Math.sqrt(m),s[0]=h[0]*m,s[1]=h[1]*m,s[2]=h[2]*m),s}function c(s,h){return s[0]*h[0]+s[1]*h[1]+s[2]*h[2]}x.sub=o,x.mul=n,x.div=t,x.dist=e,x.sqrDist=r,x.len=l,x.sqrLen=a,x.forEach=function(){var s=p();return function(h,d,v,y,m,b){var w=void 0,P=void 0;for(d||(d=3),v||(v=0),P=y?Math.min(y*d+v,h.length):h.length,w=v;w<P;w+=d)s[0]=h[w],s[1]=h[w+1],s[2]=h[w+2],m(s,s,b),h[w]=s[0],h[w+1]=s[1],h[w+2]=s[2];return h}}()},function(M,x,g){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.forEach=x.sqrLen=x.sqrDist=x.dist=x.div=x.mul=x.sub=x.len=void 0,x.create=p,x.clone=function(a){var u=new f.ARRAY_TYPE(2);return u[0]=a[0],u[1]=a[1],u},x.fromValues=function(a,u){var c=new f.ARRAY_TYPE(2);return c[0]=a,c[1]=u,c},x.copy=function(a,u){return a[0]=u[0],a[1]=u[1],a},x.set=function(a,u,c){return a[0]=u,a[1]=c,a},x.add=function(a,u,c){return a[0]=u[0]+c[0],a[1]=u[1]+c[1],a},x.subtract=l,x.multiply=i,x.divide=o,x.ceil=function(a,u){return a[0]=Math.ceil(u[0]),a[1]=Math.ceil(u[1]),a},x.floor=function(a,u){return a[0]=Math.floor(u[0]),a[1]=Math.floor(u[1]),a},x.min=function(a,u,c){return a[0]=Math.min(u[0],c[0]),a[1]=Math.min(u[1],c[1]),a},x.max=function(a,u,c){return a[0]=Math.max(u[0],c[0]),a[1]=Math.max(u[1],c[1]),a},x.round=function(a,u){return a[0]=Math.round(u[0]),a[1]=Math.round(u[1]),a},x.scale=function(a,u,c){return a[0]=u[0]*c,a[1]=u[1]*c,a},x.scaleAndAdd=function(a,u,c,s){return a[0]=u[0]+c[0]*s,a[1]=u[1]+c[1]*s,a},x.distance=n,x.squaredDistance=t,x.length=e,x.squaredLength=r,x.negate=function(a,u){return a[0]=-u[0],a[1]=-u[1],a},x.inverse=function(a,u){return a[0]=1/u[0],a[1]=1/u[1],a},x.normalize=function(a,u){var c=u[0],s=u[1],h=c*c+s*s;return h>0&&(h=1/Math.sqrt(h),a[0]=u[0]*h,a[1]=u[1]*h),a},x.dot=function(a,u){return a[0]*u[0]+a[1]*u[1]},x.cross=function(a,u,c){var s=u[0]*c[1]-u[1]*c[0];return a[0]=a[1]=0,a[2]=s,a},x.lerp=function(a,u,c,s){var h=u[0],d=u[1];return a[0]=h+s*(c[0]-h),a[1]=d+s*(c[1]-d),a},x.random=function(a,u){u=u||1;var c=2*f.RANDOM()*Math.PI;return a[0]=Math.cos(c)*u,a[1]=Math.sin(c)*u,a},x.transformMat2=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[2]*h,a[1]=c[1]*s+c[3]*h,a},x.transformMat2d=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[2]*h+c[4],a[1]=c[1]*s+c[3]*h+c[5],a},x.transformMat3=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[3]*h+c[6],a[1]=c[1]*s+c[4]*h+c[7],a},x.transformMat4=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[4]*h+c[12],a[1]=c[1]*s+c[5]*h+c[13],a},x.rotate=function(a,u,c,s){var h=u[0]-c[0],d=u[1]-c[1],v=Math.sin(s),y=Math.cos(s);return a[0]=h*y-d*v+c[0],a[1]=h*v+d*y+c[1],a},x.angle=function(a,u){var c=a[0],s=a[1],h=u[0],d=u[1],v=c*c+s*s;v>0&&(v=1/Math.sqrt(v));var y=h*h+d*d;y>0&&(y=1/Math.sqrt(y));var m=(c*h+s*d)*v*y;return m>1?0:m<-1?Math.PI:Math.acos(m)},x.str=function(a){return"vec2("+a[0]+", "+a[1]+")"},x.exactEquals=function(a,u){return a[0]===u[0]&&a[1]===u[1]},x.equals=function(a,u){var c=a[0],s=a[1],h=u[0],d=u[1];return Math.abs(c-h)<=f.EPSILON*Math.max(1,Math.abs(c),Math.abs(h))&&Math.abs(s-d)<=f.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))};var f=function(a){if(a&&a.__esModule)return a;var u={};if(a!=null)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[c]=a[c]);return u.default=a,u}(g(59));function p(){var a=new f.ARRAY_TYPE(2);return f.ARRAY_TYPE!=Float32Array&&(a[0]=0,a[1]=0),a}function l(a,u,c){return a[0]=u[0]-c[0],a[1]=u[1]-c[1],a}function i(a,u,c){return a[0]=u[0]*c[0],a[1]=u[1]*c[1],a}function o(a,u,c){return a[0]=u[0]/c[0],a[1]=u[1]/c[1],a}function n(a,u){var c=u[0]-a[0],s=u[1]-a[1];return Math.sqrt(c*c+s*s)}function t(a,u){var c=u[0]-a[0],s=u[1]-a[1];return c*c+s*s}function e(a){var u=a[0],c=a[1];return Math.sqrt(u*u+c*c)}function r(a){var u=a[0],c=a[1];return u*u+c*c}x.len=e,x.sub=l,x.mul=i,x.div=o,x.dist=n,x.sqrDist=t,x.sqrLen=r,x.forEach=function(){var a=p();return function(u,c,s,h,d,v){var y=void 0,m=void 0;for(c||(c=2),s||(s=0),m=h?Math.min(h*c+s,u.length):u.length,y=s;y<m;y+=c)a[0]=u[y],a[1]=u[y+1],d(a,a,v),u[y]=a[0],u[y+1]=a[1];return u}}()},function(M,x,g){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.sub=x.mul=void 0,x.create=function(){var i=new f.ARRAY_TYPE(9);return f.ARRAY_TYPE!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[5]=0,i[6]=0,i[7]=0),i[0]=1,i[4]=1,i[8]=1,i},x.fromMat4=function(i,o){return i[0]=o[0],i[1]=o[1],i[2]=o[2],i[3]=o[4],i[4]=o[5],i[5]=o[6],i[6]=o[8],i[7]=o[9],i[8]=o[10],i},x.clone=function(i){var o=new f.ARRAY_TYPE(9);return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4],o[5]=i[5],o[6]=i[6],o[7]=i[7],o[8]=i[8],o},x.copy=function(i,o){return i[0]=o[0],i[1]=o[1],i[2]=o[2],i[3]=o[3],i[4]=o[4],i[5]=o[5],i[6]=o[6],i[7]=o[7],i[8]=o[8],i},x.fromValues=function(i,o,n,t,e,r,a,u,c){var s=new f.ARRAY_TYPE(9);return s[0]=i,s[1]=o,s[2]=n,s[3]=t,s[4]=e,s[5]=r,s[6]=a,s[7]=u,s[8]=c,s},x.set=function(i,o,n,t,e,r,a,u,c,s){return i[0]=o,i[1]=n,i[2]=t,i[3]=e,i[4]=r,i[5]=a,i[6]=u,i[7]=c,i[8]=s,i},x.identity=function(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=1,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i},x.transpose=function(i,o){if(i===o){var n=o[1],t=o[2],e=o[5];i[1]=o[3],i[2]=o[6],i[3]=n,i[5]=o[7],i[6]=t,i[7]=e}else i[0]=o[0],i[1]=o[3],i[2]=o[6],i[3]=o[1],i[4]=o[4],i[5]=o[7],i[6]=o[2],i[7]=o[5],i[8]=o[8];return i},x.invert=function(i,o){var n=o[0],t=o[1],e=o[2],r=o[3],a=o[4],u=o[5],c=o[6],s=o[7],h=o[8],d=h*a-u*s,v=-h*r+u*c,y=s*r-a*c,m=n*d+t*v+e*y;return m?(m=1/m,i[0]=d*m,i[1]=(-h*t+e*s)*m,i[2]=(u*t-e*a)*m,i[3]=v*m,i[4]=(h*n-e*c)*m,i[5]=(-u*n+e*r)*m,i[6]=y*m,i[7]=(-s*n+t*c)*m,i[8]=(a*n-t*r)*m,i):null},x.adjoint=function(i,o){var n=o[0],t=o[1],e=o[2],r=o[3],a=o[4],u=o[5],c=o[6],s=o[7],h=o[8];return i[0]=a*h-u*s,i[1]=e*s-t*h,i[2]=t*u-e*a,i[3]=u*c-r*h,i[4]=n*h-e*c,i[5]=e*r-n*u,i[6]=r*s-a*c,i[7]=t*c-n*s,i[8]=n*a-t*r,i},x.determinant=function(i){var o=i[0],n=i[1],t=i[2],e=i[3],r=i[4],a=i[5],u=i[6],c=i[7],s=i[8];return o*(s*r-a*c)+n*(-s*e+a*u)+t*(c*e-r*u)},x.multiply=p,x.translate=function(i,o,n){var t=o[0],e=o[1],r=o[2],a=o[3],u=o[4],c=o[5],s=o[6],h=o[7],d=o[8],v=n[0],y=n[1];return i[0]=t,i[1]=e,i[2]=r,i[3]=a,i[4]=u,i[5]=c,i[6]=v*t+y*a+s,i[7]=v*e+y*u+h,i[8]=v*r+y*c+d,i},x.rotate=function(i,o,n){var t=o[0],e=o[1],r=o[2],a=o[3],u=o[4],c=o[5],s=o[6],h=o[7],d=o[8],v=Math.sin(n),y=Math.cos(n);return i[0]=y*t+v*a,i[1]=y*e+v*u,i[2]=y*r+v*c,i[3]=y*a-v*t,i[4]=y*u-v*e,i[5]=y*c-v*r,i[6]=s,i[7]=h,i[8]=d,i},x.scale=function(i,o,n){var t=n[0],e=n[1];return i[0]=t*o[0],i[1]=t*o[1],i[2]=t*o[2],i[3]=e*o[3],i[4]=e*o[4],i[5]=e*o[5],i[6]=o[6],i[7]=o[7],i[8]=o[8],i},x.fromTranslation=function(i,o){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=1,i[5]=0,i[6]=o[0],i[7]=o[1],i[8]=1,i},x.fromRotation=function(i,o){var n=Math.sin(o),t=Math.cos(o);return i[0]=t,i[1]=n,i[2]=0,i[3]=-n,i[4]=t,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i},x.fromScaling=function(i,o){return i[0]=o[0],i[1]=0,i[2]=0,i[3]=0,i[4]=o[1],i[5]=0,i[6]=0,i[7]=0,i[8]=1,i},x.fromMat2d=function(i,o){return i[0]=o[0],i[1]=o[1],i[2]=0,i[3]=o[2],i[4]=o[3],i[5]=0,i[6]=o[4],i[7]=o[5],i[8]=1,i},x.fromQuat=function(i,o){var n=o[0],t=o[1],e=o[2],r=o[3],a=n+n,u=t+t,c=e+e,s=n*a,h=t*a,d=t*u,v=e*a,y=e*u,m=e*c,b=r*a,w=r*u,P=r*c;return i[0]=1-d-m,i[3]=h-P,i[6]=v+w,i[1]=h+P,i[4]=1-s-m,i[7]=y-b,i[2]=v-w,i[5]=y+b,i[8]=1-s-d,i},x.normalFromMat4=function(i,o){var n=o[0],t=o[1],e=o[2],r=o[3],a=o[4],u=o[5],c=o[6],s=o[7],h=o[8],d=o[9],v=o[10],y=o[11],m=o[12],b=o[13],w=o[14],P=o[15],S=n*u-t*a,O=n*c-e*a,A=n*s-r*a,E=t*c-e*u,_=t*s-r*u,C=e*s-r*c,k=h*b-d*m,T=h*w-v*m,I=h*P-y*m,R=d*w-v*b,F=d*P-y*b,j=v*P-y*w,B=S*j-O*F+A*R+E*I-_*T+C*k;return B?(B=1/B,i[0]=(u*j-c*F+s*R)*B,i[1]=(c*I-a*j-s*T)*B,i[2]=(a*F-u*I+s*k)*B,i[3]=(e*F-t*j-r*R)*B,i[4]=(n*j-e*I+r*T)*B,i[5]=(t*I-n*F-r*k)*B,i[6]=(b*C-w*_+P*E)*B,i[7]=(w*A-m*C-P*O)*B,i[8]=(m*_-b*A+P*S)*B,i):null},x.projection=function(i,o,n){return i[0]=2/o,i[1]=0,i[2]=0,i[3]=0,i[4]=-2/n,i[5]=0,i[6]=-1,i[7]=1,i[8]=1,i},x.str=function(i){return"mat3("+i[0]+", "+i[1]+", "+i[2]+", "+i[3]+", "+i[4]+", "+i[5]+", "+i[6]+", "+i[7]+", "+i[8]+")"},x.frob=function(i){return Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)+Math.pow(i[3],2)+Math.pow(i[4],2)+Math.pow(i[5],2)+Math.pow(i[6],2)+Math.pow(i[7],2)+Math.pow(i[8],2))},x.add=function(i,o,n){return i[0]=o[0]+n[0],i[1]=o[1]+n[1],i[2]=o[2]+n[2],i[3]=o[3]+n[3],i[4]=o[4]+n[4],i[5]=o[5]+n[5],i[6]=o[6]+n[6],i[7]=o[7]+n[7],i[8]=o[8]+n[8],i},x.subtract=l,x.multiplyScalar=function(i,o,n){return i[0]=o[0]*n,i[1]=o[1]*n,i[2]=o[2]*n,i[3]=o[3]*n,i[4]=o[4]*n,i[5]=o[5]*n,i[6]=o[6]*n,i[7]=o[7]*n,i[8]=o[8]*n,i},x.multiplyScalarAndAdd=function(i,o,n,t){return i[0]=o[0]+n[0]*t,i[1]=o[1]+n[1]*t,i[2]=o[2]+n[2]*t,i[3]=o[3]+n[3]*t,i[4]=o[4]+n[4]*t,i[5]=o[5]+n[5]*t,i[6]=o[6]+n[6]*t,i[7]=o[7]+n[7]*t,i[8]=o[8]+n[8]*t,i},x.exactEquals=function(i,o){return i[0]===o[0]&&i[1]===o[1]&&i[2]===o[2]&&i[3]===o[3]&&i[4]===o[4]&&i[5]===o[5]&&i[6]===o[6]&&i[7]===o[7]&&i[8]===o[8]},x.equals=function(i,o){var n=i[0],t=i[1],e=i[2],r=i[3],a=i[4],u=i[5],c=i[6],s=i[7],h=i[8],d=o[0],v=o[1],y=o[2],m=o[3],b=o[4],w=o[5],P=o[6],S=o[7],O=o[8];return Math.abs(n-d)<=f.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(t-v)<=f.EPSILON*Math.max(1,Math.abs(t),Math.abs(v))&&Math.abs(e-y)<=f.EPSILON*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(r-m)<=f.EPSILON*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(a-b)<=f.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(u-w)<=f.EPSILON*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(c-P)<=f.EPSILON*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(s-S)<=f.EPSILON*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(h-O)<=f.EPSILON*Math.max(1,Math.abs(h),Math.abs(O))};var f=function(i){if(i&&i.__esModule)return i;var o={};if(i!=null)for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o[n]=i[n]);return o.default=i,o}(g(59));function p(i,o,n){var t=o[0],e=o[1],r=o[2],a=o[3],u=o[4],c=o[5],s=o[6],h=o[7],d=o[8],v=n[0],y=n[1],m=n[2],b=n[3],w=n[4],P=n[5],S=n[6],O=n[7],A=n[8];return i[0]=v*t+y*a+m*s,i[1]=v*e+y*u+m*h,i[2]=v*r+y*c+m*d,i[3]=b*t+w*a+P*s,i[4]=b*e+w*u+P*h,i[5]=b*r+w*c+P*d,i[6]=S*t+O*a+A*s,i[7]=S*e+O*u+A*h,i[8]=S*r+O*c+A*d,i}function l(i,o,n){return i[0]=o[0]-n[0],i[1]=o[1]-n[1],i[2]=o[2]-n[2],i[3]=o[3]-n[3],i[4]=o[4]-n[4],i[5]=o[5]-n[5],i[6]=o[6]-n[6],i[7]=o[7]-n[7],i[8]=o[8]-n[8],i}x.mul=p,x.sub=l},function(M,x,g){function f(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var p=5,l=g(819);Math.sign=function(n){return(n=+n)==0||isNaN(n)?n:n>0?1:-1};var i=function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.forEach(function(a){f(n,a,e[a])})}return n}({},l,{throttle:g(749),debounce:g(645),omit:function(t,e){var r={};return l.each(t,function(a,u){e.indexOf(u)===-1&&(r[u]=a)}),r},traverseTree:function(t,e,r,a){a===void 0&&(a=!1);var u=r(t);a&&e(t,null,null),u&&i.each(u,function(c,s){e(c,t,s),i.traverseTree(c,e,r)})},toAllPadding:function(t){var e=0,r=0,a=0,u=0;return i.isNumber(t)||i.isString(t)?e=r=a=u=t:i.isArray(t)&&(e=t[0],a=i.isNil(t[1])?t[0]:t[1],u=i.isNil(t[2])?t[0]:t[2],r=i.isNil(t[3])?a:t[3]),[e,a,u,r]},guid:function(){return"xxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return(t==="x"?e:3&e|8).toString(16)})},mix:function(){var t,e,r=i.toArray(arguments),a=r[0];if(a===!0)for(a=r[1],e=2;e<r.length;e++)o(a,t=r[e]);else for(e=1;e<r.length;e++)for(var u in t=r[e])t.hasOwnProperty(u)&&u!=="constructor"&&(a[u]=t[u]);return a},mixin:function(t,e){t&&e&&(t._mixins=e,t.ATTRS=t.ATTRS||{},i.each(e,function(r){i.augment(t,r)}),t.ATTRS=i.mix({},t.ATTRS))}});function o(n,t,e){for(var r in e=e||0,t)if(t.hasOwnProperty(r)){var a=t[r];a!==null&&i.isPlainObject(a)?(i.isPlainObject(n[r])||(n[r]={}),e<p?o(n[r],t[r],e+1):n[r]=t[r]):i.isArray(a)?(n[r]=[],n[r]=n[r].concat(a)):a!==void 0&&(n[r]=t[r])}}i.Array={remove:function(t,e){var r=i.indexOf(t,e);r!==-1&&t.splice(r,1)}},M.exports=i},function(M,x,g){var f=g(26),p={},l={draw:function(){}},i={defaultShapeType:null,getShape:function(n,t){return this[n]||this[t]||this[this.defaultShapeType]||l},getExtendShape:function(n,t){var e=this;if(f.isArray(n)){var r={};return n.forEach(function(a){e[a]&&(r=f.mix({},r,e.getShape(a,t)))}),r}return this.getShape(n,t)}};p.registerShapeManager=function(o,n){var t=f.mix({},i,n),e=f.upperFirst(o);return p[e]=t,p["register"+e]=function(r,a,u,c){f.isNil(u)&&f.isNil(c)&&(u=r);var s=t.getExtendShape(u,c),h=f.mix(!0,{},s,a);return h.type=r,t[r]=h,h},t},M.exports=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(M,x,g){var f=g(19),p=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,l=/[^\s\,]+/gi;M.exports={parseRadius:function(o){var n=0,t=0,e=0,r=0;return f.isArray(o)?o.length===1?n=t=e=r=o[0]:o.length===2?(n=e=o[0],t=r=o[1]):o.length===3?(n=o[0],t=r=o[1],e=o[2]):(n=o[0],t=o[1],e=o[2],r=o[3]):n=t=e=r=o,{r1:n,r2:t,r3:e,r4:r}},parsePath:function(o){return o=o||[],f.isArray(o)?o:f.isString(o)?(o=o.match(p),f.each(o,function(n,t){if((n=n.match(l))[0].length>1){var e=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=e}f.each(n,function(r,a){isNaN(r)||(n[a]=+r)}),o[t]=n}),o):void 0}}},function(M,x,g){var f=g(237);M.exports=function(p){return f(p)?"":p.toString()}},function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"String")}},function(M,x,g){var f=g(619),p=g(115);M.exports=function(l){if(!f(l)||!p(l,"Object"))return!1;if(Object.getPrototypeOf(l)===null)return!0;for(var i=l;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(l)===i}},function(M,x,g){var f=function(p){function l(i){var o;return(o=p.call(this)||this).options=i,o}return function(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o}(l,p),l.prototype.execute=function(){var i=this,o=this.options;this.roots.forEach(function(n){i.layout(n,o).eachNode(function(t){t.data.x=t.x+t.data.width/2+t.hgap,t.data.y=t.y+t.data.height/2+t.vgap})})},l}(g(622));M.exports=f},function(M,x,g){(function(f,p){M.exports=p()})(typeof self!="undefined"&&self,function(){return function(f){var p={};function l(i){if(p[i])return p[i].exports;var o=p[i]={i,l:!1,exports:{}};return f[i].call(o.exports,o,o.exports,l),o.l=!0,o.exports}return l.m=f,l.c=p,l.d=function(i,o,n){l.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:n})},l.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return l.d(o,"a",o),o},l.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},l.p="",l(l.s=5)}([function(f,p,l){var i=l(7);f.exports={assign:i}},function(f,p,l){var i=l(3),o=function(){function n(t,e){e===void 0&&(e={}),this.options=e,this.rootNode=i(t,e)}return n.prototype.execute=function(){throw new Error("please override this method")},n}();f.exports=o},function(f,p,l){var i=l(4),o=["LR","RL","TB","BT","H","V"],n=["LR","RL","H"],t=o[0];f.exports=function(e,r,a){var u=r.direction||t;if(r.isHorizontal=function(v){return n.indexOf(v)>-1}(u),u&&o.indexOf(u)===-1)throw new TypeError("Invalid direction: "+u);if(u===o[0])a(e,r);else if(u===o[1])a(e,r),e.right2left();else if(u===o[2])a(e,r);else if(u===o[3])a(e,r),e.bottom2top();else if(u===o[4]||u===o[5]){var c=i(e,r),s=c.left,h=c.right;a(s,r),a(h,r),r.isHorizontal?s.right2left():s.bottom2top(),h.translate(s.x-h.x,s.y-h.y),e.x=s.x,e.y=h.y;var d=e.getBoundingBox();r.isHorizontal?d.top<0&&e.translate(0,-d.top):d.left<0&&e.translate(-d.left,0)}return e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),e}},function(f,p,l){var i=l(0),o={getId:function(e){return e.id||e.name},getHGap:function(e){return e.hgap||18},getVGap:function(e){return e.vgap||18},getChildren:function(e){return e.children},getHeight:function(e){return e.height||36},getWidth:function(e){var r=e.name||" ";return e.width||18*r.split("").length}};function n(t,e){var r=this;if(r.vgap=r.hgap=0,t instanceof n)return t;r.data=t;var a=e.getHGap(t),u=e.getVGap(t);return r.width=e.getWidth(t),r.height=e.getHeight(t),r.id=e.getId(t),r.x=r.y=0,r.depth=0,r.children||(r.children=[]),r.addGap(a,u),r}i.assign(n.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,r){this.hgap+=e,this.vgap+=r,this.width+=2*e,this.height+=2*r},eachNode:function(e){for(var r,a=[this];r=a.pop();)e(r),a=a.concat(r.children)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var r,a=[this];r=a.shift();)e(r),a=a.concat(r.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(r){e.left=Math.min(e.left,r.x),e.top=Math.min(e.top,r.y),e.width=Math.max(e.width,r.x+r.width),e.height=Math.max(e.height,r.y+r.height)}),e},translate:function(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.eachNode(function(a){a.x+=e,a.y+=r})},right2left:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.x=r.x-2*(r.x-e.left)-r.width}),this.translate(e.width,0)},bottom2top:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.y=r.y-2*(r.y-e.top)-r.height}),this.translate(0,e.height)}}),f.exports=function(t,e,r){e===void 0&&(e={});var a,u=new n(t,e=i.assign({},o,e)),c=[u];if(!r&&!t.collapsed){for(;a=c.pop();)if(!a.data.collapsed){var s=e.getChildren(a.data),h=s?s.length:0;if(a.children=new Array(h),s&&h)for(var d=0;d<h;d++){var v=new n(s[d],e);a.children[d]=v,c.push(v),v.parent=a,v.depth=a.depth+1}}}return u}},function(f,p,l){var i=l(3);f.exports=function(o,n){for(var t=i(o.data,n,!0),e=i(o.data,n,!0),r=o.children.length,a=Math.round(r/2),u=n.getSide||function(h,d){return d<a?"right":"left"},c=0;c<r;c++){var s=o.children[c];u(s,c)==="right"?e.children.push(s):t.children.push(s)}return t.eachNode(function(h){h.isRoot()||(h.side="left")}),e.eachNode(function(h){h.isRoot()||(h.side="right")}),{left:t,right:e}}},function(f,p,l){var i={compactBox:l(6),dendrogram:l(9),indented:l(11),mindmap:l(13)};f.exports=i},function(f,p,l){var i=l(1),o=l(8),n=l(2),t=l(0),e=function(a){function u(){return a.apply(this,arguments)||this}return function(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.__proto__=s}(u,a),u.prototype.execute=function(){return n(this.rootNode,this.options,o)},u}(i),r={};f.exports=function(a,u){return u=t.assign({},r,u),new e(a,u).execute()}},function(f,p){function l(i,o){for(var n in o)o.hasOwnProperty(n)&&n!=="constructor"&&o[n]!==void 0&&(i[n]=o[n])}f.exports=function(i,o,n,t){return o&&l(i,o),n&&l(i,n),t&&l(i,t),i}},function(f,p){function l(o,n,t,e){e===void 0&&(e=[]);var r=this;r.w=o||0,r.h=n||0,r.y=t||0,r.x=0,r.c=e||[],r.cs=e.length,r.prelim=0,r.mod=0,r.shift=0,r.change=0,r.tl=null,r.tr=null,r.el=null,r.er=null,r.msel=0,r.mser=0}function i(o,n){(function t(e,r,a){a?e.y+=r:e.x+=r,e.children.forEach(function(u){t(u,r,a)})})(o,-function t(e,r){var a=r?e.y:e.x;return e.children.forEach(function(u){a=Math.min(t(u,r),a)}),a}(o,n),n)}l.fromNode=function(o,n){if(!o)return null;var t=[];return o.children.forEach(function(e){t.push(l.fromNode(e,n))}),n?new l(o.height,o.width,o.x,t):new l(o.width,o.height,o.y,t)},f.exports=function(o,n){n===void 0&&(n={});var t=n.isHorizontal;function e(v){v.cs===0?(v.el=v,v.er=v,v.msel=v.mser=0):(v.el=v.c[0].el,v.msel=v.c[0].msel,v.er=v.c[v.cs-1].er,v.mser=v.c[v.cs-1].mser)}function r(v,y,m){for(var b=v.c[y-1],w=b.mod,P=v.c[y],S=P.mod;b!==null&&P!==null;){s(b)>m.low&&(m=m.nxt);var O=w+b.prelim+b.w-(S+P.prelim);O>0&&(S+=O,a(v,y,m.index,O));var A=s(b),E=s(P);A<=E&&(b=c(b))!==null&&(w+=b.mod),A>=E&&(P=u(P))!==null&&(S+=P.mod)}!b&&P?function(_,C,k,T){var I=_.c[0].el;I.tl=k;var R=T-k.mod-_.c[0].msel;I.mod+=R,I.prelim-=R,_.c[0].el=_.c[C].el,_.c[0].msel=_.c[C].msel}(v,y,P,S):b&&!P&&function(_,C,k,T){var I=_.c[C].er;I.tr=k;var R=T-k.mod-_.c[C].mser;I.mod+=R,I.prelim-=R,_.c[C].er=_.c[C-1].er,_.c[C].mser=_.c[C-1].mser}(v,y,b,w)}function a(v,y,m,b){v.c[y].mod+=b,v.c[y].msel+=b,v.c[y].mser+=b,function(w,P,S,O){if(S!==P-1){var A=P-S;w.c[S+1].shift+=O/A,w.c[P].shift-=O/A,w.c[P].change-=O-O/A}}(v,y,m,b)}function u(v){return v.cs===0?v.tl:v.c[0]}function c(v){return v.cs===0?v.tr:v.c[v.cs-1]}function s(v){return v.y+v.h}function h(v,y,m){for(;m!==null&&v>=m.low;)m=m.nxt;return{low:v,index:y,nxt:m}}(function v(y,m,b){b===void 0&&(b=0),m?(y.x=b,b+=y.width):(y.y=b,b+=y.height),y.children.forEach(function(w){v(w,m,b)})})(o,t);var d=l.fromNode(o,t);return function v(y){if(y.cs!==0){v(y.c[0]);for(var m=h(s(y.c[0].el),0,null),b=1;b<y.cs;++b){v(y.c[b]);var w=s(y.c[b].er);r(y,b,m),m=h(w,b,m)}(function(P){P.prelim=(P.c[0].prelim+P.c[0].mod+P.c[P.cs-1].mod+P.c[P.cs-1].prelim+P.c[P.cs-1].w)/2-P.w/2})(y),e(y)}else e(y)}(d),function v(y,m){m+=y.mod,y.x=y.prelim+m,function(w){for(var P=0,S=0,O=0;O<w.cs;O++)P+=w.c[O].shift,S+=P+w.c[O].change,w.c[O].mod+=S}(y);for(var b=0;b<y.cs;b++)v(y.c[b],m)}(d,0),function v(y,m,b){b?m.y=y.x:m.x=y.x,y.c.forEach(function(w,P){v(w,m.children[P],b)})}(d,o,t),i(o,t),o}},function(f,p,l){var i=l(1),o=l(10),n=l(2),t=l(0),e=function(a){function u(){return a.apply(this,arguments)||this}return function(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.__proto__=s}(u,a),u.prototype.execute=function(){return this.rootNode.width=0,n(this.rootNode,this.options,o)},u}(i),r={};f.exports=function(a,u){return u=t.assign({},r,u),new e(a,u).execute()}},function(f,p,l){var i=l(0),o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};f.exports=function(n,t){t===void 0&&(t={}),t=i.assign({},o,t);var e,r=0,a=function u(c){if(!c)return null;c.width=0,c.depth&&c.depth>r&&(r=c.depth);var s=c.children,h=s.length,d=new function(v,y){v===void 0&&(v=0),y===void 0&&(y=[]);var m=this;m.x=m.y=0,m.leftChild=m.rightChild=null,m.height=0,m.children=y}(c.height,[]);return s.forEach(function(v,y){var m=u(v);d.children.push(m),y===0&&(d.leftChild=m),y===h-1&&(d.rightChild=m)}),d.originNode=c,d.isLeaf=c.isLeaf(),d}(n);return function u(c){if(c.isLeaf||c.children.length===0)c.drawingDepth=r;else{var s=c.children.map(function(d){return u(d)}),h=Math.min.apply(null,s);c.drawingDepth=h-1}return c.drawingDepth}(a),function u(c){c.x=c.drawingDepth*t.rankSep,c.isLeaf?(c.y=0,e&&(c.y=e.y+e.height+t.nodeSep,c.originNode.parent!==e.originNode.parent&&(c.y+=t.subTreeSep)),e=c):(c.children.forEach(function(s){u(s)}),c.y=(c.leftChild.y+c.rightChild.y)/2)}(a),function u(c,s,h){h?(s.x=c.x,s.y=c.y):(s.x=c.y,s.y=c.x),c.children.forEach(function(d,v){u(d,s.children[v],h)})}(a,n,t.isHorizontal),n}},function(f,p,l){var i=l(1),o=l(12),n=l(4),t=l(0),e=["LR","RL","H"],r=e[0],a=function(c){function s(){return c.apply(this,arguments)||this}return function(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,h.__proto__=d}(s,c),s.prototype.execute=function(){var h=this.options,d=this.rootNode;h.isHorizontal=!0;var v=h.indent,y=h.direction||r;if(y&&e.indexOf(y)===-1)throw new TypeError("Invalid direction: "+y);if(y===e[0])o(d,v);else if(y===e[1])o(d,v),d.right2left();else if(y===e[2]){var m=n(d,h),b=m.left,w=m.right;o(b,v),b.right2left(),o(w,v);var P=b.getBoundingBox();w.translate(P.width,0),d.x=w.x-d.width/2}return d},s}(i),u={};f.exports=function(c,s){return s=t.assign({},u,s),new a(c,s).execute()}},function(f,p){f.exports=function(l,i){i===void 0&&(i=20);var o=null;l.eachNode(function(n){(function(t,e,r){t.x+=r*t.depth,t.y=e?e.y+e.height:0})(n,o,i),o=n})}},function(f,p,l){var i=l(1),o=l(14),n=l(2),t=l(0),e=function(a){function u(){return a.apply(this,arguments)||this}return function(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.__proto__=s}(u,a),u.prototype.execute=function(){return n(this.rootNode,this.options,o)},u}(i),r={};f.exports=function(a,u){return u=t.assign({},r,u),new e(a,u).execute()}},function(f,p,l){var i=l(0),o={getSubTreeSep:function(){return 0}};f.exports=function(n,t){t===void 0&&(t={}),t=i.assign({},o,t),n.parent={x:0,width:0,height:0,y:0},n.BFTraverse(function(e){e.x=e.parent.x+e.parent.width}),n.parent=null,function e(r,a){var u=0;return r.children.length?r.children.forEach(function(c){u+=e(c,a)}):u=r.height,r._subTreeSep=a.getSubTreeSep(r.data),r.totalHeight=Math.max(r.height,u)+2*r._subTreeSep,r.totalHeight}(n,t),n.startY=0,n.y=n.totalHeight/2-n.height/2,n.eachNode(function(e){var r=e.children,a=r.length;if(a){var u=r[0];if(u.startY=e.startY+e._subTreeSep,a===1)u.y=e.y+e.height/2-u.height/2;else{u.y=u.startY+u.totalHeight/2-u.height/2;for(var c=1;c<a;c++){var s=r[c];s.startY=r[c-1].startY+r[c-1].totalHeight,s.y=s.startY+s.totalHeight/2-s.height/2}}}}),function e(r){var a=r.children,u=a.length;if(u){a.forEach(function(y){e(y)});var c=a[0],s=a[u-1],h=s.y-c.y+s.height,d=0;if(a.forEach(function(y){d+=y.totalHeight}),h>r.height)r.y=c.y+h/2-r.height/2;else if(a.length!==1||r.height>d){var v=r.y+(r.height-h)/2-c.y;a.forEach(function(y){y.translate(0,v)})}else r.y=(c.y+c.height/2+s.y+s.height/2)/2-r.height/2}}(n)}}])})},function(M,x,g){var f=g(26),p=function(){var l=i.prototype;function i(o){var n=this.getDefaultCfg();f.mix(this,n,o),this._init()}return l.getDefaultCfg=function(){return{}},l._init=function(){},l.destroy=function(){},i}();M.exports=p},function(M,x,g){var f=g(19),p=g(613),l=g(612),i=g(640),o=g(639),n=f.vec3,t=f.mat3,e=["m","l","c","a","q","h","v","t","s","z"];function r(d,v,y){return{x:y.x+d,y:y.y+v}}function a(d,v){return{x:v.x+(v.x-d.x),y:v.y+(v.y-d.y)}}function u(d){return Math.sqrt(d[0]*d[0]+d[1]*d[1])}function c(d,v){return(d[0]*v[0]+d[1]*v[1])/(u(d)*u(v))}function s(d,v){return(d[0]*v[1]<d[1]*v[0]?-1:1)*Math.acos(c(d,v))}var h=function(v,y,m){this.preSegment=y,this.isLast=m,this.init(v,y)};f.augment(h,{init:function(v,y){var m=v[0];y=y||{endPoint:{x:0,y:0}};var b,w,P,S,O=e.indexOf(m)>=0,A=O?m.toUpperCase():m,E=v,_=y.endPoint,C=E[1],k=E[2];switch(A){default:break;case"M":S=O?r(C,k,_):{x:C,y:k},this.command="M",this.params=[_,S],this.subStart=S,this.endPoint=S;break;case"L":S=O?r(C,k,_):{x:C,y:k},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"H":S=O?r(C,0,_):{x:C,y:_.y},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"V":S=O?r(0,C,_):{x:_.x,y:C},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"Q":O?(b=r(C,k,_),w=r(E[3],E[4],_)):(b={x:C,y:k},w={x:E[3],y:E[4]}),this.command="Q",this.params=[_,b,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-b.x,w.y-b.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]};break;case"T":w=O?r(C,k,_):{x:C,y:k},y.command==="Q"?(b=a(y.params[1],_),this.command="Q",this.params=[_,b,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-b.x,w.y-b.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]}):(this.command="TL",this.params=[_,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-_.x,w.y-_.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"C":O?(b=r(C,k,_),w=r(E[3],E[4],_),P=r(E[5],E[6],_)):(b={x:C,y:k},w={x:E[3],y:E[4]},P={x:E[5],y:E[6]}),this.command="C",this.params=[_,b,w,P],this.subStart=y.subStart,this.endPoint=P,this.endTangent=function(){return[P.x-w.x,P.y-w.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]};break;case"S":O?(w=r(C,k,_),P=r(E[3],E[4],_)):(w={x:C,y:k},P={x:E[3],y:E[4]}),y.command==="C"?(b=a(y.params[2],_),this.command="C",this.params=[_,b,w,P],this.subStart=y.subStart,this.endPoint=P,this.endTangent=function(){return[P.x-w.x,P.y-w.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]}):(this.command="SQ",this.params=[_,w,P],this.subStart=y.subStart,this.endPoint=P,this.endTangent=function(){return[P.x-w.x,P.y-w.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"A":var T=C,I=k,R=E[3],F=E[4],j=E[5];S=O?r(E[6],E[7],_):{x:E[6],y:E[7]},this.command="A";var B=function(K,nt,st,V,tt,$,ot){var Y=f.mod(f.toRadian(ot),2*Math.PI),L=K.x,D=K.y,G=nt.x,U=nt.y,X=Math.cos(Y)*(L-G)/2+Math.sin(Y)*(D-U)/2,q=-1*Math.sin(Y)*(L-G)/2+Math.cos(Y)*(D-U)/2,ut=X*X/(tt*tt)+q*q/($*$);ut>1&&(tt*=Math.sqrt(ut),$*=Math.sqrt(ut));var rt=tt*tt*(q*q)+$*$*(X*X),at=Math.sqrt((tt*tt*($*$)-rt)/rt);st===V&&(at*=-1),isNaN(at)&&(at=0);var pt=at*tt*q/$,gt=at*-$*X/tt,z=(L+G)/2+Math.cos(Y)*pt-Math.sin(Y)*gt,Z=(D+U)/2+Math.sin(Y)*pt+Math.cos(Y)*gt,lt=s([1,0],[(X-pt)/tt,(q-gt)/$]),it=[(X-pt)/tt,(q-gt)/$],dt=[(-1*X-pt)/tt,(-1*q-gt)/$],yt=s(it,dt);return c(it,dt)<=-1&&(yt=Math.PI),c(it,dt)>=1&&(yt=0),V===0&&yt>0&&(yt-=2*Math.PI),V===1&&yt<0&&(yt+=2*Math.PI),[K,z,Z,tt,$,lt,yt,Y,V]}(_,S,F,j,T,I,R);this.params=B;var H=y.subStart;this.subStart=H,this.endPoint=S;var et=B[5]%(2*Math.PI);f.isNumberEqual(et,2*Math.PI)&&(et=0);var Q=B[6]%(2*Math.PI);f.isNumberEqual(Q,2*Math.PI)&&(Q=0);var J=.001;this.startTangent=function(){j===0&&(J*=-1);var K=B[3]*Math.cos(et-J)+B[1],nt=B[4]*Math.sin(et-J)+B[2];return[K-H.x,nt-H.y]},this.endTangent=function(){var K=B[6];K-2*Math.PI<1e-4&&(K=0);var nt=B[3]*Math.cos(et+K+J)+B[1],st=B[4]*Math.sin(et+K-J)+B[2];return[_.x-nt,_.y-st]};break;case"Z":this.command="Z",this.params=[_,y.subStart],this.subStart=y.subStart,this.endPoint=y.subStart}},isInside:function(v,y,m){var b=this.command,w=this.params,P=this.box;if(P&&!p.box(P.minX,P.maxX,P.minY,P.maxY,v,y))return!1;switch(b){default:break;case"M":return!1;case"TL":case"L":case"Z":return p.line(w[0].x,w[0].y,w[1].x,w[1].y,m,v,y);case"SQ":case"Q":return p.quadraticline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,m,v,y);case"C":return p.cubicline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,w[3].x,w[3].y,m,v,y);case"A":var S=w,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],R=E>_?E:_,F=E>_?1:E/_,j=E>_?_/E:1;S=[v,y,1];var B=[1,0,0,0,1,0,0,0,1];return t.translate(B,B,[-O,-A]),t.rotate(B,B,-T),t.scale(B,B,[1/F,1/j]),n.transformMat3(S,S,B),p.arcline(0,0,R,C,C+k,1-I,m,S[0],S[1])}return!1},draw:function(v){var y,m,b,w=this.command,P=this.params;switch(w){default:break;case"M":v.moveTo(P[1].x,P[1].y);break;case"TL":case"L":v.lineTo(P[1].x,P[1].y);break;case"SQ":case"Q":y=P[1],m=P[2],v.quadraticCurveTo(y.x,y.y,m.x,m.y);break;case"C":y=P[1],m=P[2],b=P[3],v.bezierCurveTo(y.x,y.y,m.x,m.y,b.x,b.y);break;case"A":var S=P,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],R=E>_?E:_,F=E>_?1:E/_,j=E>_?_/E:1;v.translate(O,A),v.rotate(T),v.scale(F,j),v.arc(0,0,R,C,C+k,1-I),v.scale(1/F,1/j),v.rotate(-T),v.translate(-O,-A);break;case"Z":v.closePath()}},getBBox:function(v){var y,m,b,w,P=v/2,S=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(S[0].x,S[1].x)-P,maxX:Math.max(S[0].x,S[1].x)+P,minY:Math.min(S[0].y,S[1].y)-P,maxY:Math.max(S[0].y,S[1].y)+P};break;case"SQ":case"Q":for(b=0,w=(m=i.extrema(S[0].x,S[1].x,S[2].x)).length;b<w;b++)m[b]=i.at(S[0].x,S[1].x,S[2].x,m[b]);for(m.push(S[0].x,S[2].x),b=0,w=(y=i.extrema(S[0].y,S[1].y,S[2].y)).length;b<w;b++)y[b]=i.at(S[0].y,S[1].y,S[2].y,y);y.push(S[0].y,S[2].y),this.box={minX:Math.min.apply(Math,m)-P,maxX:Math.max.apply(Math,m)+P,minY:Math.min.apply(Math,y)-P,maxY:Math.max.apply(Math,y)+P};break;case"C":for(b=0,w=(m=l.extrema(S[0].x,S[1].x,S[2].x,S[3].x)).length;b<w;b++)m[b]=l.at(S[0].x,S[1].x,S[2].x,S[3].x,m[b]);for(b=0,w=(y=l.extrema(S[0].y,S[1].y,S[2].y,S[3].y)).length;b<w;b++)y[b]=l.at(S[0].y,S[1].y,S[2].y,S[3].y,y[b]);m.push(S[0].x,S[3].x),y.push(S[0].y,S[3].y),this.box={minX:Math.min.apply(Math,m)-P,maxX:Math.max.apply(Math,m)+P,minY:Math.min.apply(Math,y)-P,maxY:Math.max.apply(Math,y)+P};break;case"A":var O=S,A=O[1],E=O[2],_=O[3],C=O[4],k=O[5],T=O[6],I=O[7],R=O[8],F=k,j=k+T,B=o.xExtrema(I,_,C),H=1/0,et=-1/0,Q=[F,j];for(b=2*-Math.PI;b<=2*Math.PI;b+=Math.PI){var J=B+b;R===1?F<J&&J<j&&Q.push(J):j<J&&J<F&&Q.push(J)}for(b=0,w=Q.length;b<w;b++){var K=o.xAt(I,_,C,A,Q[b]);K<H&&(H=K),K>et&&(et=K)}var nt=o.yExtrema(I,_,C),st=1/0,V=-1/0,tt=[F,j];for(b=2*-Math.PI;b<=2*Math.PI;b+=Math.PI){var $=nt+b;R===1?F<$&&$<j&&tt.push($):j<$&&$<F&&tt.push($)}for(b=0,w=tt.length;b<w;b++){var ot=o.yAt(I,_,C,E,tt[b]);ot<st&&(st=ot),ot>V&&(V=ot)}this.box={minX:H-P,maxX:et+P,minY:st-P,maxY:V+P}}}}),M.exports=h},function(M,x,g){var f=g(593),p=g(600),l=Math.PI,i=Math.sin,o=Math.cos,n=Math.atan2,t=10,e=l/3;function r(u,c,s,h,d,v,y){var m,b,w,P,S,O,A;if(!c.fill){var E=c.arrowLength||t,_=c.arrowAngle?c.arrowAngle*l/180:e;A=n(h-v,s-d),S=Math.abs(c.lineWidth*o(A))/2,O=Math.abs(c.lineWidth*i(A))/2,y&&(S=-S,O=-O),m=d+E*o(A+_/2),b=v+E*i(A+_/2),w=d+E*o(A-_/2),P=v+E*i(A-_/2),u.beginPath(),u.moveTo(m-S,b-O),u.lineTo(d-S,v-O),u.lineTo(w-S,P-O),u.moveTo(d-S,v-O),u.lineTo(d+S,v+O),u.moveTo(d,v),u.stroke()}}function a(u,c,s,h,d,v,y){var m=y?c.startArrow:c.endArrow,b=m.d,w=0,P=d-s,S=v-h,O=Math.atan(P/S);S===0&&P<0?w=Math.PI:P>0&&S>0?w=Math.PI/2-O:P<0&&S<0?w=-Math.PI/2-O:P>=0&&S<0?w=-O-Math.PI/2:P<=0&&S>0&&(w=Math.PI/2-O);var A=function(_){var C,k=[],T=f.parsePath(_.path);if(!Array.isArray(T)||T.length===0||T[0][0]!=="M"&&T[0][0]!=="m")return!1;for(var I=T.length,R=0;R<T.length;R++){var F=T[R];C=new p(F,C,R===I-1),k.push(C)}return k}(m);if(A){b&&(y?(d+=Math.sin(Math.abs(O))*b,v=v+Math.cos(Math.abs(O))*b-.5*u.lineWidth):(d-=Math.sin(Math.abs(O))*b,v=v-Math.cos(Math.abs(O))*b+.5*u.lineWidth)),u.save(),u.beginPath(),u.translate(d,v),u.rotate(w);for(var E=0;E<A.length;E++)A[E].draw(u);u.setTransform(1,0,0,1,0,0),u.fillStyle=u.strokeStyle,u.fill(),u.restore()}}M.exports={addStartArrow:function(c,s,h,d,v,y){typeof s.startArrow=="object"?a(c,s,h,d,v,y,!0):s.startArrow&&r(c,s,h,d,v,y,!0)},addEndArrow:function(c,s,h,d,v,y){typeof s.endArrow=="object"?a(c,s,h,d,v,y,!1):s.endArrow&&r(c,s,h,d,v,y,!1)}}},function(M,x,g){var f=g(19);function p(n,t,e,r){return{x:Math.cos(r)*e+n,y:Math.sin(r)*e+t}}function l(n,t,e,r){var a,u;return r?n<t?(a=t-n,u=2*Math.PI-e+n):n>e&&(a=2*Math.PI-n+t,u=n-e):(a=n-t,u=e-n),a>u?e:t}function i(n,t,e,r){var a=0;return e-t>=2*Math.PI&&(a=2*Math.PI),t=f.mod(t,2*Math.PI),e=f.mod(e,2*Math.PI)+a,n=f.mod(n,2*Math.PI),r?t>=e?n>e&&n<t?n:l(n,e,t,!0):n<t||n>e?n:l(n,t,e):t<=e?t<n&&n<e?n:l(n,t,e,!0):n>t||n<e?n:l(n,e,t)}function o(n,t,e,r,a,u,c,s,h){var d=[c,s],v=[n,t],y=f.vec2.subtract([],d,v),m=f.vec2.angleTo([1,0],y);m=i(m,r,a,u);var b=[e*Math.cos(m)+n,e*Math.sin(m)+t];return h&&(h.x=b[0],h.y=b[1]),f.vec2.distance(b,d)}M.exports={nearAngle:i,projectPoint:function(t,e,r,a,u,c,s,h){var d={};return o(t,e,r,a,u,c,s,h,d),d},pointDistance:o,box:function(t,e,r,a,u,c){var s=Math.PI/2,h=Math.PI,d=3*Math.PI/2,v=[],y=i(0,a,u,c);y===0&&v.push(p(t,e,r,0)),(y=i(s,a,u,c))===s&&v.push(p(t,e,r,s)),(y=i(h,a,u,c))===h&&v.push(p(t,e,r,h)),(y=i(d,a,u,c))===d&&v.push(p(t,e,r,d)),v.push(p(t,e,r,a)),v.push(p(t,e,r,u));var m=1/0,b=-1/0,w=1/0,P=-1/0;return f.each(v,function(S){m>S.x&&(m=S.x),b<S.x&&(b=S.x),w>S.y&&(w=S.y),P<S.y&&(P=S.y)}),{minX:m,minY:w,maxX:b,maxY:P}}}},function(M,x,g){var f=g(19).vec2;M.exports={at:function(l,i,o){return(i-l)*o+l},pointDistance:function(l,i,o,n,t,e){var r=[o-l,n-i];if(f.exactEquals(r,[0,0]))return NaN;var a=[-r[1],r[0]];f.normalize(a,a);var u=[t-l,e-i];return Math.abs(f.dot(u,a))},box:function(l,i,o,n,t){var e=t/2,r=Math.min(l,o),a=Math.max(l,o);return{minX:r-e,minY:Math.min(i,n)-e,maxX:a+e,maxY:Math.max(i,n)+e}},len:function(l,i,o,n){return Math.sqrt((o-l)*(o-l)+(n-i)*(n-i))}}},function(M,x,g){var f=g(118);M.exports=function(p){return f(p)?Array.prototype.slice.call(p):[]}},function(M,x,g){var f=g(118),p=Array.prototype.indexOf;M.exports=function(l,i){return!!f(l)&&p.call(l,i)>-1}},function(M,x){function g(f,p){for(var l in p)p.hasOwnProperty(l)&&l!=="constructor"&&p[l]!==void 0&&(f[l]=p[l])}M.exports=function(f,p,l,i){return p&&g(f,p),l&&g(f,l),i&&g(f,i),f}},,function(M,x,g){var f=g(26),p=function(){function l(o){f.mix(this,{id:"",type:null,model:{},group:null,animate:!1,modelCache:{},isItem:!0,visible:!0},o),this._init()}var i=l.prototype;return i._init=function(){this._initGroup(),this.draw()},i._mapping=function(){var o=this.mapper,n=this.model;o.mapping(n)},i._initGroup=function(){var o=this.group,n=this.model,t=this.type;o.isItemContainer=!0,o.id=n.id,o.itemType=t,o.model=n,o.item=this},i._calculateBBox=function(){var o=this.keyShape,n=this.group,t=f.getBBox(o,n);return t.width=t.maxX-t.minX,t.height=t.maxY-t.minY,t.centerX=(t.minX+t.maxX)/2,t.centerY=(t.minY+t.maxY)/2,t},i.getLabel=function(){return this.group.findByClass("label")[0]},i.getGraph=function(){return this.graph},i._setShapeObj=function(){var o=this.graph,n=this.type,t=this.getModel();this.shapeObj=o.getShapeObj(n,t)},i._afterDraw=function(){var o=this.graph;this._setGId(),this._cacheModel(),o.emit("afteritemdraw",{item:this})},i._cacheModel=function(){this.modelCache=f.mix({},this.model)},i._setGId=function(){var o=this.group,n=this.id,t=this.type;o.gid=n,o.deepEach(function(e,r,a){var u=r.gid;if(e.id=n,e.eventPreFix=t,e.gid=u+"-"+a,e.isShape){var c=e.get("type");e.gid+="-"+c}})},i._beforeDraw=function(){var o=this.graph,n=this.group;o.emit("beforeitemdraw",{item:this}),n.resetMatrix(),this.updateCollapsedParent()},i._shouldDraw=function(){return!0},i._getDiff=function(){var o=[],n=this.model,t=this.modelCache;return f.each(n,function(e,r){f.isEqual(e,t[r])||o.push(r)}),o.length!==0&&o},i._drawInner=function(){var o=this.animate;this.group.clear(!o),this._mapping(),this._setShapeObj();var n=this.shapeObj,t=n.draw(this);t&&(t.isKeyShape=!0,this.keyShape=t),n.afterDraw&&n.afterDraw(this)},i.deepEach=function(o,n){f.traverseTree(this,o,n||function(t){return t.getChildren()})},i.getShapeObj=function(){return this.shapeObj},i.updateCollapsedParent=function(){var o=this.dataMap;this.collapsedParent=function n(t,e){var r=e[t.parent];if(!r)return!1;if(r){var a=n(r,e);if(a)return a}return r.collapsed?r:void 0}(this.model,o)},i.isVisible=function(){return this.visible},i.hide=function(){var o=this.group,n=this.graph;n.emit("beforeitemhide",{item:this}),o.hide(),this.visible=!1,n.emit("afteritemhide",{item:this})},i.show=function(){var o=this.group,n=this.graph;n.emit("beforeitemshow",{item:this}),o.show(),this.visible=!0,n.emit("afteritemshow",{item:this})},i.draw=function(){this._beforeDraw(),this._shouldDraw()&&this._drawInner(),this._afterDraw()},i.forceUpdate=function(){this._beforeDraw(),this._drawInner(),this._afterDraw()},i.getCenter=function(){var o=this.getBBox();return{x:o.centerX,y:o.centerY}},i.getBBox=function(){return this.bbox||this._calculateBBox()},i.layoutUpdate=function(){this.isVisible()&&this.draw()},i.update=function(){this.draw()},i.getModel=function(){return this.model},i.getKeyShape=function(){return this.keyShape},i.getGraphicGroup=function(){return this.group},i.getHierarchy=function(){return this.graph.getHierarchy(this)},i.getParent=function(){var o=this.model;return this.itemMap[o.parent]},i.getAllParents=function(){for(var o=this.model,n=this.itemMap,t=[],e=o.parent;e&&n[e];){var r=n[e],a=r.getModel();t.push(r),e=a.parent}return t},i.getAllChildren=function(){var o=[];return this.deepEach(function(n){o.push(n)}),o},i.getChildren=function(){var o=this.id;return this.graph.getItems().filter(function(n){return n.model.parent===o})},i.toFront=function(){this.group.toFront()},i.toBack=function(){this.group.toBack()},i.destroy=function(){if(!this.destroyed){var o=this.animate,n=this.graph;n.emit("beforeitemdestroy",{item:this}),this.group.remove(!o),this.destroyed=!0,n.emit("afteritemdestroy",{item:this})}},l}();M.exports=p},function(M,x){M.exports="2.2.6"},function(M,x,g){var f=g(644),p=`
|
|
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,l=new RegExp("([a-z])["+p+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+p+"]*,?["+p+"]*)+)","ig"),i=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+p+"]*,?["+p+"]*","ig"),o=function(I){if(!I)return null;if(typeof I==typeof[])return I;var R={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},F=[];return String(I).replace(l,function(j,B,H){var et=[],Q=B.toLowerCase();if(H.replace(i,function(J,K){K&&et.push(+K)}),Q==="m"&&et.length>2&&(F.push([B].concat(et.splice(0,2))),Q="l",B=B==="m"?"l":"L"),Q==="o"&&et.length===1&&F.push([B,et[0]]),Q==="r")F.push([B].concat(et));else for(;et.length>=R[Q]&&(F.push([B].concat(et.splice(0,R[Q]))),R[Q]););}),F},n=function(I,R){for(var F=[],j=0,B=I.length;B-2*!R>j;j+=2){var H=[{x:+I[j-2],y:+I[j-1]},{x:+I[j],y:+I[j+1]},{x:+I[j+2],y:+I[j+3]},{x:+I[j+4],y:+I[j+5]}];R?j?B-4===j?H[3]={x:+I[0],y:+I[1]}:B-2===j&&(H[2]={x:+I[0],y:+I[1]},H[3]={x:+I[2],y:+I[3]}):H[0]={x:+I[B-2],y:+I[B-1]}:B-4===j?H[3]=H[2]:j||(H[0]={x:+I[j],y:+I[j+1]}),F.push(["C",(-H[0].x+6*H[1].x+H[2].x)/6,(-H[0].y+6*H[1].y+H[2].y)/6,(H[1].x+6*H[2].x-H[3].x)/6,(H[1].y+6*H[2].y-H[3].y)/6,H[2].x,H[2].y])}return F},t=function(I,R,F,j,B){var H=[];if(B===null&&j===null&&(j=F),I=+I,R=+R,F=+F,j=+j,B!==null){var et=Math.PI/180,Q=I+F*Math.cos(-j*et),J=I+F*Math.cos(-B*et);H=[["M",Q,R+F*Math.sin(-j*et)],["A",F,F,0,+(B-j>180),0,J,R+F*Math.sin(-B*et)]]}else H=[["M",I,R],["m",0,-j],["a",F,j,0,1,1,0,2*j],["a",F,j,0,1,1,0,-2*j],["z"]];return H},e=function(I){if(!(I=o(I))||!I.length)return[["M",0,0]];var R,F,j=[],B=0,H=0,et=0,Q=0,J=0;I[0][0]==="M"&&(et=B=+I[0][1],Q=H=+I[0][2],J++,j[0]=["M",B,H]);for(var K,nt,st=I.length===3&&I[0][0]==="M"&&I[1][0].toUpperCase()==="R"&&I[2][0].toUpperCase()==="Z",V=J,tt=I.length;V<tt;V++){if(j.push(K=[]),(R=(nt=I[V])[0])!==R.toUpperCase())switch(K[0]=R.toUpperCase(),K[0]){case"A":K[1]=nt[1],K[2]=nt[2],K[3]=nt[3],K[4]=nt[4],K[5]=nt[5],K[6]=+nt[6]+B,K[7]=+nt[7]+H;break;case"V":K[1]=+nt[1]+H;break;case"H":K[1]=+nt[1]+B;break;case"R":for(var $=2,ot=(F=[B,H].concat(nt.slice(1))).length;$<ot;$++)F[$]=+F[$]+B,F[++$]=+F[$]+H;j.pop(),j=j.concat(n(F,st));break;case"O":j.pop(),(F=t(B,H,nt[1],nt[2])).push(F[0]),j=j.concat(F);break;case"U":j.pop(),j=j.concat(t(B,H,nt[1],nt[2],nt[3])),K=["U"].concat(j[j.length-1].slice(-2));break;case"M":et=+nt[1]+B,Q=+nt[2]+H;break;default:for(var Y=1,L=nt.length;Y<L;Y++)K[Y]=+nt[Y]+(Y%2?B:H)}else if(R==="R")F=[B,H].concat(nt.slice(1)),j.pop(),j=j.concat(n(F,st)),K=["R"].concat(nt.slice(-2));else if(R==="O")j.pop(),(F=t(B,H,nt[1],nt[2])).push(F[0]),j=j.concat(F);else if(R==="U")j.pop(),j=j.concat(t(B,H,nt[1],nt[2],nt[3])),K=["U"].concat(j[j.length-1].slice(-2));else for(var D=0,G=nt.length;D<G;D++)K[D]=nt[D];if((R=R.toUpperCase())!=="O")switch(K[0]){case"Z":B=+et,H=+Q;break;case"H":B=K[1];break;case"V":H=K[1];break;case"M":et=K[K.length-2],Q=K[K.length-1];break;default:B=K[K.length-2],H=K[K.length-1]}}return j},r=function(I,R,F,j){return[I,R,F,j,F,j]},a=function(I,R,F,j,B,H){return[1/3*I+2/3*F,1/3*R+2/3*j,1/3*B+2/3*F,1/3*H+2/3*j,B,H]},u=function(I,R){var F,j=e(I),B=R&&e(R),H={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},et={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},Q=[],J=[],K="",nt="",st=function(U,X,q){var ut,rt;if(!U)return["C",X.x,X.y,X.x,X.y,X.x,X.y];switch(!(U[0]in{T:1,Q:1})&&(X.qx=X.qy=null),U[0]){case"M":X.X=U[1],X.Y=U[2];break;case"A":U=["C"].concat(function at(pt,gt,z,Z,lt,it,dt,yt,wt,Mt){z===Z&&(z+=1);var At,xt,St,Et,Pt,Ot=120*Math.PI/180,Dt=Math.PI/180*(+lt||0),Tt=[],Nt=function(Gt,Lt,Yt){return{x:Gt*Math.cos(Yt)-Lt*Math.sin(Yt),y:Gt*Math.sin(Yt)+Lt*Math.cos(Yt)}};if(Mt)xt=Mt[0],St=Mt[1],Et=Mt[2],Pt=Mt[3];else{pt=(At=Nt(pt,gt,-Dt)).x,gt=At.y,yt=(At=Nt(yt,wt,-Dt)).x,wt=At.y,pt===yt&>===wt&&(yt+=1,wt+=1);var kt=(pt-yt)/2,It=(gt-wt)/2,Xt=kt*kt/(z*z)+It*It/(Z*Z);Xt>1&&(z*=Xt=Math.sqrt(Xt),Z*=Xt);var zt=z*z,Zt=Z*Z,Vt=(it===dt?-1:1)*Math.sqrt(Math.abs((zt*Zt-zt*It*It-Zt*kt*kt)/(zt*It*It+Zt*kt*kt)));Et=Vt*z*It/Z+(pt+yt)/2,Pt=Vt*-Z*kt/z+(gt+wt)/2,xt=Math.asin(((gt-Pt)/Z).toFixed(9)),St=Math.asin(((wt-Pt)/Z).toFixed(9)),xt=pt<Et?Math.PI-xt:xt,St=yt<Et?Math.PI-St:St,xt<0&&(xt=2*Math.PI+xt),St<0&&(St=2*Math.PI+St),dt&&xt>St&&(xt-=2*Math.PI),!dt&&St>xt&&(St-=2*Math.PI)}var Ht=St-xt;if(Math.abs(Ht)>Ot){var Jt=St,qt=yt,ue=wt;St=xt+Ot*(dt&&St>xt?1:-1),Tt=at(yt=Et+z*Math.cos(St),wt=Pt+Z*Math.sin(St),z,Z,lt,0,dt,qt,ue,[St,Jt,Et,Pt])}Ht=St-xt;var Ut=Math.cos(xt),Rt=Math.sin(xt),te=Math.cos(St),ce=Math.sin(St),ee=Math.tan(Ht/4),ne=4/3*z*ee,re=4/3*Z*ee,ie=[pt,gt],Ft=[pt+ne*Rt,gt-re*Ut],Wt=[yt+ne*ce,wt-re*te],oe=[yt,wt];if(Ft[0]=2*ie[0]-Ft[0],Ft[1]=2*ie[1]-Ft[1],Mt)return[Ft,Wt,oe].concat(Tt);for(var Kt=[],Bt=0,ae=(Tt=[Ft,Wt,oe].concat(Tt).join().split(",")).length;Bt<ae;Bt++)Kt[Bt]=Bt%2?Nt(Tt[Bt-1],Tt[Bt],Dt).y:Nt(Tt[Bt],Tt[Bt+1],Dt).x;return Kt}.apply(0,[X.x,X.y].concat(U.slice(1))));break;case"S":q==="C"||q==="S"?(ut=2*X.x-X.bx,rt=2*X.y-X.by):(ut=X.x,rt=X.y),U=["C",ut,rt].concat(U.slice(1));break;case"T":q==="Q"||q==="T"?(X.qx=2*X.x-X.qx,X.qy=2*X.y-X.qy):(X.qx=X.x,X.qy=X.y),U=["C"].concat(a(X.x,X.y,X.qx,X.qy,U[1],U[2]));break;case"Q":X.qx=U[1],X.qy=U[2],U=["C"].concat(a(X.x,X.y,U[1],U[2],U[3],U[4]));break;case"L":U=["C"].concat(r(X.x,X.y,U[1],U[2]));break;case"H":U=["C"].concat(r(X.x,X.y,U[1],X.y));break;case"V":U=["C"].concat(r(X.x,X.y,X.x,U[1]));break;case"Z":U=["C"].concat(r(X.x,X.y,X.X,X.Y))}return U},V=function(U,X){if(U[X].length>7){U[X].shift();for(var q=U[X];q.length;)Q[X]="A",B&&(J[X]="A"),U.splice(X++,0,["C"].concat(q.splice(0,6)));U.splice(X,1),F=Math.max(j.length,B&&B.length||0)}},tt=function(U,X,q,ut,rt){U&&X&&U[rt][0]==="M"&&X[rt][0]!=="M"&&(X.splice(rt,0,["M",ut.x,ut.y]),q.bx=0,q.by=0,q.x=U[rt][1],q.y=U[rt][2],F=Math.max(j.length,B&&B.length||0))};F=Math.max(j.length,B&&B.length||0);for(var $=0;$<F;$++){j[$]&&(K=j[$][0]),K!=="C"&&(Q[$]=K,$&&(nt=Q[$-1])),j[$]=st(j[$],H,nt),Q[$]!=="A"&&K==="C"&&(Q[$]="C"),V(j,$),B&&(B[$]&&(K=B[$][0]),K!=="C"&&(J[$]=K,$&&(nt=J[$-1])),B[$]=st(B[$],et,nt),J[$]!=="A"&&K==="C"&&(J[$]="C"),V(B,$)),tt(j,B,H,et,$),tt(B,j,et,H,$);var ot=j[$],Y=B&&B[$],L=ot.length,D=B&&Y.length;H.x=ot[L-2],H.y=ot[L-1],H.bx=parseFloat(ot[L-4])||H.x,H.by=parseFloat(ot[L-3])||H.y,et.bx=B&&(parseFloat(Y[D-4])||et.x),et.by=B&&(parseFloat(Y[D-3])||et.y),et.x=B&&Y[D-2],et.y=B&&Y[D-1]}return B?[j,B]:j},c=/,?([a-z]),?/gi,s=function(I){return I.join(",").replace(c,"$1")},h=function(I,R,F,j,B){return I*(I*(-3*R+9*F-9*j+3*B)+6*R-12*F+6*j)-3*R+3*F},d=function(I,R,F,j,B,H,et,Q,J){J===null&&(J=1);for(var K=(J=J>1?1:J<0?0:J)/2,nt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],st=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],V=0,tt=0;tt<12;tt++){var $=K*nt[tt]+K,ot=h($,I,F,B,et),Y=h($,R,j,H,Q),L=ot*ot+Y*Y;V+=st[tt]*Math.sqrt(L)}return K*V},v=function(I,R,F,j,B,H,et,Q){if(!(Math.max(I,F)<Math.min(B,et)||Math.min(I,F)>Math.max(B,et)||Math.max(R,j)<Math.min(H,Q)||Math.min(R,j)>Math.max(H,Q))){var J=(I-F)*(H-Q)-(R-j)*(B-et);if(J){var K=((I*j-R*F)*(B-et)-(I-F)*(B*Q-H*et))/J,nt=((I*j-R*F)*(H-Q)-(R-j)*(B*Q-H*et))/J,st=+K.toFixed(2),V=+nt.toFixed(2);if(!(st<+Math.min(I,F).toFixed(2)||st>+Math.max(I,F).toFixed(2)||st<+Math.min(B,et).toFixed(2)||st>+Math.max(B,et).toFixed(2)||V<+Math.min(R,j).toFixed(2)||V>+Math.max(R,j).toFixed(2)||V<+Math.min(H,Q).toFixed(2)||V>+Math.max(H,Q).toFixed(2)))return{x:K,y:nt}}}},y=function(I,R,F){return R>=I.x&&R<=I.x+I.width&&F>=I.y&&F<=I.y+I.height},m=function(I,R,F,j,B){if(B)return[["M",+I+ +B,R],["l",F-2*B,0],["a",B,B,0,0,1,B,B],["l",0,j-2*B],["a",B,B,0,0,1,-B,B],["l",2*B-F,0],["a",B,B,0,0,1,-B,-B],["l",0,2*B-j],["a",B,B,0,0,1,B,-B],["z"]];var H=[["M",I,R],["l",F,0],["l",0,j],["l",-F,0],["z"]];return H.parsePathArray=s,H},b=function(I,R,F,j){return I===null&&(I=R=F=j=0),R===null&&(R=I.y,F=I.width,j=I.height,I=I.x),{x:I,y:R,width:F,w:F,height:j,h:j,x2:I+F,y2:R+j,cx:I+F/2,cy:R+j/2,r1:Math.min(F,j)/2,r2:Math.max(F,j)/2,r0:Math.sqrt(F*F+j*j)/2,path:m(I,R,F,j),vb:[I,R,F,j].join(" ")}},w=function(I,R,F,j,B,H,et,Q){f.isArray(I)||(I=[I,R,F,j,B,H,et,Q]);var J=function(K,nt,st,V,tt,$,ot,Y){for(var L,D,G,U,X=[],q=[[],[]],ut=0;ut<2;++ut)if(ut===0?(D=6*K-12*st+6*tt,L=-3*K+9*st-9*tt+3*ot,G=3*st-3*K):(D=6*nt-12*V+6*$,L=-3*nt+9*V-9*$+3*Y,G=3*V-3*nt),Math.abs(L)<1e-12){if(Math.abs(D)<1e-12)continue;(U=-G/D)>0&&U<1&&X.push(U)}else{var rt=D*D-4*G*L,at=Math.sqrt(rt);if(!(rt<0)){var pt=(-D+at)/(2*L);pt>0&&pt<1&&X.push(pt);var gt=(-D-at)/(2*L);gt>0&><1&&X.push(gt)}}for(var z,Z=X.length,lt=Z;Z--;)z=1-(U=X[Z]),q[0][Z]=z*z*z*K+3*z*z*U*st+3*z*U*U*tt+U*U*U*ot,q[1][Z]=z*z*z*nt+3*z*z*U*V+3*z*U*U*$+U*U*U*Y;return q[0][lt]=K,q[1][lt]=nt,q[0][lt+1]=ot,q[1][lt+1]=Y,q[0].length=q[1].length=lt+2,{min:{x:Math.min.apply(0,q[0]),y:Math.min.apply(0,q[1])},max:{x:Math.max.apply(0,q[0]),y:Math.max.apply(0,q[1])}}}.apply(null,I);return b(J.min.x,J.min.y,J.max.x-J.min.x,J.max.y-J.min.y)},P=function(I,R,F,j,B,H,et,Q,J){var K=1-J,nt=Math.pow(K,3),st=Math.pow(K,2),V=J*J,tt=V*J,$=I+2*J*(F-I)+V*(B-2*F+I),ot=R+2*J*(j-R)+V*(H-2*j+R),Y=F+2*J*(B-F)+V*(et-2*B+F),L=j+2*J*(H-j)+V*(Q-2*H+j);return{x:nt*I+3*st*J*F+3*K*J*J*B+tt*et,y:nt*R+3*st*J*j+3*K*J*J*H+tt*Q,m:{x:$,y:ot},n:{x:Y,y:L},start:{x:K*I+J*F,y:K*R+J*j},end:{x:K*B+J*et,y:K*H+J*Q},alpha:90-180*Math.atan2($-Y,ot-L)/Math.PI}},S=function(I,R,F){if(!function(rt,at){return rt=b(rt),at=b(at),y(at,rt.x,rt.y)||y(at,rt.x2,rt.y)||y(at,rt.x,rt.y2)||y(at,rt.x2,rt.y2)||y(rt,at.x,at.y)||y(rt,at.x2,at.y)||y(rt,at.x,at.y2)||y(rt,at.x2,at.y2)||(rt.x<at.x2&&rt.x>at.x||at.x<rt.x2&&at.x>rt.x)&&(rt.y<at.y2&&rt.y>at.y||at.y<rt.y2&&at.y>rt.y)}(w(I),w(R)))return F?0:[];for(var j=~~(d.apply(0,I)/8),B=~~(d.apply(0,R)/8),H=[],et=[],Q={},J=F?0:[],K=0;K<j+1;K++){var nt=P.apply(0,I.concat(K/j));H.push({x:nt.x,y:nt.y,t:K/j})}for(var st=0;st<B+1;st++){var V=P.apply(0,R.concat(st/B));et.push({x:V.x,y:V.y,t:st/B})}for(var tt=0;tt<j;tt++)for(var $=0;$<B;$++){var ot=H[tt],Y=H[tt+1],L=et[$],D=et[$+1],G=Math.abs(Y.x-ot.x)<.001?"y":"x",U=Math.abs(D.x-L.x)<.001?"y":"x",X=v(ot.x,ot.y,Y.x,Y.y,L.x,L.y,D.x,D.y);if(X){if(Q[X.x.toFixed(4)]===X.y.toFixed(4))continue;Q[X.x.toFixed(4)]=X.y.toFixed(4);var q=ot.t+Math.abs((X[G]-ot[G])/(Y[G]-ot[G]))*(Y.t-ot.t),ut=L.t+Math.abs((X[U]-L[U])/(D[U]-L[U]))*(D.t-L.t);q>=0&&q<=1&&ut>=0&&ut<=1&&(F?J++:J.push({x:X.x,y:X.y,t1:q,t2:ut}))}}return J};function O(T,I){var R=[],F=[];return T.length&&function j(B,H){if(B.length===1)R.push(B[0]),F.push(B[0]);else{for(var et=[],Q=0;Q<B.length-1;Q++)Q===0&&R.push(B[0]),Q===B.length-2&&F.push(B[Q+1]),et[Q]=[(1-H)*B[Q][0]+H*B[Q+1][0],(1-H)*B[Q][1]+H*B[Q+1][1]];j(et,H)}}(T,I),{left:R,right:F.reverse()}}var A=function(I,R,F){if(F===1)return[[].concat(I)];var j=[];if(R[0]==="L"||R[0]==="C"||R[0]==="Q")j=j.concat(function(et,Q,J){var K=[[et[1],et[2]]];J=J||2;var nt=[];Q[0]==="A"?(K.push(Q[6]),K.push(Q[7])):Q[0]==="C"?(K.push([Q[1],Q[2]]),K.push([Q[3],Q[4]]),K.push([Q[5],Q[6]])):Q[0]==="S"||Q[0]==="Q"?(K.push([Q[1],Q[2]]),K.push([Q[3],Q[4]])):K.push([Q[1],Q[2]]);for(var st=K,V=1/J,tt=0;tt<J-1;tt++){var $=O(st,V/(1-V*tt));nt.push($.left),st=$.right}return nt.push(st),nt.map(function(ot){var Y=[];return ot.length===4&&(Y.push("C"),Y=Y.concat(ot[2])),ot.length>=3&&(ot.length===3&&Y.push("Q"),Y=Y.concat(ot[1])),ot.length===2&&Y.push("L"),Y=Y.concat(ot[ot.length-1])})}(I,R,F));else{var B=[].concat(I);B[0]==="M"&&(B[0]="L");for(var H=0;H<=F-1;H++)j.push(B)}return j},E=function(I,R){if(I.length!==R.length)return!1;var F=!0;return f.each(I,function(j,B){if(j!==R[B])return F=!1,!1}),F};function _(T,I,R){var F=null,j=R;return I<j&&(j=I,F="add"),T<j&&(j=T,F="del"),{type:F,min:j}}function C(T,I,R){for(var F,j=[].concat(T),B=1/(R+1),H=k(I)[0],et=1;et<=R;et++)B*=et,(F=Math.floor(T.length*B))===0?j.unshift([H[0]*B+T[F][0]*(1-B),H[1]*B+T[F][1]*(1-B)]):j.splice(F,0,[H[0]*B+T[F][0]*(1-B),H[1]*B+T[F][1]*(1-B)]);return j}function k(T){var I=[];switch(T[0]){case"M":case"L":I.push([T[1],T[2]]);break;case"A":I.push([T[6],T[7]]);break;case"Q":I.push([T[3],T[4]]),I.push([T[1],T[2]]);break;case"T":I.push([T[1],T[2]]);break;case"C":I.push([T[5],T[6]]),I.push([T[1],T[2]]),I.push([T[3],T[4]]);break;case"S":I.push([T[3],T[4]]),I.push([T[1],T[2]]);break;case"H":case"V":I.push([T[1],T[1]])}return I}M.exports={parsePathString:o,parsePathArray:s,pathTocurve:u,pathToAbsolute:e,catmullRomToBezier:n,rectPath:m,fillPath:function(I,R){if(I.length===1)return I;var F=I.length-1,j=R.length-1,B=F/j,H=[];if(I.length===1&&I[0][0]==="M"){for(var et=0;et<j-F;et++)I.push(I[0]);return I}for(var Q=0;Q<j;Q++){var J=Math.floor(B*Q);H[J]=(H[J]||0)+1}var K=H.reduce(function(nt,st,V){return V===F?nt.concat(I[F]):nt.concat(A(I[V],I[V+1],st))},[]);return K.unshift(I[0]),R[j]!=="Z"&&R[j]!=="z"||K.push("Z"),K},fillPathByDiff:function(I,R){var F=function($,ot){var Y,L,D=$.length,G=ot.length,U=0;if(D===0||G===0)return null;for(var X=[],q=0;q<=D;q++)X[q]=[],X[q][0]={min:q};for(var ut=0;ut<=G;ut++)X[0][ut]={min:ut};for(var rt=1;rt<=D;rt++){Y=$[rt-1];for(var at=1;at<=G;at++){L=ot[at-1],U=E(Y,L)?0:1;var pt=X[rt-1][at].min+1,gt=X[rt][at-1].min+1,z=X[rt-1][at-1].min+U;X[rt][at]=_(pt,gt,z)}}return X}(I,R),j=I.length,B=R.length,H=[],et=1,Q=1;if(F[j][B]!==j){for(var J=1;J<=j;J++){var K=F[J][J].min;Q=J;for(var nt=et;nt<=B;nt++)F[J][nt].min<K&&(K=F[J][nt].min,Q=nt);et=Q,F[J][et].type&&H.push({index:J-1,type:F[J][et].type})}for(var st=H.length-1;st>=0;st--)et=H[st].index,H[st].type==="add"?I.splice(et,0,[].concat(I[et])):I.splice(et,1)}var V=B-(j=I.length);if(j<B)for(var tt=0;tt<V;tt++)I[j-1][0]==="z"||I[j-1][0]==="Z"?I.splice(j-2,0,I[j-2]):I.push(I[j-1]),j+=1;return I},formatPath:function(I,R){if(I.length<=1)return I;for(var F,j=0;j<R.length;j++)if(I[j][0]!==R[j][0])switch(F=k(I[j]),R[j][0]){case"M":I[j]=["M"].concat(F[0]);break;case"L":I[j]=["L"].concat(F[0]);break;case"A":I[j]=[].concat(R[j]),I[j][6]=F[0][0],I[j][7]=F[0][1];break;case"Q":if(F.length<2){if(!(j>0)){I[j]=R[j];break}F=C(F,I[j-1],1)}I[j]=["Q"].concat(F.reduce(function(B,H){return B.concat(H)},[]));break;case"T":I[j]=["T"].concat(F[0]);break;case"C":if(F.length<3){if(!(j>0)){I[j]=R[j];break}F=C(F,I[j-1],2)}I[j]=["C"].concat(F.reduce(function(B,H){return B.concat(H)},[]));break;case"S":if(F.length<2){if(!(j>0)){I[j]=R[j];break}F=C(F,I[j-1],1)}I[j]=["S"].concat(F.reduce(function(B,H){return B.concat(H)},[]));break;default:I[j]=R[j]}return I},intersection:function(I,R){return function(F,j,B){var H,et,Q,J,K,nt,st,V,tt,$;F=u(F),j=u(j);for(var ot=B?0:[],Y=0,L=F.length;Y<L;Y++){var D=F[Y];if(D[0]==="M")H=K=D[1],et=nt=D[2];else{D[0]==="C"?(H=(tt=[H,et].concat(D.slice(1)))[6],et=tt[7]):(tt=[H,et,H,et,K,nt,K,nt],H=K,et=nt);for(var G=0,U=j.length;G<U;G++){var X=j[G];if(X[0]==="M")Q=st=X[1],J=V=X[2];else{X[0]==="C"?(Q=($=[Q,J].concat(X.slice(1)))[6],J=$[7]):($=[Q,J,Q,J,st,V,st,V],Q=st,J=V);var q=S(tt,$,B);if(B)ot+=q;else{for(var ut=0,rt=q.length;ut<rt;ut++)q[ut].segment1=Y,q[ut].segment2=G,q[ut].bez1=tt,q[ut].bez2=$;ot=ot.concat(q)}}}}}return ot}(I,R)}}},function(M,x,g){var f=g(19),p=g(58),l=g(593),i=g(600),o=function n(t){n.superclass.constructor.call(this,t)};o.Symbols={circle:function(t,e,r){return[["M",t,e],["m",-r,0],["a",r,r,0,1,0,2*r,0],["a",r,r,0,1,0,2*-r,0]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var a=r*Math.sin(1/3*Math.PI);return[["M",t-r,e+a],["L",t,e-a],["L",t+r,e+a],["z"]]},"triangle-down":function(t,e,r){var a=r*Math.sin(1/3*Math.PI);return[["M",t-r,e-a],["L",t+r,e-a],["L",t,e+a],["Z"]]}},o.ATTRS={path:null,lineWidth:1},f.extend(o,p),f.augment(o,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,r=t.y,a=t.radius,u=this.getHitLineWidth()/2+a;return{minX:e-u,minY:r-u,maxX:e+u,maxY:r+u}},_getPath:function(){var t=this._attrs,e=t.x,r=t.y,a=t.radius||t.r,u=t.symbol||"circle";return(f.isFunction(u)?u:o.Symbols[u])(e,r,a)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var r,a=l.parsePath(this._getPath());t.beginPath(),e=[];for(var u=0;u<a.length;u++){var c=a[u];r=new i(c,r,u===a.length-1),e.push(r),r.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var s=0;s<e.length;s++)e[s].draw(t)}}}),M.exports=o},function(M,x,g){var f=g(19),p=f.vec2;function l(n,t,e,r,a){var u=1-a;return u*u*(u*r+3*a*e)+a*a*(a*n+3*u*t)}function i(n,t,e,r,a,u,c,s,h,d,v){var y,m,b,w,P,S,O,A,E=.005,_=1/0,C=[h,d];for(m=0;m<1;m+=.05)b=[l(n,e,a,c,m),l(t,r,u,s,m)],(w=p.squaredDistance(C,b))<_&&(y=m,_=w);_=1/0;for(var k=0;k<32&&!(E<1e-4);k++)A=y+E,b=[l(n,e,a,c,O=y-E),l(t,r,u,s,O)],w=p.squaredDistance(C,b),O>=0&&w<_?(y=O,_=w):(S=[l(n,e,a,c,A),l(t,r,u,s,A)],P=p.squaredDistance(C,S),A<=1&&P<_?(y=A,_=P):E*=.5);return v&&(v.x=l(n,e,a,c,y),v.y=l(t,r,u,s,y)),Math.sqrt(_)}function o(n,t,e,r,a){return n*(n*(-3*t+9*e-9*r+3*a)+6*t-12*e+6*r)-3*t+3*e}M.exports={at:l,derivativeAt:function(t,e,r,a,u){var c=1-u;return 3*(((e-t)*c+2*(r-e)*u)*c+(a-r)*u*u)},projectPoint:function(t,e,r,a,u,c,s,h,d,v){var y={};return i(t,e,r,a,u,c,s,h,d,v,y),y},pointDistance:i,extrema:function(t,e,r,a){var u,c,s,h=3*t-9*e+9*r-3*a,d=6*e-12*r+6*a,v=3*r-3*a,y=[];if(f.isNumberEqual(h,0))f.isNumberEqual(d,0)||(u=-v/d)>=0&&u<=1&&y.push(u);else{var m=d*d-4*h*v;f.isNumberEqual(m,0)?y.push(-d/(2*h)):m>0&&(c=(-d-(s=Math.sqrt(m)))/(2*h),(u=(-d+s)/(2*h))>=0&&u<=1&&y.push(u),c>=0&&c<=1&&y.push(c))}return y},len:function(t,e,r,a,u,c,s,h,d){f.isNil(d)&&(d=1);for(var v=(d=d>1?1:d<0?0:d)/2,y=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],b=0,w=0;w<12;w++){var P=v*y[w]+v,S=o(P,t,r,u,s),O=o(P,e,a,c,h),A=S*S+O*O;b+=m[w]*Math.sqrt(A)}return v*b}}},function(M,x,g){var f=g(603),p=g(640),l=g(612),i=g(602);M.exports={line:function(n,t,e,r,a,u,c){var s=f.box(n,t,e,r,a);if(!this.box(s.minX,s.maxX,s.minY,s.maxY,u,c))return!1;var h=f.pointDistance(n,t,e,r,u,c);return!isNaN(h)&&h<=a/2},polyline:function(n,t,e,r){var a=n.length-1;if(a<1)return!1;for(var u=0;u<a;u++){var c=n[u][0],s=n[u][1],h=n[u+1][0],d=n[u+1][1];if(this.line(c,s,h,d,t,e,r))return!0}return!1},cubicline:function(n,t,e,r,a,u,c,s,h,d,v){return l.pointDistance(n,t,e,r,a,u,c,s,d,v)<=h/2},quadraticline:function(n,t,e,r,a,u,c,s,h){return p.pointDistance(n,t,e,r,a,u,s,h)<=c/2},arcline:function(n,t,e,r,a,u,c,s,h){return i.pointDistance(n,t,e,r,a,u,s,h)<=c/2},rect:function(n,t,e,r,a,u){return n<=a&&a<=n+e&&t<=u&&u<=t+r},circle:function(n,t,e,r,a){return Math.pow(r-n,2)+Math.pow(a-t,2)<=Math.pow(e,2)},box:function(n,t,e,r,a,u){return n<=a&&a<=t&&e<=u&&u<=r}}},function(M,x,g){var f=g(619),p=g(118),l=g(595);M.exports=function i(o,n){if(o===n)return!0;if(!o||!n||l(o)||l(n))return!1;if(p(o)||p(n)){if(o.length!==n.length)return!1;for(var t=!0,e=0;e<o.length&&(t=i(o[e],n[e]));e++);return t}if(f(o)||f(n)){var r=Object.keys(o),a=Object.keys(n);if(r.length!==a.length)return!1;for(var u=!0,c=0;c<r.length&&(u=i(o[r[c]],n[r[c]]));c++);return u}return!1}},function(M,x,g){var f=g(596),p=g(45),l=5;function i(o,n,t,e){for(var r in t=t||0,e=e||l,n)if(n.hasOwnProperty(r)){var a=n[r];a!==null&&f(a)?(f(o[r])||(o[r]={}),t<e?i(o[r],a,t+1,e):o[r]=n[r]):p(a)?(o[r]=[],o[r]=o[r].concat(a)):a!==void 0&&(o[r]=a)}}M.exports=function(){for(var o=new Array(arguments.length),n=o.length,t=0;t<n;t++)o[t]=arguments[t];for(var e=o[0],r=1;r<n;r++)i(e,o[r]);return e}},function(M,x,g){var f=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},p=g(45);M.exports=function l(i){if((i===void 0?"undefined":f(i))!=="object"||i===null)return i;var o=void 0;if(p(i)){o=[];for(var n=0,t=i.length;n<t;n++)f(i[n])==="object"&&i[n]!=null?o[n]=l(i[n]):o[n]=i[n]}else for(var e in o={},i)f(i[e])==="object"&&i[e]!=null?o[e]=l(i[e]):o[e]=i[e];return o}},function(M,x,g){var f=g(256);f.translate=function(p,l,i){var o=new Array(9);return f.fromTranslation(o,i),f.multiply(p,o,l)},f.rotate=function(p,l,i){var o=new Array(9);return f.fromRotation(o,i),f.multiply(p,o,l)},f.scale=function(p,l,i){var o=new Array(9);return f.fromScaling(o,i),f.multiply(p,o,l)},M.exports=f},function(M,x){M.exports=function(g,f,p){return g<f?f:g>p?p:g}},function(M,x){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};M.exports=function(f){return(f===void 0?"undefined":g(f))==="object"&&f!==null}},function(M,x,g){var f=g(46),p=g(118);M.exports=function(l,i){if(!p(l))return l;var o=[];return f(l,function(n,t){i(n,t)&&o.push(n)}),o}},function(M,x){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};M.exports=function(f){var p=f===void 0?"undefined":g(f);return f!==null&&p==="object"||p==="function"}},function(M,x){var g=function(){function f(){}return f.prototype.execute=function(){throw new Error("please override this method")},f}();M.exports=g},function(M,x,g){M.exports={CompactBoxTree:g(688),Dendrogram:g(687),IndentedTree:g(686),Mindmap:g(685),Base:g(622)}},function(M,x,g){var f=g(26),p=function(l){function i(n){var t={type:"node",isNode:!0,zIndex:3,edges:[],linkable:!0};return f.mix(t,n),l.call(this,t)||this}(function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t})(i,l);var o=i.prototype;return o.updatePosition=function(){var n=this.group,t=this.model;n.setMatrix([1,0,0,0,1,0,t.x?t.x:0,t.y?t.y:0,1]),this.bbox=this._calculateBBox()},o._shouldDraw=function(){var n=this._getDiff(),t=l.prototype._shouldDraw.call(this);return n&&!(n.length===2&&n.indexOf("x")!==-1&&n.indexOf("y")!==-1)&&!(n.length===1&&(n[0]==="x"||n[0]==="y"))&&t},o._afterDraw=function(){this.updatePosition(),l.prototype._afterDraw.call(this)},o.layoutUpdate=function(){this._beforeDraw(),this._afterDraw()},o.getEdges=function(){var n=this;return this.graph.getEdges().filter(function(t){var e=t.getModel();return e.source===n.id||e.target===n.id})},o.getInEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.target===n})},o.getOutEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.source===n})},o.getLinkPoints=function(n){var t=this.getAnchorPoints();if(f.isNumber(n)&&t[n])return[t[n]];var e=n.x,r=n.y,a=this.getBBox(),u=a.centerX,c=a.centerY,s=e-u,h=r-c,d=this.shapeObj,v=d.anchor||{},y=this.defaultIntersectBox,m=[];if(f.isEmpty(t)){switch(d.intersectBox||v.intersectBox||v.type||y){case"rect":m=[f.getIntersectPointRect(a,n)];break;case"path":if(this.keyShape&&this.keyShape.get("type")==="path"){var b=f.parsePathArray(["M",e,r,"L",u,c]);m=[f.intersection(b,this.keyShape.get("path"))]}break;default:m=[f.getIntersectPointCircle(e,r,a.centerX,a.centerY,Math.max(a.width,a.height)/2)]}f.isEmpty(m[0])&&(m=[{x:u,y:c}])}else m=t.map(function(w){var P=w.x-u,S=w.y-c,O=f.getArcOfVectors({x:s,y:h},{x:P,y:S});return f.mix({},w,{arc:O})}).sort(function(w,P){return w.arc-P.arc});return m},o.getAnchorPoints=function(n){var t,e=this.shapeObj,r=this.getBBox(),a=[],u=e.anchor||{};return t=f.isArray(u)?u:f.isFunction(u)?u(this):f.isFunction(u.points)?u.points(this):u.points,f.each(t,function(c,s){var h=f.mix({x:r.minX+c[0]*r.width,y:r.minY+c[1]*r.height},c[2],{index:s});a.push(h)}),this._anchorPoints=a,f.isNumber(n)?this._anchorPoints[n]:this._anchorPoints},i}(g(608));M.exports=p},function(M,x,g){function f(b,w,P){return w in b?Object.defineProperty(b,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):b[w]=P,b}g(715),g(714),g(713);var p=g(712),l=g(710),i=g(683),o=g(26),n=g(706),t=g(248),e=g(704),r=g(702),a=g(700),u=g(699),c=g(697),s=g(696),h=g(695),d=g(692),v=g(691),y=[s,r,a,e,h,d,g(690),v,u,c],m=function(b){(function(S,O){S.prototype=Object.create(O.prototype),S.prototype.constructor=S,S.__proto__=O})(P,b);var w=P.prototype;function P(S){var O,A={};return y.forEach(function(E){o.mix(A,o.clone(E.CFG),S)}),(O=b.call(this,A)||this)._pluginInit(),O.emit("beforeinit"),O._init(),O.emit("afterinit"),O}return w.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,plugins:[],fontFamily:'"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\u5FAE\u8F6F\u96C5\u9ED1", SimSun, "sans-serif"',nodeDefaultShape:void 0,edgeDefaultShape:void 0,groupDefaultShape:void 0,defaultIntersectBox:"circle",renderer:"canvas",_type:"graph",_controllers:{},_timers:{},_dataMap:{},_itemMap:{},_freezMap:{},_data:{},_delayRunObj:{}}},w._init=function(){var S=this;this._initData(),this._initContainer(),this._initCanvas(),y.forEach(function(O){O.INIT&&S[O.INIT]()}),this.initEvent()},w.initEvent=function(){},w._executeLayout=function(S,O,A,E){o.isFunction(S)?S(O,A,this):o.isObject(S)&&(S.nodes=O,S.edges=A,S.groups=E,S.graph=this,S.execute())},w._pluginInit=function(){var S=this;this.get("plugins").forEach(function(O){S._initPlugin(O)})},w._initPlugin=function(S){S.graph=this,S.init&&S.init()},w._getTimer=function(S){return this.get("_timers")[S]},w._setTimer=function(S,O){this.get("_timers")[S]=O},w._getController=function(S){return this.get("_controllers")[S]},w._initContainer=function(){var S=this.get("container");S||(S=this.get("id")),S=o.initDOMContainer(S,"graph");var O=o.createDOM('<div class="graph-container"></div>',{position:"relative"});S.appendChild(O),this.set("_containerDOM",S),this.set("_graphContainer",O)},w._initCanvas=function(){var S=this.get("_graphContainer"),O=this.get("width"),A=this.get("height"),E=this.get("fontFamily"),_=this.get("renderer"),C={width:O,height:A,fontFamily:E,renderer:_,eventEnable:!1,containerDOM:S};_==="svg"&&(C.pixelRatio=1);var k=new t.Canvas(C),T=k.get("el");T.style.top=0,T.style.left=0,T.style.overflow="hidden",this.set("_canvas",k);var I=this.getMouseEventWrapper();I.style.outline="none",I.style["user-select"]="none",I.setAttribute("tabindex",20);var R=k.addGroup(),F=R.addGroup();this.set("_itemGroup",F),this.set("_rootGroup",R)},w._initData=function(){this.set("_dataMap",{}),this.set("_itemMap",{_nodes:[],_edges:[],_groups:[],_guides:[]}),this.set("_data",{})},w._refresh=function(){},w.getKeyboardEventWrapper=function(){var S=this.get("keyboardEventWrapper");return S||this.getMouseEventWrapper()},w.getMouseEventWrapper=function(){return this.get("_canvas").get("el")},w.addPlugin=function(S){var O=this.get("plugins");this._initPlugin(S),O.push(S)},w.getGraphContainer=function(){return this.get("_graphContainer")},w._sortGroup=function(S){var O=this.get("_dataMap"),A={};S.forEach(function(E){var _=E.id,C=E.parent;for(A[_]=1;C&&O[C];)A[_]++,C=O[C].parent}),S.sort(function(E,_){return A[_.id]-A[E.id]})},w._addItems=function(S,O){var A=this;this._addDatas(S,O),S==="group"&&this._sortGroup(O);var E=o.upperFirst(S),_=l[E],C=this.get("_itemMap"),k=this.get("_itemGroup"),T=this.get("_dataMap"),I=this.get("animate"),R=this.get("defaultIntersectBox");if(!_)throw new Error("please set valid item type!");O.forEach(function(F){var j=new _({id:F.id,type:S,model:F,group:k.addGroup(),graph:A,mapper:A._getController(S+"Mapper"),itemMap:C,animate:I,dataMap:T,defaultIntersectBox:R});C[F.id]=j,C["_"+S+"s"].push(j)})},w._removeItems=function(S){var O=this.get("_dataMap"),A=this.get("_itemMap");S.forEach(function(E){delete O[E.id],delete A[E.id],o.Array.remove(A["_"+E.type+"s"],E),E.destroy()})},w._updateItems=function(S,O){S.forEach(function(A,E){var _=O[E];_&&o.mix(A.getModel(),_),A.update()})},w._getShowEdge=function(S){var O=S.getSource(),A=S.getTarget();return(O.linkable&&O.isVisible()||!O.linkable)&&(A.linkable&&A.isVisible()||!A.linkable)&&S},w._addDatas=function(S,O){var A=this.get("_dataMap");O.forEach(function(E){if(o.isNil(E.id)&&(E.id=o.guid()),A[E.id])throw new Error("id:"+E.id+" has already been set, please set new one");A[E.id]=E})},w._drawInner=function(){var S=this.get("_data"),O=this.get("_itemGroup"),A=this.get("_dataMap"),E=this.get("_itemMap");S.nodes&&this._addItems("node",S.nodes),S.groups&&this._addItems("group",S.groups),S.edges&&this._addItems("edge",S.edges),S.guides&&this._addItems("guide",S.guides),O.sortBy(function(_){var C=_.id,k=E[C],T=A[C];return T&&!o.isNil(T.index)?T.index:!k||k.destroyed||o.isNil(k.zIndex)?void 0:k.zIndex})},w._clearInner=function(){this.getItems().forEach(function(S){S&&S.destroy()})},w.preventAnimate=function(S){return this.set("_forcePreventAnimate",!0),S(),this.set("_forcePreventAnimate",!1),this},w.getShapeObj=function(S,O){if(!o.isObject(S)){var A=o.upperFirst(S),E=i[A],_=this.get(S+"DefaultShape");return E.getShape(O.shape,_)}return S.getShapeObj()},w.getSource=function(){return this.get("_sourceData")},w.parseSource=function(S){return S},w.getCanvas=function(){return this.get("_canvas")},w.getRootGroup=function(){return this.get("_rootGroup")},w.getItemGroup=function(){return this.get("_itemGroup")},w.source=function(S){return this.emit("beforesource"),this.set("_data",S),this.set("_sourceData",S),this.emit("aftersource"),this},w.render=function(){return this.emit("beforerender"),this.emit("beforedrawinner"),this._drawInner(),this.emit("afterdrawinner"),this.emit("afterrender"),this},w.reRender=function(){var S=this.get("_sourceData");return this.read(S),this},w.setCapture=function(S){this.get("_rootGroup").set("capture",S)},w.destroy=function(){this.emit("beforedestroy");var S=this.get("_canvas"),O=this.get("_graphContainer"),A=this.get("_controllers"),E=this.get("_timers"),_=this.get("_windowForceResizeEvent"),C=this.get("plugins");return o.each(E,function(k){clearTimeout(k)}),o.each(A,function(k){k.destroy()}),C.forEach(function(k){k.destroy&&k.destroy()}),S&&S.destroy(),O.destroy(),window.removeEventListener("resize",_),this.emit("afterdestroy"),b.prototype.destroy.call(this),this},w.save=function(){var S={nodes:[],edges:[],groups:[],guides:[]};return this.get("_itemGroup").get("children").forEach(function(O,A){var E=O.model;if(E){var _=O.itemType,C=o.clone(E);C.index=A,S[_+"s"].push(C)}}),S.nodes.length===0&&delete S.nodes,S.edges.length===0&&delete S.edges,S.groups.length===0&&delete S.groups,S.guides.length===0&&delete S.guides,S},w.add=function(S,O){var A=[],E={action:"add",model:O,affectedItemIds:A};this.emit("beforechange",E);var _=this.get("_itemMap");this._addItems(S,[O]);var C=_[O.id];return C.getAllParents().forEach(function(k){k.update()}),E.item=C,A.push(O.id),this.emit("afterchange",E),C},w.remove=function(S){if((S=this.getItem(S))&&!S.destroyed){var O=[],A=[],E={action:"remove",item:S,affectedItemIds:A};if(S.isNode){var _=S.getEdges();O=O.concat(_)}if(S.isGroup){var C=S.getEdges(),k=S.getAllChildren(),T=S.getCrossEdges(),I=S.getInnerEdges();O=O.concat(C,k,T,I),O=o.uniq(O)}O.push(S);var R=S.getAllParents();return R.forEach(function(F){A.push(F.id)}),O.forEach(function(F){A.push(F.id)}),this.emit("beforechange",E),this._removeItems(O),R.forEach(function(F){F.update()}),this.emit("afterchange",E),this}},w.simpleUpdate=function(S,O){return this._updateItems([S],[O]),this.draw(),this},w.update=function(S,O){var A=this.get("_itemMap");if((S=this.getItem(S))&&!S.destroyed&&O){var E=this.get("animate"),_=[],C=[],k=[],T=S.getModel(),I=o.mix({},T),R={action:"update",item:S,originModel:I,updateModel:O,affectedItemIds:k},F=A[I.parent];if(_.push(S),C.push(O),k.push(S.id),F&&F!==parent&&o.isGroup(F)&&S.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),O.parent){var j=A[O.parent];if(!j)throw new Error("there is no "+O.parent+" exist, please add a new one!");_.push(j),C.push(null),k.push(j.id),j.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})}return(S.isNode||S.isGroup)&&S.getEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),S.isGroup&&!o.isNil(O.collapsed)&&(E&&S.deepEach(function(B){k.push(B.id)}),S.getCrossEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})),this.emit("beforechange",R),this._updateItems(_,C),this.emit("afterchange",R),this}},w.read=function(S){var O=this;if(!S)throw new Error("please read valid data!");var A={action:"changeData",data:S};return this.emit("beforechange",A),this.preventAnimate(function(){O.clear(),O.source(S),O.render()}),this.emit("afterchange",A),this},w.clear=function(){return this.emit("beforeclear"),this._clearInner(),this._initData(),this.emit("afterclear"),this},w.hide=function(S){var O=[],A=[],E={item:S=this.getItem(S),affectedItemIds:A};return O.push(S),S.isNode&&S.getEdges().forEach(function(_){O.push(_)}),S.isGroup&&(S.getEdges().forEach(function(_){O.push(_)}),S.deepEach(function(_){O.push(_)})),(O=o.uniq(O)).forEach(function(_){A.push(_.id)}),this.emit("beforehide",E),O.forEach(function(_){_.hide()}),this.emit("afterhide",E),this},w.show=function(S){var O=this,A=[],E=[],_={item:S=this.getItem(S),affectedItemIds:E};if(S.visible=!0,S.isEdge){var C=this._getShowEdge(S);C&&A.push(C)}else A.push(S);return S.isNode&&S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.isGroup&&(S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.deepEach(function(k){A.push(k)})),(A=o.uniq(A)).forEach(function(k){E.push(k.id)}),this.emit("beforeshow",_),A.forEach(function(k){k.show()}),this.emit("aftershow",_),this},w.getWidth=function(){return this.get("width")},w.getHeight=function(){return this.get("height")},w.changeSize=function(S,O){if(!(Math.abs(S)>=1/0||Math.abs(O)>=1/0)){var A=this.get("_canvas");return S===this.get("width")&&O===this.get("height")||(this.emit("beforechangesize"),A.changeSize(S,O),this.set("width",S),this.set("height",O),this.emit("afterchangesize"),this.draw()),this}console.warn("size parameter more than the maximum")},w.toFront=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toFront(A,O),this.draw()},w.toBack=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toBack(A,O),this.draw()},w.css=function(S){var O=this.getGraphContainer();o.modifyCSS(O,S)},w.saveImage=function(S){var O=this.getBBox(),A=this.getFitViewPadding();return new n(function(E){for(var _=1;_<arguments.length;_++){var C=arguments[_]!=null?arguments[_]:{},k=Object.keys(C);typeof Object.getOwnPropertySymbols=="function"&&(k=k.concat(Object.getOwnPropertySymbols(C).filter(function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),k.forEach(function(T){f(E,T,C[T])})}return E}({graph:this,width:O.width+A[1]+A[3],height:O.height+A[0]+A[2]},S)).toCanvas()},P}(p);y.forEach(function(b){o.mix(m.prototype,b.AUGMENT)}),M.exports=m},function(M,x){var g={registerBehaviour:function(p,l,i){l.dependences=i,g[p]=l},resetMode:function(p,l){var i,o=[];l._off();for(var n=0;n<p.length;n++)(i=g[p[n]])&&(i.dependences&&i.dependences.forEach(function(t){t&&o.indexOf(t)===-1&&(g[t](l),o.push(t))}),i&&o.indexOf(i)===-1&&i(l))}};M.exports=g},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};l.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var o=this._attrs.fontSize;o&&+o<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+o/12,+o/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var o=this._attrs,n=o.fontSize,t=o.fontFamily,e=o.fontWeight,r=o.fontStyle,a=o.fontVariant;o.font=[r,a,e,n+"px",t].join(" ")},_setAttrText:function(){var o=this._attrs,n=o.text,t=null;if(f.isString(n)&&n.indexOf(`
|
|
`)!==-1){var e=(t=n.split(`
|
|
`)).length;o.lineCount=e}o.textArr=t},_getTextHeight:function(){var o=this._attrs,n=o.lineCount,t=1*o.fontSize;return n>1?t*n+this._getSpaceingY()*(n-1):t},isHitBox:function(){return!1},calculateBox:function(){var o=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),o.textArr||this._setAttrText();var t=o.x,e=o.y,r=this.measureText();if(!r)return{minX:t,minY:e,maxX:t,maxY:e};var a=this._getTextHeight(),u=o.textAlign,c=o.textBaseline,s=this.getHitLineWidth(),h={x:t,y:e-a};u&&(u==="end"||u==="right"?h.x-=r:u==="center"&&(h.x-=r/2)),c&&(c==="top"?h.y+=a:c==="middle"&&(h.y+=a/2)),this.set("startPoint",h);var d=s/2;return{minX:h.x-d,minY:h.y-d,maxX:h.x+r+d,maxY:h.y+a+d}},_getSpaceingY:function(){var o=this._attrs,n=o.lineHeight,t=1*o.fontSize;return n?n-t:.14*t},drawInner:function(o){var n=this._attrs,t=this._cfg;t.attrs&&!t.hasUpdate||(this._assembleFont(),this._setAttrText()),o.font=n.font;var e=n.text;if(e){var r=n.textArr,a=n.x,u=n.y;if(o.beginPath(),this.hasStroke()){var c=n.strokeOpacity;f.isNil(c)||c===1||(o.globalAlpha=c),r?this._drawTextArr(o,!1):o.strokeText(e,a,u),o.globalAlpha=1}if(this.hasFill()){var s=n.fillOpacity;f.isNil(s)||s===1||(o.globalAlpha=s),r?this._drawTextArr(o,!0):o.fillText(e,a,u)}t.hasUpdate=!1}},_drawTextArr:function(o,n){var t,e=this._attrs.textArr,r=this._attrs.textBaseline,a=1*this._attrs.fontSize,u=this._getSpaceingY(),c=this._attrs.x,s=this._attrs.y,h=this.getBBox(),d=h.maxY-h.minY;f.each(e,function(v,y){t=s+y*(u+a)-d+a,r==="middle"&&(t+=d-a-(d-a)/2),r==="top"&&(t+=d-a),n?o.fillText(v,c,t):o.strokeText(v,c,t)})},measureText:function(){var o,n=this._attrs,t=n.text,e=n.font,r=n.textArr,a=0;if(!f.isNil(t)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=e,r?f.each(r,function(c){o=u.measureText(c).width,a<o&&(a=o),u.restore()}):(a=u.measureText(t).width,u.restore()),a}}}),M.exports=l},function(M,x,g){var f=g(19),p=g(593).parseRadius,l=g(58),i=function o(n){o.superclass.constructor.call(this,n)};i.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},f.extend(i,l),f.augment(i,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var n=this._attrs,t=n.x,e=n.y,r=n.width,a=n.height,u=this.getHitLineWidth()/2;return{minX:t-u,minY:e-u,maxX:t+r+u,maxY:e+a+u}},createPath:function(n){var t=this._attrs,e=t.x,r=t.y,a=t.width,u=t.height,c=t.radius;if((n=n||this.get("context")).beginPath(),c===0)n.rect(e,r,a,u);else{var s=p(c);n.moveTo(e+s.r1,r),n.lineTo(e+a-s.r2,r),s.r2!==0&&n.arc(e+a-s.r2,r+s.r2,s.r2,-Math.PI/2,0),n.lineTo(e+a,r+u-s.r3),s.r3!==0&&n.arc(e+a-s.r3,r+u-s.r3,s.r3,0,Math.PI/2),n.lineTo(e+s.r4,r+u),s.r4!==0&&n.arc(e+s.r4,r+u-s.r4,s.r4,Math.PI/2,Math.PI),n.lineTo(e,r+s.r1),s.r1!==0&&n.arc(e+s.r1,r+s.r1,s.r1,Math.PI,1.5*Math.PI),n.closePath()}}}),M.exports=i},function(M,x,g){var f=g(19),p=g(58),l=g(601),i=g(603),o=function n(t){n.superclass.constructor.call(this,t)};o.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},f.extend(o,p),f.augment(o,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),r=t.points;if(!r||r.length===0)return null;var a=1/0,u=1/0,c=-1/0,s=-1/0;f.each(r,function(d){var v=d[0],y=d[1];v<a&&(a=v),v>c&&(c=v),y<u&&(u=y),y>s&&(s=y)});var h=e/2;return{minX:a-h,minY:u-h,maxX:c+h,maxY:s+h}},_setTcache:function(){var t,e,r=this._attrs.points,a=0,u=0,c=[];r&&r.length!==0&&(f.each(r,function(s,h){r[h+1]&&(a+=i.len(s[0],s[1],r[h+1][0],r[h+1][1]))}),a<=0||(f.each(r,function(s,h){r[h+1]&&((t=[])[0]=u/a,e=i.len(s[0],s[1],r[h+1][0],r[h+1][1]),u+=e,t[1]=u/a,c.push(t))}),this.tCache=c))},createPath:function(t){var e,r,a=this._attrs.points;if(!(a.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(a[0][0],a[0][1]),r=1,e=a.length-1;r<e;r++)t.lineTo(a[r][0],a[r][1]);t.lineTo(a[e][0],a[e][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,r=[];return r.push([t[e-1][0],t[e-1][1]]),r.push([t[e][0],t[e][1]]),r},afterPath:function(t){var e=this._attrs,r=e.points,a=r.length-1;t=t||this.get("context"),e.startArrow&&l.addStartArrow(t,e,r[1][0],r[1][1],r[0][0],r[0][1]),e.endArrow&&l.addEndArrow(t,e,r[a-1][0],r[a-1][1],r[a][0],r[a][1])},getPoint:function(t){var e,r,a=this._attrs.points,u=this.tCache;return u||(this._setTcache(),u=this.tCache),f.each(u,function(c,s){t>=c[0]&&t<=c[1]&&(e=(t-c[0])/(c[1]-c[0]),r=s)}),{x:i.at(a[r][0],a[r+1][0],e),y:i.at(a[r][1],a[r+1][1],e)}}}),M.exports=o},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};l.ATTRS={points:null,lineWidth:1},f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs.points,n=this.getHitLineWidth();if(!o||o.length===0)return null;var t=1/0,e=1/0,r=-1/0,a=-1/0;f.each(o,function(c){var s=c[0],h=c[1];s<t&&(t=s),s>r&&(r=s),h<e&&(e=h),h>a&&(a=h)});var u=n/2;return{minX:t-u,minY:e-u,maxX:r+u,maxY:a+u}},createPath:function(o){var n=this._attrs.points;n.length<2||((o=o||this.get("context")).beginPath(),f.each(n,function(t,e){e===0?o.moveTo(t[0],t[1]):o.lineTo(t[0],t[1])}),o.closePath())}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=g(600),i=g(593),o=g(601),n=g(610),t=g(612),e=function r(a){r.superclass.constructor.call(this,a)};e.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},f.extend(e,p),f.augment(e,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(a){if(f.isNil(a))return this.setSilent("segments",null),void this.setSilent("box",void 0);var u,c=i.parsePath(a),s=[];if(f.isArray(c)&&c.length!==0&&(c[0][0]==="M"||c[0][0]==="m")){for(var h=c.length,d=0;d<c.length;d++){var v=c[d];u=new l(v,u,d===h-1),s.push(u)}this.setSilent("segments",s),this.setSilent("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var a=this.get("segments");if(!a)return null;var u=this.getHitLineWidth(),c=1/0,s=-1/0,h=1/0,d=-1/0;return f.each(a,function(v){v.getBBox(u);var y=v.box;y&&(y.minX<c&&(c=y.minX),y.maxX>s&&(s=y.maxX),y.minY<h&&(h=y.minY),y.maxY>d&&(d=y.maxY))}),c===1/0||h===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:c,minY:h,maxX:s,maxY:d}},_setTcache:function(){var a,u,c,s,h=0,d=0,v=[],y=this._cfg.curve;y&&(f.each(y,function(m,b){c=y[b+1],s=m.length,c&&(h+=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]))}),f.each(y,function(m,b){c=y[b+1],s=m.length,c&&((a=[])[0]=d/h,u=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]),d+=u,a[1]=d/h,v.push(a))}),this._cfg.tCache=v)},_calculateCurve:function(){var a=this._attrs.path;this._cfg.curve=n.pathTocurve(a)},getStartTangent:function(){var a,u,c,s,h=this.get("segments");if(h.length>1)if(a=h[0].endPoint,u=h[1].endPoint,c=h[1].startTangent,s=[],f.isFunction(c)){var d=c();s.push([a.x-d[0],a.y-d[1]]),s.push([a.x,a.y])}else s.push([u.x,u.y]),s.push([a.x,a.y]);return s},getEndTangent:function(){var a,u,c,s,h=this.get("segments"),d=h.length;if(d>1)if(a=h[d-2].endPoint,u=h[d-1].endPoint,c=h[d-1].endTangent,s=[],f.isFunction(c)){var v=c();s.push([u.x-v[0],u.y-v[1]]),s.push([u.x,u.y])}else s.push([a.x,a.y]),s.push([u.x,u.y]);return s},getPoint:function(a){var u,c,s=this._cfg.tCache;s||(this._calculateCurve(),this._setTcache(),s=this._cfg.tCache);var h=this._cfg.curve;if(!s)return h?{x:h[0][1],y:h[0][2]}:null;f.each(s,function(m,b){a>=m[0]&&a<=m[1]&&(u=(a-m[0])/(m[1]-m[0]),c=b)});var d=h[c];if(f.isNil(d)||f.isNil(c))return null;var v=d.length,y=h[c+1];return{x:t.at(d[v-2],y[1],y[3],y[5],1-u),y:t.at(d[v-1],y[2],y[4],y[6],1-u)}},createPath:function(a){var u=this.get("segments");if(f.isArray(u)){(a=a||this.get("context")).beginPath();for(var c=u.length,s=0;s<c;s++)u[s].draw(a)}},afterPath:function(a){var u=this._attrs,c=this.get("segments"),s=u.path;if(a=a||this.get("context"),f.isArray(c)&&c.length!==1&&(u.startArrow||u.endArrow)&&s[s.length-1]!=="z"&&s[s.length-1]!=="Z"&&!u.fill){var h=this.getStartTangent();o.addStartArrow(a,u,h[0][0],h[0][1],h[1][0],h[1][1]);var d=this.getEndTangent();o.addEndArrow(a,u,d[0][0],d[0][1],d[1][0],d[1][1])}}}),M.exports=e},function(M,x,g){var f=g(19),p=g(58),l=g(601),i=g(603),o=function n(t){n.superclass.constructor.call(this,t)};o.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},f.extend(o,p),f.augment(o,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,r=t.y1,a=t.x2,u=t.y2,c=this.getHitLineWidth();return i.box(e,r,a,u,c)},createPath:function(t){var e=this._attrs,r=e.x1,a=e.y1,u=e.x2,c=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(r,a),t.lineTo(u,c)},afterPath:function(t){var e=this._attrs,r=e.x1,a=e.y1,u=e.x2,c=e.y2;t=t||this.get("context"),e.startArrow&&l.addStartArrow(t,e,u,c,r,a),e.endArrow&&l.addEndArrow(t,e,r,a,u,c)},getPoint:function(t){var e=this._attrs;return{x:i.at(e.x1,e.x2,t),y:i.at(e.y1,e.y2,t)}}}),M.exports=o},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};l.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},f.extend(l,p),f.augment(l,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var o=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===o.img||this._setAttrImg();var n=o.x,t=o.y;return{minX:n,minY:t,maxX:n+o.width,maxY:t+o.height}},_beforeSetLoading:function(o){var n=this.get("canvas");return o===!1&&this.get("toDraw")===!0&&(this._cfg.loading=!1,n.draw()),o},_setAttrImg:function(){var o=this,n=o._attrs,t=n.img;if(!f.isString(t))return t instanceof Image?(n.width||o.attr("width",t.width),n.height||o.attr("height",t.height),t):t instanceof HTMLElement&&f.isString(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS"?(n.width||o.attr("width",Number(t.getAttribute("width"))),n.height||o.attr("height",Number(t.getAttribute("height"))),t):t instanceof ImageData?(n.width||o.attr("width",t.width),n.height||o.attr("height",t.height),t):null;var e=new Image;e.onload=function(){if(o.get("destroyed"))return!1;o.attr("imgSrc",t),o.attr("img",e);var r=o.get("callback");r&&r.call(o),o.set("loading",!1)},e.src=t,e.crossOrigin="Anonymous",o.set("loading",!0)},drawInner:function(o){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(o),this._cfg.hasUpdate=!1)},_drawImage:function(o){var n=this._attrs,t=n.x,e=n.y,r=n.img,a=n.width,u=n.height,c=n.sx,s=n.sy,h=n.swidth,d=n.sheight;this.set("toDraw",!1);var v=r;if(v instanceof ImageData&&((v=new Image).src=r),v instanceof Image||v instanceof HTMLElement&&f.isString(v.nodeName)&&v.nodeName.toUpperCase()==="CANVAS"){if(f.isNil(c)||f.isNil(s)||f.isNil(h)||f.isNil(d))return void o.drawImage(v,t,e,a,u);if(!(f.isNil(c)||f.isNil(s)||f.isNil(h)||f.isNil(d)))return void o.drawImage(v,c,s,h,d,t,e,a,u)}}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=g(602),i=function o(n){o.superclass.constructor.call(this,n)};i.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},f.extend(i,p),f.augment(i,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var n=this._attrs,t=n.x,e=n.y,r=n.rs,a=n.re,u=n.startAngle,c=n.endAngle,s=n.clockwise,h=this.getHitLineWidth(),d=l.box(t,e,r,u,c,s),v=l.box(t,e,a,u,c,s),y=h/2;return{minX:Math.min(d.minX,v.minX)-y,minY:Math.min(d.minY,v.minY)-y,maxX:Math.max(d.maxX,v.maxX)+y,maxY:Math.max(d.maxY,v.maxY)+y}},createPath:function(n){var t=this._attrs,e=t.x,r=t.y,a=t.rs,u=t.re,c=t.startAngle,s=t.endAngle,h=t.clockwise,d={x:Math.cos(c)*a+e,y:Math.sin(c)*a+r},v={x:Math.cos(c)*u+e,y:Math.sin(c)*u+r},y={x:Math.cos(s)*a+e,y:Math.sin(s)*a+r};(n=n||self.get("context")).beginPath(),n.moveTo(d.x,d.y),n.lineTo(v.x,v.y),n.arc(e,r,u,c,s,h),n.lineTo(y.x,y.y),n.arc(e,r,a,s,c,!h),n.closePath()}}),M.exports=i},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};l.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.rx,r=o.ry,a=this.getHitLineWidth(),u=e+a/2,c=r+a/2;return{minX:n-u,minY:t-c,maxX:n+u,maxY:t+c}},createPath:function(o){var n=this._attrs,t=n.x,e=n.y,r=n.rx,a=n.ry;o=o||self.get("context");var u=r>a?r:a,c=r>a?1:r/a,s=r>a?a/r:1,h=[1,0,0,0,1,0,0,0,1];f.mat3.scale(h,h,[c,s]),f.mat3.translate(h,h,[t,e]),o.beginPath(),o.save(),o.transform(h[0],h[1],h[3],h[4],h[6],h[7]),o.arc(0,0,u,0,2*Math.PI),o.restore(),o.closePath()}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.width,r=o.height,a=this.getHitLineWidth()/2;return{minX:n-a,minY:t-a,maxX:n+e+a,maxY:t+r+a}}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};l.ATTRS={x:0,y:0,r:0,lineWidth:1},f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.r,r=this.getHitLineWidth()/2+e;return{minX:n-r,minY:t-r,maxX:n+r,maxY:t+r}},createPath:function(o){var n=this._attrs,t=n.x,e=n.y,r=n.r;o.beginPath(),o.arc(t,e,r,0,2*Math.PI,!1),o.closePath()}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=g(602),i=g(601);function o(e,r,a){return e+r*Math.cos(a)}function n(e,r,a){return e+r*Math.sin(a)}var t=function e(r){e.superclass.constructor.call(this,r)};t.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},f.extend(t,p),f.augment(t,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var r=this._attrs,a=r.x,u=r.y,c=r.r,s=r.startAngle,h=r.endAngle,d=r.clockwise,v=this.getHitLineWidth()/2,y=l.box(a,u,c,s,h,d);return y.minX-=v,y.minY-=v,y.maxX+=v,y.maxY+=v,y},getStartTangent:function(){var r=this._attrs,a=r.x,u=r.y,c=r.startAngle,s=r.r,h=r.clockwise,d=Math.PI/180;h&&(d*=-1);var v=[],y=o(a,s,c+d),m=n(u,s,c+d),b=o(a,s,c),w=n(u,s,c);return v.push([y,m]),v.push([b,w]),v},getEndTangent:function(){var r=this._attrs,a=r.x,u=r.y,c=r.endAngle,s=r.r,h=r.clockwise,d=Math.PI/180,v=[];h&&(d*=-1);var y=o(a,s,c+d),m=n(u,s,c+d),b=o(a,s,c),w=n(u,s,c);return v.push([b,w]),v.push([y,m]),v},createPath:function(r){var a=this._attrs,u=a.x,c=a.y,s=a.r,h=a.startAngle,d=a.endAngle,v=a.clockwise;(r=r||self.get("context")).beginPath(),r.arc(u,c,s,h,d,v)},afterPath:function(r){var a=this._attrs;if(r=r||this.get("context"),a.startArrow){var u=this.getStartTangent();i.addStartArrow(r,a,u[0][0],u[0][1],u[1][0],u[1][1])}if(a.endArrow){var c=this.getEndTangent();i.addEndArrow(r,a,c[0][0],c[0][1],c[1][0],c[1][1])}}}),M.exports=t},function(M,x){M.exports={xAt:function(f,p,l,i,o){return p*Math.cos(f)*Math.cos(o)-l*Math.sin(f)*Math.sin(o)+i},yAt:function(f,p,l,i,o){return p*Math.sin(f)*Math.cos(o)+l*Math.cos(f)*Math.sin(o)+i},xExtrema:function(f,p,l){return Math.atan(-l/p*Math.tan(f))},yExtrema:function(f,p,l){return Math.atan(l/(p*Math.tan(f)))}}},function(M,x,g){var f=g(19),p=f.vec2;function l(o,n,t,e){var r=1-e;return r*(r*o+2*e*n)+e*e*t}function i(o,n,t,e,r,a,u,c,s){var h,d,v,y,m,b,w,P=.005,S=1/0,O=[u,c];for(m=0;m<1;m+=.05)v=[l(o,t,r,m),l(n,e,a,m)],(d=p.squaredDistance(O,v))<S&&(h=m,S=d);for(S=1/0,w=0;w<32&&!(P<1e-4);w++){var A=h-P,E=h+P;v=[l(o,t,r,A),l(n,e,a,A)],d=p.squaredDistance(O,v),A>=0&&d<S?(h=A,S=d):(y=[l(o,t,r,E),l(n,e,a,E)],b=p.squaredDistance(O,y),E<=1&&b<S?(h=E,S=b):P*=.5)}return s&&(s.x=l(o,t,r,h),s.y=l(n,e,a,h)),Math.sqrt(S)}M.exports={at:l,projectPoint:function(n,t,e,r,a,u,c,s){var h={};return i(n,t,e,r,a,u,c,s,h),h},pointDistance:i,extrema:function(n,t,e){var r=n+e-2*t;if(f.isNumberEqual(r,0))return[.5];var a=(n-t)/r;return a<=1&&a>=0?[a]:[]}}},function(M,x,g){var f=g(19),p=g(746),l=g(745),i=g(744),o=g(116),n=function(e){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},f.assign(this._cfg,this.getDefaultCfg(),e),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};n.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},f.augment(n,p,l,o,i,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(e,r){return e==="zIndex"&&this._beforeSetZIndex&&this._beforeSetZIndex(r),e==="loading"&&this._beforeSetLoading&&this._beforeSetLoading(r),this._cfg[e]=r,this},setSilent:function(e,r){this._cfg[e]=r},get:function(e){return this._cfg[e]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(e,r){var a=this._cfg,u=a.parent,c=a.el;return u&&f.remove(u.get("children"),this),c&&(r?u&&u._cfg.tobeRemoved.push(c):c.parentNode.removeChild(c)),(e||e===void 0)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var e=this._cfg,r=e.parent;if(r){var a=r._cfg.children,u=e.el,c=a.indexOf(this);a.splice(c,1),a.push(this),u&&(u.parentNode.removeChild(u),e.el=null)}},toBack:function(){var e=this._cfg,r=e.parent;if(r){var a=r._cfg.children,u=e.el,c=a.indexOf(this);if(a.splice(c,1),a.unshift(this),u){var s=u.parentNode;s.removeChild(u),s.insertBefore(u,s.firstChild)}}},_beforeSetZIndex:function(e){var r=this._cfg.parent;this._cfg.zIndex=e,f.isNil(r)||r.sort();var a=this._cfg.el;if(a){var u=r._cfg.children,c=u.indexOf(this),s=a.parentNode;s.removeChild(a),c===u.length-1?s.appendChild(a):s.insertBefore(a,s.childNodes[c])}return e},_setAttrs:function(e){return this.attr(e),e},setZIndex:function(e){return this._cfg.zIndex=e,this._beforeSetZIndex(e)},clone:function(){return f.clone(this)},getBBox:function(){}}),M.exports=n},function(M,x,g){var f=g(19),p=g(641),l=g(743),i={},o="_INDEX";function n(e,r,a){for(var u,c=e.length-1;c>=0;c--){var s=e[c];if(s._cfg.visible&&s._cfg.capture&&(s.isGroup?u=s.getShape(r,a):s.isHit(r,a)&&(u=s)),u)break}return u}var t=function e(r){e.superclass.constructor.call(this,r),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};f.extend(t,p),f.augment(t,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return function r(a){if(!a._cfg&&a!==t){var u=a.superclass.constructor;u&&!u._cfg&&r(u),a._cfg={},f.merge(a._cfg,u._cfg),f.merge(a._cfg,a.CFG)}}(this.constructor),f.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(r,a){var u=this.get("canvas");a=a||{};var c=i[r];if(c||(c=f.upperFirst(r),i[r]=c),a.attrs&&u){var s=a.attrs;if(r==="text"){var h=u.get("fontFamily");h&&(s.fontFamily=s.fontFamily?s.fontFamily:h)}}a.canvas=u,a.type=r;var d=new l[c](a);return this.add(d),d},addGroup:function(r,a){var u,c=this.get("canvas");if(a=f.merge({},a),f.isFunction(r))a?(a.canvas=c,a.parent=this,u=new r(a)):u=new r({canvas:c,parent:this}),this.add(u);else if(f.isObject(r))r.canvas=c,u=new t(r),this.add(u);else{if(r!==void 0)return!1;u=new t,this.add(u)}return u},renderBack:function(r,a){var u=this.get("backShape"),c=this.getBBox();return f.merge(a,{x:c.minX-r[3],y:c.minY-r[0],width:c.width+r[1]+r[3],height:c.height+r[0]+r[2]}),u?u.attr(a):u=this.addShape("rect",{zIndex:-1,attrs:a}),this.set("backShape",u),this.sort(),u},removeChild:function(r,a){if(arguments.length>=2)this.contain(r)&&r.remove(a);else{if(arguments.length===1){if(!f.isBoolean(r))return this.contain(r)&&r.remove(!0),this;a=r}arguments.length===0&&(a=!0),t.superclass.remove.call(this,a)}return this},add:function(r){var a=this,u=a.get("children");if(f.isArray(r))f.each(r,function(h){var d=h.get("parent");d&&d.removeChild(h,!1),a._setCfgProperty(h)}),a._cfg.children=u.concat(r);else{var c=r,s=c.get("parent");s&&s.removeChild(c,!1),a._setCfgProperty(c),u.push(c)}return a},_setCfgProperty:function(r){var a=this._cfg;r.set("parent",this),r.set("canvas",a.canvas),a.timeline&&r.set("timeline",a.timeline)},contain:function(r){return this.get("children").indexOf(r)>-1},getChildByIndex:function(r){return this.get("children")[r]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var r=this.get("children").length-1;return this.getChildByIndex(r)},getBBox:function(){var r=1/0,a=-1/0,u=1/0,c=-1/0,s=this.get("children");s.length>0?f.each(s,function(d){if(d.get("visible")){if(d.isGroup&&d.get("children").length===0)return;var v=d.getBBox();if(!v)return!0;var y=[v.minX,v.minY,1],m=[v.minX,v.maxY,1],b=[v.maxX,v.minY,1],w=[v.maxX,v.maxY,1];d.apply(y),d.apply(m),d.apply(b),d.apply(w);var P=Math.min(y[0],m[0],b[0],w[0]),S=Math.max(y[0],m[0],b[0],w[0]),O=Math.min(y[1],m[1],b[1],w[1]),A=Math.max(y[1],m[1],b[1],w[1]);P<r&&(r=P),S>a&&(a=S),O<u&&(u=O),A>c&&(c=A)}}):(r=0,a=0,u=0,c=0);var h={minX:r,minY:u,maxX:a,maxY:c};return h.x=h.minX,h.y=h.minY,h.width=h.maxX-h.minX,h.height=h.maxY-h.minY,h},getCount:function(){return this.get("children").length},sort:function(){var r=this.get("children");return f.each(r,function(a,u){return a[o]=u,a}),r.sort(function(a){return function(u,c){var s=a(u,c);return s===0?u[o]-c[o]:s}}(function(a,u){return a.get("zIndex")-u.get("zIndex")})),this},findById:function(r){return this.find(function(a){return a.get("id")===r})},find:function(r){if(f.isString(r))return this.findById(r);var a=this.get("children"),u=null;return f.each(a,function(c){if(r(c)?u=c:c.find&&(u=c.find(r)),u)return!1}),u},findAll:function(r){var a=this.get("children"),u=[],c=[];return f.each(a,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},findBy:function(r){var a=this.get("children"),u=null;return f.each(a,function(c){if(r(c)?u=c:c.findBy&&(u=c.findBy(r)),u)return!1}),u},findAllBy:function(r){var a=this.get("children"),u=[],c=[];return f.each(a,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},getShape:function(r,a){var u,c=this._attrs.clip,s=this._cfg.children;if(c){var h=[r,a,1];c.invert(h,this.get("canvas")),c.isPointInPath(h[0],h[1])&&(u=n(s,r,a))}else u=n(s,r,a);return u},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var r=this._cfg.children,a=0;a<r.length;a++)r[a].clearTotalMatrix()}},clear:function(r){for(var a=this._cfg.children,u=a.length-1;u>=0;u--)a[u].remove(!0,r);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),t.superclass.destroy.call(this))},clone:function(){var r=this._cfg.children,a=new t;return f.each(r,function(u){a.add(u.clone())}),a}}),M.exports=t},function(M,x,g){var f=g(19),p=function(i,o,n,t){this.type=i,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=t,this.timeStamp=new Date().getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=o};f.augment(p,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return f.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),M.exports=p},function(M,x,g){M.exports={isFunction:g(84),isObject:g(621),isBoolean:g(653),isNil:g(237),isString:g(595),isArray:g(45),isNumber:g(236),isEmpty:g(647),uniqueId:g(646),clone:g(616),deepMix:g(615),assign:g(606),merge:g(615),upperFirst:g(655),each:g(46),isEqual:g(614),toArray:g(604),extend:g(650),augment:g(651),remove:g(676),isNumberEqual:g(673),toRadian:g(669),toDegree:g(671),mod:g(672),clamp:g(618),createDom:g(681),modifyCSS:g(680),requestAnimationFrame:g(679),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:g(617),vec2:g(668),vec3:g(667),transform:g(666)}},function(M,x,g){var f=g(16),p=g(253),l=g(251),i="Expected a function",o=Math.max,n=Math.min;M.exports=function(t,e,r){var a,u,c,s,h,d,v=0,y=!1,m=!1,b=!0;if(typeof t!="function")throw new TypeError(i);function w(E){var _=a,C=u;return a=u=void 0,v=E,s=t.apply(C,_)}function P(E){var _=E-d;return d===void 0||_>=e||_<0||m&&E-v>=c}function S(){var E=p();if(P(E))return O(E);h=setTimeout(S,function(_){var C=e-(_-d);return m?n(C,c-(_-v)):C}(E))}function O(E){return h=void 0,b&&a?w(E):(a=u=void 0,s)}function A(){var E=p(),_=P(E);if(a=arguments,u=this,d=E,_){if(h===void 0)return function(C){return v=C,h=setTimeout(S,e),y?w(C):s}(d);if(m)return h=setTimeout(S,e),w(d)}return h===void 0&&(h=setTimeout(S,e)),s}return e=l(e)||0,f(r)&&(y=!!r.leading,c=(m="maxWait"in r)?o(l(r.maxWait)||0,e):c,b="trailing"in r?!!r.trailing:b),A.cancel=function(){h!==void 0&&clearTimeout(h),v=0,a=d=u=h=void 0},A.flush=function(){return h===void 0?s:O(p())},A}},function(M,x){var g=function(){var f={};return function(p){return f[p=p||"g"]?f[p]+=1:f[p]=1,p+f[p]}}();M.exports=g},function(M,x,g){var f=g(237),p=g(118),l=g(654),i=g(652),o=Object.prototype.hasOwnProperty;M.exports=function(n){if(f(n))return!0;if(p(n))return!n.length;var t=l(n);if(t==="Map"||t==="Set")return!n.size;if(i(n))return!Object.keys(n).length;for(var e in n)if(o.call(n,e))return!1;return!0}},function(M,x,g){var f=g(46),p=g(45),l=Object.prototype.hasOwnProperty;M.exports=function(i,o){if(!o||!p(i))return i;var n={},t=null;return f(i,function(e){t=o(e),l.call(n,t)?n[t].push(e):n[t]=[e]}),n}},function(M,x,g){var f=g(84),p=g(45),l=g(648);M.exports=function(i,o){if(!o)return{0:i};if(!f(o)){var n=p(o)?o:o.replace(/\s+/g,"").split("*");o=function(e){for(var r="_",a=0,u=n.length;a<u;a++)r+=e[n[a]]&&e[n[a]].toString();return r}}return l(i,o)}},function(M,x,g){var f=g(84),p=g(606);M.exports=function(l,i,o,n){f(i)||(o=i,i=l,l=function(){});var t=Object.create?function(r,a){return Object.create(r,{constructor:{value:a}})}:function(r,a){function u(){}u.prototype=r;var c=new u;return c.constructor=a,c},e=t(i.prototype,l);return l.prototype=p(e,l.prototype),l.superclass=t(i.prototype,i),p(e,o),p(l,n),l}},function(M,x,g){var f=g(84),p=g(604),l=g(606);M.exports=function(i){for(var o=p(arguments),n=1;n<o.length;n++){var t=o[n];f(t)&&(t=t.prototype),l(i.prototype,t)}}},function(M,x){var g=Object.prototype;M.exports=function(f){var p=f&&f.constructor;return f===(typeof p=="function"&&p.prototype||g)}},function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"Boolean")}},function(M,x){var g={}.toString;M.exports=function(f){return g.call(f).replace(/^\[object /,"").replace(/\]$/,"")}},function(M,x,g){var f=g(594);M.exports=function(p){var l=f(p);return l.charAt(0).toUpperCase()+l.substring(1)}},function(M,x,g){var f=g(594);M.exports=function(p){return f(p).toUpperCase()}},function(M,x,g){var f=g(594);M.exports=function(p){return f(p).toLowerCase()}},function(M,x){M.exports=function(g,f){for(var p=[],l=0,i=g.length;i-2*!f>l;l+=2){var o=[{x:+g[l-2],y:+g[l-1]},{x:+g[l],y:+g[l+1]},{x:+g[l+2],y:+g[l+3]},{x:+g[l+4],y:+g[l+5]}];f?l?i-4===l?o[3]={x:+g[0],y:+g[1]}:i-2===l&&(o[2]={x:+g[0],y:+g[1]},o[3]={x:+g[2],y:+g[3]}):o[0]={x:+g[i-2],y:+g[i-1]}:i-4===l?o[3]=o[2]:l||(o[0]={x:+g[l],y:+g[l+1]}),p.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return p}},function(M,x){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},f=`
|
|
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,p=new RegExp("([a-z])["+f+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+f+"]*,?["+f+"]*)+)","ig"),l=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+f+"]*,?["+f+"]*","ig");M.exports=function(i){if(!i)return null;if((i===void 0?"undefined":g(i))===g([]))return i;var o={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(i).replace(p,function(t,e,r){var a=[],u=e.toLowerCase();if(r.replace(l,function(c,s){s&&a.push(+s)}),u==="m"&&a.length>2&&(n.push([e].concat(a.splice(0,2))),u="l",e=e==="m"?"l":"L"),u==="o"&&a.length===1&&n.push([e,a[0]]),u==="r")n.push([e].concat(a));else for(;a.length>=o[u]&&(n.push([e].concat(a.splice(0,o[u]))),o[u]););}),n}},function(M,x,g){var f=g(659),p=g(658);function l(i,o,n,t,e){var r=[];if(e===null&&t===null&&(t=n),i=+i,o=+o,n=+n,t=+t,e!==null){var a=Math.PI/180,u=i+n*Math.cos(-t*a),c=i+n*Math.cos(-e*a);r=[["M",u,o+n*Math.sin(-t*a)],["A",n,n,0,+(e-t>180),0,c,o+n*Math.sin(-e*a)]]}else r=[["M",i,o],["m",0,-t],["a",n,t,0,1,1,0,2*t],["a",n,t,0,1,1,0,-2*t],["z"]];return r}M.exports=function(i){if(!(i=f(i))||!i.length)return[["M",0,0]];var o=[],n=0,t=0,e=0,r=0,a=0,u=void 0,c=void 0;i[0][0]==="M"&&(e=n=+i[0][1],r=t=+i[0][2],a++,o[0]=["M",n,t]);for(var s,h,d=i.length===3&&i[0][0]==="M"&&i[1][0].toUpperCase()==="R"&&i[2][0].toUpperCase()==="Z",v=a,y=i.length;v<y;v++){if(o.push(s=[]),(u=(h=i[v])[0])!==u.toUpperCase())switch(s[0]=u.toUpperCase(),s[0]){case"A":s[1]=h[1],s[2]=h[2],s[3]=h[3],s[4]=h[4],s[5]=h[5],s[6]=+h[6]+n,s[7]=+h[7]+t;break;case"V":s[1]=+h[1]+t;break;case"H":s[1]=+h[1]+n;break;case"R":for(var m=2,b=(c=[n,t].concat(h.slice(1))).length;m<b;m++)c[m]=+c[m]+n,c[++m]=+c[m]+t;o.pop(),o=o.concat(p(c,d));break;case"O":o.pop(),(c=l(n,t,h[1],h[2])).push(c[0]),o=o.concat(c);break;case"U":o.pop(),o=o.concat(l(n,t,h[1],h[2],h[3])),s=["U"].concat(o[o.length-1].slice(-2));break;case"M":e=+h[1]+n,r=+h[2]+t;break;default:for(var w=1,P=h.length;w<P;w++)s[w]=+h[w]+(w%2?n:t)}else if(u==="R")c=[n,t].concat(h.slice(1)),o.pop(),o=o.concat(p(c,d)),s=["R"].concat(h.slice(-2));else if(u==="O")o.pop(),(c=l(n,t,h[1],h[2])).push(c[0]),o=o.concat(c);else if(u==="U")o.pop(),o=o.concat(l(n,t,h[1],h[2],h[3])),s=["U"].concat(o[o.length-1].slice(-2));else for(var S=0,O=h.length;S<O;S++)s[S]=h[S];if((u=u.toUpperCase())!=="O")switch(s[0]){case"Z":n=+e,t=+r;break;case"H":n=s[1];break;case"V":t=s[1];break;case"M":e=s[s.length-2],r=s[s.length-1];break;default:n=s[s.length-2],t=s[s.length-1]}}return o}},function(M,x,g){var f=g(660),p=function(o,n,t,e){return[o,n,t,e,t,e]},l=function(o,n,t,e,r,a){return[1/3*o+2/3*t,1/3*n+2/3*e,1/3*r+2/3*t,1/3*a+2/3*e,r,a]};M.exports=function(i,o){var n=f(i),t=o&&f(o),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a=[],u=[],c="",s="",h=void 0,d=function(A,E,_){var C=void 0,k=void 0;if(!A)return["C",E.x,E.y,E.x,E.y,E.x,E.y];switch(!(A[0]in{T:1,Q:1})&&(E.qx=E.qy=null),A[0]){case"M":E.X=A[1],E.Y=A[2];break;case"A":A=["C"].concat(function T(I,R,F,j,B,H,et,Q,J,K){F===j&&(F+=1);var nt=120*Math.PI/180,st=Math.PI/180*(+B||0),V=[],tt=void 0,$=void 0,ot=void 0,Y=void 0,L=void 0,D=function(Nt,kt,It){return{x:Nt*Math.cos(It)-kt*Math.sin(It),y:Nt*Math.sin(It)+kt*Math.cos(It)}};if(K)$=K[0],ot=K[1],Y=K[2],L=K[3];else{I=(tt=D(I,R,-st)).x,R=tt.y,Q=(tt=D(Q,J,-st)).x,J=tt.y,I===Q&&R===J&&(Q+=1,J+=1);var G=(I-Q)/2,U=(R-J)/2,X=G*G/(F*F)+U*U/(j*j);X>1&&(F*=X=Math.sqrt(X),j*=X);var q=F*F,ut=j*j,rt=(H===et?-1:1)*Math.sqrt(Math.abs((q*ut-q*U*U-ut*G*G)/(q*U*U+ut*G*G)));Y=rt*F*U/j+(I+Q)/2,L=rt*-j*G/F+(R+J)/2,$=Math.asin(((R-L)/j).toFixed(9)),ot=Math.asin(((J-L)/j).toFixed(9)),$=I<Y?Math.PI-$:$,ot=Q<Y?Math.PI-ot:ot,$<0&&($=2*Math.PI+$),ot<0&&(ot=2*Math.PI+ot),et&&$>ot&&($-=2*Math.PI),!et&&ot>$&&(ot-=2*Math.PI)}var at=ot-$;if(Math.abs(at)>nt){var pt=ot,gt=Q,z=J;ot=$+nt*(et&&ot>$?1:-1),V=T(Q=Y+F*Math.cos(ot),J=L+j*Math.sin(ot),F,j,B,0,et,gt,z,[ot,pt,Y,L])}at=ot-$;var Z=Math.cos($),lt=Math.sin($),it=Math.cos(ot),dt=Math.sin(ot),yt=Math.tan(at/4),wt=4/3*F*yt,Mt=4/3*j*yt,At=[I,R],xt=[I+wt*lt,R-Mt*Z],St=[Q+wt*dt,J-Mt*it],Et=[Q,J];if(xt[0]=2*At[0]-xt[0],xt[1]=2*At[1]-xt[1],K)return[xt,St,Et].concat(V);for(var Pt=[],Ot=0,Dt=(V=[xt,St,Et].concat(V).join().split(",")).length;Ot<Dt;Ot++)Pt[Ot]=Ot%2?D(V[Ot-1],V[Ot],st).y:D(V[Ot],V[Ot+1],st).x;return Pt}.apply(0,[E.x,E.y].concat(A.slice(1))));break;case"S":_==="C"||_==="S"?(C=2*E.x-E.bx,k=2*E.y-E.by):(C=E.x,k=E.y),A=["C",C,k].concat(A.slice(1));break;case"T":_==="Q"||_==="T"?(E.qx=2*E.x-E.qx,E.qy=2*E.y-E.qy):(E.qx=E.x,E.qy=E.y),A=["C"].concat(l(E.x,E.y,E.qx,E.qy,A[1],A[2]));break;case"Q":E.qx=A[1],E.qy=A[2],A=["C"].concat(l(E.x,E.y,A[1],A[2],A[3],A[4]));break;case"L":A=["C"].concat(p(E.x,E.y,A[1],A[2]));break;case"H":A=["C"].concat(p(E.x,E.y,A[1],E.y));break;case"V":A=["C"].concat(p(E.x,E.y,E.x,A[1]));break;case"Z":A=["C"].concat(p(E.x,E.y,E.X,E.Y))}return A},v=function(A,E){if(A[E].length>7){A[E].shift();for(var _=A[E];_.length;)a[E]="A",t&&(u[E]="A"),A.splice(E++,0,["C"].concat(_.splice(0,6)));A.splice(E,1),h=Math.max(n.length,t&&t.length||0)}},y=function(A,E,_,C,k){A&&E&&A[k][0]==="M"&&E[k][0]!=="M"&&(E.splice(k,0,["M",C.x,C.y]),_.bx=0,_.by=0,_.x=A[k][1],_.y=A[k][2],h=Math.max(n.length,t&&t.length||0))};h=Math.max(n.length,t&&t.length||0);for(var m=0;m<h;m++){n[m]&&(c=n[m][0]),c!=="C"&&(a[m]=c,m&&(s=a[m-1])),n[m]=d(n[m],e,s),a[m]!=="A"&&c==="C"&&(a[m]="C"),v(n,m),t&&(t[m]&&(c=t[m][0]),c!=="C"&&(u[m]=c,m&&(s=u[m-1])),t[m]=d(t[m],r,s),u[m]!=="A"&&c==="C"&&(u[m]="C"),v(t,m)),y(n,t,e,r,m),y(t,n,r,e,m);var b=n[m],w=t&&t[m],P=b.length,S=t&&w.length;e.x=b[P-2],e.y=b[P-1],e.bx=parseFloat(b[P-4])||e.x,e.by=parseFloat(b[P-3])||e.y,r.bx=t&&(parseFloat(w[S-4])||r.x),r.by=t&&(parseFloat(w[S-3])||r.y),r.x=t&&w[S-2],r.y=t&&w[S-1]}return t?[n,t]:n}},function(M,x){var g=/,?([a-z]),?/gi;M.exports=function(f){return f.join(",").replace(g,"$1")}},function(M,x,g){var f=g(662);M.exports=function(p,l,i,o,n){if(n)return[["M",+p+ +n,l],["l",i-2*n,0],["a",n,n,0,0,1,n,n],["l",0,o-2*n],["a",n,n,0,0,1,-n,n],["l",2*n-i,0],["a",n,n,0,0,1,-n,-n],["l",0,2*n-o],["a",n,n,0,0,1,n,-n],["z"]];var t=[["M",p,l],["l",i,0],["l",0,o],["l",-i,0],["z"]];return t.parsePathArray=f,t}},function(M,x,g){var f=g(46),p=g(84),l=Object.values?function(i){return Object.values(i)}:function(i){var o=[];return f(i,function(n,t){p(i)&&t==="prototype"||o.push(n)}),o};M.exports=l},function(M,x){M.exports=function(g,f){return g.hasOwnProperty(f)}},function(M,x,g){var f=g(616),p=g(46),l=g(617);M.exports=function(i,o){return i=f(i),p(o,function(n){switch(n[0]){case"t":l.translate(i,i,[n[1],n[2]]);break;case"s":l.scale(i,i,[n[1],n[2]]);break;case"r":l.rotate(i,i,n[1]);break;case"m":l.multiply(i,i,n[1]);break;default:return!1}}),i}},function(M,x,g){var f=g(254);M.exports=f},function(M,x,g){var f=g(255),p=g(618);f.angle=function(l,i){var o=f.dot(l,i)/(f.length(l)*f.length(i));return Math.acos(p(o,-1,1))},f.direction=function(l,i){return l[0]*i[1]-i[0]*l[1]},f.angleTo=function(l,i,o){var n=f.angle(l,i),t=f.direction(l,i)>=0;return o?t?2*Math.PI-n:n:t?n:2*Math.PI-n},f.vertical=function(l,i,o){return o?(l[0]=i[1],l[1]=-1*i[0]):(l[0]=-1*i[1],l[1]=i[0]),l},M.exports=f},function(M,x){var g=Math.PI/180;M.exports=function(f){return g*f}},function(M,x){M.exports=parseInt},function(M,x){var g=180/Math.PI;M.exports=function(f){return g*f}},function(M,x){M.exports=function(g,f){return(g%f+f)%f}},function(M,x){M.exports=function(g,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-5;return Math.abs(g-f)<p}},function(M,x,g){var f=g(46),p=g(605);M.exports=function(l){var i=[];return f(l,function(o){p(i,o)||i.push(o)}),i}},function(M,x,g){var f=g(118),p=Array.prototype.splice;M.exports=function(l,i){if(!f(l))return[];for(var o=l?i.length:0,n=o-1;o--;){var t=void 0,e=i[o];o!==n&&e===t||(t=e,p.call(l,e,1))}return l}},function(M,x){var g=Array.prototype,f=g.splice,p=g.indexOf,l=g.slice;M.exports=function(i){for(var o=l.call(arguments,1),n=0;n<o.length;n++)for(var t=o[n],e=-1;(e=p.call(i,t))>-1;)f.call(i,e,1);return i}},function(M,x,g){var f=g(46),p=g(84),l=Object.keys?function(i){return Object.keys(i)}:function(i){var o=[];return f(i,function(n,t){p(i)&&t==="prototype"||o.push(t)}),o};M.exports=l},function(M,x,g){var f=g(677),p=g(237);M.exports=function(l,i){var o=f(i),n=o.length;if(p(l))return!n;for(var t=0;t<n;t+=1){var e=o[t];if(i[e]!==l[e]||!(e in l))return!1}return!0}},function(M,x){M.exports=function(g){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(f){return setTimeout(f,16)})(g)}},function(M,x){M.exports=function(g,f){if(g)for(var p in f)f.hasOwnProperty(p)&&(g.style[p]=f[p]);return g}},function(M,x){var g=document.createElement("table"),f=document.createElement("tr"),p=/^\s*<(\w+|!)[^>]*>/,l={tr:document.createElement("tbody"),tbody:g,thead:g,tfoot:g,td:f,th:f,"*":document.createElement("div")};M.exports=function(i){var o=p.test(i)&&RegExp.$1;o in l||(o="*");var n=l[o];i=i.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+i;var t=n.childNodes[0];return n.removeChild(t),t}},function(M,x,g){var f=g(257),p={isBetween:function(i,o,n){return i>=o&&i<=n},getLineIntersect:function(i,o,n,t){var e=n.x-i.x,r=n.y-i.y,a=o.x-i.x,u=o.y-i.y,c=t.x-n.x,s=t.y-n.y,h=a*s-u*c,d=null;if(h*h>.001*(a*a+u*u)*(c*c+s*s)){var v=(e*s-r*c)/h,y=(e*u-r*a)/h;p.isBetween(v,0,1)&&p.isBetween(y,0,1)&&(d={x:i.x+v*a,y:i.y+v*u})}return d},getIntersectPointRect:function(i,o){var n=i.minX,t=i.minY,e=i.maxX-i.minX,r=i.maxY-i.minY,a=[],u={x:n+e/2,y:t+r/2};a.push({x:n,y:t}),a.push({x:n+e,y:t}),a.push({x:n+e,y:t+r}),a.push({x:n,y:t+r}),a.push({x:n,y:t});for(var c=null,s=1;s<a.length&&!(c=p.getLineIntersect(a[s-1],a[s],u,o));s++);return c},getIntersectPointCircle:function(i,o,n,t,e){if(Math.sqrt(Math.pow(i-n,2)+Math.pow(o-t,2))<e)return null;var r=i-n,a=o-t,u=Math.sign(r),c=Math.sign(a),s=Math.atan(a/r);return{x:n+Math.abs(e*Math.cos(s))*u,y:t+Math.abs(e*Math.sin(s))*c}},applyMatrix:function(i,o,n){n===void 0&&(n=1);var t=[i.x,i.y,n];return f.vec3.transformMat3(t,t,o),{x:t[0],y:t[1]}},invertMatrix:function(i,o,n){n===void 0&&(n=1);var t=f.mat3.invert([],o),e=[i.x,i.y,n];return f.vec3.transformMat3(e,e,t),{x:e[0],y:e[1]}},radixSort:function(i,o){var n,t,e,r,a,u,c,s=10,h=1,d=[],v=1;for(e=0;e<i.length;e++)n=o(i[e]),t=(n=parseInt(n,10)).toString().length,n.toString().length>v&&(v=t);for(e=0;e<v;e++,h*=10,s*=10){for(r=0;r<i.length;r++)a=o(i[r]),d[a=parseInt(a%s/h,10)]===void 0&&(d[a]=[]),d[a].push(i[r]);for(u=0,r=0;r<d.length;r++)if(c=void 0,d[r]!==void 0)for(c=d[r].shift();c!==void 0;)i[u++]=c,c=d[r].shift()}return i},getArcOfVectors:function(i,o){var n=i.x,t=i.y,e=o.x,r=o.y,a=Math.sqrt(n*n+t*t),u=Math.sqrt(e*e+r*r);return Math.acos((n*e+t*r)/(a*u))}};M.exports=f.mix({},f,p)},function(M,x,g){var f=g(258);f.registerShapeManager("node",{defaultShapeType:"common"}),f.registerShapeManager("edge",{defaultShapeType:"common"}),f.registerShapeManager("group",{defaultShapeType:"common"}),f.registerShapeManager("guide",{defaultShapeType:"common"}),g(724),g(721),g(719),g(717),M.exports=f},function(M,x,g){var f=g(247),p=g(609),l=g(26);setTimeout(function(){var i=f.track;if(f.track){var o=new Image,n={pg:document.URL,r:new Date().getTime(),g6:!0,version:p,page_type:"syslog"};l.isObject(i)&&l.mix(n,i);var t=encodeURIComponent(JSON.stringify([n]));o.src="https://kcart.alipay.com/web/bi.do?BIProfile=merge&d="+t}},2e3)},function(M,x,g){var f=g(598),p=function(l){function i(o){var n;return(n=l.call(this,o)||this).layout=f.mindmap,n}return function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}(i,l),i}(g(597));M.exports=p},function(M,x,g){var f=g(598),p=function(l){function i(o){var n;return(n=l.call(this,o)||this).layout=f.indented,n}return function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}(i,l),i}(g(597));M.exports=p},function(M,x,g){var f=g(598),p=function(l){function i(o){var n;return(n=l.call(this,o)||this).layout=f.dendrogram,n}return function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}(i,l),i}(g(597));M.exports=p},function(M,x,g){var f=g(598),p=function(l){function i(o){var n;return(n=l.call(this,o)||this).layout=f.compactBox,n}return function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}(i,l),i}(g(597));M.exports=p},function(M,x,g){var f=g(26),p=g(625),l=g(623),i=function(o){function n(e){var r=f.mix({layout:new l.CompactBoxTree({getHGap:function(){return 10},getVGap:function(){return 10}}),_type:"tree"},e);return o.call(this,r)||this}(function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r})(n,o);var t=n.prototype;return t.initEvent=function(){var e=this;this.on("afterdrawinner",function(){e.get("_sourceData").roots.forEach(function(r){var a=e.find(r.id);e._setVisibleByCollapsed(a)})})},t._executeLayout=function(e){var r=this.get("_sourceData");f.isFunction(e)?e(r.roots,this):f.isObject(e)&&(e.roots=r.roots,e.graph=this,e.execute())},t.getHierarchy=function(e){e=this.getItem(e);for(var r=this.get("_dataMap"),a=e.getModel().parent,u=1;a;)a=r[a].parent,u++;return u},t.parseSource=function(e){var r=e.roots,a=this.get("_dataMap"),u=[],c=[];if(!r)throw new Error("please set data.roots!");return r.forEach(function(s){f.traverseTree(s,function(h,d){h.id||(h.id=f.guid()),d||(d=a[h.parent]),d&&(h.parent=d.id,d.id||(d.id=f.guid()),c.push({source:d.id,target:h.id,id:d.id+"-"+h.id})),u.push(h)},function(h){return h.children},!0)}),{nodes:u,edges:c}},t._setVisibleByCollapsed=function(e){var r=e.getModel();e.collapsedParent?(e.hide(),e.getEdges().forEach(function(a){a.hide()}),e.deepEach(function(a){a.hide(),a.getEdges().forEach(function(u){u.hide()})})):r.collapsed?e.deepEach(function(a){a.hide(),a.getEdges().forEach(function(u){u.hide()})}):e.deepEach(function(a){a.collapsedParent&&(a.hide(),a.getEdges().forEach(function(u){u.hide()}))})},t.source=function(e){var r=this.parseSource(e);this.emit("beforesource"),this.set("_sourceData",e),this.set("_data",r),this.emit("aftersource")},t._setNodeNth=function(e,r){var a=(e=this.getItem(e)).getModel(),u=e.getParent().getModel().children;f.Array.remove(u,a),u.splice(r,0,a)},t.getNth=function(e){var r=(e=this.getItem(e)).getModel();return e.getParent().getModel().children.indexOf(r)},t.add=function(e,r){var a,u=this.get("_dataMap")[r.parent],c={action:"add",model:r};if(e==="node"||e==="guide"){if(this.emit("beforechange",c),e==="node"){if(!u)throw new Error("please set available parent Id !");f.isArray(u.children)?u.children.push(r):u.children=[r];var s=this.parseSource({roots:[r]});this._addItems("node",s.nodes),this._addItems("edge",s.edges),a=this.find(r.id),this._setVisibleByCollapsed(a),f.isNil(r.nth)||this._setNodeNth(a,r.nth),this.find(u.id).forceUpdate()}else this._addItems(e,[r]),a=this.find(r.id);return c.item=a,this.emit("afterchange",c),a}console.warn("Tree do not support add type "+e+"!")},t.update=function(e,r){var a=this;if(r){var u=(e=this.getItem(e)).getModel(),c=f.mix({},u),s={action:"update",item:e,originModel:c,updateModel:r};if(this.emit("beforechange",s),this._updateItems([e],[r]),e.isNode){if("collapsed"in r&&(r.collapsed?e.deepEach(function(b){b.hide(),b.getEdges().forEach(function(w){w.hide()})}):e.deepEach(function(b){b.show(),b.getInEdges().forEach(function(w){w.show()})},function(b){return b.model.collapsed?null:b.getChildren()})),r.parent&&r.parent!==c.parent){var h=this.find(c.parent).getModel(),d=this.find(r.parent).getModel(),v=this.find(h.id+"-"+c.id),y={id:d.id+"-"+c.id,source:d.id,target:c.id};f.Array.remove(h.children,u),d.children?d.children.push(u):d.children=[u],this._removeItems([v]),this._addItems("edge",[y]),this.find(d.id).forceUpdate()}f.isArray(r.children)&&(c.children&&f.each(c.children,function(b){var w=a.find(b.id),P=[w];w.getEdges().forEach(function(S){P.push(S)}),a._removeItems(P)}),f.each(r.children,function(b){var w=a.parseSource({roots:[b]}),P=f.isNil(b.id)?f.guid():b.id;a._addItems("node",w.nodes),a._addItems("edge",w.edges),!b.parent&&a._addItems("edge",[{id:c.id+"-"+P,source:c.id,target:P}])})),f.isNil(r.nth)||this._setNodeNth(e,r.nth);var m=this.find(u.parent);m&&m.forceUpdate()}return this.emit("afterchange",s),this}},t.remove=function(e){var r=this.get("_dataMap"),a=[];if((e=this.getItem(e))&&!e.destroyed){var u={action:"remove",item:e};if(this.emit("beforechange",u),a.push(e),e.type==="node"){e.getEdges().forEach(function(h){a.push(h)});var c=e.getModel(),s=r[c.parent];e.deepEach(function(h){a.push(h),h.getEdges().forEach(function(d){a.push(d)})}),f.Array.remove(s.children,c),this.find(s.id).forceUpdate()}return this._removeItems(f.uniq(a)),this.emit("afterchange",u),this}},t.getRoots=function(){var e=this;return this.getSource().roots.map(function(r){return e.find(r.id)})},t.save=function(){var e={roots:f.clone(this.getSource().roots),guides:this.getGuides().map(function(r){return r.getModel()})};return e.roots.length===0&&delete e.roots,e.guides.length===0&&delete e.guides,e},n}(p);M.exports=i},function(M,x,g){var f=g(26),p={INIT:"_initForceFit"};p.AUGMENT={_initForceFit:function(){var i=this.get("width"),o=this.get("height");return i||o?i?o?void 0:(this.forceFit("height"),void this._bindForceEvent("height")):(this.forceFit("width"),void this._bindForceEvent("width")):(this.forceFit(),void this._bindForceEvent())},_bindForceEvent:function(i){var o=this,n=this._getTimer("forceFit"),t=function(){var r=setTimeout(function(){o.forceFit(i)},200);n&&clearTimeout(n),o._setTimer("forceFit",r)};window.addEventListener("resize",t),this.set("_windowForceResizeEvent",t)},forceFit:function(i){var o=this.get("_containerDOM"),n=this.get("width"),t=this.get("height"),e=f.getHeight(o),r=f.getWidth(o);return i==="width"?(this.changeSize(r,t),this):i==="height"?(this.changeSize(n,e),this):(this.changeSize(r,e),this)}},M.exports=p},function(M,x,g){var f=g(26),p={CFG:{fitView:void 0,fitViewPadding:10,minZoom:.2,maxZoom:10}};p.AUGMENT={getBBox:function(){var i=this.get("_itemGroup"),o=this.get("_itemMap"),n=i.get("children");return n.length>0?(n=n.filter(function(t){var e=o[t.id];return!!e&&e.getShapeObj().bboxCalculation!==!1}),f.getChildrenBBox(n)):{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},getFitViewPadding:function(){return f.toAllPadding(this.get("fitViewPadding"))},setFitView:function(i){if(!i)return this;if(i==="autoZoom")return this.autoZoom(),this;var o=this.getFitViewPadding(),n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=e.maxX-e.minX,a=e.maxY-e.minY,u={x:0,y:0,width:n,height:t},c=f.getNineBoxPosition(i,u,r,a,o),s=[1,0,0,0,1,0,0,0,1];f.mat3.translate(s,s,[-e.minX+c.x,-e.minY+c.y]),this.updateMatrix(s)},_getZoomRatio:function(i){var o=this.get("maxZoom"),n=this.get("minZoom");return i<n&&(i=n),i>o&&(i=o),i},autoZoom:function(i){var o=this;i||(i=this.getFitViewPadding());var n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=f.getAutoZoomMatrix({minX:0,minY:0,maxX:n,maxY:t},e,i,function(a){return o._getZoomRatio(a)});this.updateMatrix(r)},getZoom:function(){return this.getMatrix()[0]},updateMatrix:function(i){var o=this.getMatrix(),n={updateMatrix:i,originMatrix:o},t=o[0]!==i[0];return this.emit("beforeviewportchange",n),t&&this.emit("beforezoom",n),this.setMatrix(i),t&&this.emit("afterzoom",n),this.emit("afterviewportchange",n),this.draw(),this},zoom:function(i,o){if(!f.isNumber(i)){o=this._getZoomRatio(o);var n=this.get("_rootGroup"),t=f.clone(n.getMatrix()),e=t[6]+t[0]*i.x-o*i.x,r=t[7]+t[0]*i.y-o*i.y;return t[6]=0,t[7]=0,t[0]=o,t[4]=o,f.mat3.translate(t,t,[e,r]),this.updateMatrix(t),this}var a=this.get("width"),u=this.get("height");this.zoomByDom({x:a/2,y:u/2},i)},zoomByDom:function(i,o){var n=this.getPoint(i);return this.zoom(n,o),this},translate:function(i,o){var n=this.get("_rootGroup").getMatrix();return f.mat3.translate(n,n,[i,o]),this.updateMatrix(n),this},translateByDom:function(i,o){var n=this.get("_rootGroup").getMatrix()[0];return this.translate(i/n,o/n),this},getMatrix:function(){return this.get("_rootGroup").getMatrix()},setMatrix:function(i){this.get("_rootGroup").setMatrix(i)},getPoint:function(i){return this.getPointByDom(i)},getPointByDom:function(i){var o=this.get("_rootGroup").getMatrix();return f.invertMatrix(i,o)},getPointByCanvas:function(i){var o=this.get("_canvas").get("pixelRatio");return this.getPoint({x:i.x/o,y:i.y/o})},getPointByClient:function(i){var o=this.get("_canvas").getPointByClient(i.x,i.y);return this.getPointByCanvas(o)},getDomPoint:function(i){var o=this.get("_rootGroup").getMatrix();return f.applyMatrix(i,o)},getCanvasPoint:function(i){var o=this.get("_canvas").get("pixelRatio"),n=this.getDomPoint(i);return{x:n.x*o,y:n.y*o}},getClientPoint:function(i){var o=this.getCanvasPoint(i),n=this.get("_canvas").getClientByPoint(o.x,o.y);return{x:n.clientX,y:n.clientY}},focus:function(i){if(f.isString(i)&&(i=this.find(i)),i){var o=i.getCenter();this.focusPoint(o)}return this},focusPoint:function(i){var o=this.get("_rootGroup").getMatrix(),n=this.get("width"),t=this.get("height"),e=-o[6]+n/2-o[0]*i.x,r=-o[7]+t/2-o[0]*i.y;return this.translate(e,r),this},focusPointByDom:function(i){var o=this.getPoint(i);return this.focusPoint(o),this}},M.exports=p},function(M,x){var g={INIT:"_initDraw",AUGMENT:{_initDraw:function(){var p=this,l=this.get("_controllers").animate;["clear","show","hide","change","updatenodeposition"].forEach(function(i){l&&p.on("before"+i,function(o){var n=p.get("_forcePreventAnimate"),t=o?o.affectedItemIds:void 0;n!==!0&&l&&l.cacheGraph("startCache",t)}),p.on("after"+i,function(o){var n=o?o.affectedItemIds:void 0,t=p.get("_forcePreventAnimate");if(o&&o.action==="changeData"){var e=p.get("fitView");e&&p.setFitView(e)}t!==!0&&l?(l.cacheGraph("endCache",n),l.run()):p.draw()})})},draw:function(){this.get("_canvas").draw()},animateDraw:function(){this.get("_controllers").animate.run()}}};M.exports=g},function(M,x,g){var f=g(247);function p(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),a=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.transform([["t",-a,-u],["s",.01/c,.01/c],["t",a,u]]),e.animate({transform:[["t",-a,-u],["s",100*c,100*c],["t",a,u]]},f.enterDuration,f.enterEasing,t)}function l(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),a=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.animate({transform:[["t",-a,-u],["s",.01/c,.01/c],["t",a,u]]},f.leaveDuration,f.leaveEasing,t)}function i(n,t){n.deepEach(function(e){if(e.isShape){var r=e.attr("fillOpacity"),a=e.attr("strokeOpacity");e.attr({fillOpacity:0,strokeOpacity:0}),e.animate({fillOpacity:r,strokeOpacity:a},f.enterDuration,f.enterEasing,t)}})}function o(n,t){n.deepEach(function(e){var r=e.attr("fillOpacity"),a=e.attr("strokeOpacity");e.isShape&&e.animate({fillOpacity:0,strokeOpacity:0},f.leaveDuration,f.leaveEasing,function(){e.attr({fillOpacity:r,strokeOpacity:a}),t()})})}M.exports={enterScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&p(e)},showScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&p(e)},leaveScaleOut:function(t){var e=t.item,r=t.element,a=t.done;r.isItemContainer&&l(e,function(){a()})},hideScaleOut:function(t){var e=t.item,r=t.element,a=t.done;r.isItemContainer&&l(e,function(){a()})},enterFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&i(e)},showFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&i(e)},leaveFadeOut:function(t){var e=t.element,r=t.item,a=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,a)},hideFadeOut:function(t){var e=t.element,r=t.item,a=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,a)}}},function(M,x,g){function f(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var p=g(599),l=g(693),i=g(26),o=g(247),n=["matrix","fillStyle","strokeStyle","endArrow","startArrow"],t=function(e){function r(){return e.apply(this,arguments)||this}(function(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c})(r,e);var a=r.prototype;return a.getDefaultCfg=function(){return{show:"scaleIn",hide:"scaleOut",enter:"scaleIn",leave:"scaleOut",update:function(c){var s=c.element,h=c.endKeyFrame.props;s.animate(function(d){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{},m=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(m=m.concat(Object.getOwnPropertySymbols(y).filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable}))),m.forEach(function(b){f(d,b,y[b])})}return d}({matrix:h.matrix},h.attrs),o.updateDuration,o.updateEasing)},graph:null,startCache:{},endCache:{},keykeyCache:{}}},a._init=function(){var u=this,c=this.graph,s=this.keykeyCache;c.on("afteritemdraw",function(h){h.item.getGraphicGroup().deepEach(function(d){s[d.gid]=u._getCache(d)},!0)})},a.cacheGraph=function(u,c){var s,h=this,d=this.graph;s=c?c.map(function(v){return d.find(v)}):d.getItems(),this[u]={},s.forEach(function(v){v&&h.cache(v,h[u],u)})},a._getCache=function(u){var c=this.keykeyCache;if(!i.isObject(u))return c[u];var s={props:{matrix:i.clone(u.getMatrix()),attrs:{}}};if(u.isShape){var h=u.attr();h=i.omit(h,n),s.props.attrs=i.clone(h)}return s},a._getAnimation=function(u,c){var s=this.graph,h=u.shapeObj,d=this[c],v=h[c+"Animation"]||h[c+"Animate"],y=s.get("_"+c+"Animation"),m=v||y||d;return i.isString(m)?l[c+i.upperFirst(m)]:m},a.cache=function(u,c,s){var h=this;u.getGraphicGroup().deepEach(function(d){var v=d.gid,y=s==="startCache"?h._getCache(d):h._getCache(d.gid);y.enterAnimate=h._getAnimation(u,"enter"),y.leaveAnimate=h._getAnimation(u,"leave"),y.showAnimate=h._getAnimation(u,"show"),y.hideAnimate=h._getAnimation(u,"hide"),y.updateAnimate=h._getAnimation(u,"update"),y.item=u,y.element=d,y.visible=d.get("visible"),c[v]=y},!0)},a._compare=function(){var u=this.startCache,c=this.endCache,s=[],h=[],d=[],v=[],y=[];i.each(c,function(m,b){var w=u[b];w?w.element.get("type")===m.element.get("type")&&(w.visible&&m.visible?d.push(b):w.visible&&!m.visible?v.push(b):!w.visible&&m.visible&&y.push(b)):s.push(b)}),i.each(u,function(m,b){c[b]||h.push(b)}),this.enterElements=s,this.leaveElements=h,this.updateElements=d,this.hideElements=v,this.showElements=y},a._addTween=function(){var u=this.enterElements,c=this.leaveElements,s=this.updateElements,h=this.hideElements,d=this.showElements,v=this.startCache,y=this.endCache;u.forEach(function(m){var b=y[m],w=b.enterAnimate;w&&w({element:b.element,item:b.item,endKeyFrame:b,startKeyFrame:null,startCache:v,endCache:y,done:function(){}})}),c.forEach(function(m){var b=v[m],w=b.leaveAnimate;if(w){var P=v[m].element;P.isItemContainer&&P.getParent().add(P),w({element:P,item:b.item,endKeyFrame:null,startKeyFrame:b,startCache:v,endCache:y,done:function(){P.isItemContainer&&P.remove()}})}}),s.forEach(function(m){var b=y[m],w=v[m],P=b.element,S=w.element,O=w.props,A=b.props,E=b.updateAnimate;O.attrs&&P.attr(O.attrs),i.isEqual(O.matrix,A.matrix)||P.setMatrix(O.matrix),E({element:P,item:b,endKeyFrame:b,startKeyFrame:w,startCache:v,endCache:y,done:function(){}}),S!==P&&S.remove()}),h.forEach(function(m){var b=y[m],w=v[m],P=b.hideAnimate;P&&(b.element.show(),P({element:b.element,item:b.item,endKeyFrame:b,startKeyFrame:w,startCache:v,endCache:y,done:function(){var O=b.item,A=O.getGraphicGroup();!O.visible&&A.hide()}}))}),d.forEach(function(m){var b=y[m],w=v[m],P=b.showAnimate;P&&P({element:b.element,item:b.item,endKeyFrame:b,startKeyFrame:w,startCache:v,endCache:y,done:function(){}})})},a.run=function(){this.graph.destroyed||(this._compare(),this._addTween())},r}(p);M.exports=t},function(M,x,g){function f(o,n,t){return n in o?Object.defineProperty(o,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[n]=t,o}var p=g(26),l=g(694),i={INIT:"_initAnimate",CFG:{animate:!1}};i.AUGMENT={_initAnimate:function(){var n=this.get("animate");if(n){var t=this.get("_controllers"),e={graph:this};p.isPlainObject(n)&&(e=function(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{},c=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(u).filter(function(s){return Object.getOwnPropertyDescriptor(u,s).enumerable}))),c.forEach(function(s){f(r,s,u[s])})}return r}({},e,n)),t.animate=new l(e)}}},M.exports=i},function(M,x,g){var f=g(26),p={INIT:"_initFilter",CFG:{filters:[]}};p.AUGMENT={_initFilter:function(){var i=this,o=this.get("filters");f.isFunction(o)&&this.set("filters",[o]),this.on("afterchange",function(n){var t=n.action;o.length>0&&t==="changeData"&&!i.destroyed&&i.filter()})},addFilter:function(i){return this.get("filters").push(i),i},removeFilter:function(i){var o=this.get("filters");this.set("filters",f.filter(o,i))},filter:function(){this.emit("beforefilter");var i=this.get("filters"),o=this.getItems(),n=this._getFilterItems();i.forEach(function(t){n=n.filter(t)}),o.forEach(function(t){n.indexOf(t)===-1?t.hide():t.show()}),this.draw(),this.emit("afterfilter")},_getFilterItems:function(){return this.getItems().filter(function(i){return i.getShapeObj().filter!==!1})}},M.exports=p},function(M,x,g){var f=g(26),p=g(626),l={CFG:{modes:{default:[]},mode:"default",_eventCache:{}},INIT:"_initModes"};l.AUGMENT={_initModes:function(){var o=this.get("mode");this.changeMode(o)},changeMode:function(o){var n=this.get("modes");f.isEmpty(n)||f.isEmpty(n[o])||(p.resetMode(n[o],this),this.set("mode",o))},addBehaviour:function(o,n){var t=this.get("modes");n=n||this.get("mode"),f.isEmpty(t[n])&&(t[n]=[]);var e=t[n],r=[].concat(o);return f.each(r,function(a){e.indexOf(a)===-1&&e.push(a)}),p.resetMode(t[n],this),this},removeBehaviour:function(o){var n=this.get("modes"),t=this.get("mode"),e=n[t];if(!f.isEmpty(e)){var r=[].concat(o);return e=e.filter(function(a){return r.indexOf(a)===-1}),n[t]=e,p.resetMode(e,this),this}},behaviourOn:function(o,n){var t=this._eventCache;t[o]||(t[o]=[]),t[o].push(n),this.on(o,n)},_off:function(){var o=this,n=this._eventCache;f.each(n,function(t,e){f.each(t,function(r){o.off(e,r)})}),this._eventCache={}}},M.exports=l},function(M,x,g){var f=g(599),p=g(26),l={MOUSEMOVE:"mousemove",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",CLICK:"click",DBLCLICK:"dblclick",DRAGSTART:"dragstart",DRAG:"drag",DRAGENTER:"dragenter",DRAGLEAVE:"dragleave",DRAGEND:"dragend",DROP:"drop",CONTEXTMENU:"contextmenu",WHEEL:"wheel",KEYDOWN:"keydown",KEYUP:"keyup",KEYPRESS:"keypress",MOUSEWHEEL:"mousewheel"},i=[l.DBLCLICK,l.MOUSEDOWN,l.MOUSEUP,l.MOUSEENTER,l.MOUSELEAVE,l.MOUSEMOVE,l.CONTEXTMENU,l.WHEEL,l.MOUSEWHEEL],o=[l.KEYDOWN,l.KEYUP,l.KEYPRESS],n=function(t){function e(a){var u;return(u=t.call(this,a)||this)._domEvents=[],u._initEventStates(),u._registerEvents(),u}(function(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,a.__proto__=u})(e,t);var r=e.prototype;return r._initEventStates=function(){this._pressing=!1,this._dragging=!1,this._currentEventObj={},this._dragEventObj={}},r._registerEvents=function(){this._registerMouseEvents(),this._registerKeyboardEvents()},r._registerKeyboardEvents=function(){var a=this.graph,u=a.getKeyboardEventWrapper(),c=this._domEvents,s=a.get("keyboardEnable");p.each(o,function(h){c.push(p.addEventListener(u,h,function(d){var v=!0;p.isFunction(s)&&(v=s()),v&&a.emit(h,{domEvent:d})}))})},r._registerMouseEvents=function(){var a=this,u=this,c=this.graph.getMouseEventWrapper(),s=this._domEvents;p.each(i,function(h){s.push(p.addEventListener(c,h,function(d){if(d.type!==l.MOUSEENTER||!d.fromElement||d.fromElement.parentNode&&!function(m,b){for(var w=m.parentNode;w;){if(w.tagName===b)return!0;w=w.parentNode}return!1}(d.fromElement,"foreignObject")){var v=a._currentEventObj;a._oldEventObj=v,a._processEventObj(d);var y=a._currentEventObj;u._simulateEvents(d,v,y),[l.MOUSELEAVE,l.MOUSEENTER].indexOf(d.type)!==-1&&u._triggerEvent("canvas:"+d.type),u._triggerEvent(d.type),d.type===l.MOUSELEAVE&&(a._dragging&&u._triggerEvent(l.DRAGLEAVE,p.mix({},y,{item:null,shape:null,currentItem:a._dragEventObj.item,currentShape:a._dragEventObj.shape})),u._initEventStates())}}))})},r.destroy=function(){var a=this._domEvents;p.each(a,function(u){u&&u.remove()}),this._domEvents=null},r._triggerEvent=function(a,u){if(u||(u=a==="mouseleave"?this._oldEventObj:this._currentEventObj),a==="mousedown"&&(u.button=this._button),u._type=a,this.emitGraphEvent(a,u),["canvas:"+l.MOUSELEAVE,"canvas:"+l.MOUSEENTER].indexOf(a)===-1){var c=u.shape&&u.shape.eventPreFix;if([l.DRAGSTART,l.DRAG,l.DRAGEND].indexOf(a)!==-1&&(c=u.currentShape&&u.currentShape.eventPreFix),c){var s=c+":"+a;u._type=s,p.isBoolean(u._isItemChange)?u._isItemChange&&this.emitGraphEvent(s,u):this.emitGraphEvent(s,u)}}},r.emitGraphEvent=function(a,u){this.graph.emit(a,u)},r._getDistanceToPress=function(a){return Math.pow(a.clientX-this._pressX,2)+Math.pow(a.clientY-this._pressY,2)},r._simulateEvents=function(a,u,c){u===void 0&&(u={}),c===void 0&&(c={});var s=this._dragEventObj.item,h=this._dragEventObj.shape;switch(a.type){case l.MOUSEDOWN:this._pressing=!0,this._button=a.button,this._pressX=a.clientX,this._pressY=a.clientY;break;case l.MOUSEMOVE:if(this._dragging){if(this._triggerEvent(l.DRAG,p.mix({},c,{button:this._button,currentItem:s,currentShape:h})),u.shape!==c.shape){var d=this._isItemChange(u,c);u.shape&&this._triggerEvent(l.DRAGLEAVE,p.mix({},c,{button:this._button,item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,currentItem:s,currentShape:h,_isItemChange:d})),c.shape&&this._triggerEvent(l.DRAGENTER,p.mix({},c,{button:this._button,currentItem:s,currentShape:h,fromItem:u.item,fromShape:u.shape,_isItemChange:d}))}}else this._pressing&&this._getDistanceToPress(a)>9&&(this._dragging=!0,this._dragEventObj=u,s=this._dragEventObj.item,h=this._dragEventObj.shape,this._triggerEvent(l.DRAGSTART,p.mix({},u,{button:this._button,currentItem:s,currentShape:h})));if(u.shape!==c.shape){var v=this._isItemChange(u,c);u.shape&&this._triggerEvent(l.MOUSELEAVE,p.mix({},c,{item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,_isItemChange:v})),c.shape&&this._triggerEvent(l.MOUSEENTER,p.mix({},c,{fromtItem:u.item,fromShape:u.shape,_isItemChange:v}))}break;case l.MOUSEUP:!this._dragging&&this._pressing?this._triggerEvent(l.CLICK,p.mix({},c,{button:this._button})):(this._triggerEvent(l.DROP,p.mix({},c,{button:this._button,currentItem:s,currentShape:h})),this._triggerEvent(l.DRAGEND,p.mix({},c,{button:this._button,currentItem:s,currentShape:h}))),this._pressing=!1,this._dragging=!1,this._dragEventObj={};break;default:return}},r._isItemChange=function(a,u){var c=a.shape,s=u.shape,h=c&&s&&(c.get("isItemChange")||s.get("isItemChange"));return h?h(s,c):p.isObject(a.item)&&p.isObject(u.item)?a.item.id!==u.item.id:a.item!==u.item},r._processEventObj=function(a){var u=this.graph.get("_canvas"),c=this._getEventObj(a,u);this._currentEventObj=c},r._parsePoint=function(a,u){return this.graph.getPointByCanvas({x:a,y:u})},r._getEventObj=function(a,u){var c=this.graph,s=a.clientX,h=a.clientY,d=u.getPointByClient(s,h),v=this._parsePoint(d.x,d.y),y=u.getShape(d.x,d.y,a),m=c.getItemByShape(y),b=u.get("pixelRatio");return{item:m,shape:y,x:v.x,y:v.y,domX:d.x/b,domY:d.y/b,domEvent:a}},e}(f);M.exports=n},function(M,x,g){var f={},p=g(698);f.INIT="_initEvents",f.CFG={keyboardEnable:!0},f.AUGMENT={_initEvents:function(){this.get("_controllers").events=new p({graph:this})}},M.exports=f},function(M,x,g){var f=g(26),p={};p.AUGMENT={find:function(i){return this.get("_itemMap")[i]},getNodes:function(){return this.get("_itemMap")._nodes},getEdges:function(){return this.get("_itemMap")._edges},getGroups:function(){return this.get("_itemMap")._groups},getGuides:function(){return this.get("_itemMap")._guides},getItems:function(){var i=this.get("_itemMap"),o=[];return f.each(i,function(n){n.type&&o.push(n)}),o},getItemByShape:function(i){return i?this.getItem(i.id):null},getItem:function(i){var o=this.get("_itemMap");return f.isObject(i)?i.destroyed&&(i=o[i.id]):i=o[i],i}},M.exports=p},function(M,x,g){var f=g(599),p=g(26),l=["color","shape","size","label","style"],i=function(o){function n(){return o.apply(this,arguments)||this}(function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r})(n,o);var t=n.prototype;return t._init=function(){var e=this,r={};p.each(l,function(a){r[a]={},e[a]=function(u){return r[a].input=u,e}}),this.channels=r},t.addChannels=function(e){var r=this.channels;p.each(e,function(a,u){r[u]={input:a}})},t.mapping=function(e){var r=this.channels;p.each(r,function(a,u){p.isFunction(a.input)?e[u]=a.input(e):a.input&&(e[u]=a.input)})},n}(f);M.exports=i},function(M,x,g){var f=g(701),p={INIT:"_initMapper"};p.AUGMENT={_initMapper:function(){var i=this.get("_controllers");i.nodeMapper=new f({graph:this}),i.edgeMapper=new f({graph:this}),i.groupMapper=new f({graph:this}),i.guideMapper=new f({graph:this})},node:function(i){var o=this._getController("nodeMapper");return i&&o.addChannels(i),o},edge:function(i){var o=this._getController("edgeMapper");return i&&o.addChannels(i),o},group:function(i){var o=this._getController("groupMapper");return i&&o.addChannels(i),this._getController("groupMapper")},guide:function(i){var o=this._getController("guideMapper");return i&&o.addChannels(i),this._getController("guideMapper")}},M.exports=p},function(M,x,g){var f=function(p){function l(){return p.apply(this,arguments)||this}(function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n})(l,p);var i=l.prototype;return i.getDefaultCfg=function(){return{graph:null,auto:!0,processor:null}},i._init=function(){var o=this,n=this.graph;n.on("afteritemdraw",function(t){var e=t.item,r=e.getKeyShape(),a=e.getModel();if(e.isEdge)a.lineWidth=r.attr("lineWidth");else if(e.isNode||e.isGroup){var u=e.getBBox();a.width=u.width,a.height=u.height}}),n.on("afterchange",function(t){var e=t.action;o.auto==="once"?e==="changeData"&&(n.destroyed||n.preventAnimate(function(){o.layout()})):o.auto&&!n.destroyed&&n.preventAnimate(function(){o.layout()})})},i.changeLayout=function(o){this.processor=o,this.layout()},i.layout=function(){var o=this.graph,n=this.getLayoutProcessor();o.emit("beforelayout");var t=o.getNodes().filter(function(a){return a.isVisible()}).map(function(a){return a.getModel()}),e=o.getEdges().filter(function(a){return a.isVisible()}).map(function(a){return a.getModel()}),r=o.getGroups().filter(function(a){return a.isVisible()}).map(function(a){return a.getModel()});o._executeLayout(n,t,e,r),o.updateNodePosition(),o.emit("afterlayout")},i.getLayoutProcessor=function(){return this.processor?this.processor:this.processer},l}(g(599));M.exports=f},function(M,x,g){var f=g(26),p=g(703),l={CFG:{layout:void 0},INIT:"_initLayout"};l.AUGMENT={_initLayout:function(){var o=this.get("_controllers"),n=this._getLayoutCfg();n&&(o.layout=new p(f.mix({graph:this},n)))},_getLayoutCfg:function(){var o=this.get("layout");return f.isPlainObject(o)?o:f.isFunction(o)||f.isObject(o)?{processor:o}:null},layout:function(){return this._getController("layout").layout(),this},updateNodePosition:function(o){var n=this.getGuides(),t=[],e=[];return this.emit("beforeupdatenodeposition"),o?(o.forEach(function(r){r.getEdges().forEach(function(u){e.push(u)});var a=r.getParent();a&&t.push(a)}),e=f.uniq(e),t=f.uniq(t)):(o=this.getNodes(),t=this.getGroups(),e=this.getEdges()),o.forEach(function(r){r.layoutUpdate()}),t.forEach(function(r){r.layoutUpdate()}),e.forEach(function(r){r.layoutUpdate()}),n.forEach(function(r){r.layoutUpdate()}),this.emit("afterupdatenodeposition"),this},changeLayout:function(o){return this._getController("layout").changeLayout(o),this},getLayout:function(){return this._getController("layout").getLayoutProcessor()}},M.exports=l},function(M,x,g){(function(f){"use strict";var p=function(){return{escape:function(v){return v.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:s,mimeType:function(v){var y=s(v).toLowerCase();return function(){var m="application/font-woff";return{woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}()[y]||""},dataAsUrl:function(v,y){return"data:"+y+";base64,"+v},isDataUrl:function(v){return v.search(/^(data:)/)!==-1},canvasToBlob:function(v){return v.toBlob?new Promise(function(y){v.toBlob(y)}):function(y){return new Promise(function(m){for(var b=window.atob(y.toDataURL().split(",")[1]),w=b.length,P=new Uint8Array(w),S=0;S<w;S++)P[S]=b.charCodeAt(S);m(new Blob([P],{type:"image/png"}))})}(v)},resolveUrl:function(v,y){var m=document.implementation.createHTMLDocument(),b=m.createElement("base");m.head.appendChild(b);var w=m.createElement("a");return m.body.appendChild(w),b.href=y,w.href=v,w.href},getAndEncode:function(v){var y=3e4;return t.impl.options.cacheBust&&(v+=(/\?/.test(v)?"&":"?")+new Date().getTime()),new Promise(function(m){var b,w=new XMLHttpRequest;if(w.onreadystatechange=function(){if(w.readyState===4){if(w.status!==200)return void(b?m(b):S("cannot fetch resource: "+v+", status: "+w.status));var O=new FileReader;O.onloadend=function(){var A=O.result.split(/,/)[1];m(A)},O.readAsDataURL(w.response)}},w.ontimeout=function(){b?m(b):S("timeout of "+y+"ms occured while fetching resource: "+v)},w.responseType="blob",w.timeout=y,w.open("GET",v,!0),w.send(),t.impl.options.imagePlaceholder){var P=t.impl.options.imagePlaceholder.split(/,/);P&&P[1]&&(b=P[1])}function S(O){console.error(O),m("")}})},uid:function(){var d=0;return function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+d++}}(),delay:function(v){return function(y){return new Promise(function(m){setTimeout(function(){m(y)},v)})}},asArray:function(v){for(var y=[],m=v.length,b=0;b<m;b++)y.push(v[b]);return y},escapeXhtml:function(v){return v.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(v){return new Promise(function(y,m){var b=new Image;b.onload=function(){y(b)},b.onerror=m,b.src=v})},width:function(v){var y=h(v,"border-left-width"),m=h(v,"border-right-width");return v.scrollWidth+y+m},height:function(v){var y=h(v,"border-top-width"),m=h(v,"border-bottom-width");return v.scrollHeight+y+m}};function s(d){var v=/\.([^\.\/]*?)$/g.exec(d);return v?v[1]:""}function h(d,v){var y=window.getComputedStyle(d).getPropertyValue(v);return parseFloat(y.replace("px",""))}}(),l=function(){var s=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(m,b,w){return h(m)?Promise.resolve(m).then(d).then(function(P){var S=Promise.resolve(m);return P.forEach(function(O){S=S.then(function(A){return v(A,O,b,w)})}),S}):Promise.resolve(m)},shouldProcess:h,impl:{readUrls:d,inline:v}};function h(y){return y.search(s)!==-1}function d(y){for(var m,b=[];(m=s.exec(y))!==null;)b.push(m[1]);return b.filter(function(w){return!p.isDataUrl(w)})}function v(y,m,b,w){return Promise.resolve(m).then(function(P){return b?p.resolveUrl(P,b):P}).then(w||p.getAndEncode).then(function(P){return p.dataAsUrl(P,p.mimeType(m))}).then(function(P){return y.replace(function(S){return new RegExp(`(url\\(['"]?)(`+p.escape(S)+`)(['"]?\\))`,"g")}(m),"$1"+P+"$3")})}}(),i=function(){return{resolveAll:function(){return s(document).then(function(d){return Promise.all(d.map(function(v){return v.resolve()}))}).then(function(d){return d.join(`
|
|
`)})},impl:{readAll:s}};function s(){return Promise.resolve(p.asArray(document.styleSheets)).then(function(d){var v=[];return d.forEach(function(y){try{p.asArray(y.cssRules||[]).forEach(v.push.bind(v))}catch(m){console.log("Error while reading CSS rules from "+y.href,m.toString())}}),v}).then(function(d){return d.filter(function(v){return v.type===CSSRule.FONT_FACE_RULE}).filter(function(v){return l.shouldProcess(v.style.getPropertyValue("src"))})}).then(function(d){return d.map(h)});function h(d){return{resolve:function(){var y=(d.parentStyleSheet||{}).href;return l.inlineAll(d.cssText,y)},src:function(){return d.style.getPropertyValue("src")}}}}}(),o=function(){return{inlineAll:function h(d){return d instanceof Element?function(v){var y=v.style.getPropertyValue("background");return y?l.inlineAll(y).then(function(m){v.style.setProperty("background",m,v.style.getPropertyPriority("background"))}).then(function(){return v}):Promise.resolve(v)}(d).then(function(){return d instanceof HTMLImageElement?s(d).inline():Promise.all(p.asArray(d.childNodes).map(function(v){return h(v)}))}):Promise.resolve(d)},impl:{newImage:s}};function s(h){return{inline:function(v){return p.isDataUrl(h.src)?Promise.resolve():Promise.resolve(h.src).then(v||p.getAndEncode).then(function(y){return p.dataAsUrl(y,p.mimeType(h.src))}).then(function(y){return new Promise(function(m,b){h.onload=m,h.onerror=b,h.src=y})})}}}}(),n={imagePlaceholder:void 0,cacheBust:!1},t={toSvg:e,toPng:function(h,d){return r(h,d||{}).then(function(v){return v.toDataURL()})},toJpeg:function(h,d){return r(h,d=d||{}).then(function(v){return v.toDataURL("image/jpeg",d.quality||1)})},toBlob:function(h,d){return r(h,d||{}).then(p.canvasToBlob)},toPixelData:function(h,d){return r(h,d||{}).then(function(v){return v.getContext("2d").getImageData(0,0,p.width(h),p.height(h)).data})},impl:{fontFaces:i,images:o,util:p,inliner:l,options:{}}};function e(s,h){return function(d){d.imagePlaceholder===void 0?t.impl.options.imagePlaceholder=n.imagePlaceholder:t.impl.options.imagePlaceholder=d.imagePlaceholder,d.cacheBust===void 0?t.impl.options.cacheBust=n.cacheBust:t.impl.options.cacheBust=d.cacheBust}(h=h||{}),Promise.resolve(s).then(function(d){return function(v,y,m){return!m&&y&&!y(v)?Promise.resolve():Promise.resolve(v).then(function(b){return b instanceof HTMLCanvasElement?p.makeImage(b.toDataURL()):b.cloneNode(!1)}).then(function(b){return function(w,P,S){var O=w.childNodes;return O.length===0?Promise.resolve(P):function(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return a(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}(P,p.asArray(O),S).then(function(){return P})}(v,b,y)}).then(function(b){return function(w,P){return P instanceof Element?Promise.resolve().then(function(){(function(S,O){S.cssText?O.cssText=S.cssText:function(A,E){p.asArray(A).forEach(function(_){E.setProperty(_,A.getPropertyValue(_),A.getPropertyPriority(_))})}(S,O)})(window.getComputedStyle(w),P.style)}).then(function(){[":before",":after"].forEach(function(S){(function(O){var A=window.getComputedStyle(w,O),E=A.getPropertyValue("content");if(E!==""&&E!=="none"){var _=p.uid();P.className=P.className+" "+_;var C=document.createElement("style");C.appendChild(function(k,T,I){var R="."+k+":"+T,F=I.cssText?function(j){var B=j.getPropertyValue("content");return j.cssText+" content: "+B+";"}(I):function(j){return p.asArray(j).map(function(B){return B+": "+j.getPropertyValue(B)+(j.getPropertyPriority(B)?" !important":"")}).join("; ")+";"}(I);return document.createTextNode(R+"{"+F+"}")}(_,O,A)),P.appendChild(C)}})(S)})}).then(function(){w instanceof HTMLTextAreaElement&&(P.innerHTML=w.value),w instanceof HTMLInputElement&&P.setAttribute("value",w.value)}).then(function(){P instanceof SVGElement&&(P.setAttribute("xmlns","http://www.w3.org/2000/svg"),P instanceof SVGRectElement&&["width","height"].forEach(function(S){var O=P.getAttribute(S);O&&P.style.setProperty(S,O)}))}).then(function(){return P}):P}(v,b)})}(d,h.filter,!0)}).then(u).then(c).then(function(d){return h.bgcolor&&(d.style.backgroundColor=h.bgcolor),h.width&&(d.style.width=h.width+"px"),h.height&&(d.style.height=h.height+"px"),h.style&&Object.keys(h.style).forEach(function(v){d.style[v]=h.style[v]}),d}).then(function(d){return function(v,y,m){return Promise.resolve(v).then(function(b){return b.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(b)}).then(p.escapeXhtml).then(function(b){return'<foreignObject x="0" y="0" width="100%" height="100%">'+b+"</foreignObject>"}).then(function(b){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+y+'" height="'+m+'">'+b+"</svg>"}).then(function(b){return"data:image/svg+xml;charset=utf-8,"+b})}(d,h.width||p.width(s),h.height||p.height(s))})}function r(s,h){return e(s,h).then(p.makeImage).then(p.delay(100)).then(function(d){var v=function(y){var m=document.createElement("canvas");if(m.width=h.width||p.width(y),m.height=h.height||p.height(y),h.bgcolor){var b=m.getContext("2d");b.fillStyle=h.bgcolor,b.fillRect(0,0,m.width,m.height)}return m}(s);return v.getContext("2d").drawImage(d,0,0),v})}function a(s,h,d){if(!d&&h&&!h(s))return Promise.resolve();return Promise.resolve(s).then(v).then(function(b){return y(s,b,h)}).then(function(b){return m(s,b)});function v(b){return b instanceof HTMLCanvasElement?p.makeImage(b.toDataURL()):b.cloneNode(!1)}function y(b,w,P){var S=b.childNodes;return S.length===0?Promise.resolve(w):function(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return a(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}(w,p.asArray(S),P).then(function(){return w});function O(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return a(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}}function m(b,w){return w instanceof Element?Promise.resolve().then(function(){(function(E,_){E.cssText?_.cssText=E.cssText:function(C,k){p.asArray(C).forEach(function(T){k.setProperty(T,C.getPropertyValue(T),C.getPropertyPriority(T))})}(E,_)})(window.getComputedStyle(b),w.style)}).then(function(){[":before",":after"].forEach(function(E){(function(_){var C=window.getComputedStyle(b,_),k=C.getPropertyValue("content");if(!(k===""||k==="none")){var T=p.uid();w.className=w.className+" "+T;var I=document.createElement("style");I.appendChild(function(R,F,j){var B="."+R+":"+F,H=j.cssText?function(et){var Q=et.getPropertyValue("content");return et.cssText+" content: "+Q+";"}(j):function(et){return p.asArray(et).map(function(Q){return Q+": "+et.getPropertyValue(Q)+(et.getPropertyPriority(Q)?" !important":"")}).join("; ")+";"}(j);return document.createTextNode(B+"{"+H+"}")}(T,_,C)),w.appendChild(I)}})(E)})}).then(function(){b instanceof HTMLTextAreaElement&&(w.innerHTML=b.value),b instanceof HTMLInputElement&&w.setAttribute("value",b.value)}).then(function(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);_&&w.style.setProperty(E,_)}))}).then(function(){return w}):w;function P(){function E(_,C){_.cssText?C.cssText=_.cssText:k(_,C);function k(T,I){p.asArray(T).forEach(function(R){I.setProperty(R,T.getPropertyValue(R),T.getPropertyPriority(R))})}}E(window.getComputedStyle(b),w.style)}function S(){function E(_){var C=window.getComputedStyle(b,_),k=C.getPropertyValue("content");if(k===""||k==="none")return;var T=p.uid();w.className=w.className+" "+T;var I=document.createElement("style");function R(F,j,B){var H="."+F+":"+j,et=B.cssText?Q(B):J(B);return document.createTextNode(H+"{"+et+"}");function Q(K){var nt=K.getPropertyValue("content");return K.cssText+" content: "+nt+";"}function J(K){return p.asArray(K).map(nt).join("; ")+";";function nt(st){return st+": "+K.getPropertyValue(st)+(K.getPropertyPriority(st)?" !important":"")}}}I.appendChild(R(T,_,C)),w.appendChild(I)}[":before",":after"].forEach(function(_){E(_)})}function O(){b instanceof HTMLTextAreaElement&&(w.innerHTML=b.value),b instanceof HTMLInputElement&&w.setAttribute("value",b.value)}function A(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);!_||w.style.setProperty(E,_)}))}}}function u(s){return i.resolveAll().then(function(h){var d=document.createElement("style");return s.appendChild(d),d.appendChild(document.createTextNode(h)),s})}function c(s){return o.inlineAll(s).then(function(){return s})}M.exports=t})()},function(M,x,g){function f(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var p=g(26),l=g(248),i=g(705),o=function(){function n(e){this.options=function(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{},c=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(u).filter(function(s){return Object.getOwnPropertyDescriptor(u,s).enumerable}))),c.forEach(function(s){f(r,s,u[s])})}return r}({graph:null,width:null,height:null,canvas:null,beforeTransform:function(){},afterTransform:function(){},drawCount:0},e)}var t=n.prototype;return t.getCanvas=function(){var e=this.options,r=e.width,a=e.height,u=e.canvas;if(!u){var c=p.createDOM("<canvas></canvas>");u=new l.Canvas({containerDOM:c,width:r,height:a})}return u.drawCount||(u.drawCount=0),u},t.drawInner=function(e,r){var a=this.options.graph,u=a.getCanvas(),c=a.get("renderer"),s=e.drawCount;if(c==="svg"){var h=[];u.deepEach(function(d){d.get("type")==="dom"&&h.push(d)}),h.length>0?h.forEach(function(d){var v=d.get("el");if(v){d.domImageOnload=!1;var y=d.attr("width"),m=d.attr("height");i.toPng(v,{width:y,height:m}).then(function(b){var w=new Image;w.src=b,w.onload=function(){if(s===e.drawCount-1){d.domImage=w,d.domImageOnload=!0;for(var P=0;P<h.length;P++){var S=h[P];if(!S.domImageOnload||S.get("destroyed"))break;S.domImageOnload&&P===h.length-1&&r()}}}})}}):r()}else r();e.drawCount+=1},t.toCanvas=function(){var e=this.options,r=e.graph,a=e.width,u=e.height,c=e.beforeTransform,s=e.limitRatio,h=e.afterTransform,d=this.getCanvas(),v=r.getBBox(),y=p.clone(r.getMatrix()),m=r.getFitViewPadding(),b=r.getCanvas(),w=p.getAutoZoomMatrix({minX:0,minY:0,maxX:a,maxY:u},v,m,s);return this.drawInner(d,function(){var P=b.get("children");d.set("children",P),c(w,y),r.setMatrix(w),d.draw(),r.setMatrix(y),h(w,y)}),d.matrix=w,d.get("el")},n}();M.exports=o},function(M,x,g){var f=g(26),p=function(l){function i(o){var n={type:"guide",isGuide:!0,zIndex:4};return f.mix(n,o),l.call(this,n)||this}return function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n}(i,l),i}(g(608));M.exports=p},function(M,x,g){var f=g(26),p=function(l){function i(n){var t={type:"group",isNode:!1,isGroup:!0,zIndex:1};return f.mix(t,n),l.call(this,t)||this}(function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t})(i,l);var o=i.prototype;return o._beforeDraw=function(){this.deepEach(function(n,t){t&&(n.zIndex=t.zIndex+1),n.updateCollapsedParent(),n.collapsedParent?n.hide():n.show()}),this.getInnerEdges().forEach(function(n){n.linkedItemVisible()?n.show():n.hide()}),l.prototype._beforeDraw.call(this)},o.updatePosition=function(){},o._shouldDraw=function(){return!0},o.getCrossEdges=function(){var n=[],t=this.getInnerEdges();this.deepEach(function(r){n.push(r.id)});var e=t.filter(function(r){var a=r.getModel();return n.indexOf(a.source)===-1||n.indexOf(a.target)===-1});return f.uniq(e)},o.getInnerEdges=function(){var n=[];return this.deepEach(function(t){t.getEdges().forEach(function(e){n.push(e)})}),f.uniq(n)},o.getChildrenBBox=function(){var n=this.getChildren().map(function(t){return t.getGraphicGroup()});return f.getChildrenBBox(n)},i}(g(624));M.exports=p},function(M,x,g){function f(i,o,n){return o in i?Object.defineProperty(i,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[o]=n,i}var p=g(26),l=function(i){function o(t){var e={type:"edge",isEdge:!0,zIndex:2};return p.mix(e,t),i.call(this,e)||this}(function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e})(o,i);var n=o.prototype;return n._init=function(){i.prototype._init.call(this)},n._beforeDraw=function(){var t=this.model,e=this.itemMap;p.isObject(t.source)?this.source=t.source:this.source=e[t.source],p.isObject(t.target)?this.target=t.target:this.target=e[t.target],i.prototype._beforeDraw.call(this)},n._afterDraw=function(){this.linkedItemVisible()||this.hide(),this._addArrow(),i.prototype._afterDraw.call(this)},n._addArrow=function(){var t=this.model,e=this.keyShape;if(e.get("type")==="path"){var r=this.shapeObj,a=e.attr("endArrow"),u=e.attr("startArrow"),c=t.endArrow||a,s=t.startArrow||u;u&&e.attr("startArrow",!1),a&&e.attr("endArrow",!1),c&&this._drawArrow(r.endArrow,"end"),s&&this._drawArrow(r.startArrow,"start")}},n._drawArrow=function(t,e){var r=t.path,a=t.shorten,u=t.tangent,c=t.ratio,s=t.style;u=u(this),a=a(this),r=r(this),s=s(this),c=c();var h=this.group,d=this.keyShape,v=p.parsePathString(d.attr("path")),y=v[v.length-1],m=v[0],b=d.getPoint(c);if(b&&!isNaN(b.x)){var w=h.addShape("path",{attrs:function(C){for(var k=1;k<arguments.length;k++){var T=arguments[k]!=null?arguments[k]:{},I=Object.keys(T);typeof Object.getOwnPropertySymbols=="function"&&(I=I.concat(Object.getOwnPropertySymbols(T).filter(function(R){return Object.getOwnPropertyDescriptor(T,R).enumerable}))),I.forEach(function(R){f(C,R,T[R])})}return C}({path:r},s)}),P=u[1][0]-u[0][0],S=u[1][1]-u[0][1],O=a/Math.sqrt(P*P+S*S),A=[-P*O,-S*O],E=0,_=Math.atan(P/S);S===0&&P<0?E=Math.PI:P>0&&S>0?E=Math.PI/2-_:P<0&&S<0?E=-Math.PI/2-_:P>=0&&S<0?E=-_-Math.PI/2:P<=0&&S>0&&(E=Math.PI/2-_),w.rotate(E),w.translate(b.x,b.y),e==="end"?(y[y.length-1]=A[1]+b.y,y[y.length-2]=A[0]+b.x):(m[m.length-1]=A[1]+b.y,m[m.length-2]=A[0]+b.x),d.attr("path",v),this[e+"Arrow"]=w}},n._getControlPoints=function(){var t=this.model.controlPoints;return p.isArray(t)?t:[]},n._shouldDraw=function(){return i.prototype._shouldDraw.call(this)&&this.linkedItemVisible()},n._getPoint=function(t){if(t.isItem){var e=t.getBBox();return{x:e.centerX,y:e.centerY}}return{x:t.x,y:t.y}},n.linkedItemVisible=function(){var t=this.source,e=this.target;return p.isPlainObject(t)||p.isPlainObject(e)||t.isVisible()||e.isVisible()||t.collapsedParent!==e.collapsedParent},n.getSource=function(){var t=this.source,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getTarget=function(){var t=this.target,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getPoints=function(){var t=this.getSource(),e=this.getTarget(),r=this.model,a=this._getControlPoints(),u=this._getPoint(t),c=this._getPoint(e),s=[u].concat(a).concat([c]),h=s.length;if(t.isItem){var d=p.isNumber(this.model.sourceAnchor)&&t.id===r.source?this.model.sourceAnchor:s[1],v=t.getLinkPoints(d);s[0]=v[0]}if(e.isItem){var y=p.isNumber(this.model.targetAnchor)&&e.id===r.target?this.model.targetAnchor:s[h-2],m=e.getLinkPoints(y);s[h-1]=m[0]}return s},n.destroy=function(){var t=this.itemMap,e=this.model,r=t[e.source],a=t[e.target];r&&r.isItem&&p.Array.remove(r.edges,this),a&&a.isItem&&p.Array.remove(a.edges,this),i.prototype.destroy.call(this)},o}(g(608));M.exports=l},function(M,x,g){M.exports={Node:g(624),Edge:g(709),Group:g(708),Guide:g(707)}},function(M,x,g){var f;/*!
|
|
* EventEmitter v5.2.5 - git.io/ee
|
|
* Unlicense - http://unlicense.org/
|
|
* Oliver Caldwell - http://oli.me.uk/
|
|
* @preserve
|
|
*/(function(p){"use strict";function l(){}var i=l.prototype,o=p.EventEmitter;function n(e,r){for(var a=e.length;a--;)if(e[a].listener===r)return a;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}i.getListeners=function(e){var r,a,u=this._getEvents();if(e instanceof RegExp)for(a in r={},u)u.hasOwnProperty(a)&&e.test(a)&&(r[a]=u[a]);else r=u[e]||(u[e]=[]);return r},i.flattenListeners=function(e){var r,a=[];for(r=0;r<e.length;r+=1)a.push(e[r].listener);return a},i.getListenersAsObject=function(e){var r,a=this.getListeners(e);return a instanceof Array&&((r={})[e]=a),r||a},i.addListener=function(e,r){if(!function s(h){return typeof h=="function"||h instanceof RegExp||!(!h||typeof h!="object")&&s(h.listener)}(r))throw new TypeError("listener must be a function");var a,u=this.getListenersAsObject(e),c=typeof r=="object";for(a in u)u.hasOwnProperty(a)&&n(u[a],r)===-1&&u[a].push(c?r:{listener:r,once:!1});return this},i.on=t("addListener"),i.addOnceListener=function(e,r){return this.addListener(e,{listener:r,once:!0})},i.once=t("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var r=0;r<e.length;r+=1)this.defineEvent(e[r]);return this},i.removeListener=function(e,r){var a,u,c=this.getListenersAsObject(e);for(u in c)c.hasOwnProperty(u)&&(a=n(c[u],r))!==-1&&c[u].splice(a,1);return this},i.off=t("removeListener"),i.addListeners=function(e,r){return this.manipulateListeners(!1,e,r)},i.removeListeners=function(e,r){return this.manipulateListeners(!0,e,r)},i.manipulateListeners=function(e,r,a){var u,c,s=e?this.removeListener:this.addListener,h=e?this.removeListeners:this.addListeners;if(typeof r!="object"||r instanceof RegExp)for(u=a.length;u--;)s.call(this,r,a[u]);else for(u in r)r.hasOwnProperty(u)&&(c=r[u])&&(typeof c=="function"?s.call(this,u,c):h.call(this,u,c));return this},i.removeEvent=function(e){var r,a=typeof e,u=this._getEvents();if(a==="string")delete u[e];else if(e instanceof RegExp)for(r in u)u.hasOwnProperty(r)&&e.test(r)&&delete u[r];else delete this._events;return this},i.removeAllListeners=t("removeEvent"),i.emitEvent=function(e,r){var a,u,c,s,h=this.getListenersAsObject(e);for(s in h)if(h.hasOwnProperty(s))for(a=h[s].slice(0),c=0;c<a.length;c++)(u=a[c]).once===!0&&this.removeListener(e,u.listener),u.listener.apply(this,r||[])===this._getOnceReturnValue()&&this.removeListener(e,u.listener);return this},i.trigger=t("emitEvent"),i.emit=function(e){var r=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,r)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},i._getEvents=function(){return this._events||(this._events={})},l.noConflict=function(){return p.EventEmitter=o,l},(f=function(){return l}.call(p,g,p,M))===void 0||(M.exports=f)})(typeof window!="undefined"?window:this||{})},function(M,x,g){var f=g(26),p=function(l){(function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t})(o,l);var i=o.prototype;function o(n){var t,e=(t=l.call(this)||this).getDefaultCfg();return t._cfg=f.mix({},e,n),t}return i.getDefaultCfg=function(){return{}},i.get=function(n){return this._cfg[n]},i.set=function(n,t){this._cfg[n]=t},i.destroy=function(){this._cfg={},this.removeAllListeners(),this.destroyed=!0},o}(g(711));M.exports=p},function(M,x,g){var f=g(26),p=g(248),l=function(){};f.augment(l,{drawInner:function(o){var n=f.clone(this.getTotalMatrix()),t=this._attrs,e=t.x,r=t.y,a=t.width,u=t.height;o.setTransform(n[0],n[1],n[3],n[4],n[6],n[7]),o.drawImage(this.domImage,e,r,a,u)}}),f.mixin(p.Dom,[l]),M.exports=l},function(M,x,g){var f=g(26),p=g(248),l=function(){};f.augment(l,{hasClass:function(o){var n=this.get("class");return!(!n||n.indexOf(o)===-1)}}),f.mixin(p.Shape,[l]),M.exports=l},function(M,x,g){var f=g(248),p=g(26),l=function(){};p.augment(l,{findByClass:function(o){var n=[];return this.deepEach(function(t){t.hasClass(o)&&n.push(t)}),n},hasClass:function(o){var n=this.get("class");return!(!n||n.indexOf(o)===-1)},deepEach:function(o,n){p.traverseTree(this,o,function(t){return t.get("children")},n)},sort:function(){var o=this.get("children");this.set("children",p.radixSort(o,function(n){return n.get("zIndex")}))},sortBy:function(o){var n=this.get("children");this.set("children",p.radixSort(n,o))},clear:function(o){for(var n=this._cfg.children,t=n.length-1;t>=0;t--)n[t].remove(o);return this._cfg.children=[],this}}),p.mixin(f.Group,[l]),M.exports=l},function(M,x,g){g(258).registerGuide("common",{draw:function(){console.warn("do not have this guide, please register one")}})},function(M,x,g){M.exports={common:g(716)}},function(M,x,g){function f(o,n,t){return n in o?Object.defineProperty(o,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[n]=t,o}var p=g(258),l=g(26),i=g(247);p.registerGroup("common",{draw:function(n){return n.getModel().collapsed?this.drawCollapsed(n):this.drawExpanded(n)},defaultWidth:184,defaultHeight:40,getLabel:function(n){return n.getModel().label},drawLabel:function(n,t,e){var r=this.getLabel(n);if(r){var a=n.getGraphicGroup(),u=[8,8];t+=u[0],e+=u[1];var c=n.getModel(),s=c.labelOffsetX,h=c.labelOffsetY,d=c.labelRotate;t=s?s+t:t,e=h?h+e:e;var v=l.mix(!0,{},i.labelStyle,{x:t,y:e,textAlign:"left",textBaseline:"top"});l.isObject(r)?l.mix(v,r):v.text=r;var y=a.addShape("text",{class:"label",attrs:v});if(d){var m=y.getBBox(),b=(m.maxX+m.minX)/2,w=(m.maxY+m.minY)/2;y.transform([["t",-b,-w],["r",d,d],["t",b,w]])}}},drawKeyShape:function(n,t){var e=t.x,r=t.y,a=t.width,u=t.height,c=n.getModel(),s=n.getGraphicGroup(),h=l.mix({},i.groupStyle,c.style),d=l.getRectPath(e,r,a,u,h.radius);return n.lastChildrenBox=t,s.addShape("path",{attrs:l.mix({},h,{path:d})})},getChildrenBBox:function(n){var t=function(a){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{},s=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(c).filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable}))),s.forEach(function(h){f(a,h,c[h])})}return a}({},n.lastChildrenBox),e=n.getModel();if(n.getChildren().length>0){var r=n.getChildrenBBox();t.x=r.minX-i.groupBackgroundPadding[3],t.y=r.minY-i.groupBackgroundPadding[0],t.width=r.maxX-r.minX+i.groupBackgroundPadding[3]+i.groupBackgroundPadding[1],t.height=r.maxY-r.minY+i.groupBackgroundPadding[0]+i.groupBackgroundPadding[2]}else t.width=this.defaultWidth,t.height=this.defaultHeight;return l.isNil(t.x)&&!l.isNil(e.x)&&(t.x=e.x),l.isNil(t.y)&&!l.isNil(e.y)&&(t.y=e.y),t},drawExpanded:function(n){var t=this.getChildrenBBox(n),e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},drawCollapsed:function(n){var t=this.getChildrenBBox(n);t.width=this.defaultWidth,t.height=this.defaultHeight;var e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},anchor:{intersectBox:"rect"}})},function(M,x,g){M.exports={common:g(718)}},function(M,x,g){function f(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},a=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable}))),a.forEach(function(u){p(t,u,r[u])})}return t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l=g(258),i=g(26),o=g(247),n={path:function(e){var r=e.getKeyShape().attr("lineWidth"),a=10*(r=r>3?r:3)/3,u=4*r/3,c=4*r;return[["M",-a,u],["L",0,0],["L",-a,-u],["A",c,c,0,0,1,-a,u],["Z"]]},shorten:function(e){var r=e.getKeyShape().attr("lineWidth");return 3.1*(r>3?r:3)},style:function(e){var r=e.getKeyShape().attr();return{fillOpacity:r.strokeOpacity,fill:r.stroke}}};l.registerEdge("common",{draw:function(e){var r=this.drawKeyShape(e);return this.drawLabel(e,r),r},drawKeyShape:function(e){var r=e.getGraphicGroup(),a=this.getStyle(e),u=this.getPath(e);return r.addShape("path",{attrs:i.mix({},a,{path:u})})},getStyle:function(e){var r=e.getModel();return i.mix(!0,{},{stroke:r.color||"#A3B1BF",strokeOpacity:.92,lineAppendWidth:4,lineWidth:r.size||1},r.style)},getPath:function(e){var r=e.getPoints();return i.pointsToPolygon(r)},getLabel:function(e){return e.getModel().label},getDefaultLabelRectStyle:function(){return{fill:"white"}},getDefaultLabelRectPadding:function(){return i.toAllPadding([4,8])},drawLabel:function(e,r){var a=this.getLabel(e),u=e.getGraphicGroup(),c=e.getModel(),s=c.labelOffsetX,h=c.labelOffsetY,d=c.labelRotate;if(a){var v=r.getPoint(.5);if(!v)return;v.x=s?v.x+s:v.x,v.y=h?v.y+h:v.y;var y=i.mix(!0,{},o.labelStyle,v);i.isObject(a)?i.mix(y,a):y.text=a,a=u.addShape("text",{class:"label",attrs:y});var m=this.getDefaultLabelRectPadding(e),b=this.getDefaultLabelRectStyle(e),w=a.getBBox(),P=c.labelRectStyle?i.mix({},b,c.labelRectStyle):b,S=u.addShape("rect",{attrs:i.mix({},P,{x:w.minX-m[3],y:w.minY-m[0],width:w.maxX-w.minX+m[1]+m[3],height:w.maxY-w.minY+m[0]+m[2]})});if(d){var O=(w.maxX+w.minX)/2,A=(w.maxY+w.minY)/2;a.transform([["t",-O,-A],["r",d,d],["t",O,A]]),S.transform([["t",-O,-A],["r",d,d],["t",O,A]])}i.toFront(a)}},startArrow:f({},n,{tangent:function(e){return e.getKeyShape().getStartTangent()},ratio:function(){return 0}}),endArrow:f({},n,{tangent:function(e){return e.getKeyShape().getEndTangent()},ratio:function(){return 1}})})},function(M,x,g){M.exports={common:g(720)}},function(M,x,g){var f=g(258),p=g(26);f.registerNode("html",{getHtml:function(i){return i.getModel().html},cssSize:!0,draw:function(i){var o=p.createDOM('<div class="g6-html-node-container"></div>'),n=i.getGraphicGroup(),t=i.getGraph();if(t.get("renderer")!=="svg")throw new Error("please use svg renderer draw html element !");var e=t.getGraphContainer(),r=this.getSize(i),a=this.getStyle(i),u=this.cssSize,c=this.getHtml(i);c=p.createDOM(c),o.css({position:"absolute",padding:"0px",margin:"0px"}),o.appendChild(c),e.appendChild(o),u&&(r[0]=o.width(),r[1]=o.height());var s=-r[0]/2,h=-r[1]/2,d=r[0],v=r[1],y=n.addShape("rect",{attrs:p.mix({},a,{x:s,y:h,width:d,height:v})});return n.addShape("dom",{attrs:p.mix({x:s,y:h,width:d,height:v,html:o})}),y}})},function(M,x,g){var f=g(258),p=g(26),l=g(247);f.registerNode("common",{draw:function(o){var n=o.getGraphicGroup(),t=this.drawLabel(o),e=this.drawKeyShape(o);return t&&p.toFront(t,n),e},getSize:function(o){var n=o.getModel().size;return p.isArray(n)?n:p.isNumber(n)?[n,n]:[l.defaultNodeSize,l.defaultNodeSize]},getStyle:function(o){var n=o.getModel();return p.mix(!0,{lineWidth:1,fill:n.color||"#40a9ff",stroke:n.color||"#096dd9",fillOpacity:.92},n.style)},getLabel:function(o){return o.getModel().label},drawKeyShape:function(o){var n=o.getGraphicGroup(),t=this.getStyle(o),e=this.getPath(o);return n.addShape("path",{attrs:p.mix({},t,{path:e})})},drawLabel:function(o){var n=o.getGraphicGroup(),t=this.getLabel(o),e=o.getModel(),r=e.labelOffsetX,a=e.labelOffsetY,u=e.labelRotate;if(!p.isNil(t)){var c=p.mix(!0,{},l.labelStyle,{x:r||0,y:a||0});p.isObject(t)?p.mix(c,t):c.text=t;var s=n.addShape("text",{class:"label",attrs:c});return u&&s.rotate(u),s}},getPath:function(o){var n=this.getSize(o);return p.getEllipsePath(0,0,n[0]/2,n[1]/2)}})},function(M,x,g){M.exports={common:g(723),html:g(722)}},function(M,x,g){var f=g(682),p=g(257),l={getAutoZoomMatrix:function(o,n,t,e){var r=[1,0,0,0,1,0,0,0,1],a=o.maxX-o.minX,u=o.maxY-o.minY,c=(n.maxX+n.minX)/2,s=(n.maxY+n.minY)/2,h=a-t[1]-t[3],d=u-t[0]-t[2],v=n.maxX-n.minX,y=n.maxY-n.minY,m=Math.min(d/y,h/v);return e&&(m=e(m)),f.mat3.translate(r,r,[-c,-s]),f.mat3.scale(r,r,[m,m]),f.mat3.translate(r,r,[a/2,u/2]),r},getNineBoxPosition:function(o,n,t,e,r){var a={};switch(o){case"tl":a.y=n.x+r[0],a.x=n.y+r[3];break;case"lc":a.y=(n.height-e)/2,a.x=r[3];break;case"bl":a.y=n.height-e-r[2],a.x=r[3];break;case"cc":a.y=(n.height-e)/2,a.x=(n.width-t)/2;break;case"tc":a.y=r[0],a.x=(n.width-t)/2;break;case"tr":a.y=r[0],a.x=n.width-t-r[1];break;case"rc":a.y=(n.height-e)/2,a.x=n.width-t-r[1];break;case"br":a.y=n.height-e-r[2],a.x=n.width-t-r[1];break;case"bc":a.y=n.height-e-r[2],a.x=(n.width-t)/2;break;default:a.y=n.x+r[0],a.x=n.y+r[3]}return a.x+=n.x,a.y+=n.y,a},getTotalBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;return o.forEach(function(a){a.minX<n&&(n=a.minX),a.maxX>t&&(t=a.maxX),a.minY<e&&(e=a.minY),a.maxY>r&&(r=a.maxY)}),{minX:n,minY:e,maxX:t,maxY:r,width:t-n,height:r-e}},getChildrenBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;p.each(o,function(u){var c=u.isGroup?l.getChildrenBBox(u.get("children")):u.getBBox();if(!c)return!0;var s=[c.minX,c.minY,1],h=[c.minX,c.maxY,1],d=[c.maxX,c.minY,1],v=[c.maxX,c.maxY,1];u.apply(s),u.apply(h),u.apply(d),u.apply(v);var y=Math.min(s[0],h[0],d[0],v[0]),m=Math.max(s[0],h[0],d[0],v[0]),b=Math.min(s[1],h[1],d[1],v[1]),w=Math.max(s[1],h[1],d[1],v[1]);y<n&&(n=y),m>t&&(t=m),b<e&&(e=b),w>r&&(r=w)});var a={minX:n,minY:e,maxX:t,maxY:r};return a.x=a.minX,a.y=a.minY,a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a.centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2,a},getBBox:function(o,n){var t,e=o.getBBox(),r={x:e.minX,y:e.minY},a={x:e.maxX,y:e.maxY};if(n.isGroup){for(t=o;t!==n;){var u=t.getMatrix();r=f.applyMatrix(r,u),a=f.applyMatrix(a,u),t=t.getParent()}var c=t.getMatrix();r=f.applyMatrix(r,c),a=f.applyMatrix(a,c)}else r=f.applyMatrix(r,n),a=f.applyMatrix(a,n);return{minX:r.x,minY:r.y,maxX:a.x,maxY:a.y}},toBack:function(o){o.toBack()},toFront:function(o){o.toFront()}};M.exports=l},function(M,x,g){var f=g(257);M.exports={isNode:function(l){return l&&f.isObject(l)&&l.type==="node"},isEdge:function(l){return l&&f.isObject(l)&&l.type==="edge"},isGroup:function(l){return l&&f.isObject(l)&&l.type==="group"}}},function(M,x,g){var f=g(257),p={};f.mix(p,{addEventListener:function(i,o,n){return i.attachEvent?(i.attachEvent("on"+o,n),{remove:function(){i.detachEvent("on"+o,n)}}):i.addEventListener?(i.addEventListener(o,n,!1),{remove:function(){i.removeEventListener(o,n,!1)}}):void 0},createDOM:function(i,o){var n;return(n=f.isString(i)?f.createDom(i):i).bbox=n.getBoundingClientRect(),n.hide=function(){return n.style.visibility="hidden",n},n.show=function(){return n.style.visibility="visible",n},n.css=function(t){return f.modifyCSS(n,t),n},n.width=function(){return f.getWidth(n)},n.height=function(){return f.getHeight(n)},n.destroy=function(){n.parentNode&&n.parentNode.removeChild(n)},n.on=function(t,e){n.addEventListener(t,e)},n.off=function(t,e){n.removeEventListener(t,e)},n.css(o),n},initDOMContainer:function(i,o){if(!i)throw new Error("please set the container for the "+o+" !");return f.isString(i)&&(i=document.getElementById(i)),i}}),M.exports=p},function(M,x){var g={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};M.exports=function(f,p,l){var i=l.target||l.srcElement;if(!g[i.tagName]){for(var o=i.parentNode;o&&!g[o.tagName];)o=o.parentNode;i=o}return this._cfg.el===i?this:this.find(function(n){return n._cfg&&n._cfg.el===i})}},function(M,x,g){var f=g(19),p=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=function(){function i(o){var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var t=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(t);var e=f.uniqueId("pattern_");n.id=e,this.el=n,this.id=e,this.cfg=o;var r=p.exec(o)[2];t.setAttribute("href",r);var a=new Image;function u(){console.log(a.width,a.height),n.setAttribute("width",a.width),n.setAttribute("height",a.height)}return r.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=r,a.complete?u():(a.onload=u,a.src=a.src),this}return i.prototype.match=function(o,n){return this.cfg===n},i}();M.exports=l},function(M,x,g){var f=g(19),p=function(){function l(o){this.type="clip";var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=n,this.id=f.uniqueId("clip_"),n.id=this.id;var t=o._cfg.el;return n.appendChild(t.cloneNode(!0)),this.cfg=o,this}var i=l.prototype;return i.match=function(){return!1},i.remove=function(){var o=this.el;o.parentNode.removeChild(o)},l}();M.exports=p},function(M,x,g){var f=g(19),p=function(){function l(o,n){var t=document.createElementNS("http://www.w3.org/2000/svg","marker"),e=f.uniqueId("marker_");t.setAttribute("id",e);var r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("stroke","none"),r.setAttribute("fill",o.stroke||"#000"),t.appendChild(r),t.setAttribute("overflow","visible"),t.setAttribute("orient","auto-start-reverse"),this.el=t,this.child=r,this.id=e,this.cfg=o[n==="marker-start"?"startArrow":"endArrow"],this.stroke=o.stroke||"#000",this.cfg===!0?this._setDefaultPath(n,r):this._setMarker(o.lineWidth,r),this}var i=l.prototype;return i.match=function(){return!1},i._setDefaultPath=function(o,n){var t=this.el;n.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),t.setAttribute("refX",3),t.setAttribute("refY",3)},i._setMarker=function(o,n){var t=this.el,e=this.cfg.path,r=this.cfg.d;f.isArray(e)&&(e=e.map(function(a){return a.join(" ")}).join("")),n.setAttribute("d",e),t.appendChild(n),r&&t.setAttribute("refX",r/o)},i.update=function(o){var n=this.child;n.attr?n.attr("fill",o):n.setAttribute("fill",o)},l}();M.exports=p},function(M,x,g){var f=g(19),p={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},l={x:"-40%",y:"-40%",width:"200%",height:"200%"},i=function(){function o(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return f.each(l,function(r,a){e.setAttribute(a,r)}),this.el=e,this.id=f.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var n=o.prototype;return n.match=function(t,e){if(this.type!==t)return!1;var r=!0,a=this.cfg;return f.each(Object.keys(a),function(u){if(a[u]!==e[u])return r=!1,!1}),r},n.update=function(t,e){var r=this.cfg;return r[p[t]]=e,this._parseShadow(r,this.el),this},n._parseShadow=function(t,e){var r=`<feDropShadow
|
|
dx="`+(t.dx||0)+`"
|
|
dy="`+(t.dy||0)+`"
|
|
stdDeviation="`+(t.blur?t.blur/10:0)+`"
|
|
flood-color="`+(t.color?t.color:"#000")+`"
|
|
flood-opacity="`+(t.opacity?t.opacity:1)+`"
|
|
/>`;e.innerHTML=r},o}();M.exports=i},function(M,x,g){var f=g(19),p=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,l=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,i=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function o(t){var e=t.match(i);if(!e)return"";var r="";return e.sort(function(a,u){return a=a.split(":"),u=u.split(":"),Number(a[0])-Number(u[0])}),f.each(e,function(a){a=a.split(":"),r+='<stop offset="'+a[0]+'" stop-color="'+a[1]+'"></stop>'}),r}var n=function(){function t(e){var r=null,a=f.uniqueId("gradient_");return e.toLowerCase()[0]==="l"?function(u,c){var s,h,d=p.exec(u),v=f.mod(f.toRadian(parseFloat(d[1])),2*Math.PI),y=d[2];v>=0&&v<.5*Math.PI?(s={x:0,y:0},h={x:1,y:1}):.5*Math.PI<=v&&v<Math.PI?(s={x:1,y:0},h={x:0,y:1}):Math.PI<=v&&v<1.5*Math.PI?(s={x:1,y:1},h={x:0,y:0}):(s={x:0,y:1},h={x:1,y:0});var m=Math.tan(v),b=m*m,w=(h.x-s.x+m*(h.y-s.y))/(b+1)+s.x,P=m*(h.x-s.x+m*(h.y-s.y))/(b+1)+s.y;c.setAttribute("x1",s.x),c.setAttribute("y1",s.y),c.setAttribute("x2",w),c.setAttribute("y2",P),c.innerHTML=o(y)}(e,r=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(u,c){var s=l.exec(u),h=parseFloat(s[1]),d=parseFloat(s[2]),v=parseFloat(s[3]),y=s[4];c.setAttribute("cx",h),c.setAttribute("cy",d),c.setAttribute("r",v),c.innerHTML=o(y)}(e,r=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),r.setAttribute("id",a),this.el=r,this.id=a,this.cfg=e,this}return t.prototype.match=function(e,r){return this.cfg===r},t}();M.exports=n},function(M,x,g){var f=g(19),p=g(733),l=g(732),i=g(731),o=g(730),n=g(729),t=function(){function e(a){var u=document.createElementNS("http://www.w3.org/2000/svg","defs"),c=f.uniqueId("defs_");u.id=c,a.appendChild(u),this.children=[],this.defaultArrow={},this.el=u,this.canvas=a}var r=e.prototype;return r.find=function(a,u){for(var c=this.children,s=null,h=0;h<c.length;h++)if(c[h].match(a,u)){s=c[h].id;break}return s},r.findById=function(a){for(var u=this.children,c=null,s=0;s<u.length;s++)if(u[s].id===a){c=u[s];break}return c},r.add=function(a){this.children.push(a),a.canvas=this.canvas,a.parent=this},r.getDefaultArrow=function(a,u){var c=a.stroke||a.strokeStyle;if(this.defaultArrow[c])return this.defaultArrow[c].id;var s=new i(a,u);return this.defaultArrow[c]=s,this.el.appendChild(s.el),s.id},r.addGradient=function(a){var u=new p(a);return this.el.appendChild(u.el),this.add(u),u.id},r.addArrow=function(a,u){var c=new i(a,u);return this.el.appendChild(c.el),c.id},r.addShadow=function(a){var u=new l(a);return this.el.appendChild(u.el),this.add(u),u.id},r.addPattern=function(a){var u=new n(a);return this.el.appendChild(u.el),this.add(u),u.id},r.addClip=function(a){var u=new o(a);return this.el.appendChild(u.el),this.add(u),u.id},e}();M.exports=t},function(M,x,g){var f=g(19),p=g(593).parseRadius,l=g(611),i=g(734),o={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},n={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},t={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},e={left:"left",start:"left",center:"middle",right:"end",end:"end"},r=function(){function a(c){if(!c)return null;var s=f.uniqueId("canvas_"),h=f.createDom('<svg id="'+s+'"></svg>');return c.appendChild(h),this.type="svg",this.canvas=h,this.context=new i(h),this.toDraw=!1,this}var u=a.prototype;return u.draw=function(c){var s=this;s.animateHandler?s.toDraw=!0:function h(){s.animateHandler=f.requestAnimationFrame(function(){s.animateHandler=void 0,s.toDraw&&h()});try{s._drawChildren(c)}catch(d){console.warn("error in draw canvas, detail as:"),console.warn(d),s.toDraw=!1}s.toDraw=!1}()},u.drawSync=function(c){this._drawChildren(c)},u._drawGroup=function(c,s){var h=c._cfg;h.removed||h.destroyed||(h.tobeRemoved&&(f.each(h.tobeRemoved,function(d){d.parentNode&&d.parentNode.removeChild(d)}),h.tobeRemoved=[]),this._drawShape(c,s),h.children&&h.children.length>0&&this._drawChildren(c))},u._drawChildren=function(c){var s,h=c._cfg.children;if(h)for(var d=0;d<h.length;d++)(s=h[d]).isGroup?this._drawGroup(s,d):this._drawShape(s,d)},u._drawShape=function(c,s){var h=c._attrs,d=c._cfg,v=d.el;d.removed||d.destroyed?v&&v.parentNode.removeChild(d.el):(!v&&d.parent&&(this._createDom(c,s),this._updateShape(c)),v=d.el,d.visible!==!1?(d.visible&&v.hasAttribute("visibility")&&v.removeAttribute("visibility"),d.hasUpdate&&this._updateShape(c),h.clip&&h.clip._cfg.hasUpdate&&this._updateShape(h.clip)):v.setAttribute("visibility","hidden"))},u._updateShape=function(c){var s=c._attrs,h=c._cfg.attrs;if(h)if(c._cfg.el||this._createDom(c),"clip"in s&&this._setClip(c,s.clip),("shadowOffsetX"in s||"shadowOffsetY"in s||"shadowBlur"in s||"shadowColor"in s)&&this._setShadow(c),c.type!=="text"){for(var d in c.type==="fan"&&this._updateFan(c),c.type==="marker"&&c._cfg.el.setAttribute("d",this._assembleMarker(s)),c.type==="rect"&&c._cfg.el.setAttribute("d",this._assembleRect(s)),s)s[d]!==h[d]&&this._setAttribute(c,d,s[d]);c._cfg.attrs=f.deepMix({},c._attrs),c._cfg.hasUpdate=!1}else this._updateText(c)},u._setAttribute=function(c,s,h){var d=c.type,v=c._attrs,y=c._cfg.el,m=this.context;if(d!=="marker"&&d!=="rect"||!~["x","y","radius","r"].indexOf(s))if(~["circle","ellipse"].indexOf(d)&&~["x","y"].indexOf(s))y.setAttribute("c"+s,parseInt(h,10));else{if(d==="polygon"&&s==="points")return h&&h.length!==0||(h=""),f.isArray(h)&&(h=(h=h.map(function(w){return w[0]+","+w[1]})).join(" ")),void y.setAttribute("points",h);if(s==="path"&&f.isArray(h))y.setAttribute("d",this._formatPath(h));else if(s!=="img"){if(s==="transform")return h?void this._setTransform(c):void y.removeAttribute("transform");if(s==="rotate")return h?void this._setTransform(c):void y.removeAttribute("transform");if(s!=="matrix")if(s!=="fillStyle"&&s!=="strokeStyle"){if(s!=="clip")if(~s.indexOf("Arrow"))if(s=n[s],h){var b=null;b=typeof h=="boolean"?m.getDefaultArrow(v,s):m.addArrow(v,s),y.setAttribute(s,"url(#"+b+")"),c._cfg[s]=b}else c._cfg[s]=null,y.removeAttribute(s);else s==="html"&&(typeof h=="string"?y.innerHTML=h:(y.innerHTML="",y.appendChild(h))),n[s]&&y.setAttribute(n[s],h)}else this._setColor(c,s,h);else this._setTransform(c)}else this._setImage(c,h)}},u._createDom=function(c,s){var h=o[c.type],d=c._attrs,v=c._cfg.parent,y=v._cfg.el;if(!h)throw new Error("the type"+c.type+"is not supported by svg");var m=document.createElementNS("http://www.w3.org/2000/svg",h);if(c._cfg.el=m,v)if(s===void 0)y.appendChild(m);else{var b=v._cfg.el.childNodes;y.tagName==="svg"&&(s+=1),b.length<=s?y.appendChild(m):y.insertBefore(m,b[s])}return c._cfg.attrs={},c.type==="text"?(m.setAttribute("paint-order","stroke"),m.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(d.stroke||d.strokeStyle||m.setAttribute("stroke","none"),d.fill||d.fillStyle||m.setAttribute("fill","none")),m},u._assembleMarker=function(c){var s=c.r;if(c.r===void 0&&(s=c.radius),isNaN(Number(c.x))||isNaN(Number(c.y))||isNaN(Number(s)))return"";var h="";return h=typeof c.symbol=="function"?c.symbol(c.x,c.y,s):l.Symbols[c.symbol||"circle"](c.x,c.y,s),f.isArray(h)&&(h=h.map(function(d){return d.join(" ")}).join("")),h},u._assembleRect=function(c){var s=c.x,h=c.y,d=c.width,v=c.height,y=c.radius;if(!y)return"M "+s+","+h+" l "+d+",0 l 0,"+v+" l"+-d+" 0 z";var m=p(y);return f.isArray(y)?y.length===1?m.r1=m.r2=m.r3=m.r4=y[0]:y.length===2?(m.r1=m.r3=y[0],m.r2=m.r4=y[1]):y.length===3?(m.r1=y[0],m.r2=m.r4=y[1],m.r3=y[2]):(m.r1=y[0],m.r2=y[1],m.r3=y[2],m.r4=y[3]):m.r1=m.r2=m.r3=m.r4=y,[["M "+(s+m.r1)+","+h],["l "+(d-m.r1-m.r2)+",0"],["a "+m.r2+","+m.r2+",0,0,1,"+m.r2+","+m.r2],["l 0,"+(v-m.r2-m.r3)],["a "+m.r3+","+m.r3+",0,0,1,"+-m.r3+","+m.r3],["l "+(m.r3+m.r4-d)+",0"],["a "+m.r4+","+m.r4+",0,0,1,"+-m.r4+","+-m.r4],["l 0,"+(m.r4+m.r1-v)],["a "+m.r1+","+m.r1+",0,0,1,"+m.r1+","+-m.r1],["z"]].join(" ")},u._formatPath=function(c){return~(c=c.map(function(s){return s.join(" ")}).join("")).indexOf("NaN")?"":c},u._setTransform=function(c){for(var s=c._attrs.matrix,h=c._cfg.el,d=[],v=0;v<9;v+=3)d.push(s[v]+","+s[v+1]);(d=d.join(",")).indexOf("NaN")===-1?h.setAttribute("transform","matrix("+d+")"):console.warn("invalid matrix:",s)},u._setImage=function(c,s){var h=c._attrs,d=c._cfg.el;if(f.isString(s))d.setAttribute("href",s);else if(s instanceof Image)h.width||(d.setAttribute("width",s.width),c._attrs.width=s.width),h.height||(d.setAttribute("height",s.height),c._attrs.height=s.height),d.setAttribute("href",s.src);else if(s instanceof HTMLElement&&f.isString(s.nodeName)&&s.nodeName.toUpperCase()==="CANVAS")d.setAttribute("href",s.toDataURL());else if(s instanceof ImageData){var v=document.createElement("canvas");v.setAttribute("width",s.width),v.setAttribute("height",s.height),v.getContext("2d").putImageData(s,0,0),h.width||(d.setAttribute("width",s.width),c._attrs.width=s.width),h.height||(d.setAttribute("height",s.height),c._attrs.height=s.height),d.setAttribute("href",v.toDataURL())}},u._updateFan=function(c){function s(k,T,I){return{x:T*Math.cos(k)+I.x,y:T*Math.sin(k)+I.y}}var h=c._attrs,d=c._cfg,v={x:h.x,y:h.y},y=[],m=h.startAngle,b=h.endAngle;f.isNumberEqual(b-m,2*Math.PI)&&(b-=1e-5);var w=s(m,h.re,v),P=s(b,h.re,v),S=b>m?1:0,O=Math.abs(b-m)>Math.PI?1:0,A=h.rs,E=h.re,_=s(m,h.rs,v),C=s(b,h.rs,v);h.rs>0?(y.push("M "+P.x+","+P.y),y.push("L "+C.x+","+C.y),y.push("A "+A+","+A+",0,"+O+","+(S===1?0:1)+","+_.x+","+_.y),y.push("L "+w.x+" "+w.y)):(y.push("M "+v.x+","+v.y),y.push("L "+w.x+","+w.y)),y.push("A "+E+","+E+",0,"+O+","+S+","+P.x+","+P.y),h.rs>0?y.push("L "+C.x+","+C.y):y.push("Z"),d.el.setAttribute("d",y.join(" "))},u._updateText=function(c){var s=c._attrs,h=c._cfg.attrs,d=c._cfg.el;for(var v in this._setFont(c),s)if(s[v]!==h[v]){if(v==="text"){this._setText(c,""+s[v]);continue}if(v==="fillStyle"||v==="strokeStyle"){this._setColor(c,v,s[v]);continue}if(v==="matrix"){this._setTransform(c);continue}n[v]&&d.setAttribute(n[v],s[v])}c._cfg.attrs=Object.assign({},c._attrs),c._cfg.hasUpdate=!1},u._setFont=function(c){var s=c.get("el"),h=c._attrs,d=h.fontSize;s.setAttribute("alignment-baseline",t[h.textBaseline]||"baseline"),s.setAttribute("text-anchor",e[h.textAlign]||"left"),d&&+d<12&&(h.matrix=[1,0,0,0,1,0,0,0,1],c.transform([["t",-h.x,-h.y],["s",+d/12,+d/12],["t",h.x,h.y]]))},u._setText=function(c,s){var h=c._cfg.el,d=c._attrs.textBaseline||"bottom";if(s)if(~s.indexOf(`
|
|
`)){var v=c._attrs.x,y=s.split(`
|
|
`),m=y.length-1,b="";f.each(y,function(w,P){P===0?d==="alphabetic"?b+='<tspan x="'+v+'" dy="'+-m+'em">'+w+"</tspan>":d==="top"?b+='<tspan x="'+v+'" dy="0.9em">'+w+"</tspan>":d==="middle"?b+='<tspan x="'+v+'" dy="'+-(m-1)/2+'em">'+w+"</tspan>":d==="bottom"?b+='<tspan x="'+v+'" dy="-'+(m+.3)+'em">'+w+"</tspan>":d==="hanging"&&(b+='<tspan x="'+v+'" dy="'+(-(m-1)-.3)+'em">'+w+"</tspan>"):b+='<tspan x="'+v+'" dy="1em">'+w+"</tspan>"}),h.innerHTML=b}else h.innerHTML=s;else h.innerHTML=""},u._setClip=function(c,s){var h=c._cfg.el;if(s)if(h.hasAttribute("clip-path"))s._cfg.hasUpdate&&this._updateShape(s);else{this._createDom(s),this._updateShape(s);var d=this.context.addClip(s);h.setAttribute("clip-path","url(#"+d+")")}else h.removeAttribute("clip-path")},u._setColor=function(c,s,h){var d=c._cfg.el,v=this.context;if(h)if(h=h.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(h)){var y=v.find("gradient",h);y||(y=v.addGradient(h)),d.setAttribute(n[s],"url(#"+y+")")}else if(/^[p,P]{1}[\s]*\(/.test(h)){var m=v.find("pattern",h);m||(m=v.addPattern(h)),d.setAttribute(n[s],"url(#"+m+")")}else d.setAttribute(n[s],h);else d.setAttribute(n[s],"none")},u._setShadow=function(c){var s=c._cfg.el,h=c._attrs,d={dx:h.shadowOffsetX,dy:h.shadowOffsetY,blur:h.shadowBlur,color:h.shadowColor};if(d.dx||d.dy||d.blur||d.color){var v=this.context.find("filter",d);v||(v=this.context.addShadow(d,this)),s.setAttribute("filter","url(#"+v+")")}else s.removeAttribute("filter")},a}();M.exports=r},function(M,x,g){M.exports={painter:g(735),getShape:g(728)}},function(M,x,g){var f=g(19),p=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,l=/[^\s\,]+/gi,i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,t=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function e(r,a){var u=r.match(t);f.each(u,function(c){c=c.split(":"),a.addColorStop(c[0],c[1])})}M.exports={parsePath:function(a){return a=a||[],f.isArray(a)?a:f.isString(a)?(a=a.match(p),f.each(a,function(u,c){if((u=u.match(l))[0].length>1){var s=u[0].charAt(0);u.splice(1,0,u[0].substr(1)),u[0]=s}f.each(u,function(h,d){isNaN(h)||(u[d]=+h)}),a[c]=u}),a):void 0},parseStyle:function(a,u,c){if(f.isString(a)){if(a[1]==="("||a[2]==="("){if(a[0]==="l")return function(s,h,d){var v,y,m=i.exec(s),b=f.mod(f.toRadian(parseFloat(m[1])),2*Math.PI),w=m[2],P=h.getBBox();b>=0&&b<.5*Math.PI?(v={x:P.minX,y:P.minY},y={x:P.maxX,y:P.maxY}):.5*Math.PI<=b&&b<Math.PI?(v={x:P.maxX,y:P.minY},y={x:P.minX,y:P.maxY}):Math.PI<=b&&b<1.5*Math.PI?(v={x:P.maxX,y:P.maxY},y={x:P.minX,y:P.minY}):(v={x:P.minX,y:P.maxY},y={x:P.maxX,y:P.minY});var S=Math.tan(b),O=S*S,A=(y.x-v.x+S*(y.y-v.y))/(O+1)+v.x,E=S*(y.x-v.x+S*(y.y-v.y))/(O+1)+v.y,_=d.createLinearGradient(v.x,v.y,A,E);return e(w,_),_}(a,u,c);if(a[0]==="r")return function(s,h,d){var v=o.exec(s),y=parseFloat(v[1]),m=parseFloat(v[2]),b=parseFloat(v[3]),w=v[4];if(b===0){var P=w.match(t);return P[P.length-1].split(":")[1]}var S=h.getBBox(),O=S.maxX-S.minX,A=S.maxY-S.minY,E=Math.sqrt(O*O+A*A)/2,_=d.createRadialGradient(S.minX+O*y,S.minY+A*m,b*E,S.minX+O/2,S.minY+A/2,E);return e(w,_),_}(a,u,c);if(a[0]==="p")return function(s,h,d){if(h.get("patternSource")&&h.get("patternSource")===s)return h.get("pattern");var v,y,m=n.exec(s),b=m[1],w=m[2];function P(){v=d.createPattern(y,b),h.setSilent("pattern",v),h.setSilent("patternSource",s)}switch(b){case"a":b="repeat";break;case"x":b="repeat-x";break;case"y":b="repeat-y";break;case"n":b="no-repeat";break;default:b="no-repeat"}return y=new Image,w.match(/^data:/i)||(y.crossOrigin="Anonymous"),y.src=w,y.complete?P():(y.onload=P,y.src=y.src),v}(a,u,c)}return a}}}},function(M,x,g){var f=g(19),p=g(737),l=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],i=function(){function o(t){if(!t)return null;var e=f.uniqueId("canvas_"),r=f.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(r),this.type="canvas",this.canvas=r,this.context=r.getContext("2d"),this.toDraw=!1,this}var n=o.prototype;return n.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},n.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function r(){e.animateHandler=f.requestAnimationFrame(function(){e.animateHandler=void 0,e.toDraw&&r()}),e.beforeDraw();try{e._drawGroup(t)}catch(a){console.warn("error in draw canvas, detail as:"),console.warn(a),e.toDraw=!1}e.toDraw=!1}()},n.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},n._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,r=null;this.setContext(t);for(var a=0;a<e.length;a++)r=e[a],e[a].isGroup?this._drawGroup(r):this._drawShape(r);this.restoreContext(t)}},n._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},n.setContext=function(t){var e=this.context,r=t._attrs.clip;e.save(),r&&(r.resetTransform(e),r.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},n.restoreContext=function(){this.context.restore()},n.resetContext=function(t){var e=this.context,r=t._attrs;if(!t.isGroup){for(var a in r)if(l.indexOf(a)>-1){var u=r[a];a==="fillStyle"&&(u=p.parseStyle(u,t,e)),a==="strokeStyle"&&(u=p.parseStyle(u,t,e)),a==="lineDash"&&e.setLineDash?f.isArray(u)?e.setLineDash(u):f.isString(u)&&e.setLineDash(u.split(" ")):e[a]=u}}},o}();M.exports=i},function(M,x,g){M.exports={painter:g(738)}},function(M,x,g){M.exports={canvas:g(739),svg:g(736)}},function(M,x,g){var f=g(19),p=g(610),l=g(17),i=g(44),o=g(238),n=o.interpolate,t=o.interpolateArray,e=function(u){this._animators=[],this._current=0,this._timer=null,this.canvas=u};function r(a,u,c){var s,h=u.startTime;if(c<h+u.delay||u.isPaused)return!1;var d=u.duration,v=u.easing;if(c=c-h-u.delay,u.toAttrs.repeat)s=c%d/d,s=i[v](s);else{if(!((s=c/d)<1))return a.attr(u.toAttrs),u.toMatrix&&a.setMatrix(u.toMatrix),!0;s=i[v](s)}return function(y,m,b){var w={},P=m.toAttrs,S=m.fromAttrs,O=m.toMatrix;if(!y.get("destroyed")){var A;for(var E in P)if(!f.isEqual(S[E],P[E]))if(E==="path"){var _=P[E],C=S[E];_.length>C.length?(_=p.parsePathString(P[E]),C=p.parsePathString(S[E]),C=p.fillPathByDiff(C,_),C=p.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_):m.pathFormatted||(_=p.parsePathString(P[E]),C=p.parsePathString(S[E]),C=p.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_,m.pathFormatted=!0),w[E]=[];for(var k=0;k<_.length;k++){for(var T=_[k],I=C[k],R=[],F=0;F<T.length;F++)f.isNumber(T[F])&&I&&f.isNumber(I[F])?(A=n(I[F],T[F]),R.push(A(b))):R.push(T[F]);w[E].push(R)}}else A=n(S[E],P[E]),w[E]=A(b);if(O){var j=t(m.fromMatrix,O)(b);y.setMatrix(j)}y.attr(w)}}(a,u,s),!1}f.augment(e,{initTimer:function(){var u,c,s,h=this,d=this;d._timer=l.timer(function(v){if(d._current=v,h._animators.length>0){for(var y=h._animators.length-1;y>=0;y--)if((u=h._animators[y]).get("destroyed"))d.removeAnimator(y);else{if(!u.get("pause").isPaused)for(var m=(c=u.get("animators")).length-1;m>=0;m--)s=c[m],r(u,s,v)&&(c.splice(m,1),s.callback&&s.callback());c.length===0&&d.removeAnimator(y)}h.canvas.draw()}})},addAnimator:function(u){this._animators.push(u)},removeAnimator:function(u){this._animators.splice(u,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(u){u.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),M.exports=e},function(M,x,g){var f=g(19),p=g(613),l={arc:g(602),ellipse:g(639),line:g(603)},i=f.createDom('<canvas width="500" height="500"></canvas>').getContext("2d");function o(t,e,r){return r.createPath(i),i.isPointInPath(t,e)}var n={arc:function(e,r){var a=this._attrs,u=a.x,c=a.y,s=a.r,h=a.startAngle,d=a.endAngle,v=a.clockwise,y=this.getHitLineWidth();return!!this.hasStroke()&&p.arcline(u,c,s,h,d,v,y,e,r)},circle:function(e,r){var a=this._attrs,u=a.x,c=a.y,s=a.r,h=this.getHitLineWidth(),d=this.hasFill(),v=this.hasStroke();return d&&v?p.circle(u,c,s,e,r)||p.arcline(u,c,s,0,2*Math.PI,!1,h,e,r):d?p.circle(u,c,s,e,r):!!v&&p.arcline(u,c,s,0,2*Math.PI,!1,h,e,r)},dom:function(e,r){if(!this._cfg.el)return!1;var a=this._cfg.el.getBBox();return p.box(a.x,a.x+a.width,a.y,a.y+a.height,e,r)},ellipse:function(e,r){var a=this._attrs,u=this.hasFill(),c=this.hasStroke(),s=a.x,h=a.y,d=a.rx,v=a.ry,y=this.getHitLineWidth(),m=d>v?d:v,b=d>v?1:d/v,w=d>v?v/d:1,P=[e,r,1],S=[1,0,0,0,1,0,0,0,1];f.mat3.scale(S,S,[b,w]),f.mat3.translate(S,S,[s,h]);var O=f.mat3.invert([],S);return f.vec3.transformMat3(P,P,O),u&&c?p.circle(0,0,m,P[0],P[1])||p.arcline(0,0,m,0,2*Math.PI,!1,y,P[0],P[1]):u?p.circle(0,0,m,P[0],P[1]):!!c&&p.arcline(0,0,m,0,2*Math.PI,!1,y,P[0],P[1])},fan:function(e,r){var a=this,u=a.hasFill(),c=a.hasStroke(),s=a._attrs,h=s.x,d=s.y,v=s.rs,y=s.re,m=s.startAngle,b=s.endAngle,w=s.clockwise,P=[e-h,r-d],S=f.vec2.angleTo([1,0],P);function O(){var E=l.arc.nearAngle(S,m,b,w);if(f.isNumberEqual(S,E)){var _=f.vec2.squaredLength(P);if(v*v<=_&&_<=y*y)return!0}return!1}function A(){var E=a.getHitLineWidth(),_={x:Math.cos(m)*v+h,y:Math.sin(m)*v+d},C={x:Math.cos(m)*y+h,y:Math.sin(m)*y+d},k={x:Math.cos(b)*v+h,y:Math.sin(b)*v+d},T={x:Math.cos(b)*y+h,y:Math.sin(b)*y+d};return!!(p.line(_.x,_.y,C.x,C.y,E,e,r)||p.line(k.x,k.y,T.x,T.y,E,e,r)||p.arcline(h,d,v,m,b,w,E,e,r)||p.arcline(h,d,y,m,b,w,E,e,r))}return u&&c?O()||A():u?O():!!c&&A()},image:function(e,r){var a=this._attrs;if(this.get("toDraw")||!a.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===a.img||this._setAttrImg();var u=a.x,c=a.y,s=a.width,h=a.height;return p.rect(u,c,s,h,e,r)},line:function(e,r){var a=this._attrs,u=a.x1,c=a.y1,s=a.x2,h=a.y2,d=this.getHitLineWidth();return!!this.hasStroke()&&p.line(u,c,s,h,d,e,r)},path:function(e,r){var a=this,u=a.get("segments"),c=a.hasFill(),s=a.hasStroke();function h(){if(!f.isEmpty(u)){for(var d=a.getHitLineWidth(),v=0,y=u.length;v<y;v++)if(u[v].isInside(e,r,d))return!0;return!1}}return c&&s?o(e,r,a)||h():c?o(e,r,a):!!s&&h()},marker:function(e,r){var a=this._attrs,u=a.x,c=a.y,s=a.radius||a.r,h=this.getHitLineWidth();return p.circle(u,c,s+h/2,e,r)},polygon:function(e,r){var a=this,u=a.hasFill(),c=a.hasStroke();function s(){var h=a._attrs.points;if(h.length<2)return!1;var d=a.getHitLineWidth(),v=h.slice(0);return h.length>=3&&v.push(h[0]),p.polyline(v,d,e,r)}return u&&c?o(e,r,a)||s():u?o(e,r,a):!!c&&s()},polyline:function(e,r){var a=this._attrs;if(this.hasStroke()){var u=a.points;if(u.length<2)return!1;var c=a.lineWidth;return p.polyline(u,c,e,r)}return!1},rect:function(e,r){var a=this,u=a.hasFill(),c=a.hasStroke();function s(){var h=a._attrs,d=h.x,v=h.y,y=h.width,m=h.height,b=h.radius,w=a.getHitLineWidth();if(b===0){var P=w/2;return p.line(d-P,v,d+y+P,v,w,e,r)||p.line(d+y,v-P,d+y,v+m+P,w,e,r)||p.line(d+y+P,v+m,d-P,v+m,w,e,r)||p.line(d,v+m+P,d,v-P,w,e,r)}return p.line(d+b,v,d+y-b,v,w,e,r)||p.line(d+y,v+b,d+y,v+m-b,w,e,r)||p.line(d+y-b,v+m,d+b,v+m,w,e,r)||p.line(d,v+m-b,d,v+b,w,e,r)||p.arcline(d+y-b,v+b,b,1.5*Math.PI,2*Math.PI,!1,w,e,r)||p.arcline(d+y-b,v+m-b,b,0,.5*Math.PI,!1,w,e,r)||p.arcline(d+b,v+m-b,b,.5*Math.PI,Math.PI,!1,w,e,r)||p.arcline(d+b,v+b,b,Math.PI,1.5*Math.PI,!1,w,e,r)}return u&&c?o(e,r,a)||s():u?o(e,r,a):!!c&&s()},text:function(e,r){var a=this.getBBox();if(this.hasFill()||this.hasStroke())return p.box(a.minX,a.maxX,a.minY,a.maxY,e,r)}};M.exports={isPointInPath:function(e,r){var a=n[this.type];return!!a&&a.call(this,e,r)}}},function(M,x,g){var f=g(58);f.Arc=g(638),f.Circle=g(637),f.Dom=g(636),f.Ellipse=g(635),f.Fan=g(634),f.Image=g(633),f.Line=g(632),f.Marker=g(611),f.Path=g(631),f.Polygon=g(630),f.Polyline=g(629),f.Rect=g(628),f.Text=g(627),M.exports=f},function(M,x,g){var f=g(19),p={delay:"delay",rotate:"rotate"},l={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};M.exports={animate:function(o,n,t,e,r){r===void 0&&(r=0),this.set("animating",!0);var a=this.get("timeline");a||(a=this.get("canvas").get("timeline"),this.setSilent("timeline",a));var u=this.get("animators")||[];a._timer||a.initTimer(),f.isNumber(e)&&(r=e,e=null),f.isFunction(t)?(e=t,t="easeLinear"):t=t||"easeLinear";var c=function(h,d){var v={matrix:null,attrs:{}},y=d._attrs;for(var m in h)if(m==="transform")v.matrix=f.transform(d.getMatrix(),h[m]);else if(m==="rotate")v.matrix=f.transform(d.getMatrix(),[["r",h[m]]]);else if(m==="matrix")v.matrix=h[m];else{if(l[m]&&/^[r,R,L,l]{1}[\s]*\(/.test(h[m]))continue;p[m]||y[m]===h[m]||(v.attrs[m]=h[m])}return v}(o,this),s={fromAttrs:function(h,d){var v={},y=d._attrs;for(var m in h.attrs)v[m]=y[m];return v}(c,this),toAttrs:c.attrs,fromMatrix:f.clone(this.getMatrix()),toMatrix:c.matrix,duration:n,easing:t,callback:e,delay:r,startTime:a.getTime(),id:f.uniqueId()};u.length>0?u=function(h,d){var v=d.delay,y=Object.prototype.hasOwnProperty;return f.each(d.toAttrs,function(m,b){f.each(h,function(w){v<w.startTime+w.duration&&y.call(w.toAttrs,b)&&(delete w.toAttrs[b],delete w.fromAttrs[b])})}),d.toMatrix&&f.each(h,function(m){v<m.startTime+m.duration&&m.toMatrix&&delete m.toMatrix}),h}(u,s):a.addAnimator(this),u.push(s),this.setSilent("animators",u),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var o=this,n=this.get("animators");f.each(n,function(t){o.attr(t.toAttrs),t.toMatrix&&o.attr("matrix",t.toMatrix),t.callback&&t.callback()}),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var o=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:o.getTime()}),this},resumeAnimate:function(){var o=this.get("timeline").getTime(),n=this.get("animators"),t=this.get("pause").pauseTime;return f.each(n,function(e){e.startTime=e.startTime+(o-t),e._paused=!1,e._pauseTime=null}),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",n),this}}},function(M,x,g){var f=g(19);function p(o){return o[0]===1&&o[1]===0&&o[3]===0&&o[4]===1&&o[6]===0&&o[7]===0}function l(o){return o[1]===0&&o[3]===0&&o[6]===0&&o[7]===0}function i(o,n){p(n)||(l(n)?(o[0]*=n[0],o[4]*=n[4]):f.mat3.multiply(o,o,n))}M.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(n,t){var e=this._attrs.matrix;return f.mat3.translate(e,e,[n,t]),this.clearTotalMatrix(),this.attr("matrix",e),this},rotate:function(n){var t=this._attrs.matrix;return f.mat3.rotate(t,t,n),this.clearTotalMatrix(),this.attr("matrix",t),this},scale:function(n,t){var e=this._attrs.matrix;return f.mat3.scale(e,e,[n,t]),this.clearTotalMatrix(),this.attr("matrix",e),this},rotateAtStart:function(n){var t=this._attrs.x||this._cfg.attrs.x,e=this._attrs.y||this._cfg.attrs.y;return Math.abs(n)>2*Math.PI&&(n=n/180*Math.PI),this.transform([["t",-t,-e],["r",n],["t",t,e]])},move:function(n,t){var e=this.get("x")||0,r=this.get("y")||0;return this.translate(n-e,t-r),this.set("x",n),this.set("y",t),this},transform:function(n){var t=this,e=this._attrs.matrix;return f.each(n,function(r){switch(r[0]){case"t":t.translate(r[1],r[2]);break;case"s":t.scale(r[1],r[2]);break;case"r":t.rotate(r[1]);break;case"m":t.attr("matrix",f.mat3.multiply([],e,r[1])),t.clearTotalMatrix()}}),t},setTransform:function(n){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(n)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(n){return this.attr("matrix",n),this.clearTotalMatrix(),this},apply:function(n,t){var e;return e=t?this._getMatrixByRoot(t):this.attr("matrix"),f.vec3.transformMat3(n,n,e),this},_getMatrixByRoot:function(n){n=n||this;for(var t=this,e=[];t!==n;)e.unshift(t),t=t.get("parent");e.unshift(t);var r=[1,0,0,0,1,0,0,0,1];return f.each(e,function(a){f.mat3.multiply(r,a.attr("matrix"),r)}),r},getTotalMatrix:function(){var n=this._cfg.totalMatrix;if(!n){n=[1,0,0,0,1,0,0,0,1];var t=this._cfg.parent;t&&i(n,t.getTotalMatrix()),i(n,this.attr("matrix")),this._cfg.totalMatrix=n}return n},clearTotalMatrix:function(){},invert:function(n){var t=this.getTotalMatrix();if(l(t))n[0]/=t[0],n[1]/=t[4];else{var e=f.mat3.invert([],t);e&&f.vec3.transformMat3(n,n,e)}return this},resetTransform:function(n){var t=this.attr("matrix");p(t)||n.transform(t[0],t[1],t[3],t[4],t[6],t[7])}}},function(M,x,g){var f=g(19);M.exports={canFill:!1,canStroke:!1,initAttrs:function(l){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(f.assign(this.getDefaultAttrs(),l)),this},getDefaultAttrs:function(){return{}},attr:function(l,i){if(arguments.length===0)return this._attrs;if(f.isObject(l)){for(var o in l)this._setAttr(o,l[o]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return arguments.length===2?(this._setAttr(l,i),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[l]},_setAttr:function(l,i){var o=this._attrs;o[l]=i,l!=="fill"&&l!=="stroke"?l!=="opacity"?l==="clip"&&i?this._setClip(i):l==="path"&&this._afterSetAttrPath?this._afterSetAttrPath(i):l!=="transform"?l==="rotate"&&this.rotateAtStart(i):this.transform(i):o.globalAlpha=i:o[l+"Style"]=i},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(l){l._cfg.renderer=this._cfg.renderer,l._cfg.canvas=this._cfg.canvas,l._cfg.parent=this._cfg.parent,l.hasFill=function(){return!0}}}},function(M,x,g){var f=g(19),p=g(643),l=g(642),i=g(741),o=g(740),n=function t(e){t.superclass.constructor.call(this,e)};n.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},f.extend(n,l),f.augment(n,{init:function(){n.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(e,r){if(e){if(!f.isEmpty(e._getEvents()))return e;var a=e.get("parent");if(a&&!r.propagationStopped)return this.getEmitter(a,r)}},_getEventObj:function(e,r,a,u){var c=new p(e,r,!0,!0);return c.x=a.x,c.y=a.y,c.clientX=r.clientX,c.clientY=r.clientY,c.currentTarget=u,c.target=u,c},_triggerEvent:function(e,r){var a,u=this.getPointByClient(r.clientX,r.clientY),c=this.getShape(u.x,u.y,r),s=this.get("el");if(e==="mousemove"){var h=this.get("preShape");if(h&&h!==c){var d=this._getEventObj("mouseleave",r,u,h);(a=this.getEmitter(h,r))&&a.emit("mouseleave",d),s.style.cursor="default"}if(c){var v=this._getEventObj("mousemove",r,u,c);if((a=this.getEmitter(c,r))&&a.emit("mousemove",v),h!==c){var y=this._getEventObj("mouseenter",r,u,c);a&&a.emit("mouseenter",y,r)}}else{var m=this._getEventObj("mousemove",r,u,this);this.emit("mousemove",m)}this.set("preShape",c)}else{var b=this._getEventObj(e,r,u,c||this);(a=this.getEmitter(c,r))&&a!==this&&a.emit(e,b),this.emit(e,b)}c&&!c.get("destroyed")&&(s.style.cursor=c.attr("cursor")||"default")},_registEvents:function(){var e=this,r=e.get("el");f.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],function(a){r.addEventListener(a,function(u){e._triggerEvent(a,u)},!1)}),r.addEventListener("touchstart",function(a){f.isEmpty(a.touches)||e._triggerEvent("touchstart",a.touches[0])},!1),r.addEventListener("touchmove",function(a){f.isEmpty(a.touches)||e._triggerEvent("touchmove",a.touches[0])},!1),r.addEventListener("touchend",function(a){f.isEmpty(a.changedTouches)||e._triggerEvent("touchend",a.changedTouches[0])},!1)},_scale:function(){if(this._cfg.renderType!=="svg"){var e=this.get("pixelRatio");this.scale(e,e)}},_setGlobalParam:function(){var e=this.get("renderer")||"canvas";e==="svg"?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",f.getRatio()),this._cfg.renderType=e;var r=o[e];this._cfg.renderer=r,this._cfg.canvas=this;var a=new i(this);this._cfg.timeline=a},_setContainer:function(){var e=this.get("containerId"),r=this.get("containerDOM");r||(r=document.getElementById(e),this.set("containerDOM",r)),f.modifyCSS(r,{position:"relative"})},_initPainter:function(){var e=this.get("containerDOM"),r=new this._cfg.renderer.painter(e);this._cfg.painter=r,this._cfg.canvasDOM=this._cfg.el=r.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var e=this.get("canvasDOM"),r=this.get("widthCanvas"),a=this.get("heightCanvas"),u=this.get("widthStyle"),c=this.get("heightStyle");e.style.width=u,e.style.height=c,e.setAttribute("width",r),e.setAttribute("height",a)},getWidth:function(){var e=this.get("pixelRatio");return this.get("width")*e},getHeight:function(){var e=this.get("pixelRatio");return this.get("height")*e},changeSize:function(e,r){var a=this.get("pixelRatio"),u=e*a,c=r*a;this.set("widthCanvas",u),this.set("heightCanvas",c),this.set("widthStyle",e+"px"),this.set("heightStyle",r+"px"),this.set("width",e),this.set("height",r),this._resize()},getPointByClient:function(e,r){var a=this.get("el"),u=this.get("pixelRatio")||1,c=a.getBoundingClientRect();return{x:(e-c.left)*u,y:(r-c.top)*u}},getClientByPoint:function(e,r){var a=this.get("el").getBoundingClientRect(),u=this.get("pixelRatio")||1;return{clientX:e/u+a.left,clientY:r/u+a.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(e,r,a){return arguments.length===3&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,e,r,a):n.superclass.getShape.call(this,e,r)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var e=this._cfg,r=e.containerDOM,a=e.canvasDOM;a&&r&&r.removeChild(a),e.timeline.stop(),n.superclass.destroy.call(this)}}),M.exports=n},function(M,x,g){var f=g(248),p={};g(257).mix(p,f.PathUtil,{getRectPath:f.PathUtil.rectPath,pointsToPolygon:function(i){for(var o=[["M",i[0].x,i[0].y]],n=1;n<i.length;n++){var t=i[n];o.push(["L",t.x,t.y])}return o},getEllipsePath:function(i,o,n,t){return[["M",i,o-t],["a",n,t,0,1,1,0,2*t],["a",n,t,0,1,1,0,-2*t],["z"]]}}),M.exports=p},function(M,x,g){var f=g(645),p=g(16),l="Expected a function";M.exports=function(i,o,n){var t=!0,e=!0;if(typeof i!="function")throw new TypeError(l);return p(n)&&(t="leading"in n?!!n.leading:t,e="trailing"in n?!!n.trailing:e),f(i,o,{leading:t,maxWait:o,trailing:e})}},function(M,x){M.exports=function(g,f,p){var l=void 0,i=void 0,o=void 0,n=void 0,t=0;p||(p={});var e=function(){t=p.leading===!1?0:Date.now(),l=null,n=g.apply(i,o),l||(i=o=null)},r=function(){var u=Date.now();t||p.leading!==!1||(t=u);var c=f-(u-t);return i=this,o=arguments,c<=0||c>f?(l&&(clearTimeout(l),l=null),t=u,n=g.apply(i,o),l||(i=o=null)):l||p.trailing===!1||(l=setTimeout(e,c)),n};return r.cancel=function(){clearTimeout(l),t=0,l=i=o=null},r}},function(M,x,g){var f=g(46),p=g(596),l=Object.prototype.hasOwnProperty;M.exports=function(i,o){if(i===null||!p(i))return{};var n={};return f(o,function(t){l.call(i,t)&&(n[t]=i[t])}),n}},function(M,x,g){var f=g(46),p=g(118);M.exports=function(l,i){if(!p(l))return l;var o=[];return f(l,function(n,t){o.push(i(n,t))}),o}},function(M,x,g){var f=g(84),p=g(614);M.exports=function(l,i,o){return f(o)?!!o(l,i):p(l,i)}},function(M,x,g){var f=g(118);M.exports=function(p,l){if(!f(p))return-1;var i=Array.prototype.indexOf;if(i)return i.call(p,l);for(var o=-1,n=0;n<p.length;n++)if(p[n]===l){o=n;break}return o}},function(M,x,g){var f=g(649);M.exports=function(p,l){if(!l)return[p];var i=f(p,l),o=[];for(var n in i)o.push(i[n]);return o}},function(M,x){M.exports=function(g,f,p){var l=void 0;return function(){var i=this,o=arguments,n=p&&!l;clearTimeout(l),l=setTimeout(function(){l=null,p||g.apply(i,o)},f),n&&g.apply(i,o)}}},function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"Error")}},function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"Arguments")}},function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"Date")}},function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"RegExp")}},function(M,x){M.exports=function(g){return g===void 0}},function(M,x){M.exports=function(g){return g===null}},function(M,x,g){var f=g(115),p={getType:g(654),isArray:g(45),isArrayLike:g(118),isBoolean:g(653),isFunction:g(84),isNil:g(237),isNull:g(762),isNumber:g(236),isObject:g(621),isObjectLike:g(619),isPlainObject:g(596),isPrototype:g(652),isType:f,isUndefined:g(761),isString:g(595),isRegExp:g(760),isDate:g(759),isArguments:g(758),isError:g(757)};M.exports=p},function(M,x,g){M.exports=g(656)},function(M,x){M.exports=function(g,f){return g&&f?g.replace(/\\?\{([^{}]+)\}/g,function(p,l){return p.charAt(0)==="\\"?p.slice(1):f[l]===void 0?"":f[l]}):g}},function(M,x,g){var f=g(594);M.exports=function(p){var l=f(p);return l.charAt(0).toLowerCase()+l.substring(1)}},function(M,x,g){M.exports=g(657)},function(M,x,g){var f={lc:g(767),lowerCase:g(657),lowerFirst:g(766),substitute:g(765),uc:g(764),upperCase:g(656),upperFirst:g(655)};M.exports=f},function(M,x){function g(p){var l=[];switch(p[0]){case"M":case"L":l.push([p[1],p[2]]);break;case"A":l.push([p[6],p[7]]);break;case"Q":l.push([p[3],p[4]]),l.push([p[1],p[2]]);break;case"T":l.push([p[1],p[2]]);break;case"C":l.push([p[5],p[6]]),l.push([p[1],p[2]]),l.push([p[3],p[4]]);break;case"S":l.push([p[3],p[4]]),l.push([p[1],p[2]]);break;case"H":case"V":l.push([p[1],p[1]])}return l}function f(p,l,i){for(var o=[].concat(p),n=void 0,t=1/(i+1),e=g(l)[0],r=1;r<=i;r++)t*=r,(n=Math.floor(p.length*t))===0?o.unshift([e[0]*t+p[n][0]*(1-t),e[1]*t+p[n][1]*(1-t)]):o.splice(n,0,[e[0]*t+p[n][0]*(1-t),e[1]*t+p[n][1]*(1-t)]);return o}M.exports=function(p,l){if(p.length<=1)return p;for(var i=void 0,o=0;o<l.length;o++)if(p[o][0]!==l[o][0])switch(i=g(p[o]),l[o][0]){case"M":p[o]=["M"].concat(i[0]);break;case"L":p[o]=["L"].concat(i[0]);break;case"A":p[o]=[].concat(l[o]),p[o][6]=i[0][0],p[o][7]=i[0][1];break;case"Q":if(i.length<2){if(!(o>0)){p[o]=l[o];break}i=f(i,p[o-1],1)}p[o]=["Q"].concat(i.reduce(function(n,t){return n.concat(t)},[]));break;case"T":p[o]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(o>0)){p[o]=l[o];break}i=f(i,p[o-1],2)}p[o]=["C"].concat(i.reduce(function(n,t){return n.concat(t)},[]));break;case"S":if(i.length<2){if(!(o>0)){p[o]=l[o];break}i=f(i,p[o-1],1)}p[o]=["S"].concat(i.reduce(function(n,t){return n.concat(t)},[]));break;default:p[o]=l[o]}return p}},function(M,x,g){var f=g(46);M.exports=function(p,l){if(p.length!==l.length)return!1;var i=!0;return f(p,function(o,n){if(o!==l[n])return i=!1,!1}),i}},function(M,x,g){var f=g(770);function p(l,i,o){var n=null,t=o;return i<t&&(t=i,n="add"),l<t&&(t=l,n="del"),{type:n,min:t}}M.exports=function(l,i){var o=function(v,y){var m=v.length,b=y.length,w=void 0,P=void 0,S=0;if(m===0||b===0)return null;for(var O=[],A=0;A<=m;A++)O[A]=[],O[A][0]={min:A};for(var E=0;E<=b;E++)O[0][E]={min:E};for(var _=1;_<=m;_++){w=v[_-1];for(var C=1;C<=b;C++){P=y[C-1],S=f(w,P)?0:1;var k=O[_-1][C].min+1,T=O[_][C-1].min+1,I=O[_-1][C-1].min+S;O[_][C]=p(k,T,I)}}return O}(l,i),n=l.length,t=i.length,e=[],r=1,a=1;if(o[n][t]!==n){for(var u=1;u<=n;u++){var c=o[u][u].min;a=u;for(var s=r;s<=t;s++)o[u][s].min<c&&(c=o[u][s].min,a=s);r=a,o[u][r].type&&e.push({index:u-1,type:o[u][r].type})}for(var h=e.length-1;h>=0;h--)r=e[h].index,e[h].type==="add"?l.splice(r,0,[].concat(l[r])):l.splice(r,1)}if((n=l.length)<t)for(var d=0;d<t-n;d++)l[n-1][0]==="z"||l[n-1][0]==="Z"?l.splice(n-2,0,l[n-2]):l.push(l[n-1]);return l}},function(M,x){function g(p,l){var i=[],o=[];return p.length&&function n(t,e){if(t.length===1)i.push(t[0]),o.push(t[0]);else{for(var r=[],a=0;a<t.length-1;a++)a===0&&i.push(t[0]),a===t.length-2&&o.push(t[a+1]),r[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];n(r,e)}}(p,l),{left:i,right:o.reverse()}}function f(p,l,i){if(i===1)return[[].concat(p)];var o=[];if(l[0]==="L"||l[0]==="C"||l[0]==="Q")o=o.concat(function(e,r,a){var u=[[e[1],e[2]]];a=a||2;var c=[];r[0]==="A"?(u.push(r[6]),u.push(r[7])):r[0]==="C"?(u.push([r[1],r[2]]),u.push([r[3],r[4]]),u.push([r[5],r[6]])):r[0]==="S"||r[0]==="Q"?(u.push([r[1],r[2]]),u.push([r[3],r[4]])):u.push([r[1],r[2]]);for(var s=u,h=1/a,d=0;d<a-1;d++){var v=g(s,h/(1-h*d));c.push(v.left),s=v.right}return c.push(s),c.map(function(y){var m=[];return y.length===4&&(m.push("C"),m=m.concat(y[2])),y.length>=3&&(y.length===3&&m.push("Q"),m=m.concat(y[1])),y.length===2&&m.push("L"),m=m.concat(y[y.length-1])})}(p,l,i));else{var n=[].concat(p);n[0]==="M"&&(n[0]="L");for(var t=0;t<=i-1;t++)o.push(n)}return o}M.exports=function(p,l){if(p.length===1)return p;var i=p.length-1,o=l.length-1,n=i/o,t=[];if(p.length===1&&p[0][0]==="M"){for(var e=0;e<o-i;e++)p.push(p[0]);return p}for(var r=0;r<o;r++){var a=Math.floor(n*r);t[a]=(t[a]||0)+1}var u=t.reduce(function(c,s,h){return h===i?c.concat(p[i]):c.concat(f(p[h],p[h+1],s))},[]);return u.unshift(p[0]),l[o]!=="Z"&&l[o]!=="z"||u.push("Z"),u}},function(M,x,g){var f=g(45),p=g(663),l=g(661),i=function(s,h,d,v,y){return s*(s*(-3*h+9*d-9*v+3*y)+6*h-12*d+6*v)-3*h+3*d},o=function(s,h,d,v,y,m,b,w,P){P===null&&(P=1);for(var S=(P=P>1?1:P<0?0:P)/2,O=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],A=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],E=0,_=0;_<12;_++){var C=S*O[_]+S,k=i(C,s,d,y,b),T=i(C,h,v,m,w),I=k*k+T*T;E+=A[_]*Math.sqrt(I)}return S*E},n=function(s,h,d,v,y,m,b,w){if(!(Math.max(s,d)<Math.min(y,b)||Math.min(s,d)>Math.max(y,b)||Math.max(h,v)<Math.min(m,w)||Math.min(h,v)>Math.max(m,w))){var P=(s-d)*(m-w)-(h-v)*(y-b);if(P){var S=((s*v-h*d)*(y-b)-(s-d)*(y*w-m*b))/P,O=((s*v-h*d)*(m-w)-(h-v)*(y*w-m*b))/P,A=+S.toFixed(2),E=+O.toFixed(2);if(!(A<+Math.min(s,d).toFixed(2)||A>+Math.max(s,d).toFixed(2)||A<+Math.min(y,b).toFixed(2)||A>+Math.max(y,b).toFixed(2)||E<+Math.min(h,v).toFixed(2)||E>+Math.max(h,v).toFixed(2)||E<+Math.min(m,w).toFixed(2)||E>+Math.max(m,w).toFixed(2)))return{x:S,y:O}}}},t=function(s,h,d){return h>=s.x&&h<=s.x+s.width&&d>=s.y&&d<=s.y+s.height},e=function(s,h,d,v){return s===null&&(s=h=d=v=0),h===null&&(h=s.y,d=s.width,v=s.height,s=s.x),{x:s,y:h,width:d,w:d,height:v,h:v,x2:s+d,y2:h+v,cx:s+d/2,cy:h+v/2,r1:Math.min(d,v)/2,r2:Math.max(d,v)/2,r0:Math.sqrt(d*d+v*v)/2,path:p(s,h,d,v),vb:[s,h,d,v].join(" ")}},r=function(s,h,d,v,y,m,b,w){f(s)||(s=[s,h,d,v,y,m,b,w]);var P=function(S,O,A,E,_,C,k,T){for(var I=[],R=[[],[]],F=void 0,j=void 0,B=void 0,H=void 0,et=0;et<2;++et)if(et===0?(j=6*S-12*A+6*_,F=-3*S+9*A-9*_+3*k,B=3*A-3*S):(j=6*O-12*E+6*C,F=-3*O+9*E-9*C+3*T,B=3*E-3*O),Math.abs(F)<1e-12){if(Math.abs(j)<1e-12)continue;(H=-B/j)>0&&H<1&&I.push(H)}else{var Q=j*j-4*B*F,J=Math.sqrt(Q);if(!(Q<0)){var K=(-j+J)/(2*F);K>0&&K<1&&I.push(K);var nt=(-j-J)/(2*F);nt>0&&nt<1&&I.push(nt)}}for(var st=I.length,V=st,tt=void 0;st--;)tt=1-(H=I[st]),R[0][st]=tt*tt*tt*S+3*tt*tt*H*A+3*tt*H*H*_+H*H*H*k,R[1][st]=tt*tt*tt*O+3*tt*tt*H*E+3*tt*H*H*C+H*H*H*T;return R[0][V]=S,R[1][V]=O,R[0][V+1]=k,R[1][V+1]=T,R[0].length=R[1].length=V+2,{min:{x:Math.min.apply(0,R[0]),y:Math.min.apply(0,R[1])},max:{x:Math.max.apply(0,R[0]),y:Math.max.apply(0,R[1])}}}.apply(null,s);return e(P.min.x,P.min.y,P.max.x-P.min.x,P.max.y-P.min.y)},a=function(s,h,d,v,y,m,b,w,P){var S=1-P,O=Math.pow(S,3),A=Math.pow(S,2),E=P*P,_=E*P,C=s+2*P*(d-s)+E*(y-2*d+s),k=h+2*P*(v-h)+E*(m-2*v+h),T=d+2*P*(y-d)+E*(b-2*y+d),I=v+2*P*(m-v)+E*(w-2*m+v);return{x:O*s+3*A*P*d+3*S*P*P*y+_*b,y:O*h+3*A*P*v+3*S*P*P*m+_*w,m:{x:C,y:k},n:{x:T,y:I},start:{x:S*s+P*d,y:S*h+P*v},end:{x:S*y+P*b,y:S*m+P*w},alpha:90-180*Math.atan2(C-T,k-I)/Math.PI}},u=function(s,h,d){if(!function(Q,J){return Q=e(Q),J=e(J),t(J,Q.x,Q.y)||t(J,Q.x2,Q.y)||t(J,Q.x,Q.y2)||t(J,Q.x2,Q.y2)||t(Q,J.x,J.y)||t(Q,J.x2,J.y)||t(Q,J.x,J.y2)||t(Q,J.x2,J.y2)||(Q.x<J.x2&&Q.x>J.x||J.x<Q.x2&&J.x>Q.x)&&(Q.y<J.y2&&Q.y>J.y||J.y<Q.y2&&J.y>Q.y)}(r(s),r(h)))return d?0:[];for(var v=~~(o.apply(0,s)/8),y=~~(o.apply(0,h)/8),m=[],b=[],w={},P=d?0:[],S=0;S<v+1;S++){var O=a.apply(0,s.concat(S/v));m.push({x:O.x,y:O.y,t:S/v})}for(var A=0;A<y+1;A++){var E=a.apply(0,h.concat(A/y));b.push({x:E.x,y:E.y,t:A/y})}for(var _=0;_<v;_++)for(var C=0;C<y;C++){var k=m[_],T=m[_+1],I=b[C],R=b[C+1],F=Math.abs(T.x-k.x)<.001?"y":"x",j=Math.abs(R.x-I.x)<.001?"y":"x",B=n(k.x,k.y,T.x,T.y,I.x,I.y,R.x,R.y);if(B){if(w[B.x.toFixed(4)]===B.y.toFixed(4))continue;w[B.x.toFixed(4)]=B.y.toFixed(4);var H=k.t+Math.abs((B[F]-k[F])/(T[F]-k[F]))*(T.t-k.t),et=I.t+Math.abs((B[j]-I[j])/(R[j]-I[j]))*(R.t-I.t);H>=0&&H<=1&&et>=0&&et<=1&&(d?P++:P.push({x:B.x,y:B.y,t1:H,t2:et}))}}return P};M.exports=function(c,s){return function(h,d,v){h=l(h),d=l(d);for(var y=void 0,m=void 0,b=void 0,w=void 0,P=void 0,S=void 0,O=void 0,A=void 0,E=void 0,_=void 0,C=v?0:[],k=0,T=h.length;k<T;k++){var I=h[k];if(I[0]==="M")y=P=I[1],m=S=I[2];else{I[0]==="C"?(y=(E=[y,m].concat(I.slice(1)))[6],m=E[7]):(E=[y,m,y,m,P,S,P,S],y=P,m=S);for(var R=0,F=d.length;R<F;R++){var j=d[R];if(j[0]==="M")b=O=j[1],w=A=j[2];else{j[0]==="C"?(b=(_=[b,w].concat(j.slice(1)))[6],w=_[7]):(_=[b,w,b,w,O,A,O,A],b=O,w=A);var B=u(E,_,v);if(v)C+=B;else{for(var H=0,et=B.length;H<et;H++)B[H].segment1=k,B[H].segment2=R,B[H].bez1=E,B[H].bez2=_;C=C.concat(B)}}}}}return C}(c,s)}},function(M,x,g){var f=g(773),p=g(660),l=g(661),i=g(658);M.exports={catmullRom2Bezier:i,catmullRomToBezier:i,fillPath:g(772),fillPathByDiff:g(771),formatPath:g(769),intersection:f,pathIntersection:f,parsePathArray:g(662),parsePathString:g(659),pathToAbsolute:p,path2absolute:p,pathTocurve:l,path2curve:l,rectPath:g(663)}},function(M,x,g){var f=g(605),p=g(664);M.exports=function(l,i){return f(p(l),i)}},function(M,x,g){M.exports=g(665)},function(M,x,g){M.exports=g(46)},function(M,x,g){M.exports={forIn:g(777),has:g(665),hasKey:g(776),hasValue:g(775),keys:g(677),isMatch:g(678),values:g(664)}},function(M,x,g){M.exports={mat3:g(617),vec2:g(668),vec3:g(667),transform:g(666)}},function(M,x,g){var f=g(45),p=g(84),l=g(46);M.exports=function(i,o){if(f(i)){var n=i[0],t=void 0;t=p(o)?o(i[0]):i[0][o];var e=void 0;return l(i,function(r){(e=p(o)?o(r):r[o])<t&&(n=r,t=e)}),n}}},function(M,x,g){var f=g(45),p=g(84),l=g(46);M.exports=function(i,o){if(f(i)){var n=i[0],t=void 0;t=p(o)?o(i[0]):i[0][o];var e=void 0;return l(i,function(r){(e=p(o)?o(r):r[o])>t&&(n=r,t=e)}),n}}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p>0}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p%2!=0}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p<0}},function(M,x,g){var f=g(236),p=Number.isInteger?Number.isInteger:function(l){return f(l)&&l%1==0};M.exports=p},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p%2==0}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p%1!=0}},function(M,x){M.exports=function(g,f){var p=f.toString(),l=p.indexOf(".");if(l===-1)return Math.round(g);var i=p.substr(l+1).length;return i>20&&(i=20),parseFloat(g.toFixed(i))}},function(M,x,g){var f=g(673);M.exports={clamp:g(618),fixedBase:g(788),isDecimal:g(787),isEven:g(786),isInteger:g(785),isNegative:g(784),isNumberEqual:f,isOdd:g(783),isPositive:g(782),maxBy:g(781),minBy:g(780),mod:g(672),snapEqual:f,toDegree:g(671),toInt:g(670),toInteger:g(670),toRadian:g(669)}},function(M,x,g){var f=g(45);M.exports=function(p){var l=0,i=0,o=0,n=0;return f(p)?p.length===1?l=i=o=n=p[0]:p.length===2?(l=o=p[0],i=n=p[1]):p.length===3?(l=p[0],i=n=p[1],o=p[2]):(l=p[0],i=p[1],o=p[2],n=p[3]):l=i=o=n=p,{r1:l,r2:i,r3:o,r4:n}}},function(M,x,g){var f=g(45),p=g(595),l=g(46),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;M.exports=function(n){return f(n=n||[])?n:p(n)?(n=n.match(i),l(n,function(t,e){if((t=t.match(o))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}l(t,function(a,u){isNaN(a)||(t[u]=+a)}),n[e]=t}),n):void 0}},function(M,x){var g={};M.exports=function(f){var p=g[f];if(!p){for(var l=f.toString(16),i=l.length;i<6;i++)l="0"+l;p="#"+l,g[f]=p}return p}},function(M,x,g){var f=g(792);M.exports={number2color:f,numberToColor:f,parsePath:g(791),parseRadius:g(790)}},function(M,x){M.exports=function(g,f){if(g["_wrap_"+f])return g["_wrap_"+f];var p=function(i){g[f](i)};return g["_wrap_"+f]=p,p}},function(M,x){M.exports=function(g,f){return g["_wrap_"+f]}},function(M,x,g){M.exports={getWrapBehavior:g(795),wrapBehavior:g(794)}},function(M,x,g){var f=g(237),p=g(45),l=g(46);M.exports=function(i,o){for(var n=[],t={},e=0;e<i.length;e++){var r=i[e][o];f(r)||(p(r)||(r=[r]),l(r,function(a){t[a]||(n.push(a),t[a]=!0)}))}return n}},function(M,x,g){var f=g(46),p=g(604),l=g(674);M.exports=function(){var i=[],o=p(arguments);return f(o,function(n){i=i.concat(n)}),l(i)}},function(M,x,g){var f=g(595),p=g(84),l=g(45);M.exports=function(i,o){var n=void 0;if(p(o))n=function(r,a){return o(r)-o(a)};else{var t=[];f(o)?t.push(o):l(o)&&(t=o),n=function(r,a){for(var u=0;u<t.length;u+=1){var c=t[u];if(r[c]>a[c])return 1;if(r[c]<a[c])return-1}return 0}}return i.sort(n),i}},function(M,x,g){var f=g(118),p=g(675);M.exports=function(l,i){var o=[];if(!f(l))return o;for(var n=-1,t=[],e=l.length;++n<e;){var r=l[n];i(r,n,l)&&(o.push(r),t.push(n))}return p(l,t),o}},function(M,x,g){var f=g(45),p=g(596),l=g(46);M.exports=function(i,o,n){if(!f(i)&&!p(i))return i;var t=n;return l(i,function(e,r){t=o(t,e,r)}),t}},function(M,x){M.exports=function(g){for(var f=[],p=0;p<g.length;p++)f=f.concat(g[p]);return f}},function(M,x,g){var f=g(620),p=g(45);M.exports=function(l){if(!(l=f(l,function(t){return!isNaN(t)})).length)return{min:0,max:0};if(p(l[0])){for(var i=[],o=0;o<l.length;o++)i=i.concat(l[o]);l=i}var n=Math.max.apply(null,l);return{min:Math.min.apply(null,l),max:n}}},function(M,x,g){var f=g(45);M.exports=function p(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(f(l))for(var o=0;o<l.length;o+=1)p(l[o],i);else i.push(l);return i}},function(M,x,g){var f=g(45),p=g(46);M.exports=function(l){if(!f(l))return l;var i=[];return p(l,function(o){f(o)?p(o,function(n){i.push(n)}):i.push(o)}),i}},function(M,x,g){var f=g(237),p=g(45);M.exports=function(l,i){for(var o=null,n=0;n<l.length;n++){var t=l[n][i];if(!f(t)){o=p(t)?t[0]:t;break}}return o}},function(M,x,g){var f=g(84),p=g(596),l=g(678);M.exports=function(i,o){var n=void 0;if(f(o)&&(n=o),p(o)&&(n=function(r){return l(r,o)}),n){for(var t=0;t<i.length;t+=1)if(n(i[t]))return i[t]}return null}},function(M,x,g){var f=g(620),p=g(605);M.exports=function(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return f(l,function(o){return!p(i,o)})}},function(M,x,g){M.exports={contains:g(605),difference:g(808),find:g(807),firstValue:g(806),flatten:g(805),flattenDeep:g(804),getRange:g(803),merge:g(802),pull:g(676),pullAt:g(675),reduce:g(801),remove:g(800),sortBy:g(799),union:g(798),uniq:g(674),valuesOfKey:g(797)}},function(M,x){M.exports=function(g,f){var p=this.getStyle(g,"width",f);return p==="auto"&&(p=g.offsetWidth),parseFloat(p)}},function(M,x,g){var f=g(237);M.exports=function(p,l,i){try{return window.getComputedStyle?window.getComputedStyle(p,null)[l]:p.currentStyle[l]}catch(o){return f(i)?null:i}}},function(M,x){M.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(M,x){M.exports=function(g,f){var p=this.getWidth(g,f),l=parseFloat(this.getStyle(g,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(g,"paddingLeft"))||0,o=parseFloat(this.getStyle(g,"paddingRight"))||0;return p+l+(parseFloat(this.getStyle(g,"borderRightWidth"))||0)+i+o}},function(M,x){M.exports=function(g,f){var p=this.getHeight(g,f),l=parseFloat(this.getStyle(g,"borderTopWidth"))||0,i=parseFloat(this.getStyle(g,"paddingTop"))||0,o=parseFloat(this.getStyle(g,"paddingBottom"))||0;return p+l+(parseFloat(this.getStyle(g,"borderBottomWidth"))||0)+i+o}},function(M,x){M.exports=function(g,f){var p=this.getStyle(g,"height",f);return p==="auto"&&(p=g.offsetHeight),parseFloat(p)}},function(M,x){M.exports=function(g,f){if(g&&g.getBoundingClientRect){var p=g.getBoundingClientRect(),l=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:p.top-l,bottom:p.bottom-l,left:p.left-i,right:p.right-i}}return f||null}},function(M,x){M.exports=function(g,f,p){if(g){if(g.addEventListener)return g.addEventListener(f,p,!1),{remove:function(){g.removeEventListener(f,p,!1)}};if(g.attachEvent)return g.attachEvent("on"+f,p),{remove:function(){g.detachEvent("on"+f,p)}}}}},function(M,x,g){M.exports={addEventListener:g(817),createDom:g(681),getBoundingClientRect:g(816),getHeight:g(815),getOuterHeight:g(814),getOuterWidth:g(813),getRatio:g(812),getStyle:g(811),getWidth:g(810),modifyCSS:g(680),requestAnimationFrame:g(679)}},function(M,x,g){var f=g(46),p=g(606),l=g(818),i=g(809),o=g(796),n=g(793),t=g(789),e=g(779),r=g(778),a=g(774),u=g(768),c=g(763),s={DOMUtil:l,DomUtil:l,MatrixUtil:e,PathUtil:a,arrayUtil:i,domUtil:l,eventUtil:o,formatUtil:n,mathUtil:t,matrixUtil:e,objectUtil:r,stringUtil:u,pathUtil:a,typeUtil:c,augment:g(651),clone:g(616),debounce:g(756),deepMix:g(615),each:f,extend:g(650),filter:g(620),group:g(755),groupBy:g(648),groupToMap:g(649),indexOf:g(754),isEmpty:g(647),isEqual:g(614),isEqualWith:g(753),map:g(752),mix:p,pick:g(751),throttle:g(750),toArray:g(604),toString:g(594),uniqueId:g(646)};f([l,i,o,n,t,e,r,a,u,c],function(h){p(s,h)}),M.exports=s},function(M,x,g){var f=g(683),p=g(626),l=g(247),i=g(609),o=g(248),n={Graph:g(625),Tree:g(689),Util:g(26),Layouts:g(623),G:o,Plugins:{},Components:{},Global:l,Shape:f,registerNode:f.registerNode,registerEdge:f.registerEdge,registerGroup:f.registerGroup,registerGuide:f.registerGuide,registerBehaviour:p.registerBehaviour,version:i,track:function(e){l.track=e}};g(684),M.exports=n}])})},26857:function(N,M,x){(function(g,f){N.exports=f(x(20532))})(window,function(g){return function(f){var p={};function l(i){if(p[i])return p[i].exports;var o=p[i]={i,l:!1,exports:{}};return f[i].call(o.exports,o,o.exports,l),o.l=!0,o.exports}return l.m=f,l.c=p,l.d=function(i,o,n){l.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:n})},l.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},l.t=function(i,o){if(1&o&&(i=l(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var t in i)l.d(n,t,function(e){return i[e]}.bind(null,t));return n},l.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return l.d(o,"a",o),o},l.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},l.p="",l(l.s=267)}({266:function(p,l,i){function o(u){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{},h=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(s).filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable}))),h.forEach(function(d){n(u,d,s[d])})}return u}function n(u,c,s){return c in u?Object.defineProperty(u,c,{value:s,enumerable:!0,configurable:!0,writable:!0}):u[c]=s,u}var t=i(3),e=t.Util,r=t.G.Canvas,a=function(){function u(s){e.mix(this,o({type:"minimap",container:null,isMinimap:!0,backgroundCSS:{height:"100%",position:"absolute",margin:"auto",left:0,right:0,"z-index":0},minimapContainerCSS:{background:"#fff",position:"relative",overflow:"hidden"},viewportCSS:{height:"100%",position:"absolute",margin:"auto",left:0,right:0,"z-index":1},controlLayerCSS:{width:"100%",height:"100%",cursor:"move",position:"absolute","z-index":2},viewportWindowStyle:{stroke:"#91D5FF"},viewportBackStyle:{fill:"#EBEEF2",fillOpacity:.65},getGraph:function(){}},s)),this._initContainer(),this._initMiniMap(),this._bindEvent(),this._assignDebounceRender()}var c=u.prototype;return c._assignDebounceRender=function(){var s=this;this.debounceRender=e.debounce(function(){s.renderBackground(),s.renderViewPort()},32)},c.bindGraph=function(s){var h=this;s.on("afterchange",function(){h.debounceRender()}),s.on("afterlayout",function(){h.debounceRender()}),s.on("afterviewportchange",function(){h.renderViewPort()}),s.on("afterfilter",function(){h.debounceRender()})},c.renderBackground=function(s){s||(s=this.getGraph());var h=this.miniMapCanvas,d=this.width,v=this.height,y=[];s.saveImage({graph:s,width:d,height:v,canvas:h,beforeTransform:function(b){var w=b[0];s.getNodes().forEach(function(P){var S=P.getBBox(),O=P.getModel(),A=S.width;if(A*w<2){var E=P.getGraphicGroup(),_=e.clone(E.getMatrix());E.transform([["t",-O.x,-O.y],["s",2/(A*w),2/(A*w)],["t",O.x,O.y]]),y.push({item:P,originMatrix:_})}})},afterTransform:function(){y.forEach(function(b){var w=b.item,P=b.originMatrix;w.getGraphicGroup().setMatrix(P)})}}),this.miniMapMatrix=h.matrix},c._bindEvent=function(){var s,h,d,v,y,m=this,b=this.controlLayer,w=!1;function P(){w=!1,h=void 0,v=void 0,s=void 0,d=void 0,y=void 0}b.on("mousedown",function(S){m.miniMapMatrix&&(y=m.getGraph(),w=!0,s=e.clone(y.getMatrix()),h=m.miniMapMatrix[0],d=s[0],v={clientX:S.clientX,clientY:S.clientY})}),b.on("mouseup",function(){P()}),b.on("mouseleave",function(){P()}),b.on("mousemove",function(S){if(w&&y){var O=v.clientX-S.clientX,A=v.clientY-S.clientY,E=e.clone(s);e.mat3.translate(E,E,[d*O/h,d*A/h]),y.updateMatrix(E)}})},c._initMiniMap=function(){var s=this.background,h=this.viewPort,d=this.width,v=this.height,y=this.viewportWindowStyle,m=this.viewportBackStyle,b=new r({containerDOM:s,width:d,height:v}),w=new r({containerDOM:h,width:d,height:v}),P=w.addShape("rect",{attrs:o({x:0,y:0,width:d,height:v},y)}),S=w.addShape("path",{attrs:o({path:"M0,0 L1,1"},m)});s.css({width:d+"px",height:v+"px"}),h.css({position:"absolute"}),this.miniMapCanvas=b,this.viewportCanvas=w,this.viewportWindow=P,this.viewportBack=S},c._initContainer=function(){var s=this.container,h=this.width,d=this.height;s=e.initDOMContainer(s,"minimap"),h||(h=e.getWidth(s),this.width=h),d||(d=e.getHeight(s),this.height=d);var v=this.minimapContainerCSS;v.width=h+"px",v.height=d+"px";var y=this.backgroundCSS,m=this.viewportCSS,b=this.controlLayerCSS,w=e.createDOM('<div class="g6-editor-minimap-container"></div>',v),P=e.createDOM('<div class="g6-editor-minimap-background"></div>',y),S=e.createDOM('<div class="g6-editor-minimap-viewport">',m),O=e.createDOM('<div class="g6-editor-minimap-control-layer">',b);s.appendChild(w),w.appendChild(O),w.appendChild(S),w.appendChild(P),this.minimapContainer=w,this.background=P,this.viewPort=S,this.controlLayer=O},c.renderViewPort=function(s){if(s||(s=this.getGraph()),s.getItems().length!==0){var h=this.viewportWindow,d=this.viewportCanvas,v=this.viewportBack,y=this.miniMapMatrix,m=s.getWidth(),b=s.getHeight(),w=this.width,P=this.height,S=s.getMatrix();if(y){var O=e.invertMatrix({x:0,y:0},S),A=e.invertMatrix({x:m,y:b},S),E=e.applyMatrix(O,y),_=e.applyMatrix(A,y),C=_.x-E.x,k=_.y-E.y;v.attr({path:[["M",0,0],["L",w,0],["L",w,P],["L",0,P],["L",0,0],["M",E.x,E.y],["L",E.x,_.y],["L",_.x,_.y],["L",_.x,E.y],["L",E.x,E.y]]}),h.attr({x:E.x,y:E.y,width:C,height:k}),d.draw()}}},c.destroy=function(){this.minimapContainer.destroy()},u}();p.exports=a},267:function(p,l,i){function o(r,a,u){return a in r?Object.defineProperty(r,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[a]=u,r}var n=i(3),t=i(266),e=function(){function r(u){this.options=u}var a=r.prototype;return a.init=function(){var u=this.graph,c=new t(function(s){for(var h=1;h<arguments.length;h++){var d=arguments[h]!=null?arguments[h]:{},v=Object.keys(d);typeof Object.getOwnPropertySymbols=="function"&&(v=v.concat(Object.getOwnPropertySymbols(d).filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable}))),v.forEach(function(y){o(s,y,d[y])})}return s}({getGraph:function(){return u}},this.options));c.bindGraph(u),this.minimap=c},a.destroy=function(){this.minimap.destroy()},r}();n.Plugins["tool.minimap"]=e,n.Components.Minimap=t,p.exports=e},3:function(p,l){p.exports=g}})})},42270:function(N,M,x){N=x.nmd(N),ace.define("ace/theme/monokai.css",["require","exports","module"],function(g,f,p){p.exports=`.ace-monokai .ace_gutter {
|
|
background: #2F3129;
|
|
color: #8F908A
|
|
}
|
|
|
|
.ace-monokai .ace_print-margin {
|
|
width: 1px;
|
|
background: #555651
|
|
}
|
|
|
|
.ace-monokai {
|
|
background-color: #272822;
|
|
color: #F8F8F2
|
|
}
|
|
|
|
.ace-monokai .ace_cursor {
|
|
color: #F8F8F0
|
|
}
|
|
|
|
.ace-monokai .ace_marker-layer .ace_selection {
|
|
background: #49483E
|
|
}
|
|
|
|
.ace-monokai.ace_multiselect .ace_selection.ace_start {
|
|
box-shadow: 0 0 3px 0px #272822;
|
|
}
|
|
|
|
.ace-monokai .ace_marker-layer .ace_step {
|
|
background: rgb(102, 82, 0)
|
|
}
|
|
|
|
.ace-monokai .ace_marker-layer .ace_bracket {
|
|
margin: -1px 0 0 -1px;
|
|
border: 1px solid #49483E
|
|
}
|
|
|
|
.ace-monokai .ace_marker-layer .ace_active-line {
|
|
background: #202020
|
|
}
|
|
|
|
.ace-monokai .ace_gutter-active-line {
|
|
background-color: #272727
|
|
}
|
|
|
|
.ace-monokai .ace_marker-layer .ace_selected-word {
|
|
border: 1px solid #49483E
|
|
}
|
|
|
|
.ace-monokai .ace_invisible {
|
|
color: #52524d
|
|
}
|
|
|
|
.ace-monokai .ace_entity.ace_name.ace_tag,
|
|
.ace-monokai .ace_keyword,
|
|
.ace-monokai .ace_meta.ace_tag,
|
|
.ace-monokai .ace_storage {
|
|
color: #F92672
|
|
}
|
|
|
|
.ace-monokai .ace_punctuation,
|
|
.ace-monokai .ace_punctuation.ace_tag {
|
|
color: #fff
|
|
}
|
|
|
|
.ace-monokai .ace_constant.ace_character,
|
|
.ace-monokai .ace_constant.ace_language,
|
|
.ace-monokai .ace_constant.ace_numeric,
|
|
.ace-monokai .ace_constant.ace_other {
|
|
color: #AE81FF
|
|
}
|
|
|
|
.ace-monokai .ace_invalid {
|
|
color: #F8F8F0;
|
|
background-color: #F92672
|
|
}
|
|
|
|
.ace-monokai .ace_invalid.ace_deprecated {
|
|
color: #F8F8F0;
|
|
background-color: #AE81FF
|
|
}
|
|
|
|
.ace-monokai .ace_support.ace_constant,
|
|
.ace-monokai .ace_support.ace_function {
|
|
color: #66D9EF
|
|
}
|
|
|
|
.ace-monokai .ace_fold {
|
|
background-color: #A6E22E;
|
|
border-color: #F8F8F2
|
|
}
|
|
|
|
.ace-monokai .ace_storage.ace_type,
|
|
.ace-monokai .ace_support.ace_class,
|
|
.ace-monokai .ace_support.ace_type {
|
|
font-style: italic;
|
|
color: #66D9EF
|
|
}
|
|
|
|
.ace-monokai .ace_entity.ace_name.ace_function,
|
|
.ace-monokai .ace_entity.ace_other,
|
|
.ace-monokai .ace_entity.ace_other.ace_attribute-name,
|
|
.ace-monokai .ace_variable {
|
|
color: #A6E22E
|
|
}
|
|
|
|
.ace-monokai .ace_variable.ace_parameter {
|
|
font-style: italic;
|
|
color: #FD971F
|
|
}
|
|
|
|
.ace-monokai .ace_string {
|
|
color: #E6DB74
|
|
}
|
|
|
|
.ace-monokai .ace_comment {
|
|
color: #75715E
|
|
}
|
|
|
|
.ace-monokai .ace_indent-guide {
|
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y
|
|
}
|
|
|
|
.ace-monokai .ace_indent-guide-active {
|
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
}
|
|
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai.css","ace/lib/dom"],function(g,f,p){f.isDark=!0,f.cssClass="ace-monokai",f.cssText=g("./monokai.css");var l=g("../lib/dom");l.importCssString(f.cssText,f.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(g){N&&(N.exports=g)})}()},42328:function(N,M,x){(function(g,f){N.exports=f(x(20532))})(window,function(g){return function(f){var p={};function l(i){if(p[i])return p[i].exports;var o=p[i]={i,l:!1,exports:{}};return f[i].call(o.exports,o,o.exports,l),o.l=!0,o.exports}return l.m=f,l.c=p,l.d=function(i,o,n){l.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:n})},l.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},l.t=function(i,o){if(1&o&&(i=l(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var t in i)l.d(n,t,function(e){return i[e]}.bind(null,t));return n},l.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return l.d(o,"a",o),o},l.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},l.p="",l(l.s=25)}([function(f,p,l){"use strict";function i(m){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{},P=Object.keys(w);typeof Object.getOwnPropertySymbols=="function"&&(P=P.concat(Object.getOwnPropertySymbols(w).filter(function(S){return Object.getOwnPropertyDescriptor(w,S).enumerable}))),P.forEach(function(S){o(m,S,w[S])})}return m}function o(m,b,w){return b in m?Object.defineProperty(m,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):m[b]=w,m}function n(m,b,w){return m.addShape("path",{attrs:i({},w,{path:b})})}function t(m){return[{x:m.centerX,y:m.minY},{x:m.maxX,y:m.centerY},{x:m.centerX,y:m.maxY},{x:m.minX,y:m.centerY}]}function e(m,b){var w,P,S=t(b),O=1/0;return S.forEach(function(A,E){var _,C,k=(_=m,C=A,Math.sqrt(Math.pow(_.x-C.x,2)+Math.pow(_.y-C.y,2)));k<O&&(w=A,O=k,P=E)}),{point:w,index:P}}function r(m,b){return{x:(m[b].x+m[b+1].x)/2,y:(m[b].y+m[b+1].y)/2}}function a(m,b){var w=m.point,P=m.index,S=b.point,O=b.index;return w.x===S.x||w.y===S.y?[w,S]:P===2&&O===0||P===0&&O===2?[w,{x:w.x,y:(w.y+S.y)/2},{x:S.x,y:(w.y+S.y)/2},S]:P!==2&&P!==0||O!==3&&O!==1?P!==1&&P!==3||O!==2&&O!==0?[w,{x:(w.x+S.x)/2,y:w.y},{x:(w.x+S.x)/2,y:S.y},S]:[w,{x:S.x,y:w.y},S]:[w,{x:w.x,y:S.y},S]}function u(m,b){return m[b].x===m[b+1].x}function c(m,b,w){return u(b,w)?m.x===b[w].x&&(m.y-b[w].y)*(m.y-b[w+1].y)<=0:m.y===b[w].y&&(m.x-b[w].x)*(m.x-b[w+1].x)<=0}function s(m,b){for(var w,P,S,O,A,E=1/0,_=0;_<b.length-1;_++){var C=u(b,_),k=void 0;if(c(k=C?{x:b[_].x,y:m.y}:{x:m.x,y:b[_].y},b,_)){var T=(O=m,A=k,Math.pow(O.x-A.x,2)+Math.pow(O.y-A.y,2));E>T&&(E=T,w=_,P=k,S=C)}}return{verticalPoint:P,index:w,vertical:S}}function h(m,b,w){var P,S,O,A=function(k){if(!k)return{x:void 0,y:void 0};var T=k.getBBox();return{x:T.centerX,y:T.centerY}}(b),E=m.getLinkPoints(A)[0];if(w){var _=t(m.getBBox())[w];P=m.getBBox(),S=_,O={x:b.getBBox().centerX,y:b.getBBox().centerY},((P.centerX-S.x)*(P.centerX-O.x)>0||(P.centerY-S.y)*(P.centerY-O.y)>0)&&(E=_)}E=e(E,m.getBBox());var C=b.getLinkPoints(E.point)[0];return{sourcePoint:E,targetPoint:C=e(C,b.getBBox())}}function d(m,b,w){return u(b,w)?m.minX>b[w].x?1:m.maxX<b[w].x?-1:0:m.minY>b[w].y?1:m.maxY<b.y?-1:0}function v(m,b,w){return u(b,w)?{x:b[w].x,y:m.y}:{x:m.x,y:b[w].y}}function y(m){var b;switch(m){case 0:b=2;break;case 1:b=3;break;case 3:b=1;break;default:b=0}return b}l.d(p,"b",function(){return n}),l.d(p,"c",function(){return t}),l.d(p,"f",function(){return e}),l.d(p,"j",function(){return r}),l.d(p,"h",function(){return a}),l.d(p,"i",function(){return u}),l.d(p,"l",function(){return c}),l.d(p,"e",function(){return s}),l.d(p,"d",function(){return h}),l.d(p,"a",function(){return d}),l.d(p,"g",function(){return v}),l.d(p,"k",function(){return y})},function(f,p,l){function i(u){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{},h=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(s).filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable}))),h.forEach(function(d){o(u,d,s[d])})}return u}function o(u,c,s){return c in u?Object.defineProperty(u,c,{value:s,enumerable:!0,configurable:!0,writable:!0}):u[c]=s,u}var n=l(7),t=l(3),e=l(4),r={getActivedStyle:function(){},getSelectedStyle:function(){},getStyle:function(){},getPath:function(){}};function a(u,c,s){var h=[];return e.isString(u)?h=[c,u]:e.isArray(u)?(u.unshift(c),h=u):h=[c],s&&h.unshift(s+"-base"),h}n.registerNode("page-base",i({},r)),n.registerEdge("page-base",i({},r)),n.registerGroup("page-base",i({},r)),n.registerGuide("page-base",i({},r)),t.setRegister=function(u,c,s){u.registerNode=function(h,d,v){n.registerNode(h,d,a(v,c+"-base",s))},u.registerEdge=function(h,d,v){n.registerEdge(h,d,a(v,c+"-base",s))},u.registerGroup=function(h,d,v){n.registerGroup(h,d,a(v,c+"-base",s))},u.registerGuide=function(h,d,v){n.registerGuide(h,d,a(v,c+"-base",s))},u.registerBehaviour=function(h,d,v){n.registerBehaviour(h,function(y){var m=y.get("page");m.set("_graph",y),d(m)},v)}},t.setRegister(t,"page"),l(44),f.exports=t},function(f,p,l){function i(a,u,c){return u in a?Object.defineProperty(a,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[u]=c,a}var o=l(7),n=l(22),t=l(63),e=l(64),r=function(a){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{},s=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(c).filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable}))),s.forEach(function(h){i(a,h,c[h])})}return a}({},o.Util,n,t,e);f.exports=r},function(f,p,l){function i(b){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(b)}function o(b){for(var w=1;w<arguments.length;w++){var P=arguments[w]!=null?arguments[w]:{},S=Object.keys(P);typeof Object.getOwnPropertySymbols=="function"&&(S=S.concat(Object.getOwnPropertySymbols(P).filter(function(O){return Object.getOwnPropertyDescriptor(P,O).enumerable}))),S.forEach(function(O){n(b,O,P[O])})}return b}function n(b,w,P){return w in b?Object.defineProperty(b,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):b[w]=P,b}function t(b,w){for(var P=0;P<w.length;P++){var S=w[P];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}function e(b,w){return!w||i(w)!=="object"&&typeof w!="function"?function(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(b):w}function r(b){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(b)}function a(b,w){return(a=Object.setPrototypeOf||function(P,S){return P.__proto__=S,P})(b,w)}var u=l(21),c=l(4),s=l(14),h=l(34),d=l(35),v=l(37),y=[h,l(38),l(39),d,v,l(40),l(42),l(43)],m=function(b){function w(A){var E;(function(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")})(this,w);var _={defaultData:null,shortcut:{redo:!0,undo:!0,delete:!0,resetZoom:!0,autoZoom:!0,zoomIn:!0,zoomOut:!0},_controllers:{},_signals:{}};return c.each(y,function(C){c.mix(_,C.CFG)}),c.mix(!0,_,A),(E=e(this,r(w).call(this,_))).isPage=!0,E.type="page",E._init(),E}var P,S,O;return function(A,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(E&&E.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),E&&a(A,E)}(w,u),P=w,(S=[{key:"getDelegation",value:function(A,E){var _;if(E||(E=this.getGraph().getRootGroup()),A.length!==1||A[0].isNode||A[0].isGroup){var C=c.getTotalBBox(A.map(function(k){return k.getBBox()}));(_=c.getRectByBox(C,E,s.nodeDelegationStyle)).set("capture",!1)}else A[0].isEdge?_=E.addShape("path",{attrs:o({path:"M0 0L 1 1"},s.edgeDelegationStyle),capture:!1}):(_=c.getRectByBox(A[0],E,s.nodeDelegationStyle)).set("capture",!1);return _}},{key:"focusGraphWrapper",value:function(){this.getGraph().getKeyboardEventWrapper().focus()}},{key:"saveImage",value:function(A){var E,_,C=this,k=this.getGraph(),T=k.getBBox(),I=k.getFitViewPadding();return k.saveImage(o({width:T.width+I[1]+I[3],height:T.height+I[0]+I[2],beforeTransform:function(){E=C.getSelected().map(function(R){return R.id}),_=C.getSelected().map(function(R){return R.id}),C.clearSelected(),C.clearActived()},afterTransform:function(){C.setSelected(E,!0),C.setActived(_,!0)}},A))}},{key:"_init",value:function(){var A=this;c.each(y,function(E){E.INIT&&A[E.INIT]()}),this.bindEvent(),this._cacheBBox()}},{key:"executeCommand",value:function(A,E){var _=this.editor;_?_.executeCommand(A,E):A()}},{key:"_cacheBBox",value:function(){var A=this.getGraph();this.set("bboxCache",A.getBBox())}},{key:"bindEvent",value:function(){var A=this;this.getGraph().on("afterchange",function(){A._cacheBBox()})}},{key:"translateLimt",value:function(A){var E=this.getGraph(),_=this.get("bboxCache"),C=E.getWidth(),k=E.getHeight(),T=[_.minX,_.minY,1],I=[_.maxX,_.maxY,1];return c.vec3.transformMat3(T,T,A),c.vec3.transformMat3(I,I,A),I[0]<100&&c.mat3.translate(A,A,[100-I[0],0]),I[1]<100&&c.mat3.translate(A,A,[0,100-I[1]]),T[1]>k-100&&c.mat3.translate(A,A,[0,k-100-T[1]]),T[0]>C-100&&c.mat3.translate(A,A,[C-100-T[0],0]),!0}},{key:"setSignal",value:function(A,E){this.get("_signals")[A]=E}},{key:"getSignal",value:function(A){return this.get("_signals")[A]}},{key:"setController",value:function(A,E){this.get("_controllers")[A]=E}},{key:"getController",value:function(A){return this.get("_controllers")[A]}},{key:"destroy",value:function(){var A=this.get("_graph"),E=this.get("_controllers");c.each(E,function(_){_.destroy()}),A.destroy()}}])&&t(P.prototype,S),O&&t(P,O),w}();c.each(y,function(b){c.mix(m.prototype,b.AUGMENT)}),f.exports=m},function(f,p,l){function i(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var o=l(6),n=l(14),t=o.createDOM("<canvas>").getContext("2d");f.exports=function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{},u=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(a).filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable}))),u.forEach(function(c){i(e,c,a[c])})}return e}({},o,{getPanCanvasBehaviour:function(e){return function(r){var a,u,c=r.getGraph();c.behaviourOn("canvas:mouseenter",function(){r.css({cursor:n.cursor.beforePanCanvas})}),c.behaviourOn("mouseleave",function(s){s.toShape||r.css({cursor:n.cursor.beforePanCanvas})}),c.behaviourOn("mousedown",function(s){(s.button!==2&&!e||!s.shape||s.item&&s.item.dragable===!1&&s.item.shapeObj.type!=="mind-root"&&!r.getSignal("dragEdge"))&&(a={x:s.domX,y:s.domY},r.css({cursor:n.cursor.panningCanvas}),u=c.getMatrix(),r.setCapture(!1))}),c.behaviourOn("drag",function(s){if(a){var h=s.domX-a.x,d=s.domY-a.y,v=[];o.mat3.translate(v,u,[h,d]),r.translateLimt(v)&&(c.updateMatrix(v),c.draw())}}),c.behaviourOn("mouseup",function(){a&&(a=void 0,u=void 0,r.setCapture(!0),r.css({cursor:n.cursor.beforePanCanvas}))})}},getLabelTextByTextLineWidth:function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:320;t.font=r;var u=t.measureText(e).width;if(u>a){u=0;for(var c=1;c<e.length;c++)(u+=t.measureText(e[c]).width)>=a&&(e=e.substring(0,c)+`
|
|
`+e.substring(c,e.length),c+=1,u=0)}return e}})},function(f,p){f.exports={orbitGap:10,nodeDefaultShape:"flow-node",edgeDefaultShape:"flow-smooth",groupDefaultShape:"flow-group",nodeActivedOutterStyle:{lineWidth:0},groupSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},nodeSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},edgeActivedStyle:{stroke:"#1890FF",strokeOpacity:.92},nodeActivedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupActivedStyle:{stroke:"#1890FF"},edgeSelectedStyle:{lineWidth:2,strokeOpacity:.92,stroke:"#A3B1BF"},nodeSelectedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupSelectedStyle:{stroke:"#1890FF",fillOpacity:.92},nodeStyle:{stroke:"#CED4D9",fill:"#FFFFFF",shadowOffsetX:0,shadowOffsetY:4,shadowBlur:10,shadowColor:"rgba(13, 26, 38, 0.08)",lineWidth:1,radius:4,fillOpacity:.92},edgeStyle:{stroke:"#A3B1BF",strokeOpacity:.92,lineWidth:1,lineAppendWidth:8,endArrow:!0},groupBackgroundPadding:[40,10,10,10],groupLabelOffsetX:10,groupLabelOffsetY:10,edgeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},edgeLabelRectPadding:4,edgeLabelRectStyle:{fill:"white"},nodeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},groupStyle:{stroke:"#CED4D9",radius:4},groupLabelStyle:{fill:"#666",textAlign:"left",textBaseline:"top"},multiSelectRectStyle:{fill:"#1890FF",fillOpacity:.08,stroke:"#1890FF",opacity:.1},dragNodeHoverToGroupStyle:{stroke:"#1890FF",lineWidth:2},dragNodeLeaveFromGroupStyle:{stroke:"#BAE7FF",lineWidth:2},anchorPointStyle:{radius:3.5,fill:"#fff",stroke:"#1890FF",lineAppendWidth:12},anchorHotsoptStyle:{radius:12,fill:"#1890FF",fillOpacity:.25},anchorHotsoptActivedStyle:{radius:14},anchorPointHoverStyle:{radius:4,fill:"#1890FF",fillOpacity:1,stroke:"#1890FF"},nodeControlPointStyle:{radius:4,fill:"#fff",shadowBlur:4,shadowColor:"#666"},edgeControlPointStyle:{radius:6,symbol:"square",lineAppendWidth:6,fillOpacity:0,strokeOpacity:0},nodeSelectedBoxStyle:{stroke:"#C2C2C2"},cursor:{panningCanvas:"-webkit-grabbing",beforePanCanvas:"-webkit-grab",hoverNode:"move",hoverEffectiveAnchor:"crosshair",hoverEdge:"default",hoverGroup:"move",hoverUnEffectiveAnchor:"default",hoverEdgeControllPoint:"crosshair",multiSelect:"crosshair"},zIndex:{anchorPoint:3,anchorHotsopt:2,selectedBox:1,controlPoint:4},polylineEdgeStyle:{offset:10,borderRadius:5},addToGroupDelayTime:400,outFromGroupDelayTime:400}},function(f,p,l){function i(u){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{},h=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(s).filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable}))),h.forEach(function(d){o(u,d,s[d])})}return u}function o(u,c,s){return c in u?Object.defineProperty(u,c,{value:s,enumerable:!0,configurable:!0,writable:!0}):u[c]=s,u}var n=l(7),t=l(28),e=l(29),r={whitespace:{9:"Tab",13:"Enter",32:"Space"},fn:{112:"f1 ",113:"f2 ",114:"f3 ",115:"f4 ",116:"f5 ",117:"f6 ",118:"f7 ",119:"f8 ",120:"f9 ",121:"f10",122:"f11",123:"f12"},letter:{65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z"},number:{48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9"},navigation:{37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},symbol:{110:"decimal point",186:"semi-colon",187:"=",188:"comma",189:"-",190:"period ",191:"/",192:"grave accent",219:"open bracket ",220:"back slash ",221:"close bracket ",222:"single quote "},smallNumberKey:{96:"numpad 0 ",97:"numpad 1 ",98:"numpad 2 ",99:"numpad 3 ",100:"numpad 4 ",101:"numpad 5 ",102:"numpad 6 ",103:"numpad 7 ",104:"numpad 8 ",105:"numpad 9 "},modifierKey:{16:"Shift",17:"Ctrl ",18:"Alt",20:"caps lock"},escKey:{8:"Backspace",46:"Delete",27:"Escape"},homeKey:{91:"Windows Key / Left command",92:"right window key ",93:"Windows Menu"},computeKey:{106:"multiply ",107:"add",109:"subtract ",111:"divide "}},a=i({},n.Util,t,{getNodeSize:function(u){if(u){if(n.Util.isNumber(u))return[u,u];if(n.Util.isString(u)){if(u.indexOf("*")===-1){var c=Number(u);return[c,c]}return u.split("*")}return u}return[96,48]},getTypeAndChar:function(u){var c;for(var s in u=""+u,r)for(var h in c=s,r[s])if(h===u)return{type:c,character:r[s][h]};return{}},getKeyboradKey:function(u){return u.key||a.getTypeAndChar(u.keyCode).character},getIndex:function(u){return u.getParent().get("children").indexOf(u)},setId:function(u){u.id||(u.id=n.Util.guid())},pointLineDistance:function(u,c,s,h,d,v){var y=[s-u,h-c];if(n.Util.vec2.exactEquals(y,[0,0]))return NaN;var m=[-y[1],y[0]];n.Util.vec2.normalize(m,m);var b=[d-u,v-c];return Math.abs(n.Util.vec2.dot(b,m))},getRectByBox:function(u,c,s){return c.addShape("rect",{attrs:i({},s,{x:u.minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.minY})})},objectToValues:function(u){var c,s=[];for(c in u)u.hasOwnProperty(c)&&s.push(u[c]);return s},getValue:function(u){return n.Util.isFunction(u)?u():u},getContrast:function(u,c){var s={};return n.Util.each(c,function(h,d){s[d]=u[d]}),s},arrowTo:function(u,c,s,h,d,v,y){var m=[v-h,y-d],b=n.Util.vec2.angleTo(m,[1,0],!0);return u.transform([["r",b],["t",c,s]]),u},setEndOfContenteditable:function(u){var c,s;document.createRange?((c=document.createRange()).selectNodeContents(u),c.collapse(!1),(s=window.getSelection()).removeAllRanges(),s.addRange(c)):document.selection&&((c=document.body.createTextRange()).moveToElementText(u),c.collapse(!1),c.select())},matches:function(u,c){return(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){for(var h=(this.document||this.ownerDocument).querySelectorAll(s),d=h.length;--d>=0&&h.item(d)!==this;);return d>-1}).call(u,c)},delegateEvent:function(u,c,s,h){return a.addEventListener(u,c,function(d){for(var v=d.target||d.srcElement;v!==u;)a.matches(v,s)&&h.call(v,Array.prototype.slice.call(arguments)),v=v.parentNode})},Palettes:e});f.exports=a},function(f,p){f.exports=g},function(f,p,l){function i(y){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(y)}function o(y){for(var m=1;m<arguments.length;m++){var b=arguments[m]!=null?arguments[m]:{},w=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(b).filter(function(P){return Object.getOwnPropertyDescriptor(b,P).enumerable}))),w.forEach(function(P){n(y,P,b[P])})}return y}function n(y,m,b){return m in y?Object.defineProperty(y,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):y[m]=b,y}function t(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}function e(y,m){return!m||i(m)!=="object"&&typeof m!="function"?function(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(y):m}function r(y,m,b){return(r=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(w,P,S){var O=function(E,_){for(;!Object.prototype.hasOwnProperty.call(E,_)&&(E=a(E))!==null;);return E}(w,P);if(O){var A=Object.getOwnPropertyDescriptor(O,P);return A.get?A.get.call(S):A.value}})(y,m,b||y)}function a(y){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)})(y)}function u(y,m){return(u=Object.setPrototypeOf||function(b,w){return b.__proto__=w,b})(y,m)}var c=l(7),s=l(1),h=l(10),d=[],v=function(y){function m(S){var O;(function(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")})(this,m);var A={showHotArea:!1,defaultData:{roots:[{label:"\u601D\u7EF4\u5BFC\u56FE",children:[{label:"\u65B0\u5EFA\u8282\u70B9"},{label:"\u65B0\u5EFA\u8282\u70B9"},{label:"\u65B0\u5EFA\u8282\u70B9"}]}]},shortcut:{append:!0,appendChild:!0,collapseExpand:!0,selectAll:!0},labelEditable:!0,graph:{modes:{default:["clickNodeSelected","keydownMoveSelection","clickCanvasSelected","keydownEditLabel","panBlank","wheelChangeViewport","panMindNode","clickCollapsedButton","clickExpandedButton","hoverButton","hoverNodeActived","dblclickItemEditLabel"],readOnly:["clickNodeSelected","wheelChangeViewport","keydownMoveSelection","hoverNodeActived","panCanvas","clickExpandedButton","hoverButton","clickCanvasSelected"]},layout:new c.Layouts.Mindmap({direction:"H",getSubTreeSep:function(_){return _.children&&_.children.length>0?_.hierarchy<=2?8:2:0},getHGap:function(_){return _.hierarchy===1?8:_.hierarchy===2?24:18},getVGap:function(_){return _.hierarchy===1||_.hierarchy===2?24:2},getSide:function(_){return _.data.side?_.data.side:"right"}}),mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"mind-base",edgeDefaultShape:"mind-edge",minZoom:.2,maxZoom:2},align:{item:!1},rootShape:"mind-root",firstSubShape:"mind-first-sub",secondSubShape:"mind-second-sub",subShape:"mind-base",nodeDefaultShape:"mind-base",graphConstructor:c.Tree,defaultSide:"right"},E={};return h.each(d,function(_){h.mix(E,_.CFG)}),h.mix(!0,A,E,S),(O=e(this,a(m).call(this,A))).isMind=!0,O}var b,w,P;return function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),O&&u(S,O)}(m,s),b=m,(w=[{key:"_init",value:function(){var S=this;r(a(m.prototype),"_init",this).call(this),h.each(d,function(R){R.INIT&&S[R.INIT]()});var O=this.getGraph(),A=this.get("defaultData"),E=O.get("mode"),_=O.getRootGroup().addGroup();if(this.set("hotAreaGroup",_),O.edge().shape(function(R){if(O.find(R.target).getModel().isPlaceholder)return"mind-placeholder-edge"}),A&&this.read(A),E==="default"){if(A){var C=this.getRoot(),k=O.find(C.id);this.setSelected(k,!0)}}else if(E==="readOnly"){var T=this.get("shortcut");T.append=!1,T.appendChild=!1,T.selectAll=!1,T.delete=!1}if(A){var I=this.getRoot();this.focus(I.id)}}},{key:"bindEvent",value:function(){var S=this;r(a(m.prototype),"bindEvent",this).call(this);var O=this.get("_graph");O.on("keydown",function(A){A.domEvent.preventDefault()}),O.on("beforechange",function(A){A.action==="add"?S._beforeAdd(A):A.action==="changeData"&&S._beforeChangeData(A)}),O.on("aftersource",function(){S._setHierarchy()}),O.on("afterchange",function(){S._setHotArea()}),O.on("afteritemdraw",function(A){var E=A.item,_=E.getModel();if(E.isEdge){var C=E.getGraphicGroup();h.toBack(C,C.getParent()),C.setSilent("capture",!1)}_.parent||(E.isRoot=!0,E.deleteable=!1,E.collapseExpand=!1,E.appendable=!1,E.dragable=!1)}),this.on("beforedelete",function(A){var E=A.items[0],_=S._getBrothers(E),C=S._getNth(E);_[C-1]?S.setSelected(_[C-1].id,!0):_[C+1]?S.setSelected(_[C+1].id,!0):S.setSelected(E.getParent(),!0)}),this.on("afteritemselected",function(A){S._tryAdjustViewport(A.item)})}},{key:"getRoot",value:function(){return this.getGraph().getSource().roots[0]}},{key:"_setHierarchy",value:function(S){var O=this.getGraph(),A=this.get("firstSubShape"),E=this.get("secondSubShape"),_=this.get("defaultSide");if(S){var C=O.find(S.parent);if(C){var k=C.getModel();S.hierarchy=k.hierarchy+1,S.shape!=="mind-placeholder"&&(S.hierarchy===2&&(S.shape=A,S.side||(S.side=_)),S.hierarchy===3&&(S.shape=E))}}else(S=this.getRoot()).hierarchy=1;h.traverseTree(S,function(T,I){T.hierarchy=I.hierarchy+1,T.side||(T.side=_),I.side&&(T.side=I.side),T.hierarchy===2?T.shape=A:T.hierarchy===3&&(T.shape=E)},function(T){return T.children})}},{key:"getFirstChildrenBySide",value:function(S){var O=this.getRoot(),A=[];return O.children.forEach(function(E){E.side===S&&A.push(E)}),A}},{key:"_getNth",value:function(S){return this.getGraph().getNth(S)}},{key:"_getBrothers",value:function(S){return S.getParent().getModel().children}},{key:"_getMoveChildModel",value:function(S){if(S&&S.length>0){var O=S.length;return S[parseInt(O/2)]}}},{key:"_getVerticalMoveItem",value:function(S,O,A){for(var E,_=this.getGraph().getNodes(),C=S.getBBox(),k=[C.minX,C.maxX],T=[],I=0;I<k.length;I++)for(var R=k[I],F=0;F<_.length;F++){var j=_[F],B=j.getBBox();O(B,C,R)&&T.push({long:A(B,C),node:j})}return T.length>0&&(T.sort(function(H,et){return H.long-et.long}),E=T[0].node),E}},{key:"_arrowTopItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A-1]?O[A-1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY<_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return _.centerY-E.centerY})}},{key:"_arrowBottomItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A+1]?O[A+1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY>_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return E.centerY-_.centerY})}},{key:"_arrowLeftItem",value:function(S){var O=h.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("left");return this._getMoveChildModel(A)}if(O==="left"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_arrowRightItem",value:function(S){var O=h.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("right");return this._getMoveChildModel(A)}if(O==="right"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_moveItemSelection",value:function(S){var O=this.getGraph(),A=this.getSelected()[0];if(A){var E,_=S.domEvent,C=h.getKeyboradKey(_);C!=="ArrowUp"||A.isRoot?C!=="ArrowDown"||A.isRoot?C==="ArrowLeft"?E=this._arrowLeftItem(A):C==="ArrowRight"&&(E=this._arrowRightItem(A)):E=this._arrowBottomItem(A):E=this._arrowTopItem(A),E&&(E=O.find(E.id)).isVisible()&&(this.clearSelected(),this.setSelected(E,!0))}}},{key:"showLabelEditor",value:function(S){var O=S.domEvent,A=this.getSelected()[0],E=h.getKeyboradKey(O);if(A&&E.length===1&&!O.metaKey&&!O.ctrlKey){var _=this.get("labelTextArea");A&&(this.beginEditLabel(A),_.innerHTML=E,h.setEndOfContenteditable(_))}}},{key:"_tryAdjustViewport",value:function(S){var O=this.get("_graph"),A=S.getBBox(),E={x:A.minX,y:A.minY},_={x:A.maxX,y:A.maxY},C=O.getDomPoint(E),k=O.getDomPoint(_),T=O.getWidth(),I=O.getHeight();C.x<0&&O.translate(16-C.x,0),C.y<0&&O.translate(0,16-C.y),k.x>T&&O.translate(T-k.x-16,0),k.y>I&&O.translate(0,I-k.y-16)}},{key:"_beforeChangeData",value:function(S){var O=S.data.roots[0],A=this.get("rootShape");O.shape=A,this._setHierarchy(O)}},{key:"_beforeAdd",value:function(S){var O=this.get("_graph"),A=S.model,E=O.find(A.parent);E.getModel().collapsed&&O.update(E,{collapsed:!1}),this._setHierarchy(A)}},{key:"_drawHotAreaShape",value:function(){var S=this.get("_graph"),O=this.get("hotAreaGroup"),A=this.get("hotAreas");O.clear(),A.forEach(function(E){O.addShape("rect",{attrs:{x:E.minX,y:E.minY,width:E.maxX-E.minX,height:E.maxY-E.minY,fill:E.color,fillOpacity:.4},capture:!1})}),S.draw()}},{key:"_setHotArea",value:function(){var S=[],O=this.get("_graph"),A=this.getRoot(),E="placeholder",_=this.get("showHotArea"),C=O.find(A.id).getBBox();S.push({minX:C.minX-90,minY:C.minY-60,maxX:(C.minX+C.maxX)/2,maxY:C.maxY+60,parent:A,current:A,id:A.id+"left"+E,nth:A.children.length,side:"left",color:"orange"}),S.push({minX:(C.minX+C.maxX)/2,minY:C.minY-60,maxX:C.maxX+90,maxY:C.maxY+60,parent:A,current:A,id:A.id+"right"+E,nth:A.children.length,side:"right",color:"pink"}),h.traverseTree(A,function(k,T,I){var R=O.find(k.id);if(!k.isPlaceholder&&R&&R.isVisible()){var F=function(nt,st,V){var tt=V.children,$=nt;if(!V.parent)for(;tt[$]&&tt[$].side!==st.side;)$++;for(;tt[$]&&tt[$].isPlaceholder;)$++;if(tt[$]&&tt[$].side===st.side)return tt[$]}(I+1,k,T),j=function(nt,st,V){var tt=V.children,$=nt;if(!V.parent)for(;tt[$]&&tt[$].side!==st.side;)$--;for(;tt[$]&&tt[$].isPlaceholder;)$--;if(tt[$]&&tt[$].side===st.side)return tt[$]}(I-1,k,T),B=O.find(k.id).getBBox(),H=T.children,et=k.hierarchy===2&&k.side==="right",Q=k.hierarchy===2&&k.side==="left";if(j||S.push({minX:et?B.minX-90:B.minX,minY:function(){var nt=j?B.minY:B.minY-16;return H[I-1]&&H[I-1].isPlaceholder&&H[I-1].side===k.side&&(nt=O.find(H[I-1].id).getBBox().minY),nt}(),maxX:Q?B.maxX+90:B.maxX,maxY:(B.minY+B.maxY)/2,parent:T,id:(j?j.id:void 0)+k.id+T.id+E,side:k.side,color:"yellow",nth:I}),F){var J=O.find(F.id).getBBox();S.push({minX:k.side==="left"?Math.max(B.minX,J.minX):et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:k.side==="right"?Math.min(B.maxX,J.maxX):Q?B.maxX+90:B.maxX,maxY:(J.minY+J.maxY)/2,parent:T,id:k.id+(F?F.id:void 0)+T.id+E,side:k.side,color:"blue",nth:I+1})}else S.push({minX:et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:Q?B.maxX+90:B.maxX,maxY:function(){var nt=B.maxY+16;return H[I+1]&&H[I+1].isPlaceholder&&H[I+1].side===k.side&&(nt=O.find(H[I+1].id).getBBox().maxY),nt}(),parent:T,id:k.id+void 0+T.id+E,color:"red",nth:I+1,addOrder:"push",side:k.side});if(!k.children||k.children.length===0||k.children.length===1&&k.children[0].isPlaceholder){var K;K=k.x>T.x?{minX:B.maxX,minY:B.minY-0,maxX:B.maxX+100,maxY:B.maxY+0}:{minX:B.minX-100,minY:B.minY-0,maxX:B.minX,maxY:B.maxY+0},S.push(o({},K,{parent:k,id:NaN+k.id+E,nth:0,color:"green",side:k.side,addOrder:"push"}))}}},function(k){return k.children}),this.set("hotAreas",S),_&&this._drawHotAreaShape()}},{key:"hideHotArea",value:function(){var S=this.get("_graph");this.get("hotAreaGroup").clear(),S.draw(),this.set("showHotArea",!1)}},{key:"showHotArea",value:function(){this._drawHotAreaShape(),this.set("showHotArea",!0)}},{key:"getHotArea",value:function(S){var O;return this.get("hotAreas").forEach(function(A){if(S.x>A.minX&&S.x<A.maxX&&S.y>A.minY&&S.y<A.maxY)return O=A,!1}),O}},{key:"saveExpandImage",value:function(S){var O,A,E,_=this,C=this.getGraph(),k=C.getBBox(),T=C.getFitViewPadding();return C.saveImage(o({width:k.width+T[1]+T[3],height:k.height+T[0]+T[2],beforeTransform:function(){var I=C.getNodes();(O=I.filter(function(R){return R.getModel().collapsed}).map(function(R){return R.getModel().id})).forEach(function(R){C.update(R,{collapsed:!1})}),C.layout(),A=_.getSelected().map(function(R){return R.id}),E=_.getSelected().map(function(R){return R.id}),_.clearSelected(),_.clearActived()},afterTransform:function(){O.forEach(function(I){C.update(I,{collapsed:!0})}),_.setSelected(A,!0),_.setActived(E,!0)}},S))}},{key:"save",value:function(){var S=this.get("_graph").save();return S.roots.forEach(function(O){h.traverseTree(O,function(A){delete A.x,delete A.y,delete A.width,delete A.height,delete A.parent,delete A.nth,delete A.hierarchy,delete A.index,delete A.shape},function(A){return A.children},!0)}),S}}])&&t(b.prototype,w),P&&t(b,P),m}();h.each(d,function(y){h.mix(v.prototype,y.AUGMENT)}),s.setRegister(v,"mind","page"),f.exports=v},function(f,p,l){function i(e,r){for(var a=0;a<r.length;a++){var u=r[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function o(e,r,a){return r&&i(e.prototype,r),a&&i(e,a),e}var n=l(7).Util,t=function(){function e(r){(function(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")})(this,e);var a=this.getDefaultCfg();n.mix(!0,this,a,r),this.init()}return o(e,[{key:"getDefaultCfg",value:function(){return{}}}]),o(e,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),e}();f.exports=t},function(f,p,l){function i(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var o=function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.forEach(function(a){i(n,a,e[a])})}return n}({},l(4),{getMindNodeSide:function(n){var t=n.getModel();if(t.side)return t.side;var e=n.getParent();return e?e.getModel().side?e.getModel().side:o.getMindNodeSide(e):void 0}});f.exports=o},function(f,p,l){function i(c){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){return!s||i(s)!=="object"&&typeof s!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(c):s}function n(c){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)})(c)}function t(c,s){return(t=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h})(c,s)}var e=l(1),r=l(16),a=l(19),u=function(c){function s(h){var d;(function(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")})(this,s);var v={graph:{modes:{default:["panBlank","hoverGroupActived","keydownCmdWheelZoom","clickEdgeSelected","clickNodeSelected","clickCanvasSelected","clickGroupSelected","hoverNodeActived","hoverEdgeActived","hoverButton","clickCollapsedButton","clickExpandedButton","wheelChangeViewport","keydownShiftMultiSelected","dragNodeAddToGroup","dragOutFromGroup","panItem","hoverEdgeControlPoint","dragEdgeControlPoint"],add:["dragPanelItemAddNode"],readOnly:["panCanvas"],move:["panCanvas"],multiSelect:["dragMultiSelect"]},mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"flow-base",edgeDefaultShape:"flow-smooth",groupDefaultShape:"flow-base"},linkNode:!1};return a.mix(!0,v,{},h),(d=o(this,n(s).call(this,v))).isFlow=!0,d}return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),d&&t(h,d)}(s,r),s}();e.setRegister(u,"flow","diagram"),f.exports=u},function(f,p,l){function i(h){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(h)}function o(h,d){for(var v=0;v<d.length;v++){var y=d[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}function n(h,d){return!d||i(d)!=="object"&&typeof d!="function"?function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}(h):d}function t(h,d,v){return(t=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(y,m,b){var w=function(S,O){for(;!Object.prototype.hasOwnProperty.call(S,O)&&(S=e(S))!==null;);return S}(y,m);if(w){var P=Object.getOwnPropertyDescriptor(w,m);return P.get?P.get.call(b):P.value}})(h,d,v||h)}function e(h){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(h)}function r(h,d){return(r=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v})(h,d)}var a=l(16),u=l(1),c=l(6),s=function(h){function d(b){var w;(function(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")})(this,d);var P={graph:{modes:{default:["panBlank","keydownCmdWheelZoom","clickEdgeSelected","clickNodeSelected","clickCanvasSelected","hoverNodeActived","hoverEdgeActived","hoverButton","wheelChangeViewport","keydownShiftMultiSelected","panItem","hoverNodeShowArrowController","hoverEdgeControlPoint","dragEdgeControlPoint","bpmnMoveEdgeController"],add:["dragPanelItemAddNode","processAddEdge"],readOnly:["panCanvas"],move:["panCanvas"],multiSelect:["dragMultiSelect"]},mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"bpmn-base",edgeDefaultShape:"bpmn-base"},arrowController:{thickness:32,long:32,controllers:[]}};return c.mix(!0,P,{},b),(w=n(this,e(d).call(this,P))).isBPMN=!0,w}var v,y,m;return function(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),w&&r(b,w)}(d,a),v=d,(y=[{key:"_init",value:function(){t(e(d.prototype),"_init",this).call(this),this._initArrowController()}},{key:"_createArrowController",value:function(b,w){var P=this,S=this.get("arrowController").controllers,O=c.createDOM('<div class="g6-bpmn-arrow"><svg t="1543840367375" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1061" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M906.77248 512c0 4.77184-2.21184 9.2672-5.9904 12.17536l-376.5248 289.4848c-2.7648 2.11968-6.06208 3.18464-9.3696 3.18464-3.25632 0-6.5024-1.03424-9.24672-3.09248-5.50912-4.15744-7.5776-11.48928-5.03808-17.90976l75.71456-191.67232L132.58752 604.17024c-8.48896 0-15.36-6.88128-15.36-15.36l0-153.6c0-8.48896 6.87104-15.36 15.36-15.36l443.72992 0-75.71456-191.68256c-2.53952-6.42048-0.47104-13.75232 5.04832-17.90976 5.50912-4.15744 13.12768-4.13696 18.60608 0.09216l376.5248 289.4848C904.56064 502.7328 906.77248 507.22816 906.77248 512z" p-id="1062" fill="#34B7EF"></path></svg></div>',{visibility:"hidden",width:b+"px",height:w+"px",position:"absolute"});return O.setAttribute("draggable","true"),c.addEventListener(O,"dragstart",function(){var A=O.hoverNode,E={shape:"bpmn-base",source:A.id,anchorIndex:O.getAttribute("anchorIndex")},_=A.getBBox(),C=P.getDelegation([{isEdge:!0}]);P.setSignal("dragEdge",!0),P.beginAdd("edge",E),P.set("addEdgeConfig",{addModel:E,delegation:C,startPoint:{x:_.centerX,y:_.centerY},sourceItem:A}),P.hideArrowController()}),S.push(O),O}},{key:"showArrowController",value:function(b){this.get("arrowController").controllers.forEach(function(w){w.show(),w.hoverNode=b})}},{key:"hideArrowController",value:function(){this.get("arrowController").controllers.forEach(function(b){b.hide()})}},{key:"_initArrowController",value:function(){var b=this.getGraph().getGraphContainer(),w=this.get("arrowController"),P=w.thickness,S=w.long,O=this._createArrowController(P,S),A=this._createArrowController(P,S),E=this._createArrowController(S,P),_=this._createArrowController(S,P);b.appendChild(O),b.appendChild(A),b.appendChild(E),b.appendChild(_),w.topArrow=O,w.bottomArrow=A,w.leftArrow=E,w.rightArrow=_}},{key:"bindEvent",value:function(){var b=this;t(e(d.prototype),"bindEvent",this).call(this);var w=this.getGraph();w.on("beforepanitem",function(){b.hideArrowController()}),w.on("afterviewportchange",function(){b.hideArrowController()})}}])&&o(v.prototype,y),m&&o(v,m),d}();u.setRegister(s,"bpmn","diagram"),f.exports=s},function(f,p,l){function i(b){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(b)}function o(b,w){for(var P=0;P<w.length;P++){var S=w[P];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}function n(b,w){return!w||i(w)!=="object"&&typeof w!="function"?function(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(b):w}function t(b,w,P){return(t=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(S,O,A){var E=function(C,k){for(;!Object.prototype.hasOwnProperty.call(C,k)&&(C=e(C))!==null;);return C}(S,O);if(E){var _=Object.getOwnPropertyDescriptor(E,O);return _.get?_.get.call(A):_.value}})(b,w,P||b)}function e(b){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(b)}function r(b,w){return(r=Object.setPrototypeOf||function(P,S){return P.__proto__=S,P})(b,w)}var a=l(7),u=l(1),c=l(2),s=l(65),h=l(66),d=l(68),v=l(72),y=[s,l(73),v,h,d,l(74)],m=function(b){function w(A){var E;(function(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")})(this,w);var _={shortcut:{copy:!0,paste:!0,selectAll:!0,addGroup:!0,unGroup:!0},graph:{minZoom:.2,maxZoom:2},graphConstructor:a.Graph,noEndEdge:!0},C={};return c.each(y,function(k){c.mix(C,k.CFG)}),c.mix(!0,_,C,A),(E=n(this,e(w).call(this,_))).isFlow=!0,E}var P,S,O;return function(A,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(E&&E.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),E&&r(A,E)}(w,u),P=w,(S=[{key:"_init",value:function(){var A=this;t(e(w.prototype),"_init",this).call(this),c.each(y,function(E){E.INIT&&A[E.INIT]()})}},{key:"bindEvent",value:function(){var A=this;t(e(w.prototype),"bindEvent",this).call(this),this.on("beforeitemactived",function(E){var _=E.item,C=A.get("_graph").getShapeObj(_).getActivedOutterStyle(_);_.isNode&&A.addOutterShape(_,C)}),this.on("beforeitemunactived",function(E){var _=E.item;(_.isNode||_.isGroup)&&A.clearOutterShape(_)}),this.on("beforeitemselected",function(E){var _=E.item,C=A.get("_graph").getShapeObj(_).getSelectedOutterStyle(_);(_.isNode||_.isGroup)&&A.addOutterShape(_,C)}),this.on("beforeitemunselected",function(E){var _=E.item;(_.isNode||_.isGroup)&&A.clearOutterShape(_)})}}])&&o(P.prototype,S),O&&o(P,O),w}();c.each(y,function(b){c.mix(m.prototype,b.AUGMENT)}),u.setRegister(m,"diagram","page"),f.exports=m},function(f,p){f.exports={gridStyle:{stroke:"#A3B1BF",lineWidth:.5},cursor:{panningCanvas:"-webkit-grabbing",beforePanCanvas:"-webkit-grab"},wheelPanRatio:.3,alignLineStyle:{stroke:"#FA8C16",lineWidth:1},nodeDelegationStyle:{stroke:"#1890FF",fill:"#1890FF",fillOpacity:.08,lineDash:[4,4],radius:4,lineWidth:1},edgeDelegationStyle:{stroke:"#1890FF",lineDash:[4,4],lineWidth:1}}},function(f,p,l){var i=l(18);l(32),l(33),f.exports=i},function(f,p,l){var i=l(13);l(75),l(80),f.exports=i},function(f,p,l){function i(h){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(h)}function o(h,d){for(var v=0;v<d.length;v++){var y=d[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}function n(h,d){return!d||i(d)!=="object"&&typeof d!="function"?function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}(h):d}function t(h,d,v){return(t=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(y,m,b){var w=function(S,O){for(;!Object.prototype.hasOwnProperty.call(S,O)&&(S=e(S))!==null;);return S}(y,m);if(w){var P=Object.getOwnPropertyDescriptor(w,m);return P.get?P.get.call(b):P.value}})(h,d,v||h)}function e(h){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(h)}function r(h,d){return(r=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v})(h,d)}var a=l(1),u=l(16),c=l(24),s=function(h){function d(b){var w;(function(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")})(this,d);var P={graph:{modes:{default:["panBlank","hoverGroupActived","keydownCmdWheelZoom","clickEdgeSelected","clickNodeSelected","clickCanvasSelected","clickGroupSelected","hoverNodeActived","hoverEdgeActived","hoverButton","clickCollapsedButton","clickExpandedButton","wheelChangeViewport","keydownShiftMultiSelected","dragNodeAddToGroup","dragOutFromGroup","panItem","hoverEdgeControlPoint","dragEdgeControlPoint"],add:["dragPanelItemAddNode","processAddEdge"],readOnly:["panCanvas"],move:["panCanvas"],multiSelect:["dragMultiSelect"]},mode:"default",defaultIntersectBox:"circle",nodeDefaultShape:"koni-base",edgeDefaultShape:"koni-base",groupDefaultShape:"koni-base",minZoom:.5,maxZoom:2},orbit:{satellite:["forkAndLink"]},anchorLink:!1,noEndEdge:!1};return c.mix(!0,P,{},b),(w=n(this,e(d).call(this,P))).isKoni=!0,w}var v,y,m;return function(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),w&&r(b,w)}(d,u),v=d,(y=[{key:"bindEvent",value:function(){t(e(d.prototype),"bindEvent",this).call(this);var b=this.getGraph();b.on("afterchange",function(w){var P=w.item,S=w.action,O=w.originModel,A=w.updateModel;if(P&&P.isEdge){if(S==="add"||S==="remove"){var E=P.getSource(),_=P.getTarget();c.getParallelEdges(E,_,!0).forEach(function(B){B.update()})}else if(S==="update"){var C=b.find(O.source),k=b.find(O.target),T=[];if(c.getParallelEdges(C,k,!0).forEach(function(B){B.update()}),c.isNil(A.target)&&!c.isNil(A.source)){var I=b.find(A.source);T=c.getParallelEdges(I,k,!0)}else if(!c.isNil(A.target)&&c.isNil(A.source)){var R=b.find(A.target);T=c.getParallelEdges(C,R,!0)}else if(!c.isNil(A.target)&&!c.isNil(A.source)){var F=b.find(A.source),j=b.find(A.target);T=c.getParallelEdges(F,j,!0)}T.forEach(function(B){B.update()})}}S==="changeData"&&b.getEdges().forEach(function(B){B.update()}),b.draw()})}}])&&o(v.prototype,y),m&&o(v,m),d}();a.setRegister(s,"koni","diagram"),f.exports=s},function(f,p,l){function i(d){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{},m=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(m=m.concat(Object.getOwnPropertySymbols(y).filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable}))),m.forEach(function(b){o(d,b,y[b])})}return d}function o(d,v,y){return v in d?Object.defineProperty(d,v,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[v]=y,d}var n=l(6),t={};function e(d){return d.getCurrentPage().getSelected().length>0}function r(d){var v=d.getCurrentPage();this.snapShot=v.save(),this.selectedItems=v.getSelected().map(function(y){return y.id}),this.method&&(n.isString(this.method)?v[this.method]():this.method(d))}function a(d){var v=d.getCurrentPage();v.read(this.snapShot),v.setSelected(this.selectedItems,!0)}function u(d){return d.getCurrentPage().getMode()!==this.toMode}function c(d){var v=d.getCurrentPage();this.fromMode=v.getMode(),v.changeMode(this.toMode)}function s(d){d.getCurrentPage().changeMode(this.fromMode)}function h(d){var v={},y=[];return d.forEach(function(m){var b=m.model,w=n.mix(!0,{},i({},b,{id:n.guid()}));v[b.id]=w.id,y.push(i({},m,{model:w}))}),y.forEach(function(m){var b=m.model;if(b.parent){var w=v[b.parent];w?b.parent=w:delete b.parent}}),y.sort(function(m,b){return m.index-b.index}),y}t.list=[],t.registerCommand=function(d,v,y){if(t[d])n.mix(t[d],v);else{var m=i({enable:function(){return!0},init:function(){},execute:r,back:a,shortcutCodes:void 0,executeTimes:1,name:d,queue:!0},v);y&&t[y]&&(m=n.mix({},t[y],v)),t[d]=m,t.list.push(m)}},t.execute=function(d,v,y){var m=n.mix(!0,{},t[d],y),b=v.get("_command");return m.enable(v)&&(m.init(),m.queue&&(b.queue.splice(b.current,b.queue.length-b.current,m),b.current+=1),v.emit("beforecommandexecute",{command:m}),m.execute(v),v.emit("aftercommandexecute",{command:m}),v.setCommandDOMenable()),m},t.enable=function(d,v){return t[d].enable(v)},t.registerCommand("common",{back:a}),t.registerCommand("copyAdjacent",{enable:function(){return this.copyNode&&this.copyNode.isNode&&this.x&&this.y},execute:function(d){var v=this.copyNode,y=d.getCurrentPage(),m=y.getGraph(),b=v.getModel(),w=n.clone(b);w.id=n.guid(),w.x=this.x,w.y=this.y;var P=m.add("node",w),S=m.add("edge",{source:b.id,target:w.id});this.executeTimes===1&&(this.addIds=[P.id,S.id],this.page=y)},back:function(){var d=this.page.getGraph();this.addIds.forEach(function(v){d.remove(v)})}}),t.registerCommand("add",{enable:function(){return this.type&&this.addModel},execute:function(d){var v=d.getCurrentPage(),y=v.getGraph().add(this.type,this.addModel);this.executeTimes===1&&(this.addId=y.id,this.page=v)},back:function(){this.page.getGraph().remove(this.addId)}}),t.registerCommand("update",{enable:function(){return this.itemId&&this.updateModel},execute:function(d){var v=d.getCurrentPage(),y=v.getGraph(),m=y.find(this.itemId);this.executeTimes===1&&(this.originModel=n.getContrast(m.getModel(),this.updateModel),this.page=v),y.update(m,this.updateModel)},back:function(){var d=this.page.getGraph(),v=d.find(this.itemId);d.update(v,this.originModel)}}),t.registerCommand("redo",{queue:!1,enable:function(d){var v=d.get("_command"),y=v.queue;return v.current<y.length},execute:function(d){var v=d.get("_command");v.queue[v.current].execute(d),v.current+=1},shortcutCodes:[["metaKey","shiftKey","z"],["ctrlKey","shiftKey","z"]]}),t.registerCommand("undo",{queue:!1,enable:function(d){return d.get("_command").current>0},execute:function(d){var v=d.get("_command"),y=v.queue[v.current-1];y.executeTimes++,y.back(d),v.current-=1},shortcutCodes:[["metaKey","z"],["ctrlKey","z"]]}),t.registerCommand("copy",{queue:!1,enable:e,method:function(d){var v=d.getCurrentPage().getSelected(),y=d.get("_command"),m=v.map(function(w){return w.getGraphicGroup()}),b=n.getChildrenBBox(m);y.clipboard=[],v.forEach(function(w){n.traverseTree(w,function(P){var S=P.getModel(),O=P.getGraphicGroup();y.clipboard.push({type:P.type,index:n.getIndex(O),model:S})},function(P){return P.getChildren&&P.getChildren()},!0)}),d.set("copyCenterBox",i({},b))}}),t.registerCommand("pasteHere",{enable:function(d){return d.get("_command").clipboard.length>0},method:function(d){var v=d.getCurrentPage(),y=d.get("_command"),m=this.pasteData?this.pasteData:h(y.clipboard),b=this.copyCenterBox?this.copyCenterBox:d.get("copyCenterBox"),w=this.contextmenuPoint?this.contextmenuPoint:d.get("contextmenuPoint");v.clearSelected(),this.copyCenterBox=n.clone(b),this.pasteData=n.clone(m),this.contextmenuPoint=n.clone(w),m.forEach(function(P){var S=P.model;S.x&&(S.x+=w.x-b.minX),S.y&&(S.y+=w.y-b.minY),v.add(P.type,S)})},back:a}),t.registerCommand("paste",{enable:function(d){return d.get("_command").clipboard.length>0},method:function(d){var v=d.getCurrentPage(),y=d.get("_command"),m=this.pasteData?this.pasteData:h(y.clipboard);v.clearSelected(),this.pasteData=n.clone(m),m.forEach(function(b){var w=b.model;w.x&&(w.x+=10),w.y&&(w.y+=10),v.add(b.type,w)})},back:a}),t.registerCommand("addGroup",{init:function(){this.addGroupId=n.guid()},enable:function(d){return d.getCurrentPage().getSelected().length>1},method:function(d){d.getCurrentPage().addGroup({id:this.addGroupId})},back:a}),t.registerCommand("unGroup",{enable:function(d){var v=d.getCurrentPage().getSelected();return v.length===1&&v[0].isGroup},method:"unGroup",back:a}),t.registerCommand("delete",{getDeleteItems:function(d){var v=d.getCurrentPage(),y=v.getGraph(),m=this.itemIds?this.itemIds.map(function(b){return y.find(b)}):v.getSelected();return m=m.filter(function(b){return b.deleteable!==!1})},enable:function(d){return this.getDeleteItems(d).length>0},method:function(d){var v=d.getCurrentPage(),y=this.getDeleteItems(d),m=v.getGraph();v.emit("beforedelete",{items:y}),n.each(y,function(b){m.remove(b)}),v.emit("afterdelete",{items:y}),this.itemIds=y.map(function(b){return b.getModel().id})},back:a,shortcutCodes:["Delete","Backspace"]}),t.registerCommand("selectAll",{method:function(d){var v=d.getCurrentPage();v.getGraph().getItems().forEach(function(y){v.setSelected(y,!0)})},back:a,shortcutCodes:[["metaKey","a"]]}),t.registerCommand("toBack",{enable:e,method:"toBack",back:a}),t.registerCommand("toFront",{enable:e,method:"toFront",back:a}),t.registerCommand("clear",{enable:function(d){return d.getCurrentPage().getItems().length>0},method:"clear",back:a}),t.registerCommand("multiSelect",{enable:u,toMode:"multiSelect",execute:c,back:s}),t.registerCommand("move",{enable:u,toMode:"move",execute:c,back:s}),f.exports=t},function(f,p,l){f.exports=l(2)},function(f,p,l){"use strict";l.r(p),l.d(p,"mouseEnterEdge",function(){return o}),l.d(p,"mouseLeaveEdge",function(){return n}),l.d(p,"startMove",function(){return t}),l.d(p,"endMove",function(){return e}),l.d(p,"mouseMoveEdge",function(){return r}),l.d(p,"mergeLine",function(){return a});var i=l(0);function o(u){var c=u.graph,s=u.bpmn,h=u.ev,d=u.backUpCursor,v=h.item,y=v.model.controlPoints,m=Object(i.e)({x:h.x,y:h.y},y),b=m.index,w=m.vertical;b!=null&&(d&&(v._cursor=s.getGraph().getMouseEventWrapper().style.cursor),c.update(v,{hold:{index:b,vertical:w}}),w?s.css({cursor:"col-resize"}):s.css({cursor:"row-resize"}))}function n(u){var c=u.graph,s=u.bpmn,h=u.item;h._cursor&&s.css({cursor:h._cursor}),delete h._cursor,c.update(h,{hold:void 0})}function t(u,c){var s=c.item;u.update(s,{lastMouse:{x:c.x,y:c.y}})}function e(u){var c=u.graph,s=u.item;c.update(s,{lastMouse:void 0,moveDelta:void 0})}function r(u,c,s){var h;h=c.model&&c.model.hold&&c.model.hold.vertical?{x:s.x-c.model.lastMouse.x,y:0}:{x:0,y:s.y-c.model.lastMouse.y},u.update(c,{edgeMoved:h,modifiedByMouse:!0})}function a(u,c,s){var h,d=u.model,v=c||d.hold.index,y=d.controlPoints;s===null&&(s=d.hold.vertical);var m=[];return v>=2&&(s?Math.abs(y[v-2].x-y[v].x)<=3&&(h=[{x:y[v-2].x,y:y[v-2].y},{x:y[v-2].x,y:y[v+1].y}],m.push(v-1,v),d.hold.index=v-2,d.controlPoints[v+1].x=y[v-2].x):Math.abs(y[v-2].y-y[v].y)<=3&&(h=[{x:y[v-2].x,y:y[v-2].y},{x:y[v+1].x,y:y[v-2].y}],m.push(v-1,v),d.hold.index=v-2,d.controlPoints[v+1].y=y[v-2].y)),v<=y.length-4&&(s?Math.abs(y[v].x-y[v+2].x)<=3&&(h?(h[1]={x:y[v-2].x,y:y[v+3].y},d.controlPoints[v+3].x=y[v-2].x):(h=[{x:y[v+3].x,y:y[v].y},{x:y[v+3].x,y:y[v+3].y}],d.controlPoints[v].x=y[v+3].x),m.push(v+1,v+2)):Math.abs(y[v].y-y[v+2].y)<=3&&(h?(h[1]={x:y[v+3].x,y:y[v-2].y},d.controlPoints[v+3].y=y[v-2].y):(h=[{x:y[v].x,y:y[v+3].y},{x:y[v+3].x,y:y[v+3].y}],d.controlPoints[v].y=y[v+3].y),m.push(v+1,v+2))),m&&m.length&&y.splice(m[0],m.length),h}},function(f,p,l){function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(s)}function o(s,h){return!h||i(h)!=="object"&&typeof h!="function"?function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(s):h}function n(s){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(s)}function t(s,h){for(var d=0;d<h.length;d++){var v=h[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(s,v.key,v)}}function e(s,h,d){return h&&t(s.prototype,h),d&&t(s,d),s}function r(s,h){return(r=Object.setPrototypeOf||function(d,v){return d.__proto__=v,d})(s,h)}var a=l(27),u=l(6),c=function(s){function h(d){var v;(function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")})(this,h);var y=(v=o(this,n(h).call(this))).getDefaultCfg();return v._cfg=u.mix(!0,{},v._cfg,y,d),v}return function(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),v&&r(d,v)}(h,a),e(h,[{key:"getDefaultCfg",value:function(){return{}}}]),e(h,[{key:"get",value:function(d){return this._cfg[d]}},{key:"set",value:function(d,v){this._cfg[d]=v}},{key:"destroy",value:function(){this._cfg={},this.destroyed=!0}}]),h}();f.exports=c},function(f,p,l){function i(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var o=l(4);f.exports=function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.forEach(function(a){i(n,a,e[a])})}return n}({},o,{getParallelEdges:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return n.getEdges().filter(function(r){var a=r.getModel();return a.target===t.id||e&&a.source===t.id})},object2array:function(n){var t=[];return o.each(n,function(e){t.push(e)}),t}})},function(f,p,l){function i(c){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var h=0;h<s.length;h++){var d=s[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function n(c,s){return!s||i(s)!=="object"&&typeof s!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(c):s}function t(c){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)})(c)}function e(c,s){return(e=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h})(c,s)}var r=l(9),a=l(2),u=function(c){function s(){return function(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),n(this,t(s).apply(this,arguments))}var h,d,v;return function(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),m&&e(y,m)}(s,r),h=s,(d=[{key:"getDefaultCfg",value:function(){return{name:"",render:function(){return"<button>satellite</button>"},bindEvent:function(){return[]}}}},{key:"_renderDOM",value:function(){var y=a.createDOM(this.render(this.diagram));return this.dom=y,y.isSatellite=!0,y}},{key:"getDOM",value:function(){return this.dom||this._renderDOM()}},{key:"init",value:function(){var y=this.getDOM(),m=this.diagram.getGraph().getGraphContainer();y&&(y.css({position:"absolute",visibility:"hidden"}),m.appendChild(y),y&&this.bindEvent(y,this.diagram))}},{key:"enable",value:function(){return!0}},{key:"show",value:function(){this.getDOM().show()}},{key:"hide",value:function(){this.getDOM().hide()}},{key:"isVisible",value:function(){return this.getDOM().style.visibility!=="hidden"}},{key:"destroy",value:function(){var y=this.events;y&&y.forEach(function(m){m.remove()})}}])&&o(h.prototype,d),v&&o(h,v),s}();f.exports=u},function(f,p,l){f.exports=l(2)},function(f,p,l){var i=l(26),o=l(6),n=l(15);l(7),i.Editor=i,i.Util=o,i.Diagram=l(16),i.Page=l(1),i.Flow=l(95),i.Koni=l(102),i.Mind=l(107),i.Toolbar=l(121),i.Contextmenu=l(122),i.Command=l(15),i.BPMN=l(123),i.registerBehaviour=i.Page.registerBehaviour,i.registerNode=i.Page.registerNode,i.registerEdge=i.Page.registerEdge,i.registerGroup=i.Page.registerGroup,i.registerGuide=i.Page.registerGuide,i.registerCommand=n.registerCommand,f.exports=i},function(f,p,l){function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(s)}function o(s,h){for(var d=0;d<h.length;d++){var v=h[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(s,v.key,v)}}function n(s,h){return!h||i(h)!=="object"&&typeof h!="function"?function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(s):h}function t(s){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(s)}function e(s,h){return(e=Object.setPrototypeOf||function(d,v){return d.__proto__=v,d})(s,h)}var r=l(21),a=l(6),u=l(15),c=function(s){function h(){return function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}(this,h),n(this,t(h).apply(this,arguments))}var d,v,y;return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),b&&e(m,b)}(h,r),d=h,(v=[{key:"getDefaultCfg",value:function(){return{_components:[],_command:{zoomDelta:.1,queue:[],current:0,clipboard:[]}}}},{key:"_getComponentsBy",value:function(m){return this.get("_components").filter(m)}},{key:"_bindCommands",value:function(m){var b=this;a.each(m,function(w){var P=w.dataset,S=P.command;u[S]?a.addEventListener(w,"click",function(){b.getCurrentPage().focusGraphWrapper(),b.executeCommand(S,P)}):console.warn("\u8BF7\u8BBE\u7F6E\u6709\u6548\u7684\u547D\u4EE4\uFF01")})}},{key:"getCommands",value:function(){return this.get("_command").queue}},{key:"getCurrentCommand",value:function(){var m=this.get("_command");return m.queue[m.current-1]}},{key:"executeCommand",value:function(m,b){a.isString(m)?u.execute(m,this,b):u.execute("common",this,{method:m},b)}},{key:"commandEnable",value:function(m){return u.enable(m,this)}},{key:"setCommandDOMenable",value:function(){var m=this,b=this.getComponentsByType("toolbar"),w=this.getComponentsByType("contextmenu"),P=[];b.forEach(function(S){a.each(S.getCommandDoms(),function(O){P.push(O)})}),w.forEach(function(S){a.each(S.getCommandDoms(),function(O){P.push(O)})}),a.each(P,function(S){var O=S.dataset.command;u.enable(O,m)?S.classList.remove("disable"):S.classList.add("disable")})}},{key:"_onPageStatusChange",value:function(){this.setCommandDOMenable()}},{key:"_afterAddContextmenu",value:function(){this.getCurrentPage()&&this.setCommandDOMenable()}},{key:"_afterAddPage",value:function(m){var b=this;this.setCommandDOMenable(),m.on("statuschange",function(w){b._onPageStatusChange(w)}),m.on("mousedown",function(){b.getComponentsByType("contextmenu").forEach(function(w){w.hide()})}),m.on("contextmenu",function(w){var P=b.getComponentsByType("contextmenu"),S=m.getGraph().getCanvas().get("el"),O=a.getBoundingClientRect(S),A={x:w.x,y:w.y},E=w.item;E&&!E.isSelected&&(m.clearSelected(),m.setSelected(w.item,!0)),b.set("contextmenuPoint",A),w.domEvent.preventDefault(),P.forEach(function(_){_.show(),_.contextmenuPoint=A,_.move(O.left+w.domX,O.top+w.domY)})}),m.on("statuschange",function(w){b.getComponentsByType("contextmenu").forEach(function(P){P.switch(w.status)})}),this._bindShortcut(m)}},{key:"_beforeAddToolbar",value:function(m){var b=m.getCommandDoms();this._bindCommands(b)}},{key:"_beforeAddContextmenu",value:function(m){var b=m.getCommandDoms();m.bindEvent(),this._bindCommands(b)}},{key:"getComponentsByType",value:function(m){return this._getComponentsBy(function(b){return b.type===m})}},{key:"getCurrentPage",value:function(){var m,b=this.getComponentsByType("page");return b.every(function(w){return!w.isActived||(m=w,!1)}),m||(m=b[0]),m}},{key:"getComponents",value:function(){return this.get("_components")}},{key:"_shortcutEnable",value:function(m,b){for(var w=m.shortcutCodes,P=a.getKeyboradKey(b),S=!1,O=0;O<w.length;O++){var A=w[O];if(a.isArray(A)){for(var E=A.length,_=!0,C=0;C<E-1;C++)if(!b[A[C]]){_=!1;break}A[E-1]!==P&&A[E-1]!==a.lowerFirst(P)||!_||(S=!0)}else A===P&&(S=!0);if(S)break}return S}},{key:"_bindShortcut",value:function(m){var b=this,w=m.get("shortcut");m.getGraph().on("keydown",function(P){var S=b.getComponentsByType("contextmenu"),O=P.domEvent;S.forEach(function(C){C.hide()}),O.preventDefault();for(var A=u.list.filter(function(C){return C.shortcutCodes&&w[C.name]}),E=0;E<A.length;E++){var _=A[E];if(b._shortcutEnable(_,O))return b.executeCommand(_.name),!1}})}},{key:"add",value:function(m){var b=this.get("_components"),w=a.upperFirst(m.type);m.editor=this,this["_beforeAdd"+w]&&this["_beforeAdd"+w](m),b.push(m),this["_afterAdd"+w]&&this["_afterAdd"+w](m)}},{key:"destroy",value:function(){this.get("_components").forEach(function(m){m.destroy()})}}])&&o(d.prototype,v),y&&o(d,y),h}();f.exports=c},function(f,p,l){var i;/*!
|
|
* EventEmitter v5.2.6 - git.io/ee
|
|
* Unlicense - http://unlicense.org/
|
|
* Oliver Caldwell - https://oli.me.uk/
|
|
* @preserve
|
|
*/(function(o){"use strict";function n(){}var t=n.prototype,e=o.EventEmitter;function r(u,c){for(var s=u.length;s--;)if(u[s].listener===c)return s;return-1}function a(u){return function(){return this[u].apply(this,arguments)}}t.getListeners=function(u){var c,s,h=this._getEvents();if(u instanceof RegExp)for(s in c={},h)h.hasOwnProperty(s)&&u.test(s)&&(c[s]=h[s]);else c=h[u]||(h[u]=[]);return c},t.flattenListeners=function(u){var c,s=[];for(c=0;c<u.length;c+=1)s.push(u[c].listener);return s},t.getListenersAsObject=function(u){var c,s=this.getListeners(u);return s instanceof Array&&((c={})[u]=s),c||s},t.addListener=function(u,c){if(!function v(y){return typeof y=="function"||y instanceof RegExp||!(!y||typeof y!="object")&&v(y.listener)}(c))throw new TypeError("listener must be a function");var s,h=this.getListenersAsObject(u),d=typeof c=="object";for(s in h)h.hasOwnProperty(s)&&r(h[s],c)===-1&&h[s].push(d?c:{listener:c,once:!1});return this},t.on=a("addListener"),t.addOnceListener=function(u,c){return this.addListener(u,{listener:c,once:!0})},t.once=a("addOnceListener"),t.defineEvent=function(u){return this.getListeners(u),this},t.defineEvents=function(u){for(var c=0;c<u.length;c+=1)this.defineEvent(u[c]);return this},t.removeListener=function(u,c){var s,h,d=this.getListenersAsObject(u);for(h in d)d.hasOwnProperty(h)&&(s=r(d[h],c))!==-1&&d[h].splice(s,1);return this},t.off=a("removeListener"),t.addListeners=function(u,c){return this.manipulateListeners(!1,u,c)},t.removeListeners=function(u,c){return this.manipulateListeners(!0,u,c)},t.manipulateListeners=function(u,c,s){var h,d,v=u?this.removeListener:this.addListener,y=u?this.removeListeners:this.addListeners;if(typeof c!="object"||c instanceof RegExp)for(h=s.length;h--;)v.call(this,c,s[h]);else for(h in c)c.hasOwnProperty(h)&&(d=c[h])&&(typeof d=="function"?v.call(this,h,d):y.call(this,h,d));return this},t.removeEvent=function(u){var c,s=typeof u,h=this._getEvents();if(s==="string")delete h[u];else if(u instanceof RegExp)for(c in h)h.hasOwnProperty(c)&&u.test(c)&&delete h[c];else delete this._events;return this},t.removeAllListeners=a("removeEvent"),t.emitEvent=function(u,c){var s,h,d,v,y=this.getListenersAsObject(u);for(v in y)if(y.hasOwnProperty(v))for(s=y[v].slice(0),d=0;d<s.length;d++)(h=s[d]).once===!0&&this.removeListener(u,h.listener),h.listener.apply(this,c||[])===this._getOnceReturnValue()&&this.removeListener(u,h.listener);return this},t.trigger=a("emitEvent"),t.emit=function(u){var c=Array.prototype.slice.call(arguments,1);return this.emitEvent(u,c)},t.setOnceReturnValue=function(u){return this._onceReturnValue=u,this},t._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},t._getEvents=function(){return this._events||(this._events={})},n.noConflict=function(){return o.EventEmitter=e,n},(i=function(){return n}.call(o,l,o,f))===void 0||(f.exports=i)})(typeof window!="undefined"?window:this||{})},function(f,p,l){var i=l(7).Util;f.exports={getGroupIconPath:function(){return"M9.75,9.60000014 L3.75,9.60000014 C3.33578644,9.60000014 3,9.2865995 3,8.90000022 C3,8.51340093 3.33578644,8.20000029 3.75,8.20000029 L9.75,8.20000029 C10.1642136,8.20000029 10.5,8.51340093 10.5,8.90000022 C10.5,9.2865995 10.1642136,9.60000014 9.75,9.60000014 M3,11.6999999 C3,11.3134006 3.33578644,11 3.75,11 L6.75,11 C7.16421356,11 7.5,11.3134006 7.5,11.6999999 C7.5,12.0865992 7.16421356,12.3999999 6.75,12.3999999 L3.75,12.3999999 C3.33578644,12.3999999 3,12.0865992 3,11.6999999 M3.75,13.7999997 L6.75,13.7999997 C7.16421356,13.7999997 7.5,14.1134004 7.5,14.4999996 C7.5,14.8865989 7.16421356,15.1999996 6.75,15.1999996 L3.75,15.1999996 C3.33578644,15.1999996 3,14.8865989 3,14.4999996 C3,14.1134004 3.33578644,13.7999997 3.75,13.7999997 M16.4985,4.00000072 L1.5015,4.00000072 C0.674533504,3.99922416 0.00289396564,4.6232696 0,5.39510058 L0,16.6048994 C0.00289396564,17.3767304 0.674533504,18.0007758 1.5015,17.9999993 L16.4985,17.9999993 C17.3254665,18.0007758 17.997106,17.3767304 18,16.6048994 L18,5.39510058 C17.997106,4.6232696 17.3254665,3.99922416 16.4985,4.00000072M19,13.9999993 L19,3 L5,3 L5,1.39510058 C5.00289397,0.623269599 5.6745335,-0.00077583787 6.5015,7.23978642e-07 L21.4985,7.23978642e-07 C22.3254665,-0.00077583787 22.997106,0.623269599 23,1.39510058 L23,12.6048994 C22.997106,13.3767304 22.3254665,14.0007758 21.4985,13.9999993 L19,13.9999993 Z"},getCollapsedButtonPath:function(){return i.getRectPath(0,0,14,14,2)+"M3,7L11,7"},getExpandedButtonPath:function(){return i.getRectPath(0,0,14,14,2)+"M3,7L11,7M7,3L7,11"}}},function(f,p,l){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.presetPrimaryColors=p.presetPalettes=p.generate=void 0;var i,o=l(30),n=(i=o)&&i.__esModule?i:{default:i},t={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},e={};Object.keys(t).forEach(function(r){e[r]=(0,n.default)(t[r])}),p.generate=n.default,p.presetPalettes=e,p.presetPrimaryColors=t},function(f,p,l){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=function(y){for(var m=[],b=(0,n.default)(y),w=c;w>0;w-=1){var P=b.toHsv(),S=(0,n.default)({h:h(P,w,!0),s:d(P,w,!0),v:v(P,w,!0)}).toHexString();m.push(S)}m.push(b.toHexString());for(var O=1;O<=s;O+=1){var A=b.toHsv(),E=(0,n.default)({h:h(A,O),s:d(A,O),v:v(A,O)}).toHexString();m.push(E)}return m};var i,o=l(31),n=(i=o)&&i.__esModule?i:{default:i},t=2,e=16,r=5,a=5,u=15,c=5,s=4;function h(y,m,b){var w=void 0;return(w=Math.round(y.h)>=60&&Math.round(y.h)<=240?b?Math.round(y.h)-t*m:Math.round(y.h)+t*m:b?Math.round(y.h)+t*m:Math.round(y.h)-t*m)<0?w+=360:w>=360&&(w-=360),w}function d(y,m,b){if(y.h===0&&y.s===0)return y.s;var w=void 0;return(w=b?Math.round(100*y.s)-e*m:m===s?Math.round(100*y.s)+e:Math.round(100*y.s)+r*m)>100&&(w=100),b&&m===c&&w>10&&(w=10),w<6&&(w=6),w}function v(y,m,b){return b?Math.round(100*y.v)+a*m:Math.round(100*y.v)-u*m}},function(f,p,l){var i;(function(o){var n=/^\s+/,t=/\s+$/,e=0,r=o.round,a=o.min,u=o.max,c=o.random;function s(Y,L){if(L=L||{},(Y=Y||"")instanceof s)return Y;if(!(this instanceof s))return new s(Y,L);var D=function(G){var U={r:0,g:0,b:0},X=1,q=null,ut=null,rt=null,at=!1,pt=!1;typeof G=="string"&&(G=function(lt){lt=lt.replace(n,"").replace(t,"").toLowerCase();var it,dt=!1;if(R[lt])lt=R[lt],dt=!0;else if(lt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(it=$.rgb.exec(lt))?{r:it[1],g:it[2],b:it[3]}:(it=$.rgba.exec(lt))?{r:it[1],g:it[2],b:it[3],a:it[4]}:(it=$.hsl.exec(lt))?{h:it[1],s:it[2],l:it[3]}:(it=$.hsla.exec(lt))?{h:it[1],s:it[2],l:it[3],a:it[4]}:(it=$.hsv.exec(lt))?{h:it[1],s:it[2],v:it[3]}:(it=$.hsva.exec(lt))?{h:it[1],s:it[2],v:it[3],a:it[4]}:(it=$.hex8.exec(lt))?{r:et(it[1]),g:et(it[2]),b:et(it[3]),a:nt(it[4]),format:dt?"name":"hex8"}:(it=$.hex6.exec(lt))?{r:et(it[1]),g:et(it[2]),b:et(it[3]),format:dt?"name":"hex"}:(it=$.hex4.exec(lt))?{r:et(it[1]+""+it[1]),g:et(it[2]+""+it[2]),b:et(it[3]+""+it[3]),a:nt(it[4]+""+it[4]),format:dt?"name":"hex8"}:(it=$.hex3.exec(lt))?{r:et(it[1]+""+it[1]),g:et(it[2]+""+it[2]),b:et(it[3]+""+it[3]),format:dt?"name":"hex"}:!1}(G)),typeof G=="object"&&(ot(G.r)&&ot(G.g)&&ot(G.b)?(gt=G.r,z=G.g,Z=G.b,U={r:255*B(gt,255),g:255*B(z,255),b:255*B(Z,255)},at=!0,pt=String(G.r).substr(-1)==="%"?"prgb":"rgb"):ot(G.h)&&ot(G.s)&&ot(G.v)?(q=J(G.s),ut=J(G.v),U=function(lt,it,dt){lt=6*B(lt,360),it=B(it,100),dt=B(dt,100);var yt=o.floor(lt),wt=lt-yt,Mt=dt*(1-it),At=dt*(1-wt*it),xt=dt*(1-(1-wt)*it),St=yt%6;return{r:255*[dt,At,Mt,Mt,xt,dt][St],g:255*[xt,dt,dt,At,Mt,Mt][St],b:255*[Mt,Mt,xt,dt,dt,At][St]}}(G.h,q,ut),at=!0,pt="hsv"):ot(G.h)&&ot(G.s)&&ot(G.l)&&(q=J(G.s),rt=J(G.l),U=function(lt,it,dt){var yt,wt,Mt;function At(Et,Pt,Ot){return Ot<0&&(Ot+=1),Ot>1&&(Ot-=1),Ot<1/6?Et+6*(Pt-Et)*Ot:Ot<.5?Pt:Ot<2/3?Et+(Pt-Et)*(2/3-Ot)*6:Et}if(lt=B(lt,360),it=B(it,100),dt=B(dt,100),it===0)yt=wt=Mt=dt;else{var xt=dt<.5?dt*(1+it):dt+it-dt*it,St=2*dt-xt;yt=At(St,xt,lt+1/3),wt=At(St,xt,lt),Mt=At(St,xt,lt-1/3)}return{r:255*yt,g:255*wt,b:255*Mt}}(G.h,q,rt),at=!0,pt="hsl"),G.hasOwnProperty("a")&&(X=G.a));var gt,z,Z;return X=j(X),{ok:at,format:G.format||pt,r:a(255,u(U.r,0)),g:a(255,u(U.g,0)),b:a(255,u(U.b,0)),a:X}}(Y);this._originalInput=Y,this._r=D.r,this._g=D.g,this._b=D.b,this._a=D.a,this._roundA=r(100*this._a)/100,this._format=L.format||D.format,this._gradientType=L.gradientType,this._r<1&&(this._r=r(this._r)),this._g<1&&(this._g=r(this._g)),this._b<1&&(this._b=r(this._b)),this._ok=D.ok,this._tc_id=e++}function h(Y,L,D){Y=B(Y,255),L=B(L,255),D=B(D,255);var G,U,X=u(Y,L,D),q=a(Y,L,D),ut=(X+q)/2;if(X==q)G=U=0;else{var rt=X-q;switch(U=ut>.5?rt/(2-X-q):rt/(X+q),X){case Y:G=(L-D)/rt+(L<D?6:0);break;case L:G=(D-Y)/rt+2;break;case D:G=(Y-L)/rt+4}G/=6}return{h:G,s:U,l:ut}}function d(Y,L,D){Y=B(Y,255),L=B(L,255),D=B(D,255);var G,U,X=u(Y,L,D),q=a(Y,L,D),ut=X,rt=X-q;if(U=X===0?0:rt/X,X==q)G=0;else{switch(X){case Y:G=(L-D)/rt+(L<D?6:0);break;case L:G=(D-Y)/rt+2;break;case D:G=(Y-L)/rt+4}G/=6}return{h:G,s:U,v:ut}}function v(Y,L,D,G){var U=[Q(r(Y).toString(16)),Q(r(L).toString(16)),Q(r(D).toString(16))];return G&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0):U.join("")}function y(Y,L,D,G){return[Q(K(G)),Q(r(Y).toString(16)),Q(r(L).toString(16)),Q(r(D).toString(16))].join("")}function m(Y,L){L=L===0?0:L||10;var D=s(Y).toHsl();return D.s-=L/100,D.s=H(D.s),s(D)}function b(Y,L){L=L===0?0:L||10;var D=s(Y).toHsl();return D.s+=L/100,D.s=H(D.s),s(D)}function w(Y){return s(Y).desaturate(100)}function P(Y,L){L=L===0?0:L||10;var D=s(Y).toHsl();return D.l+=L/100,D.l=H(D.l),s(D)}function S(Y,L){L=L===0?0:L||10;var D=s(Y).toRgb();return D.r=u(0,a(255,D.r-r(-L/100*255))),D.g=u(0,a(255,D.g-r(-L/100*255))),D.b=u(0,a(255,D.b-r(-L/100*255))),s(D)}function O(Y,L){L=L===0?0:L||10;var D=s(Y).toHsl();return D.l-=L/100,D.l=H(D.l),s(D)}function A(Y,L){var D=s(Y).toHsl(),G=(D.h+L)%360;return D.h=G<0?360+G:G,s(D)}function E(Y){var L=s(Y).toHsl();return L.h=(L.h+180)%360,s(L)}function _(Y){var L=s(Y).toHsl(),D=L.h;return[s(Y),s({h:(D+120)%360,s:L.s,l:L.l}),s({h:(D+240)%360,s:L.s,l:L.l})]}function C(Y){var L=s(Y).toHsl(),D=L.h;return[s(Y),s({h:(D+90)%360,s:L.s,l:L.l}),s({h:(D+180)%360,s:L.s,l:L.l}),s({h:(D+270)%360,s:L.s,l:L.l})]}function k(Y){var L=s(Y).toHsl(),D=L.h;return[s(Y),s({h:(D+72)%360,s:L.s,l:L.l}),s({h:(D+216)%360,s:L.s,l:L.l})]}function T(Y,L,D){L=L||6,D=D||30;var G=s(Y).toHsl(),U=360/D,X=[s(Y)];for(G.h=(G.h-(U*L>>1)+720)%360;--L;)G.h=(G.h+U)%360,X.push(s(G));return X}function I(Y,L){L=L||6;for(var D=s(Y).toHsv(),G=D.h,U=D.s,X=D.v,q=[],ut=1/L;L--;)q.push(s({h:G,s:U,v:X})),X=(X+ut)%1;return q}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,L,D,G=this.toRgb();return Y=G.r/255,L=G.g/255,D=G.b/255,.2126*(Y<=.03928?Y/12.92:o.pow((Y+.055)/1.055,2.4))+.7152*(L<=.03928?L/12.92:o.pow((L+.055)/1.055,2.4))+.0722*(D<=.03928?D/12.92:o.pow((D+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=r(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),L=r(360*Y.h),D=r(100*Y.s),G=r(100*Y.v);return this._a==1?"hsv("+L+", "+D+"%, "+G+"%)":"hsva("+L+", "+D+"%, "+G+"%, "+this._roundA+")"},toHsl:function(){var Y=h(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=h(this._r,this._g,this._b),L=r(360*Y.h),D=r(100*Y.s),G=r(100*Y.l);return this._a==1?"hsl("+L+", "+D+"%, "+G+"%)":"hsla("+L+", "+D+"%, "+G+"%, "+this._roundA+")"},toHex:function(Y){return v(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(L,D,G,U,X){var q=[Q(r(L).toString(16)),Q(r(D).toString(16)),Q(r(G).toString(16)),Q(K(U))];return X&&q[0].charAt(0)==q[0].charAt(1)&&q[1].charAt(0)==q[1].charAt(1)&&q[2].charAt(0)==q[2].charAt(1)&&q[3].charAt(0)==q[3].charAt(1)?q[0].charAt(0)+q[1].charAt(0)+q[2].charAt(0)+q[3].charAt(0):q.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:r(this._r),g:r(this._g),b:r(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+r(this._r)+", "+r(this._g)+", "+r(this._b)+")":"rgba("+r(this._r)+", "+r(this._g)+", "+r(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:r(100*B(this._r,255))+"%",g:r(100*B(this._g,255))+"%",b:r(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%)":"rgba("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(F[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var L="#"+y(this._r,this._g,this._b,this._a),D=L,G=this._gradientType?"GradientType = 1, ":"";if(Y){var U=s(Y);D="#"+y(U._r,U._g,U._b,U._a)}return"progid:DXImageTransform.Microsoft.gradient("+G+"startColorstr="+L+",endColorstr="+D+")"},toString:function(Y){var L=!!Y;Y=Y||this._format;var D=!1,G=this._a<1&&this._a>=0;return L||!G||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(D=this.toRgbString()),Y==="prgb"&&(D=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(D=this.toHexString()),Y==="hex3"&&(D=this.toHexString(!0)),Y==="hex4"&&(D=this.toHex8String(!0)),Y==="hex8"&&(D=this.toHex8String()),Y==="name"&&(D=this.toName()),Y==="hsl"&&(D=this.toHslString()),Y==="hsv"&&(D=this.toHsvString()),D||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(Y,L){var D=Y.apply(null,[this].concat([].slice.call(L)));return this._r=D._r,this._g=D._g,this._b=D._b,this.setAlpha(D._a),this},lighten:function(){return this._applyModification(P,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(Y,L){return Y.apply(null,[this].concat([].slice.call(L)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},s.fromRatio=function(Y,L){if(typeof Y=="object"){var D={};for(var G in Y)Y.hasOwnProperty(G)&&(D[G]=G==="a"?Y[G]:J(Y[G]));Y=D}return s(Y,L)},s.equals=function(Y,L){return!(!Y||!L)&&s(Y).toRgbString()==s(L).toRgbString()},s.random=function(){return s.fromRatio({r:c(),g:c(),b:c()})},s.mix=function(Y,L,D){D=D===0?0:D||50;var G=s(Y).toRgb(),U=s(L).toRgb(),X=D/100;return s({r:(U.r-G.r)*X+G.r,g:(U.g-G.g)*X+G.g,b:(U.b-G.b)*X+G.b,a:(U.a-G.a)*X+G.a})},s.readability=function(Y,L){var D=s(Y),G=s(L);return(o.max(D.getLuminance(),G.getLuminance())+.05)/(o.min(D.getLuminance(),G.getLuminance())+.05)},s.isReadable=function(Y,L,D){var G,U,X=s.readability(Y,L);switch(U=!1,(G=function(q){var ut,rt;return ut=((q=q||{level:"AA",size:"small"}).level||"AA").toUpperCase(),rt=(q.size||"small").toLowerCase(),ut!=="AA"&&ut!=="AAA"&&(ut="AA"),rt!=="small"&&rt!=="large"&&(rt="small"),{level:ut,size:rt}}(D)).level+G.size){case"AAsmall":case"AAAlarge":U=X>=4.5;break;case"AAlarge":U=X>=3;break;case"AAAsmall":U=X>=7}return U},s.mostReadable=function(Y,L,D){var G,U,X,q,ut=null,rt=0;U=(D=D||{}).includeFallbackColors,X=D.level,q=D.size;for(var at=0;at<L.length;at++)(G=s.readability(Y,L[at]))>rt&&(rt=G,ut=s(L[at]));return s.isReadable(Y,ut,{level:X,size:q})||!U?ut:(D.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],D))};var R=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=s.hexNames=function(Y){var L={};for(var D in Y)Y.hasOwnProperty(D)&&(L[Y[D]]=D);return L}(R);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function B(Y,L){(function(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1})(Y)&&(Y="100%");var D=function(G){return typeof G=="string"&&G.indexOf("%")!=-1}(Y);return Y=a(L,u(0,parseFloat(Y))),D&&(Y=parseInt(Y*L,10)/100),o.abs(Y-L)<1e-6?1:Y%L/parseFloat(L)}function H(Y){return a(1,u(0,Y))}function et(Y){return parseInt(Y,16)}function Q(Y){return Y.length==1?"0"+Y:""+Y}function J(Y){return Y<=1&&(Y=100*Y+"%"),Y}function K(Y){return o.round(255*parseFloat(Y)).toString(16)}function nt(Y){return et(Y)/255}var st,V,tt,$=(V="[\\s|\\(]+("+(st="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+st+")[,|\\s]+("+st+")\\s*\\)?",tt="[\\s|\\(]+("+st+")[,|\\s]+("+st+")[,|\\s]+("+st+")[,|\\s]+("+st+")\\s*\\)?",{CSS_UNIT:new RegExp(st),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+tt),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+tt),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+tt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ot(Y){return!!$.CSS_UNIT.exec(Y)}f.exports?f.exports=s:(i=function(){return s}.call(p,l,p,f))===void 0||(f.exports=i)})(Math)},function(f,p,l){var i=l(18);function o(t){var e=t.getCurrentPage();this.matrixCache=e.getMatrix().slice(0),this._zoom(t),e.updateStatus()}function n(t){t.getCurrentPage().updateMatrix(this.matrixCache)}i.registerCommand("zoomTo",{_zoom:function(t){t.getCurrentPage().zoom(Number(this.zoom))},queue:!1,execute:o,back:n}),i.registerCommand("zoomIn",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),a=e.getMinZoom(),u=e.getZoom();return u<r||u===a},_zoom:function(t){var e=t.getCurrentPage(),r=t.get("_command"),a=e.getZoom(),u=e.getMaxZoom(),c=a+r.zoomDelta;c>=u&&(c=u),e.zoom(c)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","="],["ctrlKey","="]]}),i.registerCommand("zoomOut",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),a=e.getMinZoom(),u=e.getZoom();return u>a||u===r},_zoom:function(t){var e=t.getCurrentPage(),r=e.getZoom(),a=e.getMinZoom(),u=r-t.get("_command").zoomDelta;u<=a&&(u=a),e.zoom(u)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","-"],["ctrlKey","-"]]}),i.registerCommand("autoZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().autoZoom()},queue:!1,execute:o,back:n}),i.registerCommand("resetZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().resetZoom()},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","0"],["ctrlKey","0"]]})},function(f,p,l){var i=l(18);i.registerCommand("collapseExpand",{getItem:function(o){var n=o.getCurrentPage(),t=n.getGraph();return this.itemId?t.find(this.itemId):n.getSelected()[0]},enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0},execute:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);e.getModel().collapsed?(t.update(e,{collapsed:!1}),e.getInnerEdges&&e.getInnerEdges().forEach(function(r){r.update()}),this.toCollapsed=!1):(t.update(e,{collapsed:!0}),this.toCollapsed=!0),n.clearSelected(),n.setSelected(e,!0),this.executeTimes===1&&(this.itemId=e.id)},back:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);this.toCollapsed?t.update(e,{collapsed:!1}):t.update(e,{collapsed:!0}),n.clearSelected(),n.setSelected(e,!0)},shortcutCodes:[["metaKey","/"],["ctrlKey","/"]]}),i.registerCommand("collapse",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&!n.getModel().collapsed}},"collapseExpand"),i.registerCommand("expand",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&n.getModel().collapsed}},"collapseExpand")},function(f,p,l){function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=l(4),n={INIT:"_initGraph"};n.AUGMENT={_initGraph:function(){var t=this.get("graph"),e=new(this.get("graphConstructor"))(function(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{},c=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(u).filter(function(s){return Object.getOwnPropertyDescriptor(u,s).enumerable}))),c.forEach(function(s){i(r,s,u[s])})}return r}({page:this},t));e.draw(),this.set("_graph",e)},changeMode:function(t){this.get("_graph").changeMode(t)},updateMatrix:function(t){this.get("_graph").updateMatrix(t)},getMode:function(){return this.get("_graph").get("mode")},getMatrix:function(){return this.get("_graph").getMatrix()},getZoom:function(){return this.get("_graph").getMatrix()[0]},getMaxZoom:function(){return this.get("_graph").get("maxZoom")},getMinZoom:function(){return this.get("_graph").get("minZoom")},getGraph:function(){return this.get("_graph")},getItems:function(){return this.get("_graph").getItems()},getNodes:function(){return this.get("_graph").getNodes()},translate:function(t,e){return this.get("_graph").translate(t,e)},getEdges:function(){return this.get("_graph").getEdges()},getGroups:function(){return this.get("_graph").getGroups()},render:function(){return this.get("_graph").render(),this},add:function(t,e){return this.get("_graph").add(t,e),this},focusPointByDom:function(t){return this.get("_graph").focusPointByDom(t),this},focusPoint:function(t){return this.get("_graph").focusPoint(t),this},find:function(t){return this.get("_graph").find(t)},focus:function(t){var e=this.get("_graph"),r=e.find(t);if(r){var a=r.getCenter();e.focusPoint(a)}return this},save:function(){return this.get("_graph").save()},read:function(t){this.get("_graph").read(t)},clear:function(){this.get("_graph").clear()},remove:function(t){return this.get("_graph").remove(t),this},update:function(t,e){return this.get("_graph").update(t,e),this},zoom:function(t,e){return this.get("_graph").zoom(t,e),this},getDomPoint:function(t){return this.get("_graph").getDomPoint(t)},getPoint:function(t){return this.get("_graph").getPoint(t)},zoomByDom:function(t,e){var r=this.get("_graph"),a=r.getPoint(t);return r.zoom(a,e),this},autoZoom:function(){return this.get("_graph").autoZoom(),this},resetZoom:function(){var t=this.get("_graph"),e=t.getWidth(),r=t.getHeight();return t.zoomByDom({x:e/2,y:r/2},1),this},css:function(t){var e=this.get("_graph").getMouseEventWrapper();o.modifyCSS(e,t)},setCapture:function(t){this.get("_graph").getRootGroup().set("capture",t)},destroy:function(){this.get("_graph").destroy()},delete:function(){var t=this.getSelected(),e=this.get("_graph");o.each(t,function(r){e.remove(r)})}},f.exports=n},function(f,p,l){function i(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var o=l(36),n=l(4),t={CFG:{grid:void 0},INIT:"_initGrid"};t.AUGMENT={_initGrid:function(){var e=this.get("grid"),r=this.get("_graph");if(e){var a=new o(function(u){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{},h=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(s).filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable}))),h.forEach(function(d){i(u,d,s[d])})}return u}({page:this,graph:r},e));this.setController("grid",a)}},showGrid:function(e){var r=this.get("_graph"),a=this.getController("grid");a||(e?n.isObject(e)&&this.set("grid",e):this.set("grid",!0),this._initGrid()),(a=this.getController("grid")).show(),r.draw()},hideGrid:function(){var e=this.get("_graph"),r=this.getController("grid");r&&r.hide(),e.draw()},getGridCell:function(){return this.getController("grid").getCell()}},f.exports=t},function(f,p,l){function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(s)}function o(s,h){for(var d=0;d<h.length;d++){var v=h[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(s,v.key,v)}}function n(s,h){return!h||i(h)!=="object"&&typeof h!="function"?function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(s):h}function t(s){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(s)}function e(s,h){return(e=Object.setPrototypeOf||function(d,v){return d.__proto__=v,d})(s,h)}var r=l(9),a=l(14),u=l(4),c=function(s){function h(){return function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}(this,h),n(this,t(h).apply(this,arguments))}var d,v,y;return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),b&&e(m,b)}(h,r),d=h,(v=[{key:"getDefaultCfg",value:function(){return{cell:16,line:a.gridStyle,type:"point",visible:!0}}},{key:"init",value:function(){this._draw(),this._onViewPortChange(),!this.visible&&this.hide()}},{key:"_onViewPortChange",value:function(){var m=this,b=this.graph;b.on("afterviewportchange",function(){m.update()}),b.on("beforechangesize",function(){m.update()})}},{key:"_draw",value:function(){var m=this.graph,b=this._getPath(),w=m.getRootGroup(),P=u.mix({},this.line),S=m.getMatrix(),O=this.type,A=O==="line"?1/S[0]:2/S[0];O==="point"&&(P.lineDash=null),P.lineWidth=A,P.path=b;var E=w.addShape("path",{attrs:P,capture:!1,zIndex:0});u.toBack(E,w),this.gridEl=E}},{key:"show",value:function(){this.gridEl.show(),this.visible=!0}},{key:"hide",value:function(){this.gridEl.hide(),this.visible=!1}},{key:"_getLinePath",value:function(){for(var m=this.graph,b=m.get("width"),w=m.get("height"),P=m.getPoint({x:0,y:0}),S=m.getPoint({x:b,y:w}),O=this.cell,A=Math.ceil(P.x/O)*O,E=Math.ceil(P.y/O)*O,_=[],C=0;C<=S.x-P.x;C+=O){var k=A+C;_.push(["M",k,P.y]),_.push(["L",k,S.y])}for(var T=0;T<=S.y-P.y;T+=O){var I=E+T;_.push(["M",P.x,I]),_.push(["L",S.x,I])}return _}},{key:"_getPointPath",value:function(){for(var m=this.graph,b=m.get("width"),w=m.get("height"),P=m.getPoint({x:0,y:0}),S=2/m.getMatrix()[0],O=m.getPoint({x:b,y:w}),A=this.getCell(),E=Math.ceil(P.x/A)*A,_=Math.ceil(P.y/A)*A,C=[],k=0;k<=O.x-P.x;k+=A)for(var T=E+k,I=0;I<=O.y-P.y;I+=A){var R=_+I;C.push(["M",T,R]),C.push(["L",T+S,R])}return C}},{key:"getCell",value:function(){var m=this.cell,b=this.graph.getMatrix()[0];return m*b<9.6?9.6/b:m}},{key:"_getPath",value:function(){var m=this.type;return this["_get"+u.upperFirst(m)+"Path"]()}},{key:"update",value:function(m){u.mix(this,m);var b=this._getPath(),w=this.gridEl,P=this.graph.getMatrix(),S=this.type==="line"?1/P[0]:2/P[0];w.attr("lineWidth",S),w.attr("path",b)}},{key:"destroy",value:function(){var m=this.gridEl;m&&m.remove()}}])&&o(d.prototype,v),y&&o(d,y),h}();f.exports=c},function(f,p){var l={};function i(o,n,t){o.on(t,function(e){n.emit(t,e)}),o.on("node:"+t,function(e){n.emit("node:"+t,e)}),o.on("edge:"+t,function(e){n.emit("edge:"+t,e)}),o.on("group:"+t,function(e){n.emit("group:"+t,e)}),o.on("anchor:"+t,function(e){n.emit("anchor:"+t,e)})}l.INIT="_initEvent",l.AUGMENT={_initEvent:function(){var o=this,n=this.get("_graph");i(n,this,"click"),i(n,this,"dblclick"),i(n,this,"mouseenter"),i(n,this,"mouseleave"),i(n,this,"mousedown"),i(n,this,"mouseup"),i(n,this,"contextmenu"),n.on("keydown",function(t){o.emit("keydown",t)}),n.on("keyup",function(t){o.emit("keyup",t)}),n.on("beforechange",function(t){o.emit("beforechange",t)}),n.on("afterchange",function(t){o.emit("afterchange",t)}),n.on("afterviewportchange",function(t){o.emit("afterviewportchange",t),t.updateMatrix[0]!==t.originMatrix[0]&&o.emit("afterzoom",t)}),n.on("beforeviewportchange",function(t){o.emit("beforeviewportchange",t),t.updateMatrix[0]!==t.originMatrix[0]&&o.emit("beforezoom",t)})}},f.exports=l},function(f,p,l){var i=l(4),o={CFG:{selectable:!0,multiSelectable:!0,_selectedCache:{}},INIT:"_initSelected"};o.AUGMENT={_initSelected:function(){var n=this,t=this.get("_graph");t.on("afteritemdraw",function(e){var r=e.item;r.isSelected&&n.setItemSelected(r)}),t.on("beforeitemdestroy",function(e){n.clearItemSelected(e.item)})},setItemSelected:function(n){var t=this.get("_graph").getShapeObj(n).getSelectedStyle(n),e=n.getKeyShape();this.get("_selectedCache")[n.id]=n,t&&e.attr(t),n.isEdge&&(n.startArrow&&n.startArrow.attr({fill:t.stroke}),n.endArrow&&n.endArrow.attr({fill:t.stroke}))},clearItemSelected:function(n){var t=this.get("_graph"),e=n.getKeyShape(),r=t.getShapeObj(n),a=r.getStyle(n),u=r.getSelectedStyle(n),c=this.get("_selectedCache"),s=i.getContrast(a,u);e.attr(s),n.isEdge&&(n.startArrow&&n.startArrow.attr({fill:s.stroke}),n.endArrow&&n.endArrow.attr({fill:s.stroke})),delete c[n.id]},setSelected:function(n,t){var e,r=this,a=this.get("selectable"),u=this.get("_graph");a&&(e=i.isArray(n)?n:[n],i.each(e,function(c){i.isString(c)&&(c=u.find(c)),c&&!c.destroyed&&(t?(r.emit("beforeitemselected",{item:c}),r.setItemSelected(c),r.emit("afteritemselected",{item:c})):(r.emit("beforeitemunselected",{item:c}),r.clearItemSelected(c),r.emit("afteritemunselected",{item:c})),c.isSelected=t,r.updateStatus(),u.draw())}))},getSelected:function(){var n=this.get("_selectedCache");return i.objectToValues(n)},clearSelected:function(){var n=this,t=this.get("_graph"),e=this.get("_selectedCache");i.each(e,function(r){r.isSelected&&n.setSelected(r,!1)}),t.draw()}},f.exports=o},function(f,p,l){var i=l(4),o={CFG:{activeable:!0,_activedCache:{}},INIT:"_initActived"};o.AUGMENT={_initActived:function(){var n=this,t=this.get("_graph");t.on("afteritemdraw",function(e){var r=e.item;r.isActived&&n.setItemActived(r)}),t.on("beforeitemdestroy",function(e){n.clearItemActived(e.item)})},setItemActived:function(n){var t=this.get("_graph").getShapeObj(n),e=this.get("_activedCache"),r=t.getActivedStyle(n),a=n.getKeyShape();e[n.id]=n,r&&a.attr(r),n.isEdge&&(n.startArrow&&n.startArrow.attr({fill:r.stroke}),n.endArrow&&n.endArrow.attr({fill:r.stroke}))},clearItemActived:function(n){var t=this.get("_graph"),e=n.getKeyShape(),r=t.getShapeObj(n),a=r.getStyle(n),u=this.get("_activedCache"),c=r.getActivedStyle(n),s=i.getContrast(a,c);e.attr(s),n.isEdge&&(n.startArrow&&n.startArrow.attr({fill:s.stroke}),n.endArrow&&n.endArrow.attr({fill:s.stroke})),delete u[n.id]},setActived:function(n,t){var e,r=this,a=this.get("activeable"),u=this.get("_graph");a&&(e=i.isArray(n)?n:[n],i.each(e,function(c){i.isString(c)&&(c=u.find(c)),c&&!c.destroyed&&(t?(r.emit("beforeitemactived",{item:c}),r.setItemActived(c),r.emit("afteritemactived",{item:c})):(r.emit("beforeitemunactived",{item:c}),r.clearItemActived(c),r.emit("afteritemunactived",{item:c})),c.isActived=t)}),u.draw())},getActived:function(){var n=this.get("_activedCache");return i.objectToValues(n)},clearActived:function(){var n=this,t=this.get("_graph"),e=this.get("_activedCache");i.each(e,function(r){r.isActived&&n.setActived(r,!1)}),t.draw()}},f.exports=o},function(f,p,l){function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=l(41),n={CFG:{align:{}},INIT:"_initAlign"};n.AUGMENT={_initAlign:function(){var t=this.get("align"),e=this.get("_graph"),r=new o(function(a){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{},s=Object.keys(c);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(c).filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable}))),s.forEach(function(h){i(a,h,c[h])})}return a}({flow:this,graph:e},t));this.setController("align",r)},align:function(t,e,r){return this.getController("align").align(t,e,r)},clearAlignLine:function(){return this.getController("align").clearAlignLine()}},f.exports=n},function(f,p,l){function i(h){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(h)}function o(h,d){for(var v=0;v<d.length;v++){var y=d[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}function n(h,d){return!d||i(d)!=="object"&&typeof d!="function"?function(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}(h):d}function t(h){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(h)}function e(h,d){return(e=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v})(h,d)}var r=l(9),a=l(14),u=l(4);function c(h,d){return{line:h,point:d,dis:u.pointLineDistance(h[0],h[1],h[2],h[3],d.x,d.y)}}var s=function(h){function d(){return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,d),n(this,t(d).apply(this,arguments))}var v,y,m;return function(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),w&&e(b,w)}(d,r),v=d,(y=[{key:"getDefaultCfg",value:function(){return{line:a.alignLineStyle,item:!0,grid:!1,tolerance:5,_horizontalLines:{},_verticalLines:{},_alignLines:[]}}},{key:"init",value:function(){this.item&&this._cacheBoxLine()}},{key:"_cacheBoxLine",value:function(){var b=this.graph,w=this._horizontalLines,P=this._verticalLines,S=this.item;b.on("afteritemdraw",function(O){var A=O.item;if(!u.isEdge(A)){var E=A.getBBox();S===!0||S==="horizontal"?(w[A.id+"tltr"]=[E.minX,E.minY,E.maxX,E.minY,A],w[A.id+"lcrc"]=[E.minX,E.centerY,E.maxX,E.centerY,A],w[A.id+"blbr"]=[E.minX,E.maxY,E.maxX,E.maxY,A]):S==="center"&&(w[A.id+"lcrc"]=[E.minX,E.centerY,E.maxX,E.centerY,A]),S===!0||S==="vertical"?(P[A.id+"tlbl"]=[E.minX,E.minY,E.minX,E.maxY,A],P[A.id+"tcbc"]=[E.centerX,E.minY,E.centerX,E.maxY,A],P[A.id+"trbr"]=[E.maxX,E.minY,E.maxX,E.maxY,A]):S==="center"&&(P[A.id+"tcbc"]=[E.centerX,E.minY,E.centerX,E.maxY,A])}}),b.on("beforeitemdestroy",function(O){var A=O.item;delete w[A.id+"tltr"],delete w[A.id+"lcrc"],delete w[A.id+"blbr"],delete P[A.id+"tlbl"],delete P[A.id+"tcbc"],delete P[A.id+"trbr"]})}},{key:"align",value:function(b,w){var P=u.mix({},b),S=this.flow.getController("grid");return this.grid&&S&&S.visible&&this._gridAlign(b,w),this.item&&this._itemAlign(b,w,P),b}},{key:"_gridAlign",value:function(b,w){var P=this.flow,S=this.grid,O=P.getGridCell();if(S==="cc"){var A=Math.round((b.x+w.width/2)/O)*O,E=Math.round((b.y+w.height/2)/O)*O;b.x=A-w.width/2,b.y=E-w.height/2}else b.x=Math.round(b.x/O)*O,b.y=Math.round(b.y/O)*O}},{key:"_itemAlign",value:function(b,w,P){var S=this._horizontalLines,O=this._verticalLines,A=this.tolerance,E={x:P.x+w.width/2,y:P.y},_={x:P.x+w.width/2,y:P.y+w.height/2},C={x:P.x+w.width/2,y:P.y+w.height},k={x:P.x,y:P.y+w.height/2},T={x:P.x+w.width,y:P.y+w.height/2},I=[],R=[],F=null;if(this.clearAlignLine(),u.each(S,function(H){H[4].isVisible()&&(I.push(c(H,E)),I.push(c(H,_)),I.push(c(H,C)))}),u.each(O,function(H){H[4].isVisible()&&(R.push(c(H,k)),R.push(c(H,_)),R.push(c(H,T)))}),I.sort(function(H,et){return H.dis-et.dis}),R.sort(function(H,et){return H.dis-et.dis}),I.length!==0&&I[0].dis<A){b.y=I[0].line[1]-I[0].point.y+P.y,F={type:"item",horizontals:[I[0]]};for(var j=1;j<3;j++)I[0].dis===I[j].dis&&F.horizontals.push(I[j])}if(R.length!==0&&R[0].dis<A){b.x=R[0].line[0]-R[0].point.x+P.x,F?F.verticals=[R[0]]:F={type:"item",verticals:[R[0]]};for(var B=1;B<3;B++)R[0].dis===R[B].dis&&F.verticals.push(R[B])}F&&(F.bbox=w,this._addAlignLine(F))}},{key:"clearAlignLine",value:function(){var b=this._alignLines;u.each(b,function(w){w.remove()}),this._alignLines=[]}},{key:"_addAlignLine",value:function(b){var w=b.bbox,P=this.graph.getRootGroup(),S=this.line,O=this._alignLines;b.type==="item"&&(b.horizontals&&u.each(b.horizontals,function(A){var E,_,C=A.line,k=A.point,T=(C[0]+C[2])/2;k.x<T?(E=k.x-w.width/2,_=Math.max(C[0],C[2])):(E=k.x+w.width/2,_=Math.min(C[0],C[2]));var I=P.addShape("line",{attrs:u.mix({x1:E,y1:C[1],x2:_,y2:C[1]},S),capture:!1});O.push(I)}),b.verticals&&u.each(b.verticals,function(A){var E,_,C=A.line,k=A.point,T=(C[1]+C[3])/2;k.y<T?(E=k.y-w.height/2,_=Math.max(C[1],C[3])):(E=k.y+w.height/2,_=Math.min(C[1],C[3]));var I=P.addShape("line",{attrs:u.mix({x1:C[0],y1:E,x2:C[0],y2:_},S),capture:!1});O.push(I)}))}}])&&o(v.prototype,y),m&&o(v,m),d}();f.exports=s},function(f,p,l){var i=l(4),o={CFG:{labelEditable:!1},INIT:"_initLabelEditor"};o.AUGMENT={_initLabelEditor:function(){var n=this;if(this.get("labelEditable")){var t=this.getGraph(),e=i.createDOM('<div contenteditable="true" role="textbox" tabindex="1" class="g6-label-editor"></div>',{position:"absolute",visibility:"hidden","z-index":"2",padding:"0px 2px 0px 0px",resize:"none",width:"auto",height:"auto",outline:"none",border:"1px solid #1890FF","transform-origin":"left top","max-width":"320px",background:"white","box-sizing":"content-box"});t.getGraphContainer().appendChild(e),e.on("blur",function(r){r.stopPropagation(),!t.destroyed&&n.endEditLabel()}),e.on("keydown",function(r){r.stopPropagation();var a=i.getKeyboradKey(r);(r.metaKey&&a==="s"||r.ctrlKey&&a==="s")&&r.preventDefault(),a!=="Enter"&&a!=="Escape"||n.endEditLabel()}),this.set("labelTextArea",e),t.on("beforeviewportchange",function(){e.focusItem&&n.setLabelEditorBeginPosition(e.focusItem)})}},_getLabelTextAreaBox:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];t&&n.attr("text",t);var r=this.getGraph().getRootGroup(),a=i.getBBox(n,r);return{minX:a.minX-e[1],minY:a.minY-e[0],maxX:a.maxX+e[1],maxY:a.maxY+e[0]}},setLabelEditorBeginPosition:function(n){var t=this.get("labelTextArea"),e=n.getLabel();if(e){var r=this._getLabelTextAreaBox(e),a=e.attr("lineHeight"),u=e.attr("fontSize"),c={x:r.minX,y:r.minY-a/4+u/4-1,width:r.maxX-r.minX,height:r.maxY-r.minY};t.css({top:c.y+"px",left:c.x+"px"}),t.labelPoint=c}else{var s=this.getGraph().getRootGroup(),h=n.getKeyShape(),d=i.getBBox(h,s),v={x:d.minY+(d.maxY-d.minY-t.height())/2,y:(d.minX+d.maxX)/2};t.css({top:v.x+"px",left:v.y+"px"}),t.labelPoint=v}},beginEditLabel:function(n){var t=this.get("labelTextArea"),e=this.getGraph();if(i.isString(n)&&(n=e.find(n)),n&&!n.destroyed&&t){this.setSignal("preventWheelPan",!0);var r=n.getModel(),a=n.getLabel(),u=e.getZoom();if(t.focusItem=n,a){var c=a.attr("lineHeight"),s=this._getLabelTextAreaBox(a),h=(s.maxX-s.minX)/u,d=(s.maxY-s.minY+c/4)/u;t.innerHTML=r.label,t.innerHTML=r.label,t.css({"min-width":h+"px","min-height":d+"px",visibility:"visible","font-family":a.attr("fontFamily"),"line-height":c+"px","font-size":a.attr("fontSize")+"px",transform:"scale("+u+")"})}else t.innerHTML="",t.css({"min-width":"auto","min-height":"auto"});this.setLabelEditorBeginPosition(n),t.css({visibility:"visible"}),t.focus(),document.execCommand("selectAll",!1,null)}},endEditLabel:function(){var n=this.get("labelTextArea");if(this.setSignal("preventWheelPan",!1),n){var t=n.focusItem;if(t){var e=t.getModel(),r=this.editor;e.label!==n.textContent&&r.executeCommand("update",{action:"updateLabel",itemId:t.id,updateModel:{label:n.textContent}}),n.hide(),n.focusItem=void 0,this.focusGraphWrapper()}}}},f.exports=o},function(f,p){var l={AUGMENT:{updateStatus:function(){var i,o=this.getSelected();o.length===0?i="canvas-selected":o.length===1?o[0].isNode?i="node-selected":o[0].isEdge?i="edge-selected":o[0].isGroup&&(i="group-selected"):i="multi-selected",this.emit("statuschange",{status:i})}}};f.exports=l},function(f,p,l){l(45),l(46),l(47),l(48),l(49),l(50),l(51),l(52),l(53),l(54),l(55),l(56),l(57),l(58),l(59),l(60),l(61),l(62)},function(f,p,l){var i=l(3),o=l(4);i.registerBehaviour("panBlank",o.getPanCanvasBehaviour(!0))},function(f,p,l){l(3).registerBehaviour("hoverButton",function(i){i.getGraph().behaviourOn("mouseenter",function(o){i.getSignal("panningItem")||o.shape&&o.shape.isButton&&i.css({cursor:"pointer"})})})},function(f,p,l){var i=l(3),o=l(4);i.registerBehaviour("panCanvas",o.getPanCanvasBehaviour())},function(f,p,l){var i=l(3),o=l(14),n=l(4);i.registerBehaviour("wheelChangeViewport",function(t){var e,r=t.getGraph();r.behaviourOn("wheel",function(a){a.domEvent.preventDefault()}),r.behaviourOn("wheel",n.throttle(function(a){if(!t.getSignal("preventWheelPan")){var u=a.domEvent,c=t.getSignal("wheelZoom");if(e||t.setCapture(!1),c){var s=u.wheelDelta;if(Math.abs(s)>10){var h=r.getMatrix()[0];s>0?r.zoom({x:a.x,y:a.y},1.05*h):r.zoom({x:a.x,y:a.y},h*(1/1.05))}}else{var d=[],v=r.getMatrix();n.mat3.translate(d,v,[u.wheelDeltaX*o.wheelPanRatio,u.wheelDeltaY*o.wheelPanRatio]),t.translateLimt(d)&&r.updateMatrix(d)}e&&clearTimeout(e),e=setTimeout(function(){t.setCapture(!0),e=void 0},50)}},16))})},function(f,p,l){l(3).registerBehaviour("processPanItem",function(i){var o=i.getGraph();o.behaviourOn("mousemove",function(n){var t=i.get("panItemDelegation");if(t){var e=i.get("panItemStartPoint"),r=i.get("panItemStartBox"),a=n.x-e.x,u=n.y-e.y,c=i.align({x:r.minX+a,y:r.minY+u},{width:r.width,height:r.height});t.attr({x:c.x,y:c.y}),o.emit("itempanning",n),o.draw()}})})},function(f,p,l){l(3).registerBehaviour("startPanItem",function(i){var o=i.getGraph(),n=o.getRootGroup();o.behaviourOn("dragstart",function(t){if(t.button!==2&&t.item&&(t.item.isNode||t.item.isGroup)){var e,r=t.item;if((e=(e=r.isSelected?i.getSelected():[r]).filter(function(c){return c.isNode||c.isGroup}))[0]&&e[0].dragable!==!1){o.emit("beforepanitem",{items:e}),o.emit("beforeshowdelegation",{items:e});var a=i.getDelegation(e,n),u=a.getBBox();i.setSignal("panningItem",!0),i.set("panItems",e),i.set("panItemDelegation",a),i.set("panItemStartBox",u),i.set("panItemStartPoint",{x:t.x,y:t.y}),o.draw()}}})})},function(f,p,l){l(3).registerBehaviour("endPanItem",function(i){var o=i.getGraph();o.behaviourOn("panitemend",function(){var n=i.get("panItemDelegation");n&&(n.remove(),o.draw()),i.setSignal("panningItem",!1),i.set("panItemDelegation",void 0),i.set("panItemStartPoint",void 0),i.set("panItemStartBox",void 0),i.set("panItems",void 0)}),o.behaviourOn("canvas:mouseleave",function(){i.get("panItems")&&(i.clearAlignLine(),o.emit("panitemend"))})})},function(f,p,l){l(3).registerBehaviour("dblclickItemEditLabel",function(i){i.getGraph().behaviourOn("node:dblclick",function(o){o.shape&&!o.shape.isButton&&i.beginEditLabel(o.item)})})},function(f,p,l){l(3).registerBehaviour("clickCanvasSelected",function(i){var o=i.getGraph();o.behaviourOn("click",function(n){n.shape||(i.clearSelected(),i.clearActived(),i.updateStatus())}),o.behaviourOn("contextmenu",function(n){n.shape||(i.clearSelected(),i.clearActived(),i.updateStatus())})})},function(f,p,l){l(3).registerBehaviour("clickCollapsedButton",function(i){var o=i.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isCollapsedButton){var r=i.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!0})}})})},function(f,p,l){l(3).registerBehaviour("clickEdgeSelected",function(i){i.getGraph().behaviourOn("edge:click",function(o){i.get("multiSelectable")&&i.getSignal("shiftKeyDown")===!0||(i.clearActived(),i.clearSelected()),i.setSelected(o.item.id,!0)})})},function(f,p,l){l(3).registerBehaviour("clickExpandedButton",function(i){var o=i.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isExpandedButton){var r=i.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!1})}})})},function(f,p,l){l(3).registerBehaviour("clickGroupSelected",function(i){i.getGraph().behaviourOn("group:click",function(o){i.get("multiSelectable")&&i.getSignal("shiftKeyDown")===!0||(i.clearActived(),i.clearSelected()),i.setSelected(o.item.id,!0)})})},function(f,p,l){l(3).registerBehaviour("clickNodeSelected",function(i){i.getGraph().behaviourOn("node:click",function(o){i.get("multiSelectable")&&i.getSignal("shiftKeyDown")===!0||(i.clearActived(),i.clearSelected()),i.setSelected(o.item.id,!0)})})},function(f,p,l){l(3).registerBehaviour("hoverNodeActived",function(i){var o,n=i.getGraph();n.behaviourOn("node:mouseenter",function(t){t.item.getShapeObj().panAble!==!1&&i.css({cursor:"move"}),i.getSignal("panningItem")||i.getSignal("dragEdge")||t.item&&t.item.isSelected||(o=t.item,i.setActived(o,!0))}),n.behaviourOn("node:mouseleave",function(t){var e=t.toShape;o&&(e&&e.isAnchor&&e.getItem()===o||i.getSignal("dragEdge")||(o.isSelected||i.setActived(o,!1),o=void 0))})})},function(f,p,l){l(3).registerBehaviour("hoverGroupActived",function(i){var o=i.getGraph();o.behaviourOn("mouseenter",function(n){i.getSignal("panningItem")||n.item&&n.item.isSelected||i.getSignal("dragEdge")||n.shape&&n.shape.isGroupKeyShape&&(i.css({cursor:"move"}),i.setActived(n.item,!0))}),o.behaviourOn("group:mouseleave",function(n){n.item.isActived&&!n.item.isSelected&&i.setActived(n.item,!1)})})},function(f,p,l){l(3).registerBehaviour("hoverEdgeActived",function(i){var o=i.getGraph();o.behaviourOn("edge:mouseenter",function(n){i.getSignal("panningItem")||n.item&&n.item.isSelected||i.getSignal("dragEdge")||i.setActived(n.item,!0)}),o.behaviourOn("edge:mouseleave",function(n){i.setActived(n.item,!1)})})},function(f,p,l){l(3).registerBehaviour("keydownCmdWheelZoom",function(i){var o=i.getGraph();o.behaviourOn("keydown",function(n){n.domEvent.keyCode===91&&i.setSignal("wheelZoom",!0)}),o.behaviourOn("keyup",function(n){n.domEvent.keyCode===91&&i.setSignal("wheelZoom",!1)})})},function(f,p,l){var i=l(22);f.exports={dragingEdgeEndPoint:function(o){var n=o.endPointType,t=o.edgeModel,e=o.graph,r=o.delegation,a=o.startPoint,u=o.ev,c=o.source,s=o.target,h=u.item,d=n==="source"?[u,a]:[a,u];h&&(n==="source"?s=h:c=h);var v=e.getShapeObj("edge",t).getPathByPoints({points:d,source:c,target:s});r.attr("path",v),e.draw()},panGroup:function(o,n,t,e){var r=o.getModel();i.traverseTree(o,function(a){if(a.type==="node"){var u=a.getModel();e.update(a,{x:u.x+n,y:u.y+t})}o.getCrossEdges&&o.getCrossEdges().forEach(function(c){c.update()})},function(a){return a.type==="group"?a.getChildren():[]}),e.update(o,{x:r.x+n,y:r.y+t})},dropUpdateEdge:function(o){var n=o.ev,t=o.endPointType,e=o.model,r=o.diagram,a=r.get("noEndEdge"),u=r.get("linkAnchor"),c=r.get("linkNode"),s=n.item,h=n.shape,d=n.x,v=n.y;if(r.getGraph().emit("beforedropedge"),h){if(u&&h.isAnchor&&h.hasHotspot){var y=h,m=y.getItem();return t==="target"?(e.target=m.id,e.targetAnchor=y.getIndex(),!0):(e.source=m.id,e.sourceAnchor=y.getIndex(),!0)}if(c&&s&&s.isNode)return t==="target"?(e.target=s.id,!0):(e.source=s.id,!0)}else if(a)return t==="target"?(e.target={x:d,y:v},!0):(e.source={x:d,y:v},!0);return!1}}},function(f,p){f.exports={rectRectCrossAlgorithm:function(l,i){var o=Math.max(l.minX,i.minX),n=Math.max(l.minY,i.minY),t=Math.min(l.maxX,i.maxX),e=Math.min(l.maxY,i.maxY);return o>t||n>e},euclideanDistance:{pointPoint:function(l,i){var o=Math.pow(l.x-i.x,2)+Math.pow(l.y-i.y,2);return Math.sqrt(o)}}}},function(f,p,l){var i={},o=l(2);i.AUGMENT={changeAddEdgeModel:function(n){this.set("addEdgeModel",n)},cancelAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},beginAdd:function(n,t){this.set("addType",n),this.set("addModel",t),this.changeMode("add")},endAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},delete:function(){var n=this.getSelected(),t=this.get("_graph");o.each(n,function(e){t.remove(e)})},toBack:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var a=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(u)-o.getIndex(a)}),n.forEach(function(e){t.toBack(e)})},toFront:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var a=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(a)-o.getIndex(u)}),n.forEach(function(e){t.toFront(e)})},addGroup:function(n){var t,e=this.get("_graph"),r=this.getSelected(),a=!0;if(r.length!==0){n||(n={label:"\u65B0\u5EFA\u5206\u7EC4"}),o.setId(n),e.add("group",n),e.toFront(n.id);var u=e.find(n.id);if(r.forEach(function(s){var h=s.getParent();h&&(t?t!==h&&(a=!1):t=h)}),a){t&&(n.parent=t.getModel().id),r.forEach(function(s){e.update(s,{parent:n.id})});var c=u.getInnerEdges();u.deepEach(function(s){e.toFront(s)}),c.forEach(function(s){e.toFront(s)})}else console.warn("add group elements must have the same parent")}},unGroup:function(){var n=this.get("_graph"),t=this.getSelected(),e=t[0];t.length===1&&o.isGroup(e)&&(e.getChildren().forEach(function(r){n.update(r,{parent:void 0}),r.collapsedParent||r.show(),r.isGroup&&r.deepEach(function(a){a.collapsedParent||a.show()})}),n.remove(e))},newGroup:function(n){this.addGroup(n)}},f.exports=i},function(f,p,l){function i(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var o=l(67),n=l(2),t={CFG:{anchor:{}},INIT:"_initAnchor"};t.AUGMENT={_initAnchor:function(){var e=this.get("anchor"),r=this.get("_graph");if(e){var a=new o(function(u){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{},h=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(s).filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable}))),h.forEach(function(d){i(u,d,s[d])})}return u}({diagram:this,graph:r},e));this.setController("anchor",a)}},showAnchor:function(e,r,a){this.getController("anchor").showAnchor(e,r,a)},clearAnchor:function(e){this.getController("anchor").clearAnchor(e)},setHotspotActived:function(e,r){this.getController("anchor").setHotspotActived(e,r)},hoverShowAnchor:function(e){var r=this,a=e.getAnchorPoints(),u=[];a.forEach(function(c,s){var h={anchor:c,item:e};r.emit("hovernode:beforeshowanchor",h),h.cancel||u.push(s)}),this.showAnchor(e,u)},anchorHasBeenLinked:function(e,r){var a=e.getEdges(),u=[];return a.forEach(function(c){var s=c.getModel();s.source!==e.id||n.isNil(s.sourceAnchor)||u.push(s.sourceAnchor),s.target!==e.id||n.isNil(s.targetAnchor)||u.push(s.targetAnchor)}),n.isObject(r)?u.indexOf(r.index)!==-1:u.indexOf(r)!==-1},dragEdgeBeforeShowAnchor:function(e,r,a){var u=this;this.getGraph().getNodes().forEach(function(c){var s,h=[],d=c.getAnchorPoints();if(e.isNode){var v=e.getAnchorPoints();d.forEach(function(y,m){s=a==="target"?{source:e,sourceAnchor:v[r],target:c,targetAnchor:y,dragEndPointType:a}:{target:e,targetAnchor:v[r],source:c,sourceAnchor:y,dragEndPointType:a},u.emit("dragedge:beforeshowanchor",s),s.cancel||h.push(m)})}else d.forEach(function(y,m){h.push(m)});c===e&&c.isAnchorShow?h.forEach(function(y){var m=c.getAnchor(y);r!==y&&m&&m.showHotspot()}):u.showAnchor(c,h,!0)})}},f.exports=t},function(f,p,l){function i(d){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(d)}function o(d){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{},m=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(m=m.concat(Object.getOwnPropertySymbols(y).filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable}))),m.forEach(function(b){n(d,b,y[b])})}return d}function n(d,v,y){return v in d?Object.defineProperty(d,v,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[v]=y,d}function t(d,v){for(var y=0;y<v.length;y++){var m=v[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}function e(d,v){return!v||i(v)!=="object"&&typeof v!="function"?function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(d):v}function r(d){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)})(d)}function a(d,v){return(a=Object.setPrototypeOf||function(y,m){return y.__proto__=m,y})(d,v)}var u=l(9),c=l(5),s=l(2),h=function(d){function v(){return function(w,P){if(!(w instanceof P))throw new TypeError("Cannot call a class as a function")}(this,v),e(this,r(v).apply(this,arguments))}var y,m,b;return function(w,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(P&&P.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),P&&a(w,P)}(v,u),y=v,(m=[{key:"getDefaultCfg",value:function(){return{_anchorItemCache:{}}}},{key:"init",value:function(){var w=this,P=this.graph;P.on("afteritemdraw",function(S){S.item.isAnchorShow&&w.showAnchor(S.item)}),P.on("beforeitemdestroy",function(S){w._clearAnchor(S.item)}),P.on("afteritemhide",function(S){S.item.isNode&&w._clearAnchor(S.item)})}},{key:"_updateAnchor",value:function(w){var P=this.graph;w.anchorShapes.forEach(function(S){S.updatePosition()}),P.draw()}},{key:"_drawAnchor",value:function(w,P,S,O){var A=w.getAnchorPoints();this._clearAnchor(w),s.each(A,function(E,_){if(!S||S.indexOf(_)!==-1){var C,k=P.addShape("marker",{attrs:o({symbol:"circle"},c.anchorPointStyle,{x:E.x,y:E.y}),freezePoint:E,item:w,index:_,eventPreFix:"anchor",isItemChange:function(){},zIndex:c.zIndex.anchorPoint});k.toFront(),k.eventPreFix="anchor",k.showHotspot=function(){C=P.addShape("marker",{attrs:o({symbol:"circle"},c.anchorHotsoptStyle,{x:E.x,y:E.y}),freezePoint:E,capture:!1,zIndex:c.zIndex.anchorHotsopt}),w.anchorShapes.push(C),k.hasHotspot=!0,C.toFront(),k.toFront()},k.getIndex=function(){return _},k.getItem=function(){return w},k.getPoint=function(){return E},k.updatePosition=function(){var T=w.getAnchorPoints()[_];k.attr(T)},k.setActived=function(){k.attr(c.anchorPointHoverStyle)},k.clearActived=function(){k.attr(c.anchorPointStyle)},k.isAnchor=!0,k.setHotspotActived=function(T){C&&(T?C.attr(c.anchorHotsoptActivedStyle):C.attr(c.anchorHotsoptStyle))},O&&k.showHotspot(),w.anchorShapes.push(k),w.getAllAnchors=function(){return w.anchorShapes.filter(function(T){return T.isAnchor})},w.getAnchor=function(T){return w.anchorShapes.find(function(I){return I.get("index")===T})}}})}},{key:"_clearAnchor",value:function(w){w.anchorShapes&&w.anchorShapes.forEach(function(P){P.remove()}),w.anchorShapes=[]}},{key:"setHotspotActived",value:function(w,P){var S=this.diagram.getGraph();w.setHotspotActived(P),S.draw()}},{key:"showAnchor",value:function(w,P,S){if(w.isVisible()){var O=this.graph,A=this._anchorItemCache,E=O.getRootGroup();this._drawAnchor(w,E,P,S),w.isAnchorShow=!0,A[w.id]=w}}},{key:"clearAnchor",value:function(w){var P=this,S=this.graph,O=S.get("itemCache"),A=this._anchorItemCache,E=w;E=s.isObject(w)?[w]:s.isString(w)?[O[w]]:A,s.each(E,function(_){P._clearAnchor(_),_.isAnchorShow=!1,delete A[_.id]}),S.draw()}}])&&t(y.prototype,m),b&&t(y,b),v}();f.exports=h},function(f,p,l){function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=l(69),n={CFG:{orbit:null},INIT:"_initOrbit"};n.AUGMENT={_initOrbit:function(){var t=this.get("orbit");if(t){var e=new o(function(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{},c=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(u).filter(function(s){return Object.getOwnPropertyDescriptor(u,s).enumerable}))),c.forEach(function(s){i(r,s,u[s])})}return r}({diagram:this},t));this.setController("orbit",e)}},showOrbit:function(t){this.getController("orbit").show(t)},hideOrbit:function(){this.getController("orbit").hide()},layoutOrbit:function(t,e){this.getController("orbit").layout(t,e)}},f.exports=n},function(f,p,l){function i(y){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(y)}function o(y,m,b){return m in y?Object.defineProperty(y,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):y[m]=b,y}function n(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}function t(y,m){return!m||i(m)!=="object"&&typeof m!="function"?function(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(y):m}function e(y){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)})(y)}function r(y,m){return(r=Object.setPrototypeOf||function(b,w){return b.__proto__=w,b})(y,m)}var a=l(9),u=l(5),c=l(70),s=l(2),h=s.vec2,d=s.isString,v=function(y){function m(){return function(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}(this,m),t(this,e(m).apply(this,arguments))}var b,w,P;return function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),O&&r(S,O)}(m,a),b=m,(w=[{key:"getDefaultCfg",value:function(){return{satellite:[],satelliteCache:[]}}},{key:"init",value:function(){var S=this,O=this.satellite,A=this.diagram,E={diagram:A};A.getGraph().addBehaviour("orbit"),O.forEach(function(_){d(_)?S.satelliteCache.push(new c[_](E)):S.satelliteCache.push(new c(function(C){for(var k=1;k<arguments.length;k++){var T=arguments[k]!=null?arguments[k]:{},I=Object.keys(T);typeof Object.getOwnPropertySymbols=="function"&&(I=I.concat(Object.getOwnPropertySymbols(T).filter(function(R){return Object.getOwnPropertyDescriptor(T,R).enumerable}))),I.forEach(function(R){o(C,R,T[R])})}return C}({},E,_)))})}},{key:"layout",value:function(S,O){var A=this.diagram,E=A.getGraph(),_=this.satelliteCache,C=S.getBBox(),k=C.centerX,T=C.centerY,I=A.getZoom(),R=u.orbitGap/I,F=_.filter(function(Q){return Q.isVisible()}),j=[O.x-k,O.y-T],B=h.length(j),H=C.width/2+R,et=h.scale([],j,H/B);F.forEach(function(Q){var J=Q.getDOM(),K=J.width()/2,nt=E.getDomPoint({x:et[0]+k,y:et[1]+T});J.css({top:nt.y-K+"px",left:nt.x-K+"px"})})}},{key:"show",value:function(S){this.satelliteCache.forEach(function(O){O.enable()&&(O.item=S,O.show())})}},{key:"hide",value:function(){this.satelliteCache.forEach(function(S){S.hide()})}}])&&n(b.prototype,w),P&&n(b,P),m}();f.exports=v},function(f,p,l){var i=l(23);i.forkAndLink=l(71),f.exports=i},function(f,p,l){function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(s)}function o(s,h,d){return h in s?Object.defineProperty(s,h,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[h]=d,s}function n(s,h){for(var d=0;d<h.length;d++){var v=h[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(s,v.key,v)}}function t(s,h){return!h||i(h)!=="object"&&typeof h!="function"?function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(s):h}function e(s){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(s)}function r(s,h){return(r=Object.setPrototypeOf||function(d,v){return d.__proto__=v,d})(s,h)}var a=l(23),u=l(2),c=function(s){function h(){return function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}(this,h),t(this,e(h).apply(this,arguments))}var d,v,y;return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),b&&r(m,b)}(h,a),d=h,(v=[{key:"getDefaultCfg",value:function(){return{name:"forkAndLink",render:function(){return`
|
|
<div style="
|
|
width: 11px;
|
|
height: 11px;
|
|
cursor: copy;
|
|
background-image: url(https://gw.alipayobjects.com/zos/rmsportal/yWAiQOmucbYMCpwkvTBP.svg)
|
|
"></div>
|
|
`},bindEvent:function(m,b){var w=this,P=b.getGraph(),S=P.getRootGroup();return m.setAttribute("draggable","true"),[u.addEventListener(m,"dragstart",function(){var O=w.item,A=function(C){for(var k=1;k<arguments.length;k++){var T=arguments[k]!=null?arguments[k]:{},I=Object.keys(T);typeof Object.getOwnPropertySymbols=="function"&&(I=I.concat(Object.getOwnPropertySymbols(T).filter(function(R){return Object.getOwnPropertyDescriptor(T,R).enumerable}))),I.forEach(function(R){o(C,R,T[R])})}return C}({},b.get("addEdgeModel"),{source:O.id}),E=O.getBBox(),_=b.getDelegation([{isEdge:!0}],S);b.setSignal("dragEdge",!0),b.beginAdd("edge",A),b.set("addEdgeConfig",{addModel:A,delegation:_,startPoint:{x:E.centerX,y:E.centerY},sourceItem:O}),m.hide()}),u.addEventListener(m,"click",function(O){var A=O.clientX,E=O.clientY,_=b.editor,C=w.item,k=P.getPointByClient({x:A,y:E}),T=C.getBBox(),I=C.getModel(),R=[k.x-T.centerX,k.y-T.centerY],F=u.vec2.length(R);if(u.vec2.scale(R,R,160/F),_)_.executeCommand("copyAdjacent",{copyNode:C,x:k.x+R[0],y:k.y+R[1]});else{var j=u.clone(I);j.x=k.x+R[0],j.y=k.y+R[1],P.add(C.type,j)}})]}}}}])&&n(d.prototype,v),y&&n(d,y),h}();f.exports=c},function(f,p,l){var i=l(2),o=l(5),n={};function t(e){e.controlPointShapes&&i.each(e.controlPointShapes,function(r){r.remove()}),e.controlPointShapes=[],e.isControlPointShow=!1}n.INIT="_initResize",n.CFG={nodeResizeable:!1,edgeResizeable:!0},n.AUGMENT={_initResize:function(){var e=this,r=this.get("_graph"),a=this.get("nodeResizeable"),u=this.get("edgeResizeable");a&&r.on("afteritemdraw",function(c){c.item.type==="node"&&c.item.isVisible()&&e.drawControlPoints(c.item)}),u&&r.on("afteritemdraw",function(c){c.item.type==="edge"&&c.item.isVisible()&&e.drawControlPoints(c.item)}),r.on("afteritemhide",function(c){var s;c.item.isControlPointShow&&((s=c.item).controlPointShapes&&i.each(s.controlPointShapes,function(h){h.hide()}),s.isControlPointShow=!1)}),r.on("afteritemshow",function(c){var s;!c.item.isControlPointShow&&((s=c.item).controlPointShapes&&i.each(s.controlPointShapes,function(h){h.show()}),s.isControlPointShow=!0)}),r.on("beforeitemdestroy",function(c){c.item.isControlPointShow&&t(c.item)})},drawControlPoints:function(e){var r,a,u,c,s,h,d,v,y,m=this.get("_graph").getRootGroup(),b=this.get("nodeResizeable"),w=this.get("edgeResizeable");e.type==="node"?b&&function(P,S){var O=P.getBBox(),A=[{x:O.minX,y:O.minY},{x:O.maxX,y:O.minY},{x:O.minX,y:O.maxY},{x:O.maxX,y:O.maxY}];t(P);var E=S.addShape("rect",{attrs:i.mix({},o.nodeSelectedBoxStyle,{symbol:"square",x:O.minX,y:O.minY,width:O.maxX-O.minX,height:O.maxY-O.minY})});P.controlPointShapes.push(E),i.each(A,function(_){var C=S.addShape("marker",{attrs:i.mix({},o.nodeControlPointStyle,{symbol:"square",x:_.x,y:_.y}),freezePoint:{x:_.x,y:_.y},item:P});P.controlPointShapes.push(C)})}(e,m):e.type==="edge"&&w&&(a=m,u=(r=e).getKeyShape().attr("path"),c=u[0],s=c.length,h=u[u.length-1],d=h.length,v=[{x:c[s-2],y:c[s-1]},{x:h[d-2],y:h[d-1]}],y=r.getModel(),t(r),i.each(v,function(P,S){var O=a.addShape("marker",{attrs:i.mix({},o.edgeControlPointStyle,{x:P.x,y:P.y}),freezePoint:{x:P.x,y:P.y},item:r});O.eventPreFix="edgeControlPoint",O.getSourcePoint=function(){return v[0]},O.getTargetPoint=function(){return v[v.length-1]},O.getItem=function(){return r},O.isSourceEndPoint=function(){return y.source&&S===0},O.isTargetEndPoint=function(){return y.target&&S===v.length-1},r.controlPointShapes.push(O)})),e.isControlPointShow=!0}},f.exports=n},function(f,p,l){function i(e){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{},u=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(u=u.concat(Object.getOwnPropertySymbols(a).filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable}))),u.forEach(function(c){o(e,c,a[c])})}return e}function o(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var n=l(2),t={};t.AUGMENT={addOutterShape:function(e,r){this.clearOutterShape(e);var a=r.lineWidth,u=e.getKeyShape(),c=e.getGraphicGroup(),s=u.attr(),h=u.get("type"),d=u.attr("lineWidth"),v=n.clone(s);delete v.fillStyle,delete v.strokeStyle,delete v.matrix;var y=c.addShape(h,{attrs:i({},v,{fill:null},r)});n.toBack(y,c);var m=y.getBBox(),b=m.maxX-m.minX,w=m.maxY-m.minY,P=(m.minX+m.maxX)/2,S=(m.minY+m.maxY)/2;y.transform([["t",-P,-S],["s",(a+b+d)/b,(a+w+d)/w],["t",P,S]]),y.isOutter=!0,e.outterShape=y},clearOutterShape:function(e){e.outterShape&&e.outterShape.remove()}},f.exports=t},function(f,p){var l={CFG:{linkNode:!0,linkAnchor:!0},INIT:"_initLink",AUGMENT:{_initLink:function(){var i=this,o=this.getGraph(),n=this.get("linkAnchor"),t=this.get("linkNode"),e=o.get("mode");n&&(this.on("beforeitemactived",function(r){var a=r.item;a.isNode&&i.hoverShowAnchor(a)}),this.on("beforeitemunactived",function(r){var a=r.item;(a.isNode||a.isGroup)&&i.clearAnchor(a)}),this.on("beforeitemselected",function(r){var a=r.item;(a.isNode||a.isGroup)&&i.hoverShowAnchor(a)}),this.on("beforeitemunselected",function(r){var a=r.item;(a.isNode||a.isGroup)&&i.clearAnchor(a)}),o.addBehaviour("dragAnchorAddEdge","add"),o.addBehaviour("hoverAnchorActived","default"),o.changeMode(e)),t&&(o.addBehaviour("hoverNodeAddOutter","add"),o.addBehaviour("hoverNodeAddOutter","default"),o.changeMode(e))}}};f.exports=l},function(f,p,l){l(76),l(77),l(78),l(79)},function(f,p,l){function i(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{},c=Object.keys(u);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(u).filter(function(s){return Object.getOwnPropertyDescriptor(u,s).enumerable}))),c.forEach(function(s){o(r,s,u[s])})}return r}function o(r,a,u){return a in r?Object.defineProperty(r,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[a]=u,r}var n=l(13),t=l(2),e=l(5);n.registerNode("diagram-base",{getSize:function(r){var a=r.getModel();return t.getNodeSize(a.size)},defaultFillPalette:0,defaultStrokePalette:3,activedFillPalette:0,activedStrokePalette:5,selectedFillPalette:2,selectedStrokePalette:5,getDefaulStyle:function(){return e.nodeStyle},getDefaulActivedStyle:function(){return e.nodeActivedStyle},getDefaulSelectedtyle:function(){return e.nodeSelectedStyle},getStyle:function(r){var a,u,c=r.getModel(),s=c.color;if(s){var h=t.Palettes.generate(s);a=h[this.defaultFillPalette],u=h[this.defaultStrokePalette]}return t.mix(!0,{},this.getDefaulStyle(),{fill:a,stroke:u},c.style)},getPath:function(r){var a=this.getSize(r),u=this.getStyle(r);return t.getRectPath(-a[0]/2,-a[1]/2,a[0],a[1],u.radius)},getActivedOutterStyle:function(){return e.nodeActivedOutterStyle},getActivedStyle:function(r){var a=r.getModel(),u=this.getDefaulActivedStyle(r),c=a.color;if(c){var s=t.Palettes.generate(c);return i({},u,{fill:s[this.activedFillPalette],stroke:s[this.activedStrokePalette]})}return u},getSelectedStyle:function(r){var a=r.getModel(),u=this.getDefaulSelectedtyle(r),c=a.color;if(c){var s=t.Palettes.generate(c);return i({},u,{fill:s[this.selectedFillPalette],stroke:s[this.selectedStrokePalette]})}return u},getSelectedOutterStyle:function(r){var a=r.getModel().color;if(a){var u=t.Palettes.generate(a);return i({},e.nodeSelectedOutterStyle,{stroke:u[1],fill:u[1]})}return e.nodeSelectedOutterStyle},anchor:[[.5,0],[1,.5],[.5,1],[0,.5]]}),n.registerNode("capsule",{getPath:function(r){var a=this.getSize(r);return t.getRectPath(-a[0]/2,-a[1]/2,a[0],a[1],a[1]/2)}}),n.registerNode("circle",{getPath:function(r){var a=this.getSize(r),u=a[0],c=a[1];return t.getEllipsePath(0,0,u/2,c/2)}}),n.registerNode("rhombus",{getPath:function(r){var a=this.getSize(r),u=a[0],c=a[1],s=[{x:0,y:0-c/2},{x:0+u/2,y:0},{x:0,y:0+c/2},{x:0-u/2,y:0},{x:0,y:0-c/2}];return t.pointsToPolygon(s)}})},function(f,p,l){var i=l(13),o=l(2),n=l(5);i.registerEdge("diagram-base",{getPath:function(t){var e=t.getPoints(),r=t.getSource(),a=t.getTarget();return this.getPathByPoints({points:e,source:r,target:a,item:t})},getPathByPoints:function(t){var e=t.points;return o.pointsToPolygon(e)},getStyle:function(t){var e=t.getModel();return o.mix(!0,{},n.edgeStyle,{stroke:e.color},e.style)},getActivedStyle:function(){return n.edgeActivedStyle},getSelectedStyle:function(){return n.edgeSelectedStyle},getActivedOutterStyle:function(){},getSelectedOutterStyle:function(){}})},function(f,p,l){function i(_){for(var C=1;C<arguments.length;C++){var k=arguments[C]!=null?arguments[C]:{},T=Object.keys(k);typeof Object.getOwnPropertySymbols=="function"&&(T=T.concat(Object.getOwnPropertySymbols(k).filter(function(I){return Object.getOwnPropertyDescriptor(k,I).enumerable}))),T.forEach(function(I){o(_,I,k[I])})}return _}function o(_,C,k){return C in _?Object.defineProperty(_,C,{value:k,enumerable:!0,configurable:!0,writable:!0}):_[C]=k,_}var n=l(13),t=l(5),e=l(2),r=e.getGroupIconPath(),a=e.getCollapsedButtonPath(),u=e.getExpandedButtonPath(),c={fill:"#CED4D9"},s={stroke:"#697B8C",fill:"#fff",fillOpacity:0},h={stroke:"#697B8C",fill:"#fff",fillOpacity:0},d={fill:"#000000",textBaseline:"top",textAlign:"left"},v={stroke:"#CED4D9",fill:"#F2F4F5",radius:4},y=t.groupBackgroundPadding,m=40,b=13,w=12,P=12,S=8,O=12,A=184-y[1]-y[3],E=40-y[0]-y[2];n.registerGroup("diagram-base",{draw:function(_){var C=_.getModel(),k=_.getGraphicGroup(),T=_.getChildrenBBox(),I=this.getStyle(_),R=C.collapsed,F=C.padding?C.padding:y;if(T.minX===1/0&&(T.minX=C.x,T.maxX=C.x+A,T.minY=C.y,T.maxY=C.y+E),R&&(T.minX=T.maxX-A,T.maxY=T.minY+E),T.maxX-T.minX<A){var j=A-T.maxX+T.minX;T.minX-=j/2,T.maxX+=j/2}var B=function(K,nt){return K.minX-nt[3]}(T,F),H=function(K,nt){return K.minY-nt[0]}(T,F),et=function(K,nt){return K.maxX-K.minX+nt[3]+nt[1]}(T,F),Q=function(K,nt){return K.maxY-K.minY+nt[0]+nt[2]}(T,F),J=function(K,nt,st,V){var tt=nt.addShape("path",{attrs:i({},V,{path:st})});return tt.isGroupKeyShape=!0,tt}(0,k,e.getRectPath(B,H,et,Q,I.radius),I);return function(K,nt,st,V){var tt=e.mix(!0,{},d,{x:st+m,y:V+b});e.isString(K)?tt.text=K:e.mix(tt,K),nt.addShape("text",{attrs:tt})}(e.isNil(C.label)?"\u65B0\u5EFA\u5206\u7EC4":C.label,k,B,H),function(K,nt,st,V){var tt=nt.addShape("path",{attrs:i({path:K},c)}),$=tt.getBBox();tt.translate(st-$.minX+S,V-$.minY+O)}(e.isNil(C.icon)?r:C.icon,k,B,H),function(K,nt,st,V,tt){var $;if(K){var ot=($=nt.addShape("path",{attrs:i({path:u},h)})).getBBox(),Y=ot.maxX-ot.minX;$.isExpandedButton=!0,$.translate(st+tt-ot.minX-Y-P,V-ot.minY+w)}else{var L=($=nt.addShape("path",{attrs:i({path:a},s)})).getBBox(),D=L.maxX-L.minX;$.isCollapsedButton=!0,$.translate(st+tt-L.minX-D-P,V-L.minY+w)}return $.isButton=!0,$}(R,k,B,H,et).item=_,C.x=T.minX,C.y=T.minY,J},getStyle:function(_){var C=_.getModel();return e.mix(!0,{},v,{fill:C.color,stroke:C.color},C.style)},getActivedStyle:function(){return t.groupActivedStyle},getSelectedStyle:function(){return t.groupSelectedStyle},getSelectedOutterStyle:function(){return t.groupSelectedOutterStyle},getActivedOutterStyle:function(){},intersectBox:"rect"})},function(f,p,l){l(13).registerGuide("diagram-base")},function(f,p,l){l(81),l(82),l(83),l(84),l(85),l(86),l(87),l(88),l(89),l(90),l(91),l(92),l(93),l(94)},function(f,p,l){var i=l(1),o=l(2);i.registerBehaviour("panItem",function(n){var t=n.getGraph();t.behaviourOn("drop",function(){var e=n.get("panItems");if(e){var r=e[0],a=e.map(function(m){return m.id}),u=n.get("panItemDelegation"),c=n.get("panItemStartBox"),s=r.id,h=u.attr("x")-c.minX,d=u.attr("y")-c.minY;t.emit("afterpanitemdrop",{panItems:e}),n.clearAlignLine();var v=n.editor;t.emit("panitemend"),!v||n.getSignal("dragaddnodetogroup")?y():v.executeCommand(y)}function y(){a.forEach(function(m){var b=t.find(m),w=b.getModel();b.isGroup?o.panGroup(b,h,d,t):(t.update(b,{x:w.x+h,y:w.y+d}),t.toFront(b))}),a.length===1&&(n.clearSelected(),n.setSelected(s,!0))}})},["startPanItem","processPanItem","endPanItem"])},function(f,p,l){function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=l(1),n=l(5);o.registerBehaviour("hoverAnchorActived",function(t){var e=t.getGraph();e.behaviourOn("anchor:mouseenter",function(r){if(!t.getSignal("panningItem")&&!t.getSignal("dragEdge")){var a=r.shape,u=a.getItem(),c=u.getModel(),s=function(d){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{},m=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(m=m.concat(Object.getOwnPropertySymbols(y).filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable}))),m.forEach(function(b){i(d,b,y[b])})}return d}({},t.get("addEdgeModel"),{source:c.id}),h={anchor:a.getPoint(),item:u};t.emit("hoveranchor:beforeaddedge",h),h.cancel?t.css({cursor:n.cursor.hoverUnEffectiveAnchor}):(t.css({cursor:n.cursor.hoverEffectiveAnchor}),!a.get("destroyed")&&a.setActived(),t.beginAdd("edge",s),e.draw())}}),e.behaviourOn("anchor:mouseleave",function(r){if(!t.getSignal("dragEdge")&&!t.getSignal("panningItem")){var a=r.shape,u=a.getItem();t.css({cursor:n.cursor.beforePanCanvas}),u.isSelected||(t.clearAnchor(u),t.setActived(u,!1)),!a.get("destroyed")&&a.clearActived(),t.cancelAdd(),e.draw()}})})},function(f,p,l){var i=l(1),o=l(5);i.registerBehaviour("hoverEdgeControlPoint",function(n){n.getGraph().behaviourOn("edgeControlPoint:mouseenter",function(t){if(!n.getSignal("dragEdge")&&!n.getSignal("panningItem")){var e=t.shape;(e.isTargetEndPoint()||e.isSourceEndPoint())&&n.css({cursor:o.cursor.hoverEdgeControllPoint})}})})},function(f,p,l){var i=l(1),o=l(5),n=l(2);i.registerBehaviour("dragEdgeControlPoint",function(t){var e,r,a,u,c,s,h,d,v,y,m=t.getGraph(),b=m.getRootGroup();function w(P){if(a){var S={};m.getNodes().forEach(function(_){t.clearAnchor(_)}),t.css({cursor:o.cursor.beforePanCanvas}),a.remove();var O=n.dropUpdateEdge({ev:P,endPointType:e?"target":"source",model:S,diagram:t});m.show(v);var A=v.id;if(O){var E=t.editor;E?E.executeCommand("update",{itemId:A,updateModel:S}):m.update(A,S)}t.setSignal("dragEdge",!1),e=void 0,r=void 0,a=void 0,u=void 0,c=void 0,s=void 0,h=void 0,d=void 0,v=void 0,y=void 0}}m.behaviourOn("edgeControlPoint:mousedown",function(P){if(P.button!==2){var S=P.shape;S.isTargetEndPoint()?(v=S.getItem(),y=v.getModel(),e=S,u=S.getSourcePoint(),c=v.getSource(),h=y.sourceAnchor):S.isSourceEndPoint()&&(v=S.getItem(),y=v.getModel(),r=S,u=S.getTargetPoint(),s=v.getTarget(),d=y.targetAnchor),v&&(a=t.getDelegation([v],b),c?t.dragEdgeBeforeShowAnchor(c,h,"target"):s&&t.dragEdgeBeforeShowAnchor(s,d,"source"),m.hide(v),t.setSignal("dragEdge",!0))}}),m.behaviourOn("mousemove",function(P){a&&n.dragingEdgeEndPoint({endPointType:c?"target":"source",edgeModel:y,graph:m,delegation:a,startPoint:u,ev:P,originSource:c,originTarget:s})}),m.behaviourOn("edgeControlPoint:mouseleave",function(P){e||r||P.toShape||t.css({cursor:o.cursor.beforePanCanvas})}),m.behaviourOn("mouseup",w),m.behaviourOn("canvas:mouseleave",w)},["dragHoverAnchorHotspot"])},function(f,p,l){var i=l(1),o=l(2);i.registerBehaviour("dragPanelItemAddNode",function(n){var t,e,r,a,u,c=n.getGraph(),s=c.getRootGroup();function h(){n.setSignal("panningItem",!1),n.set("panItemDelegation",void 0),n.set("panItemStartBox",void 0),n.set("panItemStartPoint",void 0),e=void 0,r=void 0,a=void 0,u=void 0}c.behaviourOn("canvas:mouseenter",function(d){if(!e&&(a=n.get("addType"),u=n.get("addModel"),u=o.clone(u),a==="node")){var v=(r=o.getNodeSize(u.size))[0]/2,y=r[1]/2;t={minX:d.x-v,minY:d.y-y,maxX:d.x+v,maxY:d.y+y,width:r[0],height:r[1]},e=n.getDelegation([t],s),n.setSignal("panningItem",!0),n.set("panItemDelegation",e),n.set("panItemStartBox",t),n.set("panItemStartPoint",{x:d.x,y:d.y})}}),c.behaviourOn("mouseup",function(d){if(e){u.x=d.x,u.y=d.y;var v=a;o.setId(u);var y=n.editor;e.remove(),n.endAdd(),n.clearAlignLine(),n.clearSelected(),n.focusGraphWrapper(),y?y.executeCommand("add",{type:"node",addModel:u}):c.add(v,u),n.setSelected(c.find(u.id),!0),h()}}),c.behaviourOn("canvas:mouseleave",function(){e&&(n.clearAlignLine(),e.remove(),c.draw(),n.cancelAdd(),h())})},["processPanItem"])},function(f,p,l){l(1).registerBehaviour("dragHoverAnchorHotspot",function(i){var o=i.getGraph();o.behaviourOn("anchor:dragenter",function(n){if(i.getSignal("dragEdge")){var t=n.shape;i.setHotspotActived(t,!0)}}),o.behaviourOn("anchor:dragleave",function(n){if(i.getSignal("dragEdge")){var t=n.shape;i.setHotspotActived(t,!1)}})})},function(f,p,l){var i=l(1),o=l(2);i.registerBehaviour("dragAnchorAddEdge",function(n){var t=n.getGraph(),e=t.getRootGroup();t.behaviourOn("anchor:dragstart",function(r){if(r.button!==2){var a=r.shape,u=a.get("freezePoint"),c=a.getItem(),s=o.clone(n.get("addModel")),h=a.getIndex();s.source=c.id,s.sourceAnchor=h;var d={x:u.x,y:u.y},v=n.getDelegation([{isEdge:!0}],e);n.setSignal("dragEdge",!0),n.dragEdgeBeforeShowAnchor(c,h,"target"),n.set("addEdgeConfig",{addModel:s,delegation:v,startPoint:d,sourceItem:c})}})},["processAddEdge","dragHoverAnchorHotspot","hoverAnchorActived"])},function(f,p,l){var i=l(1),o=l(5);i.registerBehaviour("dragMultiSelect",function(n){var t,e,r=n.getGraph(),a=r.getRootGroup();function u(){n.css({cursor:o.cursor.beforePanCanvas}),t=void 0,e=void 0}n.css({cursor:o.cursor.multiSelect}),r.behaviourOn("dragstart",function(c){c.button!==2&&(t={x:c.x,y:c.y},e=a.addShape("rect",{attrs:o.multiSelectRectStyle}))}),r.behaviourOn("drag",function(c){e&&(e.attr({x:Math.min(t.x,c.x),y:Math.min(t.y,c.y),width:Math.abs(c.x-t.x),height:Math.abs(c.y-t.y)}),r.draw())}),r.behaviourOn("dragend",function(){if(e){var c=r.getNodes().map(function(v){return v.id}),s=e.getBBox(),h=n.editor;h?h.executeCommand(d):d(),e.remove(),n.changeMode("default"),n.updateStatus(),r.draw(),u()}function d(){n.clearSelected(),c.forEach(function(v){var y=r.find(v),m=y.getBBox();m.minX>s.minX&&m.minY>s.minY&&m.maxX<s.maxX&&m.maxY<s.maxY&&n.setSelected(y,!0)})}}),r.behaviourOn("canvas:mouseleave",function(){e&&(e.remove(),r.draw(),u())})})},function(f,p,l){l(1).registerBehaviour("keydownShiftMultiSelected",function(i){var o=i.getGraph();o.behaviourOn("keydown",function(n){n.domEvent.shiftKey&&i.setSignal("shiftKeyDown",!0)}),o.behaviourOn("keyup",function(n){n.domEvent.shiftKey||i.setSignal("shiftKeyDown",!1)})})},function(f,p,l){var i=l(1),o=l(5);i.registerBehaviour("dragNodeAddToGroup",function(n){var t,e,r=n.getGraph();function a(){n.setSignal("dragaddnodetogroup",!1),t=void 0,e=void 0}r.behaviourOn("dragenter",function(u){if(n.getSignal("panningItem")){var c=n.get("panItems");c[0]&&c[0].isNode&&c.length===1&&u.item&&u.item.isGroup&&c[0].getParent()!==u.item&&(t=c[0],e=u.item,r.update(e,{padding:o.groupBackgroundPadding.map(function(s){return s+4}),style:o.dragNodeHoverToGroupStyle}))}}),r.behaviourOn("dragleave",function(){e&&t&&r.update(e,{padding:void 0,style:void 0})}),r.behaviourOn("drop",function(u){if(e&&t&&e===u.item){n.setSignal("dragaddnodetogroup",!0);var c=t.id,s=e.id;r.update(s,{padding:void 0,style:void 0,collapsed:!1});var h=n.editor;h?h.executeCommand(d):d()}function d(){r.update(c,{parent:s})}}),r.behaviourOn("dragend",function(){a()}),r.behaviourOn("canvas:mouseleave",function(){e&&(r.update(e,{padding:void 0,style:void 0}),a())})})},function(f,p,l){var i=l(1),o=l(5),n=l(2);i.registerBehaviour("dragOutFromGroup",function(t){var e,r,a,u=t.getGraph(),c=!1;function s(){clearTimeout(a),r&&u.update(r,{padding:void 0,style:void 0}),c=!1,e=void 0,r=void 0}u.behaviourOn("drag",function(h){t.getSignal("panningItem")&&!c&&(clearTimeout(a),a=setTimeout(function(){var d=t.get("panItems");if(d){if(e=d[0],r=d[0].getParent(),e&&d.length===1&&r&&!h.shape){var v=t.get("panItemDelegation").getBBox(),y=r.getBBox();n.rectRectCrossAlgorithm(v,y)&&(u.update(r,{padding:o.groupBackgroundPadding.map(function(m){return m-8}),style:o.dragNodeLeaveFromGroupStyle}),c=!0)}c||(e=void 0,r=void 0)}},o.outFromGroupDelayTime))}),u.behaviourOn("dragenter",function(h){e&&r&&(r===h.item&&u.update(r,{padding:o.groupBackgroundPadding.map(function(d){return d+4}),style:o.dragNodeHoverToGroupStyle}),c=!1)}),u.on("drop",function(h){r&&e&&!h.shape&&(u.update(e,{parent:void 0}),u.update(r,{style:void 0}),s())}),u.on("dragend",function(){s()}),u.behaviourOn("canvas:mouseleave",function(){s()})})},function(f,p,l){var i=l(1),o=l(2),n=l(5);i.registerBehaviour("processAddEdge",function(t){var e=t.getGraph();function r(){t.setSignal("dragEdge",!1),t.set("addEdgeConfig",{addModel:void 0,delegation:void 0,startPoint:void 0,sourceItem:void 0})}e.behaviourOn("mousemove",function(a){var u=t.get("addEdgeConfig");if(u){var c=u.addModel,s=u.delegation,h=u.startPoint,d=u.sourceItem;s&&o.dragingEdgeEndPoint({endPointType:"target",edgeModel:c,graph:e,delegation:s,startPoint:h,ev:a,sourceItem:d})}}),e.behaviourOn("mouseup",function(a){var u=t.get("addEdgeConfig");if(u){var c=u.addModel,s=u.delegation,h=u.sourceItem,d=t.editor;s&&(e.getNodes().forEach(function(v){t.clearAnchor(v)}),t.clearAnchor(h),t.setActived(h,!1),t.setSelected(h,!1),t.css({cursor:n.cursor.beforePanCanvas}),s.remove(),o.dropUpdateEdge({ev:a,endPointType:"target",model:c,diagram:t})&&(d?d.executeCommand("add",{type:"edge",addModel:c}):e.add("edge",c)),e.draw(),t.endAdd()),r()}}),e.behaviourOn("canvas:mouseleave",function(){var a=t.get("addEdgeConfig");if(a){var u=a.delegation,c=a.sourceItem;u&&(e.getNodes().forEach(function(s){t.clearAnchor(s)}),t.setActived(c,!1),t.clearAnchor(c),u.remove(),t.cancelAdd(),e.draw()),r()}})})},function(f,p,l){l(1).registerBehaviour("hoverNodeAddOutter",function(i){var o,n=i.getGraph();n.behaviourOn("node:mouseenter",function(t){var e=t.item;i.getSignal("dragEdge")&&(o=e,i.addOutterShape(e,{stroke:"#52C41A",strokeOpacity:.45,lineWidth:4}))}),n.behaviourOn("node:mouseleave",function(){o&&i.clearOutterShape(o)}),n.behaviourOn("beforedropedge",function(){o&&i.clearOutterShape(o)})})},function(f,p,l){var i=l(1),o=l(5),n=l(2);i.registerBehaviour("orbit",function(t){var e,r=t.getGraph();r.behaviourOn("beforepanitem",function(){t.hideOrbit()}),r.behaviourOn("node:mouseenter",function(a){var u=a.item;t.getSignal("panningItem")||t.getSignal("dragEdge")||(e=u,t.showOrbit(u))}),r.on("beforeviewportchange",function(){t.hideOrbit()}),r.behaviourOn("mousemove",function(a){var u=a.item,c=a.x,s=a.y;if(e){var h=e.getBBox(),d=n.euclideanDistance.pointPoint({x:h.centerX,y:h.centerY},{x:c,y:s}),v=r.getMatrix()[0];u!==e&&d>h.width/2+o.orbitGap/v&&(t.hideOrbit(),e=void 0),e&&t.layoutOrbit(e,{x:c,y:s})}})})},function(f,p,l){var i=l(11);l(96),f.exports=i},function(f,p,l){l(97),l(98),l(99),l(100),l(101)},function(f,p,l){var i=l(11);i.registerNode("flow-base",{}),i.registerNode("flow-html",{},["html"]),i.registerNode("flow-rect",{},"flow-base"),i.registerNode("flow-capsule",{},"capsule"),i.registerNode("flow-circle",{},"circle"),i.registerNode("flow-rhombus",{},"rhombus")},function(f,p,l){l(11).registerEdge("flow-base",{})},function(f,p,l){var i=l(19),o=l(11);function n(u,c,s,h){var d=h?h/2:30,v=h;if(u<=c&&c<=s||u>=c&&c>=s){var y=(s-c)/2,m=Math.abs(y);if(y===0)return u===c?0:(c-u)/Math.abs(c-u)*d;if(m>v){var b=y/m*v;return Math.abs(b)<d?y/m*d:b}return m<d?y/m*d:y}var w=d;return(w=Math.abs(c-s)<2*Math.abs(c-u)?h*Math.abs(c-s)/(2*Math.abs(c-u)):h)>v&&(w=v),w<d&&(w=d),c>u?w:-w}function t(u,c,s,h){var d,v,y=u.bbox,m=function(w,P){var S=Math.abs(w.x-P.centerX),O=Math.abs(w.y-P.centerY);return S/P.width>O/P.height}(c,y);d=v=0;var b=Math.min(y.height,y.width);return h&&h.bbox&&(b=Math.min(b,h.bbox.height,h.bbox.width)),m?d=n(y.centerX,c.x,s.x,b):v=n(y.centerY,c.y,s.y,b),{x:c.x+d,y:c.y+v}}var e=.1;function r(u,c){var s=u.x,h=u.y,d=c.x,v=c.y;return{x:s+(d-s)*e,y:h+(v-h)*e}}function a(u,c,s){var h=u[0],d=u[u.length-1],v=["M",h.x,h.y],y=function(w,P,S,O){return[S&&S.bbox?t(S,w,P,O):r(w,P),O&&O.bbox?t(O,P,w,S):r(P,w)]}(h,d,c,s),m=["C"],b=[v];return i.each(y,function(w){m.push(w.x,w.y)}),m.push(d.x,d.y),b.push(m),b}o.registerEdge("flow-smooth",{getPathByPoints:function(u){return a(u.points,u.source,u.target)}},"flow-edge")},function(f,p,l){function i(C){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(C)}function o(C,k){return function(T){if(Array.isArray(T))return T}(C)||function(T,I){var R=[],F=!0,j=!1,B=void 0;try{for(var H,et=T[Symbol.iterator]();!(F=(H=et.next()).done)&&(R.push(H.value),!I||R.length!==I);F=!0);}catch(Q){j=!0,B=Q}finally{try{F||et.return==null||et.return()}finally{if(j)throw B}}return R}(C,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var n=l(19),t=l(11),e=16,r=5;function a(C,k){var T=Math.min(C.minX,k.minX),I=Math.min(C.minY,k.minY),R=Math.max(C.maxX,k.maxX),F=Math.max(C.maxY,k.maxY);return{centerX:(T+R)/2,centerY:(I+F)/2,minX:T,minY:I,maxX:R,maxY:F,height:F-I,width:R-T}}function u(C,k){return 2*Math.abs(C.centerX-k.centerX)<C.width+k.width&&2*Math.abs(C.centerY-k.centerY)<C.height+k.height}function c(C){var k=C.x,T=C.y;return{centerX:k,centerY:T,minX:k,minY:T,maxX:k,maxY:T,height:0,width:0}}function s(C,k){return C.width===0&&C.height===0?C:{centerX:C.centerX,centerY:C.centerY,minX:C.minX-k,minY:C.minY-k,maxX:C.maxX+k,maxY:C.maxY+k,height:C.height+2*k,width:C.width+2*k}}function h(C,k){return function(T,I){var R=Math.abs(T.x-I.centerX),F=Math.abs(T.y-I.centerY);return R/I.width>F/I.height}(k,C)?{x:k.x>C.centerX?C.maxX:C.minX,y:k.y}:{x:k.x,y:k.y>C.centerY?C.maxY:C.minY}}function d(C){var k=C.minX,T=C.minY,I=C.maxX,R=C.maxY;return[{x:k,y:T},{x:I,y:T},{x:I,y:R},{x:k,y:R}]}function v(C,k){var T=C.x,I=C.y;return T<k.minX||T>k.maxX||I<k.minY||I>k.maxY}function y(C,k,T,I){var R=k.x-C.x,F=k.y-C.y,j=I.x-T.x,B=I.y-T.y,H=(-F*(C.x-T.x)+R*(C.y-T.y))/(-j*F+R*B),et=(j*(C.y-T.y)-B*(C.x-T.x))/(-j*F+R*B);return H>=0&&H<=1&&et>=0&&et<=1}function m(C,k,T){if(T.width===T.height===0)return!1;var I=o(d(T),4),R=I[0],F=I[1],j=I[2],B=I[3];return y(C,k,R,F)||y(C,k,R,B)||y(C,k,F,j)||y(C,k,j,B)}function b(C){return C=P(C)}function w(C,k){return[C,{x:C.x,y:k.y},k]}function P(C){var k=[],T={};return C.forEach(function(I){var R=I.id="".concat(I.x,"-").concat(I.y);T[R]=I}),n.each(T,function(I){k.push(I)}),k}function S(C,k){return Math.abs(C.x-k.x)+Math.abs(C.y-k.y)}function O(C,k,T,I,R){return S(C,k)+S(C,T)+function(F,j){var B=0;return j.forEach(function(H){H&&(F.x===H.x&&(B+=-2),F.y===H.y&&(B+=-2))}),B}(C,[k,T,I,R])}function A(C,k,T,I,R,F,j){var B=[],H=[k],et={},Q={},J={};Q[k.id]=0,J[k.id]=O(k,T,k);var K={};C.forEach(function(V){K[V.id]=V});for(var nt=function(){var V,tt,$,ot=void 0,Y=1/0;if(H.forEach(function(D){J[D.id]<Y&&(Y=J[D.id],ot=D)}),ot===T){var L=[];return function D(G,U,X,q){var ut=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;G.unshift(U[q]),X[q]&&X[q]!==q&&ut<=100&&D(G,U,X,X[q],ut+1)}(L,K,et,T.id),{v:L}}tt=ot,($=(V=H).indexOf(tt))>-1&&V.splice($,1),B.push(ot),function(D,G,U,X){var q=[];return D.forEach(function(ut){ut!==G&&(ut.x!==G.x&&ut.y!==G.y||m(ut,G,U)||m(ut,G,X)||q.push(ut))}),P(q)}(C,ot,I,R).forEach(function(D){if(B.indexOf(D)===-1){H.indexOf(D)===-1&&H.push(D);var G=J[ot.id]+S(ot,D);Q[D.id]&&G>=Q[D.id]||(et[D.id]=ot.id,Q[D.id]=G,J[D.id]=Q[D.id]+O(D,T,k,F,j))}})};H.length;){var st=nt();if(i(st)==="object")return st.v}return console.error("cannot find path: ",C,k,T),[k,T]}function E(C,k,T,I,R){var F=T&&T.bbox?T.bbox:c(C),j=I&&I.bbox?I.bbox:c(k);if(u(F,j))return b(w(C,k));var B=s(F,R),H=s(j,R);if(u(B,H))return b(w(C,k));var et=h(B,C),Q=h(H,k),J=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ot=[],Y=[];$.forEach(function(X){ot.push(X.x),Y.push(X.y)});var L=Math.min.apply(Math,ot),D=Math.max.apply(Math,ot),G=Math.min.apply(Math,Y),U=Math.max.apply(Math,Y);return{centerX:(L+D)/2,centerY:(G+U)/2,maxX:D,maxY:U,minX:L,minY:G,height:U-G,width:D-L}}([et,Q]),K=(a(B,H),a(B,J)),nt=a(H,J),st=[];st=(st=st.concat(d(K))).concat(d(nt));var V={x:(C.x+k.x)/2,y:(C.y+k.y)/2};[J,K,nt].forEach(function($){st=st.concat(function(ot,Y){return function(L,D){return D<L.minX||D>L.maxX?[]:[{x:D,y:L.minY},{x:D,y:L.maxY}]}(ot,Y.x).concat(function(L,D){return D<L.minY||D>L.maxY?[]:[{x:L.minX,y:D},{x:L.maxX,y:D}]}(ot,Y.y))}($,V).filter(function(ot){return v(ot,B)&&v(ot,H)}))}),[{x:et.x,y:Q.y},{x:Q.x,y:et.y}].forEach(function($){v($,B)&&v($,H)&&st.push($)}),st.unshift(et),st.push(Q);var tt=A(st=P(st),et,Q,F,j,C,k);return tt.unshift(C),tt.push(k),b(tt)}function _(C,k){var T=[],I=C[0];return T.push("M".concat(I.x," ").concat(I.y)),C.forEach(function(R,F){var j=C[F+1],B=C[F+2];if(j&&B)if(function(J,K,nt){return!(J.x===K.x===nt.x||J.y===K.y===nt.y)}(R,j,B)){var H=o(function(J,K,nt,st){var V=S(J,K),tt=S(nt,K);return V<st&&(st=V),tt<st&&(st=tt),[{x:K.x-st/V*(K.x-J.x),y:K.y-st/V*(K.y-J.y)},{x:K.x-st/tt*(K.x-nt.x),y:K.y-st/tt*(K.y-nt.y)}]}(R,j,B,k),2),et=H[0],Q=H[1];T.push("L".concat(et.x," ").concat(et.y)),T.push("Q".concat(j.x," ").concat(j.y," ").concat(Q.x," ").concat(Q.y)),T.push("L".concat(Q.x," ").concat(Q.y))}else T.push("L".concat(j.x," ").concat(j.y));else j&&T.push("L".concat(j.x," ").concat(j.y))}),T.join("")}t.registerEdge("flow-polyline",{getPathByPoints:function(C){var k=C.points,T=C.source,I=C.target,R=e,F=E(k[0],k[k.length-1],T,I,R);return n.pointsToPolygon(F)}}),t.registerEdge("flow-polyline-round",{getPathByPoints:function(C){var k=C.points,T=C.source,I=C.target,R=e,F=r;return _(b(E(k[0],k[k.length-1],T,I,R)),F)}})},function(f,p,l){l(11).registerGroup("flow-base",{})},function(f,p,l){var i=l(17);l(103),f.exports=i},function(f,p,l){l(104),l(105),l(106)},function(f,p,l){l(17).registerNode("koni-base",{defaultFillPalette:5,defaultStrokePalette:5,activedFillPalette:4,activedStrokePalette:6,selectedFillPalette:5,selectedStrokePalette:6,anchor:null},"circle")},function(f,p,l){var i=l(17),o=l(24),n=o.vec2;i.registerEdge("koni-base",{getDefaultLabelRectPadding:function(){return o.toAllPadding([0,2])},getPathByPoints:function(t){var e=t.points,r=t.source,a=t.target,u=t.item;if(r&&a){var c=o.getParallelEdges(a,r),s=o.getParallelEdges(r,a),h=s.indexOf(u);return r===a?(h=(s=s.filter(function(d){var v=d.getModel();return v.source===r.id&&v.target===a.id})).indexOf(u),function(d,v){var y=d.getBBox(),m=[y.centerX,y.centerY],b=y.width/2,w=50*(v+1)+50,P=[m[0]-b/2,m[1]-Math.sqrt(3)/2*b],S=[P[0]-m[0],P[1]-m[1]],O=n.scale([],S,(b+w)/b),A=[m[0]+O[0],m[1]+O[1]],E=[m[0]+b/2,m[1]-Math.sqrt(3)/2*b],_=[E[0]-m[0],E[1]-m[1]],C=n.scale([],_,(b+w)/b),k=[m[0]+C[0],m[1]+C[1]];return[["M",P[0],P[1]],["C",A[0],A[1],k[0],k[1],E[0],E[1]]]}(r,h)):(c.length===0&&h--,function(d,v,y){var m=d.getBBox(),b=v.getBBox(),w=m.centerX,P=m.centerY,S=20*(y+1),O=[.5*(b.centerX+w)-w,.5*(b.centerY+P)-P],A=[-O[1],O[0]],E=n.length(A);n.scale(A,A,S/E);var _={x:O[0]+A[0]+w,y:O[1]+A[1]+P},C=d.getLinkPoints(_)[0],k=v.getLinkPoints(_)[0];return[["M",C.x,C.y],["Q",_.x,_.y,k.x,k.y]]}(r,a,h))}return o.pointsToPolygon(e)}})},function(f,p,l){l(17).registerGroup("koni-base",{})},function(f,p,l){var i=l(8);i.Util=l(10),l(108),l(112),l(120),f.exports=i},function(f,p,l){l(109),l(110),l(111)},function(f,p,l){var i=l(1),o=l(10);i.registerBehaviour("panMindNode",function(n){var t,e,r,a=n.getGraph();function u(){t.nth=e;var s=a.add("node",t);n.setSelected(s,!0),r&&a.remove(r.id)}function c(){a.emit("panitemend"),t=void 0,r=void 0,e=void 0}a.behaviourOn("beforeshowdelegation",function(){n.clearSelected(),n.clearActived()}),a.behaviourOn("node:dragstart",function(s){if(s.button!==2){var h=s.item;!(t=h.getModel()).parent||s.shape.isCollapsedButton||s.shape.isExpandedButton?c():(e=a.getNth(h),a.remove(h))}}),a.behaviourOn("itempanning",function(s){if(!s.shape||!s.shape.isPlaceholder){var h=n.getHotArea(s),d=n.getRoot();if(r&&(h?r.id!==h.id&&a.remove(a.find(r.id)):a.remove(a.find(r.id))),r=h,h){var v=h.parent;if(!a.find(h.id)){var y={id:h.id,parent:v.id,isPlaceholder:!0,parentModel:v,baseline:r.parent.id===d.id?"center":void 0,shape:"mind-placeholder",nth:h.nth};h.side&&(y.side=h.side),a.add("node",y)}}}}),a.behaviourOn("drop",function(){if(t)if(r){var s=o.clone(t);a.remove(r.id),n.executeCommand("moveMindNode",{model:s,newParentId:r.parent.id,newNth:r.nth,newSide:r.side,originParentId:t.parent,originNth:e,originSide:t.side})}else u();c()}),a.behaviourOn("canvas:mouseleave",function(){t&&(u(),c())})},["startPanItem","processPanItem","endPanItem"])},function(f,p,l){l(1).registerBehaviour("keydownMoveSelection",function(i){i.getGraph().on("keydown",function(o){i._moveItemSelection(o)})})},function(f,p,l){l(1).registerBehaviour("keydownEditLabel",function(i){i.getGraph().behaviourOn("keydown",function(o){i.showLabelEditor(o)})})},function(f,p,l){l(113),l(114),l(115),l(116),l(117),l(118),l(119)},function(f,p,l){function i(u){for(var c=1;c<arguments.length;c++){var s=arguments[c]!=null?arguments[c]:{},h=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(s).filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable}))),h.forEach(function(d){o(u,d,s[d])})}return u}function o(u,c,s){return c in u?Object.defineProperty(u,c,{value:s,enumerable:!0,configurable:!0,writable:!0}):u[c]=s,u}var n=l(8),t=l(10),e={fill:"#000",textAlign:"left",textBaseline:"top"},r={stroke:"#959EA6",strokeOpacity:0,fill:"#959EA6",cursor:"pointer"},a={stroke:"#434B54",fill:"#fff",cursor:"pointer"};n.registerNode("mind-base",{dy:4,afterDraw:function(u){var c=u.getModel();c.children&&c.children.length>0&&c.collapsed&&this.drawExpandedButton(u)},debugDrawLayoutPoint:function(u){var c=u.getModel();u.getGraphicGroup().addShape("circle",{attrs:{x:c.x,y:c.y,r:5,fill:"red"}})},drawExpandedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addGroup(),h=s.addShape("path",{attrs:i({path:t.getRectPath(0,0,16,7,3)},r)}),d=h.getBBox(),v=t.getMindNodeSide(u),y=this.getButtonPositon(c,d,v),m={fill:"white",r:1};s.addShape("circle",{attrs:i({},m,{x:4,y:3.5}),capture:!1}),s.addShape("circle",{attrs:i({},m,{x:8,y:3.5}),capture:!1}),s.addShape("circle",{attrs:i({},m,{x:12,y:3.5}),capture:!1}),h.attr("lineAppendWidth",20),s.translate(y.x,y.y),h.isExpandedButton=!0,h.isButton=!0},drawCollapsedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addShape("path",{attrs:i({path:t.getCollapsedButtonPath()},a)}),h=s.getBBox(),d=t.getMindNodeSide(u),v=this.getButtonPositon(c,h,d);s.translate(v.x,v.y),s.isCollapsedButton=!0,s.isButton=!0},getButtonPositon:function(u,c,s){return s==="right"?{x:u.maxX+2,y:u.maxY-(c.maxY-c.minY)/2}:{x:u.minX-(c.maxX-c.minX)-2,y:u.maxY-(c.maxY-c.minY)/2}},getLabel:function(u){return u.getModel().label},getPadding:function(){return[4,8,4,8]},getSize:function(u){var c=u.getModel(),s=u.getGraphicGroup(),h=c.size;if(c.size){if(t.isArray(h))return h;if(t.isNumber(h))return[h,h]}var d=s.findByClass("label")[0],v=this.getPadding(u),y=d.getBBox();return[y.width+v[1]+v[3],y.height+v[0]+v[2]]},getPath:function(u){var c=this.getSize(u),s=this.getStyle(u);return t.getRectPath(-c[0]/2,-c[1]/2+this.dy,c[0],c[1],s.radius)},drawLabel:function(u){var c=u.getGraphicGroup(),s=this.getLabel(u),h=this.getLabelStyle(u);s||(s=" ");var d=t.mix(!0,{},e,h,{x:0,y:0});t.isObject(s)?t.mix(d,s):d.text=s;var v=c.addShape("text",{class:"label",attrs:d});return this.adjustLabelText(v),this.adjustLabelPosition(u,v),v},adjustLabelText:function(u){var c=u.attr("text"),s=u.getBBox();if(s.maxX-s.minX>400){var h=u.attr("font");c=t.getLabelTextByTextLineWidth(c,h),u.attr("text",c)}},adjustLabelPosition:function(u,c){var s=this.getSize(u),h=this.getPadding(),d=s[0],v=c.getBBox();c.attr({x:-d/2+h[3],y:-v.height/2+this.dy})},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",lineHeight:18,fontSize:12}},getStyle:function(){return{fill:"#ccc",fillOpacity:0,radius:4,lineWidth:2}},getActivedStyle:function(){return{stroke:"#44C0FF",lineWidth:2}},getSelectedStyle:function(){return{stroke:"#1AA7EE",lineWidth:2}},anchor:[[0,1],[1,1]]})},function(f,p,l){l(8).registerNode("mind-first-sub",{dy:0,getPadding:function(){return[6,12,8,12]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontWeight:500,fontSize:14,lineHeight:20}}})},function(f,p,l){l(8).registerNode("mind-second-sub",{dy:0,getPadding:function(){return[8,4,8,4]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontSize:12,lineHeight:20}}})},function(f,p,l){var i=l(8),o=l(10);i.registerNode("mind-root",{adjustLabelPosition:function(n,t){var e=t.getBBox();t.attr({x:-e.width/2,y:-e.height/2-1})},getPath:function(n){var t=this.getSize(n),e=this.getStyle(n);return o.getRectPath(-t[0]/2,-t[1]/2,t[0],t[1],e.radius)},getButtonPositon:function(n,t,e){return e==="right"?{x:n.maxX+2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}:{x:n.minX-(t.maxX-t.minX)-2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}},getPadding:function(){return o.toAllPadding([12,24])},getStyle:function(){return{fill:"#587EF7",stroke:"#587EF7",fillOpacity:1,radius:4}},getLabelStyle:function(){return{fontSize:20,fill:"white",lineHeight:28}},drawExpandedButton:function(){},drawCollapsedButton:function(){},panAble:!1,anchor:[[.45,.5],[.55,.5]]},"mind-first-sub")},function(f,p,l){var i=l(8),o=l(10);i.registerNode("mind-placeholder",{afterDraw:function(n){n.getKeyShape().isPlaceholder=!0},getPath:function(n){var t,e=n.getModel().parentModel,r=this.getStyle(n),a=0;return e.hierarchy<=2?t=28:(t=20,a=4),o.getRectPath(-27.5,-t/2+a,55,t,r.radius)},getStyle:function(){return{fill:"#91D5FF",radius:4,lineWidth:3}},drawExpandedButton:function(){},drawCollapsedButton:function(){},anchor:function(){return[[0,1],[1,1]]}})},function(f,p,l){l(8).registerEdge("mind-edge",{getEdetal:function(i){return i.children&&i.children.length>0&&!i.collapsed?i.hierarchy===2?24:18:0},getPath:function(i){var o=i.getPoints(),n=i.getSource(),t=i.getTarget(),e=n.getBBox(),r=t.getBBox(),a=t.getModel(),u=14,c=4;if(a.hierarchy===2&&(u=66,c=30),o[0].y===o[1].y){var s=a.hierarchy===3?24:18,h=this.getEdetal(a);return e.centerX<r.centerX?[["M",o[0].x+s,o[0].y],["L",r.maxX+h,r.maxY]]:[["M",o[0].x+2,o[0].y],["L",r.minX-h,r.maxY]]}if(a.hierarchy>=3){var d=a.hierarchy===3?24:18,v=this.getEdetal(a);if(e.centerX<r.centerX){var y=o[0].x+d;return[["M",o[0].x,o[0].y],["M",y,o[0].y],["C",y+c,o[0].y,r.minX-u,r.maxY,r.minX,r.maxY],["L",r.maxX+v,r.maxY]]}var m=o[0].x-d;return[["M",o[0].x,o[0].y],["M",m,o[0].y],["C",m-c,o[0].y,r.maxX+u,r.maxY,r.maxX,r.maxY],["L",r.minX-v,r.maxY]]}var b=this.getEdetal(a);return e.centerX<r.centerX?[["M",o[0].x,o[0].y],["C",o[0].x+c,o[0].y,r.minX-u,r.maxY,r.minX,r.maxY],["L",r.maxX+b,r.maxY]]:[["M",o[0].x,o[0].y],["C",o[0].x-c,o[0].y,r.maxX+u,r.maxY,r.maxX,r.maxY],["L",r.minX-b,r.maxY]]},getStyle:function(i){var o=i.getTarget(),n=1;if(o){var t=o.getModel();n=t.hierarchy<=3?3:t.hierarchy<=5?2:1}return{stroke:"#959EA6",lineWidth:n}}})},function(f,p,l){function i(o,n,t){return n in o?Object.defineProperty(o,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[n]=t,o}l(8).registerEdge("mind-placeholder-edge",{getOriginShapeObject:function(o){return o.getGraph().getShapeObj("edge",{shape:"mind-edge"})},getPath:function(o){return this.getOriginShapeObject(o).getPath(o)},getStyle:function(o){return function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.forEach(function(a){i(n,a,e[a])})}return n}({},this.getOriginShapeObject(o).getStyle(o),{stroke:"#91D5FF"})}})},function(f,p,l){var i=l(15),o=l(10);function n(t,e,r){var a=t.getGraph(),u=e.getModel(),c=t.getFirstChildrenBySide("left"),s=c[0]&&a.find(c[0].id);return a.add("node",{id:r,parent:e.id,label:"\u65B0\u5EFA\u8282\u70B9",side:u.children.length>2?"left":"right",nth:s?a.getNth(s):void 0})}i.registerCommand("append",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length===1},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),a=r.getGraph(),u=r.getRoot(),c=this.getItem(t),s=c.getModel(),h=s.hierarchy,d=c.getParent();if(c.isRoot)e=n(r,c,this.addItemId);else{var v=a.getNth(c);e=a.add("node",{id:this.addItemId,parent:d.id,side:h===2&&u.children.length===3?"left":s.side,label:"\u65B0\u5EFA\u8282\u70B9",nth:s.side==="left"&&h===2?v:v+1})}r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=c.id,this.addItemId=e.id,r.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Enter"]}),i.registerCommand("appendChild",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length>0},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),a=r.getGraph(),u=this.getItem(t);e=u.isRoot?n(r,u,this.addItemId):a.add("node",{id:this.addItemId,parent:u.id,label:"\u65B0\u5EFA\u8282\u70B9"}),r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=u.id,this.addItemId=e.id,r.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Tab"]}),i.registerCommand("moveMindNode",{enable:function(t){var e=t.getCurrentPage(),r=e.get("panItems");return e.isMind&&r&&r.length>0},execute:function(t){var e=t.getCurrentPage(),r=e.getGraph(),a=this.newParentId,u=this.newNth,c=this.newSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:a,nth:u,side:c});var h=r.add("node",s);e.clearSelected(),e.setSelected(h,!0)},back:function(t){var e=t.getCurrentPage(),r=e.getGraph(),a=this.originParentId,u=this.originNth,c=this.originSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:a,nth:u,side:c});var h=r.add("node",s);e.clearSelected(),e.setSelected(h,!0)}})},function(f,p,l){function i(c){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var h=0;h<s.length;h++){var d=s[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function n(c,s){return!s||i(s)!=="object"&&typeof s!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(c):s}function t(c){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)})(c)}function e(c,s){return(e=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h})(c,s)}var r=l(6),a=l(9),u=function(c){function s(){return function(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),n(this,t(s).apply(this,arguments))}var h,d,v;return function(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),m&&e(y,m)}(s,a),h=s,(d=[{key:"getDefaultCfg",value:function(){return{type:"toolbar",container:null}}},{key:"init",value:function(){this._initContainer()}},{key:"_initContainer",value:function(){var y=this.container;if(!y)throw new Error("please set the container for the toolbar !");r.isString(y)&&(y=document.getElementById(y));var m=y.getElementsByClassName("command");this.commands=m}},{key:"getCommandDoms",value:function(){return this.commands}}])&&o(h.prototype,d),v&&o(h,v),s}();f.exports=u},function(f,p,l){function i(c){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var h=0;h<s.length;h++){var d=s[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function n(c,s){return!s||i(s)!=="object"&&typeof s!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(c):s}function t(c){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)})(c)}function e(c,s){return(e=Object.setPrototypeOf||function(h,d){return h.__proto__=d,h})(c,s)}var r=l(6),a=l(9),u=function(c){function s(){return function(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),n(this,t(s).apply(this,arguments))}var h,d,v;return function(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),m&&e(y,m)}(s,a),h=s,(d=[{key:"getDefaultCfg",value:function(){return{type:"contextmenu",container:null}}},{key:"init",value:function(){this._initContainer()}},{key:"_initContainer",value:function(){var y=this.container;if(!y)throw new Error("please set the container for the tontextmenu !");r.isString(y)&&(y=document.getElementById(y));var m=y.getElementsByClassName("command");y.style.position="absolute",y.style["z-index"]=2,y.style.top="0px",y.style.left="0px",this.commands=m,this.containerDom=y}},{key:"bindEvent",value:function(){var y=this,m=this.commands;r.each(m,function(b){r.addEventListener(b,"click",function(){b.className.indexOf("disable")===-1&&y.hide()})})}},{key:"switch",value:function(y){var m=this.containerDom.getElementsByClassName("menu");r.each(m,function(b){b.dataset.status===y?b.style.display="block":b.style.display="none"})}},{key:"getCommandDoms",value:function(){return this.commands}},{key:"show",value:function(){var y=this.containerDom;this.editor.getCurrentPage().setSignal("preventWheelPan",!0),y.style.display="block"}},{key:"hide",value:function(){var y=this.containerDom;this.editor.getCurrentPage().setSignal("preventWheelPan",!1),y.style.display="none"}},{key:"move",value:function(y,m){var b=this.containerDom,w=r.getBoundingClientRect(b),P=parseFloat(r.getStyle(b,"top")),S=parseFloat(r.getStyle(b,"left"));b.style.left=S+(y-w.left)+"px",b.style.top=P+(m-w.top)+"px"}}])&&o(h.prototype,d),v&&o(h,v),s}();f.exports=u},function(f,p,l){var i=l(12);l(124),l(127),f.exports=i},function(f,p,l){l(125),l(126)},function(f,p,l){function i(h){for(var d=1;d<arguments.length;d++){var v=arguments[d]!=null?arguments[d]:{},y=Object.keys(v);typeof Object.getOwnPropertySymbols=="function"&&(y=y.concat(Object.getOwnPropertySymbols(v).filter(function(m){return Object.getOwnPropertyDescriptor(v,m).enumerable}))),y.forEach(function(m){o(h,m,v[m])})}return h}function o(h,d,v){return d in h?Object.defineProperty(h,d,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[d]=v,h}var n,t,e=l(20),r=e.mouseEnterEdge,a=e.startMove,u=e.mouseLeaveEdge,c=e.mouseMoveEdge,s=e.endMove;l(12).registerBehaviour("bpmnMoveEdgeController",function(h){var d,v=h.getGraph(),y=v.getRootGroup();function m(){h.set("panItemDelegation",void 0),h.set("panItemStartBox",void 0),h.set("panItemStartPoint",void 0),d=void 0}v.behaviourOn("edge:mouseenter",function(b){!n&&b.item&&(t=b.item,r({graph:v,bpmn:h,ev:b,backUpCursor:!0}))}),v.behaviourOn("edge:mousedown",function(b){var w=b.item;a(v,b),n=w}),v.behaviourOn("mouseup",function(){n&&(s({graph:v,item:n}),n=void 0)}),v.behaviourOn("mousemove",function(b){n?c(v,n,b):t&&r({graph:v,bpmn:h,ev:i({},b,{item:t}),backUpCursor:!1})}),v.behaviourOn("edge:mouseleave",function(){n||t&&(u({graph:v,bpmn:h,item:t}),t=void 0)}),v.behaviourOn("node:dragstart",function(b){var w=b.item.getBBox();d=h.getDelegation([w],y),h.set("bpmnNodePanDelegation",d),h.set("bpmnNodePanStartBox",w),h.set("bpmnNodePanStartPoint",{x:b.x,y:b.y}),h.set("bpmnNodePanStartItem",b.item)}),v.behaviourOn("node:dragend",function(b){var w=h.get("bpmnNodePanDelegation"),P=h.get("bpmnNodePanStartPoint"),S=h.get("bpmnNodePanStartItem");S&&S.getEdges().forEach(function(O){v.update(O,{nodeMoved:{item:S.id,start:P,delta:{x:b.x-P.x,y:b.y-P.y}}})}),w.remove(),m()})},["startPanItem","processPanItem","endPanItem"])},function(f,p,l){l(12).registerBehaviour("hoverNodeShowArrowController",function(i){var o,n=i.getGraph(),t=i.get("arrowController"),e=t.long,r=t.thickness;n.on("node:mouseenter",function(a){if(!i.getSignal("panningItem")&&!i.getSignal("dragEdge")){var u=t.topArrow,c=t.bottomArrow,s=t.leftArrow,h=t.rightArrow,d=(o=a.item).getBBox(),v=n.getDomPoint({x:d.centerX,y:d.minY}),y=n.getDomPoint({x:d.minX,y:d.centerY}),m=n.getDomPoint({x:d.centerX,y:d.maxY}),b=n.getDomPoint({x:d.maxX,y:d.centerY});u.css({top:v.y-(e+10)+"px",left:v.x-r/2+"px",transform:"rotate(-90deg)"}),c.css({top:m.y+10+"px",left:m.x-r/2+"px",transform:"rotate(90deg)"}),s.css({top:y.y-r/2+"px",left:y.x-(e+10)+"px",transform:"rotate(180deg)"}),h.css({top:b.y-r/2+"px",left:b.x+10+"px"}),u.setAttribute("anchorIndex",0),c.setAttribute("anchorIndex",2),s.setAttribute("anchorIndex",3),h.setAttribute("anchorIndex",1),i.showArrowController(o)}}),n.behaviourOn("mousemove",function(a){var u=a.x,c=a.y;if(o){var s=o.getBBox(),h=e+10,d=s.minX-h,v=s.minY-h,y=s.maxX+h,m=s.maxY+h;(u<d||c<v||u>y||c>m)&&(i.hideArrowController(),o=void 0)}})})},function(f,p,l){l(128),l(12).registerNode("bpmn-base",{anchor:null})},function(f,p,l){"use strict";l.r(p);var i=l(12),o=l.n(i),n=l(0);function t(r){var a=r.bbox,u=r.shape,c=u===void 0?"ROUNDED_RECT":u,s=r.point,h=r.vertical;h=!!h;var d={true:"x",false:"y"},v={true:"minX",false:"minY"},y={true:"maxX",false:"maxY"};switch(c){case"ROUNDED_RECT":if(s[d[h]]>=a[v[h]]+4&&s[d[h]]<=a[y[h]]-4)return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.maxX:a.minX,y:h?s.y>a.centerY?a.maxY:a.minY:s.y}};if(s[d[h]]>=a[v[h]]&&s[d[h]]<a[v[h]]+4)return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.maxX-4+Math.sqrt(16-Math.pow(a.minY+4-s.y,2)):a.minX+4-Math.sqrt(16-Math.pow(a.minY+4-s.y,2)),y:h?s.y>a.centerY?a.maxY-4+Math.sqrt(16-Math.pow(a.minX+4-s.x,2)):a.minY+4-Math.sqrt(16-Math.pow(a.minX+4-s.x,2)):s.y}};if(s[d[h]]>=a[y[h]]-4&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.maxX-4+Math.sqrt(16-Math.pow(s.y-a.maxY+4,2)):a.minX+4-Math.sqrt(16-Math.pow(s.y-a.maxY+4,2)),y:h?s.y>a.centerY?a.maxY-4+Math.sqrt(16-Math.pow(s.x-a.maxX+4,2)):a.minY+4-Math.sqrt(16-Math.pow(s.x-a.maxX+4,2)):s.y}};break;case"CIRCLE":if(s[d[h]]>=a[v[h]]&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.centerX+Math.sqrt(16-Math.pow(a.centerY-s.y)):a.centerX-Math.sqrt(16-Math.pow(a.centerY-s.y)),y:h?s.y>a.centerY?a.centerY+Math.sqrt(16-Math.pow(a.centerX-s.x)):a.centerY-Math.sqrt(16-Math.pow(a.centerX-s.x)):s.y}};break;case"RHOMEBUS":if(s[d[h]]>=a[v[h]]&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?s.y<a.centerY?(s.y-a.minY)*(a.maxX-a.centerX)/(a.centerY-a.minY)+a.centerX:(a.maxY-s.y)*(a.maxX-a.centerX)/(a.maxY-a.centerY)+a.centerX:s.y<a.centerY?a.centerX-(s.y-a.minY)*(a.centerX-a.minX)/(a.centerY-a.minY):a.centerX-(a.maxY-s.y)*(a.centerX-a.minX)/(a.maxY-a.centerY),y:h?s.y>a.centerY?s.x<a.centerX?(s.x-a.minX)*(a.maxY-a.centerY)/(a.centerX-a.minX)+a.centerY:(a.maxX-s.x)*(a.maxY-a.centerY)/(a.maxX-a.centerX)+a.centerY:s.x<a.centerX?a.centerY-(s.x-a.minX)*(a.centerY-a.minY)/(a.centerX-a.minX):a.centerY-(a.maxX-s.x)*(a.centerY-a.minY)/(a.maxX-a.centerX):s.y}};break;case"RECT":default:if(s[d[h]]>=a[v[h]]&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.maxX:a.minX,y:h?s.y>a.centerY?a.maxY:a.minY:s.y}}}return h?s.x<a.centerX?{added:{x:s.x,y:a.centerY},joint:{x:a.minX,y:a.centerY}}:{added:{x:s.x,y:a.centerY},joint:{x:a.maxX,y:a.centerY}}:s.y<a.centerY?{added:{x:a.centerX,y:s.y},joint:{x:a.centerX,y:a.minY}}:{added:{x:a.centerX,y:s.y},joint:{x:a.centerX,y:a.maxY}}}var e=l(20);o.a.registerEdge("bpmn-base",{getPath:function(r){var a,u=r.getSource(),c=r.getTarget(),s=r.model;if(s.edgeMoved&&s.lastMouse){var h,d,v,y,m,b=s.controlPoints,w=s.hold.index,P=[{x:b[w].x+s.edgeMoved.x,y:b[w].y+s.edgeMoved.y},{x:b[w+1].x+s.edgeMoved.x,y:b[w+1].y+s.edgeMoved.y}],S=Object(n.j)(P,0);if(u){var O=t({bbox:u.getBBox(),point:S,vertical:s.hold.vertical,shape:u.model.shape});d=O.added,v=O.joint}if(w===0&&u&&(P[0]=v,d&&(P.splice(1,0,d),r.model.hold.index+=1)),c){var A=t({bbox:c.getBBox(),point:S,vertical:s.hold.vertical,shape:c.model.shape});y=A.added,m=A.joint}w===b.length-2&&c&&(d&&w===0?(P[2]=m,y&&P.splice(2,0,y)):(P[1]=m,y&&P.splice(1,0,y))),(h=s.controlPoints).splice.apply(h,[w,2].concat(P)),u&&Object(n.l)(v,b,s.hold.index)&&(b.splice(0,s.hold.index),s.hold.index=0,b[0]=v),c&&Object(n.l)(m,b,s.hold.index)&&(s.controlPoints.splice(s.hold.index+1),b[s.hold.index+1]=m),a=Object(e.mergeLine)(r,w),function(I,R,F){var j=I.controlPoints;if(R){var B=Object(n.f)(j[0],R.getBBox()),H=B.point,et=B.index;I.sourceJoint={index:et,delta:{x:j[0].x-H.x,y:j[0].y-H.y}}}if(F){var Q=Object(n.f)(j[j.length-1],F.getBBox()),J=Q.point,K=Q.index;I.targetJoint={index:K,delta:{x:j[j.length-1].x-J.x,y:j[j.length-1].y-J.y}}}}(s,u,c),s.lastMouse={x:s.lastMouse.x+s.edgeMoved.x,y:s.lastMouse.y+s.edgeMoved.y}}else if(s.modifiedByMouse&&s.nodeMoved)(function(I,R,F){if(I.nodeMoved){var j=I.nodeMoved.item===R.id,B=I.nodeMoved.item===F.id,H=j?R.getBBox():F.getBBox(),et=I.nodeMoved.delta,Q={minX:H.minX-et.x,maxX:H.maxX-et.x,centerX:H.centerX-et.x,minY:H.minY-et.y,maxY:H.maxY-et.y,centerY:H.centerY+et.y,height:H.height,width:H.width},J=I.controlPoints;if(J.length===2){var K=Object(n.d)(R,F),nt=K.sourcePoint,st=K.targetPoint;I.sourceJoint&&nt.index===I.sourceJoint.index&&(nt.point=Object(n.c)(R.getBBox())[nt.index],nt.point.x+=I.sourceJoint.delta.x,nt.point.y+=I.sourceJoint.delta.y),I.targetJoint&&st.index===I.targetJoint.index&&(st.point=Object(n.c)(F.getBBox())[st.index],st.point.x+=I.targetJoint.delta.x,st.point.y+=I.targetJoint.delta.y);var V=Object(n.h)(nt,st);I.controlPoints=V}else{var tt;tt=j?1:J.length-3;var $=Object(n.i)(J,tt),ot=Object(n.a)(Q,J,tt),Y=Object(n.a)(H,J,tt),L=j?I.sourceJoint:I.targetJoint;if(ot===Y){var D=Object(n.c)(H)[L.index],G={x:D.x+L.delta.x,y:D.y+L.delta.y},U=Object(n.g)(G,J,tt);j?I.controlPoints.splice(0,2,G,U):B&&I.controlPoints.splice(tt+1,2,U,G)}else if(Y===0)if(J.length===3){var X=Object(n.d)(R,F),q=X.sourcePoint,ut=X.targetPoint,rt=Object(n.h)(q,ut);I.controlPoints=rt}else{var at,pt=Object(n.j)(J,tt);at=$?pt.y<H.centerY?0:2:pt.x<H.centerX?3:1;var gt=Object(n.c)(H)[at];if(j){var z=Object(n.g)(gt,J,tt+1);I.controlPoints.splice(0,3,gt,z),I.sourceJoint={index:at,delta:{x:0,y:0}}}else if(B){var Z=Object(n.g)(gt,J,tt-1);I.controlPoints.splice(tt,3,Z,gt),I.targetJoint={index:at,delta:{x:0,y:0}}}}else{var lt=Object(n.k)(L.index),it=Object(n.c)(H)[lt],dt=Object(n.g)(it,J,tt);j?(I.controlPoints.splice(0,2,it,dt),I.sourceJoint={index:lt,delta:{x:0,y:0}}):B&&(I.controlPoints.splice(tt+1,2,dt,it),I.targetJoint={index:lt,delta:{x:0,y:0}})}}}})(s,u,c);else if(!s.modifiedByMouse){var E=s.anchorIndex,_=Object(n.d)(u,c,!s.initialed&&E),C=_.sourcePoint,k=_.targetPoint,T=Object(n.h)(C,k);r.model.controlPoints=T}return s.nodeMoved=void 0,{path:this.getPathByPoints({points:s.controlPoints}),helpLine:a}},draw:function(r){var a=r.getGraphicGroup(),u=r.model,c=this.getPath(r),s=c.path,h=c.helpLine,d=this.getStyle(r),v=Object(n.b)(a,s,d);if(u.hold!=null){var y=Object(n.j)(u.controlPoints,u.hold.index);a.addShape("circle",{attrs:{x:y.x,y:y.y,r:3,fill:"rgb(0,182,239)"}})}return h&&(u.helpLine=h,u.helpLineTime=new Date().getTime()),!h&&new Date().getTime()-u.helpLineTime>=150&&(u.helpLine=void 0,u.helpLineTime=void 0),u.helpLine&&a.addShape("path",{attrs:{path:[["M",u.helpLine[0].x,u.helpLine[0].y],["L",u.helpLine[1].x,u.helpLine[1].y]],lineAppendWidth:8,lineWidth:1,strokeOpacity:.92,stroke:"rgba(255,139,48)"}}),v}})}])})},77396:function(N,M,x){"use strict";var g=x(21261),f=x(6610),p=x(5991),l=x(46070),i=x(77608),o=x(10379),n=x(42328),t=x.n(n),e=x(7654),r="J_FlowContainer",a="J_MindContainer",u="J_KoniContainer",c="J_ToolbarContainer",s="J_MinimapContainer",h="J_ContextMenuContainer",d="Flow",v="Mind",y="Koni",m="beforeAddPage",b="afterAddPage",w="canvas-selected",P="node-selected",S="edge-selected",O="group-selected",A="multi-selected",E={click:"Click",contextmenu:"ContextMenu",dblclick:"DoubleClick",drag:"Drag",dragend:"DragEnd",dragenter:"DragEnter",dragleave:"DragLeave",dragstart:"DragStart",drop:"Drop",mousedown:"MouseDown",mouseenter:"MouseEnter",mouseleave:"MouseLeave",mousemove:"MouseMove",mouseup:"MouseUp"},_={afterchange:"onAfterChange",afterchangesize:"onAfterChangeSize",afterviewportchange:"onAfterViewportChange",beforechange:"onBeforeChange",beforechangesize:"onBeforeChangeSize",beforeviewportchange:"onBeforeViewportChange",keydown:"onKeyDown",keyup:"onKeyUp",mousewheel:"onMouseWheel"},C={afteritemactived:"onAfterItemActived",afteriteminactivated:"onAfterItemInactivated",afteritemselected:"onAfterItemSelected",afteritemunactived:"onAfterItemInactivated",afteritemunselected:"onAfterItemUnselected",beforeitemactived:"onBeforeItemActived",beforeiteminactivated:"onBeforeItemInactivated",beforeitemselected:"onBeforeItemSelected",beforeitemunactived:"onBeforeItemInactivated",beforeitemunselected:"onBeforeItemUnselected",keyUpEditLabel:"onKeyUpEditLabel"},k={aftercommandexecute:"onAfterCommandExecute",beforecommandexecute:"onBeforeCommandExecute"},T=Object.keys(E),I=Object.keys(_),R=Object.keys(C),F=Object.keys(k),j=x(58241),B=x(54153),H={trackable:!0,version:"2.0.4"},et={get:function(ct){return H[ct]},set:function(ct,ht){H[ct]=ht}},Q=x(19177),J=x(13515),K=x(82492),nt=x.n(K),st=x(78718),V=x.n(st),tt=x(73955),$=x.n(tt),ot=x(11700),Y=x.n(ot),L=function(ct){return Object.keys(ct).map(function(ht){return"".concat(encodeURIComponent(ht),"=").concat(encodeURIComponent(ct[ht]))}).join("&")},D="http://gm.mmstat.com/fsp.1.1",G=function(ct){var ht=et.get("trackable"),W=et.get("version");if(!!ht){var ft=window,vt=ft.location,bt=ft.navigator,_t=new Image,Ct=L((0,B.Z)({pid:"ggeditor",code:"11",msg:"syslog",page:"".concat(vt.protocol,"//").concat(vt.host).concat(vt.pathname),hash:vt.hash,ua:bt.userAgent,rel:W},ct));_t.src="".concat(D,"?").concat(Ct)}},U=function(mt){setTimeout(function(){G(mt)},1e3)},X=function(mt){(0,o.Z)(ct,mt);function ct(ht){var W;return(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.id=$()(),W.on(m,function(ft){var vt=ft.className;U({c1:vt})}),W}return ct}(t()),q=x(98566),ut=x(73257),rt=x(22122),at=x(67294),pt=function(mt){(0,o.Z)(ct,mt);function ct(){var ht,W;(0,f.Z)(this,ct);for(var ft=arguments.length,vt=new Array(ft),bt=0;bt<ft;bt++)vt[bt]=arguments[bt];return W=(0,l.Z)(this,(ht=(0,i.Z)(ct)).call.apply(ht,[this].concat(vt))),W.page=void 0,W.config={},W.addListener=function(_t,Ct,jt){typeof jt=="function"&&_t.on(Ct,jt)},W}return(0,p.Z)(ct,[{key:"componentDidMount",value:function(){this.init(),this.bindEvent(),this.forceUpdate()}},{key:"shouldComponentUpdate",value:function(W){var ft=W.data,vt=this.props.data,bt=W.graph||{},_t=bt.mode,Ct=this.props.graph||{},jt=Ct.mode;return _t!==jt&&this.page.changeMode(_t),ft!==vt?(this.page.read(ft),!0):!1}},{key:"initPage",value:function(){}},{key:"readData",value:function(){var W=this.config.data;W&&this.page.read(W)}},{key:"init",value:function(){nt()(this.config,this.props,{graph:{container:this.pageId}}),this.initPage(),this.readData()}},{key:"bindEvent",value:function(){var W=this,ft=this.addListener;T.forEach(function(vt){var bt=E[vt];ft(W.graph,"".concat(vt),W.props["on".concat(bt)]),ft(W.graph,"node:".concat(vt),W.props["onNode".concat(bt)]),ft(W.graph,"edge:".concat(vt),W.props["onEdge".concat(bt)]),ft(W.graph,"group:".concat(vt),W.props["onGroup".concat(bt)]),ft(W.graph,"guide:".concat(vt),W.props["onGuide".concat(bt)]),ft(W.graph,"anchor:".concat(vt),W.props["onAnchor".concat(bt)])}),I.forEach(function(vt){ft(W.graph,[vt],W.props[_[vt]])}),R.forEach(function(vt){ft(W.page,[vt],W.props[C[vt]])})}},{key:"render",value:function(){var W=this.page,ft=this.pageId,vt=this.props.children;return at.createElement("div",(0,rt.Z)({id:ft},V()(this.props,["style","className"])),W?vt:null)}},{key:"pageId",get:function(){return""}},{key:"graph",get:function(){return this.page.getGraph()}}]),ct}(at.Component),gt=pt,z=x(81253),Z=at.createContext({});function lt(mt){var ct=function(ht){(0,o.Z)(W,ht);function W(){return(0,f.Z)(this,W),(0,l.Z)(this,(0,i.Z)(W).apply(this,arguments))}return(0,p.Z)(W,[{key:"render",value:function(){var vt=this.props,bt=vt.forwardRef,_t=(0,z.Z)(vt,["forwardRef"]);return at.createElement(Z.Consumer,null,function(Ct){return at.createElement(mt,(0,rt.Z)({ref:bt},_t,Ct))})}}]),W}(at.Component);return at.forwardRef(function(ht,W){return at.createElement(ct,(0,rt.Z)({},ht,{forwardRef:W}))})}var it=function(mt){(0,o.Z)(ct,mt);function ct(){return(0,f.Z)(this,ct),(0,l.Z)(this,(0,i.Z)(ct).apply(this,arguments))}return(0,p.Z)(ct,[{key:"initPage",value:function(){var W=this.props.editor;W.emit(m,{className:d}),this.page=new X.Flow(this.config),W.add(this.page),W.emit(b,{page:this.page})}},{key:"pageId",get:function(){var W=this.props.editor;return"".concat(r,"_").concat(W.id)}}]),ct}(gt);it.defaultProps={data:{nodes:[],edges:[]}};var dt=lt(it);function yt(mt,ct){for(;!Object.prototype.hasOwnProperty.call(mt,ct)&&(mt=(0,i.Z)(mt),mt!==null););return mt}function wt(){return typeof Reflect!="undefined"&&Reflect.get?wt=Reflect.get.bind():wt=function(ct,ht,W){var ft=yt(ct,ht);if(!!ft){var vt=Object.getOwnPropertyDescriptor(ft,ht);return vt.get?vt.get.call(arguments.length<3?ct:W):vt.value}},wt.apply(this,arguments)}var Mt=function(mt){(0,o.Z)(ct,mt);function ct(){return(0,f.Z)(this,ct),(0,l.Z)(this,(0,i.Z)(ct).apply(this,arguments))}return(0,p.Z)(ct,[{key:"initPage",value:function(){var W=this.props.editor;W.emit(m,{className:v}),this.page=new X.Mind(this.config),W.add(this.page),W.emit(b,{page:this.page})}},{key:"bindEvent",value:function(){wt((0,i.Z)(ct.prototype),"bindEvent",this).call(this),this.bindKeyUpEditLabel()}},{key:"bindKeyUpEditLabel",value:function(){var W=this,ft=this.page.get("labelTextArea");ft.on("keyup",function(vt){vt.stopPropagation();var bt=ft.focusItem,_t=ft.textContent;W.page.emit("keyUpEditLabel",{item:bt,text:_t})})}},{key:"pageId",get:function(){var W=this.props.editor;return"".concat(a,"_").concat(W.id)}}]),ct}(gt),At=lt(Mt),xt=function(mt){(0,o.Z)(ct,mt);function ct(){return(0,f.Z)(this,ct),(0,l.Z)(this,(0,i.Z)(ct).apply(this,arguments))}return(0,p.Z)(ct,[{key:"initPage",value:function(){var W=this.props.editor;W.emit(m,{className:y}),this.page=new X.Koni(this.config),W.add(this.page),W.emit(b,{page:this.page})}},{key:"pageId",get:function(){var W=this.props.editor;return"".concat(u,"_").concat(W.id)}}]),ct}(gt);xt.defaultProps={data:{nodes:[],edges:[]}};var St=lt(xt),Et=x(85061),Pt=function(mt){(0,o.Z)(ct,mt);function ct(ht,W){var ft;return(0,f.Z)(this,ct),ft=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),ft.type=W,ft.bindEvent(),ft}return(0,p.Z)(ct,[{key:"bindEvent",value:function(){var W=this,ft=this.type,vt=this.props.onBeforeAddPage;vt(function(bt){var _t,Ct=bt.className,jt=X[Ct],$t=["name","config","extend"];ft==="command"&&(jt=X),ft==="behaviour"&&($t=["name","behaviour","dependences"]);var Qt=$t.map(function(se){return W.props[se]});(_t=jt)["register".concat(Y()(ft))].apply(_t,(0,Et.Z)(Qt))})}},{key:"render",value:function(){return null}}]),ct}(at.Component);Pt.create=function(mt){var ct=function(ht){(0,o.Z)(W,ht);function W(ft){return(0,f.Z)(this,W),(0,l.Z)(this,(0,i.Z)(W).call(this,ft,mt))}return W}(Pt);return lt(ct)};var Ot=Pt.create("node"),Dt=Pt.create("edge"),Tt=Pt.create("group"),Nt=Pt.create("guide"),kt=Pt.create("command"),It=Pt.create("behaviour"),Xt=x(16869),zt=function(mt){(0,o.Z)(ct,mt);function ct(){return(0,f.Z)(this,ct),(0,l.Z)(this,(0,i.Z)(ct).apply(this,arguments))}return(0,p.Z)(ct,[{key:"render",value:function(){var W=this.props,ft=W.name,vt=W.children;return at.createElement("div",{className:"command","data-command":ft},vt)}}]),ct}(at.Component),Zt=null,Vt=x(20532),Ht=x.n(Vt);x(26857);var Jt=Ht().Components.Minimap,qt=function(mt){(0,o.Z)(ct,mt),(0,p.Z)(ct,[{key:"containerId",get:function(){var W=this.props.editor;return"".concat(s,"_").concat(W.id)}},{key:"currentPage",get:function(){var W=this.props.editor;return W.getCurrentPage()}}]);function ct(ht){var W;return(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.minimap=null,W.bindEvent(),W}return(0,p.Z)(ct,[{key:"componentDidMount",value:function(){this.init(),this.bindPage()}},{key:"init",value:function(){var W=this,ft=this.props,vt=ft.container,bt=vt===void 0?this.containerId:vt,_t=ft.width,Ct=ft.height,jt=ft.viewportWindowStyle,$t=ft.viewportBackStyle,Qt=document.getElementById(bt),se=Qt.clientWidth,pe=Qt.clientHeight;this.minimap=new Jt({container:bt,width:_t||se,height:Ct||pe,viewportWindowStyle:jt,viewportBackStyle:$t}),this.minimap.getGraph=function(){return W.currentPage.getGraph()}}},{key:"bindPage",value:function(){if(!(!this.minimap||!this.currentPage)){var W=this.currentPage.getGraph();this.minimap.bindGraph(W),this.minimap.debounceRender()}}},{key:"bindEvent",value:function(){var W=this,ft=this.props.onAfterAddPage;ft(function(){W.bindPage()})}},{key:"render",value:function(){var W=this.props.container;return W?null:at.createElement("div",(0,rt.Z)({id:this.containerId},V()(this.props,["style","className"])))}}]),ct}(at.Component),ue=lt(qt),Ut=function(mt){(0,o.Z)(ct,mt);function ct(ht,W){var ft;return(0,f.Z)(this,ct),ft=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),ft.type=W,ft}return(0,p.Z)(ct,[{key:"render",value:function(){var W=this.props.children,ft=this.type;return at.createElement("div",{className:"menu","data-status":"".concat(ft,"-selected")},W)}}]),ct}(at.Component);Ut.create=function(mt){return function(ct){(0,o.Z)(ht,ct);function ht(W){return(0,f.Z)(this,ht),(0,l.Z)(this,(0,i.Z)(ht).call(this,W,mt))}return ht}(Ut)};var Rt=Ut,te=function(mt){(0,o.Z)(ct,mt);function ct(){var ht,W;(0,f.Z)(this,ct);for(var ft=arguments.length,vt=new Array(ft),bt=0;bt<ft;bt++)vt[bt]=arguments[bt];return W=(0,l.Z)(this,(ht=(0,i.Z)(ct)).call.apply(ht,[this].concat(vt))),W.contextMenu=null,W}return(0,p.Z)(ct,[{key:"componentDidMount",value:function(){var W=this.props.editor;this.contextMenu=new X.Contextmenu({container:this.containerId}),W.add(this.contextMenu)}},{key:"render",value:function(){var W=this.props.children;return at.createElement("div",(0,rt.Z)({id:this.containerId},V()(this.props,["style","className"])),W)}},{key:"containerId",get:function(){var W=this.props.editor;return"".concat(h,"_").concat(W.id)}}]),ct}(at.Component),ce=Rt.create("node"),ee=Rt.create("edge"),ne=Rt.create("group"),re=Rt.create("multi"),ie=Rt.create("canvas"),Ft=lt(te),Wt=function(mt){(0,o.Z)(ct,mt),(0,p.Z)(ct,[{key:"containerId",get:function(){var W=this.props.editor;return"".concat(c,"_").concat(W.id)}}]);function ct(ht){var W;(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.toolbar=null;var ft=ht.editor,vt=ht.onAfterAddPage;return vt(function(){W.toolbar=new X.Toolbar({container:W.containerId}),ft.add(W.toolbar)}),W}return(0,p.Z)(ct,[{key:"render",value:function(){var W=this.props.children;return at.createElement("div",(0,rt.Z)({id:this.containerId},V()(this.props,["style","className"])),W)}}]),ct}(at.Component),oe=lt(Wt),Kt=function(mt){(0,o.Z)(ct,mt);function ct(ht){var W;return(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.handleMouseDown=function(){var ft=W.props,vt=ft.type,bt=ft.size,_t=ft.shape,Ct=ft.model;W.page&&W.page.beginAdd(vt,(0,B.Z)({type:vt,size:bt,shape:_t},Ct))},W.bindEvent(),W}return(0,p.Z)(ct,[{key:"bindEvent",value:function(){var W=this,ft=this.props.onAfterAddPage;ft(function(vt){var bt=vt.page;W.page=bt})}},{key:"render",value:function(){var W=this.props,ft=W.src,vt=W.shape,bt=W.children;return at.createElement("div",{style:{cursor:"pointer"},onMouseDown:this.handleMouseDown},ft?at.createElement("img",{src:ft,alt:vt,draggable:!1}):bt)}}]),ct}(at.Component),Bt=lt(Kt),ae=function(mt){(0,o.Z)(ct,mt);function ct(ht){var W;return(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.page=null,W.handleMouseUp=function(){W.page.cancelAdd()},W.bindEvent(),W}return(0,p.Z)(ct,[{key:"bindEvent",value:function(){var W=this,ft=this.props.onAfterAddPage;ft(function(vt){var bt=vt.page;W.page=bt,document.addEventListener("mouseup",W.handleMouseUp)})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var W=this.props.children;return at.createElement("div",(0,rt.Z)({id:this.containerId},V()(this.props,["style","className"])),W)}}]),ct}(at.Component),le=lt(ae),Gt=function(mt){(0,o.Z)(ct,mt);function ct(ht,W){var ft;return(0,f.Z)(this,ct),ft=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),ft.type=W,ft}return(0,p.Z)(ct,[{key:"render",value:function(){var W=this.props,ft=W.status,vt=W.children,bt=this.type;return"".concat(bt,"-selected")!==ft?null:at.createElement("div",V()(this.props,["style","className"]),vt)}}]),ct}(at.Component);Gt.create=function(mt){return function(ct){(0,o.Z)(ht,ct);function ht(W){return(0,f.Z)(this,ht),(0,l.Z)(this,(0,i.Z)(ht).call(this,W,mt))}return ht}(Gt)};var Lt=Gt,Yt=function(mt){(0,o.Z)(ct,mt);function ct(ht){var W;return(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.state={status:""},W.bindEvent(),W}return(0,p.Z)(ct,[{key:"bindEvent",value:function(){var W=this,ft=this.props.onAfterAddPage;ft(function(vt){var bt=vt.page;W.setState({status:w}),bt.on("statuschange",function(_t){var Ct=_t.status;W.setState({status:Ct})})})}},{key:"render",value:function(){var W=this.props.children,ft=this.state.status;return ft?at.createElement("div",V()(this.props,["style","className"]),at.Children.toArray(W).map(function(vt){return at.cloneElement(vt,{status:ft})})):null}}]),ct}(at.Component),ve=Lt.create("node"),me=Lt.create("edge"),ye=Lt.create("group"),xe=Lt.create("multi"),be=Lt.create("canvas"),we=lt(Yt),he=at.createContext({});function Se(mt){var ct=function(ht){_inherits(W,ht);function W(){return _classCallCheck(this,W),_possibleConstructorReturn(this,_getPrototypeOf(W).apply(this,arguments))}return _createClass(W,[{key:"render",value:function(){var vt=this.props,bt=vt.forwardRef,_t=_objectWithoutProperties(vt,["forwardRef"]);return React.createElement(PropsAPIContext.Consumer,null,function(Ct){return React.createElement(mt,_extends({ref:bt},_t,{propsAPI:Ct}))})}}]),W}(React.Component);return React.forwardRef(function(ht,W){return React.createElement(ct,_extends({},ht,{forwardRef:W}))})}var fe=x(63349),de=function(){function mt(ct){var ht=this;(0,f.Z)(this,mt),this.editor=null,this.editor=ct,["executeCommand"].forEach(function(W){ht[W]=function(){var ft;return(ft=ht.editor)[W].apply(ft,arguments)}}),["read","save","add","find","update","remove","getSelected"].forEach(function(W){ht[W]=function(){var ft;return(ft=ht.currentPage)[W].apply(ft,arguments)}})}return(0,p.Z)(mt,[{key:"currentPage",get:function(){return this.editor.getCurrentPage()}}]),mt}(),ge=de,Me=function(mt){(0,o.Z)(ct,mt),(0,p.Z)(ct,[{key:"currentPage",get:function(){return this.editor.getCurrentPage()}}],[{key:"setTrackable",value:function(W){et.set("trackable",Boolean(W))}}]);function ct(ht){var W;return(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.editor=null,W.addListener=function(ft,vt,bt){typeof bt=="function"&&ft.on(vt,bt)},W.handleBeforeAddPage=function(ft){W.editor.on(m,ft)},W.handleAfterAddPage=function(ft){var vt=(0,fe.Z)(W),bt=vt.currentPage;if(bt){ft({page:bt});return}W.editor.on(b,ft)},W.init(),W.bindEvent(),W}return(0,p.Z)(ct,[{key:"init",value:function(){this.editor=new X,this.ggEditor={editor:this.editor,onBeforeAddPage:this.handleBeforeAddPage,onAfterAddPage:this.handleAfterAddPage},this.propsAPI=new ge(this.editor)}},{key:"bindEvent",value:function(){var W=this;F.forEach(function(ft){W.addListener(W.editor,[ft],W.props[k[ft]])})}},{key:"componentWillUnmount",value:function(){this.editor.destroy()}},{key:"render",value:function(){var W=this.props.children;return at.createElement(Z.Provider,{value:this.ggEditor},at.createElement(he.Provider,{value:this.propsAPI},at.createElement("div",V()(this.props,["style","className"]),W)))}}]),ct}(at.Component),Pe=null,Ee=null},84185:function(N,M,x){var g=x(61395),f=x(89112),p=TypeError;N.exports=function(l){if(g(l))return l;throw p(f(l)+" is not a function")}},86444:function(N,M,x){var g=x(63188),f=String,p=TypeError;N.exports=function(l){if(g(l))return l;throw p(f(l)+" is not an object")}},51759:function(N,M,x){"use strict";var g=x(85291).forEach,f=x(10455),p=f("forEach");N.exports=p?[].forEach:function(i){return g(this,i,arguments.length>1?arguments[1]:void 0)}},13765:function(N,M,x){var g=x(67485),f=x(41430),p=x(90411),l=function(i){return function(o,n,t){var e=g(o),r=p(e),a=f(t,r),u;if(i&&n!=n){for(;r>a;)if(u=e[a++],u!=u)return!0}else for(;r>a;a++)if((i||a in e)&&e[a]===n)return i||a||0;return!i&&-1}};N.exports={includes:l(!0),indexOf:l(!1)}},85291:function(N,M,x){var g=x(57945),f=x(90838),p=x(54593),l=x(18080),i=x(90411),o=x(54874),n=f([].push),t=function(e){var r=e==1,a=e==2,u=e==3,c=e==4,s=e==6,h=e==7,d=e==5||s;return function(v,y,m,b){for(var w=l(v),P=p(w),S=g(y,m),O=i(P),A=0,E=b||o,_=r?E(v,O):a||h?E(v,0):void 0,C,k;O>A;A++)if((d||A in P)&&(C=P[A],k=S(C,A,w),e))if(r)_[A]=k;else if(k)switch(e){case 3:return!0;case 5:return C;case 6:return A;case 2:n(_,C)}else switch(e){case 4:return!1;case 7:n(_,C)}return s?-1:u||c?c:_}};N.exports={forEach:t(0),map:t(1),filter:t(2),some:t(3),every:t(4),find:t(5),findIndex:t(6),filterReject:t(7)}},67207:function(N,M,x){var g=x(10978),f=x(23476),p=x(68497),l=f("species");N.exports=function(i){return p>=51||!g(function(){var o=[],n=o.constructor={};return n[l]=function(){return{foo:1}},o[i](Boolean).foo!==1})}},10455:function(N,M,x){"use strict";var g=x(10978);N.exports=function(f,p){var l=[][f];return!!l&&g(function(){l.call(null,p||function(){return 1},1)})}},35109:function(N,M,x){var g=x(90838);N.exports=g([].slice)},11990:function(N,M,x){var g=x(51405),f=x(71478),p=x(63188),l=x(23476),i=l("species"),o=Array;N.exports=function(n){var t;return g(n)&&(t=n.constructor,f(t)&&(t===o||g(t.prototype))?t=void 0:p(t)&&(t=t[i],t===null&&(t=void 0))),t===void 0?o:t}},54874:function(N,M,x){var g=x(11990);N.exports=function(f,p){return new(g(f))(p===0?0:p)}},78298:function(N,M,x){var g=x(90838),f=g({}.toString),p=g("".slice);N.exports=function(l){return p(f(l),8,-1)}},19582:function(N,M,x){var g=x(60054),f=x(61395),p=x(78298),l=x(23476),i=l("toStringTag"),o=Object,n=p(function(){return arguments}())=="Arguments",t=function(e,r){try{return e[r]}catch(a){}};N.exports=g?p:function(e){var r,a,u;return e===void 0?"Undefined":e===null?"Null":typeof(a=t(r=o(e),i))=="string"?a:n?p(r):(u=p(r))=="Object"&&f(r.callee)?"Arguments":u}},91650:function(N,M,x){var g=x(30266),f=x(1615),p=x(65133),l=x(71328);N.exports=function(i,o,n){for(var t=f(o),e=l.f,r=p.f,a=0;a<t.length;a++){var u=t[a];!g(i,u)&&!(n&&g(n,u))&&e(i,u,r(o,u))}}},61782:function(N,M,x){var g=x(40632),f=x(71328),p=x(32590);N.exports=g?function(l,i,o){return f.f(l,i,p(1,o))}:function(l,i,o){return l[i]=o,l}},32590:function(N){N.exports=function(M,x){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:x}}},53008:function(N,M,x){"use strict";var g=x(59691),f=x(71328),p=x(32590);N.exports=function(l,i,o){var n=g(i);n in l?f.f(l,n,p(0,o)):l[n]=o}},43295:function(N,M,x){var g=x(69541),f=x(71328);N.exports=function(p,l,i){return i.get&&g(i.get,l,{getter:!0}),i.set&&g(i.set,l,{setter:!0}),f.f(p,l,i)}},6737:function(N,M,x){var g=x(61395),f=x(71328),p=x(69541),l=x(57496);N.exports=function(i,o,n,t){t||(t={});var e=t.enumerable,r=t.name!==void 0?t.name:o;if(g(n)&&p(n,r,t),t.global)e?i[o]=n:l(o,n);else{try{t.unsafe?i[o]&&(e=!0):delete i[o]}catch(a){}e?i[o]=n:f.f(i,o,{value:n,enumerable:!1,configurable:!t.nonConfigurable,writable:!t.nonWritable})}return i}},57496:function(N,M,x){var g=x(24700),f=Object.defineProperty;N.exports=function(p,l){try{f(g,p,{value:l,configurable:!0,writable:!0})}catch(i){g[p]=l}return l}},40632:function(N,M,x){var g=x(10978);N.exports=!g(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},79896:function(N){var M=typeof document=="object"&&document.all,x=typeof M=="undefined"&&M!==void 0;N.exports={all:M,IS_HTMLDDA:x}},54076:function(N,M,x){var g=x(24700),f=x(63188),p=g.document,l=f(p)&&f(p.createElement);N.exports=function(i){return l?p.createElement(i):{}}},96232:function(N){var M=TypeError,x=9007199254740991;N.exports=function(g){if(g>x)throw M("Maximum allowed index exceeded");return g}},88739:function(N){N.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}},25517:function(N,M,x){var g=x(54076),f=g("span").classList,p=f&&f.constructor&&f.constructor.prototype;N.exports=p===Object.prototype?void 0:p},4372:function(N){N.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},62679:function(N){N.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},68497:function(N,M,x){var g=x(24700),f=x(62679),p=g.process,l=g.Deno,i=p&&p.versions||l&&l.version,o=i&&i.v8,n,t;o&&(n=o.split("."),t=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!t&&f&&(n=f.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=f.match(/Chrome\/(\d+)/),n&&(t=+n[1]))),N.exports=t},72414:function(N){N.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},26725:function(N,M,x){var g=x(24700),f=x(65133).f,p=x(61782),l=x(6737),i=x(57496),o=x(91650),n=x(93415);N.exports=function(t,e){var r=t.target,a=t.global,u=t.stat,c,s,h,d,v,y;if(a?s=g:u?s=g[r]||i(r,{}):s=(g[r]||{}).prototype,s)for(h in e){if(v=e[h],t.dontCallGetSet?(y=f(s,h),d=y&&y.value):d=s[h],c=n(a?h:r+(u?".":"#")+h,t.forced),!c&&d!==void 0){if(typeof v==typeof d)continue;o(v,d)}(t.sham||d&&d.sham)&&p(v,"sham",!0),l(s,h,v,t)}}},10978:function(N){N.exports=function(M){try{return!!M()}catch(x){return!0}}},42713:function(N,M,x){var g=x(92094),f=Function.prototype,p=f.apply,l=f.call;N.exports=typeof Reflect=="object"&&Reflect.apply||(g?l.bind(p):function(){return l.apply(p,arguments)})},57945:function(N,M,x){var g=x(43021),f=x(84185),p=x(92094),l=g(g.bind);N.exports=function(i,o){return f(i),o===void 0?i:p?l(i,o):function(){return i.apply(o,arguments)}}},92094:function(N,M,x){var g=x(10978);N.exports=!g(function(){var f=function(){}.bind();return typeof f!="function"||f.hasOwnProperty("prototype")})},24442:function(N,M,x){var g=x(92094),f=Function.prototype.call;N.exports=g?f.bind(f):function(){return f.apply(f,arguments)}},24320:function(N,M,x){var g=x(40632),f=x(30266),p=Function.prototype,l=g&&Object.getOwnPropertyDescriptor,i=f(p,"name"),o=i&&function(){}.name==="something",n=i&&(!g||g&&l(p,"name").configurable);N.exports={EXISTS:i,PROPER:o,CONFIGURABLE:n}},43021:function(N,M,x){var g=x(78298),f=x(90838);N.exports=function(p){if(g(p)==="Function")return f(p)}},90838:function(N,M,x){var g=x(92094),f=Function.prototype,p=f.call,l=g&&f.bind.bind(p,p);N.exports=g?l:function(i){return function(){return p.apply(i,arguments)}}},40367:function(N,M,x){var g=x(24700),f=x(61395),p=function(l){return f(l)?l:void 0};N.exports=function(l,i){return arguments.length<2?p(g[l]):g[l]&&g[l][i]}},26242:function(N,M,x){var g=x(84185),f=x(92785);N.exports=function(p,l){var i=p[l];return f(i)?void 0:g(i)}},24700:function(N,M,x){var g=function(f){return f&&f.Math==Math&&f};N.exports=g(typeof globalThis=="object"&&globalThis)||g(typeof window=="object"&&window)||g(typeof self=="object"&&self)||g(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},30266:function(N,M,x){var g=x(90838),f=x(18080),p=g({}.hasOwnProperty);N.exports=Object.hasOwn||function(i,o){return p(f(i),o)}},4428:function(N){N.exports={}},79234:function(N,M,x){var g=x(40632),f=x(10978),p=x(54076);N.exports=!g&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},54593:function(N,M,x){var g=x(90838),f=x(10978),p=x(78298),l=Object,i=g("".split);N.exports=f(function(){return!l("z").propertyIsEnumerable(0)})?function(o){return p(o)=="String"?i(o,""):l(o)}:l},11192:function(N,M,x){var g=x(90838),f=x(61395),p=x(57004),l=g(Function.toString);f(p.inspectSource)||(p.inspectSource=function(i){return l(i)}),N.exports=p.inspectSource},87943:function(N,M,x){var g=x(61351),f=x(24700),p=x(63188),l=x(61782),i=x(30266),o=x(57004),n=x(1512),t=x(4428),e="Object already initialized",r=f.TypeError,a=f.WeakMap,u,c,s,h=function(m){return s(m)?c(m):u(m,{})},d=function(m){return function(b){var w;if(!p(b)||(w=c(b)).type!==m)throw r("Incompatible receiver, "+m+" required");return w}};if(g||o.state){var v=o.state||(o.state=new a);v.get=v.get,v.has=v.has,v.set=v.set,u=function(m,b){if(v.has(m))throw r(e);return b.facade=m,v.set(m,b),b},c=function(m){return v.get(m)||{}},s=function(m){return v.has(m)}}else{var y=n("state");t[y]=!0,u=function(m,b){if(i(m,y))throw r(e);return b.facade=m,l(m,y,b),b},c=function(m){return i(m,y)?m[y]:{}},s=function(m){return i(m,y)}}N.exports={set:u,get:c,has:s,enforce:h,getterFor:d}},51405:function(N,M,x){var g=x(78298);N.exports=Array.isArray||function(p){return g(p)=="Array"}},61395:function(N,M,x){var g=x(79896),f=g.all;N.exports=g.IS_HTMLDDA?function(p){return typeof p=="function"||p===f}:function(p){return typeof p=="function"}},71478:function(N,M,x){var g=x(90838),f=x(10978),p=x(61395),l=x(19582),i=x(40367),o=x(11192),n=function(){},t=[],e=i("Reflect","construct"),r=/^\s*(?:class|function)\b/,a=g(r.exec),u=!r.exec(n),c=function(d){if(!p(d))return!1;try{return e(n,t,d),!0}catch(v){return!1}},s=function(d){if(!p(d))return!1;switch(l(d)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!a(r,o(d))}catch(v){return!0}};s.sham=!0,N.exports=!e||f(function(){var h;return c(c.call)||!c(Object)||!c(function(){h=!0})||h})?s:c},93415:function(N,M,x){var g=x(10978),f=x(61395),p=/#|\.prototype\./,l=function(e,r){var a=o[i(e)];return a==t?!0:a==n?!1:f(r)?g(r):!!r},i=l.normalize=function(e){return String(e).replace(p,".").toLowerCase()},o=l.data={},n=l.NATIVE="N",t=l.POLYFILL="P";N.exports=l},92785:function(N){N.exports=function(M){return M==null}},63188:function(N,M,x){var g=x(61395),f=x(79896),p=f.all;N.exports=f.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:g(l)||l===p}:function(l){return typeof l=="object"?l!==null:g(l)}},44193:function(N){N.exports=!1},1952:function(N,M,x){var g=x(40367),f=x(61395),p=x(36993),l=x(1076),i=Object;N.exports=l?function(o){return typeof o=="symbol"}:function(o){var n=g("Symbol");return f(n)&&p(n.prototype,i(o))}},90411:function(N,M,x){var g=x(86979);N.exports=function(f){return g(f.length)}},69541:function(N,M,x){var g=x(90838),f=x(10978),p=x(61395),l=x(30266),i=x(40632),o=x(24320).CONFIGURABLE,n=x(11192),t=x(87943),e=t.enforce,r=t.get,a=String,u=Object.defineProperty,c=g("".slice),s=g("".replace),h=g([].join),d=i&&!f(function(){return u(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),y=N.exports=function(m,b,w){c(a(b),0,7)==="Symbol("&&(b="["+s(a(b),/^Symbol\(([^)]*)\)/,"$1")+"]"),w&&w.getter&&(b="get "+b),w&&w.setter&&(b="set "+b),(!l(m,"name")||o&&m.name!==b)&&(i?u(m,"name",{value:b,configurable:!0}):m.name=b),d&&w&&l(w,"arity")&&m.length!==w.arity&&u(m,"length",{value:w.arity});try{w&&l(w,"constructor")&&w.constructor?i&&u(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch(S){}var P=e(m);return l(P,"source")||(P.source=h(v,typeof b=="string"?b:"")),m};Function.prototype.toString=y(function(){return p(this)&&r(this).source||n(this)},"toString")},47423:function(N){var M=Math.ceil,x=Math.floor;N.exports=Math.trunc||function(f){var p=+f;return(p>0?x:M)(p)}},71328:function(N,M,x){var g=x(40632),f=x(79234),p=x(64992),l=x(86444),i=x(59691),o=TypeError,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,e="enumerable",r="configurable",a="writable";M.f=g?p?function(c,s,h){if(l(c),s=i(s),l(h),typeof c=="function"&&s==="prototype"&&"value"in h&&a in h&&!h[a]){var d=t(c,s);d&&d[a]&&(c[s]=h.value,h={configurable:r in h?h[r]:d[r],enumerable:e in h?h[e]:d[e],writable:!1})}return n(c,s,h)}:n:function(c,s,h){if(l(c),s=i(s),l(h),f)try{return n(c,s,h)}catch(d){}if("get"in h||"set"in h)throw o("Accessors not supported");return"value"in h&&(c[s]=h.value),c}},65133:function(N,M,x){var g=x(40632),f=x(24442),p=x(47051),l=x(32590),i=x(67485),o=x(59691),n=x(30266),t=x(79234),e=Object.getOwnPropertyDescriptor;M.f=g?e:function(a,u){if(a=i(a),u=o(u),t)try{return e(a,u)}catch(c){}if(n(a,u))return l(!f(p.f,a,u),a[u])}},42385:function(N,M,x){var g=x(87073),f=x(72414),p=f.concat("length","prototype");M.f=Object.getOwnPropertyNames||function(i){return g(i,p)}},2443:function(N,M){M.f=Object.getOwnPropertySymbols},36993:function(N,M,x){var g=x(90838);N.exports=g({}.isPrototypeOf)},87073:function(N,M,x){var g=x(90838),f=x(30266),p=x(67485),l=x(13765).indexOf,i=x(4428),o=g([].push);N.exports=function(n,t){var e=p(n),r=0,a=[],u;for(u in e)!f(i,u)&&f(e,u)&&o(a,u);for(;t.length>r;)f(e,u=t[r++])&&(~l(a,u)||o(a,u));return a}},16740:function(N,M,x){var g=x(87073),f=x(72414);N.exports=Object.keys||function(l){return g(l,f)}},47051:function(N,M){"use strict";var x={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,f=g&&!x.call({1:2},1);M.f=f?function(l){var i=g(this,l);return!!i&&i.enumerable}:x},22319:function(N,M,x){var g=x(24442),f=x(61395),p=x(63188),l=TypeError;N.exports=function(i,o){var n,t;if(o==="string"&&f(n=i.toString)&&!p(t=g(n,i))||f(n=i.valueOf)&&!p(t=g(n,i))||o!=="string"&&f(n=i.toString)&&!p(t=g(n,i)))return t;throw l("Can't convert object to primitive value")}},1615:function(N,M,x){var g=x(40367),f=x(90838),p=x(42385),l=x(2443),i=x(86444),o=f([].concat);N.exports=g("Reflect","ownKeys")||function(t){var e=p.f(i(t)),r=l.f;return r?o(e,r(t)):e}},94920:function(N,M,x){var g=x(92785),f=TypeError;N.exports=function(p){if(g(p))throw f("Can't call method on "+p);return p}},68387:function(N,M,x){"use strict";var g=x(24700),f=x(42713),p=x(61395),l=x(4372),i=x(62679),o=x(35109),n=x(25465),t=g.Function,e=/MSIE .\./.test(i)||l&&function(){var r=g.Bun.version.split(".");return r.length<3||r[0]==0&&(r[1]<3||r[1]==3&&r[2]==0)}();N.exports=function(r,a){var u=a?2:1;return e?function(c,s){var h=n(arguments.length,1)>u,d=p(c)?c:t(c),v=h?o(arguments,u):[],y=h?function(){f(d,this,v)}:d;return a?r(y,s):r(y)}:r}},1512:function(N,M,x){var g=x(22959),f=x(57641),p=g("keys");N.exports=function(l){return p[l]||(p[l]=f(l))}},57004:function(N,M,x){var g=x(24700),f=x(57496),p="__core-js_shared__",l=g[p]||f(p,{});N.exports=l},22959:function(N,M,x){var g=x(44193),f=x(57004);(N.exports=function(p,l){return f[p]||(f[p]=l!==void 0?l:{})})("versions",[]).push({version:"3.29.1",mode:g?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},14003:function(N,M,x){var g=x(68497),f=x(10978);N.exports=!!Object.getOwnPropertySymbols&&!f(function(){var p=Symbol();return!String(p)||!(Object(p)instanceof Symbol)||!Symbol.sham&&g&&g<41})},41430:function(N,M,x){var g=x(80584),f=Math.max,p=Math.min;N.exports=function(l,i){var o=g(l);return o<0?f(o+i,0):p(o,i)}},67485:function(N,M,x){var g=x(54593),f=x(94920);N.exports=function(p){return g(f(p))}},80584:function(N,M,x){var g=x(47423);N.exports=function(f){var p=+f;return p!==p||p===0?0:g(p)}},86979:function(N,M,x){var g=x(80584),f=Math.min;N.exports=function(p){return p>0?f(g(p),9007199254740991):0}},18080:function(N,M,x){var g=x(94920),f=Object;N.exports=function(p){return f(g(p))}},96035:function(N,M,x){var g=x(24442),f=x(63188),p=x(1952),l=x(26242),i=x(22319),o=x(23476),n=TypeError,t=o("toPrimitive");N.exports=function(e,r){if(!f(e)||p(e))return e;var a=l(e,t),u;if(a){if(r===void 0&&(r="default"),u=g(a,e,r),!f(u)||p(u))return u;throw n("Can't convert object to primitive value")}return r===void 0&&(r="number"),i(e,r)}},59691:function(N,M,x){var g=x(96035),f=x(1952);N.exports=function(p){var l=g(p,"string");return f(l)?l:l+""}},60054:function(N,M,x){var g=x(23476),f=g("toStringTag"),p={};p[f]="z",N.exports=String(p)==="[object z]"},89112:function(N){var M=String;N.exports=function(x){try{return M(x)}catch(g){return"Object"}}},57641:function(N,M,x){var g=x(90838),f=0,p=Math.random(),l=g(1 .toString);N.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+l(++f+p,36)}},1076:function(N,M,x){var g=x(14003);N.exports=g&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},64992:function(N,M,x){var g=x(40632),f=x(10978);N.exports=g&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},25465:function(N){var M=TypeError;N.exports=function(x,g){if(x<g)throw M("Not enough arguments");return x}},61351:function(N,M,x){var g=x(24700),f=x(61395),p=g.WeakMap;N.exports=f(p)&&/native code/.test(String(p))},23476:function(N,M,x){var g=x(24700),f=x(22959),p=x(30266),l=x(57641),i=x(14003),o=x(1076),n=g.Symbol,t=f("wks"),e=o?n.for||n:n&&n.withoutSetter||l;N.exports=function(r){return p(t,r)||(t[r]=i&&p(n,r)?n[r]:e("Symbol."+r)),t[r]}},21261:function(N,M,x){"use strict";var g=x(26725),f=x(10978),p=x(51405),l=x(63188),i=x(18080),o=x(90411),n=x(96232),t=x(53008),e=x(54874),r=x(67207),a=x(23476),u=x(68497),c=a("isConcatSpreadable"),s=u>=51||!f(function(){var v=[];return v[c]=!1,v.concat()[0]!==v}),h=function(v){if(!l(v))return!1;var y=v[c];return y!==void 0?!!y:p(v)},d=!s||!r("concat");g({target:"Array",proto:!0,arity:1,forced:d},{concat:function(y){var m=i(this),b=e(m,0),w=0,P,S,O,A,E;for(P=-1,O=arguments.length;P<O;P++)if(E=P===-1?m:arguments[P],h(E))for(A=o(E),n(w+A),S=0;S<A;S++,w++)S in E&&t(b,w,E[S]);else n(w+1),t(b,w++,E);return b.length=w,b}})},98566:function(N,M,x){"use strict";var g=x(26725),f=x(51759);g({target:"Array",proto:!0,forced:[].forEach!=f},{forEach:f})},19177:function(N,M,x){"use strict";var g=x(26725),f=x(90838),p=x(54593),l=x(67485),i=x(10455),o=f([].join),n=p!=Object,t=n||!i("join",",");g({target:"Array",proto:!0,forced:t},{join:function(r){return o(l(this),r===void 0?",":r)}})},13515:function(N,M,x){"use strict";var g=x(26725),f=x(85291).map,p=x(67207),l=p("map");g({target:"Array",proto:!0,forced:!l},{map:function(o){return f(this,o,arguments.length>1?arguments[1]:void 0)}})},16869:function(N,M,x){var g=x(40632),f=x(24320).EXISTS,p=x(90838),l=x(43295),i=Function.prototype,o=p(i.toString),n=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,t=p(n.exec),e="name";g&&!f&&l(i,e,{configurable:!0,get:function(){try{return t(n,o(this))[1]}catch(r){return""}}})},7654:function(N,M,x){var g=x(26725),f=x(18080),p=x(16740),l=x(10978),i=l(function(){p(1)});g({target:"Object",stat:!0,forced:i},{keys:function(n){return p(f(n))}})},73257:function(N,M,x){var g=x(24700),f=x(88739),p=x(25517),l=x(51759),i=x(61782),o=function(t){if(t&&t.forEach!==l)try{i(t,"forEach",l)}catch(e){t.forEach=l}};for(var n in f)f[n]&&o(g[n]&&g[n].prototype);o(p)},81557:function(N,M,x){var g=x(26725),f=x(24700),p=x(68387),l=p(f.setInterval,!0);g({global:!0,bind:!0,forced:f.setInterval!==l},{setInterval:l})},72455:function(N,M,x){var g=x(26725),f=x(24700),p=x(68387),l=p(f.setTimeout,!0);g({global:!0,bind:!0,forced:f.setTimeout!==l},{setTimeout:l})},58241:function(N,M,x){x(81557),x(72455)},1989:function(N,M,x){var g=x(51789),f=x(80401),p=x(57667),l=x(21327),i=x(81866);function o(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}o.prototype.clear=g,o.prototype.delete=f,o.prototype.get=p,o.prototype.has=l,o.prototype.set=i,N.exports=o},38407:function(N,M,x){var g=x(27040),f=x(14125),p=x(82117),l=x(67518),i=x(54705);function o(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}o.prototype.clear=g,o.prototype.delete=f,o.prototype.get=p,o.prototype.has=l,o.prototype.set=i,N.exports=o},57071:function(N,M,x){var g=x(10852),f=x(55639),p=g(f,"Map");N.exports=p},83369:function(N,M,x){var g=x(24785),f=x(11285),p=x(96e3),l=x(49916),i=x(95265);function o(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}o.prototype.clear=g,o.prototype.delete=f,o.prototype.get=p,o.prototype.has=l,o.prototype.set=i,N.exports=o},46384:function(N,M,x){var g=x(38407),f=x(37465),p=x(63779),l=x(67599),i=x(44758),o=x(34309);function n(t){var e=this.__data__=new g(t);this.size=e.size}n.prototype.clear=f,n.prototype.delete=p,n.prototype.get=l,n.prototype.has=i,n.prototype.set=o,N.exports=n},11149:function(N,M,x){var g=x(55639),f=g.Uint8Array;N.exports=f},29932:function(N){function M(x,g){for(var f=-1,p=x==null?0:x.length,l=Array(p);++f<p;)l[f]=g(x[f],f,x);return l}N.exports=M},62488:function(N){function M(x,g){for(var f=-1,p=g.length,l=x.length;++f<p;)x[l+f]=g[f];return x}N.exports=M},44286:function(N){function M(x){return x.split("")}N.exports=M},86556:function(N,M,x){var g=x(89465),f=x(77813);function p(l,i,o){(o!==void 0&&!f(l[i],o)||o===void 0&&!(i in l))&&g(l,i,o)}N.exports=p},18470:function(N,M,x){var g=x(77813);function f(p,l){for(var i=p.length;i--;)if(g(p[i][0],l))return i;return-1}N.exports=f},3118:function(N,M,x){var g=x(13218),f=Object.create,p=function(){function l(){}return function(i){if(!g(i))return{};if(f)return f(i);l.prototype=i;var o=new l;return l.prototype=void 0,o}}();N.exports=p},21078:function(N,M,x){var g=x(62488),f=x(37285);function p(l,i,o,n,t){var e=-1,r=l.length;for(o||(o=f),t||(t=[]);++e<r;){var a=l[e];i>0&&o(a)?i>1?p(a,i-1,o,n,t):g(t,a):n||(t[t.length]=a)}return t}N.exports=p},28483:function(N,M,x){var g=x(25063),f=g();N.exports=f},97786:function(N,M,x){var g=x(71811),f=x(40327);function p(l,i){i=g(i,l);for(var o=0,n=i.length;l!=null&&o<n;)l=l[f(i[o++])];return o&&o==n?l:void 0}N.exports=p},13:function(N){function M(x,g){return x!=null&&g in Object(x)}N.exports=M},10313:function(N,M,x){var g=x(13218),f=x(25726),p=x(33498),l=Object.prototype,i=l.hasOwnProperty;function o(n){if(!g(n))return p(n);var t=f(n),e=[];for(var r in n)r=="constructor"&&(t||!i.call(n,r))||e.push(r);return e}N.exports=o},42980:function(N,M,x){var g=x(46384),f=x(86556),p=x(28483),l=x(59783),i=x(13218),o=x(81704),n=x(36390);function t(e,r,a,u,c){e!==r&&p(r,function(s,h){if(c||(c=new g),i(s))l(e,r,h,a,t,u,c);else{var d=u?u(n(e,h),s,h+"",e,r,c):void 0;d===void 0&&(d=s),f(e,h,d)}},o)}N.exports=t},59783:function(N,M,x){var g=x(86556),f=x(64626),p=x(77133),l=x(278),i=x(38517),o=x(35694),n=x(1469),t=x(29246),e=x(44144),r=x(23560),a=x(13218),u=x(68630),c=x(36719),s=x(36390),h=x(59881);function d(v,y,m,b,w,P,S){var O=s(v,m),A=s(y,m),E=S.get(A);if(E){g(v,m,E);return}var _=P?P(O,A,m+"",v,y,S):void 0,C=_===void 0;if(C){var k=n(A),T=!k&&e(A),I=!k&&!T&&c(A);_=A,k||T||I?n(O)?_=O:t(O)?_=l(O):T?(C=!1,_=f(A,!0)):I?(C=!1,_=p(A,!0)):_=[]:u(A)||o(A)?(_=O,o(O)?_=h(O):(!a(O)||r(O))&&(_=i(A))):C=!1}C&&(S.set(A,_),w(_,A,b,P,S),S.delete(A)),g(v,m,_)}N.exports=d},25970:function(N,M,x){var g=x(63012),f=x(79095);function p(l,i){return g(l,i,function(o,n){return f(l,n)})}N.exports=p},63012:function(N,M,x){var g=x(97786),f=x(10611),p=x(71811);function l(i,o,n){for(var t=-1,e=o.length,r={};++t<e;){var a=o[t],u=g(i,a);n(u,a)&&f(r,p(a,i),u)}return r}N.exports=l},10611:function(N,M,x){var g=x(34865),f=x(71811),p=x(65776),l=x(13218),i=x(40327);function o(n,t,e,r){if(!l(n))return n;t=f(t,n);for(var a=-1,u=t.length,c=u-1,s=n;s!=null&&++a<u;){var h=i(t[a]),d=e;if(h==="__proto__"||h==="constructor"||h==="prototype")return n;if(a!=c){var v=s[h];d=r?r(v,h,s):void 0,d===void 0&&(d=l(v)?v:p(t[a+1])?[]:{})}g(s,h,d),s=s[h]}return n}N.exports=o},14259:function(N){function M(x,g,f){var p=-1,l=x.length;g<0&&(g=-g>l?0:l+g),f=f>l?l:f,f<0&&(f+=l),l=g>f?0:f-g>>>0,g>>>=0;for(var i=Array(l);++p<l;)i[p]=x[p+g];return i}N.exports=M},80531:function(N,M,x){var g=x(62705),f=x(29932),p=x(1469),l=x(33448),i=1/0,o=g?g.prototype:void 0,n=o?o.toString:void 0;function t(e){if(typeof e=="string")return e;if(p(e))return f(e,t)+"";if(l(e))return n?n.call(e):"";var r=e+"";return r=="0"&&1/e==-i?"-0":r}N.exports=t},71811:function(N,M,x){var g=x(1469),f=x(15403),p=x(55514),l=x(79833);function i(o,n){return g(o)?o:f(o,n)?[o]:p(l(o))}N.exports=i},40180:function(N,M,x){var g=x(14259);function f(p,l,i){var o=p.length;return i=i===void 0?o:i,!l&&i>=o?p:g(p,l,i)}N.exports=f},74318:function(N,M,x){var g=x(11149);function f(p){var l=new p.constructor(p.byteLength);return new g(l).set(new g(p)),l}N.exports=f},64626:function(N,M,x){N=x.nmd(N);var g=x(55639),f=M&&!M.nodeType&&M,p=f&&!0&&N&&!N.nodeType&&N,l=p&&p.exports===f,i=l?g.Buffer:void 0,o=i?i.allocUnsafe:void 0;function n(t,e){if(e)return t.slice();var r=t.length,a=o?o(r):new t.constructor(r);return t.copy(a),a}N.exports=n},77133:function(N,M,x){var g=x(74318);function f(p,l){var i=l?g(p.buffer):p.buffer;return new p.constructor(i,p.byteOffset,p.length)}N.exports=f},278:function(N){function M(x,g){var f=-1,p=x.length;for(g||(g=Array(p));++f<p;)g[f]=x[f];return g}N.exports=M},25063:function(N){function M(x){return function(g,f,p){for(var l=-1,i=Object(g),o=p(g),n=o.length;n--;){var t=o[x?n:++l];if(f(i[t],t,i)===!1)break}return g}}N.exports=M},98805:function(N,M,x){var g=x(40180),f=x(62689),p=x(83140),l=x(79833);function i(o){return function(n){n=l(n);var t=f(n)?p(n):void 0,e=t?t[0]:n.charAt(0),r=t?g(t,1).join(""):n.slice(1);return e[o]()+r}}N.exports=i},99021:function(N,M,x){var g=x(85564),f=x(45357),p=x(30061);function l(i){return p(f(i,void 0,g),i+"")}N.exports=l},45050:function(N,M,x){var g=x(37019);function f(p,l){var i=p.__data__;return g(l)?i[typeof l=="string"?"string":"hash"]:i.map}N.exports=f},85924:function(N,M,x){var g=x(5569),f=g(Object.getPrototypeOf,Object);N.exports=f},222:function(N,M,x){var g=x(71811),f=x(35694),p=x(1469),l=x(65776),i=x(41780),o=x(40327);function n(t,e,r){e=g(e,t);for(var a=-1,u=e.length,c=!1;++a<u;){var s=o(e[a]);if(!(c=t!=null&&r(t,s)))break;t=t[s]}return c||++a!=u?c:(u=t==null?0:t.length,!!u&&i(u)&&l(s,u)&&(p(t)||f(t)))}N.exports=n},62689:function(N){var M="\\ud800-\\udfff",x="\\u0300-\\u036f",g="\\ufe20-\\ufe2f",f="\\u20d0-\\u20ff",p=x+g+f,l="\\ufe0e\\ufe0f",i="\\u200d",o=RegExp("["+i+M+p+l+"]");function n(t){return o.test(t)}N.exports=n},51789:function(N,M,x){var g=x(94536);function f(){this.__data__=g?g(null):{},this.size=0}N.exports=f},80401:function(N){function M(x){var g=this.has(x)&&delete this.__data__[x];return this.size-=g?1:0,g}N.exports=M},57667:function(N,M,x){var g=x(94536),f="__lodash_hash_undefined__",p=Object.prototype,l=p.hasOwnProperty;function i(o){var n=this.__data__;if(g){var t=n[o];return t===f?void 0:t}return l.call(n,o)?n[o]:void 0}N.exports=i},21327:function(N,M,x){var g=x(94536),f=Object.prototype,p=f.hasOwnProperty;function l(i){var o=this.__data__;return g?o[i]!==void 0:p.call(o,i)}N.exports=l},81866:function(N,M,x){var g=x(94536),f="__lodash_hash_undefined__";function p(l,i){var o=this.__data__;return this.size+=this.has(l)?0:1,o[l]=g&&i===void 0?f:i,this}N.exports=p},38517:function(N,M,x){var g=x(3118),f=x(85924),p=x(25726);function l(i){return typeof i.constructor=="function"&&!p(i)?g(f(i)):{}}N.exports=l},37285:function(N,M,x){var g=x(62705),f=x(35694),p=x(1469),l=g?g.isConcatSpreadable:void 0;function i(o){return p(o)||f(o)||!!(l&&o&&o[l])}N.exports=i},15403:function(N,M,x){var g=x(1469),f=x(33448),p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;function i(o,n){if(g(o))return!1;var t=typeof o;return t=="number"||t=="symbol"||t=="boolean"||o==null||f(o)?!0:l.test(o)||!p.test(o)||n!=null&&o in Object(n)}N.exports=i},37019:function(N){function M(x){var g=typeof x;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?x!=="__proto__":x===null}N.exports=M},27040:function(N){function M(){this.__data__=[],this.size=0}N.exports=M},14125:function(N,M,x){var g=x(18470),f=Array.prototype,p=f.splice;function l(i){var o=this.__data__,n=g(o,i);if(n<0)return!1;var t=o.length-1;return n==t?o.pop():p.call(o,n,1),--this.size,!0}N.exports=l},82117:function(N,M,x){var g=x(18470);function f(p){var l=this.__data__,i=g(l,p);return i<0?void 0:l[i][1]}N.exports=f},67518:function(N,M,x){var g=x(18470);function f(p){return g(this.__data__,p)>-1}N.exports=f},54705:function(N,M,x){var g=x(18470);function f(p,l){var i=this.__data__,o=g(i,p);return o<0?(++this.size,i.push([p,l])):i[o][1]=l,this}N.exports=f},24785:function(N,M,x){var g=x(1989),f=x(38407),p=x(57071);function l(){this.size=0,this.__data__={hash:new g,map:new(p||f),string:new g}}N.exports=l},11285:function(N,M,x){var g=x(45050);function f(p){var l=g(this,p).delete(p);return this.size-=l?1:0,l}N.exports=f},96e3:function(N,M,x){var g=x(45050);function f(p){return g(this,p).get(p)}N.exports=f},49916:function(N,M,x){var g=x(45050);function f(p){return g(this,p).has(p)}N.exports=f},95265:function(N,M,x){var g=x(45050);function f(p,l){var i=g(this,p),o=i.size;return i.set(p,l),this.size+=i.size==o?0:1,this}N.exports=f},24523:function(N,M,x){var g=x(15644),f=500;function p(l){var i=g(l,function(n){return o.size===f&&o.clear(),n}),o=i.cache;return i}N.exports=p},94536:function(N,M,x){var g=x(10852),f=g(Object,"create");N.exports=f},33498:function(N){function M(x){var g=[];if(x!=null)for(var f in Object(x))g.push(f);return g}N.exports=M},36390:function(N){function M(x,g){if(!(g==="constructor"&&typeof x[g]=="function")&&g!="__proto__")return x[g]}N.exports=M},37465:function(N,M,x){var g=x(38407);function f(){this.__data__=new g,this.size=0}N.exports=f},63779:function(N){function M(x){var g=this.__data__,f=g.delete(x);return this.size=g.size,f}N.exports=M},67599:function(N){function M(x){return this.__data__.get(x)}N.exports=M},44758:function(N){function M(x){return this.__data__.has(x)}N.exports=M},34309:function(N,M,x){var g=x(38407),f=x(57071),p=x(83369),l=200;function i(o,n){var t=this.__data__;if(t instanceof g){var e=t.__data__;if(!f||e.length<l-1)return e.push([o,n]),this.size=++t.size,this;t=this.__data__=new p(e)}return t.set(o,n),this.size=t.size,this}N.exports=i},83140:function(N,M,x){var g=x(44286),f=x(62689),p=x(676);function l(i){return f(i)?p(i):g(i)}N.exports=l},55514:function(N,M,x){var g=x(24523),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,l=g(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(f,function(n,t,e,r){o.push(e?r.replace(p,"$1"):t||n)}),o});N.exports=l},40327:function(N,M,x){var g=x(33448),f=1/0;function p(l){if(typeof l=="string"||g(l))return l;var i=l+"";return i=="0"&&1/l==-f?"-0":i}N.exports=p},676:function(N){var M="\\ud800-\\udfff",x="\\u0300-\\u036f",g="\\ufe20-\\ufe2f",f="\\u20d0-\\u20ff",p=x+g+f,l="\\ufe0e\\ufe0f",i="["+M+"]",o="["+p+"]",n="\\ud83c[\\udffb-\\udfff]",t="(?:"+o+"|"+n+")",e="[^"+M+"]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",u="\\u200d",c=t+"?",s="["+l+"]?",h="(?:"+u+"(?:"+[e,r,a].join("|")+")"+s+c+")*",d=s+c+h,v="(?:"+[e+o+"?",o,r,a,i].join("|")+")",y=RegExp(n+"(?="+n+")|"+v+d,"g");function m(b){return b.match(y)||[]}N.exports=m},85564:function(N,M,x){var g=x(21078);function f(p){var l=p==null?0:p.length;return l?g(p,1):[]}N.exports=f},79095:function(N,M,x){var g=x(13),f=x(222);function p(l,i){return l!=null&&f(l,i,g)}N.exports=p},29246:function(N,M,x){var g=x(98612),f=x(37005);function p(l){return f(l)&&g(l)}N.exports=p},68630:function(N,M,x){var g=x(44239),f=x(85924),p=x(37005),l="[object Object]",i=Function.prototype,o=Object.prototype,n=i.toString,t=o.hasOwnProperty,e=n.call(Object);function r(a){if(!p(a)||g(a)!=l)return!1;var u=f(a);if(u===null)return!0;var c=t.call(u,"constructor")&&u.constructor;return typeof c=="function"&&c instanceof c&&n.call(c)==e}N.exports=r},81704:function(N,M,x){var g=x(14636),f=x(10313),p=x(98612);function l(i){return p(i)?g(i,!0):f(i)}N.exports=l},15644:function(N,M,x){var g=x(83369),f="Expected a function";function p(l,i){if(typeof l!="function"||i!=null&&typeof i!="function")throw new TypeError(f);var o=function(){var n=arguments,t=i?i.apply(this,n):n[0],e=o.cache;if(e.has(t))return e.get(t);var r=l.apply(this,n);return o.cache=e.set(t,r)||e,r};return o.cache=new(p.Cache||g),o}p.Cache=g,N.exports=p},82492:function(N,M,x){var g=x(42980),f=x(21463),p=f(function(l,i,o){g(l,i,o)});N.exports=p},78718:function(N,M,x){var g=x(25970),f=x(99021),p=f(function(l,i){return l==null?{}:g(l,i)});N.exports=p},59881:function(N,M,x){var g=x(98363),f=x(81704);function p(l){return g(l,f(l))}N.exports=p},79833:function(N,M,x){var g=x(80531);function f(p){return p==null?"":g(p)}N.exports=f},73955:function(N,M,x){var g=x(79833),f=0;function p(l){var i=++f;return g(l)+i}N.exports=p},11700:function(N,M,x){var g=x(98805),f=g("toUpperCase");N.exports=f}}]);
|