New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-sigma

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sigma - npm Package Compare versions

Comparing version 1.2.31 to 1.2.33

4

es/LoadGEXF.js

@@ -71,4 +71,4 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

}, {
key: "componentWillReceiveProps",
value: function componentWillReceiveProps(props) {
key: "componentDidUpdate",
value: function componentDidUpdate(props) {
// reload only if path changes

@@ -75,0 +75,0 @@ if (this.props.path !== props.path) {

@@ -39,3 +39,3 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@param {NeoGraphItemsProducers} producers Optional transformer for creating Sigma nodes and edges,
instance compatible with NeoGraphItemsProducers
instance compatible with NeoGraphItemsProducers
@param {Function} onGraphLoaded Optional callback for graph update

@@ -56,2 +56,6 @@

if (!props.producers) {
props.producers = new NeoGraphItemsProducers();
}
_this = _possibleConstructorReturn(this, _getPrototypeOf(NeoCypher).call(this, props));

@@ -114,6 +118,2 @@

_defineProperty(NeoCypher, "defaultProps", {
producers: new NeoGraphItemsProducers()
});
_defineProperty(NeoCypher, "propTypes", {

@@ -120,0 +120,0 @@ url: PropTypes.string.isRequired,

@@ -53,3 +53,3 @@ "use strict";

componentWillReceiveProps(props) {
componentDidUpdate(props) {
// reload only if path changes

@@ -56,0 +56,0 @@ if (this.props.path !== props.path) {

@@ -37,3 +37,3 @@ "use strict";

@param {NeoGraphItemsProducers} producers Optional transformer for creating Sigma nodes and edges,
instance compatible with NeoGraphItemsProducers
instance compatible with NeoGraphItemsProducers
@param {Function} onGraphLoaded Optional callback for graph update

@@ -46,2 +46,6 @@

constructor(props) {
if (!props.producers) {
props.producers = new _NeoGraphItemsProducers.default();
}
super(props);

@@ -95,6 +99,2 @@

_defineProperty(NeoCypher, "defaultProps", {
producers: new _NeoGraphItemsProducers.default()
});
_defineProperty(NeoCypher, "propTypes", {

@@ -101,0 +101,0 @@ url: _propTypes.default.string.isRequired,

@@ -14,4 +14,6 @@ "use strict";

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -18,0 +20,0 @@

@@ -5,3 +5,3 @@ {

"author": "Maxim Vorobjov <maxim.vorobjov@gmail.com>",
"version": "1.2.31",
"version": "1.2.33",
"license": "MIT",

@@ -62,8 +62,8 @@ "bugs": "https://github.com/dunnock/react-sigma/issues",

"@babel/preset-react": "^7.0.0",
"@storybook/addon-actions": "^5.1.11",
"@storybook/addon-info": "^5.1.11",
"@storybook/addon-knobs": "^5.1.11",
"@storybook/addon-options": "^5.1.11",
"@storybook/addons": "^5.1.11",
"@storybook/react": "5.1",
"@storybook/addon-actions": "^5.2.8",
"@storybook/addon-info": "^5.2.8",
"@storybook/addon-knobs": "^5.2.8",
"@storybook/addon-options": "^5.2.8",
"@storybook/addons": "^5.2.8",
"@storybook/react": "^5.2.8",
"@storybook/storybook-deployer": "^2.8.1",

@@ -114,3 +114,3 @@ "babel-eslint": "^10.0.1",

"strip-ansi": "^5.1.0",
"webpack": "^4.29.6",
"webpack": "^4.41.2",
"webpack-cli": "^3.2.3",

@@ -117,0 +117,0 @@ "webpack-manifest-plugin": "^2.0.4",

@@ -1,1 +0,1 @@

var Sigma=function(e){var t={};function s(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=186)}({186:function(e,t,s){s(187),e.exports=s(188)},187:function(module,exports,__webpack_require__){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";var _root=this,webWorkers="Worker"in _root;function Supervisor(sigInst,options){var _this=this,workerFn=sigInst.getForceAtlas2Worker&&sigInst.getForceAtlas2Worker();if(options=options||{},_root.URL=_root.URL||_root.webkitURL,this.sigInst=sigInst,this.graph=this.sigInst.graph,this.ppn=10,this.ppe=3,this.config={},this.shouldUseWorker=!1!==options.worker&&webWorkers,this.workerUrl=options.workerUrl,this.started=!1,this.running=!1,this.shouldUseWorker){if(this.workerUrl)this.worker=new Worker(this.workerUrl);else{var blob=this.makeBlob(workerFn);this.worker=new Worker(URL.createObjectURL(blob))}this.worker.postMessage=this.worker.webkitPostMessage||this.worker.postMessage}else eval(workerFn);this.msgName=this.worker?"message":"newCoords",this.listener=function(e){_this.nodesByteArray=new Float32Array(e.data.nodes),_this.running&&(_this.applyLayoutChanges(),_this.sendByteArrayToWorker(),_this.sigInst.refresh())},(this.worker||document).addEventListener(this.msgName,this.listener),this.graphToByteArrays(),sigInst.bind("kill",function(){sigInst.killForceAtlas2()})}Supervisor.prototype.makeBlob=function(e){var t;try{t=new Blob([e],{type:"application/javascript"})}catch(s){_root.BlobBuilder=_root.BlobBuilder||_root.WebKitBlobBuilder||_root.MozBlobBuilder,(t=new BlobBuilder).append(e),t=t.getBlob()}return t},Supervisor.prototype.graphToByteArrays=function(){var e,t,s,r=this.graph.nodes(),n=this.graph.edges(),i=r.length*this.ppn,o=n.length*this.ppe,a={};for(this.nodesByteArray=new Float32Array(i),this.edgesByteArray=new Float32Array(o),e=t=0,s=r.length;e<s;e++)a[r[e].id]=t,this.nodesByteArray[t]=r[e].x,this.nodesByteArray[t+1]=r[e].y,this.nodesByteArray[t+2]=0,this.nodesByteArray[t+3]=0,this.nodesByteArray[t+4]=0,this.nodesByteArray[t+5]=0,this.nodesByteArray[t+6]=1+this.graph.degree(r[e].id),this.nodesByteArray[t+7]=1,this.nodesByteArray[t+8]=r[e].size,this.nodesByteArray[t+9]=0,t+=this.ppn;for(e=t=0,s=n.length;e<s;e++)this.edgesByteArray[t]=a[n[e].source],this.edgesByteArray[t+1]=a[n[e].target],this.edgesByteArray[t+2]=n[e].weight||0,t+=this.ppe},Supervisor.prototype.applyLayoutChanges=function(){for(var e=this.graph.nodes(),t=0,s=0,r=this.nodesByteArray.length;s<r;s+=this.ppn)e[t].x=this.nodesByteArray[s],e[t].y=this.nodesByteArray[s+1],t++},Supervisor.prototype.sendByteArrayToWorker=function(e){var t={action:e||"loop",nodes:this.nodesByteArray.buffer},s=[this.nodesByteArray.buffer];"start"===e&&(t.config=this.config||{},t.edges=this.edgesByteArray.buffer,s.push(this.edgesByteArray.buffer)),this.shouldUseWorker?this.worker.postMessage(t,s):_root.postMessage(t,"*")},Supervisor.prototype.start=function(){if(!this.running){var e;for(e in this.running=!0,this.sigInst.cameras)this.sigInst.cameras[e].edgequadtree._enabled=!1;this.started?this.sendByteArrayToWorker():(this.sendByteArrayToWorker("start"),this.started=!0)}},Supervisor.prototype.stop=function(){if(this.running){var e,t,s;for(e in this.sigInst.cameras)(t=this.sigInst.cameras[e]).edgequadtree._enabled=!0,s=sigma.utils.getBoundaries(this.graph,t.readPrefix),t.settings("drawEdges")&&t.settings("enableEdgeHovering")&&t.edgequadtree.index(this.sigInst.graph,{prefix:t.readPrefix,bounds:{x:s.minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}});this.running=!1}},Supervisor.prototype.killWorker=function(){this.worker?this.worker.terminate():(_root.postMessage({action:"kill"},"*"),document.removeEventListener(this.msgName,this.listener))},Supervisor.prototype.configure=function(e){if(this.config=e,this.started){var t={action:"config",config:this.config};this.shouldUseWorker?this.worker.postMessage(t):_root.postMessage(t,"*")}},sigma.prototype.startForceAtlas2=function(e){return this.supervisor||(this.supervisor=new Supervisor(this,e)),e&&this.supervisor.configure(e),this.supervisor.start(),this},sigma.prototype.stopForceAtlas2=function(){return this.supervisor?(this.supervisor.stop(),this):this},sigma.prototype.killForceAtlas2=function(){return this.supervisor?(this.supervisor.stop(),this.supervisor.killWorker(),this.supervisor=null,this):this},sigma.prototype.configForceAtlas2=function(e){return this.supervisor||(this.supervisor=new Supervisor(this,e)),this.supervisor.configure(e),this},sigma.prototype.isForceAtlas2Running=function(e){return!!this.supervisor&&this.supervisor.running}}).call(window)}).call(window)},188:function(module,exports){(function(){(function(undefined){"use strict";var _root=this,inWebWorker=!("document"in _root),Worker=function(e){var t,s,r,n={ppn:10,ppe:3,ppr:9,maxForce:10,iterations:0,converged:!1,settings:{linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:0,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5,startingIterations:1,iterationsPerRender:1}};var i,o={x:0,y:1,dx:2,dy:3,old_dx:4,old_dy:5,mass:6,convergence:7,size:8,fixed:9},a={source:0,target:1,weight:2},d={node:0,centerX:1,centerY:2,size:3,nextSibling:4,firstChild:5,mass:6,massCenterX:7,massCenterY:8};function h(e,t){if(e%n.ppn!=0)throw"np: non correct ("+e+").";if(e!==parseInt(e))throw"np: non int.";if(t in o)return e+o[t];throw"ForceAtlas2.Worker - Inexistant node property given ("+t+")."}function p(e,t){if(e%n.ppe!=0)throw"ep: non correct ("+e+").";if(e!==parseInt(e))throw"ep: non int.";if(t in a)return e+a[t];throw"ForceAtlas2.Worker - Inexistant edge property given ("+t+")."}function g(e,t){if(e%n.ppr!=0)throw"rp: non correct ("+e+").";if(e!==parseInt(e))throw"rp: non int.";if(t in d)return e+d[t];throw"ForceAtlas2.Worker - Inexistant region property given ("+t+")."}function l(e){n.settings=function(){var e,t,s={};for(e=arguments.length-1;e>=0;e--)for(t in arguments[e])s[t]=arguments[e][t];return s}(e,n.settings)}function u(){var e,i,o,a,d,l,u,c,f,y,m,x,w,v,b,k,M,A,_;for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"old_dx")]=t[h(o,"dx")],t[h(o,"old_dy")]=t[h(o,"dy")],t[h(o,"dx")]=0,t[h(o,"dy")]=0;if(n.settings.outboundAttractionDistribution){for(f=0,o=0;o<n.nodesLength;o+=n.ppn)f+=t[h(o,"mass")];f/=n.nodesLength}if(n.settings.barnesHutOptimize){var C,B,S=1/0,W=-1/0,Y=1/0,F=-1/0;for(r=[],o=0;o<n.nodesLength;o+=n.ppn)S=Math.min(S,t[h(o,"x")]),W=Math.max(W,t[h(o,"x")]),Y=Math.min(Y,t[h(o,"y")]),F=Math.max(F,t[h(o,"y")]);for(r[g(0,"node")]=-1,r[g(0,"centerX")]=(S+W)/2,r[g(0,"centerY")]=(Y+F)/2,r[g(0,"size")]=Math.max(W-S,F-Y),r[g(0,"nextSibling")]=-1,r[g(0,"firstChild")]=-1,r[g(0,"mass")]=0,r[g(0,"massCenterX")]=0,r[g(0,"massCenterY")]=0,e=1,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(r[g(i,"firstChild")]>=0)C=t[h(o,"x")]<r[g(i,"centerX")]?t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]:r[g(i,"firstChild")]+n.ppr:t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]+2*n.ppr:r[g(i,"firstChild")]+3*n.ppr,r[g(i,"massCenterX")]=(r[g(i,"massCenterX")]*r[g(i,"mass")]+t[h(o,"x")]*t[h(o,"mass")])/(r[g(i,"mass")]+t[h(o,"mass")]),r[g(i,"massCenterY")]=(r[g(i,"massCenterY")]*r[g(i,"mass")]+t[h(o,"y")]*t[h(o,"mass")])/(r[g(i,"mass")]+t[h(o,"mass")]),r[g(i,"mass")]+=t[h(o,"mass")],i=C;else{if(r[g(i,"node")]<0){r[g(i,"node")]=o;break}if(r[g(i,"firstChild")]=e*n.ppr,u=r[g(i,"size")]/2,c=r[g(i,"firstChild")],r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]-u,r[g(c,"centerY")]=r[g(i,"centerY")]-u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=c+n.ppr,r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,c+=n.ppr,r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]-u,r[g(c,"centerY")]=r[g(i,"centerY")]+u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=c+n.ppr,r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,c+=n.ppr,r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]+u,r[g(c,"centerY")]=r[g(i,"centerY")]-u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=c+n.ppr,r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,c+=n.ppr,r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]+u,r[g(c,"centerY")]=r[g(i,"centerY")]+u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=r[g(i,"nextSibling")],r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,e+=4,C=t[h(r[g(i,"node")],"x")]<r[g(i,"centerX")]?t[h(r[g(i,"node")],"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]:r[g(i,"firstChild")]+n.ppr:t[h(r[g(i,"node")],"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]+2*n.ppr:r[g(i,"firstChild")]+3*n.ppr,r[g(i,"mass")]=t[h(r[g(i,"node")],"mass")],r[g(i,"massCenterX")]=t[h(r[g(i,"node")],"x")],r[g(i,"massCenterY")]=t[h(r[g(i,"node")],"y")],r[g(C,"node")]=r[g(i,"node")],r[g(i,"node")]=-1,C!==(B=t[h(o,"x")]<r[g(i,"centerX")]?t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]:r[g(i,"firstChild")]+n.ppr:t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]+2*n.ppr:r[g(i,"firstChild")]+3*n.ppr)){r[g(B,"node")]=o;break}i=C}}if(n.settings.barnesHutOptimize)for(y=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(r[g(i,"firstChild")]>=0){if(v=Math.sqrt(Math.pow(t[h(o,"x")]-r[g(i,"massCenterX")],2)+Math.pow(t[h(o,"y")]-r[g(i,"massCenterY")],2)),2*r[g(i,"size")]/v<n.settings.barnesHutTheta){if(m=t[h(o,"x")]-r[g(i,"massCenterX")],x=t[h(o,"y")]-r[g(i,"massCenterY")],n.settings.adjustSizes?v>0?(b=y*t[h(o,"mass")]*r[g(i,"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v<0&&(b=-y*t[h(o,"mass")]*r[g(i,"mass")]/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v>0&&(b=y*t[h(o,"mass")]*r[g(i,"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b),r[g(i,"nextSibling")]<0)break;i=r[g(i,"nextSibling")];continue}i=r[g(i,"firstChild")]}else{if(r[g(i,"node")]>=0&&r[g(i,"node")]!==o&&(m=t[h(o,"x")]-t[h(r[g(i,"node")],"x")],x=t[h(o,"y")]-t[h(r[g(i,"node")],"y")],v=Math.sqrt(m*m+x*x),n.settings.adjustSizes?v>0?(b=y*t[h(o,"mass")]*t[h(r[g(i,"node")],"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v<0&&(b=-y*t[h(o,"mass")]*t[h(r[g(i,"node")],"mass")]/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v>0&&(b=y*t[h(o,"mass")]*t[h(r[g(i,"node")],"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b)),r[g(i,"nextSibling")]<0)break;i=r[g(i,"nextSibling")]}else for(y=n.settings.scalingRatio,a=0;a<n.nodesLength;a+=n.ppn)for(d=0;d<a;d+=n.ppn)m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(v=Math.sqrt(m*m+x*x)-t[h(a,"size")]-t[h(d,"size")])>0?(b=y*t[h(a,"mass")]*t[h(d,"mass")]/v/v,t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]+=m*b,t[h(d,"dy")]+=x*b):v<0&&(b=100*y*t[h(a,"mass")]*t[h(d,"mass")],t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]-=m*b,t[h(d,"dy")]-=x*b):(v=Math.sqrt(m*m+x*x))>0&&(b=y*t[h(a,"mass")]*t[h(d,"mass")]/v/v,t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]-=m*b,t[h(d,"dy")]-=x*b);for(c=n.settings.gravity/n.settings.scalingRatio,y=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)b=0,m=t[h(o,"x")],x=t[h(o,"y")],v=Math.sqrt(Math.pow(m,2)+Math.pow(x,2)),n.settings.strongGravityMode?v>0&&(b=y*t[h(o,"mass")]*c):v>0&&(b=y*t[h(o,"mass")]*c/v),t[h(o,"dx")]-=m*b,t[h(o,"dy")]-=x*b;for(y=1*(n.settings.outboundAttractionDistribution?f:1),l=0;l<n.edgesLength;l+=n.ppe)a=s[p(l,"source")],d=s[p(l,"target")],u=s[p(l,"weight")],w=Math.pow(u,n.settings.edgeWeightInfluence),m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(v=Math.sqrt(Math.pow(m,2)+Math.pow(x,2)-t[h(a,"size")]-t[h(d,"size")]),n.settings.linLogMode?n.settings.outboundAttractionDistribution?v>0&&(b=-y*w*Math.log(1+v)/v/t[h(a,"mass")]):v>0&&(b=-y*w*Math.log(1+v)/v):n.settings.outboundAttractionDistribution?v>0&&(b=-y*w/t[h(a,"mass")]):v>0&&(b=-y*w)):(v=Math.sqrt(Math.pow(m,2)+Math.pow(x,2)),n.settings.linLogMode?n.settings.outboundAttractionDistribution?v>0&&(b=-y*w*Math.log(1+v)/v/t[h(a,"mass")]):v>0&&(b=-y*w*Math.log(1+v)/v):n.settings.outboundAttractionDistribution?(v=1,b=-y*w/t[h(a,"mass")]):(v=1,b=-y*w)),v>0&&(t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]-=m*b,t[h(d,"dy")]-=x*b);if(n.settings.adjustSizes)for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||((k=Math.sqrt(Math.pow(t[h(o,"dx")],2)+Math.pow(t[h(o,"dy")],2)))>n.maxForce&&(t[h(o,"dx")]=t[h(o,"dx")]*n.maxForce/k,t[h(o,"dy")]=t[h(o,"dy")]*n.maxForce/k),M=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),A=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,_=.1*Math.log(1+A)/(1+Math.sqrt(M)),t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(_/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(_/n.settings.slowDown));else for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||(M=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),A=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,_=t[h(o,"convergence")]*Math.log(1+A)/(1+Math.sqrt(M)),t[h(o,"convergence")]=Math.min(1,Math.sqrt(_*(Math.pow(t[h(o,"dx")],2)+Math.pow(t[h(o,"dy")],2))/(1+Math.sqrt(M)))),t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(_/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(_/n.settings.slowDown));n.iterations++}function c(e){for(var t=0;t<e;t++)u();i()}i="undefined"!=typeof window&&window.document?function(){var e;document.createEvent?(e=document.createEvent("Event")).initEvent("newCoords",!0,!1):(e=document.createEventObject()).eventType="newCoords",e.eventName="newCoords",e.data={nodes:t.buffer},requestAnimationFrame(function(){document.dispatchEvent(e)})}:function(){self.postMessage({nodes:t.buffer},[t.buffer])};var f=function(e){switch(e.data.action){case"start":i=new Float32Array(e.data.nodes),o=new Float32Array(e.data.edges),a=(a=e.data.config)||{},t=i,s=o,n.nodesLength=t.length,n.edgesLength=s.length,l(a),c(n.settings.startingIterations);break;case"loop":t=new Float32Array(e.data.nodes),c(n.settings.iterationsPerRender);break;case"config":l(e.data.config);break;case"kill":!function(e){var t;for(t in e)"hasOwnProperty"in e&&!e.hasOwnProperty(t)||delete e[t]}(n),t=null,s=null,r=null,self.removeEventListener("message",f)}var i,o,a};self.addEventListener("message",f)};function crush(e){var t,s,r,n=["x","y","dx","dy","old_dx","old_dy","mass","convergence","size","fixed"],i=["source","target","weight"],o=["node","centerX","centerY","size","nextSibling","firstChild","mass","massCenterX","massCenterY"];for(s=0,r=o.length;s<r;s++)t=new RegExp("rp\\(([^,]*), '"+o[s]+"'\\)","g"),e=e.replace(t,0===s?"$1":"$1 + "+s);for(s=0,r=n.length;s<r;s++)t=new RegExp("np\\(([^,]*), '"+n[s]+"'\\)","g"),e=e.replace(t,0===s?"$1":"$1 + "+s);for(s=0,r=i.length;s<r;s++)t=new RegExp("ep\\(([^,]*), '"+i[s]+"'\\)","g"),e=e.replace(t,0===s?"$1":"$1 + "+s);return e}function getWorkerFn(){return";("+(crush?crush(Worker.toString()):Worker.toString())+").call(this);"}if(inWebWorker)eval(getWorkerFn());else{if("undefined"==typeof sigma)throw"sigma is not declared";sigma.prototype.getForceAtlas2Worker=getWorkerFn}}).call(window)}).call(window)}});
var Sigma=function(e){var t={};function s(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=186)}({186:function(e,t,s){s(187),e.exports=s(188)},187:function(module,exports,__webpack_require__){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";var _root=this,webWorkers="Worker"in _root;function Supervisor(sigInst,options){var _this=this,workerFn=sigInst.getForceAtlas2Worker&&sigInst.getForceAtlas2Worker();if(options=options||{},_root.URL=_root.URL||_root.webkitURL,this.sigInst=sigInst,this.graph=this.sigInst.graph,this.ppn=10,this.ppe=3,this.config={},this.shouldUseWorker=!1!==options.worker&&webWorkers,this.workerUrl=options.workerUrl,this.started=!1,this.running=!1,this.shouldUseWorker){if(this.workerUrl)this.worker=new Worker(this.workerUrl);else{var blob=this.makeBlob(workerFn);this.worker=new Worker(URL.createObjectURL(blob))}this.worker.postMessage=this.worker.webkitPostMessage||this.worker.postMessage}else eval(workerFn);this.msgName=this.worker?"message":"newCoords",this.listener=function(e){_this.nodesByteArray=new Float32Array(e.data.nodes),_this.running&&(_this.applyLayoutChanges(),_this.sendByteArrayToWorker(),_this.sigInst.refresh())},(this.worker||document).addEventListener(this.msgName,this.listener),this.graphToByteArrays(),sigInst.bind("kill",(function(){sigInst.killForceAtlas2()}))}Supervisor.prototype.makeBlob=function(e){var t;try{t=new Blob([e],{type:"application/javascript"})}catch(s){_root.BlobBuilder=_root.BlobBuilder||_root.WebKitBlobBuilder||_root.MozBlobBuilder,(t=new BlobBuilder).append(e),t=t.getBlob()}return t},Supervisor.prototype.graphToByteArrays=function(){var e,t,s,r=this.graph.nodes(),n=this.graph.edges(),i=r.length*this.ppn,o=n.length*this.ppe,a={};for(this.nodesByteArray=new Float32Array(i),this.edgesByteArray=new Float32Array(o),e=t=0,s=r.length;e<s;e++)a[r[e].id]=t,this.nodesByteArray[t]=r[e].x,this.nodesByteArray[t+1]=r[e].y,this.nodesByteArray[t+2]=0,this.nodesByteArray[t+3]=0,this.nodesByteArray[t+4]=0,this.nodesByteArray[t+5]=0,this.nodesByteArray[t+6]=1+this.graph.degree(r[e].id),this.nodesByteArray[t+7]=1,this.nodesByteArray[t+8]=r[e].size,this.nodesByteArray[t+9]=0,t+=this.ppn;for(e=t=0,s=n.length;e<s;e++)this.edgesByteArray[t]=a[n[e].source],this.edgesByteArray[t+1]=a[n[e].target],this.edgesByteArray[t+2]=n[e].weight||0,t+=this.ppe},Supervisor.prototype.applyLayoutChanges=function(){for(var e=this.graph.nodes(),t=0,s=0,r=this.nodesByteArray.length;s<r;s+=this.ppn)e[t].x=this.nodesByteArray[s],e[t].y=this.nodesByteArray[s+1],t++},Supervisor.prototype.sendByteArrayToWorker=function(e){var t={action:e||"loop",nodes:this.nodesByteArray.buffer},s=[this.nodesByteArray.buffer];"start"===e&&(t.config=this.config||{},t.edges=this.edgesByteArray.buffer,s.push(this.edgesByteArray.buffer)),this.shouldUseWorker?this.worker.postMessage(t,s):_root.postMessage(t,"*")},Supervisor.prototype.start=function(){if(!this.running){var e;for(e in this.running=!0,this.sigInst.cameras)this.sigInst.cameras[e].edgequadtree._enabled=!1;this.started?this.sendByteArrayToWorker():(this.sendByteArrayToWorker("start"),this.started=!0)}},Supervisor.prototype.stop=function(){if(this.running){var e,t,s;for(e in this.sigInst.cameras)(t=this.sigInst.cameras[e]).edgequadtree._enabled=!0,s=sigma.utils.getBoundaries(this.graph,t.readPrefix),t.settings("drawEdges")&&t.settings("enableEdgeHovering")&&t.edgequadtree.index(this.sigInst.graph,{prefix:t.readPrefix,bounds:{x:s.minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}});this.running=!1}},Supervisor.prototype.killWorker=function(){this.worker?this.worker.terminate():(_root.postMessage({action:"kill"},"*"),document.removeEventListener(this.msgName,this.listener))},Supervisor.prototype.configure=function(e){if(this.config=e,this.started){var t={action:"config",config:this.config};this.shouldUseWorker?this.worker.postMessage(t):_root.postMessage(t,"*")}},sigma.prototype.startForceAtlas2=function(e){return this.supervisor||(this.supervisor=new Supervisor(this,e)),e&&this.supervisor.configure(e),this.supervisor.start(),this},sigma.prototype.stopForceAtlas2=function(){return this.supervisor?(this.supervisor.stop(),this):this},sigma.prototype.killForceAtlas2=function(){return this.supervisor?(this.supervisor.stop(),this.supervisor.killWorker(),this.supervisor=null,this):this},sigma.prototype.configForceAtlas2=function(e){return this.supervisor||(this.supervisor=new Supervisor(this,e)),this.supervisor.configure(e),this},sigma.prototype.isForceAtlas2Running=function(e){return!!this.supervisor&&this.supervisor.running}}).call(window)}).call(window)},188:function(module,exports){(function(){(function(undefined){"use strict";var _root=this,inWebWorker=!("document"in _root),Worker=function(e){var t,s,r,n={ppn:10,ppe:3,ppr:9,maxForce:10,iterations:0,converged:!1,settings:{linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:0,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5,startingIterations:1,iterationsPerRender:1}};var i,o={x:0,y:1,dx:2,dy:3,old_dx:4,old_dy:5,mass:6,convergence:7,size:8,fixed:9},a={source:0,target:1,weight:2},d={node:0,centerX:1,centerY:2,size:3,nextSibling:4,firstChild:5,mass:6,massCenterX:7,massCenterY:8};function h(e,t){if(e%n.ppn!=0)throw"np: non correct ("+e+").";if(e!==parseInt(e))throw"np: non int.";if(t in o)return e+o[t];throw"ForceAtlas2.Worker - Inexistant node property given ("+t+")."}function p(e,t){if(e%n.ppe!=0)throw"ep: non correct ("+e+").";if(e!==parseInt(e))throw"ep: non int.";if(t in a)return e+a[t];throw"ForceAtlas2.Worker - Inexistant edge property given ("+t+")."}function g(e,t){if(e%n.ppr!=0)throw"rp: non correct ("+e+").";if(e!==parseInt(e))throw"rp: non int.";if(t in d)return e+d[t];throw"ForceAtlas2.Worker - Inexistant region property given ("+t+")."}function l(e){n.settings=function(){var e,t,s={};for(e=arguments.length-1;e>=0;e--)for(t in arguments[e])s[t]=arguments[e][t];return s}(e,n.settings)}function u(){var e,i,o,a,d,l,u,c,f,y,m,x,w,v,b,k,M,A,_;for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"old_dx")]=t[h(o,"dx")],t[h(o,"old_dy")]=t[h(o,"dy")],t[h(o,"dx")]=0,t[h(o,"dy")]=0;if(n.settings.outboundAttractionDistribution){for(f=0,o=0;o<n.nodesLength;o+=n.ppn)f+=t[h(o,"mass")];f/=n.nodesLength}if(n.settings.barnesHutOptimize){var C,B,S=1/0,W=-1/0,Y=1/0,F=-1/0;for(r=[],o=0;o<n.nodesLength;o+=n.ppn)S=Math.min(S,t[h(o,"x")]),W=Math.max(W,t[h(o,"x")]),Y=Math.min(Y,t[h(o,"y")]),F=Math.max(F,t[h(o,"y")]);for(r[g(0,"node")]=-1,r[g(0,"centerX")]=(S+W)/2,r[g(0,"centerY")]=(Y+F)/2,r[g(0,"size")]=Math.max(W-S,F-Y),r[g(0,"nextSibling")]=-1,r[g(0,"firstChild")]=-1,r[g(0,"mass")]=0,r[g(0,"massCenterX")]=0,r[g(0,"massCenterY")]=0,e=1,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(r[g(i,"firstChild")]>=0)C=t[h(o,"x")]<r[g(i,"centerX")]?t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]:r[g(i,"firstChild")]+n.ppr:t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]+2*n.ppr:r[g(i,"firstChild")]+3*n.ppr,r[g(i,"massCenterX")]=(r[g(i,"massCenterX")]*r[g(i,"mass")]+t[h(o,"x")]*t[h(o,"mass")])/(r[g(i,"mass")]+t[h(o,"mass")]),r[g(i,"massCenterY")]=(r[g(i,"massCenterY")]*r[g(i,"mass")]+t[h(o,"y")]*t[h(o,"mass")])/(r[g(i,"mass")]+t[h(o,"mass")]),r[g(i,"mass")]+=t[h(o,"mass")],i=C;else{if(r[g(i,"node")]<0){r[g(i,"node")]=o;break}if(r[g(i,"firstChild")]=e*n.ppr,u=r[g(i,"size")]/2,c=r[g(i,"firstChild")],r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]-u,r[g(c,"centerY")]=r[g(i,"centerY")]-u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=c+n.ppr,r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,c+=n.ppr,r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]-u,r[g(c,"centerY")]=r[g(i,"centerY")]+u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=c+n.ppr,r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,c+=n.ppr,r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]+u,r[g(c,"centerY")]=r[g(i,"centerY")]-u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=c+n.ppr,r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,c+=n.ppr,r[g(c,"node")]=-1,r[g(c,"centerX")]=r[g(i,"centerX")]+u,r[g(c,"centerY")]=r[g(i,"centerY")]+u,r[g(c,"size")]=u,r[g(c,"nextSibling")]=r[g(i,"nextSibling")],r[g(c,"firstChild")]=-1,r[g(c,"mass")]=0,r[g(c,"massCenterX")]=0,r[g(c,"massCenterY")]=0,e+=4,C=t[h(r[g(i,"node")],"x")]<r[g(i,"centerX")]?t[h(r[g(i,"node")],"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]:r[g(i,"firstChild")]+n.ppr:t[h(r[g(i,"node")],"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]+2*n.ppr:r[g(i,"firstChild")]+3*n.ppr,r[g(i,"mass")]=t[h(r[g(i,"node")],"mass")],r[g(i,"massCenterX")]=t[h(r[g(i,"node")],"x")],r[g(i,"massCenterY")]=t[h(r[g(i,"node")],"y")],r[g(C,"node")]=r[g(i,"node")],r[g(i,"node")]=-1,C!==(B=t[h(o,"x")]<r[g(i,"centerX")]?t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]:r[g(i,"firstChild")]+n.ppr:t[h(o,"y")]<r[g(i,"centerY")]?r[g(i,"firstChild")]+2*n.ppr:r[g(i,"firstChild")]+3*n.ppr)){r[g(B,"node")]=o;break}i=C}}if(n.settings.barnesHutOptimize)for(y=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(r[g(i,"firstChild")]>=0){if(v=Math.sqrt(Math.pow(t[h(o,"x")]-r[g(i,"massCenterX")],2)+Math.pow(t[h(o,"y")]-r[g(i,"massCenterY")],2)),2*r[g(i,"size")]/v<n.settings.barnesHutTheta){if(m=t[h(o,"x")]-r[g(i,"massCenterX")],x=t[h(o,"y")]-r[g(i,"massCenterY")],n.settings.adjustSizes?v>0?(b=y*t[h(o,"mass")]*r[g(i,"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v<0&&(b=-y*t[h(o,"mass")]*r[g(i,"mass")]/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v>0&&(b=y*t[h(o,"mass")]*r[g(i,"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b),r[g(i,"nextSibling")]<0)break;i=r[g(i,"nextSibling")];continue}i=r[g(i,"firstChild")]}else{if(r[g(i,"node")]>=0&&r[g(i,"node")]!==o&&(m=t[h(o,"x")]-t[h(r[g(i,"node")],"x")],x=t[h(o,"y")]-t[h(r[g(i,"node")],"y")],v=Math.sqrt(m*m+x*x),n.settings.adjustSizes?v>0?(b=y*t[h(o,"mass")]*t[h(r[g(i,"node")],"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v<0&&(b=-y*t[h(o,"mass")]*t[h(r[g(i,"node")],"mass")]/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b):v>0&&(b=y*t[h(o,"mass")]*t[h(r[g(i,"node")],"mass")]/v/v,t[h(o,"dx")]+=m*b,t[h(o,"dy")]+=x*b)),r[g(i,"nextSibling")]<0)break;i=r[g(i,"nextSibling")]}else for(y=n.settings.scalingRatio,a=0;a<n.nodesLength;a+=n.ppn)for(d=0;d<a;d+=n.ppn)m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(v=Math.sqrt(m*m+x*x)-t[h(a,"size")]-t[h(d,"size")])>0?(b=y*t[h(a,"mass")]*t[h(d,"mass")]/v/v,t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]+=m*b,t[h(d,"dy")]+=x*b):v<0&&(b=100*y*t[h(a,"mass")]*t[h(d,"mass")],t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]-=m*b,t[h(d,"dy")]-=x*b):(v=Math.sqrt(m*m+x*x))>0&&(b=y*t[h(a,"mass")]*t[h(d,"mass")]/v/v,t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]-=m*b,t[h(d,"dy")]-=x*b);for(c=n.settings.gravity/n.settings.scalingRatio,y=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)b=0,m=t[h(o,"x")],x=t[h(o,"y")],v=Math.sqrt(Math.pow(m,2)+Math.pow(x,2)),n.settings.strongGravityMode?v>0&&(b=y*t[h(o,"mass")]*c):v>0&&(b=y*t[h(o,"mass")]*c/v),t[h(o,"dx")]-=m*b,t[h(o,"dy")]-=x*b;for(y=1*(n.settings.outboundAttractionDistribution?f:1),l=0;l<n.edgesLength;l+=n.ppe)a=s[p(l,"source")],d=s[p(l,"target")],u=s[p(l,"weight")],w=Math.pow(u,n.settings.edgeWeightInfluence),m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(v=Math.sqrt(Math.pow(m,2)+Math.pow(x,2)-t[h(a,"size")]-t[h(d,"size")]),n.settings.linLogMode?n.settings.outboundAttractionDistribution?v>0&&(b=-y*w*Math.log(1+v)/v/t[h(a,"mass")]):v>0&&(b=-y*w*Math.log(1+v)/v):n.settings.outboundAttractionDistribution?v>0&&(b=-y*w/t[h(a,"mass")]):v>0&&(b=-y*w)):(v=Math.sqrt(Math.pow(m,2)+Math.pow(x,2)),n.settings.linLogMode?n.settings.outboundAttractionDistribution?v>0&&(b=-y*w*Math.log(1+v)/v/t[h(a,"mass")]):v>0&&(b=-y*w*Math.log(1+v)/v):n.settings.outboundAttractionDistribution?(v=1,b=-y*w/t[h(a,"mass")]):(v=1,b=-y*w)),v>0&&(t[h(a,"dx")]+=m*b,t[h(a,"dy")]+=x*b,t[h(d,"dx")]-=m*b,t[h(d,"dy")]-=x*b);if(n.settings.adjustSizes)for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||((k=Math.sqrt(Math.pow(t[h(o,"dx")],2)+Math.pow(t[h(o,"dy")],2)))>n.maxForce&&(t[h(o,"dx")]=t[h(o,"dx")]*n.maxForce/k,t[h(o,"dy")]=t[h(o,"dy")]*n.maxForce/k),M=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),A=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,_=.1*Math.log(1+A)/(1+Math.sqrt(M)),t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(_/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(_/n.settings.slowDown));else for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||(M=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),A=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,_=t[h(o,"convergence")]*Math.log(1+A)/(1+Math.sqrt(M)),t[h(o,"convergence")]=Math.min(1,Math.sqrt(_*(Math.pow(t[h(o,"dx")],2)+Math.pow(t[h(o,"dy")],2))/(1+Math.sqrt(M)))),t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(_/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(_/n.settings.slowDown));n.iterations++}function c(e){for(var t=0;t<e;t++)u();i()}i="undefined"!=typeof window&&window.document?function(){var e;document.createEvent?(e=document.createEvent("Event")).initEvent("newCoords",!0,!1):(e=document.createEventObject()).eventType="newCoords",e.eventName="newCoords",e.data={nodes:t.buffer},requestAnimationFrame((function(){document.dispatchEvent(e)}))}:function(){self.postMessage({nodes:t.buffer},[t.buffer])};var f=function(e){switch(e.data.action){case"start":i=new Float32Array(e.data.nodes),o=new Float32Array(e.data.edges),a=(a=e.data.config)||{},t=i,s=o,n.nodesLength=t.length,n.edgesLength=s.length,l(a),c(n.settings.startingIterations);break;case"loop":t=new Float32Array(e.data.nodes),c(n.settings.iterationsPerRender);break;case"config":l(e.data.config);break;case"kill":!function(e){var t;for(t in e)"hasOwnProperty"in e&&!e.hasOwnProperty(t)||delete e[t]}(n),t=null,s=null,r=null,self.removeEventListener("message",f)}var i,o,a};self.addEventListener("message",f)};function crush(e){var t,s,r,n=["x","y","dx","dy","old_dx","old_dy","mass","convergence","size","fixed"],i=["source","target","weight"],o=["node","centerX","centerY","size","nextSibling","firstChild","mass","massCenterX","massCenterY"];for(s=0,r=o.length;s<r;s++)t=new RegExp("rp\\(([^,]*), '"+o[s]+"'\\)","g"),e=e.replace(t,0===s?"$1":"$1 + "+s);for(s=0,r=n.length;s<r;s++)t=new RegExp("np\\(([^,]*), '"+n[s]+"'\\)","g"),e=e.replace(t,0===s?"$1":"$1 + "+s);for(s=0,r=i.length;s<r;s++)t=new RegExp("ep\\(([^,]*), '"+i[s]+"'\\)","g"),e=e.replace(t,0===s?"$1":"$1 + "+s);return e}function getWorkerFn(){return";("+(crush?crush(Worker.toString()):Worker.toString())+").call(this);"}if(inWebWorker)eval(getWorkerFn());else{if("undefined"==typeof sigma)throw"sigma is not declared";sigma.prototype.getForceAtlas2Worker=getWorkerFn}}).call(window)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var t={};function r(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,s){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(s,n,function(t){return e[t]}.bind(null,n));return s},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=189)}({189:function(e,t,r){r(190),e.exports=r(191)},190:function(module,exports,__webpack_require__){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.utils.pkg("sigma.layouts");var _root=this,webWorkers="Worker"in _root,eventEmitter={};function Supervisor(e,t){_root.URL=_root.URL||_root.webkitURL,t=t||{},this.sigInst=e,this.graph=this.sigInst.graph,this.ppn=10,this.ppe=3,this.config={},this.worker=null,this.shouldUseWorker=null,this.workerUrl=null,this.runOnBackground=null,this.easing=null,this.randomize=null,this.configure(t),this.started=!1,this.running=!1,this.initWorker()}sigma.classes.dispatcher.extend(eventEmitter),Supervisor.prototype.makeBlob=function(e){var t;try{t=new Blob([e],{type:"application/javascript"})}catch(r){_root.BlobBuilder=_root.BlobBuilder||_root.WebKitBlobBuilder||_root.MozBlobBuilder,(t=new BlobBuilder).append(e),t=t.getBlob()}return t},Supervisor.prototype.graphToByteArrays=function(){var e,t,r,s=this.graph.nodes(),n=this.graph.edges(),i=s.length*this.ppn,o=n.length*this.ppe,a={};for(this.nodesByteArray=new Float32Array(i),this.edgesByteArray=new Float32Array(o),e=t=0,r=s.length;e<r;e++)a[s[e].id]=t,this.nodesByteArray[t]=this.randomize(s[e].x),this.nodesByteArray[t+1]=this.randomize(s[e].y),this.nodesByteArray[t+2]=0,this.nodesByteArray[t+3]=0,this.nodesByteArray[t+4]=0,this.nodesByteArray[t+5]=0,this.nodesByteArray[t+6]=1+this.graph.degree(s[e].id),this.nodesByteArray[t+7]=1,this.nodesByteArray[t+8]=s[e].size,this.nodesByteArray[t+9]=s[e].fixed||0,t+=this.ppn;for(e=t=0,r=n.length;e<r;e++)this.edgesByteArray[t]=a[n[e].source],this.edgesByteArray[t+1]=a[n[e].target],this.edgesByteArray[t+2]=n[e].weight||0,t+=this.ppe},Supervisor.prototype.applyLayoutChanges=function(e){for(var t=this.graph.nodes(),r=0,s=0,n=this.nodesByteArray.length;s<n;s+=this.ppn)t[r].fixed||(e?(t[r].fa2_x=this.nodesByteArray[s],t[r].fa2_y=this.nodesByteArray[s+1]):(t[r].x=this.nodesByteArray[s],t[r].y=this.nodesByteArray[s+1])),r++},Supervisor.prototype.sendByteArrayToWorker=function(e){var t={action:e||"loop",nodes:this.nodesByteArray.buffer},r=[this.nodesByteArray.buffer];"start"===e&&(t.config=this.config||{},t.edges=this.edgesByteArray.buffer,r.push(this.edgesByteArray.buffer)),this.shouldUseWorker?this.worker.postMessage(t,r):_root.postMessage(t,"*")},Supervisor.prototype.start=function(){this.running||(this.running=!0,this.started?this.sendByteArrayToWorker():(this.sendByteArrayToWorker("start"),this.started=!0,eventEmitter.dispatchEvent("start")))},Supervisor.prototype.stop=function(){this.running&&(this.running=!1,eventEmitter.dispatchEvent("stop"))},Supervisor.prototype.initWorker=function(){var _this=this,workerFn=sigma.layouts.getForceLinkWorker();if(this.shouldUseWorker){if(this.workerUrl)this.worker=new Worker(this.workerUrl);else{var blob=this.makeBlob(workerFn);this.worker=new Worker(URL.createObjectURL(blob))}this.worker.postMessage=this.worker.webkitPostMessage||this.worker.postMessage}else eval(workerFn);this.msgName=this.worker?"message":"newCoords",this.listener=function(e){_this.nodesByteArray=new Float32Array(e.data.nodes),_this.running&&(_this.applyLayoutChanges(_this.runOnBackground),_this.sendByteArrayToWorker(),_this.runOnBackground||_this.sigInst.refresh({skipIndexation:!0})),e.data.converged&&(_this.running=!1),_this.running||(_this.killWorker(),_this.runOnBackground&&_this.easing?(_this.applyLayoutChanges(!0),eventEmitter.dispatchEvent("interpolate"),_this.graph.nodes().filter(function(e){return e.fixed}).forEach(function(e){e.fa2_x=e.x,e.fa2_y=e.y}),sigma.plugins.animate(_this.sigInst,{x:"fa2_x",y:"fa2_y"},{easing:_this.easing,onComplete:function(){_this.sigInst.refresh(),eventEmitter.dispatchEvent("stop")}})):(_this.applyLayoutChanges(!1),_this.sigInst.refresh(),eventEmitter.dispatchEvent("stop")))},(this.worker||document).addEventListener(this.msgName,this.listener),this.graphToByteArrays(),_this.sigInst.bind("kill",function(){sigma.layouts.killForceLink()})},Supervisor.prototype.killWorker=function(){this.worker?this.worker.terminate():(_root.postMessage({action:"kill"},"*"),document.removeEventListener(this.msgName,this.listener))},Supervisor.prototype.configure=function(e){switch(this.config=e,this.shouldUseWorker=!1!==e.worker&&webWorkers,this.workerUrl=e.workerUrl,this.runOnBackground=!!e.background,this.easing=e.easing,e.randomize){case"globally":this.randomize=function(t){return Math.random()*(e.randomizeFactor||1)};break;case"locally":this.randomize=function(t){return t+Math.random()*(e.randomizeFactor||1)};break;default:this.randomize=function(e){return e}}if(this.started){var t={action:"config",config:this.config};this.shouldUseWorker?this.worker.postMessage(t):_root.postMessage(t,"*")}};var supervisor=null;sigma.layouts.startForceLink=function(e,t){return supervisor?supervisor.running||(supervisor.killWorker(),supervisor.initWorker(),supervisor.started=!1):supervisor=new Supervisor(e,t),t&&supervisor.configure(t),supervisor.start(),eventEmitter},sigma.layouts.stopForceLink=function(){if(supervisor)return supervisor.stop(),supervisor},sigma.layouts.killForceLink=function(){supervisor&&(supervisor.stop(),supervisor.killWorker(),supervisor=null,eventEmitter={},sigma.classes.dispatcher.extend(eventEmitter))},sigma.layouts.configForceLink=function(e,t){return supervisor?supervisor.running||(supervisor.killWorker(),supervisor.initWorker(),supervisor.started=!1):supervisor=new Supervisor(e,t),supervisor.configure(t),eventEmitter},sigma.layouts.isForceLinkRunning=function(){return!!supervisor&&supervisor.running}}).call(this)}).call(window)},191:function(module,exports){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.utils.pkg("sigma.layouts");var _root=this,inWebWorker=!("document"in _root),Worker=function(e){var t,r,s,n={ppn:10,ppe:3,ppr:9,maxForce:10,iterations:0,converged:!1,settings:{linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:0,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5,startingIterations:1,iterationsPerRender:1,maxIterations:1e3,avgDistanceThreshold:.01,autoStop:!1,alignNodeSiblings:!1,nodeSiblingsScale:1,nodeSiblingsAngleMin:0,minNodeDistance:0}};var i,o={x:0,y:1,dx:2,dy:3,old_dx:4,old_dy:5,mass:6,convergence:7,size:8,fixed:9},a={source:0,target:1,weight:2},d={node:0,centerX:1,centerY:2,size:3,nextSibling:4,firstChild:5,mass:6,massCenterX:7,massCenterY:8};function h(e,t){if(e%n.ppn!=0)throw new Error('Invalid argument in np: "i" is not correct ('+e+").");if(e!==parseInt(e))throw new TypeError('Invalid argument in np: "i" is not an integer.');if(t in o)return e+o[t];throw new Error("ForceLink.Worker - Inexistant node property given ("+t+").")}function g(e,t){if(e%n.ppe!=0)throw new Error('Invalid argument in ep: "i" is not correct ('+e+").");if(e!==parseInt(e))throw new TypeError('Invalid argument in ep: "i" is not an integer.');if(t in a)return e+a[t];throw new Error("ForceLink.Worker - Inexistant edge property given ("+t+").")}function l(e,t){if(e%n.ppr!=0)throw new Error('Invalid argument in rp: "i" is not correct ('+e+").");if(e!==parseInt(e))throw new TypeError('Invalid argument in rp: "i" is not an integer.');if(t in d)return e+d[t];throw new Error("ForceLink.Worker - Inexistant region property given ("+t+").")}function u(e){n.settings=function(){var e,t,r={};for(e=arguments.length-1;e>=0;e--)for(t in arguments[e])r[t]=arguments[e][t];return r}(e,n.settings)}function c(){var e,i,o,a,d,u,c,p,y,f,m,x,v,k,b,w,_,M=n.settings.minNodeDistance;for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"old_dx")]=t[h(o,"dx")],t[h(o,"old_dy")]=t[h(o,"dy")],t[h(o,"dx")]=0,t[h(o,"dy")]=0;if(n.settings.outboundAttractionDistribution){for(y=0,o=0;o<n.nodesLength;o+=n.ppn)y+=t[h(o,"mass")];y/=n.nodesLength}if(n.settings.barnesHutOptimize){var C,S,B=1/0,A=-1/0,E=1/0,L=-1/0;for(s=[],o=0;o<n.nodesLength;o+=n.ppn)B=Math.min(B,t[h(o,"x")]),A=Math.max(A,t[h(o,"x")]),E=Math.min(E,t[h(o,"y")]),L=Math.max(L,t[h(o,"y")]);for(s[l(0,"node")]=-1,s[l(0,"centerX")]=(B+A)/2,s[l(0,"centerY")]=(E+L)/2,s[l(0,"size")]=Math.max(A-B,L-E),s[l(0,"nextSibling")]=-1,s[l(0,"firstChild")]=-1,s[l(0,"mass")]=0,s[l(0,"massCenterX")]=0,s[l(0,"massCenterY")]=0,e=1,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(s[l(i,"firstChild")]>=0)C=t[h(o,"x")]<s[l(i,"centerX")]?t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]:s[l(i,"firstChild")]+n.ppr:t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]+2*n.ppr:s[l(i,"firstChild")]+3*n.ppr,s[l(i,"massCenterX")]=(s[l(i,"massCenterX")]*s[l(i,"mass")]+t[h(o,"x")]*t[h(o,"mass")])/(s[l(i,"mass")]+t[h(o,"mass")]),s[l(i,"massCenterY")]=(s[l(i,"massCenterY")]*s[l(i,"mass")]+t[h(o,"y")]*t[h(o,"mass")])/(s[l(i,"mass")]+t[h(o,"mass")]),s[l(i,"mass")]+=t[h(o,"mass")],i=C;else{if(s[l(i,"node")]<0){s[l(i,"node")]=o;break}if(s[l(i,"firstChild")]=e*n.ppr,c=s[l(i,"size")]/2,p=s[l(i,"firstChild")],s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]-c,s[l(p,"centerY")]=s[l(i,"centerY")]-c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=p+n.ppr,s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,p+=n.ppr,s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]-c,s[l(p,"centerY")]=s[l(i,"centerY")]+c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=p+n.ppr,s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,p+=n.ppr,s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]+c,s[l(p,"centerY")]=s[l(i,"centerY")]-c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=p+n.ppr,s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,p+=n.ppr,s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]+c,s[l(p,"centerY")]=s[l(i,"centerY")]+c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=s[l(i,"nextSibling")],s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,e+=4,C=t[h(s[l(i,"node")],"x")]<s[l(i,"centerX")]?t[h(s[l(i,"node")],"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]:s[l(i,"firstChild")]+n.ppr:t[h(s[l(i,"node")],"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]+2*n.ppr:s[l(i,"firstChild")]+3*n.ppr,s[l(i,"mass")]=t[h(s[l(i,"node")],"mass")],s[l(i,"massCenterX")]=t[h(s[l(i,"node")],"x")],s[l(i,"massCenterY")]=t[h(s[l(i,"node")],"y")],s[l(C,"node")]=s[l(i,"node")],s[l(i,"node")]=-1,C!==(S=t[h(o,"x")]<s[l(i,"centerX")]?t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]:s[l(i,"firstChild")]+n.ppr:t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]+2*n.ppr:s[l(i,"firstChild")]+3*n.ppr)){s[l(S,"node")]=o;break}i=C}}if(n.settings.barnesHutOptimize)for(f=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(s[l(i,"firstChild")]>=0){if(w=Math.sqrt((t[h(o,"x")]-s[l(i,"massCenterX")])*(t[h(o,"x")]-s[l(i,"massCenterX")])+(t[h(o,"y")]-s[l(i,"massCenterY")])*(t[h(o,"y")]-s[l(i,"massCenterY")])),2*s[l(i,"size")]/w<n.settings.barnesHutTheta){if(m=t[h(o,"x")]-s[l(i,"massCenterX")],x=t[h(o,"y")]-s[l(i,"massCenterY")],n.settings.adjustSizes?w>0?(_=f*t[h(o,"mass")]*s[l(i,"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w<0&&(_=-f*t[h(o,"mass")]*s[l(i,"mass")]/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w>0&&(_=f*t[h(o,"mass")]*s[l(i,"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_),s[l(i,"nextSibling")]<0)break;i=s[l(i,"nextSibling")];continue}i=s[l(i,"firstChild")]}else{if(s[l(i,"node")]>=0&&s[l(i,"node")]!==o&&(m=t[h(o,"x")]-t[h(s[l(i,"node")],"x")],x=t[h(o,"y")]-t[h(s[l(i,"node")],"y")],w=Math.sqrt(m*m+x*x),n.settings.adjustSizes?w>0?(_=f*t[h(o,"mass")]*t[h(s[l(i,"node")],"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w<0&&(_=-f*t[h(o,"mass")]*t[h(s[l(i,"node")],"mass")]/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w>0&&(_=f*t[h(o,"mass")]*t[h(s[l(i,"node")],"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_)),s[l(i,"nextSibling")]<0)break;i=s[l(i,"nextSibling")]}else for(f=n.settings.scalingRatio,a=0;a<n.nodesLength;a+=n.ppn)for(d=0;d<a;d+=n.ppn)m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(w=Math.sqrt(m*m+x*x)-t[h(a,"size")]-t[h(d,"size")])>0?(_=f*t[h(a,"mass")]*t[h(d,"mass")]/w/w,t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]+=m*_,t[h(d,"dy")]+=x*_):w<0&&(_=100*f*t[h(a,"mass")]*t[h(d,"mass")],t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]-=m*_,t[h(d,"dy")]-=x*_):(w=Math.sqrt(m*m+x*x))>0&&(_=f*t[h(a,"mass")]*t[h(d,"mass")]/w/w,t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]-=m*_,t[h(d,"dy")]-=x*_);for(p=n.settings.gravity/n.settings.scalingRatio,f=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)_=0,m=t[h(o,"x")],x=t[h(o,"y")],w=Math.sqrt(m*m+x*x),n.settings.strongGravityMode?w>0&&(_=f*t[h(o,"mass")]*p):w>0&&(_=f*t[h(o,"mass")]*p/w),t[h(o,"dx")]-=m*_,t[h(o,"dy")]-=x*_;for(f=1*(n.settings.outboundAttractionDistribution?y:1),u=0;u<n.edgesLength;u+=n.ppe)a=r[g(u,"source")],d=r[g(u,"target")],c=r[g(u,"weight")],b=Math.pow(c,n.settings.edgeWeightInfluence),m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(w=Math.sqrt(m*m+x*x-t[h(a,"size")]-t[h(d,"size")])-M,n.settings.linLogMode?n.settings.outboundAttractionDistribution?w>0&&(_=-f*b*Math.log(1+w)/w/t[h(a,"mass")]):w>0&&(_=-f*b*Math.log(1+w)/w):n.settings.outboundAttractionDistribution?w>0&&(_=-f*b/t[h(a,"mass")]):w>0&&(_=-f*b)):(w=Math.sqrt(m*m+x*x)-M,n.settings.linLogMode?n.settings.outboundAttractionDistribution?w>0&&(_=-f*b*Math.log(1+w)/w/t[h(a,"mass")]):w>0&&(_=-f*b*Math.log(1+w)/w):n.settings.outboundAttractionDistribution?(w=1,_=-f*b/t[h(a,"mass")]):(w=1,_=-f*b)),w>0&&(t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]-=m*_,t[h(d,"dy")]-=x*_);var W,I,z,F,Y=0;if(n.settings.adjustSizes)for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||((W=Math.sqrt(t[h(o,"dx")]*t[h(o,"dx")]+t[h(o,"dy")]*t[h(o,"dy")]))>n.maxForce&&(t[h(o,"dx")]=t[h(o,"dx")]*n.maxForce/W,t[h(o,"dy")]=t[h(o,"dy")]*n.maxForce/W),I=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),z=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,F=.1*Math.log(1+z)/(1+Math.sqrt(I)),v=t[h(o,"x")],k=t[h(o,"y")],t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(F/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(F/n.settings.slowDown),m=t[h(o,"x")],x=t[h(o,"y")],Y+=w=Math.sqrt((m-v)*(m-v)+(x-k)*(x-k)));else for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||(I=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),z=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,F=t[h(o,"convergence")]*Math.log(1+z)/(1+Math.sqrt(I)),t[h(o,"convergence")]=Math.min(1,Math.sqrt(F*(t[h(o,"dx")]*t[h(o,"dx")]+t[h(o,"dy")]*t[h(o,"dy")])/(1+Math.sqrt(I)))),v=t[h(o,"x")],k=t[h(o,"y")],t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(F/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(F/n.settings.slowDown),m=t[h(o,"x")],x=t[h(o,"y")],Y+=w=Math.sqrt((m-v)*(m-v)+(x-k)*(x-k)));if(n.iterations++,n.settings.autoStop&&(n.converged=n.iterations>n.settings.maxIterations||Y/n.nodesLength<n.settings.avgDistanceThreshold,n.converged&&n.settings.alignNodeSiblings)){var X,O,q={},j={};for(u=0;u<n.edgesLength;u+=n.ppe)(a=r[g(u,"source")])!==(d=r[g(u,"target")])&&(q[a]=q[a]||{},q[d]=q[d]||{},q[a][d]=!0,q[d][a]=!0);Object.keys(q).forEach(function(e){e=~~e,2==(O=Object.keys(q[e])).length&&((X=O[0]+";"+O[1])in j?j[X].push(e):(X=O[1]+";"+O[0],j[X]||(j[X]=[~~O[1],~~O[0]]),j[X].push(e)))});var P,D,R,T,U,N,$,H,G,K,J,Q,V,Z,ee=n.settings.nodeSiblingsAngleMin;Object.keys(j).forEach(function(e){if(D=j[e].shift(),R=j[e].shift(),1!=(P=j[e].filter(function(e){return!t[h(e,"fixed")]})).length){var r,s,i,o,a,d,g,l,u,c,p,y;if(N=t[h(D,"x")],$=t[h(D,"y")],H=t[h(R,"x")],G=t[h(R,"y")],T=Object.keys(q[D]).length,U=Object.keys(q[R]).length,J=function(e,t,r,s,n){return{x:e+(r-e)*n,y:t+(s-t)*n}}(N,$,H,G,(.75-(s=.25))*(T/(T+U)-(r=0))/(1-r)+s),Q={xi:-((d=G)-(o=$)),yi:(a=H)-(i=N),xi_prime:d-o,yi_prime:-(a-i)},g=N,l=$,u=H,c=G,K=Math.sqrt((u-g)*(u-g)+(c-l)*(c-l)),y=K,V={x:((p=Q).xi_prime-p.xi)/y,y:(p.yi_prime-p.yi)/y},Z=function(e){return Math.acos(e.x/Math.sqrt(e.x*e.x+e.y*e.y))}(V),2*ee>Math.PI)throw new Error("ForceLink.Worker - Invalid parameter: angleMin must be smaller than 2 PI.");ee>0&&(Z<ee||Z>Math.PI-ee&&Z<=Math.PI?V={x:2*Math.cos(Math.PI-ee),y:2*Math.sin(Math.PI-ee)}:(Z>2*Math.PI-ee||Z>=Math.PI&&Z<Math.PI+ee)&&(V={x:2*Math.cos(ee),y:2*Math.sin(ee)}));var f=0,m=1,x=1;P.length%2==1&&(x=0,f=1);for(var v=0;v<P.length;v++)t[h(P[v],"x")]=J.x+m*V.x*x*(f||v>=2?n.settings.nodeSiblingsScale:2*n.settings.nodeSiblingsScale/3),t[h(P[v],"y")]=J.y+m*V.y*x*(f||v>=2?n.settings.nodeSiblingsScale:2*n.settings.nodeSiblingsScale/3),m=-m,x+=(v+f)%2}})}}function p(e){for(var t=0;t<e;t++)c();i()}i="undefined"!=typeof window&&window.document?function(){var e;n.autoStop&&!n.converged||(document.createEvent?(e=document.createEvent("Event")).initEvent("newCoords",!0,!1):(e=document.createEventObject()).eventType="newCoords",e.eventName="newCoords",e.data={nodes:t.buffer,converged:n.converged},requestAnimationFrame(function(){document.dispatchEvent(e)}))}:function(){n.autoStop&&!n.converged||self.postMessage({nodes:t.buffer,converged:n.converged},[t.buffer])};var y=function(e){switch(e.data.action){case"start":i=new Float32Array(e.data.nodes),o=new Float32Array(e.data.edges),a=(a=e.data.config)||{},t=i,r=o,n.nodesLength=t.length,n.edgesLength=r.length,u(a),p(n.settings.startingIterations);break;case"loop":t=new Float32Array(e.data.nodes),p(n.settings.iterationsPerRender);break;case"config":u(e.data.config);break;case"kill":!function(e){var t;for(t in e)"hasOwnProperty"in e&&!e.hasOwnProperty(t)||delete e[t]}(n),t=null,r=null,s=null,self.removeEventListener("message",y)}var i,o,a};self.addEventListener("message",y)};function crush(e){var t,r,s,n=["x","y","dx","dy","old_dx","old_dy","mass","convergence","size","fixed"],i=["source","target","weight"],o=["node","centerX","centerY","size","nextSibling","firstChild","mass","massCenterX","massCenterY"];for(r=0,s=o.length;r<s;r++)t=new RegExp("rp\\(([^,]*), '"+o[r]+"'\\)","g"),e=e.replace(t,0===r?"$1":"$1 + "+r);for(r=0,s=n.length;r<s;r++)t=new RegExp("np\\(([^,]*), '"+n[r]+"'\\)","g"),e=e.replace(t,0===r?"$1":"$1 + "+r);for(r=0,s=i.length;r<s;r++)t=new RegExp("ep\\(([^,]*), '"+i[r]+"'\\)","g"),e=e.replace(t,0===r?"$1":"$1 + "+r);return e}function getWorkerFn(){return";("+(crush?crush(Worker.toString()):Worker.toString())+").call(this);"}if(inWebWorker)eval(getWorkerFn());else{if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.layouts.getForceLinkWorker=getWorkerFn}}).call(this)}).call(window)}});
var Sigma=function(e){var t={};function r(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,s){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(s,n,function(t){return e[t]}.bind(null,n));return s},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=189)}({189:function(e,t,r){r(190),e.exports=r(191)},190:function(module,exports,__webpack_require__){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.utils.pkg("sigma.layouts");var _root=this,webWorkers="Worker"in _root,eventEmitter={};function Supervisor(e,t){_root.URL=_root.URL||_root.webkitURL,t=t||{},this.sigInst=e,this.graph=this.sigInst.graph,this.ppn=10,this.ppe=3,this.config={},this.worker=null,this.shouldUseWorker=null,this.workerUrl=null,this.runOnBackground=null,this.easing=null,this.randomize=null,this.configure(t),this.started=!1,this.running=!1,this.initWorker()}sigma.classes.dispatcher.extend(eventEmitter),Supervisor.prototype.makeBlob=function(e){var t;try{t=new Blob([e],{type:"application/javascript"})}catch(r){_root.BlobBuilder=_root.BlobBuilder||_root.WebKitBlobBuilder||_root.MozBlobBuilder,(t=new BlobBuilder).append(e),t=t.getBlob()}return t},Supervisor.prototype.graphToByteArrays=function(){var e,t,r,s=this.graph.nodes(),n=this.graph.edges(),i=s.length*this.ppn,o=n.length*this.ppe,a={};for(this.nodesByteArray=new Float32Array(i),this.edgesByteArray=new Float32Array(o),e=t=0,r=s.length;e<r;e++)a[s[e].id]=t,this.nodesByteArray[t]=this.randomize(s[e].x),this.nodesByteArray[t+1]=this.randomize(s[e].y),this.nodesByteArray[t+2]=0,this.nodesByteArray[t+3]=0,this.nodesByteArray[t+4]=0,this.nodesByteArray[t+5]=0,this.nodesByteArray[t+6]=1+this.graph.degree(s[e].id),this.nodesByteArray[t+7]=1,this.nodesByteArray[t+8]=s[e].size,this.nodesByteArray[t+9]=s[e].fixed||0,t+=this.ppn;for(e=t=0,r=n.length;e<r;e++)this.edgesByteArray[t]=a[n[e].source],this.edgesByteArray[t+1]=a[n[e].target],this.edgesByteArray[t+2]=n[e].weight||0,t+=this.ppe},Supervisor.prototype.applyLayoutChanges=function(e){for(var t=this.graph.nodes(),r=0,s=0,n=this.nodesByteArray.length;s<n;s+=this.ppn)t[r].fixed||(e?(t[r].fa2_x=this.nodesByteArray[s],t[r].fa2_y=this.nodesByteArray[s+1]):(t[r].x=this.nodesByteArray[s],t[r].y=this.nodesByteArray[s+1])),r++},Supervisor.prototype.sendByteArrayToWorker=function(e){var t={action:e||"loop",nodes:this.nodesByteArray.buffer},r=[this.nodesByteArray.buffer];"start"===e&&(t.config=this.config||{},t.edges=this.edgesByteArray.buffer,r.push(this.edgesByteArray.buffer)),this.shouldUseWorker?this.worker.postMessage(t,r):_root.postMessage(t,"*")},Supervisor.prototype.start=function(){this.running||(this.running=!0,this.started?this.sendByteArrayToWorker():(this.sendByteArrayToWorker("start"),this.started=!0,eventEmitter.dispatchEvent("start")))},Supervisor.prototype.stop=function(){this.running&&(this.running=!1,eventEmitter.dispatchEvent("stop"))},Supervisor.prototype.initWorker=function(){var _this=this,workerFn=sigma.layouts.getForceLinkWorker();if(this.shouldUseWorker){if(this.workerUrl)this.worker=new Worker(this.workerUrl);else{var blob=this.makeBlob(workerFn);this.worker=new Worker(URL.createObjectURL(blob))}this.worker.postMessage=this.worker.webkitPostMessage||this.worker.postMessage}else eval(workerFn);this.msgName=this.worker?"message":"newCoords",this.listener=function(e){_this.nodesByteArray=new Float32Array(e.data.nodes),_this.running&&(_this.applyLayoutChanges(_this.runOnBackground),_this.sendByteArrayToWorker(),_this.runOnBackground||_this.sigInst.refresh({skipIndexation:!0})),e.data.converged&&(_this.running=!1),_this.running||(_this.killWorker(),_this.runOnBackground&&_this.easing?(_this.applyLayoutChanges(!0),eventEmitter.dispatchEvent("interpolate"),_this.graph.nodes().filter((function(e){return e.fixed})).forEach((function(e){e.fa2_x=e.x,e.fa2_y=e.y})),sigma.plugins.animate(_this.sigInst,{x:"fa2_x",y:"fa2_y"},{easing:_this.easing,onComplete:function(){_this.sigInst.refresh(),eventEmitter.dispatchEvent("stop")}})):(_this.applyLayoutChanges(!1),_this.sigInst.refresh(),eventEmitter.dispatchEvent("stop")))},(this.worker||document).addEventListener(this.msgName,this.listener),this.graphToByteArrays(),_this.sigInst.bind("kill",(function(){sigma.layouts.killForceLink()}))},Supervisor.prototype.killWorker=function(){this.worker?this.worker.terminate():(_root.postMessage({action:"kill"},"*"),document.removeEventListener(this.msgName,this.listener))},Supervisor.prototype.configure=function(e){switch(this.config=e,this.shouldUseWorker=!1!==e.worker&&webWorkers,this.workerUrl=e.workerUrl,this.runOnBackground=!!e.background,this.easing=e.easing,e.randomize){case"globally":this.randomize=function(t){return Math.random()*(e.randomizeFactor||1)};break;case"locally":this.randomize=function(t){return t+Math.random()*(e.randomizeFactor||1)};break;default:this.randomize=function(e){return e}}if(this.started){var t={action:"config",config:this.config};this.shouldUseWorker?this.worker.postMessage(t):_root.postMessage(t,"*")}};var supervisor=null;sigma.layouts.startForceLink=function(e,t){return supervisor?supervisor.running||(supervisor.killWorker(),supervisor.initWorker(),supervisor.started=!1):supervisor=new Supervisor(e,t),t&&supervisor.configure(t),supervisor.start(),eventEmitter},sigma.layouts.stopForceLink=function(){if(supervisor)return supervisor.stop(),supervisor},sigma.layouts.killForceLink=function(){supervisor&&(supervisor.stop(),supervisor.killWorker(),supervisor=null,eventEmitter={},sigma.classes.dispatcher.extend(eventEmitter))},sigma.layouts.configForceLink=function(e,t){return supervisor?supervisor.running||(supervisor.killWorker(),supervisor.initWorker(),supervisor.started=!1):supervisor=new Supervisor(e,t),supervisor.configure(t),eventEmitter},sigma.layouts.isForceLinkRunning=function(){return!!supervisor&&supervisor.running}}).call(this)}).call(window)},191:function(module,exports){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.utils.pkg("sigma.layouts");var _root=this,inWebWorker=!("document"in _root),Worker=function(e){var t,r,s,n={ppn:10,ppe:3,ppr:9,maxForce:10,iterations:0,converged:!1,settings:{linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:0,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5,startingIterations:1,iterationsPerRender:1,maxIterations:1e3,avgDistanceThreshold:.01,autoStop:!1,alignNodeSiblings:!1,nodeSiblingsScale:1,nodeSiblingsAngleMin:0,minNodeDistance:0}};var i,o={x:0,y:1,dx:2,dy:3,old_dx:4,old_dy:5,mass:6,convergence:7,size:8,fixed:9},a={source:0,target:1,weight:2},d={node:0,centerX:1,centerY:2,size:3,nextSibling:4,firstChild:5,mass:6,massCenterX:7,massCenterY:8};function h(e,t){if(e%n.ppn!=0)throw new Error('Invalid argument in np: "i" is not correct ('+e+").");if(e!==parseInt(e))throw new TypeError('Invalid argument in np: "i" is not an integer.');if(t in o)return e+o[t];throw new Error("ForceLink.Worker - Inexistant node property given ("+t+").")}function g(e,t){if(e%n.ppe!=0)throw new Error('Invalid argument in ep: "i" is not correct ('+e+").");if(e!==parseInt(e))throw new TypeError('Invalid argument in ep: "i" is not an integer.');if(t in a)return e+a[t];throw new Error("ForceLink.Worker - Inexistant edge property given ("+t+").")}function l(e,t){if(e%n.ppr!=0)throw new Error('Invalid argument in rp: "i" is not correct ('+e+").");if(e!==parseInt(e))throw new TypeError('Invalid argument in rp: "i" is not an integer.');if(t in d)return e+d[t];throw new Error("ForceLink.Worker - Inexistant region property given ("+t+").")}function u(e){n.settings=function(){var e,t,r={};for(e=arguments.length-1;e>=0;e--)for(t in arguments[e])r[t]=arguments[e][t];return r}(e,n.settings)}function c(){var e,i,o,a,d,u,c,p,y,f,m,x,v,k,b,w,_,M=n.settings.minNodeDistance;for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"old_dx")]=t[h(o,"dx")],t[h(o,"old_dy")]=t[h(o,"dy")],t[h(o,"dx")]=0,t[h(o,"dy")]=0;if(n.settings.outboundAttractionDistribution){for(y=0,o=0;o<n.nodesLength;o+=n.ppn)y+=t[h(o,"mass")];y/=n.nodesLength}if(n.settings.barnesHutOptimize){var C,S,B=1/0,A=-1/0,E=1/0,L=-1/0;for(s=[],o=0;o<n.nodesLength;o+=n.ppn)B=Math.min(B,t[h(o,"x")]),A=Math.max(A,t[h(o,"x")]),E=Math.min(E,t[h(o,"y")]),L=Math.max(L,t[h(o,"y")]);for(s[l(0,"node")]=-1,s[l(0,"centerX")]=(B+A)/2,s[l(0,"centerY")]=(E+L)/2,s[l(0,"size")]=Math.max(A-B,L-E),s[l(0,"nextSibling")]=-1,s[l(0,"firstChild")]=-1,s[l(0,"mass")]=0,s[l(0,"massCenterX")]=0,s[l(0,"massCenterY")]=0,e=1,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(s[l(i,"firstChild")]>=0)C=t[h(o,"x")]<s[l(i,"centerX")]?t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]:s[l(i,"firstChild")]+n.ppr:t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]+2*n.ppr:s[l(i,"firstChild")]+3*n.ppr,s[l(i,"massCenterX")]=(s[l(i,"massCenterX")]*s[l(i,"mass")]+t[h(o,"x")]*t[h(o,"mass")])/(s[l(i,"mass")]+t[h(o,"mass")]),s[l(i,"massCenterY")]=(s[l(i,"massCenterY")]*s[l(i,"mass")]+t[h(o,"y")]*t[h(o,"mass")])/(s[l(i,"mass")]+t[h(o,"mass")]),s[l(i,"mass")]+=t[h(o,"mass")],i=C;else{if(s[l(i,"node")]<0){s[l(i,"node")]=o;break}if(s[l(i,"firstChild")]=e*n.ppr,c=s[l(i,"size")]/2,p=s[l(i,"firstChild")],s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]-c,s[l(p,"centerY")]=s[l(i,"centerY")]-c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=p+n.ppr,s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,p+=n.ppr,s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]-c,s[l(p,"centerY")]=s[l(i,"centerY")]+c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=p+n.ppr,s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,p+=n.ppr,s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]+c,s[l(p,"centerY")]=s[l(i,"centerY")]-c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=p+n.ppr,s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,p+=n.ppr,s[l(p,"node")]=-1,s[l(p,"centerX")]=s[l(i,"centerX")]+c,s[l(p,"centerY")]=s[l(i,"centerY")]+c,s[l(p,"size")]=c,s[l(p,"nextSibling")]=s[l(i,"nextSibling")],s[l(p,"firstChild")]=-1,s[l(p,"mass")]=0,s[l(p,"massCenterX")]=0,s[l(p,"massCenterY")]=0,e+=4,C=t[h(s[l(i,"node")],"x")]<s[l(i,"centerX")]?t[h(s[l(i,"node")],"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]:s[l(i,"firstChild")]+n.ppr:t[h(s[l(i,"node")],"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]+2*n.ppr:s[l(i,"firstChild")]+3*n.ppr,s[l(i,"mass")]=t[h(s[l(i,"node")],"mass")],s[l(i,"massCenterX")]=t[h(s[l(i,"node")],"x")],s[l(i,"massCenterY")]=t[h(s[l(i,"node")],"y")],s[l(C,"node")]=s[l(i,"node")],s[l(i,"node")]=-1,C!==(S=t[h(o,"x")]<s[l(i,"centerX")]?t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]:s[l(i,"firstChild")]+n.ppr:t[h(o,"y")]<s[l(i,"centerY")]?s[l(i,"firstChild")]+2*n.ppr:s[l(i,"firstChild")]+3*n.ppr)){s[l(S,"node")]=o;break}i=C}}if(n.settings.barnesHutOptimize)for(f=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)for(i=0;;)if(s[l(i,"firstChild")]>=0){if(w=Math.sqrt((t[h(o,"x")]-s[l(i,"massCenterX")])*(t[h(o,"x")]-s[l(i,"massCenterX")])+(t[h(o,"y")]-s[l(i,"massCenterY")])*(t[h(o,"y")]-s[l(i,"massCenterY")])),2*s[l(i,"size")]/w<n.settings.barnesHutTheta){if(m=t[h(o,"x")]-s[l(i,"massCenterX")],x=t[h(o,"y")]-s[l(i,"massCenterY")],n.settings.adjustSizes?w>0?(_=f*t[h(o,"mass")]*s[l(i,"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w<0&&(_=-f*t[h(o,"mass")]*s[l(i,"mass")]/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w>0&&(_=f*t[h(o,"mass")]*s[l(i,"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_),s[l(i,"nextSibling")]<0)break;i=s[l(i,"nextSibling")];continue}i=s[l(i,"firstChild")]}else{if(s[l(i,"node")]>=0&&s[l(i,"node")]!==o&&(m=t[h(o,"x")]-t[h(s[l(i,"node")],"x")],x=t[h(o,"y")]-t[h(s[l(i,"node")],"y")],w=Math.sqrt(m*m+x*x),n.settings.adjustSizes?w>0?(_=f*t[h(o,"mass")]*t[h(s[l(i,"node")],"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w<0&&(_=-f*t[h(o,"mass")]*t[h(s[l(i,"node")],"mass")]/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_):w>0&&(_=f*t[h(o,"mass")]*t[h(s[l(i,"node")],"mass")]/w/w,t[h(o,"dx")]+=m*_,t[h(o,"dy")]+=x*_)),s[l(i,"nextSibling")]<0)break;i=s[l(i,"nextSibling")]}else for(f=n.settings.scalingRatio,a=0;a<n.nodesLength;a+=n.ppn)for(d=0;d<a;d+=n.ppn)m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(w=Math.sqrt(m*m+x*x)-t[h(a,"size")]-t[h(d,"size")])>0?(_=f*t[h(a,"mass")]*t[h(d,"mass")]/w/w,t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]+=m*_,t[h(d,"dy")]+=x*_):w<0&&(_=100*f*t[h(a,"mass")]*t[h(d,"mass")],t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]-=m*_,t[h(d,"dy")]-=x*_):(w=Math.sqrt(m*m+x*x))>0&&(_=f*t[h(a,"mass")]*t[h(d,"mass")]/w/w,t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]-=m*_,t[h(d,"dy")]-=x*_);for(p=n.settings.gravity/n.settings.scalingRatio,f=n.settings.scalingRatio,o=0;o<n.nodesLength;o+=n.ppn)_=0,m=t[h(o,"x")],x=t[h(o,"y")],w=Math.sqrt(m*m+x*x),n.settings.strongGravityMode?w>0&&(_=f*t[h(o,"mass")]*p):w>0&&(_=f*t[h(o,"mass")]*p/w),t[h(o,"dx")]-=m*_,t[h(o,"dy")]-=x*_;for(f=1*(n.settings.outboundAttractionDistribution?y:1),u=0;u<n.edgesLength;u+=n.ppe)a=r[g(u,"source")],d=r[g(u,"target")],c=r[g(u,"weight")],b=Math.pow(c,n.settings.edgeWeightInfluence),m=t[h(a,"x")]-t[h(d,"x")],x=t[h(a,"y")]-t[h(d,"y")],n.settings.adjustSizes?(w=Math.sqrt(m*m+x*x-t[h(a,"size")]-t[h(d,"size")])-M,n.settings.linLogMode?n.settings.outboundAttractionDistribution?w>0&&(_=-f*b*Math.log(1+w)/w/t[h(a,"mass")]):w>0&&(_=-f*b*Math.log(1+w)/w):n.settings.outboundAttractionDistribution?w>0&&(_=-f*b/t[h(a,"mass")]):w>0&&(_=-f*b)):(w=Math.sqrt(m*m+x*x)-M,n.settings.linLogMode?n.settings.outboundAttractionDistribution?w>0&&(_=-f*b*Math.log(1+w)/w/t[h(a,"mass")]):w>0&&(_=-f*b*Math.log(1+w)/w):n.settings.outboundAttractionDistribution?(w=1,_=-f*b/t[h(a,"mass")]):(w=1,_=-f*b)),w>0&&(t[h(a,"dx")]+=m*_,t[h(a,"dy")]+=x*_,t[h(d,"dx")]-=m*_,t[h(d,"dy")]-=x*_);var W,I,z,F,Y=0;if(n.settings.adjustSizes)for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||((W=Math.sqrt(t[h(o,"dx")]*t[h(o,"dx")]+t[h(o,"dy")]*t[h(o,"dy")]))>n.maxForce&&(t[h(o,"dx")]=t[h(o,"dx")]*n.maxForce/W,t[h(o,"dy")]=t[h(o,"dy")]*n.maxForce/W),I=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),z=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,F=.1*Math.log(1+z)/(1+Math.sqrt(I)),v=t[h(o,"x")],k=t[h(o,"y")],t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(F/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(F/n.settings.slowDown),m=t[h(o,"x")],x=t[h(o,"y")],Y+=w=Math.sqrt((m-v)*(m-v)+(x-k)*(x-k)));else for(o=0;o<n.nodesLength;o+=n.ppn)t[h(o,"fixed")]||(I=t[h(o,"mass")]*Math.sqrt((t[h(o,"old_dx")]-t[h(o,"dx")])*(t[h(o,"old_dx")]-t[h(o,"dx")])+(t[h(o,"old_dy")]-t[h(o,"dy")])*(t[h(o,"old_dy")]-t[h(o,"dy")])),z=Math.sqrt((t[h(o,"old_dx")]+t[h(o,"dx")])*(t[h(o,"old_dx")]+t[h(o,"dx")])+(t[h(o,"old_dy")]+t[h(o,"dy")])*(t[h(o,"old_dy")]+t[h(o,"dy")]))/2,F=t[h(o,"convergence")]*Math.log(1+z)/(1+Math.sqrt(I)),t[h(o,"convergence")]=Math.min(1,Math.sqrt(F*(t[h(o,"dx")]*t[h(o,"dx")]+t[h(o,"dy")]*t[h(o,"dy")])/(1+Math.sqrt(I)))),v=t[h(o,"x")],k=t[h(o,"y")],t[h(o,"x")]=t[h(o,"x")]+t[h(o,"dx")]*(F/n.settings.slowDown),t[h(o,"y")]=t[h(o,"y")]+t[h(o,"dy")]*(F/n.settings.slowDown),m=t[h(o,"x")],x=t[h(o,"y")],Y+=w=Math.sqrt((m-v)*(m-v)+(x-k)*(x-k)));if(n.iterations++,n.settings.autoStop&&(n.converged=n.iterations>n.settings.maxIterations||Y/n.nodesLength<n.settings.avgDistanceThreshold,n.converged&&n.settings.alignNodeSiblings)){var X,O,q={},j={};for(u=0;u<n.edgesLength;u+=n.ppe)(a=r[g(u,"source")])!==(d=r[g(u,"target")])&&(q[a]=q[a]||{},q[d]=q[d]||{},q[a][d]=!0,q[d][a]=!0);Object.keys(q).forEach((function(e){e=~~e,2==(O=Object.keys(q[e])).length&&((X=O[0]+";"+O[1])in j?j[X].push(e):(X=O[1]+";"+O[0],j[X]||(j[X]=[~~O[1],~~O[0]]),j[X].push(e)))}));var P,D,R,T,U,N,$,H,G,K,J,Q,V,Z,ee=n.settings.nodeSiblingsAngleMin;Object.keys(j).forEach((function(e){if(D=j[e].shift(),R=j[e].shift(),1!=(P=j[e].filter((function(e){return!t[h(e,"fixed")]}))).length){var r,s,i,o,a,d,g,l,u,c,p,y;if(N=t[h(D,"x")],$=t[h(D,"y")],H=t[h(R,"x")],G=t[h(R,"y")],T=Object.keys(q[D]).length,U=Object.keys(q[R]).length,J=function(e,t,r,s,n){return{x:e+(r-e)*n,y:t+(s-t)*n}}(N,$,H,G,(.75-(s=.25))*(T/(T+U)-(r=0))/(1-r)+s),Q={xi:-((d=G)-(o=$)),yi:(a=H)-(i=N),xi_prime:d-o,yi_prime:-(a-i)},g=N,l=$,u=H,c=G,K=Math.sqrt((u-g)*(u-g)+(c-l)*(c-l)),y=K,V={x:((p=Q).xi_prime-p.xi)/y,y:(p.yi_prime-p.yi)/y},Z=function(e){return Math.acos(e.x/Math.sqrt(e.x*e.x+e.y*e.y))}(V),2*ee>Math.PI)throw new Error("ForceLink.Worker - Invalid parameter: angleMin must be smaller than 2 PI.");ee>0&&(Z<ee||Z>Math.PI-ee&&Z<=Math.PI?V={x:2*Math.cos(Math.PI-ee),y:2*Math.sin(Math.PI-ee)}:(Z>2*Math.PI-ee||Z>=Math.PI&&Z<Math.PI+ee)&&(V={x:2*Math.cos(ee),y:2*Math.sin(ee)}));var f=0,m=1,x=1;P.length%2==1&&(x=0,f=1);for(var v=0;v<P.length;v++)t[h(P[v],"x")]=J.x+m*V.x*x*(f||v>=2?n.settings.nodeSiblingsScale:2*n.settings.nodeSiblingsScale/3),t[h(P[v],"y")]=J.y+m*V.y*x*(f||v>=2?n.settings.nodeSiblingsScale:2*n.settings.nodeSiblingsScale/3),m=-m,x+=(v+f)%2}}))}}function p(e){for(var t=0;t<e;t++)c();i()}i="undefined"!=typeof window&&window.document?function(){var e;n.autoStop&&!n.converged||(document.createEvent?(e=document.createEvent("Event")).initEvent("newCoords",!0,!1):(e=document.createEventObject()).eventType="newCoords",e.eventName="newCoords",e.data={nodes:t.buffer,converged:n.converged},requestAnimationFrame((function(){document.dispatchEvent(e)})))}:function(){n.autoStop&&!n.converged||self.postMessage({nodes:t.buffer,converged:n.converged},[t.buffer])};var y=function(e){switch(e.data.action){case"start":i=new Float32Array(e.data.nodes),o=new Float32Array(e.data.edges),a=(a=e.data.config)||{},t=i,r=o,n.nodesLength=t.length,n.edgesLength=r.length,u(a),p(n.settings.startingIterations);break;case"loop":t=new Float32Array(e.data.nodes),p(n.settings.iterationsPerRender);break;case"config":u(e.data.config);break;case"kill":!function(e){var t;for(t in e)"hasOwnProperty"in e&&!e.hasOwnProperty(t)||delete e[t]}(n),t=null,r=null,s=null,self.removeEventListener("message",y)}var i,o,a};self.addEventListener("message",y)};function crush(e){var t,r,s,n=["x","y","dx","dy","old_dx","old_dy","mass","convergence","size","fixed"],i=["source","target","weight"],o=["node","centerX","centerY","size","nextSibling","firstChild","mass","massCenterX","massCenterY"];for(r=0,s=o.length;r<s;r++)t=new RegExp("rp\\(([^,]*), '"+o[r]+"'\\)","g"),e=e.replace(t,0===r?"$1":"$1 + "+r);for(r=0,s=n.length;r<s;r++)t=new RegExp("np\\(([^,]*), '"+n[r]+"'\\)","g"),e=e.replace(t,0===r?"$1":"$1 + "+r);for(r=0,s=i.length;r<s;r++)t=new RegExp("ep\\(([^,]*), '"+i[r]+"'\\)","g"),e=e.replace(t,0===r?"$1":"$1 + "+r);return e}function getWorkerFn(){return";("+(crush?crush(Worker.toString()):Worker.toString())+").call(this);"}if(inWebWorker)eval(getWorkerFn());else{if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.layouts.getForceLinkWorker=getWorkerFn}}).call(this)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(n){var i={};function t(e){if(i[e])return i[e].exports;var o=i[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=i,t.d=function(n,i,e){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){if(1&i&&(n=t(n)),8&i)return n;if(4&i&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(var o in n)t.d(e,o,function(i){return n[i]}.bind(null,o));return e},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=372)}({372:function(n,i){(function(){(function(n){"use strict";if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.utils.pkg("sigma.layout.noverlap");var i={speed:3,scaleNodes:1.2,nodeMargin:5,gridSize:20,permittedExpansion:1.1,rendererIndex:0,maxIterations:500},t={},e={};function o(){var n=this;this.init=function(n,t){if(t=t||{},this.sigInst=n,this.config=sigma.utils.extend(t,i),this.easing=t.easing,this.duration=t.duration,t.nodes&&(this.nodes=t.nodes,delete t.nodes),!sigma.plugins||void 0===sigma.plugins.animate)throw new Error("sigma.plugins.animate is not declared");this.running=!1},this.atomicGo=function(){if(!this.running||this.iterCount<1)return!1;var i,t,e,o,s,r,d,a,g,f,c,u,l,h,p,_,m,x,y,M,v,z=this.nodes||this.sigInst.graph.nodes(),I=z.length,S=1/0,E=-1/0,N=1/0,b=-1/0;for(this.iterCount--,this.running=!1,i=0;i<I;i++)(t=z[i]).dn.dx=0,t.dn.dy=0,S=Math.min(S,t.dn_x-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)),E=Math.max(E,t.dn_x+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)),N=Math.min(N,t.dn_y-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)),b=Math.max(b,t.dn_y+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin));for(o=E-S,s=b-N,d=(N+b)/2,S=(r=(S+E)/2)-n.config.permittedExpansion*o/2,E=r+n.config.permittedExpansion*o/2,N=d-n.config.permittedExpansion*s/2,b=d+n.config.permittedExpansion*s/2,a={},g=0;g<n.config.gridSize;g++)for(a[g]={},f=0;f<n.config.gridSize;f++)a[g][f]=[];for(i=0;i<I;i++)for(x=(t=z[i]).dn_x-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),y=t.dn_x+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),M=t.dn_y-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),v=t.dn_y+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),c=Math.floor(n.config.gridSize*(x-S)/(E-S)),u=Math.floor(n.config.gridSize*(y-S)/(E-S)),l=Math.floor(n.config.gridSize*(M-N)/(b-N)),h=Math.floor(n.config.gridSize*(v-N)/(b-N)),f=c;f<=u;f++)for(g=l;g<=h;g++)a[g][f].push(t.id);for(p={},g=0;g<n.config.gridSize;g++)for(f=0;f<n.config.gridSize;f++)a[g][f].forEach(function(i){for(p[i]||(p[i]=[]),_=Math.max(0,g-1);_<=Math.min(g+1,n.config.gridSize-1);_++)for(m=Math.max(0,f-1);m<=Math.min(f+1,n.config.gridSize-1);m++)a[_][m].forEach(function(n){n!==i&&-1===p[i].indexOf(n)&&p[i].push(n)})});for(i=0;i<I;i++)e=z[i],p[e.id].forEach(function(i){var t=n.sigInst.graph.nodes(i),r=t.dn_x-e.dn_x,d=t.dn_y-e.dn_y,a=Math.sqrt(r*r+d*d);a<e.dn_size*n.config.scaleNodes+n.config.nodeMargin+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)&&(n.running=!0,a>0?(t.dn.dx+=r/a*(1+e.dn_size),t.dn.dy+=d/a*(1+e.dn_size)):(t.dn.dx+=.01*o*(.5-Math.random()),t.dn.dy+=.01*s*(.5-Math.random())))});for(i=0;i<I;i++)(t=z[i]).fixed||(t.dn_x=t.dn_x+.1*t.dn.dx*n.config.speed,t.dn_y=t.dn_y+.1*t.dn.dy*n.config.speed);return this.running&&this.iterCount<1&&(this.running=!1),this.running},this.go=function(){for(this.iterCount=this.config.maxIterations;this.running;)this.atomicGo();this.stop()},this.start=function(){if(!this.running){var i=this.sigInst.graph.nodes(),t=this.sigInst.renderers[n.config.rendererIndex].options.prefix;this.running=!0;for(var o=0;o<i.length;o++)i[o].dn_x=i[o][t+"x"],i[o].dn_y=i[o][t+"y"],i[o].dn_size=i[o][t+"size"],i[o].dn={dx:0,dy:0};e[n.sigInst.id].dispatchEvent("start"),this.go()}},this.stop=function(){var i=this.sigInst.graph.nodes();if(this.running=!1,this.easing)e[n.sigInst.id].dispatchEvent("interpolate"),sigma.plugins.animate(n.sigInst,{x:"dn_x",y:"dn_y"},{easing:n.easing,onComplete:function(){n.sigInst.refresh();for(var t=0;t<i.length;t++)i[t].dn=null,i[t].dn_x=null,i[t].dn_y=null;e[n.sigInst.id].dispatchEvent("stop")},duration:n.duration});else{for(var t=0;t<i.length;t++)i[t].x=i[t].dn_x,i[t].y=i[t].dn_y;this.sigInst.refresh();for(t=0;t<i.length;t++)i[t].dn=null,i[t].dn_x=null,i[t].dn_y=null;e[n.sigInst.id].dispatchEvent("stop")}},this.kill=function(){this.sigInst=null,this.config=null,this.easing=null}}sigma.prototype.configNoverlap=function(n){var i=this;if(!n)throw new Error('Missing argument: "config"');return t[i.id]||(t[i.id]=new o,e[i.id]={},sigma.classes.dispatcher.extend(e[i.id]),i.bind("kill",function(){t[i.id].kill(),t[i.id]=null,e[i.id]=null})),t[i.id].init(i,n),e[i.id]},sigma.prototype.startNoverlap=function(n){return n&&this.configNoverlap(this,n),t[this.id].start(),e[this.id]},sigma.prototype.isNoverlapRunning=function(){return!!t[this.id]&&t[this.id].running}}).call(this)}).call(window)}});
var Sigma=function(n){var i={};function t(e){if(i[e])return i[e].exports;var o=i[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=i,t.d=function(n,i,e){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){if(1&i&&(n=t(n)),8&i)return n;if(4&i&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(var o in n)t.d(e,o,function(i){return n[i]}.bind(null,o));return e},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=372)}({372:function(n,i){(function(){(function(n){"use strict";if("undefined"==typeof sigma)throw new Error("sigma is not declared");sigma.utils.pkg("sigma.layout.noverlap");var i={speed:3,scaleNodes:1.2,nodeMargin:5,gridSize:20,permittedExpansion:1.1,rendererIndex:0,maxIterations:500},t={},e={};function o(){var n=this;this.init=function(n,t){if(t=t||{},this.sigInst=n,this.config=sigma.utils.extend(t,i),this.easing=t.easing,this.duration=t.duration,t.nodes&&(this.nodes=t.nodes,delete t.nodes),!sigma.plugins||void 0===sigma.plugins.animate)throw new Error("sigma.plugins.animate is not declared");this.running=!1},this.atomicGo=function(){if(!this.running||this.iterCount<1)return!1;var i,t,e,o,s,r,d,a,g,f,c,u,l,h,p,_,m,x,y,M,v,z=this.nodes||this.sigInst.graph.nodes(),I=z.length,S=1/0,E=-1/0,N=1/0,b=-1/0;for(this.iterCount--,this.running=!1,i=0;i<I;i++)(t=z[i]).dn.dx=0,t.dn.dy=0,S=Math.min(S,t.dn_x-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)),E=Math.max(E,t.dn_x+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)),N=Math.min(N,t.dn_y-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)),b=Math.max(b,t.dn_y+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin));for(o=E-S,s=b-N,d=(N+b)/2,S=(r=(S+E)/2)-n.config.permittedExpansion*o/2,E=r+n.config.permittedExpansion*o/2,N=d-n.config.permittedExpansion*s/2,b=d+n.config.permittedExpansion*s/2,a={},g=0;g<n.config.gridSize;g++)for(a[g]={},f=0;f<n.config.gridSize;f++)a[g][f]=[];for(i=0;i<I;i++)for(x=(t=z[i]).dn_x-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),y=t.dn_x+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),M=t.dn_y-(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),v=t.dn_y+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin),c=Math.floor(n.config.gridSize*(x-S)/(E-S)),u=Math.floor(n.config.gridSize*(y-S)/(E-S)),l=Math.floor(n.config.gridSize*(M-N)/(b-N)),h=Math.floor(n.config.gridSize*(v-N)/(b-N)),f=c;f<=u;f++)for(g=l;g<=h;g++)a[g][f].push(t.id);for(p={},g=0;g<n.config.gridSize;g++)for(f=0;f<n.config.gridSize;f++)a[g][f].forEach((function(i){for(p[i]||(p[i]=[]),_=Math.max(0,g-1);_<=Math.min(g+1,n.config.gridSize-1);_++)for(m=Math.max(0,f-1);m<=Math.min(f+1,n.config.gridSize-1);m++)a[_][m].forEach((function(n){n!==i&&-1===p[i].indexOf(n)&&p[i].push(n)}))}));for(i=0;i<I;i++)e=z[i],p[e.id].forEach((function(i){var t=n.sigInst.graph.nodes(i),r=t.dn_x-e.dn_x,d=t.dn_y-e.dn_y,a=Math.sqrt(r*r+d*d);a<e.dn_size*n.config.scaleNodes+n.config.nodeMargin+(t.dn_size*n.config.scaleNodes+n.config.nodeMargin)&&(n.running=!0,a>0?(t.dn.dx+=r/a*(1+e.dn_size),t.dn.dy+=d/a*(1+e.dn_size)):(t.dn.dx+=.01*o*(.5-Math.random()),t.dn.dy+=.01*s*(.5-Math.random())))}));for(i=0;i<I;i++)(t=z[i]).fixed||(t.dn_x=t.dn_x+.1*t.dn.dx*n.config.speed,t.dn_y=t.dn_y+.1*t.dn.dy*n.config.speed);return this.running&&this.iterCount<1&&(this.running=!1),this.running},this.go=function(){for(this.iterCount=this.config.maxIterations;this.running;)this.atomicGo();this.stop()},this.start=function(){if(!this.running){var i=this.sigInst.graph.nodes(),t=this.sigInst.renderers[n.config.rendererIndex].options.prefix;this.running=!0;for(var o=0;o<i.length;o++)i[o].dn_x=i[o][t+"x"],i[o].dn_y=i[o][t+"y"],i[o].dn_size=i[o][t+"size"],i[o].dn={dx:0,dy:0};e[n.sigInst.id].dispatchEvent("start"),this.go()}},this.stop=function(){var i=this.sigInst.graph.nodes();if(this.running=!1,this.easing)e[n.sigInst.id].dispatchEvent("interpolate"),sigma.plugins.animate(n.sigInst,{x:"dn_x",y:"dn_y"},{easing:n.easing,onComplete:function(){n.sigInst.refresh();for(var t=0;t<i.length;t++)i[t].dn=null,i[t].dn_x=null,i[t].dn_y=null;e[n.sigInst.id].dispatchEvent("stop")},duration:n.duration});else{for(var t=0;t<i.length;t++)i[t].x=i[t].dn_x,i[t].y=i[t].dn_y;this.sigInst.refresh();for(t=0;t<i.length;t++)i[t].dn=null,i[t].dn_x=null,i[t].dn_y=null;e[n.sigInst.id].dispatchEvent("stop")}},this.kill=function(){this.sigInst=null,this.config=null,this.easing=null}}sigma.prototype.configNoverlap=function(n){var i=this;if(!n)throw new Error('Missing argument: "config"');return t[i.id]||(t[i.id]=new o,e[i.id]={},sigma.classes.dispatcher.extend(e[i.id]),i.bind("kill",(function(){t[i.id].kill(),t[i.id]=null,e[i.id]=null}))),t[i.id].init(i,n),e[i.id]},sigma.prototype.startNoverlap=function(n){return n&&this.configNoverlap(this,n),t[this.id].start(),e[this.id]},sigma.prototype.isNoverlapRunning=function(){return!!t[this.id]&&t[this.id].running}}).call(this)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=184)}({184:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.neo4j"),sigma.utils.pkg("sigma.utils"),sigma.neo4j.send=function(e,t,n,o,r){var a,i,s,u=sigma.utils.xhr();if(a=e,"object"==typeof e&&(a=e.url,i=e.user,s=e.password),!u)throw"XMLHttpRequest not supported, cannot load the file.";a+=t,u.open(n,a,!0),i&&s&&u.setRequestHeader("Authorization","Basic "+btoa(i+":"+s)),u.setRequestHeader("Accept","application/json"),u.setRequestHeader("Content-type","application/json; charset=utf-8"),u.onreadystatechange=function(){4===u.readyState&&r(JSON.parse(u.responseText))},u.send(o)},sigma.neo4j.cypher_parse=function(e,t){var n,o={nodes:[],edges:[]},r={},a={};for(n in e.results[0].data.forEach(function(e){e.graph.nodes.forEach(function(e){var n=t.node(e);n.id in r||(r[n.id]=n)}),e.graph.relationships.forEach(function(e){var n=t.edge(e);n.id in a||(a[n.id]=n)})}),r)o.nodes.push(r[n]);for(n in a)o.edges.push(a[n]);return o},sigma.neo4j.cypher=function(e,t,n,o,r){var a,i;r||(r=sigma.neo4j.defaultProducers),a=JSON.stringify({statements:[{statement:t,resultDataContents:["graph"],includeStats:!1}]}),i=function(e){return function(t){var o;o=sigma.neo4j.cypher_parse(t,r),n instanceof sigma?(n.graph.clear(),n.graph.read(o)):"object"==typeof n?((n=new sigma(n)).graph.read(o),n.refresh()):"function"==typeof n&&(e=n,n=null),e&&e(n||o)}},sigma.neo4j.send(e,"/db/data/transaction/commit","POST",a,i(o))},sigma.neo4j.getLabels=function(e,t){sigma.neo4j.send(e,"/db/data/labels","GET",null,t)},sigma.neo4j.getTypes=function(e,t){sigma.neo4j.send(e,"/db/data/relationship/types","GET",null,t)},sigma.neo4j.defaultProducers={node:function(e){return{id:e.id,label:e.id,x:Math.random(),y:Math.random(),size:1,color:"#666666",neo4j_labels:e.labels,neo4j_data:e.properties}},edge:function(e){return{id:e.id,label:e.type,source:e.startNode,target:e.endNode,color:"#7D7C8E",neo4j_type:e.type,neo4j_data:e.properties}}}}).call(window)}).call(window)}});
var Sigma=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=184)}({184:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.neo4j"),sigma.utils.pkg("sigma.utils"),sigma.neo4j.send=function(e,t,n,o,r){var a,i,s,u=sigma.utils.xhr();if(a=e,"object"==typeof e&&(a=e.url,i=e.user,s=e.password),!u)throw"XMLHttpRequest not supported, cannot load the file.";a+=t,u.open(n,a,!0),i&&s&&u.setRequestHeader("Authorization","Basic "+btoa(i+":"+s)),u.setRequestHeader("Accept","application/json"),u.setRequestHeader("Content-type","application/json; charset=utf-8"),u.onreadystatechange=function(){4===u.readyState&&r(JSON.parse(u.responseText))},u.send(o)},sigma.neo4j.cypher_parse=function(e,t){var n,o={nodes:[],edges:[]},r={},a={};for(n in e.results[0].data.forEach((function(e){e.graph.nodes.forEach((function(e){var n=t.node(e);n.id in r||(r[n.id]=n)})),e.graph.relationships.forEach((function(e){var n=t.edge(e);n.id in a||(a[n.id]=n)}))})),r)o.nodes.push(r[n]);for(n in a)o.edges.push(a[n]);return o},sigma.neo4j.cypher=function(e,t,n,o,r){var a,i;r||(r=sigma.neo4j.defaultProducers),a=JSON.stringify({statements:[{statement:t,resultDataContents:["graph"],includeStats:!1}]}),i=function(e){return function(t){var o;o=sigma.neo4j.cypher_parse(t,r),n instanceof sigma?(n.graph.clear(),n.graph.read(o)):"object"==typeof n?((n=new sigma(n)).graph.read(o),n.refresh()):"function"==typeof n&&(e=n,n=null),e&&e(n||o)}},sigma.neo4j.send(e,"/db/data/transaction/commit","POST",a,i(o))},sigma.neo4j.getLabels=function(e,t){sigma.neo4j.send(e,"/db/data/labels","GET",null,t)},sigma.neo4j.getTypes=function(e,t){sigma.neo4j.send(e,"/db/data/relationship/types","GET",null,t)},sigma.neo4j.defaultProducers={node:function(e){return{id:e.id,label:e.id,x:Math.random(),y:Math.random(),size:1,color:"#666666",neo4j_labels:e.labels,neo4j_data:e.properties}},edge:function(e){return{id:e.id,label:e.type,source:e.startNode,target:e.endNode,color:"#7D7C8E",neo4j_type:e.type,neo4j_data:e.properties}}}}).call(window)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=176)}({176:function(e,t,n){"use strict";n.r(t);n(177),n(178)},177:function(e,t){(function(){(function(e){"use strict";var t=[],n=function(e,n,i){t.push({name:e,drawShape:n,drawBorder:i})},i=function(e){return function(t,n,i,a,r,l){l.fillStyle=r,l.beginPath(),e(t,n,i,a,l),l.closePath(),l.fill()}},a=function(e){return function(t,n,i,a,r,l){l.strokeStyle=r,l.lineWidth=a/5,l.beginPath(),e(t,n,i,a,l),l.closePath(),l.stroke()}},r=function(e,t,n,i,a){var r=45*Math.PI/180;a.moveTo(t+i*Math.sin(r),n-i*Math.cos(r));for(var l=1;l<4;l++)a.lineTo(t+Math.sin(r+2*Math.PI*l/4)*i,n-Math.cos(r+2*Math.PI*l/4)*i)};n("square",i(r),a(r));var l=function(e,t,n,i,a){a.arc(t,n,i,0,2*Math.PI,!0)};n("circle",i(l),a(l));var o=function(e,t,n,i,a){a.moveTo(t-i,n),a.lineTo(t,n-i),a.lineTo(t+i,n),a.lineTo(t,n+i)};n("diamond",i(o),a(o));var s=function(e,t,n,i,a){var r=e.cross&&e.cross.lineWeight||5;a.moveTo(t-i,n-r),a.lineTo(t-i,n+r),a.lineTo(t-r,n+r),a.lineTo(t-r,n+i),a.lineTo(t+r,n+i),a.lineTo(t+r,n+r),a.lineTo(t+i,n+r),a.lineTo(t+i,n-r),a.lineTo(t+r,n-r),a.lineTo(t+r,n-i),a.lineTo(t-r,n-i),a.lineTo(t-r,n-r)};n("cross",i(s),a(s));var u=function(e,t,n,i,a){var r=e.equilateral&&e.equilateral.numPoints||5,l=(e.equilateral&&e.equilateral.rotate||0)*Math.PI/180,o=i;a.moveTo(t+o*Math.sin(l),n-o*Math.cos(l));for(var s=1;s<r;s++)a.lineTo(t+Math.sin(l+2*Math.PI*s/r)*o,n-Math.cos(l+2*Math.PI*s/r)*o)};n("equilateral",i(u),a(u));var c=function(e,t,n,i,a){var r=e.star&&e.star.numPoints||5,l=i,o=i*(e.star&&e.star.innerRatio||.5),s=Math.PI/r;a.moveTo(t,n-i);for(var u=0;u<r;u++)a.lineTo(t+Math.sin(s+2*Math.PI*u/r)*o,n-Math.cos(s+2*Math.PI*u/r)*o),a.lineTo(t+Math.sin(2*Math.PI*(u+1)/r)*l,n-Math.cos(2*Math.PI*(u+1)/r)*l)};n("star",i(c),a(c));n("pacman",function(e,t,n,i,a,r){r.fillStyle="yellow",r.beginPath(),r.arc(t,n,i,1.25*Math.PI,0,!1),r.arc(t,n,i,0,.75*Math.PI,!1),r.lineTo(t,n),r.closePath(),r.fill(),r.fillStyle="white",r.strokeStyle="black",r.beginPath(),r.arc(t+i/3,n-i/3,i/4,0,2*Math.PI,!1),r.closePath(),r.fill(),r.stroke(),r.fillStyle="black",r.beginPath(),r.arc(t+4*i/9,n-i/3,i/8,0,2*Math.PI,!1),r.closePath(),r.fill()},null),this.ShapeLibrary={enumerate:function(){return t},version:"0.1"}}).call(window)}).call(window)},178:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";if("undefined"==typeof ShapeLibrary)throw"ShapeLibrary is not declared";sigma.utils.pkg("sigma.canvas.nodes"),sigma.utils.pkg("sigma.svg.nodes");var t=e,n={},i=function(e,i,a,r,l){if(t&&e.image&&e.image.url){var o=e.image.url,s=e.image.h||1,u=e.image.w||1,c=e.image.scale||1,d=e.image.clip||1,f=n[o];f||((f=document.createElement("IMG")).src=o,f.status="loading",f.onerror=function(){console.log("error loading",o),f.status="error"},f.onload=function(){console.log("redraw on image load",o),f.status="ok",t.refresh()},n[o]=f);var h=u<s?u/s:1,m=s<u?s/u:1,g=r*c;l.save(),l.beginPath(),l.arc(i,a,r*d,0,2*Math.PI,!0),l.closePath(),l.clip(),"ok"===f.status&&l.drawImage(f,i+Math.sin(-.7855)*g*h,a-Math.cos(-.7855)*g*m,g*h*2*Math.sin(-.7855)*-1,g*m*2*Math.cos(-.7855)),l.restore()}},a=function(e,n,a){sigma.canvas.nodes[e]=function(e,t,r){var l=r("prefix")||"",o=e[l+"size"],s=e.color||r("defaultNodeColor"),u=e.borderColor||s,c=e[l+"x"],d=e[l+"y"];t.save(),n&&n(e,c,d,o,s,t),a&&a(e,c,d,o,u,t),i(e,c,d,o,t),t.restore()},sigma.svg.nodes[e]={create:function(e,n){var i=document.createElementNS(n("xmlns"),"g"),a=document.createElementNS(n("xmlns"),"circle");return i.setAttributeNS(null,"class",n("classPrefix")+"-node-group"),i.setAttributeNS(null,"data-node-id",e.id),a.setAttributeNS(null,"data-node-id",e.id),a.setAttributeNS(null,"class",n("classPrefix")+"-node"),a.setAttributeNS(null,"fill",e.color||n("defaultNodeColor")),i.appendChild(a),function(e,n,i){if(t&&e.image&&e.image.url){var a=document.createElementNS(i("xmlns"),"circle"),r=document.createElementNS(i("xmlns"),"clipPath"),l=i("classPrefix")+"-clip-path-"+e.id,o=document.createElementNS(i("xmlns"),"defs"),s=document.createElementNS(i("xmlns"),"image");e.image.url;r.setAttributeNS(null,"id",l),r.appendChild(a),o.appendChild(r);var u=/MSIE [5-9]/.test(navigator.userAgent)?"":document.location.href;u=u.split("#")[0],s.setAttributeNS(null,"class",i("classPrefix")+"-node-image"),s.setAttributeNS(null,"clip-path","url("+u+"#"+l+")"),s.setAttributeNS(null,"pointer-events","none"),s.setAttributeNS("http://www.w3.org/1999/xlink","href",e.image.url),n.appendChild(o),n.appendChild(s)}}(e,i,n),i},update:function(e,t,n){for(var i=n("classPrefix"),a=e.image.clip||1,r=e.image.h||1,l=e.image.w||1,o=n("prefix")||"",s=e.image.scale||1,u=e[o+"size"],c=e[o+"x"],d=e[o+"y"],f=s*u,h=l<r?l/r:1,m=r<l?r/l:1,g=0,p=t.childNodes;g<p.length;g++){switch(p[g].getAttribute("class")){case i+"-node":p[g].setAttributeNS(null,"cx",c),p[g].setAttributeNS(null,"cy",d),p[g].setAttributeNS(null,"r",u),n("freeStyle")||p[g].setAttributeNS(null,"fill",e.color||n("defaultNodeColor"));break;case i+"-node-image":p[g].setAttributeNS(null,"x",c+Math.sin(-.7855)*f*h),p[g].setAttributeNS(null,"y",d-Math.cos(-.7855)*f*m),p[g].setAttributeNS(null,"width",f*h*2*Math.sin(-.7855)*-1),p[g].setAttributeNS(null,"height",f*m*2*Math.cos(-.7855));break;default:var b=p[g].firstChild;if(null!=b){var S=i+"-clip-path-"+e.id;b.getAttribute("id")===S&&(b.firstChild.setAttributeNS(null,"cx",c),b.firstChild.setAttributeNS(null,"cy",d),b.firstChild.setAttributeNS(null,"r",a*u))}}}t.style.display=""}}};ShapeLibrary.enumerate().forEach(function(e){a(e.name,e.drawShape,e.drawBorder)}),this.CustomShapes={init:function(e){t=e},version:"0.1"}}).call(window)}).call(window)}});
var Sigma=function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=176)}({176:function(e,t,n){"use strict";n.r(t);n(177),n(178)},177:function(e,t){(function(){(function(e){"use strict";var t=[],n=function(e,n,i){t.push({name:e,drawShape:n,drawBorder:i})},i=function(e){return function(t,n,i,a,r,l){l.fillStyle=r,l.beginPath(),e(t,n,i,a,l),l.closePath(),l.fill()}},a=function(e){return function(t,n,i,a,r,l){l.strokeStyle=r,l.lineWidth=a/5,l.beginPath(),e(t,n,i,a,l),l.closePath(),l.stroke()}},r=function(e,t,n,i,a){var r=45*Math.PI/180;a.moveTo(t+i*Math.sin(r),n-i*Math.cos(r));for(var l=1;l<4;l++)a.lineTo(t+Math.sin(r+2*Math.PI*l/4)*i,n-Math.cos(r+2*Math.PI*l/4)*i)};n("square",i(r),a(r));var l=function(e,t,n,i,a){a.arc(t,n,i,0,2*Math.PI,!0)};n("circle",i(l),a(l));var o=function(e,t,n,i,a){a.moveTo(t-i,n),a.lineTo(t,n-i),a.lineTo(t+i,n),a.lineTo(t,n+i)};n("diamond",i(o),a(o));var s=function(e,t,n,i,a){var r=e.cross&&e.cross.lineWeight||5;a.moveTo(t-i,n-r),a.lineTo(t-i,n+r),a.lineTo(t-r,n+r),a.lineTo(t-r,n+i),a.lineTo(t+r,n+i),a.lineTo(t+r,n+r),a.lineTo(t+i,n+r),a.lineTo(t+i,n-r),a.lineTo(t+r,n-r),a.lineTo(t+r,n-i),a.lineTo(t-r,n-i),a.lineTo(t-r,n-r)};n("cross",i(s),a(s));var u=function(e,t,n,i,a){var r=e.equilateral&&e.equilateral.numPoints||5,l=(e.equilateral&&e.equilateral.rotate||0)*Math.PI/180,o=i;a.moveTo(t+o*Math.sin(l),n-o*Math.cos(l));for(var s=1;s<r;s++)a.lineTo(t+Math.sin(l+2*Math.PI*s/r)*o,n-Math.cos(l+2*Math.PI*s/r)*o)};n("equilateral",i(u),a(u));var c=function(e,t,n,i,a){var r=e.star&&e.star.numPoints||5,l=i,o=i*(e.star&&e.star.innerRatio||.5),s=Math.PI/r;a.moveTo(t,n-i);for(var u=0;u<r;u++)a.lineTo(t+Math.sin(s+2*Math.PI*u/r)*o,n-Math.cos(s+2*Math.PI*u/r)*o),a.lineTo(t+Math.sin(2*Math.PI*(u+1)/r)*l,n-Math.cos(2*Math.PI*(u+1)/r)*l)};n("star",i(c),a(c));n("pacman",(function(e,t,n,i,a,r){r.fillStyle="yellow",r.beginPath(),r.arc(t,n,i,1.25*Math.PI,0,!1),r.arc(t,n,i,0,.75*Math.PI,!1),r.lineTo(t,n),r.closePath(),r.fill(),r.fillStyle="white",r.strokeStyle="black",r.beginPath(),r.arc(t+i/3,n-i/3,i/4,0,2*Math.PI,!1),r.closePath(),r.fill(),r.stroke(),r.fillStyle="black",r.beginPath(),r.arc(t+4*i/9,n-i/3,i/8,0,2*Math.PI,!1),r.closePath(),r.fill()}),null),this.ShapeLibrary={enumerate:function(){return t},version:"0.1"}}).call(window)}).call(window)},178:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";if("undefined"==typeof ShapeLibrary)throw"ShapeLibrary is not declared";sigma.utils.pkg("sigma.canvas.nodes"),sigma.utils.pkg("sigma.svg.nodes");var t=e,n={},i=function(e,i,a,r,l){if(t&&e.image&&e.image.url){var o=e.image.url,s=e.image.h||1,u=e.image.w||1,c=e.image.scale||1,d=e.image.clip||1,f=n[o];f||((f=document.createElement("IMG")).src=o,f.status="loading",f.onerror=function(){console.log("error loading",o),f.status="error"},f.onload=function(){console.log("redraw on image load",o),f.status="ok",t.refresh()},n[o]=f);var h=u<s?u/s:1,m=s<u?s/u:1,g=r*c;l.save(),l.beginPath(),l.arc(i,a,r*d,0,2*Math.PI,!0),l.closePath(),l.clip(),"ok"===f.status&&l.drawImage(f,i+Math.sin(-.7855)*g*h,a-Math.cos(-.7855)*g*m,g*h*2*Math.sin(-.7855)*-1,g*m*2*Math.cos(-.7855)),l.restore()}},a=function(e,n,a){sigma.canvas.nodes[e]=function(e,t,r){var l=r("prefix")||"",o=e[l+"size"],s=e.color||r("defaultNodeColor"),u=e.borderColor||s,c=e[l+"x"],d=e[l+"y"];t.save(),n&&n(e,c,d,o,s,t),a&&a(e,c,d,o,u,t),i(e,c,d,o,t),t.restore()},sigma.svg.nodes[e]={create:function(e,n){var i=document.createElementNS(n("xmlns"),"g"),a=document.createElementNS(n("xmlns"),"circle");return i.setAttributeNS(null,"class",n("classPrefix")+"-node-group"),i.setAttributeNS(null,"data-node-id",e.id),a.setAttributeNS(null,"data-node-id",e.id),a.setAttributeNS(null,"class",n("classPrefix")+"-node"),a.setAttributeNS(null,"fill",e.color||n("defaultNodeColor")),i.appendChild(a),function(e,n,i){if(t&&e.image&&e.image.url){var a=document.createElementNS(i("xmlns"),"circle"),r=document.createElementNS(i("xmlns"),"clipPath"),l=i("classPrefix")+"-clip-path-"+e.id,o=document.createElementNS(i("xmlns"),"defs"),s=document.createElementNS(i("xmlns"),"image");e.image.url;r.setAttributeNS(null,"id",l),r.appendChild(a),o.appendChild(r);var u=/MSIE [5-9]/.test(navigator.userAgent)?"":document.location.href;u=u.split("#")[0],s.setAttributeNS(null,"class",i("classPrefix")+"-node-image"),s.setAttributeNS(null,"clip-path","url("+u+"#"+l+")"),s.setAttributeNS(null,"pointer-events","none"),s.setAttributeNS("http://www.w3.org/1999/xlink","href",e.image.url),n.appendChild(o),n.appendChild(s)}}(e,i,n),i},update:function(e,t,n){for(var i=n("classPrefix"),a=e.image.clip||1,r=e.image.h||1,l=e.image.w||1,o=n("prefix")||"",s=e.image.scale||1,u=e[o+"size"],c=e[o+"x"],d=e[o+"y"],f=s*u,h=l<r?l/r:1,m=r<l?r/l:1,g=0,p=t.childNodes;g<p.length;g++){switch(p[g].getAttribute("class")){case i+"-node":p[g].setAttributeNS(null,"cx",c),p[g].setAttributeNS(null,"cy",d),p[g].setAttributeNS(null,"r",u),n("freeStyle")||p[g].setAttributeNS(null,"fill",e.color||n("defaultNodeColor"));break;case i+"-node-image":p[g].setAttributeNS(null,"x",c+Math.sin(-.7855)*f*h),p[g].setAttributeNS(null,"y",d-Math.cos(-.7855)*f*m),p[g].setAttributeNS(null,"width",f*h*2*Math.sin(-.7855)*-1),p[g].setAttributeNS(null,"height",f*m*2*Math.cos(-.7855));break;default:var b=p[g].firstChild;if(null!=b){var S=i+"-clip-path-"+e.id;b.getAttribute("id")===S&&(b.firstChild.setAttributeNS(null,"cx",c),b.firstChild.setAttributeNS(null,"cy",d),b.firstChild.setAttributeNS(null,"r",a*u))}}}t.style.display=""}}};ShapeLibrary.enumerate().forEach((function(e){a(e.name,e.drawShape,e.drawBorder)})),this.CustomShapes={init:function(e){t=e},version:"0.1"}}).call(window)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=181)}({181:function(e,t,r){r(182),e.exports=r(183)},182:function(e,t,r){(function(){(function(r){"use strict";var n={getModelTags:function(e){var t,r=e.getElementsByTagName("attributes"),n={},i=r.length;for(t=0;t<i;t++)n[r[t].getAttribute("class")]=r[t].childNodes;return n},nodeListToArray:function(e){for(var t=[],r=0,n=e.length;r<n;++r)"#text"!==e[r].nodeName&&t.push(e[r]);return t},nodeListEach:function(e,t){for(var r=0,n=e.length;r<n;++r)"#text"!==e[r].nodeName&&t(e[r])},nodeListToHash:function(e,t){for(var r={},n=0;n<e.length;n++)if("#text"!==e[n].nodeName){var i=t(e[n]);r[i.key]=i.value}return r},namedNodeMapToObject:function(e){for(var t={},r=0;r<e.length;r++)t[e[r].name]=e[r].value;return t},getFirstElementByTagNS:function(e,t,r){var n=e.getElementsByTagName(t+":"+r)[0];return n||(n=e.getElementsByTagNameNS(t,r)[0]),n||(n=e.getElementsByTagName(r)[0]),n},getAttributeNS:function(e,t,n){var i=e.getAttribute(t+":"+n);return i===r&&(i=e.getAttributeNS(t,n)),i===r&&(i=e.getAttribute(n)),i},enforceType:function(e,t){switch(e){case"boolean":t="true"===t;break;case"integer":case"long":case"float":case"double":t=+t;break;case"liststring":t=t?t.split("|"):[]}return t},getRGB:function(e){return e[3]?"rgba("+e.join(",")+")":"rgb("+e.slice(0,-1).join(",")+")"}};function i(e){var t={};t.els={root:e.getElementsByTagName("gexf")[0],graph:e.getElementsByTagName("graph")[0],meta:e.getElementsByTagName("meta")[0],nodes:e.getElementsByTagName("node"),edges:e.getElementsByTagName("edge"),model:n.getModelTags(e)},t.hasViz=!!n.getAttributeNS(t.els.root,"xmlns","viz"),t.version=t.els.root.getAttribute("version")||"1.0",t.mode=t.els.graph.getAttribute("mode")||"static";var r=t.els.graph.getAttribute("defaultedgetype");function i(e){var r=[];return t.els.model[e]&&n.nodeListEach(t.els.model[e],function(e){var t={id:e.getAttribute("id")||e.getAttribute("for"),type:e.getAttribute("type")||"string",title:e.getAttribute("title")||""},i=n.nodeListToArray(e.childNodes);i.length>0&&(t.defaultValue=i[0].textContent),r.push(t)}),r.length>0&&r}function o(e,t){var r={},i=t.getElementsByTagName("attvalue"),o=n.nodeListToHash(i,function(e){var t=n.namedNodeMapToObject(e.attributes);return{key:t.id||t.for,value:t.value}});return e.map(function(e){r[e.id]=!(e.id in o)&&"defaultValue"in e?n.enforceType(e.type,e.defaultValue):n.enforceType(e.type,o[e.id])}),r}t.defaultEdgetype=r||"undirected";var a,s,u,l=i("node"),g=i("edge"),d={version:t.version,mode:t.mode,defaultEdgeType:t.defaultEdgetype,meta:(u={},t.els.meta?(u.lastmodifieddate=t.els.meta.getAttribute("lastmodifieddate"),n.nodeListEach(t.els.meta.childNodes,function(e){u[e.tagName.toLowerCase()]=e.textContent}),u):u),model:{},nodes:(a=l,s=[],n.nodeListEach(t.els.nodes,function(e){var r={id:e.getAttribute("id"),label:e.getAttribute("label")||""};a&&(r.attributes=o(a,e)),t.hasViz&&(r.viz=function(e){var t={},r=n.getFirstElementByTagNS(e,"viz","color");if(r){var i=["r","g","b","a"].map(function(e){return r.getAttribute(e)});t.color=n.getRGB(i)}var o=n.getFirstElementByTagNS(e,"viz","position");o&&(t.position={},["x","y","z"].map(function(e){t.position[e]=+o.getAttribute(e)}));var a=n.getFirstElementByTagNS(e,"viz","size");a&&(t.size=+a.getAttribute("value"));var s=n.getFirstElementByTagNS(e,"viz","shape");return s&&(t.shape=s.getAttribute("value")),t}(e)),s.push(function(e){var t={id:e.id,label:e.label};return e.viz&&(t.viz=e.viz),e.attributes&&(t.attributes=e.attributes),t}(r))}),s),edges:function(e,r){var i=[];return n.nodeListEach(t.els.edges,function(a){var s=n.namedNodeMapToObject(a.attributes);"type"in s||(s.type=r),e&&(s.attributes=o(e,a)),t.hasViz&&(s.viz=function(e){var t={},r=n.getFirstElementByTagNS(e,"viz","color");if(r){var i=["r","g","b","a"].map(function(e){return r.getAttribute(e)});t.color=n.getRGB(i)}var o=n.getFirstElementByTagNS(e,"viz","shape");o&&(t.shape=o.getAttribute("value"));var a=n.getFirstElementByTagNS(e,"viz","thickness");a&&(t.thickness=+a.getAttribute("value"));return t}(a)),i.push(function(e){var t={id:e.id,type:e.type||"undirected",label:e.label||"",source:e.source,target:e.target,weight:+e.weight||1};return e.viz&&(t.viz=e.viz),e.attributes&&(t.attributes=e.attributes),t}(s))}),i}(g,t.defaultEdgetype)};return l&&(d.model.node=l),g&&(d.model.edge=g),d}function o(e,t){var r=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;var e,t;if(window.ActiveXObject)for(t in e=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"])try{return new ActiveXObject(e[t])}catch(e){}return null}();if(!r)throw"XMLHttpRequest not supported, cannot load the file.";var n,i="function"==typeof t;return r.overrideMimeType?(r.overrideMimeType("text/xml"),n=function(e){return e.responseXML}):n=function(e){return(new DOMParser).parseFromString(e.responseText,"application/xml")},r.open("GET",e,i),i&&(r.onreadystatechange=function(){4===r.readyState&&t(n(r))}),r.send(),i?r:n(r)}if(void 0!==this.gexf)throw'gexf: error - a variable called "gexf" already exists in the global scope';this.gexf={parse:function(e){return i(e)},fetch:function(e,t){return"function"==typeof t?o(e,function(e){t(i(e))}):i(o(e))},version:"0.1.1"},this.exports!==t&&(e.exports=this.gexf)}).call(window)}).call(window)},183:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.parsers");var t=0;sigma.parsers.gexf=function(e,r,n){var i,o,a,s;function u(e){for(a=e.nodes,i=0,o=a.length;i<o;i++)(s=a[i]).id=s.id,s.viz&&"object"==typeof s.viz&&(s.viz.position&&"object"==typeof s.viz.position&&(s.x=s.viz.position.x,s.y=-s.viz.position.y),s.size=s.viz.size,s.color=s.viz.color);for(a=e.edges,i=0,o=a.length;i<o;i++)(s=a[i]).id="string"==typeof s.id?s.id:"e"+t++,s.source=""+s.source,s.target=""+s.target,s.viz&&"object"==typeof s.viz&&(s.color=s.viz.color,s.size=s.viz.thickness),s.size=s.weight,s.direction=s.type,delete s.type;if(r instanceof sigma){for(r.graph.clear(),a=e.nodes,i=0,o=a.length;i<o;i++)r.graph.addNode(a[i]);for(a=e.edges,i=0,o=a.length;i<o;i++)r.graph.addEdge(a[i])}else"object"==typeof r?(r.graph=e,r=new sigma(r)):"function"==typeof r&&(n=r,r=null);return n?void n(r||e):e}if("string"==typeof e)gexf.fetch(e,u);else if("object"==typeof e)return u(gexf.parse(e))}}).call(window)}).call(window)}});
var Sigma=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=181)}({181:function(e,t,r){r(182),e.exports=r(183)},182:function(e,t,r){(function(){(function(r){"use strict";var n={getModelTags:function(e){var t,r=e.getElementsByTagName("attributes"),n={},i=r.length;for(t=0;t<i;t++)n[r[t].getAttribute("class")]=r[t].childNodes;return n},nodeListToArray:function(e){for(var t=[],r=0,n=e.length;r<n;++r)"#text"!==e[r].nodeName&&t.push(e[r]);return t},nodeListEach:function(e,t){for(var r=0,n=e.length;r<n;++r)"#text"!==e[r].nodeName&&t(e[r])},nodeListToHash:function(e,t){for(var r={},n=0;n<e.length;n++)if("#text"!==e[n].nodeName){var i=t(e[n]);r[i.key]=i.value}return r},namedNodeMapToObject:function(e){for(var t={},r=0;r<e.length;r++)t[e[r].name]=e[r].value;return t},getFirstElementByTagNS:function(e,t,r){var n=e.getElementsByTagName(t+":"+r)[0];return n||(n=e.getElementsByTagNameNS(t,r)[0]),n||(n=e.getElementsByTagName(r)[0]),n},getAttributeNS:function(e,t,n){var i=e.getAttribute(t+":"+n);return i===r&&(i=e.getAttributeNS(t,n)),i===r&&(i=e.getAttribute(n)),i},enforceType:function(e,t){switch(e){case"boolean":t="true"===t;break;case"integer":case"long":case"float":case"double":t=+t;break;case"liststring":t=t?t.split("|"):[]}return t},getRGB:function(e){return e[3]?"rgba("+e.join(",")+")":"rgb("+e.slice(0,-1).join(",")+")"}};function i(e){var t={};t.els={root:e.getElementsByTagName("gexf")[0],graph:e.getElementsByTagName("graph")[0],meta:e.getElementsByTagName("meta")[0],nodes:e.getElementsByTagName("node"),edges:e.getElementsByTagName("edge"),model:n.getModelTags(e)},t.hasViz=!!n.getAttributeNS(t.els.root,"xmlns","viz"),t.version=t.els.root.getAttribute("version")||"1.0",t.mode=t.els.graph.getAttribute("mode")||"static";var r=t.els.graph.getAttribute("defaultedgetype");function i(e){var r=[];return t.els.model[e]&&n.nodeListEach(t.els.model[e],(function(e){var t={id:e.getAttribute("id")||e.getAttribute("for"),type:e.getAttribute("type")||"string",title:e.getAttribute("title")||""},i=n.nodeListToArray(e.childNodes);i.length>0&&(t.defaultValue=i[0].textContent),r.push(t)})),r.length>0&&r}function o(e,t){var r={},i=t.getElementsByTagName("attvalue"),o=n.nodeListToHash(i,(function(e){var t=n.namedNodeMapToObject(e.attributes);return{key:t.id||t.for,value:t.value}}));return e.map((function(e){r[e.id]=!(e.id in o)&&"defaultValue"in e?n.enforceType(e.type,e.defaultValue):n.enforceType(e.type,o[e.id])})),r}t.defaultEdgetype=r||"undirected";var a,s,u,l=i("node"),g=i("edge"),d={version:t.version,mode:t.mode,defaultEdgeType:t.defaultEdgetype,meta:(u={},t.els.meta?(u.lastmodifieddate=t.els.meta.getAttribute("lastmodifieddate"),n.nodeListEach(t.els.meta.childNodes,(function(e){u[e.tagName.toLowerCase()]=e.textContent})),u):u),model:{},nodes:(a=l,s=[],n.nodeListEach(t.els.nodes,(function(e){var r={id:e.getAttribute("id"),label:e.getAttribute("label")||""};a&&(r.attributes=o(a,e)),t.hasViz&&(r.viz=function(e){var t={},r=n.getFirstElementByTagNS(e,"viz","color");if(r){var i=["r","g","b","a"].map((function(e){return r.getAttribute(e)}));t.color=n.getRGB(i)}var o=n.getFirstElementByTagNS(e,"viz","position");o&&(t.position={},["x","y","z"].map((function(e){t.position[e]=+o.getAttribute(e)})));var a=n.getFirstElementByTagNS(e,"viz","size");a&&(t.size=+a.getAttribute("value"));var s=n.getFirstElementByTagNS(e,"viz","shape");return s&&(t.shape=s.getAttribute("value")),t}(e)),s.push(function(e){var t={id:e.id,label:e.label};return e.viz&&(t.viz=e.viz),e.attributes&&(t.attributes=e.attributes),t}(r))})),s),edges:function(e,r){var i=[];return n.nodeListEach(t.els.edges,(function(a){var s=n.namedNodeMapToObject(a.attributes);"type"in s||(s.type=r),e&&(s.attributes=o(e,a)),t.hasViz&&(s.viz=function(e){var t={},r=n.getFirstElementByTagNS(e,"viz","color");if(r){var i=["r","g","b","a"].map((function(e){return r.getAttribute(e)}));t.color=n.getRGB(i)}var o=n.getFirstElementByTagNS(e,"viz","shape");o&&(t.shape=o.getAttribute("value"));var a=n.getFirstElementByTagNS(e,"viz","thickness");a&&(t.thickness=+a.getAttribute("value"));return t}(a)),i.push(function(e){var t={id:e.id,type:e.type||"undirected",label:e.label||"",source:e.source,target:e.target,weight:+e.weight||1};return e.viz&&(t.viz=e.viz),e.attributes&&(t.attributes=e.attributes),t}(s))})),i}(g,t.defaultEdgetype)};return l&&(d.model.node=l),g&&(d.model.edge=g),d}function o(e,t){var r=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;var e,t;if(window.ActiveXObject)for(t in e=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"])try{return new ActiveXObject(e[t])}catch(e){}return null}();if(!r)throw"XMLHttpRequest not supported, cannot load the file.";var n,i="function"==typeof t;return r.overrideMimeType?(r.overrideMimeType("text/xml"),n=function(e){return e.responseXML}):n=function(e){return(new DOMParser).parseFromString(e.responseText,"application/xml")},r.open("GET",e,i),i&&(r.onreadystatechange=function(){4===r.readyState&&t(n(r))}),r.send(),i?r:n(r)}if(void 0!==this.gexf)throw'gexf: error - a variable called "gexf" already exists in the global scope';this.gexf={parse:function(e){return i(e)},fetch:function(e,t){return"function"==typeof t?o(e,(function(e){t(i(e))})):i(o(e))},version:"0.1.1"},this.exports!==t&&(e.exports=this.gexf)}).call(window)}).call(window)},183:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.parsers");var t=0;sigma.parsers.gexf=function(e,r,n){var i,o,a,s;function u(e){for(a=e.nodes,i=0,o=a.length;i<o;i++)(s=a[i]).id=s.id,s.viz&&"object"==typeof s.viz&&(s.viz.position&&"object"==typeof s.viz.position&&(s.x=s.viz.position.x,s.y=-s.viz.position.y),s.size=s.viz.size,s.color=s.viz.color);for(a=e.edges,i=0,o=a.length;i<o;i++)(s=a[i]).id="string"==typeof s.id?s.id:"e"+t++,s.source=""+s.source,s.target=""+s.target,s.viz&&"object"==typeof s.viz&&(s.color=s.viz.color,s.size=s.viz.thickness),s.size=s.weight,s.direction=s.type,delete s.type;if(r instanceof sigma){for(r.graph.clear(),a=e.nodes,i=0,o=a.length;i<o;i++)r.graph.addNode(a[i]);for(a=e.edges,i=0,o=a.length;i<o;i++)r.graph.addEdge(a[i])}else"object"==typeof r?(r.graph=e,r=new sigma(r)):"function"==typeof r&&(n=r,r=null);return n?void n(r||e):e}if("string"==typeof e)gexf.fetch(e,u);else if("object"==typeof e)return u(gexf.parse(e))}}).call(window)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=370)}({370:function(e,n){(function(){(function(){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.plugins");var e=0,n={};function t(e){if(n[e])return n[e];var t=[0,0,0];return e.match(/^#/)?t=3===(e=(e||"").replace(/^#/,"")).length?[parseInt(e.charAt(0)+e.charAt(0),16),parseInt(e.charAt(1)+e.charAt(1),16),parseInt(e.charAt(2)+e.charAt(2),16)]:[parseInt(e.charAt(0)+e.charAt(1),16),parseInt(e.charAt(2)+e.charAt(3),16),parseInt(e.charAt(4)+e.charAt(5),16)]:e.match(/^ *rgba? *\(/)&&(t=[+(e=e.match(/^ *rgba? *\( *([0-9]*) *, *([0-9]*) *, *([0-9]*) *(,.*)?\) *$/))[1],+e[2],+e[3]]),n[e]={r:t[0],g:t[1],b:t[2]},n[e]}function r(e,n,r){return e=t(e),n=t(n),"rgb("+[0|e.r*(1-r)+n.r*r,0|e.g*(1-r)+n.g*r,0|e.b*(1-r)+n.b*r].join(",")+")"}sigma.plugins.animate=function(n,t,a){var i,o,s,c=a||{},u=++e,f=c.duration||n.settings("animationsTime"),l="string"==typeof c.easing?sigma.utils.easings[c.easing]:"function"==typeof c.easing?c.easing:sigma.utils.easings.quadraticInOut,d=sigma.utils.dateNow();for(s in i=c.nodes&&c.nodes.length?"object"==typeof c.nodes[0]?c.nodes:n.graph.nodes(c.nodes):n.graph.nodes(),o=i.reduce(function(e,n){var r;for(r in e[n.id]={},t)r in n&&(e[n.id][r]=n[r]);return e},{}),n.animations=n.animations||Object.create({}),sigma.plugins.kill(n),n.cameras)n.cameras[s].edgequadtree._enabled=!1;!function e(){var a=(sigma.utils.dateNow()-d)/f;if(a>=1){var s;for(s in i.forEach(function(e){for(var n in t)n in t&&(e[n]=e[t[n]])}),n.cameras)n.cameras[s].edgequadtree._enabled=!0;n.refresh(),"function"==typeof c.onComplete&&c.onComplete()}else a=l(a),i.forEach(function(e){for(var n in t)n in t&&(n.match(/color$/)?e[n]=r(o[e.id][n],e[t[n]],a):e[n]=e[t[n]]*a+o[e.id][n]*(1-a))}),n.refresh(),n.animations[u]=requestAnimationFrame(e)}()},sigma.plugins.kill=function(e){for(var n in e.animations||{})cancelAnimationFrame(e.animations[n]);for(n in e.cameras)e.cameras[n].edgequadtree._enabled=!0}}).call(window)}).call(window)}});
var Sigma=function(e){var n={};function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)t.d(r,a,function(n){return e[n]}.bind(null,a));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=370)}({370:function(e,n){(function(){(function(){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.plugins");var e=0,n={};function t(e){if(n[e])return n[e];var t=[0,0,0];return e.match(/^#/)?t=3===(e=(e||"").replace(/^#/,"")).length?[parseInt(e.charAt(0)+e.charAt(0),16),parseInt(e.charAt(1)+e.charAt(1),16),parseInt(e.charAt(2)+e.charAt(2),16)]:[parseInt(e.charAt(0)+e.charAt(1),16),parseInt(e.charAt(2)+e.charAt(3),16),parseInt(e.charAt(4)+e.charAt(5),16)]:e.match(/^ *rgba? *\(/)&&(t=[+(e=e.match(/^ *rgba? *\( *([0-9]*) *, *([0-9]*) *, *([0-9]*) *(,.*)?\) *$/))[1],+e[2],+e[3]]),n[e]={r:t[0],g:t[1],b:t[2]},n[e]}function r(e,n,r){return e=t(e),n=t(n),"rgb("+[0|e.r*(1-r)+n.r*r,0|e.g*(1-r)+n.g*r,0|e.b*(1-r)+n.b*r].join(",")+")"}sigma.plugins.animate=function(n,t,a){var i,o,s,c=a||{},u=++e,f=c.duration||n.settings("animationsTime"),l="string"==typeof c.easing?sigma.utils.easings[c.easing]:"function"==typeof c.easing?c.easing:sigma.utils.easings.quadraticInOut,d=sigma.utils.dateNow();for(s in i=c.nodes&&c.nodes.length?"object"==typeof c.nodes[0]?c.nodes:n.graph.nodes(c.nodes):n.graph.nodes(),o=i.reduce((function(e,n){var r;for(r in e[n.id]={},t)r in n&&(e[n.id][r]=n[r]);return e}),{}),n.animations=n.animations||Object.create({}),sigma.plugins.kill(n),n.cameras)n.cameras[s].edgequadtree._enabled=!1;!function e(){var a=(sigma.utils.dateNow()-d)/f;if(a>=1){var s;for(s in i.forEach((function(e){for(var n in t)n in t&&(e[n]=e[t[n]])})),n.cameras)n.cameras[s].edgequadtree._enabled=!0;n.refresh(),"function"==typeof c.onComplete&&c.onComplete()}else a=l(a),i.forEach((function(e){for(var n in t)n in t&&(n.match(/color$/)?e[n]=r(o[e.id][n],e[t[n]],a):e[n]=e[t[n]]*a+o[e.id][n]*(1-a))})),n.refresh(),n.animations[u]=requestAnimationFrame(e)}()},sigma.plugins.kill=function(e){for(var n in e.animations||{})cancelAnimationFrame(e.animations[n]);for(n in e.cameras)e.cameras[n].edgequadtree._enabled=!0}}).call(window)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=185)}({185:function(module,exports){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.plugins"),sigma.classes.graph.hasMethod("adjacentNodes")||sigma.classes.graph.addMethod("adjacentNodes",function(e){if("string"!=typeof e)throw"adjacentNodes: the node id must be a string.";var r,t=[];for(r in this.allNeighborsIndex[e])t.push(this.nodesIndex[r]);return t}),sigma.classes.graph.hasMethod("adjacentEdges")||sigma.classes.graph.addMethod("adjacentEdges",function(e){if("string"!=typeof e)throw"adjacentEdges: the node id must be a string.";var r,t,n=this.allNeighborsIndex[e],o=[];for(t in n)for(r in n[t])o.push(n[t][r]);return o});var _g=undefined,_s=undefined,_chain=[],_keysIndex=Object.create(null),Processors={};function register(e,r,t){if(t!=undefined&&"string"!=typeof t)throw'The filter key "'+t.toString()+'" must be a string.';if(t!=undefined&&!t.length)throw"The filter key must be a non-empty string.";if("function"!=typeof e)throw'The predicate of key "'+t+'" must be a function.';if("undo"===t)throw'"undo" is a reserved key.';if(_keysIndex[t])throw'The filter "'+t+'" already exists.';t&&(_keysIndex[t]=!0),_chain.push({key:t,processor:e,predicate:r})}function unregister(e){for(var r in _chain=_chain.filter(function(r){return!(r.key in e)}),e)delete _keysIndex[r]}function Filter(e){_s=e,_g=e.graph}function deepCopy(o){var copy=Object.create(null);for(var i in o)"object"==typeof o[i]&&null!==o[i]?copy[i]=deepCopy(o[i]):"function"==typeof o[i]&&null!==o[i]?eval(" copy[i] = "+o[i].toString()):copy[i]=o[i];return copy}function cloneChain(e){for(var r=e.slice(0),t=0,n=r.length;t<n;t++)r[t]=deepCopy(r[t]),"function"==typeof r[t].processor&&(r[t].processor="filter.processors."+r[t].processor.name);return r}Processors.nodes=function(e){for(var r=_g.nodes(),t=r.length,n=_g.edges(),o=n.length;t--;)r[t].hidden=!e.call(_g,r[t])||r[t].hidden;for(;o--;)(_g.nodes(n[o].source).hidden||_g.nodes(n[o].target).hidden)&&(n[o].hidden=!0)},Processors.edges=function(e){for(var r=_g.edges(),t=r.length;t--;)r[t].hidden=!e.call(_g,r[t])||r[t].hidden},Processors.neighbors=function(e){for(var r=_g.nodes(),t=r.length,n=_g.edges(),o=n.length,i=_g.adjacentNodes(e),s=i.length,c={};s--;)c[i[s].id]=!0;for(;t--;)r[t].id===e||r[t].id in c||(r[t].hidden=!0);for(;o--;)(_g.nodes(n[o].source).hidden||_g.nodes(n[o].target).hidden)&&(n[o].hidden=!0)},Filter.prototype.nodesBy=function(e,r){return register(Processors.nodes,e,r),this},Filter.prototype.edgesBy=function(e,r){return register(Processors.edges,e,r),this},Filter.prototype.neighborsOf=function(e,r){if("string"!=typeof e)throw'The node id "'+e.toString()+'" must be a string.';if(!e.length)throw"The node id must be a non-empty string.";return register(Processors.neighbors,e,r),this},Filter.prototype.apply=function(){for(var e=0,r=_chain.length;e<r;++e)_chain[e].processor(_chain[e].predicate);return _chain[0]&&"undo"===_chain[0].key&&_chain.shift(),_s.refresh(),this},Filter.prototype.undo=function(e){var r=Object.create(null),t=arguments.length;if(1===t)if("[object Array]"===Object.prototype.toString.call(e))for(var n=0,o=e.length;n<o;n++)r[e[n]]=!0;else r[e]=!0;else if(t>1)for(n=0;n<t;n++)r[arguments[n]]=!0;else this.clear();function i(){for(var e=_g.nodes(),r=e.length,t=_g.edges(),n=t.length;r--;)e[r].hidden=!1;for(;n--;)t[n].hidden=!1}return unregister(r),_chain.unshift({key:"undo",processor:i}),this},Filter.prototype.clear=function(){return _chain.length=0,_keysIndex=Object.create(null),this},Filter.prototype.export=function(){return cloneChain(_chain)},Filter.prototype.import=function(e){if(e===undefined)throw"Wrong arguments.";if("[object Array]"!==Object.prototype.toString.call(e))throw'The chain" must be an array.';for(var r=cloneChain(e),t=0,n=r.length;t<n;t++){if(r[t].predicate===undefined||r[t].processor===undefined)throw"Wrong arguments.";if(r[t].key!=undefined&&"string"!=typeof r[t].key)throw'The filter key "'+r[t].key.toString()+'" must be a string.';if("function"!=typeof r[t].predicate)throw'The predicate of key "'+r[t].key+'" must be a function.';if("string"!=typeof r[t].processor)throw'The processor of key "'+r[t].key+'" must be a string.';switch(r[t].processor){case"filter.processors.nodes":r[t].processor=Processors.nodes;break;case"filter.processors.edges":r[t].processor=Processors.edges;break;case"filter.processors.neighbors":r[t].processor=Processors.neighbors;break;default:throw"Unknown processor "+r[t].processor}}return _chain=r,this};var filter=null;sigma.plugins.filter=function(e){return filter=new Filter(e)}}).call(this)}).call(window)}});
var Sigma=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=185)}({185:function(module,exports){(function(){(function(undefined){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.plugins"),sigma.classes.graph.hasMethod("adjacentNodes")||sigma.classes.graph.addMethod("adjacentNodes",(function(e){if("string"!=typeof e)throw"adjacentNodes: the node id must be a string.";var r,t=[];for(r in this.allNeighborsIndex[e])t.push(this.nodesIndex[r]);return t})),sigma.classes.graph.hasMethod("adjacentEdges")||sigma.classes.graph.addMethod("adjacentEdges",(function(e){if("string"!=typeof e)throw"adjacentEdges: the node id must be a string.";var r,t,n=this.allNeighborsIndex[e],o=[];for(t in n)for(r in n[t])o.push(n[t][r]);return o}));var _g=undefined,_s=undefined,_chain=[],_keysIndex=Object.create(null),Processors={};function register(e,r,t){if(t!=undefined&&"string"!=typeof t)throw'The filter key "'+t.toString()+'" must be a string.';if(t!=undefined&&!t.length)throw"The filter key must be a non-empty string.";if("function"!=typeof e)throw'The predicate of key "'+t+'" must be a function.';if("undo"===t)throw'"undo" is a reserved key.';if(_keysIndex[t])throw'The filter "'+t+'" already exists.';t&&(_keysIndex[t]=!0),_chain.push({key:t,processor:e,predicate:r})}function unregister(e){for(var r in _chain=_chain.filter((function(r){return!(r.key in e)})),e)delete _keysIndex[r]}function Filter(e){_s=e,_g=e.graph}function deepCopy(o){var copy=Object.create(null);for(var i in o)"object"==typeof o[i]&&null!==o[i]?copy[i]=deepCopy(o[i]):"function"==typeof o[i]&&null!==o[i]?eval(" copy[i] = "+o[i].toString()):copy[i]=o[i];return copy}function cloneChain(e){for(var r=e.slice(0),t=0,n=r.length;t<n;t++)r[t]=deepCopy(r[t]),"function"==typeof r[t].processor&&(r[t].processor="filter.processors."+r[t].processor.name);return r}Processors.nodes=function(e){for(var r=_g.nodes(),t=r.length,n=_g.edges(),o=n.length;t--;)r[t].hidden=!e.call(_g,r[t])||r[t].hidden;for(;o--;)(_g.nodes(n[o].source).hidden||_g.nodes(n[o].target).hidden)&&(n[o].hidden=!0)},Processors.edges=function(e){for(var r=_g.edges(),t=r.length;t--;)r[t].hidden=!e.call(_g,r[t])||r[t].hidden},Processors.neighbors=function(e){for(var r=_g.nodes(),t=r.length,n=_g.edges(),o=n.length,i=_g.adjacentNodes(e),s=i.length,c={};s--;)c[i[s].id]=!0;for(;t--;)r[t].id===e||r[t].id in c||(r[t].hidden=!0);for(;o--;)(_g.nodes(n[o].source).hidden||_g.nodes(n[o].target).hidden)&&(n[o].hidden=!0)},Filter.prototype.nodesBy=function(e,r){return register(Processors.nodes,e,r),this},Filter.prototype.edgesBy=function(e,r){return register(Processors.edges,e,r),this},Filter.prototype.neighborsOf=function(e,r){if("string"!=typeof e)throw'The node id "'+e.toString()+'" must be a string.';if(!e.length)throw"The node id must be a non-empty string.";return register(Processors.neighbors,e,r),this},Filter.prototype.apply=function(){for(var e=0,r=_chain.length;e<r;++e)_chain[e].processor(_chain[e].predicate);return _chain[0]&&"undo"===_chain[0].key&&_chain.shift(),_s.refresh(),this},Filter.prototype.undo=function(e){var r=Object.create(null),t=arguments.length;if(1===t)if("[object Array]"===Object.prototype.toString.call(e))for(var n=0,o=e.length;n<o;n++)r[e[n]]=!0;else r[e]=!0;else if(t>1)for(n=0;n<t;n++)r[arguments[n]]=!0;else this.clear();function i(){for(var e=_g.nodes(),r=e.length,t=_g.edges(),n=t.length;r--;)e[r].hidden=!1;for(;n--;)t[n].hidden=!1}return unregister(r),_chain.unshift({key:"undo",processor:i}),this},Filter.prototype.clear=function(){return _chain.length=0,_keysIndex=Object.create(null),this},Filter.prototype.export=function(){return cloneChain(_chain)},Filter.prototype.import=function(e){if(e===undefined)throw"Wrong arguments.";if("[object Array]"!==Object.prototype.toString.call(e))throw'The chain" must be an array.';for(var r=cloneChain(e),t=0,n=r.length;t<n;t++){if(r[t].predicate===undefined||r[t].processor===undefined)throw"Wrong arguments.";if(r[t].key!=undefined&&"string"!=typeof r[t].key)throw'The filter key "'+r[t].key.toString()+'" must be a string.';if("function"!=typeof r[t].predicate)throw'The predicate of key "'+r[t].key+'" must be a function.';if("string"!=typeof r[t].processor)throw'The processor of key "'+r[t].key+'" must be a string.';switch(r[t].processor){case"filter.processors.nodes":r[t].processor=Processors.nodes;break;case"filter.processors.edges":r[t].processor=Processors.edges;break;case"filter.processors.neighbors":r[t].processor=Processors.neighbors;break;default:throw"Unknown processor "+r[t].processor}}return _chain=r,this};var filter=null;sigma.plugins.filter=function(e){return filter=new Filter(e)}}).call(this)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=179)}({179:function(e,n){(function(){(function(){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";function e(e,n){sigma.classes.dispatcher.extend(this);var t=this,r=e,o=document.body,i=n,d=n.container.lastChild,a=n.camera,s=null,u="",l=[],c={},f=!1,g=!1;function p(e){c[e.data.node.id]||(l.push(e.data.node),c[e.data.node.id]=!0,l.length&&!f&&(s=l[l.length-1],d.addEventListener("mousedown",m)))}function v(e){var n=l.map(function(e){return e}).indexOf(e.data.node);l.splice(n,1),delete c[e.data.node.id],l.length&&!f?s=l[l.length-1]:d.removeEventListener("mousedown",m)}function m(e){f=!0;var n=r.graph.nodes().length;if(s&&n>1){var a,u;for(a in d.removeEventListener("mousedown",m),o.addEventListener("mousemove",y),o.addEventListener("mouseup",b),r.cameras)void 0!==(u=r.cameras[a]).edgequadtree&&(u.edgequadtree._enabled=!1);i.settings({mouseEnabled:!1,enableHovering:!1}),r.refresh(),t.dispatchEvent("startdrag",{node:s,captor:e,renderer:i})}}function b(e){var n,a;for(n in f=!1,d.addEventListener("mousedown",m),o.removeEventListener("mousemove",y),o.removeEventListener("mouseup",b),r.cameras)void 0!==(a=r.cameras[n]).edgequadtree&&(a.edgequadtree._enabled=!0);i.settings({mouseEnabled:!0,enableHovering:!0}),r.refresh(),g&&t.dispatchEvent("drop",{node:s,captor:e,renderer:i}),t.dispatchEvent("dragend",{node:s,captor:e,renderer:i}),g=!1,s=null}function y(e){if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1){clearTimeout(n);var n=setTimeout(o,0)}else o();function o(){for(var n,o,d,l=(n=i.container,o=window.getComputedStyle(n),d=function(e){return parseInt(o.getPropertyValue(e).replace("px",""))||0},{left:n.getBoundingClientRect().left+d("padding-left"),top:n.getBoundingClientRect().top+d("padding-top")}),c=e.clientX-l.left,f=e.clientY-l.top,p=Math.cos(a.angle),v=Math.sin(a.angle),m=r.graph.nodes(),b=[],y=0;y<2;y++){var h=m[y],x={x:h.x*p+h.y*v,y:h.y*p-h.x*v,renX:h[u+"x"],renY:h[u+"y"]};b.push(x)}if(b[0].x===b[1].x&&b[0].y===b[1].y){var E=0===b[0].renX?1:b[0].renX,w=0===b[0].renY?1:b[0].renY;c=b[0].x/E*(c-b[0].renX)+b[0].x,f=b[0].y/w*(f-b[0].renY)+b[0].y}else{E=(b[1].renX-b[0].renX)/(b[1].x-b[0].x),w=(b[1].renY-b[0].renY)/(b[1].y-b[0].y);b[1].x===b[0].x&&(E=w),b[1].y===b[0].y&&(w=E),c=(c-b[0].renX)/E+b[0].x,f=(f-b[0].renY)/w+b[0].y}s.x=c*p-f*v,s.y=f*p+c*v,r.refresh(),g=!0,t.dispatchEvent("drag",{node:s,captor:e,renderer:i})}}n instanceof sigma.renderers.svg&&(d=n.container.firstChild),u=n instanceof sigma.renderers.webgl?n.options.prefix.substr(5):n.options.prefix,n.bind("overNode",p),n.bind("outNode",v),n.bind("click",function(e){f=!1,o.removeEventListener("mousemove",y),o.removeEventListener("mouseup",b),l.length||(s=null)}),r.bind("kill",function(){t.unbindAll()}),this.unbindAll=function(){d.removeEventListener("mousedown",m),o.removeEventListener("mousemove",y),o.removeEventListener("mouseup",b),i.unbind("overNode",p),i.unbind("outNode",v)}}sigma.utils.pkg("sigma.plugins");var n={};sigma.plugins.dragNodes=function(t,r){return n[t.id]||(n[t.id]=new e(t,r)),t.bind("kill",function(){sigma.plugins.killDragNodes(t)}),n[t.id]},sigma.plugins.killDragNodes=function(t){n[t.id]instanceof e&&(n[t.id].unbindAll(),delete n[t.id])}}).call(window)}).call(window)}});
var Sigma=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=179)}({179:function(e,n){(function(){(function(){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";function e(e,n){sigma.classes.dispatcher.extend(this);var t=this,r=e,o=document.body,i=n,d=n.container.lastChild,a=n.camera,s=null,u="",l=[],c={},f=!1,g=!1;function p(e){c[e.data.node.id]||(l.push(e.data.node),c[e.data.node.id]=!0,l.length&&!f&&(s=l[l.length-1],d.addEventListener("mousedown",m)))}function v(e){var n=l.map((function(e){return e})).indexOf(e.data.node);l.splice(n,1),delete c[e.data.node.id],l.length&&!f?s=l[l.length-1]:d.removeEventListener("mousedown",m)}function m(e){f=!0;var n=r.graph.nodes().length;if(s&&n>1){var a,u;for(a in d.removeEventListener("mousedown",m),o.addEventListener("mousemove",y),o.addEventListener("mouseup",b),r.cameras)void 0!==(u=r.cameras[a]).edgequadtree&&(u.edgequadtree._enabled=!1);i.settings({mouseEnabled:!1,enableHovering:!1}),r.refresh(),t.dispatchEvent("startdrag",{node:s,captor:e,renderer:i})}}function b(e){var n,a;for(n in f=!1,d.addEventListener("mousedown",m),o.removeEventListener("mousemove",y),o.removeEventListener("mouseup",b),r.cameras)void 0!==(a=r.cameras[n]).edgequadtree&&(a.edgequadtree._enabled=!0);i.settings({mouseEnabled:!0,enableHovering:!0}),r.refresh(),g&&t.dispatchEvent("drop",{node:s,captor:e,renderer:i}),t.dispatchEvent("dragend",{node:s,captor:e,renderer:i}),g=!1,s=null}function y(e){if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1){clearTimeout(n);var n=setTimeout(o,0)}else o();function o(){for(var n,o,d,l=(n=i.container,o=window.getComputedStyle(n),d=function(e){return parseInt(o.getPropertyValue(e).replace("px",""))||0},{left:n.getBoundingClientRect().left+d("padding-left"),top:n.getBoundingClientRect().top+d("padding-top")}),c=e.clientX-l.left,f=e.clientY-l.top,p=Math.cos(a.angle),v=Math.sin(a.angle),m=r.graph.nodes(),b=[],y=0;y<2;y++){var h=m[y],x={x:h.x*p+h.y*v,y:h.y*p-h.x*v,renX:h[u+"x"],renY:h[u+"y"]};b.push(x)}if(b[0].x===b[1].x&&b[0].y===b[1].y){var E=0===b[0].renX?1:b[0].renX,w=0===b[0].renY?1:b[0].renY;c=b[0].x/E*(c-b[0].renX)+b[0].x,f=b[0].y/w*(f-b[0].renY)+b[0].y}else{E=(b[1].renX-b[0].renX)/(b[1].x-b[0].x),w=(b[1].renY-b[0].renY)/(b[1].y-b[0].y);b[1].x===b[0].x&&(E=w),b[1].y===b[0].y&&(w=E),c=(c-b[0].renX)/E+b[0].x,f=(f-b[0].renY)/w+b[0].y}s.x=c*p-f*v,s.y=f*p+c*v,r.refresh(),g=!0,t.dispatchEvent("drag",{node:s,captor:e,renderer:i})}}n instanceof sigma.renderers.svg&&(d=n.container.firstChild),u=n instanceof sigma.renderers.webgl?n.options.prefix.substr(5):n.options.prefix,n.bind("overNode",p),n.bind("outNode",v),n.bind("click",(function(e){f=!1,o.removeEventListener("mousemove",y),o.removeEventListener("mouseup",b),l.length||(s=null)})),r.bind("kill",(function(){t.unbindAll()})),this.unbindAll=function(){d.removeEventListener("mousedown",m),o.removeEventListener("mousemove",y),o.removeEventListener("mouseup",b),i.unbind("overNode",p),i.unbind("outNode",v)}}sigma.utils.pkg("sigma.plugins");var n={};sigma.plugins.dragNodes=function(t,r){return n[t.id]||(n[t.id]=new e(t,r)),t.bind("kill",(function(){sigma.plugins.killDragNodes(t)})),n[t.id]},sigma.plugins.killDragNodes=function(t){n[t.id]instanceof e&&(n[t.id].unbindAll(),delete n[t.id])}}).call(window)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=150)}({150:function(e,t,s){"use strict";s.r(t);s(151),s(152),s(153),s(154),s(155),s(156),s(157)},151:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";if("undefined"==typeof conrad)throw"conrad is not declared";sigma.utils.pkg("sigma.renderers"),sigma.renderers.svg=function(e,t,s,i){if("object"!=typeof i)throw"sigma.renderers.svg: Wrong arguments.";if(!(i.container instanceof HTMLElement))throw"Container not found.";var n,r,l,o,a=this;for(sigma.classes.dispatcher.extend(this),this.graph=e,this.camera=t,this.domElements={graph:null,groups:{},nodes:{},edges:{},labels:{},hovers:{}},this.measurementCanvas=null,this.options=i,this.container=this.options.container,this.settings="object"==typeof i.settings&&i.settings?s.embedObjects(i.settings):s,this.settings("freeStyle",!!this.options.freeStyle),this.settings("xmlns","http://www.w3.org/2000/svg"),this.nodesOnScreen=[],this.edgesOnScreen=[],this.options.prefix="renderer"+sigma.utils.id()+":",this.initDOM("svg"),this.captors=[],n=0,r=(l=this.options.captors||[sigma.captors.mouse,sigma.captors.touch]).length;n<r;n++)o="function"==typeof l[n]?l[n]:sigma.captors[l[n]],this.captors.push(new o(this.domElements.graph,this.camera,this.settings));window.addEventListener("resize",function(){a.resize()}),sigma.misc.bindDOMEvents.call(this,this.domElements.graph),this.bindHovers(this.options.prefix),this.resize(!1)},sigma.renderers.svg.prototype.render=function(t){t=t||{};var s,i,n,r,l,o,a,d,u,h={},c=this.graph,g=this.graph.nodes,m=(this.options.prefix,this.settings(t,"drawEdges")),f=this.settings(t,"drawNodes"),p=(this.settings(t,"drawLabels"),this.settings.embedObjects(t,{prefix:this.options.prefix,forceLabels:this.options.forceLabels}));for(this.settings(t,"hideEdgesOnMove")&&(this.camera.isAnimated||this.camera.isMoving)&&(m=!1),this.camera.applyView(e,this.options.prefix,{width:this.width,height:this.height}),this.hideDOMElements(this.domElements.nodes),this.hideDOMElements(this.domElements.edges),this.hideDOMElements(this.domElements.labels),this.edgesOnScreen=[],this.nodesOnScreen=this.camera.quadtree.area(this.camera.getRectangle(this.width,this.height)),i=0,r=(s=this.nodesOnScreen).length;i<r;i++)h[s[i].id]=s[i];for(i=0,r=(s=c.edges()).length;i<r;i++)!h[(l=s[i]).source]&&!h[l.target]||l.hidden||g(l.source).hidden||g(l.target).hidden||this.edgesOnScreen.push(l);if(d=sigma.svg.nodes,u=sigma.svg.labels,f)for(i=0,r=(s=this.nodesOnScreen).length;i<r;i++)s[i].hidden||this.domElements.nodes[s[i].id]||(n=(d[s[i].type]||d.def).create(s[i],p),this.domElements.nodes[s[i].id]=n,this.domElements.groups.nodes.appendChild(n),n=(u[s[i].type]||u.def).create(s[i],p),this.domElements.labels[s[i].id]=n,this.domElements.groups.labels.appendChild(n));if(f)for(i=0,r=(s=this.nodesOnScreen).length;i<r;i++)s[i].hidden||((d[s[i].type]||d.def).update(s[i],this.domElements.nodes[s[i].id],p),(u[s[i].type]||u.def).update(s[i],this.domElements.labels[s[i].id],p));if(d=sigma.svg.edges,m)for(i=0,r=(s=this.edgesOnScreen).length;i<r;i++)this.domElements.edges[s[i].id]||(o=g(s[i].source),a=g(s[i].target),n=(d[s[i].type]||d.def).create(s[i],o,a,p),this.domElements.edges[s[i].id]=n,this.domElements.groups.edges.appendChild(n));if(m)for(i=0,r=(s=this.edgesOnScreen).length;i<r;i++)o=g(s[i].source),a=g(s[i].target),(d[s[i].type]||d.def).update(s[i],this.domElements.edges[s[i].id],o,a,p);return this.dispatchEvent("render"),this},sigma.renderers.svg.prototype.initDOM=function(e){var t,s,i,n=document.createElementNS(this.settings("xmlns"),e),r=this.settings("classPrefix");n.style.position="absolute",n.setAttribute("class",r+"-svg"),n.setAttribute("xmlns",this.settings("xmlns")),n.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1");var l=document.createElement("canvas");l.setAttribute("class",r+"-measurement-canvas"),this.domElements.graph=this.container.appendChild(n);var o=["edges","nodes","labels","hovers"];for(i=0,s=o.length;i<s;i++)(t=document.createElementNS(this.settings("xmlns"),"g")).setAttributeNS(null,"id",r+"-group-"+o[i]),t.setAttributeNS(null,"class",r+"-group"),this.domElements.groups[o[i]]=this.domElements.graph.appendChild(t);this.container.appendChild(l),this.measurementCanvas=l.getContext("2d")},sigma.renderers.svg.prototype.hideDOMElements=function(e){var t,s;for(s in e)t=e[s],sigma.svg.utils.hide(t);return this},sigma.renderers.svg.prototype.bindHovers=function(e){var t,s=sigma.svg.hovers,i=this;this.bind("overNode",function(n){var r=n.data.node,l=i.settings.embedObjects({prefix:e});if(l("enableHovering")){var o=(s[r.type]||s.def).create(r,i.domElements.nodes[r.id],i.measurementCanvas,l);i.domElements.hovers[r.id]=o,i.domElements.groups.hovers.appendChild(o),t=r}}),this.bind("outNode",function(s){var n=s.data.node;i.settings.embedObjects({prefix:e})("enableHovering")&&(i.domElements.groups.hovers.removeChild(i.domElements.hovers[n.id]),t=null,delete i.domElements.hovers[n.id],i.domElements.groups.nodes.appendChild(i.domElements.nodes[n.id]))}),this.bind("render",function(){if(t){var n=i.settings.embedObjects({prefix:e});i.domElements.groups.hovers.removeChild(i.domElements.hovers[t.id]),delete i.domElements.hovers[t.id];var r=(s[t.type]||s.def).create(t,i.domElements.nodes[t.id],i.measurementCanvas,n);i.domElements.hovers[t.id]=r,i.domElements.groups.hovers.appendChild(r)}})},sigma.renderers.svg.prototype.resize=function(t,s){var i=this.width,n=this.height;return t!==e&&s!==e?(this.width=t,this.height=s):(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,t=this.width,s=this.height),i===this.width&&n===this.height||(this.domElements.graph.style.width=t+"px",this.domElements.graph.style.height=s+"px","svg"===this.domElements.graph.tagName.toLowerCase()&&(this.domElements.graph.setAttribute("width",1*t),this.domElements.graph.setAttribute("height",1*s))),this},sigma.utils.pkg("sigma.svg.nodes"),sigma.utils.pkg("sigma.svg.edges"),sigma.utils.pkg("sigma.svg.labels")}).call(this)}).call(window)},152:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.utils"),sigma.svg.utils={show:function(e){return e.style.display="",this},hide:function(e){return e.style.display="none",this}}}()}).call(window)},153:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.nodes"),sigma.svg.nodes.def={create:function(e,t){t("prefix");var s=document.createElementNS(t("xmlns"),"circle");return s.setAttributeNS(null,"data-node-id",e.id),s.setAttributeNS(null,"class",t("classPrefix")+"-node"),s.setAttributeNS(null,"fill",e.color||t("defaultNodeColor")),s},update:function(e,t,s){var i=s("prefix")||"";return t.setAttributeNS(null,"cx",e[i+"x"]),t.setAttributeNS(null,"cy",e[i+"y"]),t.setAttributeNS(null,"r",e[i+"size"]),s("freeStyle")||t.setAttributeNS(null,"fill",e.color||s("defaultNodeColor")),t.style.display="",this}}}()}).call(window)},154:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.edges"),sigma.svg.edges.def={create:function(e,t,s,i){var n=e.color,r=(i("prefix"),i("edgeColor")),l=i("defaultNodeColor"),o=i("defaultEdgeColor");if(!n)switch(r){case"source":n=t.color||l;break;case"target":n=s.color||l;break;default:n=o}var a=document.createElementNS(i("xmlns"),"line");return a.setAttributeNS(null,"data-edge-id",e.id),a.setAttributeNS(null,"class",i("classPrefix")+"-edge"),a.setAttributeNS(null,"stroke",n),a},update:function(e,t,s,i,n){var r=n("prefix")||"";return t.setAttributeNS(null,"stroke-width",e[r+"size"]||1),t.setAttributeNS(null,"x1",s[r+"x"]),t.setAttributeNS(null,"y1",s[r+"y"]),t.setAttributeNS(null,"x2",i[r+"x"]),t.setAttributeNS(null,"y2",i[r+"y"]),t.style.display="",this}}}()}).call(window)},155:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.edges"),sigma.svg.edges.curve={create:function(e,t,s,i){var n=e.color,r=(i("prefix"),i("edgeColor")),l=i("defaultNodeColor"),o=i("defaultEdgeColor");if(!n)switch(r){case"source":n=t.color||l;break;case"target":n=s.color||l;break;default:n=o}var a=document.createElementNS(i("xmlns"),"path");return a.setAttributeNS(null,"data-edge-id",e.id),a.setAttributeNS(null,"class",i("classPrefix")+"-edge"),a.setAttributeNS(null,"stroke",n),a},update:function(e,t,s,i,n){var r=n("prefix")||"";t.setAttributeNS(null,"stroke-width",e[r+"size"]||1);var l=(s[r+"x"]+i[r+"x"])/2+(i[r+"y"]-s[r+"y"])/4,o=(s[r+"y"]+i[r+"y"])/2+(s[r+"x"]-i[r+"x"])/4,a="M"+s[r+"x"]+","+s[r+"y"]+" Q"+l+","+o+" "+i[r+"x"]+","+i[r+"y"];return t.setAttributeNS(null,"d",a),t.setAttributeNS(null,"fill","none"),t.style.display="",this}}}()}).call(window)},156:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.svg.labels"),sigma.svg.labels.def={create:function(e,t){var s=e[(t("prefix")||"")+"size"],i=document.createElementNS(t("xmlns"),"text"),n="fixed"===t("labelSize")?t("defaultLabelSize"):t("labelSizeRatio")*s,r="node"===t("labelColor")?e.color||t("defaultNodeColor"):t("defaultLabelColor");return i.setAttributeNS(null,"data-label-target",e.id),i.setAttributeNS(null,"class",t("classPrefix")+"-label"),i.setAttributeNS(null,"font-size",n),i.setAttributeNS(null,"font-family",t("font")),i.setAttributeNS(null,"fill",r),i.innerHTML=e.label,i.textContent=e.label,i},update:function(e,t,s){var i=s("prefix")||"",n=e[i+"size"],r="fixed"===s("labelSize")?s("defaultLabelSize"):s("labelSizeRatio")*n;if((s("forceLabels")||!(n<s("labelThreshold")))&&"string"==typeof e.label)return t.setAttributeNS(null,"x",Math.round(e[i+"x"]+n+3)),t.setAttributeNS(null,"y",Math.round(e[i+"y"]+r/3)),t.style.display="",this}}}).call(this)}).call(window)},157:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.svg.hovers"),sigma.svg.hovers.def={create:function(e,t,s,i){i("hoverFontStyle")||i("fontStyle");var n,r,l,o=i("prefix")||"",a=e[o+"size"],d="fixed"===i("labelSize")?i("defaultLabelSize"):i("labelSizeRatio")*a,u="node"===i("labelHoverColor")?e.color||i("defaultNodeColor"):i("defaultLabelHoverColor"),h=document.createElementNS(i("xmlns"),"g"),c=document.createElementNS(i("xmlns"),"rect"),g=document.createElementNS(i("xmlns"),"circle"),m=document.createElementNS(i("xmlns"),"text");return h.setAttributeNS(null,"class",i("classPrefix")+"-hover"),h.setAttributeNS(null,"data-node-id",e.id),"string"==typeof e.label&&(m.innerHTML=e.label,m.textContent=e.label,m.setAttributeNS(null,"class",i("classPrefix")+"-hover-label"),m.setAttributeNS(null,"font-size",d),m.setAttributeNS(null,"font-family",i("font")),m.setAttributeNS(null,"fill",u),m.setAttributeNS(null,"x",Math.round(e[o+"x"]+a+3)),m.setAttributeNS(null,"y",Math.round(e[o+"y"]+d/3)),Math.round(e[o+"x"]-d/2-2),Math.round(e[o+"y"]-d/2-2),n=Math.round(s.measureText(e.label).width+d/2+a+9),r=Math.round(d+4),l=Math.round(d/2+2),g.setAttributeNS(null,"class",i("classPrefix")+"-hover-area"),g.setAttributeNS(null,"fill","#fff"),g.setAttributeNS(null,"cx",e[o+"x"]),g.setAttributeNS(null,"cy",e[o+"y"]),g.setAttributeNS(null,"r",l),c.setAttributeNS(null,"class",i("classPrefix")+"-hover-area"),c.setAttributeNS(null,"fill","#fff"),c.setAttributeNS(null,"x",e[o+"x"]+l/4),c.setAttributeNS(null,"y",e[o+"y"]-l),c.setAttributeNS(null,"width",n),c.setAttributeNS(null,"height",r)),h.appendChild(g),h.appendChild(c),h.appendChild(m),h.appendChild(t),h}}}).call(this)}).call(window)}});
var Sigma=function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=150)}({150:function(e,t,s){"use strict";s.r(t);s(151),s(152),s(153),s(154),s(155),s(156),s(157)},151:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";if("undefined"==typeof conrad)throw"conrad is not declared";sigma.utils.pkg("sigma.renderers"),sigma.renderers.svg=function(e,t,s,i){if("object"!=typeof i)throw"sigma.renderers.svg: Wrong arguments.";if(!(i.container instanceof HTMLElement))throw"Container not found.";var n,r,l,o,a=this;for(sigma.classes.dispatcher.extend(this),this.graph=e,this.camera=t,this.domElements={graph:null,groups:{},nodes:{},edges:{},labels:{},hovers:{}},this.measurementCanvas=null,this.options=i,this.container=this.options.container,this.settings="object"==typeof i.settings&&i.settings?s.embedObjects(i.settings):s,this.settings("freeStyle",!!this.options.freeStyle),this.settings("xmlns","http://www.w3.org/2000/svg"),this.nodesOnScreen=[],this.edgesOnScreen=[],this.options.prefix="renderer"+sigma.utils.id()+":",this.initDOM("svg"),this.captors=[],n=0,r=(l=this.options.captors||[sigma.captors.mouse,sigma.captors.touch]).length;n<r;n++)o="function"==typeof l[n]?l[n]:sigma.captors[l[n]],this.captors.push(new o(this.domElements.graph,this.camera,this.settings));window.addEventListener("resize",(function(){a.resize()})),sigma.misc.bindDOMEvents.call(this,this.domElements.graph),this.bindHovers(this.options.prefix),this.resize(!1)},sigma.renderers.svg.prototype.render=function(t){t=t||{};var s,i,n,r,l,o,a,d,u,h={},c=this.graph,g=this.graph.nodes,m=(this.options.prefix,this.settings(t,"drawEdges")),f=this.settings(t,"drawNodes"),p=(this.settings(t,"drawLabels"),this.settings.embedObjects(t,{prefix:this.options.prefix,forceLabels:this.options.forceLabels}));for(this.settings(t,"hideEdgesOnMove")&&(this.camera.isAnimated||this.camera.isMoving)&&(m=!1),this.camera.applyView(e,this.options.prefix,{width:this.width,height:this.height}),this.hideDOMElements(this.domElements.nodes),this.hideDOMElements(this.domElements.edges),this.hideDOMElements(this.domElements.labels),this.edgesOnScreen=[],this.nodesOnScreen=this.camera.quadtree.area(this.camera.getRectangle(this.width,this.height)),i=0,r=(s=this.nodesOnScreen).length;i<r;i++)h[s[i].id]=s[i];for(i=0,r=(s=c.edges()).length;i<r;i++)!h[(l=s[i]).source]&&!h[l.target]||l.hidden||g(l.source).hidden||g(l.target).hidden||this.edgesOnScreen.push(l);if(d=sigma.svg.nodes,u=sigma.svg.labels,f)for(i=0,r=(s=this.nodesOnScreen).length;i<r;i++)s[i].hidden||this.domElements.nodes[s[i].id]||(n=(d[s[i].type]||d.def).create(s[i],p),this.domElements.nodes[s[i].id]=n,this.domElements.groups.nodes.appendChild(n),n=(u[s[i].type]||u.def).create(s[i],p),this.domElements.labels[s[i].id]=n,this.domElements.groups.labels.appendChild(n));if(f)for(i=0,r=(s=this.nodesOnScreen).length;i<r;i++)s[i].hidden||((d[s[i].type]||d.def).update(s[i],this.domElements.nodes[s[i].id],p),(u[s[i].type]||u.def).update(s[i],this.domElements.labels[s[i].id],p));if(d=sigma.svg.edges,m)for(i=0,r=(s=this.edgesOnScreen).length;i<r;i++)this.domElements.edges[s[i].id]||(o=g(s[i].source),a=g(s[i].target),n=(d[s[i].type]||d.def).create(s[i],o,a,p),this.domElements.edges[s[i].id]=n,this.domElements.groups.edges.appendChild(n));if(m)for(i=0,r=(s=this.edgesOnScreen).length;i<r;i++)o=g(s[i].source),a=g(s[i].target),(d[s[i].type]||d.def).update(s[i],this.domElements.edges[s[i].id],o,a,p);return this.dispatchEvent("render"),this},sigma.renderers.svg.prototype.initDOM=function(e){var t,s,i,n=document.createElementNS(this.settings("xmlns"),e),r=this.settings("classPrefix");n.style.position="absolute",n.setAttribute("class",r+"-svg"),n.setAttribute("xmlns",this.settings("xmlns")),n.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1");var l=document.createElement("canvas");l.setAttribute("class",r+"-measurement-canvas"),this.domElements.graph=this.container.appendChild(n);var o=["edges","nodes","labels","hovers"];for(i=0,s=o.length;i<s;i++)(t=document.createElementNS(this.settings("xmlns"),"g")).setAttributeNS(null,"id",r+"-group-"+o[i]),t.setAttributeNS(null,"class",r+"-group"),this.domElements.groups[o[i]]=this.domElements.graph.appendChild(t);this.container.appendChild(l),this.measurementCanvas=l.getContext("2d")},sigma.renderers.svg.prototype.hideDOMElements=function(e){var t,s;for(s in e)t=e[s],sigma.svg.utils.hide(t);return this},sigma.renderers.svg.prototype.bindHovers=function(e){var t,s=sigma.svg.hovers,i=this;this.bind("overNode",(function(n){var r=n.data.node,l=i.settings.embedObjects({prefix:e});if(l("enableHovering")){var o=(s[r.type]||s.def).create(r,i.domElements.nodes[r.id],i.measurementCanvas,l);i.domElements.hovers[r.id]=o,i.domElements.groups.hovers.appendChild(o),t=r}})),this.bind("outNode",(function(s){var n=s.data.node;i.settings.embedObjects({prefix:e})("enableHovering")&&(i.domElements.groups.hovers.removeChild(i.domElements.hovers[n.id]),t=null,delete i.domElements.hovers[n.id],i.domElements.groups.nodes.appendChild(i.domElements.nodes[n.id]))})),this.bind("render",(function(){if(t){var n=i.settings.embedObjects({prefix:e});i.domElements.groups.hovers.removeChild(i.domElements.hovers[t.id]),delete i.domElements.hovers[t.id];var r=(s[t.type]||s.def).create(t,i.domElements.nodes[t.id],i.measurementCanvas,n);i.domElements.hovers[t.id]=r,i.domElements.groups.hovers.appendChild(r)}}))},sigma.renderers.svg.prototype.resize=function(t,s){var i=this.width,n=this.height;return t!==e&&s!==e?(this.width=t,this.height=s):(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,t=this.width,s=this.height),i===this.width&&n===this.height||(this.domElements.graph.style.width=t+"px",this.domElements.graph.style.height=s+"px","svg"===this.domElements.graph.tagName.toLowerCase()&&(this.domElements.graph.setAttribute("width",1*t),this.domElements.graph.setAttribute("height",1*s))),this},sigma.utils.pkg("sigma.svg.nodes"),sigma.utils.pkg("sigma.svg.edges"),sigma.utils.pkg("sigma.svg.labels")}).call(this)}).call(window)},152:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.utils"),sigma.svg.utils={show:function(e){return e.style.display="",this},hide:function(e){return e.style.display="none",this}}}()}).call(window)},153:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.nodes"),sigma.svg.nodes.def={create:function(e,t){t("prefix");var s=document.createElementNS(t("xmlns"),"circle");return s.setAttributeNS(null,"data-node-id",e.id),s.setAttributeNS(null,"class",t("classPrefix")+"-node"),s.setAttributeNS(null,"fill",e.color||t("defaultNodeColor")),s},update:function(e,t,s){var i=s("prefix")||"";return t.setAttributeNS(null,"cx",e[i+"x"]),t.setAttributeNS(null,"cy",e[i+"y"]),t.setAttributeNS(null,"r",e[i+"size"]),s("freeStyle")||t.setAttributeNS(null,"fill",e.color||s("defaultNodeColor")),t.style.display="",this}}}()}).call(window)},154:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.edges"),sigma.svg.edges.def={create:function(e,t,s,i){var n=e.color,r=(i("prefix"),i("edgeColor")),l=i("defaultNodeColor"),o=i("defaultEdgeColor");if(!n)switch(r){case"source":n=t.color||l;break;case"target":n=s.color||l;break;default:n=o}var a=document.createElementNS(i("xmlns"),"line");return a.setAttributeNS(null,"data-edge-id",e.id),a.setAttributeNS(null,"class",i("classPrefix")+"-edge"),a.setAttributeNS(null,"stroke",n),a},update:function(e,t,s,i,n){var r=n("prefix")||"";return t.setAttributeNS(null,"stroke-width",e[r+"size"]||1),t.setAttributeNS(null,"x1",s[r+"x"]),t.setAttributeNS(null,"y1",s[r+"y"]),t.setAttributeNS(null,"x2",i[r+"x"]),t.setAttributeNS(null,"y2",i[r+"y"]),t.style.display="",this}}}()}).call(window)},155:function(e,t){(function(){!function(){"use strict";sigma.utils.pkg("sigma.svg.edges"),sigma.svg.edges.curve={create:function(e,t,s,i){var n=e.color,r=(i("prefix"),i("edgeColor")),l=i("defaultNodeColor"),o=i("defaultEdgeColor");if(!n)switch(r){case"source":n=t.color||l;break;case"target":n=s.color||l;break;default:n=o}var a=document.createElementNS(i("xmlns"),"path");return a.setAttributeNS(null,"data-edge-id",e.id),a.setAttributeNS(null,"class",i("classPrefix")+"-edge"),a.setAttributeNS(null,"stroke",n),a},update:function(e,t,s,i,n){var r=n("prefix")||"";t.setAttributeNS(null,"stroke-width",e[r+"size"]||1);var l=(s[r+"x"]+i[r+"x"])/2+(i[r+"y"]-s[r+"y"])/4,o=(s[r+"y"]+i[r+"y"])/2+(s[r+"x"]-i[r+"x"])/4,a="M"+s[r+"x"]+","+s[r+"y"]+" Q"+l+","+o+" "+i[r+"x"]+","+i[r+"y"];return t.setAttributeNS(null,"d",a),t.setAttributeNS(null,"fill","none"),t.style.display="",this}}}()}).call(window)},156:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.svg.labels"),sigma.svg.labels.def={create:function(e,t){var s=e[(t("prefix")||"")+"size"],i=document.createElementNS(t("xmlns"),"text"),n="fixed"===t("labelSize")?t("defaultLabelSize"):t("labelSizeRatio")*s,r="node"===t("labelColor")?e.color||t("defaultNodeColor"):t("defaultLabelColor");return i.setAttributeNS(null,"data-label-target",e.id),i.setAttributeNS(null,"class",t("classPrefix")+"-label"),i.setAttributeNS(null,"font-size",n),i.setAttributeNS(null,"font-family",t("font")),i.setAttributeNS(null,"fill",r),i.innerHTML=e.label,i.textContent=e.label,i},update:function(e,t,s){var i=s("prefix")||"",n=e[i+"size"],r="fixed"===s("labelSize")?s("defaultLabelSize"):s("labelSizeRatio")*n;if((s("forceLabels")||!(n<s("labelThreshold")))&&"string"==typeof e.label)return t.setAttributeNS(null,"x",Math.round(e[i+"x"]+n+3)),t.setAttributeNS(null,"y",Math.round(e[i+"y"]+r/3)),t.style.display="",this}}}).call(this)}).call(window)},157:function(e,t){(function(){(function(e){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.svg.hovers"),sigma.svg.hovers.def={create:function(e,t,s,i){i("hoverFontStyle")||i("fontStyle");var n,r,l,o=i("prefix")||"",a=e[o+"size"],d="fixed"===i("labelSize")?i("defaultLabelSize"):i("labelSizeRatio")*a,u="node"===i("labelHoverColor")?e.color||i("defaultNodeColor"):i("defaultLabelHoverColor"),h=document.createElementNS(i("xmlns"),"g"),c=document.createElementNS(i("xmlns"),"rect"),g=document.createElementNS(i("xmlns"),"circle"),m=document.createElementNS(i("xmlns"),"text");return h.setAttributeNS(null,"class",i("classPrefix")+"-hover"),h.setAttributeNS(null,"data-node-id",e.id),"string"==typeof e.label&&(m.innerHTML=e.label,m.textContent=e.label,m.setAttributeNS(null,"class",i("classPrefix")+"-hover-label"),m.setAttributeNS(null,"font-size",d),m.setAttributeNS(null,"font-family",i("font")),m.setAttributeNS(null,"fill",u),m.setAttributeNS(null,"x",Math.round(e[o+"x"]+a+3)),m.setAttributeNS(null,"y",Math.round(e[o+"y"]+d/3)),Math.round(e[o+"x"]-d/2-2),Math.round(e[o+"y"]-d/2-2),n=Math.round(s.measureText(e.label).width+d/2+a+9),r=Math.round(d+4),l=Math.round(d/2+2),g.setAttributeNS(null,"class",i("classPrefix")+"-hover-area"),g.setAttributeNS(null,"fill","#fff"),g.setAttributeNS(null,"cx",e[o+"x"]),g.setAttributeNS(null,"cy",e[o+"y"]),g.setAttributeNS(null,"r",l),c.setAttributeNS(null,"class",i("classPrefix")+"-hover-area"),c.setAttributeNS(null,"fill","#fff"),c.setAttributeNS(null,"x",e[o+"x"]+l/4),c.setAttributeNS(null,"y",e[o+"y"]-l),c.setAttributeNS(null,"width",n),c.setAttributeNS(null,"height",r)),h.appendChild(g),h.appendChild(c),h.appendChild(m),h.appendChild(t),h}}}).call(this)}).call(window)}});

@@ -1,1 +0,1 @@

var Sigma=function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=142)}({142:function(t,e,i){"use strict";i.r(e);i(143),i(144),i(145),i(146),i(147),i(148),i(149)},143:function(t,e){(function(){(function(t){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.renderers"),sigma.renderers.webgl=function(t,e,i,r){if("object"!=typeof r)throw"sigma.renderers.webgl: Wrong arguments.";if(!(r.container instanceof HTMLElement))throw"Container not found.";var o,a,s,n;for(sigma.classes.dispatcher.extend(this),this.jobs={},Object.defineProperty(this,"conradId",{value:sigma.utils.id()}),this.graph=t,this.camera=e,this.contexts={},this.domElements={},this.options=r,this.container=this.options.container,this.settings="object"==typeof r.settings&&r.settings?i.embedObjects(r.settings):i,this.options.prefix=this.camera.readPrefix,Object.defineProperty(this,"nodePrograms",{value:{}}),Object.defineProperty(this,"edgePrograms",{value:{}}),Object.defineProperty(this,"nodeFloatArrays",{value:{}}),Object.defineProperty(this,"edgeFloatArrays",{value:{}}),Object.defineProperty(this,"edgeIndicesArrays",{value:{}}),this.settings(r,"batchEdgesDrawing")?(this.initDOM("canvas","edges",!0),this.initDOM("canvas","nodes",!0)):(this.initDOM("canvas","scene",!0),this.contexts.nodes=this.contexts.scene,this.contexts.edges=this.contexts.scene),this.initDOM("canvas","labels"),this.initDOM("canvas","mouse"),this.contexts.hover=this.contexts.mouse,this.captors=[],o=0,a=(s=this.options.captors||[sigma.captors.mouse,sigma.captors.touch]).length;o<a;o++)n="function"==typeof s[o]?s[o]:sigma.captors[s[o]],this.captors.push(new n(this.domElements.mouse,this.camera,this.settings));sigma.misc.bindEvents.call(this,this.camera.prefix),sigma.misc.drawHovers.call(this,this.camera.prefix),this.resize()},sigma.renderers.webgl.prototype.process=function(){var t,e,i,r,o,a,s=this.graph,n=sigma.utils.extend(n,this.options),l=this.settings(n,"defaultEdgeType"),c=this.settings(n,"defaultNodeType");for(r in this.nodeFloatArrays)delete this.nodeFloatArrays[r];for(r in this.edgeFloatArrays)delete this.edgeFloatArrays[r];for(r in this.edgeIndicesArrays)delete this.edgeIndicesArrays[r];for(e=0,i=(t=s.edges()).length;e<i;e++)r=(o=t[e].type||l)&&sigma.webgl.edges[o]?o:"def",this.edgeFloatArrays[r]||(this.edgeFloatArrays[r]={edges:[]}),this.edgeFloatArrays[r].edges.push(t[e]);for(e=0,i=(t=s.nodes()).length;e<i;e++)r=(o=t[e].type||c)&&sigma.webgl.nodes[o]?o:"def",this.nodeFloatArrays[r]||(this.nodeFloatArrays[r]={nodes:[]}),this.nodeFloatArrays[r].nodes.push(t[e]);for(r in this.edgeFloatArrays){for(a=sigma.webgl.edges[r],t=this.edgeFloatArrays[r].edges,this.edgeFloatArrays[r].array=new Float32Array(t.length*a.POINTS*a.ATTRIBUTES),e=0,i=t.length;e<i;e++)t[e].hidden||s.nodes(t[e].source).hidden||s.nodes(t[e].target).hidden||a.addEdge(t[e],s.nodes(t[e].source),s.nodes(t[e].target),this.edgeFloatArrays[r].array,e*a.POINTS*a.ATTRIBUTES,n.prefix,this.settings);"function"==typeof a.computeIndices&&(this.edgeIndicesArrays[r]=a.computeIndices(this.edgeFloatArrays[r].array))}for(r in this.nodeFloatArrays)for(a=sigma.webgl.nodes[r],t=this.nodeFloatArrays[r].nodes,this.nodeFloatArrays[r].array=new Float32Array(t.length*a.POINTS*a.ATTRIBUTES),e=0,i=t.length;e<i;e++)this.nodeFloatArrays[r].array||(this.nodeFloatArrays[r].array=new Float32Array(t.length*a.POINTS*a.ATTRIBUTES)),t[e].hidden||a.addNode(t[e],this.nodeFloatArrays[r].array,e*a.POINTS*a.ATTRIBUTES,n.prefix,this.settings);return this},sigma.renderers.webgl.prototype.render=function(e){var i,r,o,a,s,n,l=this,c=(this.graph,this.contexts.nodes),g=this.contexts.edges,d=this.camera.getMatrix(),u=sigma.utils.extend(e,this.options),h=this.settings(u,"drawLabels"),m=this.settings(u,"drawEdges"),f=this.settings(u,"drawNodes");for(a in this.resize(!1),this.settings(u,"hideEdgesOnMove")&&(this.camera.isAnimated||this.camera.isMoving)&&(m=!1),this.clear(),d=sigma.utils.matrices.multiply(d,sigma.utils.matrices.translation(this.width/2,this.height/2)),this.jobs)conrad.hasJob(a)&&conrad.killJob(a);if(m)if(this.settings(u,"batchEdgesDrawing"))(function(){var t,e,i,r,o,a,s,n,l,c;i="edges_"+this.conradId,c=this.settings(u,"webglEdgesBatchSize"),(t=Object.keys(this.edgeFloatArrays)).length&&(e=0,l=sigma.webgl.edges[t[e]],o=this.edgeFloatArrays[t[e]].array,n=this.edgeIndicesArrays[t[e]],s=0,a=Math.min(s+c*l.POINTS,o.length/l.ATTRIBUTES),r=function(){return this.edgePrograms[t[e]]||(this.edgePrograms[t[e]]=l.initProgram(g)),s<a&&(g.useProgram(this.edgePrograms[t[e]]),l.render(g,this.edgePrograms[t[e]],o,{settings:this.settings,matrix:d,width:this.width,height:this.height,ratio:this.camera.ratio,scalingRatio:this.settings(u,"webglOversamplingRatio"),start:s,count:a-s,indicesData:n})),a>=o.length/l.ATTRIBUTES&&e===t.length-1?(delete this.jobs[i],!1):(a>=o.length/l.ATTRIBUTES?(e++,o=this.edgeFloatArrays[t[e]].array,l=sigma.webgl.edges[t[e]],s=0,a=Math.min(s+c*l.POINTS,o.length/l.ATTRIBUTES)):(s=a,a=Math.min(s+c*l.POINTS,o.length/l.ATTRIBUTES)),!0)},this.jobs[i]=r,conrad.addJob(i,r.bind(this)))}).call(this);else for(a in this.edgeFloatArrays)n=sigma.webgl.edges[a],this.edgePrograms[a]||(this.edgePrograms[a]=n.initProgram(g)),this.edgeFloatArrays[a]&&(g.useProgram(this.edgePrograms[a]),n.render(g,this.edgePrograms[a],this.edgeFloatArrays[a].array,{settings:this.settings,matrix:d,width:this.width,height:this.height,ratio:this.camera.ratio,scalingRatio:this.settings(u,"webglOversamplingRatio"),indicesData:this.edgeIndicesArrays[a]}));if(f)for(a in c.blendFunc(c.SRC_ALPHA,c.ONE_MINUS_SRC_ALPHA),c.enable(c.BLEND),this.nodeFloatArrays)n=sigma.webgl.nodes[a],this.nodePrograms[a]||(this.nodePrograms[a]=n.initProgram(c)),this.nodeFloatArrays[a]&&(c.useProgram(this.nodePrograms[a]),n.render(c,this.nodePrograms[a],this.nodeFloatArrays[a].array,{settings:this.settings,matrix:d,width:this.width,height:this.height,ratio:this.camera.ratio,scalingRatio:this.settings(u,"webglOversamplingRatio")}));if(h)for(i=this.camera.quadtree.area(this.camera.getRectangle(this.width,this.height)),this.camera.applyView(t,t,{nodes:i,edges:[],width:this.width,height:this.height}),s=function(t){return l.settings({prefix:l.camera.prefix},t)},r=0,o=i.length;r<o;r++)i[r].hidden||(sigma.canvas.labels[i[r].type||this.settings(u,"defaultNodeType")]||sigma.canvas.labels.def)(i[r],this.contexts.labels,s);return this.dispatchEvent("render"),this},sigma.renderers.webgl.prototype.initDOM=function(t,e,i){var r=document.createElement(t),o=this;r.style.position="absolute",r.setAttribute("class","sigma-"+e),this.domElements[e]=r,this.container.appendChild(r),"canvas"===t.toLowerCase()&&(this.contexts[e]=r.getContext(i?"experimental-webgl":"2d",{preserveDrawingBuffer:!0}),i&&(r.addEventListener("webglcontextlost",function(t){t.preventDefault()},!1),r.addEventListener("webglcontextrestored",function(t){o.render()},!1)))},sigma.renderers.webgl.prototype.resize=function(e,i){var r,o=this.width,a=this.height,s=sigma.utils.getPixelRatio();if(e!==t&&i!==t?(this.width=e,this.height=i):(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,e=this.width,i=this.height),o!==this.width||a!==this.height)for(r in this.domElements)this.domElements[r].style.width=e+"px",this.domElements[r].style.height=i+"px","canvas"===this.domElements[r].tagName.toLowerCase()&&(this.contexts[r]&&this.contexts[r].scale?(this.domElements[r].setAttribute("width",e*s+"px"),this.domElements[r].setAttribute("height",i*s+"px"),1!==s&&this.contexts[r].scale(s,s)):(this.domElements[r].setAttribute("width",e*this.settings("webglOversamplingRatio")+"px"),this.domElements[r].setAttribute("height",i*this.settings("webglOversamplingRatio")+"px")));for(r in this.contexts)this.contexts[r]&&this.contexts[r].viewport&&this.contexts[r].viewport(0,0,this.width*this.settings("webglOversamplingRatio"),this.height*this.settings("webglOversamplingRatio"));return this},sigma.renderers.webgl.prototype.clear=function(){return this.contexts.labels.clearRect(0,0,this.width,this.height),this.contexts.nodes.clear(this.contexts.nodes.COLOR_BUFFER_BIT),this.contexts.edges.clear(this.contexts.edges.COLOR_BUFFER_BIT),this},sigma.renderers.webgl.prototype.kill=function(){for(var t,e;e=this.captors.pop();)e.kill();for(t in delete this.captors,this.domElements)this.domElements[t].parentNode.removeChild(this.domElements[t]),delete this.domElements[t],delete this.contexts[t];delete this.domElements,delete this.contexts},sigma.utils.pkg("sigma.webgl.nodes"),sigma.utils.pkg("sigma.webgl.edges"),sigma.utils.pkg("sigma.canvas.labels")}).call(this)}).call(window)},144:function(t,e){(function(){!function(t){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.renderers");var e,i=!!t.WebGLRenderingContext;if(i){e=document.createElement("canvas");try{i=!(!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}catch(t){i=!1}}sigma.renderers.def=i?sigma.renderers.webgl:sigma.renderers.canvas}(this)}).call(window)},145:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.nodes"),sigma.webgl.nodes.def={POINTS:3,ATTRIBUTES:5,addNode:function(t,e,i,r,o){var a=sigma.utils.floatColor(t.color||o("defaultNodeColor"));e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=a,e[i++]=0,e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=a,e[i++]=2*Math.PI/3,e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=a,e[i++]=4*Math.PI/3},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_position"),s=t.getAttribLocation(e,"a_size"),n=t.getAttribLocation(e,"a_color"),l=t.getAttribLocation(e,"a_angle"),c=t.getUniformLocation(e,"u_resolution"),g=t.getUniformLocation(e,"u_matrix"),d=t.getUniformLocation(e,"u_ratio"),u=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.DYNAMIC_DRAW),t.uniform2f(c,r.width,r.height),t.uniform1f(d,1/Math.pow(r.ratio,r.settings("nodesPowRatio"))),t.uniform1f(u,r.scalingRatio),t.uniformMatrix3fv(g,!1,r.matrix),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.enableVertexAttribArray(l),t.vertexAttribPointer(a,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(s,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(n,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,12),t.vertexAttribPointer(l,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,16),t.drawArrays(t.TRIANGLES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position;","attribute float a_size;","attribute float a_color;","attribute float a_angle;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_scale;","uniform mat3 u_matrix;","varying vec4 color;","varying vec2 center;","varying float radius;","void main() {","radius = a_size * u_ratio;","vec2 position = (u_matrix * vec3(a_position, 1)).xy;","center = position * u_scale;","center = vec2(center.x, u_scale * u_resolution.y - center.y);","position = position +","2.0 * radius * vec2(cos(a_angle), sin(a_angle));","position = (position / u_resolution * 2.0 - 1.0) * vec2(1, -1);","radius = radius * u_scale;","gl_Position = vec4(position, 0, 1);","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","varying vec2 center;","varying float radius;","void main(void) {","vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);","vec2 m = gl_FragCoord.xy - center;","float diff = radius - sqrt(m.x * m.x + m.y * m.y);","if (diff > 0.0)","gl_FragColor = color;","else","gl_FragColor = color0;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},146:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.nodes"),sigma.webgl.nodes.fast={POINTS:1,ATTRIBUTES:4,addNode:function(t,e,i,r,o){e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=sigma.utils.floatColor(t.color||o("defaultNodeColor"))},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_position"),s=t.getAttribLocation(e,"a_size"),n=t.getAttribLocation(e,"a_color"),l=t.getUniformLocation(e,"u_resolution"),c=t.getUniformLocation(e,"u_matrix"),g=t.getUniformLocation(e,"u_ratio"),d=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.DYNAMIC_DRAW),t.uniform2f(l,r.width,r.height),t.uniform1f(g,1/Math.pow(r.ratio,r.settings("nodesPowRatio"))),t.uniform1f(d,r.scalingRatio),t.uniformMatrix3fv(c,!1,r.matrix),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.vertexAttribPointer(a,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(s,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(n,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,12),t.drawArrays(t.POINTS,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position;","attribute float a_size;","attribute float a_color;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_scale;","uniform mat3 u_matrix;","varying vec4 color;","void main() {","gl_Position = vec4(","((u_matrix * vec3(a_position, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","gl_PointSize = a_size * u_ratio * u_scale * 2.0;","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","float border = 0.01;","float radius = 0.5;","vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);","vec2 m = gl_PointCoord - vec2(0.5, 0.5);","float dist = radius - sqrt(m.x * m.x + m.y * m.y);","float t = 0.0;","if (dist > border)","t = 1.0;","else if (dist > 0.0)","t = dist / border;","gl_FragColor = mix(color0, color, t);","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},147:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.edges"),sigma.webgl.edges.def={POINTS:6,ATTRIBUTES:7,addEdge:function(t,e,i,r,o,a,s){var n=(t[a+"size"]||1)/2,l=e[a+"x"],c=e[a+"y"],g=i[a+"x"],d=i[a+"y"],u=t.color;if(!u)switch(s("edgeColor")){case"source":u=e.color||s("defaultNodeColor");break;case"target":u=i.color||s("defaultNodeColor");break;default:u=s("defaultEdgeColor")}u=sigma.utils.floatColor(u),r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=0,r[o++]=u,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=1,r[o++]=u,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=0,r[o++]=u,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=0,r[o++]=u,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=1,r[o++]=u,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=0,r[o++]=u},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_color"),s=t.getAttribLocation(e,"a_position1"),n=t.getAttribLocation(e,"a_position2"),l=t.getAttribLocation(e,"a_thickness"),c=t.getAttribLocation(e,"a_minus"),g=t.getUniformLocation(e,"u_resolution"),d=t.getUniformLocation(e,"u_matrix"),u=t.getUniformLocation(e,"u_matrixHalfPi"),h=t.getUniformLocation(e,"u_matrixHalfPiMinus"),m=t.getUniformLocation(e,"u_ratio"),f=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW),t.uniform2f(g,r.width,r.height),t.uniform1f(m,r.ratio/Math.pow(r.ratio,r.settings("edgesPowRatio"))),t.uniform1f(f,r.scalingRatio),t.uniformMatrix3fv(d,!1,r.matrix),t.uniformMatrix2fv(u,!1,sigma.utils.matrices.rotation(Math.PI/2,!0)),t.uniformMatrix2fv(h,!1,sigma.utils.matrices.rotation(-Math.PI/2,!0)),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.enableVertexAttribArray(l),t.enableVertexAttribArray(c),t.vertexAttribPointer(s,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(n,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(l,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,16),t.vertexAttribPointer(c,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,20),t.vertexAttribPointer(a,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,24),t.drawArrays(t.TRIANGLES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position1;","attribute vec2 a_position2;","attribute float a_thickness;","attribute float a_minus;","attribute float a_color;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_scale;","uniform mat3 u_matrix;","uniform mat2 u_matrixHalfPi;","uniform mat2 u_matrixHalfPiMinus;","varying vec4 color;","void main() {","vec2 position = a_thickness * u_ratio *","normalize(a_position2 - a_position1);","mat2 matrix = a_minus * u_matrixHalfPiMinus +","(1.0 - a_minus) * u_matrixHalfPi;","position = matrix * position + a_position1;","gl_Position = vec4(","((u_matrix * vec3(position, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","gl_FragColor = color;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},148:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.edges"),sigma.webgl.edges.fast={POINTS:2,ATTRIBUTES:3,addEdge:function(t,e,i,r,o,a,s){t[a+"size"];var n=e[a+"x"],l=e[a+"y"],c=i[a+"x"],g=i[a+"y"],d=t.color;if(!d)switch(s("edgeColor")){case"source":d=e.color||s("defaultNodeColor");break;case"target":d=i.color||s("defaultNodeColor");break;default:d=s("defaultEdgeColor")}d=sigma.utils.floatColor(d),r[o++]=n,r[o++]=l,r[o++]=d,r[o++]=c,r[o++]=g,r[o++]=d},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_color"),s=t.getAttribLocation(e,"a_position"),n=t.getUniformLocation(e,"u_resolution"),l=t.getUniformLocation(e,"u_matrix");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.DYNAMIC_DRAW),t.uniform2f(n,r.width,r.height),t.uniformMatrix3fv(l,!1,r.matrix),t.enableVertexAttribArray(s),t.enableVertexAttribArray(a),t.vertexAttribPointer(s,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(a,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.lineWidth(3),t.drawArrays(t.LINES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position;","attribute float a_color;","uniform vec2 u_resolution;","uniform mat3 u_matrix;","varying vec4 color;","void main() {","gl_Position = vec4(","((u_matrix * vec3(a_position, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","gl_FragColor = color;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},149:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.edges"),sigma.webgl.edges.arrow={POINTS:9,ATTRIBUTES:11,addEdge:function(t,e,i,r,o,a,s){var n=(t[a+"size"]||1)/2,l=e[a+"x"],c=e[a+"y"],g=i[a+"x"],d=i[a+"y"],u=i[a+"size"],h=t.color;if(!h)switch(s("edgeColor")){case"source":h=e.color||s("defaultNodeColor");break;case"target":h=i.color||s("defaultNodeColor");break;default:h=s("defaultEdgeColor")}h=sigma.utils.floatColor(h),r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=u,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=u,r[o++]=0,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=u,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=1,r[o++]=-1,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=1,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=1,r[o++]=1,r[o++]=h},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_pos1"),s=t.getAttribLocation(e,"a_pos2"),n=t.getAttribLocation(e,"a_thickness"),l=t.getAttribLocation(e,"a_tSize"),c=t.getAttribLocation(e,"a_delay"),g=t.getAttribLocation(e,"a_minus"),d=t.getAttribLocation(e,"a_head"),u=t.getAttribLocation(e,"a_headPosition"),h=t.getAttribLocation(e,"a_color"),m=t.getUniformLocation(e,"u_resolution"),f=t.getUniformLocation(e,"u_matrix"),A=t.getUniformLocation(e,"u_matrixHalfPi"),_=t.getUniformLocation(e,"u_matrixHalfPiMinus"),E=t.getUniformLocation(e,"u_ratio"),T=t.getUniformLocation(e,"u_nodeRatio"),b=t.getUniformLocation(e,"u_arrowHead"),y=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW),t.uniform2f(m,r.width,r.height),t.uniform1f(E,r.ratio/Math.pow(r.ratio,r.settings("edgesPowRatio"))),t.uniform1f(T,Math.pow(r.ratio,r.settings("nodesPowRatio"))/r.ratio),t.uniform1f(b,5),t.uniform1f(y,r.scalingRatio),t.uniformMatrix3fv(f,!1,r.matrix),t.uniformMatrix2fv(A,!1,sigma.utils.matrices.rotation(Math.PI/2,!0)),t.uniformMatrix2fv(_,!1,sigma.utils.matrices.rotation(-Math.PI/2,!0)),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.enableVertexAttribArray(l),t.enableVertexAttribArray(c),t.enableVertexAttribArray(g),t.enableVertexAttribArray(d),t.enableVertexAttribArray(u),t.enableVertexAttribArray(h),t.vertexAttribPointer(a,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(s,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(n,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,16),t.vertexAttribPointer(l,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,20),t.vertexAttribPointer(c,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,24),t.vertexAttribPointer(g,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,28),t.vertexAttribPointer(d,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,32),t.vertexAttribPointer(u,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,36),t.vertexAttribPointer(h,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,40),t.drawArrays(t.TRIANGLES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_pos1;","attribute vec2 a_pos2;","attribute float a_thickness;","attribute float a_tSize;","attribute float a_delay;","attribute float a_minus;","attribute float a_head;","attribute float a_headPosition;","attribute float a_color;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_nodeRatio;","uniform float u_arrowHead;","uniform float u_scale;","uniform mat3 u_matrix;","uniform mat2 u_matrixHalfPi;","uniform mat2 u_matrixHalfPiMinus;","varying vec4 color;","void main() {","vec2 pos = normalize(a_pos2 - a_pos1);","mat2 matrix = (1.0 - a_head) *","(","a_minus * u_matrixHalfPiMinus +","(1.0 - a_minus) * u_matrixHalfPi",") + a_head * (","a_headPosition * u_matrixHalfPiMinus * 0.6 +","(a_headPosition * a_headPosition - 1.0) * mat2(1.0)",");","pos = a_pos1 + (","(1.0 - a_head) * a_thickness * u_ratio * matrix * pos +","a_head * u_arrowHead * a_thickness * u_ratio * matrix * pos +","a_delay * pos * (","a_tSize / u_nodeRatio +","u_arrowHead * a_thickness * u_ratio",")",");","gl_Position = vec4(","((u_matrix * vec3(pos, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","gl_FragColor = color;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)}});
var Sigma=function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=142)}({142:function(t,e,i){"use strict";i.r(e);i(143),i(144),i(145),i(146),i(147),i(148),i(149)},143:function(t,e){(function(){(function(t){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.renderers"),sigma.renderers.webgl=function(t,e,i,r){if("object"!=typeof r)throw"sigma.renderers.webgl: Wrong arguments.";if(!(r.container instanceof HTMLElement))throw"Container not found.";var o,a,s,n;for(sigma.classes.dispatcher.extend(this),this.jobs={},Object.defineProperty(this,"conradId",{value:sigma.utils.id()}),this.graph=t,this.camera=e,this.contexts={},this.domElements={},this.options=r,this.container=this.options.container,this.settings="object"==typeof r.settings&&r.settings?i.embedObjects(r.settings):i,this.options.prefix=this.camera.readPrefix,Object.defineProperty(this,"nodePrograms",{value:{}}),Object.defineProperty(this,"edgePrograms",{value:{}}),Object.defineProperty(this,"nodeFloatArrays",{value:{}}),Object.defineProperty(this,"edgeFloatArrays",{value:{}}),Object.defineProperty(this,"edgeIndicesArrays",{value:{}}),this.settings(r,"batchEdgesDrawing")?(this.initDOM("canvas","edges",!0),this.initDOM("canvas","nodes",!0)):(this.initDOM("canvas","scene",!0),this.contexts.nodes=this.contexts.scene,this.contexts.edges=this.contexts.scene),this.initDOM("canvas","labels"),this.initDOM("canvas","mouse"),this.contexts.hover=this.contexts.mouse,this.captors=[],o=0,a=(s=this.options.captors||[sigma.captors.mouse,sigma.captors.touch]).length;o<a;o++)n="function"==typeof s[o]?s[o]:sigma.captors[s[o]],this.captors.push(new n(this.domElements.mouse,this.camera,this.settings));sigma.misc.bindEvents.call(this,this.camera.prefix),sigma.misc.drawHovers.call(this,this.camera.prefix),this.resize()},sigma.renderers.webgl.prototype.process=function(){var t,e,i,r,o,a,s=this.graph,n=sigma.utils.extend(n,this.options),l=this.settings(n,"defaultEdgeType"),c=this.settings(n,"defaultNodeType");for(r in this.nodeFloatArrays)delete this.nodeFloatArrays[r];for(r in this.edgeFloatArrays)delete this.edgeFloatArrays[r];for(r in this.edgeIndicesArrays)delete this.edgeIndicesArrays[r];for(e=0,i=(t=s.edges()).length;e<i;e++)r=(o=t[e].type||l)&&sigma.webgl.edges[o]?o:"def",this.edgeFloatArrays[r]||(this.edgeFloatArrays[r]={edges:[]}),this.edgeFloatArrays[r].edges.push(t[e]);for(e=0,i=(t=s.nodes()).length;e<i;e++)r=(o=t[e].type||c)&&sigma.webgl.nodes[o]?o:"def",this.nodeFloatArrays[r]||(this.nodeFloatArrays[r]={nodes:[]}),this.nodeFloatArrays[r].nodes.push(t[e]);for(r in this.edgeFloatArrays){for(a=sigma.webgl.edges[r],t=this.edgeFloatArrays[r].edges,this.edgeFloatArrays[r].array=new Float32Array(t.length*a.POINTS*a.ATTRIBUTES),e=0,i=t.length;e<i;e++)t[e].hidden||s.nodes(t[e].source).hidden||s.nodes(t[e].target).hidden||a.addEdge(t[e],s.nodes(t[e].source),s.nodes(t[e].target),this.edgeFloatArrays[r].array,e*a.POINTS*a.ATTRIBUTES,n.prefix,this.settings);"function"==typeof a.computeIndices&&(this.edgeIndicesArrays[r]=a.computeIndices(this.edgeFloatArrays[r].array))}for(r in this.nodeFloatArrays)for(a=sigma.webgl.nodes[r],t=this.nodeFloatArrays[r].nodes,this.nodeFloatArrays[r].array=new Float32Array(t.length*a.POINTS*a.ATTRIBUTES),e=0,i=t.length;e<i;e++)this.nodeFloatArrays[r].array||(this.nodeFloatArrays[r].array=new Float32Array(t.length*a.POINTS*a.ATTRIBUTES)),t[e].hidden||a.addNode(t[e],this.nodeFloatArrays[r].array,e*a.POINTS*a.ATTRIBUTES,n.prefix,this.settings);return this},sigma.renderers.webgl.prototype.render=function(e){var i,r,o,a,s,n,l=this,c=(this.graph,this.contexts.nodes),g=this.contexts.edges,d=this.camera.getMatrix(),u=sigma.utils.extend(e,this.options),h=this.settings(u,"drawLabels"),m=this.settings(u,"drawEdges"),f=this.settings(u,"drawNodes");for(a in this.resize(!1),this.settings(u,"hideEdgesOnMove")&&(this.camera.isAnimated||this.camera.isMoving)&&(m=!1),this.clear(),d=sigma.utils.matrices.multiply(d,sigma.utils.matrices.translation(this.width/2,this.height/2)),this.jobs)conrad.hasJob(a)&&conrad.killJob(a);if(m)if(this.settings(u,"batchEdgesDrawing"))(function(){var t,e,i,r,o,a,s,n,l,c;i="edges_"+this.conradId,c=this.settings(u,"webglEdgesBatchSize"),(t=Object.keys(this.edgeFloatArrays)).length&&(e=0,l=sigma.webgl.edges[t[e]],o=this.edgeFloatArrays[t[e]].array,n=this.edgeIndicesArrays[t[e]],s=0,a=Math.min(s+c*l.POINTS,o.length/l.ATTRIBUTES),r=function(){return this.edgePrograms[t[e]]||(this.edgePrograms[t[e]]=l.initProgram(g)),s<a&&(g.useProgram(this.edgePrograms[t[e]]),l.render(g,this.edgePrograms[t[e]],o,{settings:this.settings,matrix:d,width:this.width,height:this.height,ratio:this.camera.ratio,scalingRatio:this.settings(u,"webglOversamplingRatio"),start:s,count:a-s,indicesData:n})),a>=o.length/l.ATTRIBUTES&&e===t.length-1?(delete this.jobs[i],!1):(a>=o.length/l.ATTRIBUTES?(e++,o=this.edgeFloatArrays[t[e]].array,l=sigma.webgl.edges[t[e]],s=0,a=Math.min(s+c*l.POINTS,o.length/l.ATTRIBUTES)):(s=a,a=Math.min(s+c*l.POINTS,o.length/l.ATTRIBUTES)),!0)},this.jobs[i]=r,conrad.addJob(i,r.bind(this)))}).call(this);else for(a in this.edgeFloatArrays)n=sigma.webgl.edges[a],this.edgePrograms[a]||(this.edgePrograms[a]=n.initProgram(g)),this.edgeFloatArrays[a]&&(g.useProgram(this.edgePrograms[a]),n.render(g,this.edgePrograms[a],this.edgeFloatArrays[a].array,{settings:this.settings,matrix:d,width:this.width,height:this.height,ratio:this.camera.ratio,scalingRatio:this.settings(u,"webglOversamplingRatio"),indicesData:this.edgeIndicesArrays[a]}));if(f)for(a in c.blendFunc(c.SRC_ALPHA,c.ONE_MINUS_SRC_ALPHA),c.enable(c.BLEND),this.nodeFloatArrays)n=sigma.webgl.nodes[a],this.nodePrograms[a]||(this.nodePrograms[a]=n.initProgram(c)),this.nodeFloatArrays[a]&&(c.useProgram(this.nodePrograms[a]),n.render(c,this.nodePrograms[a],this.nodeFloatArrays[a].array,{settings:this.settings,matrix:d,width:this.width,height:this.height,ratio:this.camera.ratio,scalingRatio:this.settings(u,"webglOversamplingRatio")}));if(h)for(i=this.camera.quadtree.area(this.camera.getRectangle(this.width,this.height)),this.camera.applyView(t,t,{nodes:i,edges:[],width:this.width,height:this.height}),s=function(t){return l.settings({prefix:l.camera.prefix},t)},r=0,o=i.length;r<o;r++)i[r].hidden||(sigma.canvas.labels[i[r].type||this.settings(u,"defaultNodeType")]||sigma.canvas.labels.def)(i[r],this.contexts.labels,s);return this.dispatchEvent("render"),this},sigma.renderers.webgl.prototype.initDOM=function(t,e,i){var r=document.createElement(t),o=this;r.style.position="absolute",r.setAttribute("class","sigma-"+e),this.domElements[e]=r,this.container.appendChild(r),"canvas"===t.toLowerCase()&&(this.contexts[e]=r.getContext(i?"experimental-webgl":"2d",{preserveDrawingBuffer:!0}),i&&(r.addEventListener("webglcontextlost",(function(t){t.preventDefault()}),!1),r.addEventListener("webglcontextrestored",(function(t){o.render()}),!1)))},sigma.renderers.webgl.prototype.resize=function(e,i){var r,o=this.width,a=this.height,s=sigma.utils.getPixelRatio();if(e!==t&&i!==t?(this.width=e,this.height=i):(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,e=this.width,i=this.height),o!==this.width||a!==this.height)for(r in this.domElements)this.domElements[r].style.width=e+"px",this.domElements[r].style.height=i+"px","canvas"===this.domElements[r].tagName.toLowerCase()&&(this.contexts[r]&&this.contexts[r].scale?(this.domElements[r].setAttribute("width",e*s+"px"),this.domElements[r].setAttribute("height",i*s+"px"),1!==s&&this.contexts[r].scale(s,s)):(this.domElements[r].setAttribute("width",e*this.settings("webglOversamplingRatio")+"px"),this.domElements[r].setAttribute("height",i*this.settings("webglOversamplingRatio")+"px")));for(r in this.contexts)this.contexts[r]&&this.contexts[r].viewport&&this.contexts[r].viewport(0,0,this.width*this.settings("webglOversamplingRatio"),this.height*this.settings("webglOversamplingRatio"));return this},sigma.renderers.webgl.prototype.clear=function(){return this.contexts.labels.clearRect(0,0,this.width,this.height),this.contexts.nodes.clear(this.contexts.nodes.COLOR_BUFFER_BIT),this.contexts.edges.clear(this.contexts.edges.COLOR_BUFFER_BIT),this},sigma.renderers.webgl.prototype.kill=function(){for(var t,e;e=this.captors.pop();)e.kill();for(t in delete this.captors,this.domElements)this.domElements[t].parentNode.removeChild(this.domElements[t]),delete this.domElements[t],delete this.contexts[t];delete this.domElements,delete this.contexts},sigma.utils.pkg("sigma.webgl.nodes"),sigma.utils.pkg("sigma.webgl.edges"),sigma.utils.pkg("sigma.canvas.labels")}).call(this)}).call(window)},144:function(t,e){(function(){!function(t){"use strict";if("undefined"==typeof sigma)throw"sigma is not declared";sigma.utils.pkg("sigma.renderers");var e,i=!!t.WebGLRenderingContext;if(i){e=document.createElement("canvas");try{i=!(!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}catch(t){i=!1}}sigma.renderers.def=i?sigma.renderers.webgl:sigma.renderers.canvas}(this)}).call(window)},145:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.nodes"),sigma.webgl.nodes.def={POINTS:3,ATTRIBUTES:5,addNode:function(t,e,i,r,o){var a=sigma.utils.floatColor(t.color||o("defaultNodeColor"));e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=a,e[i++]=0,e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=a,e[i++]=2*Math.PI/3,e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=a,e[i++]=4*Math.PI/3},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_position"),s=t.getAttribLocation(e,"a_size"),n=t.getAttribLocation(e,"a_color"),l=t.getAttribLocation(e,"a_angle"),c=t.getUniformLocation(e,"u_resolution"),g=t.getUniformLocation(e,"u_matrix"),d=t.getUniformLocation(e,"u_ratio"),u=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.DYNAMIC_DRAW),t.uniform2f(c,r.width,r.height),t.uniform1f(d,1/Math.pow(r.ratio,r.settings("nodesPowRatio"))),t.uniform1f(u,r.scalingRatio),t.uniformMatrix3fv(g,!1,r.matrix),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.enableVertexAttribArray(l),t.vertexAttribPointer(a,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(s,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(n,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,12),t.vertexAttribPointer(l,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,16),t.drawArrays(t.TRIANGLES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position;","attribute float a_size;","attribute float a_color;","attribute float a_angle;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_scale;","uniform mat3 u_matrix;","varying vec4 color;","varying vec2 center;","varying float radius;","void main() {","radius = a_size * u_ratio;","vec2 position = (u_matrix * vec3(a_position, 1)).xy;","center = position * u_scale;","center = vec2(center.x, u_scale * u_resolution.y - center.y);","position = position +","2.0 * radius * vec2(cos(a_angle), sin(a_angle));","position = (position / u_resolution * 2.0 - 1.0) * vec2(1, -1);","radius = radius * u_scale;","gl_Position = vec4(position, 0, 1);","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","varying vec2 center;","varying float radius;","void main(void) {","vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);","vec2 m = gl_FragCoord.xy - center;","float diff = radius - sqrt(m.x * m.x + m.y * m.y);","if (diff > 0.0)","gl_FragColor = color;","else","gl_FragColor = color0;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},146:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.nodes"),sigma.webgl.nodes.fast={POINTS:1,ATTRIBUTES:4,addNode:function(t,e,i,r,o){e[i++]=t[r+"x"],e[i++]=t[r+"y"],e[i++]=t[r+"size"],e[i++]=sigma.utils.floatColor(t.color||o("defaultNodeColor"))},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_position"),s=t.getAttribLocation(e,"a_size"),n=t.getAttribLocation(e,"a_color"),l=t.getUniformLocation(e,"u_resolution"),c=t.getUniformLocation(e,"u_matrix"),g=t.getUniformLocation(e,"u_ratio"),d=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.DYNAMIC_DRAW),t.uniform2f(l,r.width,r.height),t.uniform1f(g,1/Math.pow(r.ratio,r.settings("nodesPowRatio"))),t.uniform1f(d,r.scalingRatio),t.uniformMatrix3fv(c,!1,r.matrix),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.vertexAttribPointer(a,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(s,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(n,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,12),t.drawArrays(t.POINTS,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position;","attribute float a_size;","attribute float a_color;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_scale;","uniform mat3 u_matrix;","varying vec4 color;","void main() {","gl_Position = vec4(","((u_matrix * vec3(a_position, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","gl_PointSize = a_size * u_ratio * u_scale * 2.0;","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","float border = 0.01;","float radius = 0.5;","vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);","vec2 m = gl_PointCoord - vec2(0.5, 0.5);","float dist = radius - sqrt(m.x * m.x + m.y * m.y);","float t = 0.0;","if (dist > border)","t = 1.0;","else if (dist > 0.0)","t = dist / border;","gl_FragColor = mix(color0, color, t);","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},147:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.edges"),sigma.webgl.edges.def={POINTS:6,ATTRIBUTES:7,addEdge:function(t,e,i,r,o,a,s){var n=(t[a+"size"]||1)/2,l=e[a+"x"],c=e[a+"y"],g=i[a+"x"],d=i[a+"y"],u=t.color;if(!u)switch(s("edgeColor")){case"source":u=e.color||s("defaultNodeColor");break;case"target":u=i.color||s("defaultNodeColor");break;default:u=s("defaultEdgeColor")}u=sigma.utils.floatColor(u),r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=0,r[o++]=u,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=1,r[o++]=u,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=0,r[o++]=u,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=0,r[o++]=u,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=1,r[o++]=u,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=0,r[o++]=u},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_color"),s=t.getAttribLocation(e,"a_position1"),n=t.getAttribLocation(e,"a_position2"),l=t.getAttribLocation(e,"a_thickness"),c=t.getAttribLocation(e,"a_minus"),g=t.getUniformLocation(e,"u_resolution"),d=t.getUniformLocation(e,"u_matrix"),u=t.getUniformLocation(e,"u_matrixHalfPi"),h=t.getUniformLocation(e,"u_matrixHalfPiMinus"),m=t.getUniformLocation(e,"u_ratio"),f=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW),t.uniform2f(g,r.width,r.height),t.uniform1f(m,r.ratio/Math.pow(r.ratio,r.settings("edgesPowRatio"))),t.uniform1f(f,r.scalingRatio),t.uniformMatrix3fv(d,!1,r.matrix),t.uniformMatrix2fv(u,!1,sigma.utils.matrices.rotation(Math.PI/2,!0)),t.uniformMatrix2fv(h,!1,sigma.utils.matrices.rotation(-Math.PI/2,!0)),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.enableVertexAttribArray(l),t.enableVertexAttribArray(c),t.vertexAttribPointer(s,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(n,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(l,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,16),t.vertexAttribPointer(c,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,20),t.vertexAttribPointer(a,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,24),t.drawArrays(t.TRIANGLES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position1;","attribute vec2 a_position2;","attribute float a_thickness;","attribute float a_minus;","attribute float a_color;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_scale;","uniform mat3 u_matrix;","uniform mat2 u_matrixHalfPi;","uniform mat2 u_matrixHalfPiMinus;","varying vec4 color;","void main() {","vec2 position = a_thickness * u_ratio *","normalize(a_position2 - a_position1);","mat2 matrix = a_minus * u_matrixHalfPiMinus +","(1.0 - a_minus) * u_matrixHalfPi;","position = matrix * position + a_position1;","gl_Position = vec4(","((u_matrix * vec3(position, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","gl_FragColor = color;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},148:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.edges"),sigma.webgl.edges.fast={POINTS:2,ATTRIBUTES:3,addEdge:function(t,e,i,r,o,a,s){t[a+"size"];var n=e[a+"x"],l=e[a+"y"],c=i[a+"x"],g=i[a+"y"],d=t.color;if(!d)switch(s("edgeColor")){case"source":d=e.color||s("defaultNodeColor");break;case"target":d=i.color||s("defaultNodeColor");break;default:d=s("defaultEdgeColor")}d=sigma.utils.floatColor(d),r[o++]=n,r[o++]=l,r[o++]=d,r[o++]=c,r[o++]=g,r[o++]=d},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_color"),s=t.getAttribLocation(e,"a_position"),n=t.getUniformLocation(e,"u_resolution"),l=t.getUniformLocation(e,"u_matrix");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.DYNAMIC_DRAW),t.uniform2f(n,r.width,r.height),t.uniformMatrix3fv(l,!1,r.matrix),t.enableVertexAttribArray(s),t.enableVertexAttribArray(a),t.vertexAttribPointer(s,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(a,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.lineWidth(3),t.drawArrays(t.LINES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_position;","attribute float a_color;","uniform vec2 u_resolution;","uniform mat3 u_matrix;","varying vec4 color;","void main() {","gl_Position = vec4(","((u_matrix * vec3(a_position, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","gl_FragColor = color;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)},149:function(t,e){(function(){!function(){"use strict";sigma.utils.pkg("sigma.webgl.edges"),sigma.webgl.edges.arrow={POINTS:9,ATTRIBUTES:11,addEdge:function(t,e,i,r,o,a,s){var n=(t[a+"size"]||1)/2,l=e[a+"x"],c=e[a+"y"],g=i[a+"x"],d=i[a+"y"],u=i[a+"size"],h=t.color;if(!h)switch(s("edgeColor")){case"source":h=e.color||s("defaultNodeColor");break;case"target":h=i.color||s("defaultNodeColor");break;default:h=s("defaultEdgeColor")}h=sigma.utils.floatColor(h),r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=u,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=u,r[o++]=0,r[o++]=1,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=l,r[o++]=c,r[o++]=g,r[o++]=d,r[o++]=n,r[o++]=u,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=1,r[o++]=-1,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=1,r[o++]=0,r[o++]=h,r[o++]=g,r[o++]=d,r[o++]=l,r[o++]=c,r[o++]=n,r[o++]=u,r[o++]=1,r[o++]=0,r[o++]=1,r[o++]=1,r[o++]=h},render:function(t,e,i,r){var o,a=t.getAttribLocation(e,"a_pos1"),s=t.getAttribLocation(e,"a_pos2"),n=t.getAttribLocation(e,"a_thickness"),l=t.getAttribLocation(e,"a_tSize"),c=t.getAttribLocation(e,"a_delay"),g=t.getAttribLocation(e,"a_minus"),d=t.getAttribLocation(e,"a_head"),u=t.getAttribLocation(e,"a_headPosition"),h=t.getAttribLocation(e,"a_color"),m=t.getUniformLocation(e,"u_resolution"),f=t.getUniformLocation(e,"u_matrix"),A=t.getUniformLocation(e,"u_matrixHalfPi"),_=t.getUniformLocation(e,"u_matrixHalfPiMinus"),E=t.getUniformLocation(e,"u_ratio"),T=t.getUniformLocation(e,"u_nodeRatio"),b=t.getUniformLocation(e,"u_arrowHead"),y=t.getUniformLocation(e,"u_scale");o=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW),t.uniform2f(m,r.width,r.height),t.uniform1f(E,r.ratio/Math.pow(r.ratio,r.settings("edgesPowRatio"))),t.uniform1f(T,Math.pow(r.ratio,r.settings("nodesPowRatio"))/r.ratio),t.uniform1f(b,5),t.uniform1f(y,r.scalingRatio),t.uniformMatrix3fv(f,!1,r.matrix),t.uniformMatrix2fv(A,!1,sigma.utils.matrices.rotation(Math.PI/2,!0)),t.uniformMatrix2fv(_,!1,sigma.utils.matrices.rotation(-Math.PI/2,!0)),t.enableVertexAttribArray(a),t.enableVertexAttribArray(s),t.enableVertexAttribArray(n),t.enableVertexAttribArray(l),t.enableVertexAttribArray(c),t.enableVertexAttribArray(g),t.enableVertexAttribArray(d),t.enableVertexAttribArray(u),t.enableVertexAttribArray(h),t.vertexAttribPointer(a,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(s,2,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,8),t.vertexAttribPointer(n,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,16),t.vertexAttribPointer(l,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,20),t.vertexAttribPointer(c,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,24),t.vertexAttribPointer(g,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,28),t.vertexAttribPointer(d,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,32),t.vertexAttribPointer(u,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,36),t.vertexAttribPointer(h,1,t.FLOAT,!1,this.ATTRIBUTES*Float32Array.BYTES_PER_ELEMENT,40),t.drawArrays(t.TRIANGLES,r.start||0,r.count||i.length/this.ATTRIBUTES)},initProgram:function(t){var e,i;return e=sigma.utils.loadShader(t,["attribute vec2 a_pos1;","attribute vec2 a_pos2;","attribute float a_thickness;","attribute float a_tSize;","attribute float a_delay;","attribute float a_minus;","attribute float a_head;","attribute float a_headPosition;","attribute float a_color;","uniform vec2 u_resolution;","uniform float u_ratio;","uniform float u_nodeRatio;","uniform float u_arrowHead;","uniform float u_scale;","uniform mat3 u_matrix;","uniform mat2 u_matrixHalfPi;","uniform mat2 u_matrixHalfPiMinus;","varying vec4 color;","void main() {","vec2 pos = normalize(a_pos2 - a_pos1);","mat2 matrix = (1.0 - a_head) *","(","a_minus * u_matrixHalfPiMinus +","(1.0 - a_minus) * u_matrixHalfPi",") + a_head * (","a_headPosition * u_matrixHalfPiMinus * 0.6 +","(a_headPosition * a_headPosition - 1.0) * mat2(1.0)",");","pos = a_pos1 + (","(1.0 - a_head) * a_thickness * u_ratio * matrix * pos +","a_head * u_arrowHead * a_thickness * u_ratio * matrix * pos +","a_delay * pos * (","a_tSize / u_nodeRatio +","u_arrowHead * a_thickness * u_ratio",")",");","gl_Position = vec4(","((u_matrix * vec3(pos, 1)).xy /","u_resolution * 2.0 - 1.0) * vec2(1, -1),","0,","1",");","float c = a_color;","color.b = mod(c, 256.0); c = floor(c / 256.0);","color.g = mod(c, 256.0); c = floor(c / 256.0);","color.r = mod(c, 256.0); c = floor(c / 256.0); color /= 255.0;","color.a = 1.0;","}"].join("\n"),t.VERTEX_SHADER),i=sigma.utils.loadShader(t,["precision mediump float;","varying vec4 color;","void main(void) {","gl_FragColor = color;","}"].join("\n"),t.FRAGMENT_SHADER),sigma.utils.loadProgram(t,[e,i])}}}()}).call(window)}});

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc