vis-network
Version:
A dynamic, browser-based visualization library.
25 lines • 561 kB
JavaScript
/**
* vis-network - network
* http://visjs.org/
*
* A dynamic, browser-based visualization library.
*
* @version 6.1.2
* @date 2019-10-24T07:44:44Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/(function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e=e||self,t(e.vis=e.vis||{}))})(this,function(e){'use strict';var vo=Math.cos,ko=Math.sin,wo=Math.round,xo=Math.pow,So=String.prototype,Oo=Math.ceil,Do=Math.abs,To=Math.PI,Eo=Math.atan2,Co=Math.sqrt,Mo=Math.floor,Io=Math.max,Po=Math.min;function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function d(e,t){var o=Object.keys(e);return Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(e)),t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o}function s(e){for(var t=1,o;t<arguments.length;t++)o=null==arguments[t]?{}:arguments[t],t%2?d(o,!0).forEach(function(t){a(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))});return e}function r(e){return l(e)||u(e)||p()}function l(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}}function u(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function h(e,t){var o=t||0,n=Td;return n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]}function g(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0,o=2<arguments.length?arguments[2]:void 0,n=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):void 0,e={});var i=e.random||(e.rng||Cd)();if(i[6]=64|15&i[6],i[8]=128|63&i[8],t)for(var a=0;16>a;a++)t[n+a]=i[a];return t||h(i)}function m(e){return e instanceof Number||"number"==typeof e}function y(e){if(e)for(;!0===e.hasChildNodes();){var t=e.firstChild;t&&(y(t),e.removeChild(t))}}function f(e){return e instanceof String||"string"==typeof e}function _(e){return"object"===n(e)&&null!==e}function v(e){if(e instanceof Date)return!0;if(f(e)){var t=Yd.exec(e);if(t)return!0;if(!isNaN(Date.parse(e)))return!0}return!1}function w(e){return Dd.isMoment(e)}function x(e,t,o,n){var i=!1;!0===n&&(i=null===t[o]&&e[o]!==void 0),i?delete e[o]:e[o]=t[o]}function S(e,t){var o=!!(2<arguments.length&&arguments[2]!==void 0)&&arguments[2];for(var i in e)if(t[i]!==void 0)if(null===t[i]||"object"!==n(t[i]))x(e,t,i,o);else{var a=e[i],d=t[i];_(a)&&_(d)&&S(a,d,o)}}function O(e,t){if(!Array.isArray(e))throw new Error("Array with property names expected as first argument");for(var o=arguments.length,n=Array(2<o?o-2:0),i=2;i<o;i++)n[i-2]=arguments[i];for(var a=0,d=n,s;a<d.length;a++){s=d[a];for(var r=0,l;r<e.length;r++)l=e[r],s&&Object.prototype.hasOwnProperty.call(s,l)&&(t[l]=s[l])}return t}function D(e,t,o){var n=!!(3<arguments.length&&arguments[3]!==void 0)&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0,a;i<e.length;i++)if(a=e[i],Object.prototype.hasOwnProperty.call(o,a))if(o[a]&&o[a].constructor===Object)void 0===t[a]&&(t[a]={}),t[a].constructor===Object?E(t[a],o[a],!1,n):x(t,o,a,n);else if(Array.isArray(o[a]))throw new TypeError("Arrays are not supported by deepExtend");else x(t,o,a,n);return t}function T(e,t,o){var n=!!(3<arguments.length&&arguments[3]!==void 0)&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)&&-1===e.indexOf(a))if(o[a]&&o[a].constructor===Object)void 0===t[a]&&(t[a]={}),t[a].constructor===Object?E(t[a],o[a]):x(t,o,a,n);else if(Array.isArray(o[a])){t[a]=[];for(var d=0;d<o[a].length;d++)t[a].push(o[a][d])}else x(t,o,a,n);return t}function E(e,t){var o=!!(2<arguments.length&&arguments[2]!==void 0)&&arguments[2],n=!!(3<arguments.length&&arguments[3]!==void 0)&&arguments[3];for(var i in t)(Object.prototype.hasOwnProperty.call(t,i)||!0===o)&&(t[i]&&Object.getPrototypeOf(t[i])===Object.prototype?void 0===e[i]?e[i]=E({},t[i],o):e[i]&&Object.getPrototypeOf(e[i])===Object.prototype?E(e[i],t[i],o):x(e,t,i,n):Array.isArray(t[i])?e[i]=t[i].slice():x(e,t,i,n));return e}function C(e,t){if(e.length!==t.length)return!1;for(var o=0,n=e.length;o<n;o++)if(e[o]!=t[o])return!1;return!0}function M(e,t){var o;if(void 0!==e){if(null===e)return null;if(!t)return e;if("string"!=typeof t&&!(t instanceof String))throw new Error("Type must be a string");switch(t){case"boolean":case"Boolean":return!!e;case"number":case"Number":return f(e)&&!isNaN(Date.parse(e))?Dd(e).valueOf():+e.valueOf();case"string":case"String":return e+"";case"Date":if(m(e))return new Date(e);if(e instanceof Date)return new Date(e.valueOf());if(w(e))return new Date(e.valueOf());if(f(e))return o=Yd.exec(e),o?new Date(+o[1]):Dd(new Date(e)).toDate();throw new Error("Cannot convert object of type "+I(e)+" to type Date");case"Moment":if(m(e))return Dd(e);if(e instanceof Date)return Dd(e.valueOf());if(w(e))return Dd(e);if(f(e))return o=Yd.exec(e),o?Dd(+o[1]):Dd(e);throw new Error("Cannot convert object of type "+I(e)+" to type Date");case"ISODate":if(m(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(w(e))return e.toDate().toISOString();if(f(e))return o=Yd.exec(e),o?new Date(+o[1]).toISOString():Dd(e).format();throw new Error("Cannot convert object of type "+I(e)+" to type ISODate");case"ASPDate":if(m(e))return"/Date("+e+")/";if(e instanceof Date||w(e))return"/Date("+e.valueOf()+")/";if(f(e)){o=Yd.exec(e);var n;return n=o?new Date(+o[1]).valueOf():new Date(e).valueOf(),"/Date("+n+")/"}throw new Error("Cannot convert object of type "+I(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(t));}}}function I(e){var t=n(e);return"object"===t?null===e?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":Array.isArray(e)?"Array":e instanceof Date?"Date":"Object":"number"===t?"Number":"boolean"===t?"Boolean":"string"===t?"String":void 0===t?"undefined":t}function P(e,t){return[].concat(r(e),[t])}function F(e){return e.slice()}function N(e){return e.getBoundingClientRect().left}function Y(e){return e.getBoundingClientRect().right}function R(e){return e.getBoundingClientRect().top}function z(e,t){var o=e.className.split(" "),n=t.split(" ");o=o.concat(n.filter(function(e){return 0>o.indexOf(e)})),e.className=o.join(" ")}function B(e,t){var o=e.className.split(" "),n=t.split(" ");o=o.filter(function(e){return 0>n.indexOf(e)}),e.className=o.join(" ")}function L(e,t){if(Array.isArray(e))for(var o=e.length,n=0;n<o;n++)t(e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t(e[a],a,e)}function A(e,t,o){return e[t]!==o&&(e[t]=o,!0)}function H(e){var t=!1;return function(){t||(t=!0,requestAnimationFrame(function(){t=!1,e()}))}}function W(e,t,o,n){e.addEventListener?(n===void 0&&(n=!1),"mousewheel"===t&&0<=navigator.userAgent.indexOf("Firefox")&&(t="DOMMouseScroll"),e.addEventListener(t,o,n)):e.attachEvent("on"+t,o)}function U(e,t,o,n){e.removeEventListener?(n===void 0&&(n=!1),"mousewheel"===t&&0<=navigator.userAgent.indexOf("Firefox")&&(t="DOMMouseScroll"),e.removeEventListener(t,o,n)):e.detachEvent("on"+t,o)}function V(e){if(e||(e=window.event),!e);else e.preventDefault?e.preventDefault():e.returnValue=!1}function G(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:window.event,t=null;if(!e);else e.target?t=e.target:e.srcElement&&(t=e.srcElement);return t instanceof Element?null!=t.nodeType&&3==t.nodeType&&(t=t.parentNode,!(t instanceof Element))?null:t:null}function q(e,t){for(var o=e;o;){if(o===t)return!0;if(o.parentNode)o=o.parentNode;else return!1}return!1}function X(e){var t;switch(e.length){case 3:case 4:return t=zd.exec(e),t?{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16)}:null;case 6:case 7:return t=Rd.exec(e),t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null;default:return null;}}function Z(e,t){if(-1!==e.indexOf("rgba"))return e;if(-1!==e.indexOf("rgb")){var o=e.substr(e.indexOf("(")+1).replace(")","").split(",");return"rgba("+o[0]+","+o[1]+","+o[2]+","+t+")"}var n=X(e);return null==n?e:"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function $(e,t,o){return"#"+(16777216+(e<<16)+(t<<8)+o).toString(16).slice(1)}function K(e,t){if(f(e)){var o=e;if(ae(o)){var n=o.substr(4).substr(0,o.length-5).split(",").map(function(e){return parseInt(e)});o=$(n[0],n[1],n[2])}if(!0===ie(o)){var i=ne(o),a={h:i.h,s:.8*i.s,v:Po(1,1.02*i.v)},d={h:i.h,s:Po(1,1.25*i.s),v:.8*i.v},s=oe(d.h,d.s,d.v),r=oe(a.h,a.s,a.v);return{background:o,border:s,highlight:{background:r,border:s},hover:{background:r,border:s}}}return{background:o,border:o,highlight:{background:o,border:o},hover:{background:o,border:o}}}if(t){var l={background:e.background||t.background,border:e.border||t.border,highlight:f(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||t.highlight.background,border:e.highlight&&e.highlight.border||t.highlight.border},hover:f(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||t.hover.border,background:e.hover&&e.hover.background||t.hover.background}};return l}var c={background:e.background||void 0,border:e.border||void 0,highlight:f(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:f(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}};return c}function Q(e,t,o){e/=255,t/=255,o/=255;var n=Po(e,Po(t,o)),i=Io(e,Io(t,o));if(n===i)return{h:0,s:0,v:n};var a=e===n?t-o:o===n?e-t:o-e,d=e===n?3:o===n?1:5;return{h:60*(d-a/(i-n))/360,s:(i-n)/i,v:i}}function J(e,t){var o=Wd.split(e.style.cssText),n=Wd.split(t),i=s({},o,{},n);e.style.cssText=Wd.join(i)}function ee(e,t){var o=Wd.split(e.style.cssText),n=Wd.split(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&delete o[i];e.style.cssText=Wd.join(o)}function te(e,o,n){var a=Mo(6*e),i=6*e-a,d=n*(1-o),s=n*(1-i*o),l=n*(1-(1-i)*o),t,c,u;switch(a%6){case 0:t=n,c=l,u=d;break;case 1:t=s,c=n,u=d;break;case 2:t=d,c=n,u=l;break;case 3:t=d,c=s,u=n;break;case 4:t=l,c=d,u=n;break;case 5:t=n,c=d,u=s;}return{r:Mo(255*t),g:Mo(255*c),b:Mo(255*u)}}function oe(e,t,o){var n=te(e,t,o);return $(n.r,n.g,n.b)}function ne(e){var t=X(e);if(!t)throw new TypeError("'".concat(e,"' is not a valid color."));return Q(t.r,t.g,t.b)}function ie(e){var t=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return t}function ae(e){return Bd.test(e)}function de(e){return Ld.test(e)}function se(e,t){if(null!==t&&"object"===n(t)){for(var o=Object.create(t),a=0;a<e.length;a++)Object.prototype.hasOwnProperty.call(t,e[a])&&"object"==n(t[e[a]])&&(o[e[a]]=re(t[e[a]]));return o}return null}function re(e){if(null===e||"object"!==n(e))return null;if(e instanceof Element)return e;var t=Object.create(e);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&"object"==n(e[o])&&(t[o]=re(e[o]));return t}function le(e,t){for(var o=0;o<e.length;o++){var n=e[o],a=void 0;for(a=o;0<a&&0>t(n,e[a-1]);a--)e[a]=e[a-1];e[a]=n}return e}function ce(e,t,o){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:{},a=function(e){return null!==e&&e!==void 0},d=function(e){return null!==e&&"object"===n(e)};if(!d(e))throw new Error("Parameter mergeTarget must be an object");if(!d(t))throw new Error("Parameter options must be an object");if(!a(o))throw new Error("Parameter option must have a value");if(!d(i))throw new Error("Parameter globalOptions must be an object");var s=function(e,t,o){d(e[o])||(e[o]={});var n=t[o],i=e[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r=t[o],l=d(i)&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(i),c=l?i[o]:void 0,u=c?c.enabled:void 0;if(void 0!==r){if("boolean"==typeof r)return d(e[o])||(e[o]={}),void(e[o].enabled=r);if(null===r&&!d(e[o]))if(a(c))e[o]=Object.create(c);else return;if(d(r)){var p=!0;void 0===r.enabled?void 0!==u&&(p=c.enabled):p=r.enabled,s(e,t,o),e[o].enabled=p}}}function ue(e,t,o,n){for(var i=0,a=0,d=e.length-1;a<=d&&i<1e4;){var s=Mo((a+d)/2),r=e[s],l=n===void 0?r[o]:r[o][n],c=t(l);if(0==c)return s;-1==c?a=s+1:d=s-1;i++}return-1}function pe(e,t,o,n,i){var a=0,d=0,s=e.length-1,r,l,c,u;for(i=null==i?function(e,t){return e==t?0:e<t?-1:1}:i;d<=s&&10000>a;){if(u=Mo(.5*(s+d)),r=e[Io(0,u-1)][o],l=e[u][o],c=e[Po(e.length-1,u+1)][o],0==i(l,t))return u;if(0>i(r,t)&&0<i(l,t))return"before"==n?Io(0,u-1):u;if(0>i(l,t)&&0<i(c,t))return"before"==n?u:Po(e.length-1,u+1);0>i(l,t)?d=u+1:s=u-1,a++}return-1}function he(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var o=e.offsetWidth;t.style.overflow="scroll";var n=e.offsetWidth;return o==n&&(n=t.clientWidth),document.body.removeChild(t),o-n}function ge(e,t){var o;Array.isArray(t)||(t=[t]);var n=!0,a=!1,d=void 0;try{for(var s=e[Symbol.iterator](),r,l;!(n=(r=s.next()).done);n=!0)if(l=r.value,l){o=l[t[0]];for(var c=1;c<t.length;c++)o&&(o=o[t[c]]);if("undefined"!=typeof o)break}}catch(e){a=!0,d=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw d}}return o}function me(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ye(e,t){return t={exports:{}},e(t,t.exports),t.exports}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var o=0,n;o<t.length;o++)n=t[o],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function _e(e,t,o){return t&&be(e.prototype,t),o&&be(e,o),e}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e,t){return t&&("object"===Xd(t)||"function"==typeof t)?t:Kd(e)}function we(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&es(e,t)}function xe(e,t){var o=t||0,n=os;return n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+"-"+n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]+n[e[o++]]}function Se(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0,o=2<arguments.length?arguments[2]:void 0,n=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):void 0,e={});var i=e.random||(e.rng||is)();if(i[6]=64|15&i[6],i[8]=128|63&i[8],t)for(var a=0;16>a;a++)t[n+a]=i[a];return t||xe(i)}function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function De(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Te(e,t){return t={exports:{}},e(t,t.exports),t.exports}function Ee(e){return e instanceof Number||"number"==typeof e}function Ce(e){return e instanceof String||"string"==typeof e}function Me(e){return us.isMoment(e)}function Ie(e,t){var o;if(void 0!==e){if(null===e)return null;if(!t)return e;if("string"!=typeof t&&!(t instanceof String))throw new Error("Type must be a string");switch(t){case"boolean":case"Boolean":return!!e;case"number":case"Number":return Ce(e)&&!isNaN(Date.parse(e))?us(e).valueOf():+e.valueOf();case"string":case"String":return e+"";case"Date":if(Ee(e))return new Date(e);if(e instanceof Date)return new Date(e.valueOf());if(Me(e))return new Date(e.valueOf());if(Ce(e))return o=vs.exec(e),o?new Date(+o[1]):us(new Date(e)).toDate();throw new Error("Cannot convert object of type "+Pe(e)+" to type Date");case"Moment":if(Ee(e))return us(e);if(e instanceof Date)return us(e.valueOf());if(Me(e))return us(e);if(Ce(e))return o=vs.exec(e),o?us(+o[1]):us(e);throw new Error("Cannot convert object of type "+Pe(e)+" to type Date");case"ISODate":if(Ee(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(Me(e))return e.toDate().toISOString();if(Ce(e))return o=vs.exec(e),o?new Date(+o[1]).toISOString():us(e).format();throw new Error("Cannot convert object of type "+Pe(e)+" to type ISODate");case"ASPDate":if(Ee(e))return"/Date("+e+")/";if(e instanceof Date)return"/Date("+e.valueOf()+")/";if(Ce(e)){o=vs.exec(e);var n;return n=o?new Date(+o[1]).valueOf():new Date(e).valueOf(),"/Date("+n+")/"}throw new Error("Cannot convert object of type "+Pe(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(t));}}}function Pe(e){var t=Oe(e);return"object"===t?null===e?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":Array.isArray(e)?"Array":e instanceof Date?"Date":"Object":"number"===t?"Number":"boolean"===t?"Boolean":"string"===t?"String":void 0===t?"undefined":t}function Fe(e){return"string"==typeof e||"number"==typeof e}function Ne(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}}function Ye(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function Re(e,t){var o=Object.keys(e);return Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(e)),t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o}function ze(e){for(var t=1,o;t<arguments.length;t++)o=null==arguments[t]?{}:arguments[t],t%2?Re(o,!0).forEach(function(t){qd(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Re(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))});return e}function Be(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Le(e,t){return t={exports:{}},e(t,t.exports),t.exports}function Ae(e){return Ns=e,Ke()}function He(){Ys=0,Rs=Ns.charAt(0)}function je(){Ys++,Rs=Ns.charAt(Ys)}function We(){return Ns.charAt(Ys+1)}function Ue(e){return Ls.test(e)}function Ve(e,t){if(e||(e={}),t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function Ge(e,t,n){for(var i=t.split("."),a=e;i.length;){var d=i.shift();i.length?(!a[d]&&(a[d]={}),a=a[d]):a[d]=n}}function qe(e,t){for(var o=null,n=[e],a=e,d,s;a.parent;)n.push(a.parent),a=a.parent;if(a.nodes)for(d=0,s=a.nodes.length;d<s;d++)if(t.id===a.nodes[d].id){o=a.nodes[d];break}for(o||(o={id:t.id},e.node&&(o.attr=Ve(o.attr,e.node))),d=n.length-1;0<=d;d--){var r=n[d];r.nodes||(r.nodes=[]),-1===r.nodes.indexOf(o)&&r.nodes.push(o)}t.attr&&(o.attr=Ve(o.attr,t.attr))}function Xe(e,t){if(e.edges||(e.edges=[]),e.edges.push(t),e.edge){var o=Ve({},e.edge);t.attr=Ve(o,t.attr)}}function Ze(e,t,o,n,i){var a={from:t,to:o,type:n};return e.edge&&(a.attr=Ve({},e.edge)),a.attr=Ve(a.attr||{},i),null!=i&&i.hasOwnProperty("arrows")&&null!=i.arrows&&(a.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),a}function $e(){for(Bs=Ps.NULL,zs="";" "===Rs||"\t"===Rs||"\n"===Rs||"\r"===Rs;)je();do{var e=!1;if("#"===Rs){for(var t=Ys-1;" "===Ns.charAt(t)||"\t"===Ns.charAt(t);)t--;if("\n"===Ns.charAt(t)||""===Ns.charAt(t)){for(;""!=Rs&&"\n"!=Rs;)je();e=!0}}if("/"===Rs&&"/"===We()){for(;""!=Rs&&"\n"!=Rs;)je();e=!0}if("/"===Rs&&"*"===We()){for(;""!=Rs;)if("*"===Rs&&"/"===We()){je(),je();break}else je();e=!0}for(;" "===Rs||"\t"===Rs||"\n"===Rs||"\r"===Rs;)je()}while(e);if(""===Rs)return void(Bs=Ps.DELIMITER);var o=Rs+We();if(Fs[o])return Bs=Ps.DELIMITER,zs=o,je(),void je();if(Fs[Rs])return Bs=Ps.DELIMITER,zs=Rs,void je();if(Ue(Rs)||"-"===Rs){for(zs+=Rs,je();Ue(Rs);)zs+=Rs,je();return"false"===zs?zs=!1:"true"===zs?zs=!0:!isNaN(+zs)&&(zs=+zs),void(Bs=Ps.IDENTIFIER)}if("\""===Rs){for(je();""!=Rs&&("\""!=Rs||"\""===Rs&&"\""===We());)"\""===Rs?(zs+=Rs,je()):"\\"===Rs&&"n"===We()?(zs+="\n",je()):zs+=Rs,je();if("\""!=Rs)throw dt("End of string \" expected");return je(),void(Bs=Ps.IDENTIFIER)}for(Bs=Ps.UNKNOWN;""!=Rs;)zs+=Rs,je();throw new SyntaxError("Syntax error in part \""+st(zs,30)+"\"")}function Ke(){var e={};if(He(),$e(),"strict"===zs&&(e.strict=!0,$e()),("graph"===zs||"digraph"===zs)&&(e.type=zs,$e()),Bs===Ps.IDENTIFIER&&(e.id=zs,$e()),"{"!=zs)throw dt("Angle bracket { expected");if($e(),Qe(e),"}"!=zs)throw dt("Angle bracket } expected");if($e(),""!==zs)throw dt("End of file expected");return $e(),delete e.node,delete e.edge,delete e.graph,e}function Qe(e){for(;""!==zs&&"}"!=zs;)Je(e),";"===zs&&$e()}function Je(e){var t=et(e);if(t)return void nt(e,t);var o=tt(e);if(!o){if(Bs!=Ps.IDENTIFIER)throw dt("Identifier expected");var n=zs;if($e(),"="===zs){if($e(),Bs!=Ps.IDENTIFIER)throw dt("Identifier expected");e[n]=zs,$e()}else ot(e,n)}}function et(e){var t=null;if("subgraph"===zs&&(t={},t.type="subgraph",$e(),Bs===Ps.IDENTIFIER&&(t.id=zs,$e())),"{"===zs){if($e(),t||(t={}),t.parent=e,t.node=e.node,t.edge=e.edge,t.graph=e.graph,Qe(t),"}"!=zs)throw dt("Angle bracket } expected");$e(),delete t.node,delete t.edge,delete t.graph,delete t.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(t)}return t}function tt(e){return"node"===zs?($e(),e.node=it(),"node"):"edge"===zs?($e(),e.edge=it(),"edge"):"graph"===zs?($e(),e.graph=it(),"graph"):null}function ot(e,t){var o={id:t},n=it();n&&(o.attr=n),qe(e,o),nt(e,t)}function nt(e,t){for(;"->"===zs||"--"===zs;){var o=zs,n;$e();var i=et(e);if(i)n=i;else{if(Bs!=Ps.IDENTIFIER)throw dt("Identifier or subgraph expected");n=zs,qe(e,{id:n}),$e()}var a=it(),d=Ze(e,t,n,o,a);Xe(e,d),t=n}}function it(){for(var e=null,t={dashed:!0,solid:!1,dotted:[1,5]},o={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},n=[],a=[],d;"["===zs;){for($e(),e={};""!==zs&&"]"!=zs;){if(Bs!=Ps.IDENTIFIER)throw dt("Attribute name expected");var s=zs;if($e(),"="!=zs)throw dt("Equal sign = expected");if($e(),Bs!=Ps.IDENTIFIER)throw dt("Attribute value expected");var r=zs;"style"===s&&(r=t[r]);var l;"arrowhead"===s&&(l=o[r],s="arrows",r={to:{enabled:!0,type:l}}),"arrowtail"===s&&(l=o[r],s="arrows",r={from:{enabled:!0,type:l}}),n.push({attr:e,name:s,value:r}),a.push(s),$e(),","==zs&&$e()}if("]"!=zs)throw dt("Bracket ] expected");$e()}if(a.includes("dir")){var c={arrows:{}};for(d=0;d<n.length;d++)if(!("arrows"===n[d].name))"dir"===n[d].name&&(c.dir=d);else if(null!=n[d].value.to)c.arrows.to=d;else if(null!=n[d].value.from)c.arrows.from=d;else throw dt("Invalid value of arrows");var u=n[c.dir].value;if(!a.includes("arrows"))if("both"===u)n.push({attr:n[c.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),c.arrows.to=n.length-1,n.push({attr:n[c.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),c.arrows.from=n.length-1;else if("forward"===u)n.push({attr:n[c.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),c.arrows.to=n.length-1;else if("back"===u)n.push({attr:n[c.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),c.arrows.from=n.length-1;else if("none"===u)n.push({attr:n[c.dir].attr,name:"arrows",value:""}),c.arrows.to=n.length-1;else throw dt("Invalid dir type \""+u+"\"");var p,h;if("both"===u)c.arrows.to&&c.arrows.from?(h=n[c.arrows.to].value.to.type,p=n[c.arrows.from].value.from.type,n[c.arrows.to]={attr:n[c.arrows.to].attr,name:n[c.arrows.to].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}},n.splice(c.arrows.from,1)):c.arrows.to?(h=n[c.arrows.to].value.to.type,p="arrow",n[c.arrows.to]={attr:n[c.arrows.to].attr,name:n[c.arrows.to].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}}):c.arrows.from&&(h="arrow",p=n[c.arrows.from].value.from.type,n[c.arrows.from]={attr:n[c.arrows.from].attr,name:n[c.arrows.from].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}});else if("back"===u)c.arrows.to&&c.arrows.from?(h="",p=n[c.arrows.from].value.from.type,n[c.arrows.from]={attr:n[c.arrows.from].attr,name:n[c.arrows.from].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}}):c.arrows.to?(h="",p="arrow",c.arrows.from=c.arrows.to,n[c.arrows.from]={attr:n[c.arrows.from].attr,name:n[c.arrows.from].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}}):c.arrows.from&&(h="",p=n[c.arrows.from].value.from.type,n[c.arrows.to]={attr:n[c.arrows.from].attr,name:n[c.arrows.from].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}}),n[c.arrows.from]={attr:n[c.arrows.from].attr,name:n[c.arrows.from].name,value:{from:{enabled:!0,type:n[c.arrows.from].value.from.type}}};else if("none"===u){var g;g=c.arrows.to?c.arrows.to:c.arrows.from,n[g]={attr:n[g].attr,name:n[g].name,value:""}}else if("forward"===u)c.arrows.to&&c.arrows.from?(h=n[c.arrows.to].value.to.type,p="",n[c.arrows.to]={attr:n[c.arrows.to].attr,name:n[c.arrows.to].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}}):c.arrows.to?(h=n[c.arrows.to].value.to.type,p="",n[c.arrows.to]={attr:n[c.arrows.to].attr,name:n[c.arrows.to].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}}):c.arrows.from&&(h="arrow",p="",c.arrows.to=c.arrows.from,n[c.arrows.to]={attr:n[c.arrows.to].attr,name:n[c.arrows.to].name,value:{to:{enabled:!0,type:h},from:{enabled:!0,type:p}}}),n[c.arrows.to]={attr:n[c.arrows.to].attr,name:n[c.arrows.to].name,value:{to:{enabled:!0,type:n[c.arrows.to].value.to.type}}};else throw dt("Invalid dir type \""+u+"\"");n.splice(c.dir,1)}var m;if(a.includes("penwidth")){var y=[];for(m=n.length,d=0;d<m;d++)"width"!==n[d].name&&("penwidth"===n[d].name&&(n[d].name="width"),y.push(n[d]));n=y}for(m=n.length,d=0;d<m;d++)Ge(n[d].attr,n[d].name,n[d].value);return e}function dt(e){return new SyntaxError(e+", got \""+st(zs,30)+"\" (char "+Ys+")")}function st(e,t){return e.length<=t?e:e.substr(0,27)+"..."}function rt(e,t,o){Array.isArray(e)?e.forEach(function(e){Array.isArray(t)?t.forEach(function(t){o(e,t)}):o(e,t)}):Array.isArray(t)?t.forEach(function(t){o(e,t)}):o(e,t)}function lt(e,t,o){for(var n=t.split("."),a=n.pop(),d=e,s=0,r;s<n.length;s++)r=n[s],r in d||(d[r]={}),d=d[r];return d[a]=o,e}function ct(e,t){var o={};for(var n in e)if(e.hasOwnProperty(n)){var i=t[n];Array.isArray(i)?i.forEach(function(t){lt(o,t,e[n])}):"string"==typeof i?lt(o,i,e[n]):lt(o,n,e[n])}return o}function ut(e,t){var o={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=t&&(null!=t.fixed&&(o.nodes.fixed=t.fixed),null!=t.parseColor&&(o.nodes.parseColor=t.parseColor),null!=t.inheritColor&&(o.edges.inheritColor=t.inheritColor));var n=e.edges,i=n.map(function(e){var t={from:e.source,id:e.id,to:e.target};return null!=e.attributes&&(t.attributes=e.attributes),null!=e.label&&(t.label=e.label),null!=e.attributes&&null!=e.attributes.title&&(t.title=e.attributes.title),"Directed"===e.type&&(t.arrows="to"),e.color&&!1===o.edges.inheritColor&&(t.color=e.color),t}),a=e.nodes.map(function(e){var t={id:e.id,fixed:o.nodes.fixed&&null!=e.x&&null!=e.y};return null!=e.attributes&&(t.attributes=e.attributes),null!=e.label&&(t.label=e.label),null!=e.size&&(t.size=e.size),null!=e.attributes&&null!=e.attributes.title&&(t.title=e.attributes.title),null!=e.title&&(t.title=e.title),null!=e.x&&(t.x=e.x),null!=e.y&&(t.y=e.y),null!=e.color&&(!0===o.nodes.parseColor?t.color=e.color:t.color={background:e.color,border:e.color,highlight:{background:e.color,border:e.color},hover:{background:e.color,border:e.color}}),t});return{nodes:a,edges:i}}function pt(){return pt=Object.assign||function(e){for(var t=1,o;t<arguments.length;t++)for(var n in o=arguments[t],o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);return e},pt.apply(this,arguments)}function ht(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mt(e,t){for(var o=t[0].toUpperCase()+t.slice(1),n=0,a,d;n<$s.length;){if(a=$s[n],d=a?a+o:t,d in e)return d;n++}}function yt(){if(!nr)return!1;var e={},t=tr.CSS&&tr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(o){return e[o]=!t||tr.CSS.supports("touch-action",o)}),e}function ft(e,t,o){if(e)if(e.forEach)e.forEach(t,o);else if(void 0!==e.length)for(n=0;n<e.length;)t.call(o,e[n],n,e),n++;else for(var n in e)e.hasOwnProperty(n)&&t.call(o,e[n],n,e)}function bt(e,t){return"function"===typeof e?e.apply(t?t[0]||void 0:void 0,t):e}function _t(e,t){return-1<e.indexOf(t)}function vt(e){if(_t(e,"none"))return"none";var t=_t(e,"pan-x"),o=_t(e,"pan-y");return t&&o?"none":t||o?t?"pan-x":"pan-y":_t(e,"manipulation")?"manipulation":"auto"}function kt(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function wt(e){var t=e.length;if(1===t)return{x:Qs(e[0].clientX),y:Qs(e[0].clientY)};for(var o=0,n=0,a=0;a<t;)o+=e[a].clientX,n+=e[a].clientY,a++;return{x:Qs(o/t),y:Qs(n/t)}}function xt(e){for(var t=[],o=0;o<e.pointers.length;)t[o]={clientX:Qs(e.pointers[o].clientX),clientY:Qs(e.pointers[o].clientY)},o++;return{timeStamp:er(),pointers:t,center:wt(t),deltaX:e.deltaX,deltaY:e.deltaY}}function St(e,t,o){o||(o=Tr);var n=t[o[0]]-e[o[0]],i=t[o[1]]-e[o[1]];return Co(n*n+i*i)}function Ot(e,t,o){o||(o=Tr);var n=t[o[0]]-e[o[0]],i=t[o[1]]-e[o[1]];return 180*Eo(i,n)/To}function Dt(e,t){return e===t?1:Js(e)>=Js(t)?0>e?2:4:0>t?8:16}function Tt(e,t){var o=t.center,n=e.offsetDelta||{},i=e.prevDelta||{},a=e.prevInput||{};(t.eventType===1||a.eventType===4)&&(i=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},n=e.offsetDelta={x:o.x,y:o.y}),t.deltaX=i.x+(o.x-n.x),t.deltaY=i.y+(o.y-n.y)}function Et(e,t,o){return{x:t/e||0,y:o/e||0}}function Ct(e,t){return St(t[0],t[1],Er)/St(e[0],e[1],Er)}function Mt(e,t){return Ot(t[1],t[0],Er)+Ot(e[1],e[0],Er)}function It(e,t){var o=e.lastInterval||t,n=t.timeStamp-o.timeStamp,i,a,d,s;if(t.eventType!==8&&(n>25||o.velocity===void 0)){var r=t.deltaX-o.deltaX,l=t.deltaY-o.deltaY,c=Et(n,r,l);a=c.x,d=c.y,i=Js(c.x)>Js(c.y)?c.x:c.y,s=Dt(r,l),e.lastInterval=t}else i=o.velocity,a=o.velocityX,d=o.velocityY,s=o.direction;t.velocity=i,t.velocityX=a,t.velocityY=d,t.direction=s}function Pt(e,t){var o=e.session,n=t.pointers,i=n.length;o.firstInput||(o.firstInput=xt(t)),1<i&&!o.firstMultiple?o.firstMultiple=xt(t):1===i&&(o.firstMultiple=!1);var a=o.firstInput,d=o.firstMultiple,s=d?d.center:a.center,r=t.center=wt(n);t.timeStamp=er(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=Ot(s,r),t.distance=St(s,r),Tt(o,t),t.offsetDirection=Dt(t.deltaX,t.deltaY);var l=Et(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=Js(l.x)>Js(l.y)?l.x:l.y,t.scale=d?Ct(d.pointers,n):1,t.rotation=d?Mt(d.pointers,n):0,t.maxPointers=o.prevInput?t.pointers.length>o.prevInput.maxPointers?t.pointers.length:o.prevInput.maxPointers:t.pointers.length,It(o,t);var c=e.element;kt(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function Ft(e,t,o){var n=o.pointers.length,i=o.changedPointers.length,a=t&1&&0==n-i;o.isFirst=!!a,o.isFinal=!!(t&12&&0==n-i),a&&(e.session={}),o.eventType=t,Pt(e,o),e.emit("hammer.input",o),e.recognize(o),e.session.prevInput=o}function Nt(e){return e.trim().split(/\s+/g)}function Yt(e,t,o){ft(Nt(t),function(t){e.addEventListener(t,o,!1)})}function Rt(e,t,o){ft(Nt(t),function(t){e.removeEventListener(t,o,!1)})}function zt(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}function Bt(e,t,o){if(e.indexOf&&!o)return e.indexOf(t);for(var n=0;n<e.length;){if(o&&e[n][o]==t||!o&&e[n]===t)return n;n++}return-1}function Lt(e){return Array.prototype.slice.call(e,0)}function At(e,t,o){for(var n=[],a=[],d=0,s;d<e.length;)s=t?e[d][t]:e[d],0>Bt(a,s)&&n.push(e[d]),a[d]=s,d++;return o&&(t?n=n.sort(function(e,o){return e[t]>o[t]}):n=n.sort()),n}function Ht(e,t){var o=Lt(e.touches),n=this.targetIds;if(3&t&&1===o.length)return n[o[0].identifier]=!0,[o,o];var a=Lt(e.changedTouches),d=[],s=this.target,r,l;if(l=o.filter(function(e){return kt(e.target,s)}),1===t)for(r=0;r<l.length;)n[l[r].identifier]=!0,r++;for(r=0;r<a.length;)n[a[r].identifier]&&d.push(a[r]),12&t&&delete n[a[r].identifier],r++;return d.length?[At(l.concat(d),"identifier",!0),d]:void 0}function jt(e){var t=e.changedPointers,o=t[0];if(o.identifier===this.primaryTouch){var n={x:o.clientX,y:o.clientY},a=this.lastTouches;this.lastTouches.push(n);var d=function(){var e=a.indexOf(n);-1<e&&a.splice(e,1)};setTimeout(d,2500)}}function Wt(e,t){e&1?(this.primaryTouch=t.changedPointers[0].identifier,jt.call(this,t)):e&12&&jt.call(this,t)}function Ut(e){for(var o=e.srcEvent.clientX,n=e.srcEvent.clientY,a=0;a<this.lastTouches.length;a++){var d=this.lastTouches[a],t=Do(o-d.x),s=Do(n-d.y);if(t<=25&&s<=25)return!0}return!1}function Vt(e){var t=e.options.inputClass,o;return o=t?t:ur?Yr:pr?zr:cr?Ar:Lr,new o(e,Ft)}function Gt(e,t,o){return!!Array.isArray(e)&&(ft(e,o[t],o),!0)}function qt(){return Xr++}function Xt(e,t){var o=t.manager;return o?o.get(e):e}function Zt(e){if(e&16)return"cancel";return 8&e?"end":4&e?"move":2&e?"start":""}function $t(e,t){var o=e.element;if(o.style){var n;ft(e.options.cssProps,function(i,a){n=mt(o.style,a),t?(e.oldCssProps[n]=o.style[n],o.style[n]=i):o.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={})}}function Kt(e,t){var o=document.createEvent("Event");o.initEvent(e,!0,!0),o.gesture=t,t.target.dispatchEvent(o)}function Qt(e,t){var o=Lt(e.touches),n=Lt(e.changedTouches);return 12&t&&(o=At(o.concat(n),"identifier",!0)),[o,n]}function Jt(e){if(e===16)return"down";return 8===e?"up":2===e?"left":4===e?"right":""}function eo(t,o,n){return function(){var i=new Error("get-stack-trace"),e=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,"DEPRECATED METHOD: "+o+"\n"+n+" AT \n",e),t.apply(this,arguments)}}function to(e,t,o){var n=t.prototype,i;i=e.prototype=Object.create(n),i.constructor=e,i._super=n,o&&Zs(i,o)}function oo(e,t){return function(){return e.apply(t,arguments)}}function no(e){var t=this;this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=ul(this.dom.overlay),this.hammer.on("tap",this._onTapOverlay.bind(this));["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach(function(e){t.hammer.on(e,function(e){e.srcEvent.stopPropagation()})}),document&&document.body&&(this.onClick=function(o){io(o.target,e)||t.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=Gs(),this.escListener=this.deactivate.bind(this)}function io(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ao(e,t){for(var o=0,n;o<t.length;o++)n=t[o],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function so(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ro(e,t){var o=[],n=!0,i=!1,a=void 0;try{for(var d=e[Symbol.iterator](),s;!(n=(s=d.next()).done)&&(o.push(s.value),!(t&&o.length===t));n=!0);}catch(e){i=!0,a=e}finally{try{n||null==d["return"]||d["return"]()}finally{if(i)throw a}}return o}function lo(e,t){return vl(e)||kl(e,t)||wl()}function co(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function uo(e){for(var t=1,o;t<arguments.length;t++)o=null==arguments[t]?{}:arguments[t],t%2?co(o,!0).forEach(function(t){_l(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):co(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))});return e}function po(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ho(e){for(var t=1,o;t<arguments.length;t++)o=null==arguments[t]?{}:arguments[t],t%2?po(o,!0).forEach(function(t){_l(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):po(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))});return e}function go(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function mo(e){for(var t=1,o;t<arguments.length;t++)o=null==arguments[t]?{}:arguments[t],t%2?go(o,!0).forEach(function(t){_l(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):go(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))});return e}function yo(){var e;window!==void 0&&(e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===e?function(e){e()}:e}function fo(e,t){var o=new Set;return e.forEach(function(e){e.edges.forEach(function(e){e.connected&&o.add(e)})}),o.forEach(function(e){var o=e.from.id,n=e.to.id;null==t[o]&&(t[o]=0),(null==t[n]||t[o]>=t[n])&&(t[n]=t[o]+1)}),t}function bo(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:Object.create(null),o=e.length,n=!0,i=!1,a=void 0;try{for(var d=function(){var n=r.value;if(!n.edges.every(function(e){return e.to===n}))return"continue";t[n.id]=0;for(var i=[n],a=0,d=void 0;d=i.pop();){var s=d.edges,l=t[d.id]-1,c=!0,u=!1,p=void 0;try{for(var h=s[Symbol.iterator](),g,m;!(c=(g=h.next()).done);c=!0)if(m=g.value,m.connected&&m.to===d&&m.to!==m.from){var y=m.fromId,f=t[y];(null==f||f>l)&&(t[y]=l,i.push(m.from))}}catch(e){u=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(u)throw p}}if(a>o)return{v:fo(e,t)};++a}},s=e[Symbol.iterator](),r,l;!(n=(r=s.next()).done);n=!0)switch(l=d(),l){case"continue":continue;default:if("object"===Sl(l))return l.v;}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return t}function _o(e,t,o){var n=this;if(!(this instanceof _o))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:hl,clickToUse:!1},Vd.extend(this.options,this.defaultOptions),this.body={container:e,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this),once:this.once.bind(this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}},this.bindEventListeners(),this.images=new fl(function(){return n.body.emitter.emit("_requestRedraw")}),this.groups=new bl,this.canvas=new Zc(this.body),this.selectionHandler=new eu(this.body,this.canvas),this.interactionHandler=new Jc(this.body,this.canvas,this.selectionHandler),this.view=new $c(this.body,this.canvas),this.renderer=new jc(this.body,this.canvas),this.physics=new Bc(this.body),this.layoutEngine=new lu(this.body),this.clustering=new Hc(this.body),this.manipulation=new cu(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new ac(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new Cc(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new Ou(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(o),this.setData(t)}var Fo="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis,No=o(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),Yo=o(function(e){var t=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=t)}),Ro=Yo.version,zo=o(function(e){var t=No["__core-js_shared__"]||(No["__core-js_shared__"]={});(e.exports=function(e,o){return t[e]||(t[e]=o===void 0?{}:o)})("versions",[]).push({version:Yo.version,mode:"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Bo=0,b=Math.random(),Lo=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++Bo+b).toString(36))},Ao=o(function(e){var t=zo("wks"),o=No.Symbol,n="function"==typeof o,i=e.exports=function(e){return t[e]||(t[e]=n&&o[e]||(n?o:Lo)("Symbol."+e))};i.store=t}),Ho={f:Ao},jo=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Wo=function(e){if(!jo(e))throw TypeError(e+" is not an object!");return e},Uo=function(e){try{return!!e()}catch(t){return!0}},Vo=!Uo(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Go=No.document,qo=jo(Go)&&jo(Go.createElement),Xo=function(e){return qo?Go.createElement(e):{}},Zo=!Vo&&!Uo(function(){return 7!=Object.defineProperty(Xo("div"),"a",{get:function(){return 7}}).a}),$o=function(e,t){if(!jo(e))return e;var o,n;if(t&&"function"==typeof(o=e.toString)&&!jo(n=o.call(e)))return n;if("function"==typeof(o=e.valueOf)&&!jo(n=o.call(e)))return n;if(!t&&"function"==typeof(o=e.toString)&&!jo(n=o.call(e)))return n;throw TypeError("Can't convert object to primitive value")},Ko=Object.defineProperty,Qo=Vo?Object.defineProperty:function(e,t,o){if(Wo(e),t=$o(t,!0),Wo(o),Zo)try{return Ko(e,t,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e},Jo={f:Qo},en=Jo.f,tn=function(e){var t=Yo.Symbol||(Yo.Symbol=No.Symbol||{});"_"==e.charAt(0)||e in t||en(t,e,{value:Ho.f(e)})};tn("asyncIterator");var on={}.hasOwnProperty,nn=function(e,t){return on.call(e,t)},an=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dn=Vo?function(e,t,o){return Jo.f(e,t,an(1,o))}:function(e,t,o){return e[t]=o,e},sn=zo("native-function-to-string",Function.toString),rn=o(function(e){var t=Lo("src"),o="toString",n=(""+sn).split(o);Yo.inspectSource=function(e){return sn.call(e)},(e.exports=function(e,o,i,a){var d="function"==typeof i;d&&(nn(i,"name")||dn(i,"name",o));e[o]===i||(d&&(nn(i,t)||dn(i,t,e[o]?""+e[o]:n.join(o+""))),e===No?e[o]=i:a?e[o]?e[o]=i:dn(e,o,i):(delete e[o],dn(e,o,i)))})(Function.prototype,o,function(){return"function"==typeof this&&this[t]||sn.call(this)})}),ln=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},cn=function(e,t,o){return(ln(e),void 0===t)?e:1===o?function(o){return e.call(t,o)}:2===o?function(o,n){return e.call(t,o,n)}:3===o?function(o,n,i){return e.call(t,o,n,i)}:function(){return e.apply(t,arguments)}},un="prototype",pn=function(e,t,o){var n=e&pn.F,i=e&pn.G,a=e&pn.S,d=e&pn.P,s=e&pn.B,r=i?No:a?No[t]||(No[t]={}):(No[t]||{})[un],l=i?Yo:Yo[t]||(Yo[t]={}),c=l[un]||(l[un]={}),u,p,h,g;for(u in i&&(o=t),o)p=!n&&r&&void 0!==r[u],h=(p?r:o)[u],g=s&&p?cn(h,No):d&&"function"==typeof h?cn(Function.call,h):h,r&&rn(r,u,h,e&pn.U),l[u]!=h&&dn(l,u,g),d&&c[u]!=h&&(c[u]=h)};No.core=Yo,pn.F=1,pn.G=2,pn.S=4,pn.P=8,pn.B=16,pn.W=32,pn.U=64,pn.R=128;var hn=pn,gn=o(function(e){var t=Lo("meta"),o=Jo.f,n=0,i=Object.isExtensible||function(){return!0},a=!Uo(function(){return i(Object.preventExtensions({}))}),d=function(e){o(e,t,{value:{i:"O"+ ++n,w:{}}})},s=e.exports={KEY:t,NEED:!1,fastKey:function(e,o){if(!jo(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!nn(e,t)){if(!i(e))return"F";if(!o)return"E";d(e)}return e[t].i},getWeak:function(e,o){if(!nn(e,t)){if(!i(e))return!0;if(!o)return!1;d(e)}return e[t].w},onFreeze:function(e){return a&&s.NEED&&i(e)&&!nn(e,t)&&d(e),e}}}),mn=gn.KEY,yn=gn.NEED,fn=gn.fastKey,bn=gn.getWeak,_n=gn.onFreeze,vn=Jo.f,kn=Ao("toStringTag"),wn=function(e,t,o){e&&!nn(e=o?e:e.prototype,kn)&&vn(e,kn,{configurable:!0,value:t})},xn={}.toString,Sn=function(e){return xn.call(e).slice(8,-1)},On=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==Sn(e)?e.split(""):Object(e)},Dn=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Tn=function(e){return On(Dn(e))},En=function(e){return isNaN(e=+e)?0:(0<e?Mo:Oo)(e)},Cn=function(e){return 0<e?Po(En(e),9007199254740991):0},Mn=function(e,t){return e=En(e),0>e?Io(e+t,0):Po(e,t)},In=zo("keys"),Pn=function(e){return In[e]||(In[e]=Lo(e))},Fn=function(e){return function(t,o,n){var i=Tn(t),a=Cn(i.length),d=Mn(n,a),s;if(e&&o!=o){for(;a>d;)if(s=i[d++],s!=s)return!0;}else for(;a>d;d++)if((e||d in i)&&i[d]===o)return e||d||0;return!e&&-1}}(!1),Nn=Pn("IE_PROTO"),Yn=function(e,t){var o=Tn(e),n=0,a=[],d;for(d in o)d!=Nn&&nn(o,d)&&a.push(d);for(;t.length>n;)nn(o,d=t[n++])&&(~Fn(a,d)||a.push(d));return a},Rn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zn=Object.keys||function(e){return Yn(e,Rn)},Bn=Object.getOwnPropertySymbols,Ln={f:Bn},An={}.propertyIsEnumerable,Hn={f:An},jn=function(e){var t=zn(e),o=Ln.f;if(o)for(var n=o(e),a=Hn.f,d=0,s;n.length>d;)a.call(e,s=n[d++])&&t.push(s);return t},Wn=Array.isArray||function(e){return"Array"==Sn(e)},Un=function(e){return Object(Dn(e))},Vn=Vo?Object.defineProperties:function(e,t){Wo(e);for(var o=zn(t),n=o.length,a=0,d;n>a;)Jo.f(e,d=o[a++],t[d]);return e},Gn=No.document,qn=Gn&&Gn.documentElement,Xn=Pn("IE_PROTO"),Zn=function(){},$n="prototype",Kn=function(){var e=Xo("iframe"),t=Rn.length,o="<",n=">",a;for(e.style.display="none",qn.appendChild(e),e.src="javascript:",a=e.contentWindow.document,a.open(),a.write(o+"script"+n+"document.F=Object"+o+"/script"+n),a.close(),Kn=a.F;t--;)delete Kn[$n][Rn[t]];return Kn()},Qn=Object.create||function(e,t){var o;return null===e?o=Kn():(Zn[$n]=Wo(e),o=new Zn,Zn[$n]=null,o[Xn]=e),void 0===t?o:Vn(o,t)},Jn=Rn.concat("length","prototype"),ei=Object.getOwnPropertyNames||function(e){return Yn(e,Jn)},ti={f:ei},oi=ti.f,ni={}.toString,ii="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ai=function(e){try{return oi(e)}catch(t){return ii.slice()}},di={f:function(e){return ii&&"[object Window]"==ni.call(e)?ai(e):oi(Tn(e))}},si=Object.getOwnPropertyDescriptor,ri=Vo?si:function(e,t){if(e=Tn(e),t=$o(t,!0),Zo)try{return si(e,t)}catch(t){}return nn(e,t)?an(!Hn.f.call(e,t),e[t]):void 0},li={f:ri},ci=gn.KEY,ui=li.f,pi=Jo.f,hi=di.f,gi=No.Symbol,mi=No.JSON,yi=mi&&mi.stringify,fi="prototype",bi=Ao("_hidden"),_i=Ao("toPrimitive"),vi={}.propertyIsEnumerable,ki=zo("symbol-registry"),wi=zo("symbols"),xi=zo("op-symbols"),Si=Object[fi],Oi="function"==typeof gi&&!!Ln.f,Di=No.QObject,Ti=!Di||!Di[fi]||!Di[fi].findChild,Ei=Vo&&Uo(function(){return 7!=Qn(pi({},"a",{get:function(){return pi(this,"a",{value:7}).a}})).a})?function(e,t,o){var n=ui(Si,t);n&&delete Si[t],pi(e,t,o),n&&e!==Si&&pi(Si,t,n)}:pi,Ci=function(e){var t=wi[e]=Qn(gi[fi]);return t._k=e,t},Mi=Oi&&"symbol"==typeof gi.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof gi},Ii=function(e,t,o){return e===Si&&Ii(xi,t,o),Wo(e),t=$o(t,!0),Wo(o),nn(wi,t)?(o.enumerable?(nn(e,bi)&&e[bi][t]&&(e[bi][t]=!1),o=Qn(o,{enumerable:an(0,!1)})):(!nn(e,bi)&&pi(e,bi,an(1,{})),e[bi][t]=!0),Ei(e,t,o)):pi(e,t,o)},Pi=function(e,t){Wo(e);for(var o=jn(t=Tn(t)),n=0,a=o.length,d;a>n;)Ii(e,d=o[n++],t[d]);return e},Fi=function(e){var t=vi.call(this,e=$o(e,!0));return(this!==Si||!nn(wi,e)||nn(xi,e))&&(!(t||!nn(this,e)||!nn(wi,e)||nn(this,bi)&&this[bi][e])||t)},Ni=function(e,t){if(e=Tn(e),t=$o(t,!0),e!==Si||!nn(wi,t)||nn(xi,t)){var o=ui(e,t);return o&&nn(wi,t)&&!(nn(e,bi)&&e[bi][t])&&(o.enumerable=!0),o}},Yi=function(e){for(var t=hi(Tn(e)),o=[],n=0,a;t.length>n;)nn(wi,a=t[n++])||a==bi||a==ci||o.push(a);return o},Ri=function(e){for(var t=e===Si,o=hi(t?xi:Tn(e)),n=[],a=0,d;o.length>a;)nn(wi,d=o[a++])&&(!t||nn(Si,d))&&n.push(wi[d]);return n};Oi||(gi=function(){if(this instanceof gi)throw TypeError("Symbol is not a constructor!");var e=Lo(0<arguments.length?arguments[0]:void 0),t=function(o){this===Si&&t.call(xi,o),nn(this,bi)&&nn(this[bi],e)&&(this[b