UNPKG

vue-flow-editor

Version:

vue-flow-editor 是基于 Vue2.0 以及 G6@3.1.10 实现的流程编辑器。在线操作地址:

1 lines 1.75 MB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["G6"]=e():t["G6"]=e()})(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="5ab4")}({"0031":function(t,e,n){n("ac6a"),n("5df3"),n("f400");var r=n("0a4a"),i=n("4651"),o=n("3a21"),a=800;i.registerLayout("fruchtermanGroup",{getDefaultCfg:function(){return{maxIteration:1e3,center:[0,0],gravity:1,speed:1,groupGravity:1,nodeRepulsiveCoefficient:50,groupRepulsiveCoefficient:10,nodeAttractiveCoefficient:1,groupAttractiveCoefficient:1,preventGroupOverlap:!0,groupCollideStrength:.7}},init:function(t){var e=this;e.nodes=t.nodes,e.edges=t.edges,e.graph=t.graph,e.groupsData=e.graph.get("groups"),e.customGroup=e.graph.get("customGroup"),e.groupController=e.graph.get("customGroupControll")},execute:function(){var t=this,e=t.nodes,n=t.center;if(0!==e.length){if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);var r=new Map,i=new Map;e.forEach((function(t,e){r.set(t.id,t),i.set(t.id,e)})),t.nodeMap=r,t.nodeIndexMap=i,t.run(),t.graph.refreshPositions();var o=t.customGroup,a=o.get("children"),u=t.groupController,s=t.graph.get("groupType");a.forEach((function(e){var n=e.get("id"),r=t.groupMap.get(n);r.item=e;var i=u.getGroupPadding(n),o=u.calculationGroupPosition(r.nodeIds),a=o.x,c=o.y,f=o.width,h=o.height,l=e.findByClassName("group-title"),d=e.get("children")[0],p=0,g=0;if("circle"===s){var v=f>h?f/2:h/2,y=(f+2*a)/2,m=(h+2*c)/2;d.attr({x:y,y:m,r:v+i}),r.x=y,r.y=m,r.size=2*(v+i),p=y,g=m-v-i}else if("rect"===s){var x=u.styles.default,b=i*x.disCoefficient,w=f+2*b,_=h+2*b,M=a-b,k=c-b;d.attr({x:M,y:k,width:w,height:_}),r.x=M,r.y=k,r.size=[w,_],p=a,g=c}if(l){var S=r.groupData.title,A=0,P=0;S&&(A=S.offsetox||0,P=S.offsetoy||0,S.offsetX=A,S.offsetY=P,"rect"===s&&(S.offsetX=0,S.offsetY=0));var E=p+A,C=g+P;"rect"===s&&(E=p,C=g),l.attr({x:E,y:C}),r.titlePos=[E,C]}})),t.graph.paint()}},run:function(){var t=this,e=t.nodes,n=t.groupsData,r=t.edges,i=t.maxIteration,o=t.width;o||"undefined"===typeof window||(o=window.innerWidth);var u=t.height;u||"undefined"===typeof u||(u=window.innerHeight);var s=t.center,c=t.nodeMap,f=t.nodeIndexMap,h=o/10,l=Math.sqrt(o*u/(e.length+1)),d=t.gravity,p=t.speed,g=new Map;t.groupMap=g,e.forEach((function(t){if(void 0===g.get(t.groupId)){var e,r;n.forEach((function(n){n.id===t.groupId&&(e=n.parentId,r=n)}));var i={name:t.groupId,cx:0,cy:0,count:0,parentId:e,nodeIds:[],groupData:r};g.set(t.groupId,i)}var o=g.get(t.groupId);o.nodeIds.push(t.id),o.cx+=t.x,o.cy+=t.y,o.count++})),g.forEach((function(t){t.cx/=t.count,t.cy/=t.count})),t.DFSSetGroups();for(var v=function(n){var i=[];e.forEach((function(t,e){i[e]={x:0,y:0}})),t.getDisp(e,r,c,f,i,l);var o=t.groupGravity||d;e.forEach((function(e,n){var r=g.get(e.groupId),a=Math.sqrt((e.x-r.cx)*(e.x-r.cx)+(e.y-r.cy)*(e.y-r.cy)),u=t.groupAttractiveCoefficient*l*o;i[n].x-=u*(e.x-r.cx)/a,i[n].y-=u*(e.y-r.cy)/a})),g.forEach((function(t){t.cx=0,t.cy=0,t.count=0})),e.forEach((function(t){var e=g.get(t.groupId);e.cx+=t.x,e.cy+=t.y,e.count++})),g.forEach((function(t){t.cx/=t.count,t.cy/=t.count})),e.forEach((function(t,e){var n=.01*l*d;i[e].x-=n*(t.x-s[0]),i[e].y-=n*(t.y-s[1])})),e.forEach((function(t,e){i[e].dx*=p/a,i[e].dy*=p/a})),e.forEach((function(t,e){var n=Math.sqrt(i[e].x*i[e].x+i[e].y*i[e].y);if(n>0){var r=Math.min(h*(p/a),n);t.x+=i[e].x/n*r,t.y+=i[e].y/n*r}}))},y=0;y<i;y++)v(y)},getDisp:function(t,e,n,r,i,o){var a=this;a.calRepulsive(t,i,o),a.calAttractive(e,n,r,i,o),a.calGroupRepulsive(i,o)},calRepulsive:function(t,e,n){var r=this;t.forEach((function(i,o){e[o]={x:0,y:0},t.forEach((function(t,a){if(o!==a){var u=i.x-t.x,s=i.y-t.y,c=u*u+s*s;0===c&&(c=1);var f=r.nodeRepulsiveCoefficient*(n*n)/c;e[o].x+=u*f,e[o].y+=s*f}}))}))},calAttractive:function(t,e,n,r,i){var o=this;t.forEach((function(t){var a=n.get(t.source),u=n.get(t.target);if(a!==u){var s=e.get(t.source),c=e.get(t.target),f=c.x-s.x,h=c.y-s.y,l=Math.sqrt(f*f+h*h),d=o.nodeAttractiveCoefficient*l*l/i;r[u].x-=f/l*d,r[u].y-=h/l*d,r[a].x+=f/l*d,r[a].y+=h/l*d}}))},calGroupRepulsive:function(t,e){var n=this,r=n.groupMap,i=n.nodeIndexMap;r.forEach((function(o,a){var u={x:0,y:0};r.forEach((function(t,r){if(a!==r){var i=o.cx-t.cx,s=o.cy-t.cy,c=i*i+s*s;0===c&&(c=1);var f=n.groupRepulsiveCoefficient*(e*e)/c;u.x+=i*f,u.y+=s*f}}));var s=o.nodeIds;s.forEach((function(e){var n=i.get(e);t[n].x+=u.x,t[n].y+=u.y}))}))},DFSSetGroups:function(){var t=this,e=t.groupMap;e.forEach((function(n){var r=n.parentId;if(r){var i;t.groupsData.forEach((function(t){t.id===n.groupId&&(i=t.parentId)}));var o=e.get(r);if(o)n.nodeIds.forEach((function(t){o.nodeIds.push(t)}));else{var a={name:r,cx:0,cy:0,count:0,parentId:i,nodeIds:n.nodeIds};e.set(r,a)}}}))},BFSDivide:function(t,e,n){var i=this,o=r.forceManyBody();o.strength(30);var a=r.forceSimulation().nodes(n).force("center",r.forceCenter(t/2,e/2)).force("charge",o).alpha(.3).alphaDecay(.01).alphaMin(.001).on("tick",(function(){n.forEach((function(t){var e=t.nodes;e.forEach((function(e){e.x+=t.x-t.ox,e.y+=t.y-t.oy})),t.ox=t.x,t.oy=t.y;var n=t.item,r=n.get("children")[0];r.attr({x:t.x,y:t.y})})),i.graph.refreshPositions()})).on("end",(function(){}));i.groupOverlapProcess(a)},groupOverlapProcess:function(t){var e=this,n=e.nodeSize,i=e.groupCollideStrength;if(n)if(isNaN(n)){if(2===n.length){var a=n[0]>n[1]?n[0]:n[1];n=a/2}}else n/=2;else n=function(t){return t.size?o(t.size)?t.size[0]/2:t.size/2:10};t.force("collisionForce",r.forceCollide(n).strength(i))}})},"004e":function(t,e,n){var r=n("76e9"),i=n("8d20"),o=n("cd9d");function a(t){return t&&t.length?r(t,o,i):void 0}t.exports=a},"00d0":function(t,e,n){n("6b54");var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};t.exports=i},"00fd":function(t,e,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,u=r?r.toStringTag:void 0;function s(t){var e=o.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(s){}var i=a.call(t);return r&&(e?t[u]=n:delete t[u]),i}t.exports=s},"014b":function(t,e,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),u=n("9138"),s=n("ebfd").KEY,c=n("294c"),f=n("dbdb"),h=n("45f2"),l=n("62a0"),d=n("5168"),p=n("ccb9"),g=n("6718"),v=n("47ee"),y=n("9003"),m=n("e4ae"),x=n("f772"),b=n("241e"),w=n("36c3"),_=n("1bc3"),M=n("aebd"),k=n("a159"),S=n("0395"),A=n("bf0b"),P=n("9aa9"),E=n("d9f6"),C=n("c3a1"),O=A.f,I=E.f,j=S.f,N=r.Symbol,T=r.JSON,L=T&&T.stringify,B="prototype",D=d("_hidden"),R=d("toPrimitive"),F={}.propertyIsEnumerable,z=f("symbol-registry"),q=f("symbols"),Y=f("op-symbols"),X=Object[B],G="function"==typeof N&&!!P.f,U=r.QObject,W=!U||!U[B]||!U[B].findChild,V=o&&c((function(){return 7!=k(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=O(X,e);r&&delete X[e],I(t,e,n),r&&t!==X&&I(X,e,r)}:I,H=function(t){var e=q[t]=k(N[B]);return e._k=t,e},Z=G&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},Q=function(t,e,n){return t===X&&Q(Y,e,n),m(t),e=_(e,!0),m(n),i(q,e)?(n.enumerable?(i(t,D)&&t[D][e]&&(t[D][e]=!1),n=k(n,{enumerable:M(0,!1)})):(i(t,D)||I(t,D,M(1,{})),t[D][e]=!0),V(t,e,n)):I(t,e,n)},$=function(t,e){m(t);var n,r=v(e=w(e)),i=0,o=r.length;while(o>i)Q(t,n=r[i++],e[n]);return t},K=function(t,e){return void 0===e?k(t):$(k(t),e)},J=function(t){var e=F.call(this,t=_(t,!0));return!(this===X&&i(q,t)&&!i(Y,t))&&(!(e||!i(this,t)||!i(q,t)||i(this,D)&&this[D][t])||e)},tt=function(t,e){if(t=w(t),e=_(e,!0),t!==X||!i(q,e)||i(Y,e)){var n=O(t,e);return!n||!i(q,e)||i(t,D)&&t[D][e]||(n.enumerable=!0),n}},et=function(t){var e,n=j(w(t)),r=[],o=0;while(n.length>o)i(q,e=n[o++])||e==D||e==s||r.push(e);return r},nt=function(t){var e,n=t===X,r=j(n?Y:w(t)),o=[],a=0;while(r.length>a)!i(q,e=r[a++])||n&&!i(X,e)||o.push(q[e]);return o};G||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(n){this===X&&e.call(Y,n),i(this,D)&&i(this[D],t)&&(this[D][t]=!1),V(this,t,M(1,n))};return o&&W&&V(X,t,{configurable:!0,set:e}),H(t)},u(N[B],"toString",(function(){return this._k})),A.f=tt,E.f=Q,n("6abf").f=S.f=et,n("355d").f=J,P.f=nt,o&&!n("b8e3")&&u(X,"propertyIsEnumerable",J,!0),p.f=function(t){return H(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:N});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)d(rt[it++]);for(var ot=C(d.store),at=0;ot.length>at;)g(ot[at++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return i(z,t+="")?z[t]:z[t]=N(t)},keyFor:function(t){if(!Z(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!G,"Object",{create:K,defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var ut=c((function(){P.f(1)}));a(a.S+a.F*ut,"Object",{getOwnPropertySymbols:function(t){return P.f(b(t))}}),T&&a(a.S+a.F*(!G||c((function(){var t=N();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(x(e)||void 0!==t)&&!Z(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Z(e))return e}),r[1]=e,L.apply(T,r)}}),N[B][R]||n("35e8")(N[B],R,N[B].valueOf),h(N,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},"01ce":function(t,e,n){t.exports={Graph:n("9671"),version:n("c3cd")}},"01eb":function(t,e,n){var r=n("33de");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){var e,n=this._arr,r=n[t].priority;while(0!==t){if(e=t>>1,n[e].priority<r)break;this._swap(t,e),t=e}},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),u=n("84f2"),s=n("41a0"),c=n("7f20"),f=n("38fd"),h=n("2b4c")("iterator"),l=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",v=function(){return this};t.exports=function(t,e,n,y,m,x,b){s(n,e,y);var w,_,M,k=function(t){if(!l&&t in E)return E[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",A=m==g,P=!1,E=t.prototype,C=E[h]||E[d]||m&&E[m],O=C||k(m),I=m?A?k("entries"):O:void 0,j="Array"==e&&E.entries||C;if(j&&(M=f(j.call(new t)),M!==Object.prototype&&M.next&&(c(M,S,!0),r||"function"==typeof M[h]||a(M,h,v))),A&&C&&C.name!==g&&(P=!0,O=function(){return C.call(this)}),r&&!b||!l&&!P&&E[h]||a(E,h,O),u[e]=O,u[S]=v,m)if(w={values:A?O:k(g),keys:x?O:k(p),entries:I},b)for(_ in w)_ in E||o(E,_,w[_]);else i(i.P+i.F*(l||P),e,w);return w}},"0293":function(t,e,n){var r=n("241e"),i=n("53e2");n("ce7e")("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},"02d0":function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,o=n.slice,a=function(t){for(var e=o.call(arguments,1),n=0;n<e.length;n++){var a=e[n],u=-1;while((u=i.call(t,a))>-1)r.call(t,u,1)}return t};t.exports=a},"02db":function(t,e,n){n("7f7f");var r=n("1c6a");t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this,r=this._attrs;r[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?n._setClip(e):"path"===t&&n._afterSetAttrPath?n._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&n.rotateAtStart(e):n.transform(e):r.globalAlpha=e:r[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,u=String(i(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0395":function(t,e,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?u(t):i(r(t))}},"03dd":function(t,e,n){var r=n("eac5"),i=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function u(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=u},"0519":function(t,e,n){(function(t){var r,i,o;n("5df3"),n("f400"),n("7cdf"),n("55dd"),n("8615"),n("a481"),n("ac6a"),n("456d"),n("c5f6"),n("28a5"),n("7f7f"),n("6b54");var a=n("8993");(function(n,u){"object"===a(e)&&"object"===a(t)?t.exports=u():(i=[],r=u,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o))})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Array.isArray?Array.isArray(t):Object(r["a"])(t,"Array")}},function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e["a"]=r},function(t,e,n){"use strict";var r=n(0),i=n(13);function o(t,e){var n;if(t)if(Object(r["a"])(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(Object(i["a"])(t))for(var u in t)if(t.hasOwnProperty(u)&&(n=e(t[u],u),!1===n))break}e["a"]=o},function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Object(r["a"])(t,"Function")}},function(t,e,n){"use strict";var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Number")};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return null===t||void 0===t};e["a"]=r},function(t,e,n){var r=n(33),i=r.mix;t.exports={assign:i}},function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Object(r["a"])(t,"String")}},function(t,e,n){"use strict";var r=n(15),i=n(4),o=function(t){if(!Object(r["a"])(t)||!Object(i["a"])(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e["a"]=o},function(t,e,n){"use strict";var r=n(6);e["a"]=function(t){return Object(r["a"])(t)?"":t.toString()}},function(t,e,n){var r=n(18),i=function(){function t(t,e){void 0===e&&(e={});var n=this;n.options=e,n.rootNode=r(t,e)}var e=t.prototype;return e.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){"use strict";var r=n(1),i=function(t,e){return!!Object(r["a"])(t)&&t.indexOf(e)>-1};e["a"]=i},function(t,e,n){"use strict";e["a"]=function(t){var e=a(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=function(t,e){if(!Object(i["a"])(t))return t;var n=[];return Object(r["a"])(t,(function(t,r){e(t,r)&&n.push(t)})),n};e["a"]=o},function(t,e,n){"use strict";var r=function(t){return"object"===a(t)&&null!==t};e["a"]=r},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}e["a"]=i},function(t,e,n){var r=n(30),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=function(t){return o.indexOf(t)>-1},u=i[0];t.exports=function(t,e,n){var o=e.direction||u;if(e.isHorizontal=a(o),o&&-1===i.indexOf(o))throw new TypeError("Invalid direction: "+o);if(o===i[0])n(t,e);else if(o===i[1])n(t,e),t.right2left();else if(o===i[2])n(t,e);else if(o===i[3])n(t,e),t.bottom2top();else if(o===i[4]||o===i[5]){var s=r(t,e),c=s.left,f=s.right;n(c,e),n(f,e),e.isHorizontal?c.right2left():c.bottom2top(),f.translate(c.x-f.x,c.y-f.y),t.x=c.x,t.y=f.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var l=e.fixedRoot;return void 0===l&&(l=!0),l&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(7),i=18,o=2*i,a=i,u={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||a},getVGap:function(t){return t.vgap||a},getChildren:function(t){return t.children},getHeight:function(t){return t.height||o},getWidth:function(t){var e=t.label||" ";return t.width||e.split("").length*i}};function s(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof s)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}function c(t,e,n){void 0===e&&(e={}),e=r.assign({},u,e);var i,o=new s(t,e),a=[o];if(!n&&!t.collapsed)while(i=a.pop())if(!i.data.collapsed){var c=e.getChildren(i.data),f=c?c.length:0;if(i.children=new Array(f),c&&f)for(var h=0;h<f;h++){var l=new s(c[h],e);i.children[h]=l,a.push(l),l.parent=i,l.depth=i.depth+1}}return o}r.assign(s.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){var e,n=this,r=[n];while(e=r.pop())t(e),r=r.concat(e.children)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){var e,n=this,r=[n];while(e=r.shift())t(e),r=r.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=c},function(t,e,n){"use strict";var r=n(6),i=n(20);function o(t,e){var n=Object(i["a"])(e),o=n.length;if(Object(r["a"])(t))return!o;for(var a=0;a<o;a+=1){var u=n[a];if(e[u]!==t[u]||!(u in t))return!1}return!0}e["a"]=o},function(t,e,n){"use strict";var r=n(2),i=n(3),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(r)})),e};e["a"]=o},function(t,e,n){"use strict";var r=n(1),i=Array.prototype.splice,o=function(t,e){if(!Object(r["a"])(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,u=e[n];n!==o&&u===a||(a=u,i.call(t,u,1))}return t};e["a"]=o},function(t,e,n){"use strict";var r=n(12),i=n(2),o=function(t){var e=[];return Object(i["a"])(t,(function(t){Object(r["a"])(e,t)||e.push(t)})),e};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(24),a=function(t,e){if(!e)return{0:t};if(!Object(i["a"])(e)){var n=Object(r["a"])(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}var a=Object(o["a"])(t,e);return a};e["a"]=a},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3),a=Object.prototype.hasOwnProperty;function u(t,e){if(!e||!Object(i["a"])(t))return{};var n,u={},s=Object(o["a"])(e)?e:function(t){return t[e]};return Object(r["a"])(t,(function(t){n=s(t),a.call(u,n)?u[n].push(t):u[n]=[t]})),u}e["a"]=u},function(t,e,n){"use strict";e["a"]=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(n)})),e};e["a"]=o},function(t,e,n){"use strict";var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")};e["a"]=i},function(t,e,n){"use strict";var r=Object.prototype,i=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||r;return t===n};e["a"]=i},function(t,e,n){"use strict";var r=n(15),i=n(1),o=n(8),a=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(Object(o["a"])(e)||Object(o["a"])(n))return!1;if(Object(i["a"])(e)||Object(i["a"])(n)){if(e.length!==n.length)return!1;for(var a=!0,u=0;u<e.length;u++)if(a=t(e[u],n[u]),!a)break;return a}if(Object(r["a"])(e)||Object(r["a"])(n)){var s=Object.keys(e),c=Object.keys(n);if(s.length!==c.length)return!1;for(a=!0,u=0;u<s.length;u++)if(a=t(e[s[u]],n[s[u]]),!a)break;return a}return!1};e["a"]=a},function(t,e,n){var r=n(18);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),u=e.getSide||function(t,e){return e<a?"right":"left"},s=0;s<o;s++){var c=t.children[s],f=u(c,s);"right"===f?i.children.push(c):n.children.push(c)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),i.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(32),dendrogram:n(114),indented:n(116),mindmap:n(118)};t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(113),a=n(17),u=n(7),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return a(t.rootNode,t.options,o)},e}(i),c={};function f(t,e){return e=u.assign({},c,e),new s(t,e).execute()}t.exports=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);n.d(e,"contains",(function(){return r["a"]})),n.d(e,"includes",(function(){return r["a"]}));var i=n(34);n.d(e,"difference",(function(){return i["a"]}));var o=n(35);n.d(e,"find",(function(){return o["a"]}));var a=n(36);n.d(e,"findIndex",(function(){return a["a"]}));var u=n(37);n.d(e,"firstValue",(function(){return u["a"]}));var s=n(38);n.d(e,"flatten",(function(){return s["a"]}));var c=n(39);n.d(e,"flattenDeep",(function(){return c["a"]}));var f=n(40);n.d(e,"getRange",(function(){return f["a"]}));var h=n(41);n.d(e,"pull",(function(){return h["a"]}));var l=n(21);n.d(e,"pullAt",(function(){return l["a"]}));var d=n(42);n.d(e,"reduce",(function(){return d["a"]}));var p=n(43);n.d(e,"remove",(function(){return p["a"]}));var g=n(44);n.d(e,"sortBy",(function(){return g["a"]}));var v=n(45);n.d(e,"union",(function(){return v["a"]}));var y=n(22);n.d(e,"uniq",(function(){return y["a"]}));var m=n(46);n.d(e,"valuesOfKey",(function(){return m["a"]}));var x=n(47);n.d(e,"head",(function(){return x["a"]}));var b=n(48);n.d(e,"last",(function(){return b["a"]}));var w=n(49);n.d(e,"startsWith",(function(){return w["a"]}));var _=n(50);n.d(e,"endsWith",(function(){return _["a"]}));var M=n(14);n.d(e,"filter",(function(){return M["a"]}));var k=n(51);n.d(e,"every",(function(){return k["a"]}));var S=n(52);n.d(e,"some",(function(){return S["a"]}));var A=n(53);n.d(e,"group",(function(){return A["a"]}));var P=n(24);n.d(e,"groupBy",(function(){return P["a"]}));var E=n(23);n.d(e,"groupToMap",(function(){return E["a"]}));var C=n(54);n.d(e,"getWrapBehavior",(function(){return C["a"]}));var O=n(55);n.d(e,"wrapBehavior",(function(){return O["a"]}));var I=n(56);n.d(e,"number2color",(function(){return I["a"]}));var j=n(57);n.d(e,"parseRadius",(function(){return j["a"]}));var N=n(58);n.d(e,"clamp",(function(){return N["a"]}));var T=n(59);n.d(e,"fixedBase",(function(){return T["a"]}));var L=n(60);n.d(e,"isDecimal",(function(){return L["a"]}));var B=n(61);n.d(e,"isEven",(function(){return B["a"]}));var D=n(62);n.d(e,"isInteger",(function(){return D["a"]}));var R=n(63);n.d(e,"isNegative",(function(){return R["a"]}));var F=n(64);n.d(e,"isNumberEqual",(function(){return F["a"]}));var z=n(65);n.d(e,"isOdd",(function(){return z["a"]}));var q=n(66);n.d(e,"isPositive",(function(){return q["a"]}));var Y=n(67);n.d(e,"maxBy",(function(){return Y["a"]}));var X=n(68);n.d(e,"minBy",(function(){return X["a"]}));var G=n(69);n.d(e,"mod",(function(){return G["a"]}));var U=n(70);n.d(e,"toDegree",(function(){return U["a"]}));var W=n(71);n.d(e,"toInteger",(function(){return W["a"]}));var V=n(72);n.d(e,"toRadian",(function(){return V["a"]}));var H=n(73);n.d(e,"forIn",(function(){return H["a"]}));var Z=n(25);n.d(e,"has",(function(){return Z["a"]}));var Q=n(74);n.d(e,"hasKey",(function(){return Q["a"]}));var $=n(75);n.d(e,"hasValue",(function(){return $["a"]}));var K=n(20);n.d(e,"keys",(function(){return K["a"]}));var J=n(19);n.d(e,"isMatch",(function(){return J["a"]}));var tt=n(26);n.d(e,"values",(function(){return tt["a"]}));var et=n(76);n.d(e,"lowerCase",(function(){return et["a"]}));var nt=n(77);n.d(e,"lowerFirst",(function(){return nt["a"]}));var rt=n(78);n.d(e,"substitute",(function(){return rt["a"]}));var it=n(79);n.d(e,"upperCase",(function(){return it["a"]}));var ot=n(80);n.d(e,"upperFirst",(function(){return ot["a"]}));var at=n(27);n.d(e,"getType",(function(){return at["a"]}));var ut=n(81);n.d(e,"isArguments",(function(){return ut["a"]}));var st=n(0);n.d(e,"isArray",(function(){return st["a"]}));var ct=n(1);n.d(e,"isArrayLike",(function(){return ct["a"]}));var ft=n(82);n.d(e,"isBoolean",(function(){return ft["a"]}));var ht=n(83);n.d(e,"isDate",(function(){return ht["a"]}));var lt=n(84);n.d(e,"isError",(function(){return lt["a"]}));var dt=n(3);n.d(e,"isFunction",(function(){return dt["a"]}));var pt=n(85);n.d(e,"isFinite",(function(){return pt["a"]}));var gt=n(6);n.d(e,"isNil",(function(){return gt["a"]}));var vt=n(86);n.d(e,"isNull",(function(){return vt["a"]}));var yt=n(5);n.d(e,"isNumber",(function(){return yt["a"]}));var mt=n(13);n.d(e,"isObject",(function(){return mt["a"]}));var xt=n(15);n.d(e,"isObjectLike",(function(){return xt["a"]}));var bt=n(9);n.d(e,"isPlainObject",(function(){return bt["a"]}));var wt=n(28);n.d(e,"isPrototype",(function(){return wt["a"]}));var _t=n(87);n.d(e,"isRegExp",(function(){return _t["a"]}));var Mt=n(8);n.d(e,"isString",(function(){return Mt["a"]}));var kt=n(4);n.d(e,"isType",(function(){return kt["a"]}));var St=n(88);n.d(e,"isUndefined",(function(){return St["a"]}));var At=n(89);n.d(e,"isElement",(function(){return At["a"]}));var Pt=n(90);n.d(e,"requestAnimationFrame",(function(){return Pt["a"]}));var Et=n(91);n.d(e,"clearAnimationFrame",(function(){return Et["a"]}));var Ct=n(92);n.d(e,"augment",(function(){return Ct["a"]}));var Ot=n(93);n.d(e,"clone",(function(){return Ot["a"]}));var It=n(94);n.d(e,"debounce",(function(){return It["a"]}));var jt=n(95);n.d(e,"memoize",(function(){return jt["a"]}));var Nt=n(96);n.d(e,"deepMix",(function(){return Nt["a"]}));var Tt=n(2);n.d(e,"each",(function(){return Tt["a"]}));var Lt=n(97);n.d(e,"extend",(function(){return Lt["a"]}));var Bt=n(98);n.d(e,"indexOf",(function(){return Bt["a"]}));var Dt=n(99);n.d(e,"isEmpty",(function(){return Dt["a"]}));var Rt=n(29);n.d(e,"isEqual",(function(){return Rt["a"]}));var Ft=n(100);n.d(e,"isEqualWith",(function(){return Ft["a"]}));var zt=n(101);n.d(e,"map",(function(){return zt["a"]}));var qt=n(102);n.d(e,"mapValues",(function(){return qt["a"]}));var Yt=n(16);n.d(e,"mix",(function(){return Yt["a"]})),n.d(e,"assign",(function(){return Yt["a"]}));var Xt=n(103);n.d(e,"get",(function(){return Xt["a"]}));var Gt=n(104);n.d(e,"set",(function(){return Gt["a"]}));var Ut=n(105);n.d(e,"pick",(function(){return Ut["a"]}));var Wt=n(106);n.d(e,"throttle",(function(){return Wt["a"]}));var Vt=n(107);n.d(e,"toArray",(function(){return Vt["a"]}));var Ht=n(10);n.d(e,"toString",(function(){return Ht["a"]}));var Zt=n(108);n.d(e,"uniqueId",(function(){return Zt["a"]}));var Qt=n(109);n.d(e,"noop",(function(){return Qt["a"]}));var $t=n(110);n.d(e,"identity",(function(){return $t["a"]}));var Kt=n(111);n.d(e,"size",(function(){return Kt["a"]}));var Jt=n(112);n.d(e,"Cache",(function(){return Jt["a"]}))},function(t,e,n){"use strict";var r=n(14),i=n(12),o=function(t,e){return void 0===e&&(e=[]),Object(r["a"])(t,(function(t){return!Object(i["a"])(e,t)}))};e["a"]=o},function(t,e,n){"use strict";var r=n(3),i=n(19),o=n(0),a=n(9);function u(t,e){if(!Object(o["a"])(t))return null;var n;if(Object(r["a"])(e)&&(n=e),Object(a["a"])(e)&&(n=function(t){return Object(i["a"])(t,e)}),n)for(var u=0;u<t.length;u+=1)if(n(t[u]))return t[u];return null}e["a"]=u},function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}e["a"]=r},function(t,e,n){"use strict";var r=n(6),i=n(0),o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],u=a[e];if(!Object(r["a"])(u)){n=Object(i["a"])(u)?u[0]:u;break}}return n};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=function(t){if(!Object(r["a"])(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=function t(e,n){if(void 0===n&&(n=[]),Object(r["a"])(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=n(14),o=function(t){if(t=Object(i["a"])(t,(function(t){return!isNaN(t)})),!t.length)return{min:0,max:0};if(Object(r["a"])(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t),a=Math.min.apply(null,t);return{min:a,max:o}};e["a"]=o},function(t,e,n){"use strict";var r=Array.prototype,i=r.splice,o=r.indexOf,a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var a=e[r],u=-1;while((u=o.call(t,a))>-1)i.call(t,u,1)}return t};e["a"]=a},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(9),a=function(t,e,n){if(!Object(i["a"])(t)&&!Object(o["a"])(t))return t;var a=n;return Object(r["a"])(t,(function(t,n){a=e(a,t,n)})),a};e["a"]=a},function(t,e,n){"use strict";var r=n(1),i=n(21),o=function(t,e){var n=[];if(!Object(r["a"])(t))return n;var o=-1,a=[],u=t.length;while(++o<u){var s=t[o];e(s,o,t)&&(n.push(s),a.push(o))}return Object(i["a"])(t,a),n};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(3);function a(t,e){var n;if(Object(o["a"])(e))n=function(t,n){return e(t)-e(n)};else{var a=[];Object(i["a"])(e)?a.push(e):Object(r["a"])(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}e["a"]=a},function(t,e,n){"use strict";var r=n(22),i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(r["a"])([].concat.apply([],t))};e["a"]=i},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(6);e["a"]=function(t,e){var n=[],a={};return t.forEach((function(t){var u=t[e];Object(o["a"])(u)||(Object(i["a"])(u)||(u=[u]),Object(r["a"])(u,(function(t){a[t]||(n.push(t),a[t]=!0)})))})),n}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t))return t[0]}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t)){var e=t;return e[e.length-1]}}},function(t,e,n){"use strict";var r=n(0),i=n(8);function o(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[0]===e}e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(8);function o(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[t.length-1]===e}e["a"]=o},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e["a"]=r},function(t,e,n){"use strict";var r=n(23);e["a"]=function(t,e){if(!e)return[t];var n=Object(r["a"])(t,e),i=[];for(var o in n)i.push(n[o]);return i}},function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}e["a"]=r},function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}e["a"]=r},function(t,e,n){"use strict";var r={};function i(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}e["a"]=i},function(t,e,n){"use strict";var r=n(0);function i(t){var e=0,n=0,i=0,o=0;return Object(r["a"])(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}e["a"]=i},function(t,e,n){"use strict";var r=function(t,e,n){return t<e?e:t>n?n:t};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};e["a"]=r},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%1!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r["a"])(t)&&t%1===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t<0};e["a"]=i},function(t,e,n){"use strict";e["a"]=i;var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t>0};e["a"]=i},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,a,u=t[0];return n=Object(o["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){a=Object(o["a"])(e)?e(t):t[e],a>n&&(u=t,n=a)})),u}}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,a,u=t[0];return n=Object(o["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){a=Object(o["a"])(e)?e(t):t[e],a<n&&(u=t,n=a)})),u}}},function(t,e,n){"use strict";var r=function(t,e){return(t%e+e)%e};e["a"]=r},function(t,e,n){"use strict";var r=180/Math.PI,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";e["a"]=parseInt},function(t,e,n){"use strict";var r=Math.PI/180,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";var r=n(2);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(25);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(12),i=n(26);e["a"]=function(t,e){return Object(r["a"])(Object(i["a"])(t),e)}},function(t,e,n){"use strict";var r=n(10),i=function(t){return Object(r["a"])(t).toLowerCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(10),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toLowerCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";function r(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}e["a"]=r},function(t,e,n){"use strict";var r=n(10),i=function(t){return Object(r["a"])(t).toUpperCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(10),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toUpperCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Arguments")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Boolean")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Date")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Error")};e["a"]=i},function(t,e,n){"use strict";var r=n(5);e["a"]=function(t){return Object(r["a"])(t)&&isFinite(t)}},function(t,e,n){"use strict";var r=function(t){return null===t};e["a"]=r},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"RegExp")};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return void 0===t};e["a"]=r},function(t,e,n){"use strict";var r=function(t){return t instanceof Element||t instanceof HTMLDocument};e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}e["a"]=r},function(t,e,n){"use strict";var r=n(16),i=n(3),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];Object(i["a"])(a)&&(a=a.prototype),Object(r["a"])(n.prototype,a)}};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=function t(e){if("object"!==a(e)||null===e)return e;var n;if(Object(r["a"])(e)){n=[];for(var i=0,o=e.length;i<o;i++)"object"===a(e[i])&&null!=e[i]?n[i]=t(e[i]):n[i]=e[i]}else for(var u in n={},e)"object"===a(e[u])&&null!=e[u]?n[u]=t(e[u]):n[u]=e[u];return n};e["a"]=i},function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},u=n&&!r;clearTimeout(r),r=setTimeout(a,e),u&&t.apply(i,o)}}e["a"]=r},function(t,e,n){"use strict";var r=n(3);e["a"]=function(t,e){if(!Object(r["a"])(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var u=t.apply(this,r);return a.set(o,u),u};return n.cache=new Map,n}},function(t,e,n){"use strict";var r=n(0),i=n(9),o=5;function a(t,e,n,u){for(var s in n=n||0,u=u||o,e)if(e.hasOwnProperty(s)){var c=e[s];null!==c&&Object(i["a"])(c)?(Object(i["a"])(t[s])||(t[s]={}),n<u?a(t[s],c,n+1,u):t[s]=e[s]):Object(r["a"])(c)?(t[s]=[],t[s]=t[s].concat(c)):void 0!==c&&(t[s]=c)}}var u=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)a(t,e[r]);return t};e["a"]=u},function(t,e,n){"use strict";var r=n(16),i=n(3),o=function(t,e,n,o){Object(i["a"])(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},u=a(e.prototype,t);return t.prototype=Object(r["a"])(u,t.prototype),t.superclass=a(e.prototype,e),Object(r["a"])(u,n),Object(r["a"])(t,o),t};e["a"]=o},function(t,e,n){"use strict";var r=n(1),i=function(t,e){if(!Object(r["a"])(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i};e["a"]=i},function(t,e,n){"use strict";var r=n(6),i=n(1),o=n(27),a=n(28),u=Object.prototype.hasOwnProperty;function s(t){if(Object(r["a"])(t))return!0;if(Object(i["a"])(t))return!t.length;var e=Object(o["a"])(t);if("Map"===e||"Set"===e)return!t.size;if(Object(a["a"])(t))return!Object.keys(t).length;for(var n in t)if(u.call(t,n))return!1;return!0}e["a"]=s},function(t,e,n){"use strict";var r=n(3),i=n(29);e["a"]=function(t,e,n){return Object(r["a"])(n)?!!n(t,e):Object(i["a"])(t,e)}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=function(t,e){if(!Object(i["a"])(t))return t;var n=[];return Object(r["a"])(t,(function(t,r){n.push(e(t,r))})),n};e["a"]=o},function(t,e,n){"use strict";var r=n(6),i=n(13),o=function(t){return t};e["a"]=function(t,e){void 0===e&&(e=o);var n={};return Object(i["a"])(t)&&!Object(r["a"])(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";var r=n(8);e["a"]=function(t,e,n){var i=0,o=Object(r["a"])(e)?e.split("."):e;while(t&&i<o.length)t=t[o[i++]];return void 0===t||i<o.length?n:t}},function(t,e,n){"use strict";var r=n(13),i=n(8),o=n(5);e["a"]=function(t,e,n){var a=t,u=Object(i["a"])(e)?e.split("."):e;return u.forEach((function(t,e){e<u.length-1?(Object(r["a"])(a[t])||(a[t]=Object(o["a"])(u[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},function(t,e,n){"use strict";var r=n(2),i=n(9),o=Object.prototype.hasOwnProperty;e["a"]=function(t,e){if(null===t||!Object(i["a"])(t))return{};var n={};return Object(r["a"])(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";e["a"]=function(t,e,n){var r,i,o,a,u=0;n||(n={});var s=function(){u=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},c=function(){var c=Date.now();u||!1!==n.leading||(u=c);var f=e-(c-u);return i=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),u=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(s,f)),a};return c.cancel=function(){clearTimeout(r),u=0,r=i=o=null},c}},function(t,e,n){"use strict";var r=n(1);e["a"]=function(t){return Object(r["a"])(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e["a"]=function(t){return t=t||"g",r[t]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e["a"]=function(){}},function(t,e,n){"use strict";e["a"]=function(t){return t}},function(t,e,n){"use strict";e["a"]=o;var r=n(6),i=n(1);function o(t){return Object(r["a"])(t)?0:Object(i["a"])(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e["a"]=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function o(t,e){var n=i(t,e);r(t,-n,e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){a(t,e.children[r],n)}))}function u(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){u(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){if(0!==t.cs){i(t.c[0]);for(var e=b(d(t.c[0].el),0,null),n=1;n<t.cs;++n){i(t.c[n]);var r=d(t.c[n].er);c(t,n,e),e=b(r,n,e)}v(t),s(t)}else s(t)}function s(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function c(t,e,n){var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;while(null!==r&&null!==o){d(r)>n.low&&(n=n.nxt);var u=i+r.prelim+r.w-(a+o.prelim);u>0&&(a+=u,f(t,e,n.index,u));var s=d(r),c=d(o);s<=c&&(r=l(r),null!==r&&(i+=r.mod)),s>=c&&(o=h(o),null!==o&&(a+=o.mod))}!r&&o?p(t,e,o,a):r&&!o&&g(t,e,r,i)}function f(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,m(t,e,n,r)}function h(t){return 0===t.cs?t.tl:t.c[0]}function l(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function p(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}function g(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}function v(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}function y(t,e){e+=t.mod,t.x=t.prelim+e,x(t);for(var n=0;n<t.cs;n++)y(t.c[n],e)}function m(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}function x(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}function b(t,e,n){while(null!==n&&t>=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}u(t,r);var w=n.fromNode(t,r);return i(w),y(w,0),a(w,t,r),o(t,r),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(115),a=n(17),u=n(7),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return t.rootNode.width=0,a(t.rootNode,t.options,o)},e}(i),c={};function f(t,e){return e=u.assign({},c,e),new s(t,e).execute()}t.exports=f},function(t,e,n){var r=n(7);function i(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function a(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,r){a(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e);var n,u=0;function s(t){if(!t)return null;t.width=0,t.depth&&t.depth>u&&(u=t.depth);var e=t.children,n=e.length,r=new i(t.height,[]);return e.forEach((function(t,e){var i=s(t);r.children.push(i),0===e&&(r.leftChild=i),e===n-1&&(r.rightChild=i)})),r.originNode=t,r.isLeaf=t.isLeaf(),r}function c(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=u;else{var e=t.children.map((function(t){return c(t)})),n=Math.min.apply(null,e);t.drawingDepth=n-1}return t.drawingDepth}function f(t){t.x=t.drawingDepth*e.rankSep,t.isLeaf?(t.y=0,n&&(t.y=n.y+n.height+e.nodeSep,t.originNode.parent!==n.originNode.parent&&(t.y+=e.subTreeSep)),n=t):(t.children.forEach((function(t){f(t)})),t.y=(t.leftChild.y+t.rightChild.y)/2)}var h=s(t);return c(h),f(h),a(h,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(117),a=n(30),u=n(7),s=["LR","RL","H"],c=s[0],f=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this,e=t.options,n=t.rootNode;e.isHorizontal=!0;var r=e.indent,i=e.direction||c;if(i&&-1===s.indexOf(i))throw new TypeError("Invalid direction: "+i);if(i===s[0])o(n,r);else if(i===s[1])o(n,r),n.right2left();else if(i===s[2]){var u=a(n,e),f=u.left,h=u.right;o(f,r),f.right2left(),o(h,r);var l=f.getBoundingBox();h.translate(l.width,0),n.x=h.x-n.width/2}return n},e}(i),h={};function l(t,e){return e=u.assign({},h,e),new f(t,e).execute()}t.exports=l},function(t,e){var n=20;function r(t,e,n){t.x+=n*t.depth,t.y=e?e.y+e.height:0}t.exports=function(t,e){void 0===e&&(e=n);var i=null;t.eachNode((function(t){r(t,i,e),i=t}))}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(119),a=n(17),u=n(7),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return a(t.rootNode,t.options,o)},e}(i),c={};function f(t,e){return e=u.assign({},c,e),new s(t,e).execute()}t.exports=f},function(t,e,n){var r=n(7);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach((fun