/** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 9.0.4 * @date 2021-03-16T05:44:27.440Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-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 (t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e( ((t = "undefined" != typeof globalThis ? globalThis : t || self).vis = t.vis || {}) ); })(this, function (t) { // "use strict"; var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; function i(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } function n(t, e) { return t((e = { exports: {} }), e.exports), e.exports; } var o = function (t) { return t && t.Math == Math && t; }, r = o("object" == typeof globalThis && globalThis) || o("object" == typeof window && window) || o("object" == typeof self && self) || o("object" == typeof e && e) || (function () { return this; })() || Function("return this")(), s = function (t) { try { return !!t(); } catch (t) { return !0; } }, a = !s(function () { return ( 7 != Object.defineProperty({}, 1, { get: function () { return 7; }, })[1] ); }), h = {}.propertyIsEnumerable, l = Object.getOwnPropertyDescriptor, d = { f: l && !h.call({ 1: 2 }, 1) ? function (t) { var e = l(this, t); return !!e && e.enumerable; } : h, }, c = function (t, e) { return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e, }; }, u = {}.toString, f = function (t) { return u.call(t).slice(8, -1); }, p = "".split, v = s(function () { return !Object("z").propertyIsEnumerable(0); }) ? function (t) { return "String" == f(t) ? p.call(t, "") : Object(t); } : Object, g = function (t) { if (null == t) throw TypeError("Can't call method on " + t); return t; }, y = function (t) { return v(g(t)); }, m = function (t) { return "object" == typeof t ? null !== t : "function" == typeof t; }, b = function (t, e) { if (!m(t)) return t; var i, n; if (e && "function" == typeof (i = t.toString) && !m((n = i.call(t)))) return n; if ("function" == typeof (i = t.valueOf) && !m((n = i.call(t)))) return n; if (!e && "function" == typeof (i = t.toString) && !m((n = i.call(t)))) return n; throw TypeError("Can't convert object to primitive value"); }, w = {}.hasOwnProperty, k = function (t, e) { return w.call(t, e); }, _ = r.document, x = m(_) && m(_.createElement), E = function (t) { return x ? _.createElement(t) : {}; }, O = !a && !s(function () { return ( 7 != Object.defineProperty(E("div"), "a", { get: function () { return 7; }, }).a ); }), C = Object.getOwnPropertyDescriptor, S = { f: a ? C : function (t, e) { if (((t = y(t)), (e = b(e, !0)), O)) try { return C(t, e); } catch (t) {} if (k(t, e)) return c(!d.f.call(t, e), t[e]); }, }, T = /#|\.prototype\./, M = function (t, e) { var i = D[P(t)]; return i == B || (i != I && ("function" == typeof e ? s(e) : !!e)); }, P = (M.normalize = function (t) { return String(t).replace(T, ".").toLowerCase(); }), D = (M.data = {}), I = (M.NATIVE = "N"), B = (M.POLYFILL = "P"), z = M, N = {}, A = function (t) { if ("function" != typeof t) throw TypeError(String(t) + " is not a function"); return t; }, F = function (t, e, i) { if ((A(t), void 0 === e)) return t; switch (i) { case 0: return function () { return t.call(e); }; case 1: return function (i) { return t.call(e, i); }; case 2: return function (i, n) { return t.call(e, i, n); }; case 3: return function (i, n, o) { return t.call(e, i, n, o); }; } return function () { return t.apply(e, arguments); }; }, j = function (t) { if (!m(t)) throw TypeError(String(t) + " is not an object"); return t; }, R = Object.defineProperty, L = { f: a ? R : function (t, e, i) { if ((j(t), (e = b(e, !0)), j(i), O)) try { return R(t, e, i); } catch (t) {} if ("get" in i || "set" in i) throw TypeError("Accessors not supported"); return "value" in i && (t[e] = i.value), t; }, }, H = a ? function (t, e, i) { return L.f(t, e, c(1, i)); } : function (t, e, i) { return (t[e] = i), t; }, W = S.f, q = function (t) { var e = function (e, i, n) { if (this instanceof t) { switch (arguments.length) { case 0: return new t(); case 1: return new t(e); case 2: return new t(e, i); } return new t(e, i, n); } return t.apply(this, arguments); }; return (e.prototype = t.prototype), e; }, V = function (t, e) { var i, n, o, s, a, h, l, d, c = t.target, u = t.global, f = t.stat, p = t.proto, v = u ? r : f ? r[c] : (r[c] || {}).prototype, g = u ? N : N[c] || (N[c] = {}), y = g.prototype; for (o in e) (i = !z(u ? o : c + (f ? "." : "#") + o, t.forced) && v && k(v, o)), (a = g[o]), i && (h = t.noTargetGet ? (d = W(v, o)) && d.value : v[o]), (s = i && h ? h : e[o]), (i && typeof a == typeof s) || ((l = t.bind && i ? F(s, r) : t.wrap && i ? q(s) : p && "function" == typeof s ? F(Function.call, s) : s), (t.sham || (s && s.sham) || (a && a.sham)) && H(l, "sham", !0), (g[o] = l), p && (k(N, (n = c + "Prototype")) || H(N, n, {}), (N[n][o] = s), t.real && y && !y[o] && H(y, o, s))); }, U = Math.ceil, Y = Math.floor, X = function (t) { return isNaN((t = +t)) ? 0 : (t > 0 ? Y : U)(t); }, G = Math.min, K = function (t) { return t > 0 ? G(X(t), 9007199254740991) : 0; }, Q = Math.max, $ = Math.min, Z = function (t, e) { var i = X(t); return i < 0 ? Q(i + e, 0) : $(i, e); }, J = function (t) { return function (e, i, n) { var o, r = y(e), s = K(r.length), a = Z(n, s); if (t && i != i) { for (; s > a; ) if ((o = r[a++]) != o) return !0; } else for (; s > a; a++) if ((t || a in r) && r[a] === i) return t || a || 0; return !t && -1; }; }, tt = { includes: J(!0), indexOf: J(!1) }, et = {}, it = tt.indexOf, nt = function (t, e) { var i, n = y(t), o = 0, r = []; for (i in n) !k(et, i) && k(n, i) && r.push(i); for (; e.length > o; ) k(n, (i = e[o++])) && (~it(r, i) || r.push(i)); return r; }, ot = [ "constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf", ], rt = Object.keys || function (t) { return nt(t, ot); }, st = { f: Object.getOwnPropertySymbols }, at = function (t) { return Object(g(t)); }, ht = Object.assign, lt = Object.defineProperty, dt = !ht || s(function () { if ( a && 1 !== ht( { b: 1 }, ht( lt({}, "a", { enumerable: !0, get: function () { lt(this, "b", { value: 3, enumerable: !1 }); }, }), { b: 2 } ) ).b ) return !0; var t = {}, e = {}, i = Symbol(), n = "abcdefghijklmnopqrst"; return ( (t[i] = 7), n.split("").forEach(function (t) { e[t] = t; }), 7 != ht({}, t)[i] || rt(ht({}, e)).join("") != n ); }) ? function (t, e) { for ( var i = at(t), n = arguments.length, o = 1, r = st.f, s = d.f; n > o; ) for ( var h, l = v(arguments[o++]), c = r ? rt(l).concat(r(l)) : rt(l), u = c.length, f = 0; u > f; ) (h = c[f++]), (a && !s.call(l, h)) || (i[h] = l[h]); return i; } : ht; V( { target: "Object", stat: !0, forced: Object.assign !== dt }, { assign: dt } ); var ct = N.Object.assign, ut = [].slice, ft = {}, pt = function (t, e, i) { if (!(e in ft)) { for (var n = [], o = 0; o < e; o++) n[o] = "a[" + o + "]"; ft[e] = Function("C,a", "return new C(" + n.join(",") + ")"); } return ft[e](t, i); }, vt = Function.bind || function (t) { var e = A(this), i = ut.call(arguments, 1), n = function () { var o = i.concat(ut.call(arguments)); return this instanceof n ? pt(e, o.length, o) : e.apply(t, o); }; return m(e.prototype) && (n.prototype = e.prototype), n; }; V({ target: "Function", proto: !0 }, { bind: vt }); var gt = function (t) { return N[t + "Prototype"]; }, yt = gt("Function").bind, mt = Function.prototype, bt = function (t) { var e = t.bind; return t === mt || (t instanceof Function && e === mt.bind) ? yt : e; }; function wt(t, e, i, n) { t.beginPath(), t.arc(e, i, n, 0, 2 * Math.PI, !1), t.closePath(); } function kt(t, e, i, n, o, r) { var s = Math.PI / 180; n - 2 * r < 0 && (r = n / 2), o - 2 * r < 0 && (r = o / 2), t.beginPath(), t.moveTo(e + r, i), t.lineTo(e + n - r, i), t.arc(e + n - r, i + r, r, 270 * s, 360 * s, !1), t.lineTo(e + n, i + o - r), t.arc(e + n - r, i + o - r, r, 0, 90 * s, !1), t.lineTo(e + r, i + o), t.arc(e + r, i + o - r, r, 90 * s, 180 * s, !1), t.lineTo(e, i + r), t.arc(e + r, i + r, r, 180 * s, 270 * s, !1), t.closePath(); } function _t(t, e, i, n, o) { var r = 0.5522848, s = (n / 2) * r, a = (o / 2) * r, h = e + n, l = i + o, d = e + n / 2, c = i + o / 2; t.beginPath(), t.moveTo(e, c), t.bezierCurveTo(e, c - a, d - s, i, d, i), t.bezierCurveTo(d + s, i, h, c - a, h, c), t.bezierCurveTo(h, c + a, d + s, l, d, l), t.bezierCurveTo(d - s, l, e, c + a, e, c), t.closePath(); } function xt(t, e, i, n, o) { var r = o * (1 / 3), s = 0.5522848, a = (n / 2) * s, h = (r / 2) * s, l = e + n, d = i + r, c = e + n / 2, u = i + r / 2, f = i + (o - r / 2), p = i + o; t.beginPath(), t.moveTo(l, u), t.bezierCurveTo(l, u + h, c + a, d, c, d), t.bezierCurveTo(c - a, d, e, u + h, e, u), t.bezierCurveTo(e, u - h, c - a, i, c, i), t.bezierCurveTo(c + a, i, l, u - h, l, u), t.lineTo(l, f), t.bezierCurveTo(l, f + h, c + a, p, c, p), t.bezierCurveTo(c - a, p, e, f + h, e, f), t.lineTo(e, u); } function Et(t, e, i, n, o, r) { t.beginPath(), t.moveTo(e, i); for ( var s = r.length, a = n - e, h = o - i, l = h / a, d = Math.sqrt(a * a + h * h), c = 0, u = !0, f = 0, p = +r[0]; d >= 0.1; ) (p = +r[c++ % s]) > d && (p = d), (f = Math.sqrt((p * p) / (1 + l * l))), (e += f = a < 0 ? -f : f), (i += l * f), !0 === u ? t.lineTo(e, i) : t.moveTo(e, i), (d -= p), (u = !u); } var Ot = { circle: wt, dashedLine: Et, database: xt, diamond: function (t, e, i, n) { t.beginPath(), t.lineTo(e, i + n), t.lineTo(e + n, i), t.lineTo(e, i - n), t.lineTo(e - n, i), t.closePath(); }, ellipse: _t, ellipse_vis: _t, hexagon: function (t, e, i, n) { t.beginPath(); var o = (2 * Math.PI) / 6; t.moveTo(e + n, i); for (var r = 1; r < 6; r++) t.lineTo(e + n * Math.cos(o * r), i + n * Math.sin(o * r)); t.closePath(); }, roundRect: kt, square: function (t, e, i, n) { t.beginPath(), t.rect(e - n, i - n, 2 * n, 2 * n), t.closePath(); }, star: function (t, e, i, n) { t.beginPath(), (i += 0.1 * (n *= 0.82)); for (var o = 0; o < 10; o++) { var r = o % 2 == 0 ? 1.3 * n : 0.5 * n; t.lineTo( e + r * Math.sin((2 * o * Math.PI) / 10), i - r * Math.cos((2 * o * Math.PI) / 10) ); } t.closePath(); }, triangle: function (t, e, i, n) { t.beginPath(), (i += 0.275 * (n *= 1.15)); var o = 2 * n, r = o / 2, s = (Math.sqrt(3) / 6) * o, a = Math.sqrt(o * o - r * r); t.moveTo(e, i - (a - s)), t.lineTo(e + r, i + s), t.lineTo(e - r, i + s), t.lineTo(e, i - (a - s)), t.closePath(); }, triangleDown: function (t, e, i, n) { t.beginPath(), (i -= 0.275 * (n *= 1.15)); var o = 2 * n, r = o / 2, s = (Math.sqrt(3) / 6) * o, a = Math.sqrt(o * o - r * r); t.moveTo(e, i + (a - s)), t.lineTo(e + r, i - s), t.lineTo(e - r, i - s), t.lineTo(e, i + (a - s)), t.closePath(); }, }; var Ct = n(function (t) { function e(t) { if (t) return (function (t) { for (var i in e.prototype) t[i] = e.prototype[i]; return t; })(t); } (t.exports = e), (e.prototype.on = e.prototype.addEventListener = function (t, e) { return ( (this._callbacks = this._callbacks || {}), (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this ); }), (e.prototype.once = function (t, e) { function i() { this.off(t, i), e.apply(this, arguments); } return (i.fn = e), this.on(t, i), this; }), (e.prototype.off = e.prototype.removeListener = e.prototype.removeAllListeners = e.prototype.removeEventListener = function ( t, e ) { if ( ((this._callbacks = this._callbacks || {}), 0 == arguments.length) ) return (this._callbacks = {}), this; var i, n = this._callbacks["$" + t]; if (!n) return this; if (1 == arguments.length) return delete this._callbacks["$" + t], this; for (var o = 0; o < n.length; o++) if ((i = n[o]) === e || i.fn === e) { n.splice(o, 1); break; } return 0 === n.length && delete this._callbacks["$" + t], this; }), (e.prototype.emit = function (t) { this._callbacks = this._callbacks || {}; for ( var e = new Array(arguments.length - 1), i = this._callbacks["$" + t], n = 1; n < arguments.length; n++ ) e[n - 1] = arguments[n]; if (i) { n = 0; for (var o = (i = i.slice(0)).length; n < o; ++n) i[n].apply(this, e); } return this; }), (e.prototype.listeners = function (t) { return ( (this._callbacks = this._callbacks || {}), this._callbacks["$" + t] || [] ); }), (e.prototype.hasListeners = function (t) { return !!this.listeners(t).length; }); }), St = function (t) { return function (e, i) { var n, o, r = String(g(e)), s = X(i), a = r.length; return s < 0 || s >= a ? t ? "" : void 0 : (n = r.charCodeAt(s)) < 55296 || n > 56319 || s + 1 === a || (o = r.charCodeAt(s + 1)) < 56320 || o > 57343 ? t ? r.charAt(s) : n : t ? r.slice(s, s + 2) : o - 56320 + ((n - 55296) << 10) + 65536; }; }, Tt = { codeAt: St(!1), charAt: St(!0) }, Mt = "__core-js_shared__", Pt = r[Mt] || (function (t, e) { try { H(r, t, e); } catch (i) { r[t] = e; } return e; })(Mt, {}), Dt = Function.toString; "function" != typeof Pt.inspectSource && (Pt.inspectSource = function (t) { return Dt.call(t); }); var It, Bt, zt, Nt = Pt.inspectSource, At = r.WeakMap, Ft = "function" == typeof At && /native code/.test(Nt(At)), jt = n(function (t) { (t.exports = function (t, e) { return Pt[t] || (Pt[t] = void 0 !== e ? e : {}); })("versions", []).push({ version: "3.9.1", mode: "pure", copyright: "© 2021 Denis Pushkarev (zloirock.ru)", }); }), Rt = 0, Lt = Math.random(), Ht = function (t) { return ( "Symbol(" + String(void 0 === t ? "" : t) + ")_" + (++Rt + Lt).toString(36) ); }, Wt = jt("keys"), qt = function (t) { return Wt[t] || (Wt[t] = Ht(t)); }, Vt = r.WeakMap; if (Ft) { var Ut = Pt.state || (Pt.state = new Vt()), Yt = Ut.get, Xt = Ut.has, Gt = Ut.set; (It = function (t, e) { return (e.facade = t), Gt.call(Ut, t, e), e; }), (Bt = function (t) { return Yt.call(Ut, t) || {}; }), (zt = function (t) { return Xt.call(Ut, t); }); } else { var Kt = qt("state"); (et[Kt] = !0), (It = function (t, e) { return (e.facade = t), H(t, Kt, e), e; }), (Bt = function (t) { return k(t, Kt) ? t[Kt] : {}; }), (zt = function (t) { return k(t, Kt); }); } var Qt, $t, Zt = { set: It, get: Bt, has: zt, enforce: function (t) { return zt(t) ? Bt(t) : It(t, {}); }, getterFor: function (t) { return function (e) { var i; if (!m(e) || (i = Bt(e)).type !== t) throw TypeError("Incompatible receiver, " + t + " required"); return i; }; }, }, Jt = !s(function () { function t() {} return ( (t.prototype.constructor = null), Object.getPrototypeOf(new t()) !== t.prototype ); }), te = qt("IE_PROTO"), ee = Object.prototype, ie = Jt ? Object.getPrototypeOf : function (t) { return ( (t = at(t)), k(t, te) ? t[te] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? ee : null ); }, ne = "process" == f(r.process), oe = function (t) { return "function" == typeof t ? t : void 0; }, re = function (t, e) { return arguments.length < 2 ? oe(N[t]) || oe(r[t]) : (N[t] && N[t][e]) || (r[t] && r[t][e]); }, se = re("navigator", "userAgent") || "", ae = r.process, he = ae && ae.versions, le = he && he.v8; le ? ($t = (Qt = le.split("."))[0] + Qt[1]) : se && (!(Qt = se.match(/Edge\/(\d+)/)) || Qt[1] >= 74) && (Qt = se.match(/Chrome\/(\d+)/)) && ($t = Qt[1]); var de, ce, ue, fe = $t && +$t, pe = !!Object.getOwnPropertySymbols && !s(function () { return !Symbol.sham && (ne ? 38 === fe : fe > 37 && fe < 41); }), ve = pe && !Symbol.sham && "symbol" == typeof Symbol.iterator, ge = jt("wks"), ye = r.Symbol, me = ve ? ye : (ye && ye.withoutSetter) || Ht, be = function (t) { return ( (k(ge, t) && (pe || "string" == typeof ge[t])) || (pe && k(ye, t) ? (ge[t] = ye[t]) : (ge[t] = me("Symbol." + t))), ge[t] ); }, we = be("iterator"), ke = !1; [].keys && ("next" in (ue = [].keys()) ? (ce = ie(ie(ue))) !== Object.prototype && (de = ce) : (ke = !0)); var _e = null == de || s(function () { var t = {}; return de[we].call(t) !== t; }); _e && (de = {}), _e && !k(de, we) && H(de, we, function () { return this; }); var xe, Ee = { IteratorPrototype: de, BUGGY_SAFARI_ITERATORS: ke }, Oe = a ? Object.defineProperties : function (t, e) { j(t); for (var i, n = rt(e), o = n.length, r = 0; o > r; ) L.f(t, (i = n[r++]), e[i]); return t; }, Ce = re("document", "documentElement"), Se = qt("IE_PROTO"), Te = function () {}, Me = function (t) { return "