UNPKG

react-sigma

Version:

Lightweight but powerful library for drawing network graphs built on top of SigmaJS

1 lines 86.2 kB
var Sigma=function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(r,o,function(t){return n[t]}.bind(null,o));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=192)}([function(n,t,e){var r;try{r={cloneDeep:e(309),constant:e(54),defaults:e(310),each:e(79),filter:e(82),find:e(311),flatten:e(109),forEach:e(80),forIn:e(316),has:e(93),isUndefined:e(94),last:e(317),map:e(95),mapValues:e(318),max:e(319),merge:e(321),min:e(327),minBy:e(328),now:e(329),pick:e(330),range:e(335),reduce:e(97),sortBy:e(338),uniqueId:e(343),values:e(102),zipObject:e(344)}}catch(n){}r||(r=window._),n.exports=r},function(n,t){var e=Array.isArray;n.exports=e},function(n,t,e){"use strict";var r=e(0),o=e(5).Graph;function i(n,t,e,o){var i;do{i=r.uniqueId(o)}while(n.hasNode(i));return e.dummy=t,n.setNode(i,e),i}function u(n){return r.max(r.map(n.nodes(),(function(t){var e=n.node(t).rank;if(!r.isUndefined(e))return e})))}n.exports={addDummyNode:i,simplify:function(n){var t=(new o).setGraph(n.graph());return r.forEach(n.nodes(),(function(e){t.setNode(e,n.node(e))})),r.forEach(n.edges(),(function(e){var r=t.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);t.setEdge(e.v,e.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),t},asNonCompoundGraph:function(n){var t=new o({multigraph:n.isMultigraph()}).setGraph(n.graph());return r.forEach(n.nodes(),(function(e){n.children(e).length||t.setNode(e,n.node(e))})),r.forEach(n.edges(),(function(e){t.setEdge(e,n.edge(e))})),t},successorWeights:function(n){var t=r.map(n.nodes(),(function(t){var e={};return r.forEach(n.outEdges(t),(function(t){e[t.w]=(e[t.w]||0)+n.edge(t).weight})),e}));return r.zipObject(n.nodes(),t)},predecessorWeights:function(n){var t=r.map(n.nodes(),(function(t){var e={};return r.forEach(n.inEdges(t),(function(t){e[t.v]=(e[t.v]||0)+n.edge(t).weight})),e}));return r.zipObject(n.nodes(),t)},intersectRect:function(n,t){var e,r,o=n.x,i=n.y,u=t.x-o,a=t.y-i,c=n.width/2,s=n.height/2;if(!u&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*c>Math.abs(u)*s?(a<0&&(s=-s),e=s*u/a,r=s):(u<0&&(c=-c),e=c,r=c*a/u);return{x:o+e,y:i+r}},buildLayerMatrix:function(n){var t=r.map(r.range(u(n)+1),(function(){return[]}));return r.forEach(n.nodes(),(function(e){var o=n.node(e),i=o.rank;r.isUndefined(i)||(t[i][o.order]=e)})),t},normalizeRanks:function(n){var t=r.min(r.map(n.nodes(),(function(t){return n.node(t).rank})));r.forEach(n.nodes(),(function(e){var o=n.node(e);r.has(o,"rank")&&(o.rank-=t)}))},removeEmptyRanks:function(n){var t=r.min(r.map(n.nodes(),(function(t){return n.node(t).rank}))),e=[];r.forEach(n.nodes(),(function(r){var o=n.node(r).rank-t;e[o]||(e[o]=[]),e[o].push(r)}));var o=0,i=n.graph().nodeRankFactor;r.forEach(e,(function(t,e){r.isUndefined(t)&&e%i!=0?--o:o&&r.forEach(t,(function(t){n.node(t).rank+=o}))}))},addBorderNode:function(n,t,e,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=e,o.order=r);return i(n,"border",o,t)},maxRank:u,partition:function(n,t){var e={lhs:[],rhs:[]};return r.forEach(n,(function(n){t(n)?e.lhs.push(n):e.rhs.push(n)})),e},time:function(n,t){var e=r.now();try{return t()}finally{console.log(n+" time: "+(r.now()-e)+"ms")}},notime:function(n,t){return t()}}},function(n,t,e){var r;try{r={clone:e(196),constant:e(54),each:e(79),filter:e(82),has:e(93),isArray:e(1),isEmpty:e(273),isFunction:e(20),isUndefined:e(94),keys:e(10),map:e(95),reduce:e(97),size:e(276),transform:e(282),union:e(283),values:e(102)}}catch(n){}r||(r=window._),n.exports=r},function(n,t){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},function(n,t,e){var r;try{r=e(194)}catch(n){}r||(r=window.graphlib),n.exports=r},function(n,t,e){var r=e(62),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();n.exports=i},function(n,t){n.exports=function(n){return null!=n&&"object"==typeof n}},function(n,t,e){var r=e(20),o=e(48);n.exports=function(n){return null!=n&&o(n.length)&&!r(n)}},function(n,t,e){var r=e(253),o=e(263),i=e(14),u=e(1),a=e(270);n.exports=function(n){return"function"==typeof n?n:null==n?i:"object"==typeof n?u(n)?o(n[0],n[1]):r(n):a(n)}},function(n,t,e){var r=e(65),o=e(50),i=e(8);n.exports=function(n){return i(n)?r(n):o(n)}},function(n,t,e){var r=e(207),o=e(213);n.exports=function(n,t){var e=o(n,t);return r(e)?e:void 0}},function(n,t,e){var r=e(16),o=e(209),i=e(210),u="[object Null]",a="[object Undefined]",c=r?r.toStringTag:void 0;n.exports=function(n){return null==n?void 0===n?a:u:c&&c in Object(n)?o(n):i(n)}},function(n,t,e){var r=e(65),o=e(233),i=e(8);n.exports=function(n){return i(n)?r(n,!0):o(n)}},function(n,t){n.exports=function(n){return n}},function(n,t){n.exports=function(n,t){return n===t||n!=n&&t!=t}},function(n,t,e){var r=e(6).Symbol;n.exports=r},function(n,t,e){(function(n){var r=e(6),o=e(229),i=t&&!t.nodeType&&t,u=i&&"object"==typeof n&&n&&!n.nodeType&&n,a=u&&u.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;n.exports=c}).call(this,e(47)(n))},function(n,t,e){var r=e(238),o=e(44),i=e(239),u=e(74),a=e(240),c=e(12),s=e(63),f=s(r),d=s(o),h=s(i),p=s(u),v=s(a),l=c;(r&&"[object DataView]"!=l(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=l(new o)||i&&"[object Promise]"!=l(i.resolve())||u&&"[object Set]"!=l(new u)||a&&"[object WeakMap]"!=l(new a))&&(l=function(n){var t=c(n),e="[object Object]"==t?n.constructor:void 0,r=e?s(e):"";if(r)switch(r){case f:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case v:return"[object WeakMap]"}return t}),n.exports=l},function(n,t,e){var r=e(12),o=e(7),i="[object Symbol]";n.exports=function(n){return"symbol"==typeof n||o(n)&&r(n)==i}},function(n,t,e){var r=e(12),o=e(4),i="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";n.exports=function(n){if(!o(n))return!1;var t=r(n);return t==u||t==a||t==i||t==c}},function(n,t,e){var r=e(30),o=e(31);n.exports=function(n,t,e,i){var u=!e;e||(e={});for(var a=-1,c=t.length;++a<c;){var s=t[a],f=i?i(e[s],n[s],s,e,n):void 0;void 0===f&&(f=n[s]),u?o(e,s,f):r(e,s,f)}return e}},function(n,t,e){var r=e(228),o=e(7),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(n){return o(n)&&u.call(n,"callee")&&!a.call(n,"callee")};n.exports=c},function(n,t,e){var r=e(230),o=e(33),i=e(49),u=i&&i.isTypedArray,a=u?o(u):r;n.exports=a},function(n,t,e){var r=e(19),o=1/0;n.exports=function(n){if("string"==typeof n||r(n))return n;var t=n+"";return"0"==t&&1/n==-o?"-0":t}},function(n,t,e){var r=e(26),o=e(202),i=e(203),u=e(204),a=e(205),c=e(206);function s(n){var t=this.__data__=new r(n);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=u,s.prototype.has=a,s.prototype.set=c,n.exports=s},function(n,t,e){var r=e(197),o=e(198),i=e(199),u=e(200),a=e(201);function c(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,n.exports=c},function(n,t,e){var r=e(15);n.exports=function(n,t){for(var e=n.length;e--;)if(r(n[e][0],t))return e;return-1}},function(n,t,e){var r=e(11)(Object,"create");n.exports=r},function(n,t,e){var r=e(222);n.exports=function(n,t){var e=n.__data__;return r(t)?e["string"==typeof t?"string":"hash"]:e.map}},function(n,t,e){var r=e(31),o=e(15),i=Object.prototype.hasOwnProperty;n.exports=function(n,t,e){var u=n[t];i.call(n,t)&&o(u,e)&&(void 0!==e||t in n)||r(n,t,e)}},function(n,t,e){var r=e(64);n.exports=function(n,t,e){"__proto__"==t&&r?r(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}},function(n,t){var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;n.exports=function(n,t){var o=typeof n;return!!(t=null==t?e:t)&&("number"==o||"symbol"!=o&&r.test(n))&&n>-1&&n%1==0&&n<t}},function(n,t){n.exports=function(n){return function(t){return n(t)}}},function(n,t){var e=Object.prototype;n.exports=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||e)}},function(n,t,e){var r=e(66)(Object.getPrototypeOf,Object);n.exports=r},function(n,t,e){var r=e(55),o=e(251)(r);n.exports=o},function(n,t,e){var r=e(38),o=e(24);n.exports=function(n,t){for(var e=0,i=(t=r(t,n)).length;null!=n&&e<i;)n=n[o(t[e++])];return e&&e==i?n:void 0}},function(n,t,e){var r=e(1),o=e(58),i=e(265),u=e(89);n.exports=function(n,t){return r(n)?n:o(n,t)?[n]:i(u(n))}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,o=Array(r);++e<r;)o[e]=t(n[e],e,n);return o}},function(n,t,e){var r=e(14),o=e(98),i=e(99);n.exports=function(n,t){return i(o(n,t,r),n+"")}},function(n,t,e){var r=e(15),o=e(8),i=e(32),u=e(4);n.exports=function(n,t,e){if(!u(e))return!1;var a=typeof t;return!!("number"==a?o(e)&&i(t,e.length):"string"==a&&t in e)&&r(e[t],n)}},function(n,t,e){"use strict";var r=e(0);n.exports={longestPath:function(n){var t={};r.forEach(n.sources(),(function e(o){var i=n.node(o);if(r.has(t,o))return i.rank;t[o]=!0;var u=r.min(r.map(n.outEdges(o),(function(t){return e(t.w)-n.edge(t).minlen})));return u!==Number.POSITIVE_INFINITY&&null!=u||(u=0),i.rank=u}))},slack:function(n,t){return n.node(t.w).rank-n.node(t.v).rank-n.edge(t).minlen}}},function(n,t,e){"use strict";var r=e(3);n.exports=a;var o="\0",i="\0",u="";function a(n){this._isDirected=!r.has(n,"directed")||n.directed,this._isMultigraph=!!r.has(n,"multigraph")&&n.multigraph,this._isCompound=!!r.has(n,"compound")&&n.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(n,t){n[t]?n[t]++:n[t]=1}function s(n,t){--n[t]||delete n[t]}function f(n,t,e,i){var a=""+t,c=""+e;if(!n&&a>c){var s=a;a=c,c=s}return a+u+c+u+(r.isUndefined(i)?o:i)}function d(n,t,e,r){var o=""+t,i=""+e;if(!n&&o>i){var u=o;o=i,i=u}var a={v:o,w:i};return r&&(a.name=r),a}function h(n,t){return f(n,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(n){return this._label=n,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(n){return r.isFunction(n)||(n=r.constant(n)),this._defaultNodeLabelFn=n,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var n=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(n._in[t])}))},a.prototype.sinks=function(){var n=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(n._out[t])}))},a.prototype.setNodes=function(n,t){var e=arguments,o=this;return r.each(n,(function(n){e.length>1?o.setNode(n,t):o.setNode(n)})),this},a.prototype.setNode=function(n,t){return r.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=t),this):(this._nodes[n]=arguments.length>1?t:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=i,this._children[n]={},this._children[i][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)},a.prototype.node=function(n){return this._nodes[n]},a.prototype.hasNode=function(n){return r.has(this._nodes,n)},a.prototype.removeNode=function(n){var t=this;if(r.has(this._nodes,n)){var e=function(n){t.removeEdge(t._edgeObjs[n])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],r.each(this.children(n),(function(n){t.setParent(n)})),delete this._children[n]),r.each(r.keys(this._in[n]),e),delete this._in[n],delete this._preds[n],r.each(r.keys(this._out[n]),e),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this},a.prototype.setParent=function(n,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var e=t+="";!r.isUndefined(e);e=this.parent(e))if(e===n)throw new Error("Setting "+t+" as parent of "+n+" would create a cycle");this.setNode(t)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=t,this._children[t][n]=!0,this},a.prototype._removeFromParentsChildList=function(n){delete this._children[this._parent[n]][n]},a.prototype.parent=function(n){if(this._isCompound){var t=this._parent[n];if(t!==i)return t}},a.prototype.children=function(n){if(r.isUndefined(n)&&(n=i),this._isCompound){var t=this._children[n];if(t)return r.keys(t)}else{if(n===i)return this.nodes();if(this.hasNode(n))return[]}},a.prototype.predecessors=function(n){var t=this._preds[n];if(t)return r.keys(t)},a.prototype.successors=function(n){var t=this._sucs[n];if(t)return r.keys(t)},a.prototype.neighbors=function(n){var t=this.predecessors(n);if(t)return r.union(t,this.successors(n))},a.prototype.isLeaf=function(n){return 0===(this.isDirected()?this.successors(n):this.neighbors(n)).length},a.prototype.filterNodes=function(n){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var e=this;r.each(this._nodes,(function(e,r){n(r)&&t.setNode(r,e)})),r.each(this._edgeObjs,(function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,e.edge(n))}));var o={};return this._isCompound&&r.each(t.nodes(),(function(n){t.setParent(n,function n(r){var i=e.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:n(i)}(n))})),t},a.prototype.setDefaultEdgeLabel=function(n){return r.isFunction(n)||(n=r.constant(n)),this._defaultEdgeLabelFn=n,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(n,t){var e=this,o=arguments;return r.reduce(n,(function(n,r){return o.length>1?e.setEdge(n,r,t):e.setEdge(n,r),r})),this},a.prototype.setEdge=function(){var n,t,e,o,i=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(n=u.v,t=u.w,e=u.name,2===arguments.length&&(o=arguments[1],i=!0)):(n=u,t=arguments[1],e=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),n=""+n,t=""+t,r.isUndefined(e)||(e=""+e);var a=f(this._isDirected,n,t,e);if(r.has(this._edgeLabels,a))return i&&(this._edgeLabels[a]=o),this;if(!r.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(t),this._edgeLabels[a]=i?o:this._defaultEdgeLabelFn(n,t,e);var s=d(this._isDirected,n,t,e);return n=s.v,t=s.w,Object.freeze(s),this._edgeObjs[a]=s,c(this._preds[t],n),c(this._sucs[n],t),this._in[t][a]=s,this._out[n][a]=s,this._edgeCount++,this},a.prototype.edge=function(n,t,e){var r=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,n,t,e);return this._edgeLabels[r]},a.prototype.hasEdge=function(n,t,e){var o=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,n,t,e);return r.has(this._edgeLabels,o)},a.prototype.removeEdge=function(n,t,e){var r=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,n,t,e),o=this._edgeObjs[r];return o&&(n=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[t],n),s(this._sucs[n],t),delete this._in[t][r],delete this._out[n][r],this._edgeCount--),this},a.prototype.inEdges=function(n,t){var e=this._in[n];if(e){var o=r.values(e);return t?r.filter(o,(function(n){return n.v===t})):o}},a.prototype.outEdges=function(n,t){var e=this._out[n];if(e){var o=r.values(e);return t?r.filter(o,(function(n){return n.w===t})):o}},a.prototype.nodeEdges=function(n,t){var e=this.inEdges(n,t);if(e)return e.concat(this.outEdges(n,t))}},function(n,t,e){var r=e(11)(e(6),"Map");n.exports=r},function(n,t,e){var r=e(214),o=e(221),i=e(223),u=e(224),a=e(225);function c(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,n.exports=c},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length;++e<r&&!1!==t(n[e],e,n););return n}},function(n,t){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(n,t){var e=9007199254740991;n.exports=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=e}},function(n,t,e){(function(n){var r=e(62),o=t&&!t.nodeType&&t,i=o&&"object"==typeof n&&n&&!n.nodeType&&n,u=i&&i.exports===o&&r.process,a=function(){try{var n=i&&i.require&&i.require("util").types;return n||u&&u.binding&&u.binding("util")}catch(n){}}();n.exports=a}).call(this,e(47)(n))},function(n,t,e){var r=e(34),o=e(231),i=Object.prototype.hasOwnProperty;n.exports=function(n){if(!r(n))return o(n);var t=[];for(var e in Object(n))i.call(n,e)&&"constructor"!=e&&t.push(e);return t}},function(n,t,e){var r=e(69),o=e(70),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,a=u?function(n){return null==n?[]:(n=Object(n),r(u(n),(function(t){return i.call(n,t)})))}:o;n.exports=a},function(n,t){n.exports=function(n,t){for(var e=-1,r=t.length,o=n.length;++e<r;)n[o+e]=t[e];return n}},function(n,t,e){var r=e(75);n.exports=function(n){var t=new n.constructor(n.byteLength);return new r(t).set(new r(n)),t}},function(n,t){n.exports=function(n){return function(){return n}}},function(n,t,e){var r=e(56),o=e(10);n.exports=function(n,t){return n&&r(n,t,o)}},function(n,t,e){var r=e(250)();n.exports=r},function(n,t){n.exports=function(n){var t=-1,e=Array(n.size);return n.forEach((function(n){e[++t]=n})),e}},function(n,t,e){var r=e(1),o=e(19),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;n.exports=function(n,t){if(r(n))return!1;var e=typeof n;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=n&&!o(n))||(u.test(n)||!i.test(n)||null!=t&&n in Object(t))}},function(n,t,e){var r=e(52),o=e(284);n.exports=function n(t,e,i,u,a){var c=-1,s=t.length;for(i||(i=o),a||(a=[]);++c<s;){var f=t[c];e>0&&i(f)?e>1?n(f,e-1,i,u,a):r(a,f):u||(a[a.length]=f)}return a}},function(n,t,e){var r=e(19);n.exports=function(n,t,e){for(var o=-1,i=n.length;++o<i;){var u=n[o],a=t(u);if(null!=a&&(void 0===c?a==a&&!r(a):e(a,c)))var c=a,s=u}return s}},function(n,t,e){var r=e(25),o=e(46),i=e(30),u=e(226),a=e(232),c=e(67),s=e(68),f=e(235),d=e(236),h=e(72),p=e(237),v=e(18),l=e(241),g=e(242),y=e(77),b=e(1),x=e(17),m=e(246),w=e(4),_=e(248),E=e(10),j=e(13),k=1,O=2,N=4,I="[object Arguments]",M="[object Function]",C="[object GeneratorFunction]",S="[object Object]",P={};P[I]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[S]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[M]=P["[object WeakMap]"]=!1,n.exports=function n(t,e,A,L,T,z){var R,B=e&k,F=e&O,D=e&N;if(A&&(R=T?A(t,L,T,z):A(t)),void 0!==R)return R;if(!w(t))return t;var U=b(t);if(U){if(R=l(t),!B)return s(t,R)}else{var G=v(t),V=G==M||G==C;if(x(t))return c(t,B);if(G==S||G==I||V&&!T){if(R=F||V?{}:y(t),!B)return F?d(t,a(R,t)):f(t,u(R,t))}else{if(!P[G])return T?t:{};R=g(t,G,B)}}z||(z=new r);var Y=z.get(t);if(Y)return Y;z.set(t,R),_(t)?t.forEach((function(r){R.add(n(r,e,A,r,t,z))})):m(t)&&t.forEach((function(r,o){R.set(o,n(r,e,A,o,t,z))}));var $=U?void 0:(D?F?p:h:F?j:E)(t);return o($||t,(function(r,o){$&&(r=t[o=r]),i(R,o,n(r,e,A,o,t,z))})),R}},function(n,t,e){(function(t){var e="object"==typeof t&&t&&t.Object===Object&&t;n.exports=e}).call(this,e(208))},function(n,t){var e=Function.prototype.toString;n.exports=function(n){if(null!=n){try{return e.call(n)}catch(n){}try{return n+""}catch(n){}}return""}},function(n,t,e){var r=e(11),o=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch(n){}}();n.exports=o},function(n,t,e){var r=e(227),o=e(22),i=e(1),u=e(17),a=e(32),c=e(23),s=Object.prototype.hasOwnProperty;n.exports=function(n,t){var e=i(n),f=!e&&o(n),d=!e&&!f&&u(n),h=!e&&!f&&!d&&c(n),p=e||f||d||h,v=p?r(n.length,String):[],l=v.length;for(var g in n)!t&&!s.call(n,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,l))||v.push(g);return v}},function(n,t){n.exports=function(n,t){return function(e){return n(t(e))}}},function(n,t,e){(function(n){var r=e(6),o=t&&!t.nodeType&&t,i=o&&"object"==typeof n&&n&&!n.nodeType&&n,u=i&&i.exports===o?r.Buffer:void 0,a=u?u.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var e=n.length,r=a?a(e):new n.constructor(e);return n.copy(r),r}}).call(this,e(47)(n))},function(n,t){n.exports=function(n,t){var e=-1,r=n.length;for(t||(t=Array(r));++e<r;)t[e]=n[e];return t}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,o=0,i=[];++e<r;){var u=n[e];t(u,e,n)&&(i[o++]=u)}return i}},function(n,t){n.exports=function(){return[]}},function(n,t,e){var r=e(52),o=e(35),i=e(51),u=e(70),a=Object.getOwnPropertySymbols?function(n){for(var t=[];n;)r(t,i(n)),n=o(n);return t}:u;n.exports=a},function(n,t,e){var r=e(73),o=e(51),i=e(10);n.exports=function(n){return r(n,i,o)}},function(n,t,e){var r=e(52),o=e(1);n.exports=function(n,t,e){var i=t(n);return o(n)?i:r(i,e(n))}},function(n,t,e){var r=e(11)(e(6),"Set");n.exports=r},function(n,t,e){var r=e(6).Uint8Array;n.exports=r},function(n,t,e){var r=e(53);n.exports=function(n,t){var e=t?r(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}},function(n,t,e){var r=e(78),o=e(35),i=e(34);n.exports=function(n){return"function"!=typeof n.constructor||i(n)?{}:r(o(n))}},function(n,t,e){var r=e(4),o=Object.create,i=function(){function n(){}return function(t){if(!r(t))return{};if(o)return o(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();n.exports=i},function(n,t,e){n.exports=e(80)},function(n,t,e){var r=e(46),o=e(36),i=e(81),u=e(1);n.exports=function(n,t){return(u(n)?r:o)(n,i(t))}},function(n,t,e){var r=e(14);n.exports=function(n){return"function"==typeof n?n:r}},function(n,t,e){var r=e(69),o=e(252),i=e(9),u=e(1);n.exports=function(n,t){return(u(n)?r:o)(n,i(t,3))}},function(n,t,e){var r=e(255),o=e(7);n.exports=function n(t,e,i,u,a){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:r(t,e,i,u,n,a))}},function(n,t,e){var r=e(85),o=e(258),i=e(86),u=1,a=2;n.exports=function(n,t,e,c,s,f){var d=e&u,h=n.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var v=f.get(n),l=f.get(t);if(v&&l)return v==t&&l==n;var g=-1,y=!0,b=e&a?new r:void 0;for(f.set(n,t),f.set(t,n);++g<h;){var x=n[g],m=t[g];if(c)var w=d?c(m,x,g,t,n,f):c(x,m,g,n,t,f);if(void 0!==w){if(w)continue;y=!1;break}if(b){if(!o(t,(function(n,t){if(!i(b,t)&&(x===n||s(x,n,e,c,f)))return b.push(t)}))){y=!1;break}}else if(x!==m&&!s(x,m,e,c,f)){y=!1;break}}return f.delete(n),f.delete(t),y}},function(n,t,e){var r=e(45),o=e(256),i=e(257);function u(n){var t=-1,e=null==n?0:n.length;for(this.__data__=new r;++t<e;)this.add(n[t])}u.prototype.add=u.prototype.push=o,u.prototype.has=i,n.exports=u},function(n,t){n.exports=function(n,t){return n.has(t)}},function(n,t,e){var r=e(4);n.exports=function(n){return n==n&&!r(n)}},function(n,t){n.exports=function(n,t){return function(e){return null!=e&&(e[n]===t&&(void 0!==t||n in Object(e)))}}},function(n,t,e){var r=e(268);n.exports=function(n){return null==n?"":r(n)}},function(n,t,e){var r=e(269),o=e(91);n.exports=function(n,t){return null!=n&&o(n,t,r)}},function(n,t,e){var r=e(38),o=e(22),i=e(1),u=e(32),a=e(48),c=e(24);n.exports=function(n,t,e){for(var s=-1,f=(t=r(t,n)).length,d=!1;++s<f;){var h=c(t[s]);if(!(d=null!=n&&e(n,h)))break;n=n[h]}return d||++s!=f?d:!!(f=null==n?0:n.length)&&a(f)&&u(h,f)&&(i(n)||o(n))}},function(n,t){n.exports=function(n){return function(t){return null==t?void 0:t[n]}}},function(n,t,e){var r=e(272),o=e(91);n.exports=function(n,t){return null!=n&&o(n,t,r)}},function(n,t){n.exports=function(n){return void 0===n}},function(n,t,e){var r=e(39),o=e(9),i=e(96),u=e(1);n.exports=function(n,t){return(u(n)?r:i)(n,o(t,3))}},function(n,t,e){var r=e(36),o=e(8);n.exports=function(n,t){var e=-1,i=o(n)?Array(n.length):[];return r(n,(function(n,r,o){i[++e]=t(n,r,o)})),i}},function(n,t,e){var r=e(274),o=e(36),i=e(9),u=e(275),a=e(1);n.exports=function(n,t,e){var c=a(n)?r:u,s=arguments.length<3;return c(n,i(t,4),e,s,o)}},function(n,t,e){var r=e(285),o=Math.max;n.exports=function(n,t,e){return t=o(void 0===t?n.length-1:t,0),function(){for(var i=arguments,u=-1,a=o(i.length-t,0),c=Array(a);++u<a;)c[u]=i[t+u];u=-1;for(var s=Array(t+1);++u<t;)s[u]=i[u];return s[t]=e(c),r(n,this,s)}}},function(n,t,e){var r=e(286),o=e(287)(r);n.exports=o},function(n,t){n.exports=function(n,t,e,r){for(var o=n.length,i=e+(r?1:-1);r?i--:++i<o;)if(t(n[i],i,n))return i;return-1}},function(n,t,e){var r=e(8),o=e(7);n.exports=function(n){return o(n)&&r(n)}},function(n,t,e){var r=e(296),o=e(10);n.exports=function(n){return null==n?[]:r(n,o(n))}},function(n,t,e){var r=e(3),o=e(104);n.exports=function(n,t,e,r){return function(n,t,e,r){var i,u,a={},c=new o,s=function(n){var t=n.v!==i?n.v:n.w,r=a[t],o=e(n),s=u.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+n+" Weight: "+o);s<r.distance&&(r.distance=s,r.predecessor=i,c.decrease(t,s))};n.nodes().forEach((function(n){var e=n===t?0:Number.POSITIVE_INFINITY;a[n]={distance:e},c.add(n,e)}));for(;c.size()>0&&(i=c.removeMin(),(u=a[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(s);return a}(n,String(t),e||i,r||function(t){return n.outEdges(t)})};var i=r.constant(1)},function(n,t,e){var r=e(3);function o(){this._arr=[],this._keyIndices={}}n.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(n){return n.key}))},o.prototype.has=function(n){return r.has(this._keyIndices,n)},o.prototype.priority=function(n){var t=this._keyIndices[n];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(n,t){var e=this._keyIndices;if(n=String(n),!r.has(e,n)){var o=this._arr,i=o.length;return e[n]=i,o.push({key:n,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},o.prototype.decrease=function(n,t){var e=this._keyIndices[n];if(t>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[e].priority+" New: "+t);this._arr[e].priority=t,this._decrease(e)},o.prototype._heapify=function(n){var t=this._arr,e=2*n,r=e+1,o=n;e<t.length&&(o=t[e].priority<t[o].priority?e:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==n&&(this._swap(n,o),this._heapify(o)))},o.prototype._decrease=function(n){for(var t,e=this._arr,r=e[n].priority;0!==n&&!(e[t=n>>1].priority<r);)this._swap(n,t),n=t},o.prototype._swap=function(n,t){var e=this._arr,r=this._keyIndices,o=e[n],i=e[t];e[n]=i,e[t]=o,r[i.key]=n,r[o.key]=t}},function(n,t,e){var r=e(3);n.exports=function(n){var t=0,e=[],o={},i=[];return n.nodes().forEach((function(u){r.has(o,u)||function u(a){var c=o[a]={onStack:!0,lowlink:t,index:t++};if(e.push(a),n.successors(a).forEach((function(n){r.has(o,n)?o[n].onStack&&(c.lowlink=Math.min(c.lowlink,o[n].index)):(u(n),c.lowlink=Math.min(c.lowlink,o[n].lowlink))})),c.lowlink===c.index){var s,f=[];do{s=e.pop(),o[s].onStack=!1,f.push(s)}while(a!==s);i.push(f)}}(u)})),i}},function(n,t,e){var r=e(3);function o(n){var t={},e={},o=[];if(r.each(n.sinks(),(function u(a){if(r.has(e,a))throw new i;r.has(t,a)||(e[a]=!0,t[a]=!0,r.each(n.predecessors(a),u),delete e[a],o.push(a))})),r.size(t)!==n.nodeCount())throw new i;return o}function i(){}n.exports=o,o.CycleException=i,i.prototype=new Error},function(n,t,e){var r=e(3);n.exports=function(n,t,e){r.isArray(t)||(t=[t]);var o=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],u={};return r.each(t,(function(t){if(!n.hasNode(t))throw new Error("Graph does not have node: "+t);!function n(t,e,o,i,u,a){r.has(i,e)||(i[e]=!0,o||a.push(e),r.each(u(e),(function(e){n(t,e,o,i,u,a)})),o&&a.push(e))}(n,t,"post"===e,u,o,i)})),i}},function(n,t,e){var r=e(315),o=1/0,i=17976931348623157e292;n.exports=function(n){return n?(n=r(n))===o||n===-o?(n<0?-1:1)*i:n==n?n:0:0===n?n:0}},function(n,t,e){var r=e(59);n.exports=function(n){return(null==n?0:n.length)?r(n,1):[]}},function(n,t,e){var r=e(31),o=e(15);n.exports=function(n,t,e){(void 0===e||o(n[t],e))&&(void 0!==e||t in n)||r(n,t,e)}},function(n,t){n.exports=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}},function(n,t){n.exports=function(n,t){return n<t}},function(n,t,e){"use strict";var r=e(0),o=e(5).Graph,i=e(42).slack;function u(n,t){return r.forEach(n.nodes(),(function e(o){r.forEach(t.nodeEdges(o),(function(r){var u=r.v,a=o===u?r.w:u;n.hasNode(a)||i(t,r)||(n.setNode(a,{}),n.setEdge(o,a,{}),e(a))}))})),n.nodeCount()}function a(n,t){return r.minBy(t.edges(),(function(e){if(n.hasNode(e.v)!==n.hasNode(e.w))return i(t,e)}))}function c(n,t,e){r.forEach(n.nodes(),(function(n){t.node(n).rank+=e}))}n.exports=function(n){var t,e,r=new o({directed:!1}),s=n.nodes()[0],f=n.nodeCount();r.setNode(s,{});for(;u(r,n)<f;)t=a(r,n),e=r.hasNode(t.v)?i(n,t):-i(n,t),c(r,n,e);return r}},function(n,t,e){n.exports={graphlib:e(5),layout:e(308),debug:e(367),util:{time:e(2).time,notime:e(2).notime},version:e(368)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,e){n.exports=e(193)},function(n,t,e){"use strict";e.r(t);var r=e(114),o=e.n(r);e(369);window.dagre=o.a},function(n,t,e){var r=e(195);n.exports={Graph:r.Graph,json:e(298),alg:e(299),version:r.version}},function(n,t,e){n.exports={Graph:e(43),version:e(297)}},function(n,t,e){var r=e(61),o=4;n.exports=function(n){return r(n,o)}},function(n,t){n.exports=function(){this.__data__=[],this.size=0}},function(n,t,e){var r=e(27),o=Array.prototype.splice;n.exports=function(n){var t=this.__data__,e=r(t,n);return!(e<0)&&(e==t.length-1?t.pop():o.call(t,e,1),--this.size,!0)}},function(n,t,e){var r=e(27);n.exports=function(n){var t=this.__data__,e=r(t,n);return e<0?void 0:t[e][1]}},function(n,t,e){var r=e(27);n.exports=function(n){return r(this.__data__,n)>-1}},function(n,t,e){var r=e(27);n.exports=function(n,t){var e=this.__data__,o=r(e,n);return o<0?(++this.size,e.push([n,t])):e[o][1]=t,this}},function(n,t,e){var r=e(26);n.exports=function(){this.__data__=new r,this.size=0}},function(n,t){n.exports=function(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}},function(n,t){n.exports=function(n){return this.__data__.get(n)}},function(n,t){n.exports=function(n){return this.__data__.has(n)}},function(n,t,e){var r=e(26),o=e(44),i=e(45),u=200;n.exports=function(n,t){var e=this.__data__;if(e instanceof r){var a=e.__data__;if(!o||a.length<u-1)return a.push([n,t]),this.size=++e.size,this;e=this.__data__=new i(a)}return e.set(n,t),this.size=e.size,this}},function(n,t,e){var r=e(20),o=e(211),i=e(4),u=e(63),a=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,d=s.hasOwnProperty,h=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n.exports=function(n){return!(!i(n)||o(n))&&(r(n)?h:a).test(u(n))}},function(n,t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"==typeof window&&(e=window)}n.exports=e},function(n,t,e){var r=e(16),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=r?r.toStringTag:void 0;n.exports=function(n){var t=i.call(n,a),e=n[a];try{n[a]=void 0;var r=!0}catch(n){}var o=u.call(n);return r&&(t?n[a]=e:delete n[a]),o}},function(n,t){var e=Object.prototype.toString;n.exports=function(n){return e.call(n)}},function(n,t,e){var r,o=e(212),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";n.exports=function(n){return!!i&&i in n}},function(n,t,e){var r=e(6)["__core-js_shared__"];n.exports=r},function(n,t){n.exports=function(n,t){return null==n?void 0:n[t]}},function(n,t,e){var r=e(215),o=e(26),i=e(44);n.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(n,t,e){var r=e(216),o=e(217),i=e(218),u=e(219),a=e(220);function c(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,n.exports=c},function(n,t,e){var r=e(28);n.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(n,t){n.exports=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}},function(n,t,e){var r=e(28),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;n.exports=function(n){var t=this.__data__;if(r){var e=t[n];return e===o?void 0:e}return i.call(t,n)?t[n]:void 0}},function(n,t,e){var r=e(28),o=Object.prototype.hasOwnProperty;n.exports=function(n){var t=this.__data__;return r?void 0!==t[n]:o.call(t,n)}},function(n,t,e){var r=e(28),o="__lodash_hash_undefined__";n.exports=function(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=r&&void 0===t?o:t,this}},function(n,t,e){var r=e(29);n.exports=function(n){var t=r(this,n).delete(n);return this.size-=t?1:0,t}},function(n,t){n.exports=function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}},function(n,t,e){var r=e(29);n.exports=function(n){return r(this,n).get(n)}},function(n,t,e){var r=e(29);n.exports=function(n){return r(this,n).has(n)}},function(n,t,e){var r=e(29);n.exports=function(n,t){var e=r(this,n),o=e.size;return e.set(n,t),this.size+=e.size==o?0:1,this}},function(n,t,e){var r=e(21),o=e(10);n.exports=function(n,t){return n&&r(t,o(t),n)}},function(n,t){n.exports=function(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}},function(n,t,e){var r=e(12),o=e(7),i="[object Arguments]";n.exports=function(n){return o(n)&&r(n)==i}},function(n,t){n.exports=function(){return!1}},function(n,t,e){var r=e(12),o=e(48),i=e(7),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,n.exports=function(n){return i(n)&&o(n.length)&&!!u[r(n)]}},function(n,t,e){var r=e(66)(Object.keys,Object);n.exports=r},function(n,t,e){var r=e(21),o=e(13);n.exports=function(n,t){return n&&r(t,o(t),n)}},function(n,t,e){var r=e(4),o=e(34),i=e(234),u=Object.prototype.hasOwnProperty;n.exports=function(n){if(!r(n))return i(n);var t=o(n),e=[];for(var a in n)("constructor"!=a||!t&&u.call(n,a))&&e.push(a);return e}},function(n,t){n.exports=function(n){var t=[];if(null!=n)for(var e in Object(n))t.push(e);return t}},function(n,t,e){var r=e(21),o=e(51);n.exports=function(n,t){return r(n,o(n),t)}},function(n,t,e){var r=e(21),o=e(71);n.exports=function(n,t){return r(n,o(n),t)}},function(n,t,e){var r=e(73),o=e(71),i=e(13);n.exports=function(n){return r(n,i,o)}},function(n,t,e){var r=e(11)(e(6),"DataView");n.exports=r},function(n,t,e){var r=e(11)(e(6),"Promise");n.exports=r},function(n,t,e){var r=e(11)(e(6),"WeakMap");n.exports=r},function(n,t){var e=Object.prototype.hasOwnProperty;n.exports=function(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&e.call(n,"index")&&(r.index=n.index,r.input=n.input),r}},function(n,t,e){var r=e(53),o=e(243),i=e(244),u=e(245),a=e(76),c="[object Boolean]",s="[object Date]",f="[object Map]",d="[object Number]",h="[object RegExp]",p="[object Set]",v="[object String]",l="[object Symbol]",g="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",m="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",E="[object Uint8Array]",j="[object Uint8ClampedArray]",k="[object Uint16Array]",O="[object Uint32Array]";n.exports=function(n,t,e){var N=n.constructor;switch(t){case g:return r(n);case c:case s:return new N(+n);case y:return o(n,e);case b:case x:case m:case w:case _:case E:case j:case k:case O:return a(n,e);case f:return new N;case d:case v:return new N(n);case h:return i(n);case p:return new N;case l:return u(n)}}},function(n,t,e){var r=e(53);n.exports=function(n,t){var e=t?r(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}},function(n,t){var e=/\w*$/;n.exports=function(n){var t=new n.constructor(n.source,e.exec(n));return t.lastIndex=n.lastIndex,t}},function(n,t,e){var r=e(16),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;n.exports=function(n){return i?Object(i.call(n)):{}}},function(n,t,e){var r=e(247),o=e(33),i=e(49),u=i&&i.isMap,a=u?o(u):r;n.exports=a},function(n,t,e){var r=e(18),o=e(7),i="[object Map]";n.exports=function(n){return o(n)&&r(n)==i}},function(n,t,e){var r=e(249),o=e(33),i=e(49),u=i&&i.isSet,a=u?o(u):r;n.exports=a},function(n,t,e){var r=e(18),o=e(7),i="[object Set]";n.exports=function(n){return o(n)&&r(n)==i}},function(n,t){n.exports=function(n){return function(t,e,r){for(var o=-1,i=Object(t),u=r(t),a=u.length;a--;){var c=u[n?a:++o];if(!1===e(i[c],c,i))break}return t}}},function(n,t,e){var r=e(8);n.exports=function(n,t){return function(e,o){if(null==e)return e;if(!r(e))return n(e,o);for(var i=e.length,u=t?i:-1,a=Object(e);(t?u--:++u<i)&&!1!==o(a[u],u,a););return e}}},function(n,t,e){var r=e(36);n.exports=function(n,t){var e=[];return r(n,(function(n,r,o){t(n,r,o)&&e.push(n)})),e}},function(n,t,e){var r=e(254),o=e(262),i=e(88);n.exports=function(n){var t=o(n);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(e){return e===n||r(e,n,t)}}},function(n,t,e){var r=e(25),o=e(83),i=1,u=2;n.exports=function(n,t,e,a){var c=e.length,s=c,f=!a;if(null==n)return!s;for(n=Object(n);c--;){var d=e[c];if(f&&d[2]?d[1]!==n[d[0]]:!(d[0]in n))return!1}for(;++c<s;){var h=(d=e[c])[0],p=n[h],v=d[1];if(f&&d[2]){if(void 0===p&&!(h in n))return!1}else{var l=new r;if(a)var g=a(p,v,h,n,t,l);if(!(void 0===g?o(v,p,i|u,a,l):g))return!1}}return!0}},function(n,t,e){var r=e(25),o=e(84),i=e(259),u=e(261),a=e(18),c=e(1),s=e(17),f=e(23),d=1,h="[object Arguments]",p="[object Array]",v="[object Object]",l=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,g,y,b){var x=c(n),m=c(t),w=x?p:a(n),_=m?p:a(t),E=(w=w==h?v:w)==v,j=(_=_==h?v:_)==v,k=w==_;if(k&&s(n)){if(!s(t))return!1;x=!0,E=!1}if(k&&!E)return b||(b=new r),x||f(n)?o(n,t,e,g,y,b):i(n,t,w,e,g,y,b);if(!(e&d)){var O=E&&l.call(n,"__wrapped__"),N=j&&l.call(t,"__wrapped__");if(O||N){var I=O?n.value():n,M=N?t.value():t;return b||(b=new r),y(I,M,e,g,b)}}return!!k&&(b||(b=new r),u(n,t,e,g,y,b))}},function(n,t){var e="__lodash_hash_undefined__";n.exports=function(n){return this.__data__.set(n,e),this}},function(n,t){n.exports=function(n){return this.__data__.has(n)}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length;++e<r;)if(t(n[e],e,n))return!0;return!1}},function(n,t,e){var r=e(16),o=e(75),i=e(15),u=e(84),a=e(260),c=e(57),s=1,f=2,d="[object Boolean]",h="[object Date]",p="[object Error]",v="[object Map]",l="[object Number]",g="[object RegExp]",y="[object Set]",b="[object String]",x="[object Symbol]",m="[object ArrayBuffer]",w="[object DataView]",_=r?r.prototype:void 0,E=_?_.valueOf:void 0;n.exports=function(n,t,e,r,_,j,k){switch(e){case w:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case m:return!(n.byteLength!=t.byteLength||!j(new o(n),new o(t)));case d:case h:case l:return i(+n,+t);case p:return n.name==t.name&&n.message==t.message;case g:case b:return n==t+"";case v:var O=a;case y:var N=r&s;if(O||(O=c),n.size!=t.size&&!N)return!1;var I=k.get(n);if(I)return I==t;r|=f,k.set(n,t);var M=u(O(n),O(t),r,_,j,k);return k.delete(n),M;case x:if(E)return E.call(n)==E.call(t)}return!1}},function(n,t){n.exports=function(n){var t=-1,e=Array(n.size);return n.forEach((function(n,r){e[++t]=[r,n]})),e}},function(n,t,e){var r=e(72),o=1,i=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,u,a,c){var s=e&o,f=r(n),d=f.length;if(d!=r(t).length&&!s)return!1;for(var h=d;h--;){var p=f[h];if(!(s?p in t:i.call(t,p)))return!1}var v=c.get(n),l=c.get(t);if(v&&l)return v==t&&l==n;var g=!0;c.set(n,t),c.set(t,n);for(var y=s;++h<d;){var b=n[p=f[h]],x=t[p];if(u)var m=s?u(x,b,p,t,n,c):u(b,x,p,n,t,c);if(!(void 0===m?b===x||a(b,x,e,u,c):m)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var w=n.constructor,_=t.constructor;w!=_&&"constructor"in n&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return c.delete(n),c.delete(t),g}},function(n,t,e){var r=e(87),o=e(10);n.exports=function(n){for(var t=o(n),e=t.length;e--;){var i=t[e],u=n[i];t[e]=[i,u,r(u)]}return t}},function(n,t,e){var r=e(83),o=e(264),i=e(90),u=e(58),a=e(87),c=e(88),s=e(24),f=1,d=2;n.exports=function(n,t){return u(n)&&a(t)?c(s(n),t):function(e){var u=o(e,n);return void 0===u&&u===t?i(e,n):r(t,u,f|d)}}},function(n,t,e){var r=e(37);n.exports=function(n,t,e){var o=null==n?void 0:r(n,t);return void 0===o?e:o}},function(n,t,e){var r=e(266),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=r((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(o,(function(n,e,r,o){t.push(r?o.replace(i,"$1"):e||n)})),t}));n.exports=u},function(n,t,e){var r=e(267),o=500;n.exports=function(n){var t=r(n,(function(n){return e.size===o&&e.clear(),n})),e=t.cache;return t}},function(n,t,e){var r=e(45),o="Expected a function";function i(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new TypeError(o);var e=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=e.cache;if(i.has(o))return i.get(o);var u=n.apply(this,r);return e.cache=i.set(o,u)||i,u};return e.cache=new(i.Cache||r),e}i.Cache=r,n.exports=i},function(n,t,e){var r=e(16),o=e(39),i=e(1),u=e(19),a=1/0,c=r?r.prototype:void 0,s=c?c.toString:void 0;n.exports=function n(t){if("string"==typeof t)return t;if(i(t))return o(t,n)+"";if(u(t))return s?s.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}},function(n,t){n.exports=function(n,t){return null!=n&&t in Object(n)}},function(n,t,e){var r=e(92),o=e(271),i=e(58),u=e(24);n.exports=function(n){return i(n)?r(u(n)):o(n)}},function(n,t,e){var r=e(37);n.exports=function(n){return function(t){return r(t,n)}}},function(n,t){var e=Object.prototype.hasOwnProperty;n.exports=function(n,t){return null!=n&&e.call(n,t)}},function(n,t,e){var r=e(50),o=e(18),i=e(22),u=e(1),a=e(8),c=e(17),s=e(34),f=e(23),d="[object Map]",h="[object Set]",p=Object.prototype.hasOwnProperty;n.exports=function(n){if(null==n)return!0;if(a(n)&&(u(n)||"string"==typeof n||"function"==typeof n.splice||c(n)||f(n)||i(n)))return!n.length;var t=o(n);if(t==d||t==h)return!n.size;if(s(n))return!r(n).length;for(var e in n)if(p.call(n,e))return!1;return!0}},function(n,t){n.exports=function(n,t,e,r){var o=-1,i=null==n?0:n.length;for(r&&i&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n);return e}},function(n,t){n.exports=function(n,t,e,r,o){return o(n,(function(n,o,i){e=r?(r=!1,n):t(e,n,o,i)})),e}},function(n,t,e){var r=e(50),o=e(18),i=e(8),u=e(277),a=e(278),c="[object Map]",s="[object Set]";n.exports=function(n){if(null==n)return 0;if(i(n))return u(n)?a(n):n.length;var t=o(n);return t==c||t==s?n.size:r(n).length}},function(n,t,e){var r=e(12),o=e(1),i=e(7),u="[object String]";n.exports=function(n){return"string"==typeof n||!o(n)&&i(n)&&r(n)==u}},function(n,t,e){var r=e(279),o=e(280),i=e(281);n.exports=function(n){return o(n)?i(n):r(n)}},function(n,t,e){var r=e(92)("length");n.exports=r},function(n,t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");n.exports=function(n){return e.test(n)}},function(n,t){var e="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,u,a].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),f="(?:"+[i+r+"?",r,u,a,e].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+s,"g");n.exports=function(n){for(var t=d.lastIndex=0;d.test(n);)++t;return t}},function(n,t,e){var r=e(46),o=e(78),i=e(55),u=e(9),a=e(35),c=e(1),s=e(17),f=e(20),d=e(4),h=e(23);n.exports=function(n,t,e){var p=c(n),v=p||s(n)||h(n);if(t=u(t,4),null==e){var l=n&&n.constructor;e=v?p?new l:[]:d(n)&&f(l)?o(a(n)):{}}return(v?r:i)(n,(function(n,r,o){return t(e,n,r,o)})),e}},function(n,t,e){var r=e(59),o=e(40),i=e(288),u=e(101),a=o((function(n){return i(r(n,1,u,!0))}));n.exports=a},function(n,t,e){var r=e(16),o=e(22),i=e(1),u=r?r.isConcatSpreadable:void 0;n.exports=function(n){return i(n)||o(n)||!!(u&&n&&n[u])}},function(n,t){n.exports=function(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}},function(n,t,e){var r=e(54),o=e(64),i=e(14),u=o?function(n,t){return o(n,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;n.exports=u},function(n,t){var e=800,r=16,o=Date.now;n.exports=function(n){var t=0,i=0;return function(){var u=o(),a=r-(u-i);if(i=u,a>0){if(++t>=e)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}},function(n,t,e){var r=e(85),o=e(289),i=e(293),u=e(86),a=e(294),c=e(57),s=200;n.exports=function(n,t,e){var f=-1,d=o,h=n.length,p=!0,v=[],l=v;if(e)p=!1,d=i;else if(h>=s){var g=t?null:a(n);if(g)return c(g);p=!1,d=u,l=new r}else l=t?[]:v;n:for(;++f<h;){var y=n[f],b=t?t(y):y;if(y=e||0!==y?y:0,p&&b==b){for(var x=l.length;x--;)if(l[x]===b)continue n;t&&l.push(b),v.push(y)}else d(l,b,e)||(l!==v&&l.push(b),v.push(y))}return v}},function(n,t,e){var r=e(290);n.exports=function(n,t){return!!(null==n?0:n.length)&&r(n,t,0)>-1}},function(n,t,e){var r=e(100),o=e(291),i=e(292);n.exports=function(n,t,e){return t==t?i(n,t,e):r(n,o,e)}},function(n,t){n.exports=function(n){return n!=n}},function(n,t){n.exports=function(n,t,e){for(var r=e-1,o=n.length;++r<o;)if(n[r]===t)return r;return-1}},function(n,t){n.exports=function(n,t,e){for(var r=-1,o=null==n?0:n.length;++r<o;)if(e(t,n[r]))return!0;return!1}},function(n,t,e){var r=e(74),o=e(295),i=e(57),u=r&&1/i(new r([,-0]))[1]==1/0?function(n){return new r(n)}:o;n.exports=u},function(n,t){n.exports=function(){}},function(n,t,e){var r=e(39);n.exports=function(n,t){return r(t,(function(t){return n[t]}))}},function(n,t){n.exports="2.1.8"},function(n,t,e){var r=e(3),o=e(43);function i(n){return r.map(n.nodes(),(function(t){var e=n.node(t),o=n.parent(t),i={v:t};return r.isUndefined(e)||(i.value=e),r.isUndefined(o)||(i.parent=o),i}))}function u(n){return r.map(n.edges(),(function(t){var e=n.edge(t),o={v:t.v,w:t.w};return r.isUndefined(t.name)||(o.name=t.name),r.isUndefined(e)||(o.value=e),o}))}n.exports={write:function(n){var t={options:{directed:n.isDirected(),multigraph:n.isMultigraph(),compound:n.isCompound()},nodes:i(n),edges:u(n)};r.isUndefined(n.graph())||(t.value=r.clone(n.graph()));return t},read:function(n){var t=new o(n.options).setGraph(n.value);return r.each(n.nodes,(function(n){t.setNode(n.v,n.value),n.parent&&t.setParent(n.v,n.parent)})),r.each(n.edges,(function(n){t.setEdge({v:n.v,w:n.w,name:n.name},n.value)})),t}}},function(n,t,e){n.exports={components:e(300),dijkstra:e(103),dijkstraAll:e(301),findCycles:e(302),floydWarshall:e(303),isAcyclic:e(304),postorder:e(305),preorder:e(306),prim:e(307),tarjan:e(105),topsort:e(106)}},function(n,t,e){var r=e(3);n.exports=function(n){var t,e={},o=[];function i(o){r.has(e,o)||(e[o]=!0,t.push(o),r.each(n.successors(o),i),r.each(n.predecessors(o),i))}return r.each(n.nodes(),(function(n){t=[],i(n),t.length&&o.push(t)})),o}},function(n,t,e){var r=e(103),o=e(3);n.exports=function(n,t,e){return o.transform(n.nodes(),(function(o,i){o[i]=r(n,i,t,e)}),{})}},function(n,t,e){var r=e(3),o=e(105);n.exports=function(n){return r.filter(o(n),(function(t){return t.length>1||1===t.length&&n.hasEdge(t[0],t[0])}))}},function(n,t,e){var r=e(3);n.exports=function(n,t,e){return function(n,t,e){var r={},o=n.nodes();return o.forEach((function(n){r[n]={},r[n][n]={distance:0},o.forEach((function(t){n!==t&&(r[n][t]={distance:Number.POSITIVE_INFINITY})})),e(n).forEach((function(e){var o=e.v===n?e.w:e.v,i=t(e);r[n][o]={distance:i,predecessor:n}}))})),o.forEach((function(n){var