vis-network
Version:
A dynamic, browser-based visualization library.
51 lines • 663 kB
JavaScript
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 8.2.0
* @date 2020-08-13T21:43:47.994Z
*
* @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(g,A){"object"==typeof exports&&"undefined"!=typeof module?A(exports):"function"==typeof define&&define.amd?define(["exports"],A):A((g="undefined"!=typeof globalThis?globalThis:g||self).vis=g.vis||{})}(this,(function(g){var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(g,A,t){return g(t={path:A,exports:{},require:function(g,A){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==A&&t.path)}},t.exports),t.exports}function C(g){return g&&g.default||g}var e=function(g){return g&&g.Math==Math&&g},I=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof A&&A)||Function("return this")(),i=function(g){try{return!!g()}catch(g){return!0}},o=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s={f:r&&!n.call({1:2},1)?function(g){var A=r(this,g);return!!A&&A.enumerable}:n},a=function(g,A){return{enumerable:!(1&g),configurable:!(2&g),writable:!(4&g),value:A}},d={}.toString,h=function(g){return d.call(g).slice(8,-1)},l="".split,c=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(g){return"String"==h(g)?l.call(g,""):Object(g)}:Object,u=function(g){if(null==g)throw TypeError("Can't call method on "+g);return g},p=function(g){return c(u(g))},v=function(g){return"object"==typeof g?null!==g:"function"==typeof g},f=function(g,A){if(!v(g))return g;var t,C;if(A&&"function"==typeof(t=g.toString)&&!v(C=t.call(g)))return C;if("function"==typeof(t=g.valueOf)&&!v(C=t.call(g)))return C;if(!A&&"function"==typeof(t=g.toString)&&!v(C=t.call(g)))return C;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(g,A){return y.call(g,A)},m=I.document,w=v(m)&&v(m.createElement),k=function(g){return w?m.createElement(g):{}},x=!o&&!i((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,E={f:o?O:function(g,A){if(g=p(g),A=f(A,!0),x)try{return O(g,A)}catch(g){}if(b(g,A))return a(!s.f.call(g,A),g[A])}},T=/#|\.prototype\./,D=function(g,A){var t=R[N(g)];return t==M||t!=P&&("function"==typeof A?i(A):!!A)},N=D.normalize=function(g){return String(g).replace(T,".").toLowerCase()},R=D.data={},P=D.NATIVE="N",M=D.POLYFILL="P",z=D,S={},B=function(g){if("function"!=typeof g)throw TypeError(String(g)+" is not a function");return g},Z=function(g,A,t){if(B(g),void 0===A)return g;switch(t){case 0:return function(){return g.call(A)};case 1:return function(t){return g.call(A,t)};case 2:return function(t,C){return g.call(A,t,C)};case 3:return function(t,C,e){return g.call(A,t,C,e)}}return function(){return g.apply(A,arguments)}},F=function(g){if(!v(g))throw TypeError(String(g)+" is not an object");return g},G=Object.defineProperty,j={f:o?G:function(g,A,t){if(F(g),A=f(A,!0),F(t),x)try{return G(g,A,t)}catch(g){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(g[A]=t.value),g}},L=o?function(g,A,t){return j.f(g,A,a(1,t))}:function(g,A,t){return g[A]=t,g},V=E.f,Y=function(g){var A=function(A,t,C){if(this instanceof g){switch(arguments.length){case 0:return new g;case 1:return new g(A);case 2:return new g(A,t)}return new g(A,t,C)}return g.apply(this,arguments)};return A.prototype=g.prototype,A},W=function(g,A){var t,C,e,i,o,n,r,s,a=g.target,d=g.global,h=g.stat,l=g.proto,c=d?I:h?I[a]:(I[a]||{}).prototype,u=d?S:S[a]||(S[a]={}),p=u.prototype;for(e in A)t=!z(d?e:a+(h?".":"#")+e,g.forced)&&c&&b(c,e),o=u[e],t&&(n=g.noTargetGet?(s=V(c,e))&&s.value:c[e]),i=t&&n?n:A[e],t&&typeof o==typeof i||(r=g.bind&&t?Z(i,I):g.wrap&&t?Y(i):l&&"function"==typeof i?Z(Function.call,i):i,(g.sham||i&&i.sham||o&&o.sham)&&L(r,"sham",!0),u[e]=r,l&&(b(S,C=a+"Prototype")||L(S,C,{}),S[C][e]=i,g.real&&p&&!p[e]&&L(p,e,i)))},H=[].slice,Q={},U=function(g,A,t){if(!(A in Q)){for(var C=[],e=0;e<A;e++)C[e]="a["+e+"]";Q[A]=Function("C,a","return new C("+C.join(",")+")")}return Q[A](g,t)},_=Function.bind||function(g){var A=B(this),t=H.call(arguments,1),C=function(){var e=t.concat(H.call(arguments));return this instanceof C?U(A,e.length,e):A.apply(g,e)};return v(A.prototype)&&(C.prototype=A.prototype),C};W({target:"Function",proto:!0},{bind:_});var K=function(g){return S[g+"Prototype"]},X=K("Function").bind,J=Function.prototype,q=function(g){var A=g.bind;return g===J||g instanceof Function&&A===J.bind?X:A},$=Math.ceil,gg=Math.floor,Ag=function(g){return isNaN(g=+g)?0:(g>0?gg:$)(g)},tg=Math.min,Cg=function(g){return g>0?tg(Ag(g),9007199254740991):0},eg=Math.max,Ig=Math.min,ig=function(g,A){var t=Ag(g);return t<0?eg(t+A,0):Ig(t,A)},og=function(g){return function(A,t,C){var e,I=p(A),i=Cg(I.length),o=ig(C,i);if(g&&t!=t){for(;i>o;)if((e=I[o++])!=e)return!0}else for(;i>o;o++)if((g||o in I)&&I[o]===t)return g||o||0;return!g&&-1}},ng={includes:og(!0),indexOf:og(!1)},rg={},sg=ng.indexOf,ag=function(g,A){var t,C=p(g),e=0,I=[];for(t in C)!b(rg,t)&&b(C,t)&&I.push(t);for(;A.length>e;)b(C,t=A[e++])&&(~sg(I,t)||I.push(t));return I},dg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hg=Object.keys||function(g){return ag(g,dg)},lg={f:Object.getOwnPropertySymbols},cg=function(g){return Object(u(g))},ug=Object.assign,pg=Object.defineProperty,vg=!ug||i((function(){if(o&&1!==ug({b:1},ug(pg({},"a",{enumerable:!0,get:function(){pg(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},A={},t=Symbol();return g[t]=7,"abcdefghijklmnopqrst".split("").forEach((function(g){A[g]=g})),7!=ug({},g)[t]||"abcdefghijklmnopqrst"!=hg(ug({},A)).join("")}))?function(g,A){for(var t=cg(g),C=arguments.length,e=1,I=lg.f,i=s.f;C>e;)for(var n,r=c(arguments[e++]),a=I?hg(r).concat(I(r)):hg(r),d=a.length,h=0;d>h;)n=a[h++],o&&!i.call(r,n)||(t[n]=r[n]);return t}:ug;W({target:"Object",stat:!0,forced:Object.assign!==vg},{assign:vg});var fg=S.Object.assign;function yg(g,A,t,C){g.beginPath(),g.arc(A,t,C,0,2*Math.PI,!1),g.closePath()}function bg(g,A,t,C,e,I){var i=Math.PI/180;C-2*I<0&&(I=C/2),e-2*I<0&&(I=e/2),g.beginPath(),g.moveTo(A+I,t),g.lineTo(A+C-I,t),g.arc(A+C-I,t+I,I,270*i,360*i,!1),g.lineTo(A+C,t+e-I),g.arc(A+C-I,t+e-I,I,0,90*i,!1),g.lineTo(A+I,t+e),g.arc(A+I,t+e-I,I,90*i,180*i,!1),g.lineTo(A,t+I),g.arc(A+I,t+I,I,180*i,270*i,!1),g.closePath()}function mg(g,A,t,C,e){var I=C/2*.5522848,i=e/2*.5522848,o=A+C,n=t+e,r=A+C/2,s=t+e/2;g.beginPath(),g.moveTo(A,s),g.bezierCurveTo(A,s-i,r-I,t,r,t),g.bezierCurveTo(r+I,t,o,s-i,o,s),g.bezierCurveTo(o,s+i,r+I,n,r,n),g.bezierCurveTo(r-I,n,A,s+i,A,s),g.closePath()}function wg(g,A,t,C,e){var I=e*(1/3),i=C/2*.5522848,o=I/2*.5522848,n=A+C,r=t+I,s=A+C/2,a=t+I/2,d=t+(e-I/2),h=t+e;g.beginPath(),g.moveTo(n,a),g.bezierCurveTo(n,a+o,s+i,r,s,r),g.bezierCurveTo(s-i,r,A,a+o,A,a),g.bezierCurveTo(A,a-o,s-i,t,s,t),g.bezierCurveTo(s+i,t,n,a-o,n,a),g.lineTo(n,d),g.bezierCurveTo(n,d+o,s+i,h,s,h),g.bezierCurveTo(s-i,h,A,d+o,A,d),g.lineTo(A,a)}function kg(g,A,t,C,e,I){g.beginPath(),g.moveTo(A,t);for(var i=I.length,o=C-A,n=e-t,r=n/o,s=Math.sqrt(o*o+n*n),a=0,d=!0,h=0,l=+I[0];s>=.1;)(l=+I[a++%i])>s&&(l=s),h=Math.sqrt(l*l/(1+r*r)),A+=h=o<0?-h:h,t+=r*h,!0===d?g.lineTo(A,t):g.moveTo(A,t),s-=l,d=!d}var xg={circle:yg,dashedLine:kg,database:wg,diamond:function(g,A,t,C){g.beginPath(),g.lineTo(A,t+C),g.lineTo(A+C,t),g.lineTo(A,t-C),g.lineTo(A-C,t),g.closePath()},ellipse:mg,ellipse_vis:mg,hexagon:function(g,A,t,C){g.beginPath();var e=2*Math.PI/6;g.moveTo(A+C,t);for(var I=1;I<6;I++)g.lineTo(A+C*Math.cos(e*I),t+C*Math.sin(e*I));g.closePath()},roundRect:bg,square:function(g,A,t,C){g.beginPath(),g.rect(A-C,t-C,2*C,2*C),g.closePath()},star:function(g,A,t,C){g.beginPath(),t+=.1*(C*=.82);for(var e=0;e<10;e++){var I=e%2==0?1.3*C:.5*C;g.lineTo(A+I*Math.sin(2*e*Math.PI/10),t-I*Math.cos(2*e*Math.PI/10))}g.closePath()},triangle:function(g,A,t,C){g.beginPath(),t+=.275*(C*=1.15);var e=2*C,I=e/2,i=Math.sqrt(3)/6*e,o=Math.sqrt(e*e-I*I);g.moveTo(A,t-(o-i)),g.lineTo(A+I,t+i),g.lineTo(A-I,t+i),g.lineTo(A,t-(o-i)),g.closePath()},triangleDown:function(g,A,t,C){g.beginPath(),t-=.275*(C*=1.15);var e=2*C,I=e/2,i=Math.sqrt(3)/6*e,o=Math.sqrt(e*e-I*I);g.moveTo(A,t+(o-i)),g.lineTo(A+I,t-i),g.lineTo(A-I,t-i),g.lineTo(A,t+(o-i)),g.closePath()}};var Og=t((function(g){function A(g){if(g)return function(g){for(var t in A.prototype)g[t]=A.prototype[t];return g}(g)}g.exports=A,A.prototype.on=A.prototype.addEventListener=function(g,A){return this._callbacks=this._callbacks||{},(this._callbacks["$"+g]=this._callbacks["$"+g]||[]).push(A),this},A.prototype.once=function(g,A){function t(){this.off(g,t),A.apply(this,arguments)}return t.fn=A,this.on(g,t),this},A.prototype.off=A.prototype.removeListener=A.prototype.removeAllListeners=A.prototype.removeEventListener=function(g,A){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var t,C=this._callbacks["$"+g];if(!C)return this;if(1==arguments.length)return delete this._callbacks["$"+g],this;for(var e=0;e<C.length;e++)if((t=C[e])===A||t.fn===A){C.splice(e,1);break}return 0===C.length&&delete this._callbacks["$"+g],this},A.prototype.emit=function(g){this._callbacks=this._callbacks||{};for(var A=new Array(arguments.length-1),t=this._callbacks["$"+g],C=1;C<arguments.length;C++)A[C-1]=arguments[C];if(t){C=0;for(var e=(t=t.slice(0)).length;C<e;++C)t[C].apply(this,A)}return this},A.prototype.listeners=function(g){return this._callbacks=this._callbacks||{},this._callbacks["$"+g]||[]},A.prototype.hasListeners=function(g){return!!this.listeners(g).length}}));W({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:j.f});var Eg=t((function(g){var A=S.Object,t=g.exports=function(g,t,C){return A.defineProperty(g,t,C)};A.defineProperty.sham&&(t.sham=!0)})),Tg=Eg,Dg=o?Object.defineProperties:function(g,A){F(g);for(var t,C=hg(A),e=C.length,I=0;e>I;)j.f(g,t=C[I++],A[t]);return g};W({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:Dg});var Ng=t((function(g){var A=S.Object,t=g.exports=function(g,t){return A.defineProperties(g,t)};A.defineProperties.sham&&(t.sham=!0)})),Rg=function(g){return"function"==typeof g?g:void 0},Pg=function(g,A){return arguments.length<2?Rg(S[g])||Rg(I[g]):S[g]&&S[g][A]||I[g]&&I[g][A]},Mg=dg.concat("length","prototype"),zg={f:Object.getOwnPropertyNames||function(g){return ag(g,Mg)}},Sg=Pg("Reflect","ownKeys")||function(g){var A=zg.f(F(g)),t=lg.f;return t?A.concat(t(g)):A},Bg=function(g,A,t){var C=f(A);C in g?j.f(g,C,a(0,t)):g[C]=t};W({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(g){for(var A,t,C=p(g),e=E.f,I=Sg(C),i={},o=0;I.length>o;)void 0!==(t=e(C,A=I[o++]))&&Bg(i,A,t);return i}});var Zg=S.Object.getOwnPropertyDescriptors,Fg=E.f,Gg=i((function(){Fg(1)}));W({target:"Object",stat:!0,forced:!o||Gg,sham:!o},{getOwnPropertyDescriptor:function(g,A){return Fg(p(g),A)}});var jg,Lg=t((function(g){var A=S.Object,t=g.exports=function(g,t){return A.getOwnPropertyDescriptor(g,t)};A.getOwnPropertyDescriptor.sham&&(t.sham=!0)})),Vg=Lg,Yg=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Wg=Yg&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Hg=Array.isArray||function(g){return"Array"==h(g)},Qg=Pg("document","documentElement"),Ug=I["__core-js_shared__"]||function(g,A){try{L(I,g,A)}catch(t){I[g]=A}return A}("__core-js_shared__",{}),_g=t((function(g){(g.exports=function(g,A){return Ug[g]||(Ug[g]=void 0!==A?A:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Kg=0,Xg=Math.random(),Jg=function(g){return"Symbol("+String(void 0===g?"":g)+")_"+(++Kg+Xg).toString(36)},qg=_g("keys"),$g=function(g){return qg[g]||(qg[g]=Jg(g))},gA=$g("IE_PROTO"),AA=function(){},tA=function(g){return"<script>"+g+"<\/script>"},CA=function(){try{jg=document.domain&&new ActiveXObject("htmlfile")}catch(g){}var g,A;CA=jg?function(g){g.write(tA("")),g.close();var A=g.parentWindow.Object;return g=null,A}(jg):((A=k("iframe")).style.display="none",Qg.appendChild(A),A.src=String("javascript:"),(g=A.contentWindow.document).open(),g.write(tA("document.F=Object")),g.close(),g.F);for(var t=dg.length;t--;)delete CA.prototype[dg[t]];return CA()};rg[gA]=!0;var eA=Object.create||function(g,A){var t;return null!==g?(AA.prototype=F(g),t=new AA,AA.prototype=null,t[gA]=g):t=CA(),void 0===A?t:Dg(t,A)},IA=zg.f,iA={}.toString,oA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nA={f:function(g){return oA&&"[object Window]"==iA.call(g)?function(g){try{return IA(g)}catch(g){return oA.slice()}}(g):IA(p(g))}},rA=function(g,A,t,C){C&&C.enumerable?g[A]=t:L(g,A,t)},sA=_g("wks"),aA=I.Symbol,dA=Wg?aA:aA&&aA.withoutSetter||Jg,hA=function(g){return b(sA,g)||(Yg&&b(aA,g)?sA[g]=aA[g]:sA[g]=dA("Symbol."+g)),sA[g]},lA={f:hA},cA=j.f,uA=function(g){var A=S.Symbol||(S.Symbol={});b(A,g)||cA(A,g,{value:lA.f(g)})},pA={};pA[hA("toStringTag")]="z";var vA="[object z]"===String(pA),fA=hA("toStringTag"),yA="Arguments"==h(function(){return arguments}()),bA=vA?h:function(g){var A,t,C;return void 0===g?"Undefined":null===g?"Null":"string"==typeof(t=function(g,A){try{return g[A]}catch(g){}}(A=Object(g),fA))?t:yA?h(A):"Object"==(C=h(A))&&"function"==typeof A.callee?"Arguments":C},mA=vA?{}.toString:function(){return"[object "+bA(this)+"]"},wA=j.f,kA=hA("toStringTag"),xA=function(g,A,t,C){if(g){var e=t?g:g.prototype;b(e,kA)||wA(e,kA,{configurable:!0,value:A}),C&&!vA&&L(e,"toString",mA)}},OA=Function.toString;"function"!=typeof Ug.inspectSource&&(Ug.inspectSource=function(g){return OA.call(g)});var EA,TA,DA,NA=Ug.inspectSource,RA=I.WeakMap,PA="function"==typeof RA&&/native code/.test(NA(RA)),MA=I.WeakMap;if(PA){var zA=new MA,SA=zA.get,BA=zA.has,ZA=zA.set;EA=function(g,A){return ZA.call(zA,g,A),A},TA=function(g){return SA.call(zA,g)||{}},DA=function(g){return BA.call(zA,g)}}else{var FA=$g("state");rg[FA]=!0,EA=function(g,A){return L(g,FA,A),A},TA=function(g){return b(g,FA)?g[FA]:{}},DA=function(g){return b(g,FA)}}var GA={set:EA,get:TA,has:DA,enforce:function(g){return DA(g)?TA(g):EA(g,{})},getterFor:function(g){return function(A){var t;if(!v(A)||(t=TA(A)).type!==g)throw TypeError("Incompatible receiver, "+g+" required");return t}}},jA=hA("species"),LA=function(g,A){var t;return Hg(g)&&("function"!=typeof(t=g.constructor)||t!==Array&&!Hg(t.prototype)?v(t)&&null===(t=t[jA])&&(t=void 0):t=void 0),new(void 0===t?Array:t)(0===A?0:A)},VA=[].push,YA=function(g){var A=1==g,t=2==g,C=3==g,e=4==g,I=6==g,i=5==g||I;return function(o,n,r,s){for(var a,d,h=cg(o),l=c(h),u=Z(n,r,3),p=Cg(l.length),v=0,f=s||LA,y=A?f(o,p):t?f(o,0):void 0;p>v;v++)if((i||v in l)&&(d=u(a=l[v],v,h),g))if(A)y[v]=d;else if(d)switch(g){case 3:return!0;case 5:return a;case 6:return v;case 2:VA.call(y,a)}else if(e)return!1;return I?-1:C||e?e:y}},WA={forEach:YA(0),map:YA(1),filter:YA(2),some:YA(3),every:YA(4),find:YA(5),findIndex:YA(6)},HA=WA.forEach,QA=$g("hidden"),UA=hA("toPrimitive"),_A=GA.set,KA=GA.getterFor("Symbol"),XA=Object.prototype,JA=I.Symbol,qA=Pg("JSON","stringify"),$A=E.f,gt=j.f,At=nA.f,tt=s.f,Ct=_g("symbols"),et=_g("op-symbols"),It=_g("string-to-symbol-registry"),it=_g("symbol-to-string-registry"),ot=_g("wks"),nt=I.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,st=o&&i((function(){return 7!=eA(gt({},"a",{get:function(){return gt(this,"a",{value:7}).a}})).a}))?function(g,A,t){var C=$A(XA,A);C&&delete XA[A],gt(g,A,t),C&&g!==XA&>(XA,A,C)}:gt,at=function(g,A){var t=Ct[g]=eA(JA.prototype);return _A(t,{type:"Symbol",tag:g,description:A}),o||(t.description=A),t},dt=Wg?function(g){return"symbol"==typeof g}:function(g){return Object(g)instanceof JA},ht=function(g,A,t){g===XA&&ht(et,A,t),F(g);var C=f(A,!0);return F(t),b(Ct,C)?(t.enumerable?(b(g,QA)&&g[QA][C]&&(g[QA][C]=!1),t=eA(t,{enumerable:a(0,!1)})):(b(g,QA)||gt(g,QA,a(1,{})),g[QA][C]=!0),st(g,C,t)):gt(g,C,t)},lt=function(g,A){F(g);var t=p(A),C=hg(t).concat(vt(t));return HA(C,(function(A){o&&!ct.call(t,A)||ht(g,A,t[A])})),g},ct=function(g){var A=f(g,!0),t=tt.call(this,A);return!(this===XA&&b(Ct,A)&&!b(et,A))&&(!(t||!b(this,A)||!b(Ct,A)||b(this,QA)&&this[QA][A])||t)},ut=function(g,A){var t=p(g),C=f(A,!0);if(t!==XA||!b(Ct,C)||b(et,C)){var e=$A(t,C);return!e||!b(Ct,C)||b(t,QA)&&t[QA][C]||(e.enumerable=!0),e}},pt=function(g){var A=At(p(g)),t=[];return HA(A,(function(g){b(Ct,g)||b(rg,g)||t.push(g)})),t},vt=function(g){var A=g===XA,t=At(A?et:p(g)),C=[];return HA(t,(function(g){!b(Ct,g)||A&&!b(XA,g)||C.push(Ct[g])})),C};if(Yg||(rA((JA=function(){if(this instanceof JA)throw TypeError("Symbol is not a constructor");var g=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,A=Jg(g),t=function(g){this===XA&&t.call(et,g),b(this,QA)&&b(this[QA],A)&&(this[QA][A]=!1),st(this,A,a(1,g))};return o&&rt&&st(XA,A,{configurable:!0,set:t}),at(A,g)}).prototype,"toString",(function(){return KA(this).tag})),rA(JA,"withoutSetter",(function(g){return at(Jg(g),g)})),s.f=ct,j.f=ht,E.f=ut,zg.f=nA.f=pt,lg.f=vt,lA.f=function(g){return at(hA(g),g)},o&>(JA.prototype,"description",{configurable:!0,get:function(){return KA(this).description}})),W({global:!0,wrap:!0,forced:!Yg,sham:!Yg},{Symbol:JA}),HA(hg(ot),(function(g){uA(g)})),W({target:"Symbol",stat:!0,forced:!Yg},{for:function(g){var A=String(g);if(b(It,A))return It[A];var t=JA(A);return It[A]=t,it[t]=A,t},keyFor:function(g){if(!dt(g))throw TypeError(g+" is not a symbol");if(b(it,g))return it[g]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),W({target:"Object",stat:!0,forced:!Yg,sham:!o},{create:function(g,A){return void 0===A?eA(g):lt(eA(g),A)},defineProperty:ht,defineProperties:lt,getOwnPropertyDescriptor:ut}),W({target:"Object",stat:!0,forced:!Yg},{getOwnPropertyNames:pt,getOwnPropertySymbols:vt}),W({target:"Object",stat:!0,forced:i((function(){lg.f(1)}))},{getOwnPropertySymbols:function(g){return lg.f(cg(g))}}),qA){var ft=!Yg||i((function(){var g=JA();return"[null]"!=qA([g])||"{}"!=qA({a:g})||"{}"!=qA(Object(g))}));W({target:"JSON",stat:!0,forced:ft},{stringify:function(g,A,t){for(var C,e=[g],I=1;arguments.length>I;)e.push(arguments[I++]);if(C=A,(v(A)||void 0!==g)&&!dt(g))return Hg(A)||(A=function(g,A){if("function"==typeof C&&(A=C.call(this,g,A)),!dt(A))return A}),e[1]=A,qA.apply(null,e)}})}JA.prototype[UA]||L(JA.prototype,UA,JA.prototype.valueOf),xA(JA,"Symbol"),rg[QA]=!0;var yt,bt,mt,wt=S.Object.getOwnPropertySymbols,kt={},xt=!i((function(){function g(){}return g.prototype.constructor=null,Object.getPrototypeOf(new g)!==g.prototype})),Ot=$g("IE_PROTO"),Et=Object.prototype,Tt=xt?Object.getPrototypeOf:function(g){return g=cg(g),b(g,Ot)?g[Ot]:"function"==typeof g.constructor&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?Et:null},Dt=(hA("iterator"),!1);[].keys&&("next"in(mt=[].keys())?(bt=Tt(Tt(mt)))!==Object.prototype&&(yt=bt):Dt=!0),null==yt&&(yt={});var Nt={IteratorPrototype:yt,BUGGY_SAFARI_ITERATORS:Dt},Rt=Nt.IteratorPrototype,Pt=function(){return this},Mt=Object.setPrototypeOf||("__proto__"in{}?function(){var g,A=!1,t={};try{(g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),A=t instanceof Array}catch(g){}return function(t,C){return F(t),function(g){if(!v(g)&&null!==g)throw TypeError("Can't set "+String(g)+" as a prototype")}(C),A?g.call(t,C):t.__proto__=C,t}}():void 0),zt=Nt.IteratorPrototype,St=Nt.BUGGY_SAFARI_ITERATORS,Bt=hA("iterator"),Zt=function(){return this},Ft=function(g,A,t,C,e,I,i){!function(g,A,t){var C=A+" Iterator";g.prototype=eA(Rt,{next:a(1,t)}),xA(g,C,!1,!0),kt[C]=Pt}(t,A,C);var o,n,r,s=function(g){if(g===e&&u)return u;if(!St&&g in l)return l[g];switch(g){case"keys":case"values":case"entries":return function(){return new t(this,g)}}return function(){return new t(this)}},d=A+" Iterator",h=!1,l=g.prototype,c=l[Bt]||l["@@iterator"]||e&&l[e],u=!St&&c||s(e),p="Array"==A&&l.entries||c;if(p&&(o=Tt(p.call(new g)),zt!==Object.prototype&&o.next&&(xA(o,d,!0,!0),kt[d]=Zt)),"values"==e&&c&&"values"!==c.name&&(h=!0,u=function(){return c.call(this)}),i&&l[Bt]!==u&&L(l,Bt,u),kt[A]=u,e)if(n={values:s("values"),keys:I?u:s("keys"),entries:s("entries")},i)for(r in n)(St||h||!(r in l))&&rA(l,r,n[r]);else W({target:A,proto:!0,forced:St||h},n);return n},Gt=GA.set,jt=GA.getterFor("Array Iterator");Ft(Array,"Array",(function(g,A){Gt(this,{type:"Array Iterator",target:p(g),index:0,kind:A})}),(function(){var g=jt(this),A=g.target,t=g.kind,C=g.index++;return!A||C>=A.length?(g.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:C,done:!1}:"values"==t?{value:A[C],done:!1}:{value:[C,A[C]],done:!1}}),"values");kt.Arguments=kt.Array;var Lt=hA("toStringTag");for(var Vt in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Yt=I[Vt],Wt=Yt&&Yt.prototype;Wt&&bA(Wt)!==Lt&&L(Wt,Lt,Vt),kt[Vt]=kt.Array}var Ht=function(g){return function(A,t){var C,e,I=String(u(A)),i=Ag(t),o=I.length;return i<0||i>=o?g?"":void 0:(C=I.charCodeAt(i))<55296||C>56319||i+1===o||(e=I.charCodeAt(i+1))<56320||e>57343?g?I.charAt(i):C:g?I.slice(i,i+2):e-56320+(C-55296<<10)+65536}},Qt={codeAt:Ht(!1),charAt:Ht(!0)}.charAt,Ut=GA.set,_t=GA.getterFor("String Iterator");Ft(String,"String",(function(g){Ut(this,{type:"String Iterator",string:String(g),index:0})}),(function(){var g,A=_t(this),t=A.string,C=A.index;return C>=t.length?{value:void 0,done:!0}:(g=Qt(t,C),A.index+=g.length,{value:g,done:!1})}));var Kt=hA("iterator"),Xt=function(g){if(null!=g)return g[Kt]||g["@@iterator"]||kt[bA(g)]},Jt=function(g){var A=Xt(g);if("function"!=typeof A)throw TypeError(String(g)+" is not iterable");return F(A.call(g))},qt=Xt,$t=function(g,A,t,C){try{return C?A(F(t)[0],t[1]):A(t)}catch(A){var e=g.return;throw void 0!==e&&F(e.call(g)),A}},gC=hA("iterator"),AC=Array.prototype,tC=function(g){return void 0!==g&&(kt.Array===g||AC[gC]===g)},CC=hA("iterator"),eC=!1;try{var IC=0,iC={next:function(){return{done:!!IC++}},return:function(){eC=!0}};iC[CC]=function(){return this},Array.from(iC,(function(){throw 2}))}catch(g){}var oC=!function(g,A){if(!A&&!eC)return!1;var t=!1;try{var C={};C[CC]=function(){return{next:function(){return{done:t=!0}}}},g(C)}catch(g){}return t}((function(g){Array.from(g)}));W({target:"Array",stat:!0,forced:oC},{from:function(g){var A,t,C,e,I,i,o=cg(g),n="function"==typeof this?this:Array,r=arguments.length,s=r>1?arguments[1]:void 0,a=void 0!==s,d=Xt(o),h=0;if(a&&(s=Z(s,r>2?arguments[2]:void 0,2)),null==d||n==Array&&tC(d))for(t=new n(A=Cg(o.length));A>h;h++)i=a?s(o[h],h):o[h],Bg(t,h,i);else for(I=(e=d.call(o)).next,t=new n;!(C=I.call(e)).done;h++)i=a?$t(e,s,[C.value,h],!0):C.value,Bg(t,h,i);return t.length=h,t}});var nC=S.Array.from,rC=nC;W({target:"Object",stat:!0,sham:!o},{create:eA});var sC=S.Object,aC=function(g,A){return sC.create(g,A)},dC=aC,hC=Eg;var lC,cC=function(g,A,t){return A in g?hC(g,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):g[A]=t,g},uC="\t\n\v\f\r \u2028\u2029\ufeff",pC="["+uC+"]",vC=RegExp("^"+pC+pC+"*"),fC=RegExp(pC+pC+"*$"),yC=function(g){return function(A){var t=String(u(A));return 1&g&&(t=t.replace(vC,"")),2&g&&(t=t.replace(fC,"")),t}},bC={start:yC(1),end:yC(2),trim:yC(3)},mC=bC.trim;W({target:"String",proto:!0,forced:(lC="trim",i((function(){return!!uC[lC]()||"
"!="
"[lC]()||uC[lC].name!==lC})))},{trim:function(){return mC(this)}});K("String").trim;var wC=function(g,A){var t=[][g];return!!t&&i((function(){t.call(null,A||function(){throw 1},1)}))},kC=Object.defineProperty,xC={},OC=function(g){throw g},EC=function(g,A){if(b(xC,g))return xC[g];A||(A={});var t=[][g],C=!!b(A,"ACCESSORS")&&A.ACCESSORS,e=b(A,0)?A[0]:OC,I=b(A,1)?A[1]:void 0;return xC[g]=!!t&&!i((function(){if(C&&!o)return!0;var g={length:-1};C?kC(g,1,{enumerable:!0,get:OC}):g[1]=1,t.call(g,e,I)}))},TC=WA.forEach,DC=wC("forEach"),NC=EC("forEach"),RC=DC&&NC?[].forEach:function(g){return TC(this,g,arguments.length>1?arguments[1]:void 0)};W({target:"Array",proto:!0,forced:[].forEach!=RC},{forEach:RC});var PC=K("Array").forEach,MC=Array.prototype,zC={DOMTokenList:!0,NodeList:!0},SC=function(g){var A=g.forEach;return g===MC||g instanceof Array&&A===MC.forEach||zC.hasOwnProperty(bA(g))?PC:A},BC=bC.trim,ZC=I.parseInt,FC=/^[+-]?0[Xx]/,GC=8!==ZC(uC+"08")||22!==ZC(uC+"0x16")?function(g,A){var t=BC(String(g));return ZC(t,A>>>0||(FC.test(t)?16:10))}:ZC;W({global:!0,forced:parseInt!=GC},{parseInt:GC});var jC=S.parseInt,LC=s.f,VC=function(g){return function(A){for(var t,C=p(A),e=hg(C),I=e.length,i=0,n=[];I>i;)t=e[i++],o&&!LC.call(C,t)||n.push(g?[t,C[t]]:C[t]);return n}},YC={entries:VC(!0),values:VC(!1)}.values;W({target:"Object",stat:!0},{values:function(g){return YC(g)}});S.Object.values;var WC,HC,QC=Pg("navigator","userAgent")||"",UC=I.process,_C=UC&&UC.versions,KC=_C&&_C.v8;KC?HC=(WC=KC.split("."))[0]+WC[1]:QC&&(!(WC=QC.match(/Edge\/(\d+)/))||WC[1]>=74)&&(WC=QC.match(/Chrome\/(\d+)/))&&(HC=WC[1]);var XC=HC&&+HC,JC=hA("species"),qC=function(g){return XC>=51||!i((function(){var A=[];return(A.constructor={})[JC]=function(){return{foo:1}},1!==A[g](Boolean).foo}))},$C=WA.filter,ge=qC("filter"),Ae=EC("filter");W({target:"Array",proto:!0,forced:!ge||!Ae},{filter:function(g){return $C(this,g,arguments.length>1?arguments[1]:void 0)}});var te=K("Array").filter,Ce=Array.prototype,ee=function(g){var A=g.filter;return g===Ce||g instanceof Array&&A===Ce.filter?te:A},Ie=i((function(){Tt(1)}));W({target:"Object",stat:!0,forced:Ie,sham:!xt},{getPrototypeOf:function(g){return Tt(cg(g))}});var ie=S.Object.getPrototypeOf,oe=ie,ne=ng.indexOf,re=[].indexOf,se=!!re&&1/[1].indexOf(1,-0)<0,ae=wC("indexOf"),de=EC("indexOf",{ACCESSORS:!0,1:0});W({target:"Array",proto:!0,forced:se||!ae||!de},{indexOf:function(g){return se?re.apply(this,arguments)||0:ne(this,g,arguments.length>1?arguments[1]:void 0)}});var he=K("Array").indexOf,le=Array.prototype,ce=function(g){var A=g.indexOf;return g===le||g instanceof Array&&A===le.indexOf?he:A};W({target:"Array",stat:!0},{isArray:Hg});var ue=S.Array.isArray,pe=ue;var ve=function(g){if(pe(g))return g},fe=hA("iterator"),ye=function(g){var A=Object(g);return void 0!==A[fe]||"@@iterator"in A||kt.hasOwnProperty(bA(A))},be=hA("isConcatSpreadable"),me=XC>=51||!i((function(){var g=[];return g[be]=!1,g.concat()[0]!==g})),we=qC("concat"),ke=function(g){if(!v(g))return!1;var A=g[be];return void 0!==A?!!A:Hg(g)};W({target:"Array",proto:!0,forced:!me||!we},{concat:function(g){var A,t,C,e,I,i=cg(this),o=LA(i,0),n=0;for(A=-1,C=arguments.length;A<C;A++)if(ke(I=-1===A?i:arguments[A])){if(n+(e=Cg(I.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(t=0;t<e;t++,n++)t in I&&Bg(o,n,I[t])}else{if(n>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Bg(o,n++,I)}return o.length=n,o}});var xe=Object.freeze({__proto__:null});uA("asyncIterator");var Oe=Object.freeze({__proto__:null});uA("hasInstance"),uA("isConcatSpreadable"),uA("iterator"),uA("match"),uA("matchAll"),uA("replace"),uA("search"),uA("species"),uA("split"),uA("toPrimitive"),uA("toStringTag"),uA("unscopables"),xA(Math,"Math",!0),xA(I.JSON,"JSON",!0),C(xe),C(Oe);var Ee=S.Symbol;uA("asyncDispose"),uA("dispose"),uA("observable"),uA("patternMatch"),uA("replaceAll");var Te=Ee;var De=function(g,A){if(void 0!==Te&&ye(Object(g))){var t=[],C=!0,e=!1,I=void 0;try{for(var i,o=Jt(g);!(C=(i=o.next()).done)&&(t.push(i.value),!A||t.length!==A);C=!0);}catch(g){e=!0,I=g}finally{try{C||null==o.return||o.return()}finally{if(e)throw I}}return t}},Ne=nC,Re=qC("slice"),Pe=EC("slice",{ACCESSORS:!0,0:0,1:2}),Me=hA("species"),ze=[].slice,Se=Math.max;W({target:"Array",proto:!0,forced:!Re||!Pe},{slice:function(g,A){var t,C,e,I=p(this),i=Cg(I.length),o=ig(g,i),n=ig(void 0===A?i:A,i);if(Hg(I)&&("function"!=typeof(t=I.constructor)||t!==Array&&!Hg(t.prototype)?v(t)&&null===(t=t[Me])&&(t=void 0):t=void 0,t===Array||void 0===t))return ze.call(I,o,n);for(C=new(void 0===t?Array:t)(Se(n-o,0)),e=0;o<n;o++,e++)o in I&&Bg(C,e,I[o]);return C.length=e,C}});var Be=K("Array").slice,Ze=Array.prototype,Fe=function(g){var A=g.slice;return g===Ze||g instanceof Array&&A===Ze.slice?Be:A},Ge=Fe;var je=function(g,A){(null==A||A>g.length)&&(A=g.length);for(var t=0,C=new Array(A);t<A;t++)C[t]=g[t];return C};var Le=function(g,A){var t;if(g){if("string"==typeof g)return je(g,A);var C=Ge(t=Object.prototype.toString.call(g)).call(t,8,-1);return"Object"===C&&g.constructor&&(C=g.constructor.name),"Map"===C||"Set"===C?Ne(g):"Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?je(g,A):void 0}};var Ve=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Ye=function(g,A){return ve(g)||De(g,A)||Le(g,A)||Ve()};W({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var We=S.Date.now,He=i((function(){hg(1)}));W({target:"Object",stat:!0,forced:He},{keys:function(g){return hg(cg(g))}});var Qe=S.Object.keys,Ue=WA.map,_e=qC("map"),Ke=EC("map");W({target:"Array",proto:!0,forced:!_e||!Ke},{map:function(g){return Ue(this,g,arguments.length>1?arguments[1]:void 0)}});var Xe=K("Array").map,Je=Array.prototype,qe=function(g){var A=g.map;return g===Je||g instanceof Array&&A===Je.map?Xe:A},$e=ue,gI=lA.f("iterator"),AI=gI,tI=t((function(g){function A(t){return g.exports=A="function"==typeof Te&&"symbol"==typeof AI?function(g){return typeof g}:function(g){return g&&"function"==typeof Te&&g.constructor===Te&&g!==Te.prototype?"symbol":typeof g},A(t)}g.exports=A}));W({target:"Reflect",stat:!0},{ownKeys:Sg});var CI=S.Reflect.ownKeys,eI=Fe;var II=function(g){if(pe(g))return je(g)};var iI=function(g){if(void 0!==Te&&ye(Object(g)))return Ne(g)};var oI=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var nI=function(g){return II(g)||iI(g)||Le(g)||oI()},rI=K("Array").concat,sI=Array.prototype,aI=function(g){var A=g.concat;return g===sI||g instanceof Array&&A===sI.concat?rI:A},dI=Ee;function hI(g,A){var t;if(void 0===dI||null==qt(g)){if($e(g)||(t=function(g,A){var t;if(!g)return;if("string"==typeof g)return lI(g,A);var C=eI(t=Object.prototype.toString.call(g)).call(t,8,-1);"Object"===C&&g.constructor&&(C=g.constructor.name);if("Map"===C||"Set"===C)return rC(g);if("Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return lI(g,A)}(g))||A&&g&&"number"==typeof g.length){t&&(g=t);var C=0,e=function(){};return{s:e,n:function(){return C>=g.length?{done:!0}:{done:!1,value:g[C++]}},e:function(g){throw g},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var I,i=!0,o=!1;return{s:function(){t=Jt(g)},n:function(){var g=t.next();return i=g.done,g},e:function(g){o=!0,I=g},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw I}}}}function lI(g,A){(null==A||A>g.length)&&(A=g.length);for(var t=0,C=new Array(A);t<A;t++)C[t]=g[t];return C}
/**
* vis-util
* https://github.com/visjs/vis-util
*
* utilitie collection for visjs
*
* @version 4.3.4
* @date 2020-08-01T15:11:53.524Z
*
* @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.
*/var cI=dI("DELETE");function uI(){var g=pI.apply(void 0,arguments);return fI(g),g}function pI(){for(var g=arguments.length,A=new Array(g),t=0;t<g;t++)A[t]=arguments[t];if(A.length<2)return A[0];var C;if(A.length>2)return pI.apply(void 0,aI(C=[uI(A[0],A[1])]).call(C,nI(eI(A).call(A,2))));var e,I=A[0],i=A[1],o=hI(CI(i));try{for(o.s();!(e=o.n()).done;){var n=e.value;Object.prototype.propertyIsEnumerable.call(i,n)&&(i[n]===cI?delete I[n]:null===I[n]||null===i[n]||"object"!==tI(I[n])||"object"!==tI(i[n])||$e(I[n])||$e(i[n])?I[n]=vI(i[n]):I[n]=pI(I[n],i[n]))}}catch(g){o.e(g)}finally{o.f()}return I}function vI(g){return $e(g)?qe(g).call(g,(function(g){return vI(g)})):"object"===tI(g)&&null!==g?pI({},g):g}function fI(g){for(var A=0,t=Qe(g);A<t.length;A++){var C=t[A];g[C]===cI?delete g[C]:"object"===tI(g[C])&&null!==g[C]&&fI(g[C])}}function yI(){for(var g=arguments.length,A=new Array(g),t=0;t<g;t++)A[t]=arguments[t];return bI(A.length?A:[We()])}function bI(g){var A=function(){for(var g=mI(),A=g(" "),t=g(" "),C=g(" "),e=0;e<arguments.length;e++)(A-=g(e<0||arguments.length<=e?void 0:arguments[e]))<0&&(A+=1),(t-=g(e<0||arguments.length<=e?void 0:arguments[e]))<0&&(t+=1),(C-=g(e<0||arguments.length<=e?void 0:arguments[e]))<0&&(C+=1);return[A,t,C]}(g),t=Ye(A,3),C=t[0],e=t[1],I=t[2],i=1,o=function(){var g=2091639*C+2.3283064365386963e-10*i;return C=e,e=I,I=g-(i=0|g)};return o.uint32=function(){return 4294967296*o()},o.fract53=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.algorithm="Alea",o.seed=g,o.version="0.9",o}function mI(){var g=4022871197;return function(A){for(var t=A.toString(),C=0;C<t.length;C++){var e=.02519603282416938*(g+=t.charCodeAt(C));e-=g=e>>>0,g=(e*=g)>>>0,g+=4294967296*(e-=g)}return 2.3283064365386963e-10*(g>>>0)}}var wI=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,kI=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,xI=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,OI=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function EI(g){if(g)for(;!0===g.hasChildNodes();){var A=g.firstChild;A&&(EI(A),g.removeChild(A))}}function TI(g){return g instanceof String||"string"==typeof g}function DI(g){return"object"===tI(g)&&null!==g}function NI(g,A,t,C){var e=!1;!0===C&&(e=null===A[t]&&void 0!==g[t]),e?delete g[t]:g[t]=A[t]}function RI(g,A){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var C in g)if(void 0!==A[C])if(null===A[C]||"object"!==tI(A[C]))NI(g,A,C,t);else{var e=g[C],I=A[C];DI(e)&&DI(I)&&RI(e,I,t)}}function PI(g,A,t){var C=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if($e(t))throw new TypeError("Arrays are not supported by deepExtend");for(var e=0;e<g.length;e++){var I=g[e];if(Object.prototype.hasOwnProperty.call(t,I))if(t[I]&&t[I].constructor===Object)void 0===A[I]&&(A[I]={}),A[I].constructor===Object?zI(A[I],t[I],!1,C):NI(A,t,I,C);else{if($e(t[I]))throw new TypeError("Arrays are not supported by deepExtend");NI(A,t,I,C)}}return A}function MI(g,A,t){var C=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if($e(t))throw new TypeError("Arrays are not supported by deepExtend");for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&-1===ce(g).call(g,e))if(t[e]&&t[e].constructor===Object)void 0===A[e]&&(A[e]={}),A[e].constructor===Object?zI(A[e],t[e]):NI(A,t,e,C);else if($e(t[e])){A[e]=[];for(var I=0;I<t[e].length;I++)A[e].push(t[e][I])}else NI(A,t,e,C);return A}function zI(g,A){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],C=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var e in A)if(Object.prototype.hasOwnProperty.call(A,e)||!0===t)if("object"===tI(A[e])&&null!==A[e]&&oe(A[e])===Object.prototype)void 0===g[e]?g[e]=zI({},A[e],t):"object"===tI(g[e])&&null!==g[e]&&oe(g[e])===Object.prototype?zI(g[e],A[e],t):NI(g,A,e,C);else if($e(A[e])){var I;g[e]=eI(I=A[e]).call(I)}else NI(g,A,e,C);return g}function SI(g,A){var t;return aI(t=[]).call(t,nI(g),[A])}function BI(g){return eI(g).call(g)}function ZI(g){return g.getBoundingClientRect().top}function FI(g,A){if($e(g))for(var t=g.length,C=0;C<t;C++)A(g[C],C,g);else for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&A(g[e],e,g)}function GI(g){var A;switch(g.length){case 3:case 4:return(A=kI.exec(g))?{r:jC(A[1]+A[1],16),g:jC(A[2]+A[2],16),b:jC(A[3]+A[3],16)}:null;case 6:case 7:return(A=wI.exec(g))?{r:jC(A[1],16),g:jC(A[2],16),b:jC(A[3],16)}:null;default:return null}}function jI(g,A){if(-1!==ce(g).call(g,"rgba"))return g;if(-1!==ce(g).call(g,"rgb")){var t=g.substr(ce(g).call(g,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+A+")"}var C=GI(g);return null==C?g:"rgba("+C.r+","+C.g+","+C.b+","+A+")"}function LI(g,A,t){var C;return"#"+eI(C=((1<<24)+(g<<16)+(A<<8)+t).toString(16)).call(C,1)}function VI(g,A){if(TI(g)){var t=g;if(UI(t)){var C,e=qe(C=t.substr(4).substr(0,t.length-5).split(",")).call(C,(function(g){return jC(g)}));t=LI(e[0],e[1],e[2])}if(!0===QI(t)){var I=function(g){var A=GI(g);if(!A)throw new TypeError("'".concat(g,"' is not a valid color."));return YI(A.r,A.g,A.b)}(t),i={h:I.h,s:.8*I.s,v:Math.min(1,1.02*I.v)},o={h:I.h,s:Math.min(1,1.25*I.s),v:.8*I.v},n=HI(o.h,o.s,o.v),r=HI(i.h,i.s,i.v);return{background:t,border:n,highlight:{background:r,border:n},hover:{background:r,border:n}}}return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}return A?{background:g.background||A.background,border:g.border||A.border,highlight:TI(g.highlight)?{border:g.highlight,background:g.highlight}:{background:g.highlight&&g.highlight.background||A.highlight.background,border:g.highlight&&g.highlight.border||A.highlight.border},hover:TI(g.hover)?{border:g.hover,background:g.hover}:{border:g.hover&&g.hover.border||A.hover.border,background:g.hover&&g.hover.background||A.hover.background}}:{background:g.background||void 0,border:g.border||void 0,highlight:TI(g.highlight)?{border:g.highlight,background:g.highlight}:{background:g.highlight&&g.highlight.background||void 0,border:g.highlight&&g.highlight.border||void 0},hover:TI(g.hover)?{border:g.hover,background:g.hover}:{border:g.hover&&g.hover.border||void 0,background:g.hover&&g.hover.background||void 0}}}function YI(g,A,t){g/=255,A/=255,t/=255;var C=Math.min(g,Math.min(A,t)),e=Math.max(g,Math.max(A,t));return C===e?{h:0,s:0,v:C}:{h:60*((g===C?3:t===C?1:5)-(g===C?A-t:t===C?g-A:t-g)/(e-C))/360,s:(e-C)/e,v:e}}function WI(g,A,t){var C,e,I,i=Math.floor(6*g),o=6*g-i,n=t*(1-A),r=t*(1-o*A),s=t*(1-(1-o)*A);switch(i%6){case 0:C=t,e=s,I=n;break;case 1:C=r,e=t,I=n;break;case 2:C=n,e=t,I=s;break;case 3:C=n,e=r,I=t;break;case 4:C=s,e=n,I=t;break;case 5:C=t,e=n,I=r}return{r:Math.floor(255*C),g:Math.floor(255*e),b:Math.floor(255*I)}}function HI(g,A,t){var C=WI(g,A,t);return LI(C.r,C.g,C.b)}function QI(g){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(g)}function UI(g){return xI.test(g)}function _I(g){return OI.test(g)}function KI(g){if(null===g||"object"!==tI(g))return null;if(g instanceof Element)return g;var A=dC(g);for(var t in g)Object.prototype.hasOwnProperty.call(g,t)&&"object"==tI(g[t])&&(A[t]=KI(g[t]));return A}function XI(g,A,t){var C=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e=function(g){return null!=g},I=function(g){return null!==g&&"object"===tI(g)},i=function(g){for(var A in g)if(Object.prototype.hasOwnProperty.call(g,A))return!1;return!0};if(!I(g))throw new Error("Parameter mergeTarget must be an object");if(!I(A))throw new Error("Parameter options must be an object");if(!e(t))throw new Error("Parameter option must have a value");if(!I(C))throw new Error("Parameter globalOptions must be an object");var o=function(g,A,t){I(g[t])||(g[t]={});var C=A[t],e=g[t];for(var i in C)Object.prototype.hasOwnProperty.call(C,i)&&(e[i]=C[i])},n=A[t],r=I(C)&&!i(C),s=r?C[t]:void 0,a=s?s.enabled:void 0;if(void 0!==n){if("boolean"==typeof n)return I(g[t])||(g[t]={}),void(g[t].enabled=n);if(null===n&&!I(g[t])){if(!e(s))return;g[t]=dC(s)}if(I(n)){var d=!0;void 0!==n.enabled?d=n.enabled:void 0!==a&&(d=s.enabled),o(g,A,t),g[t].enabled=d}}}var JI={linear:function(g){return g},easeInQuad:function(g){return g*g},easeOutQuad:function(g){return g*(2-g)},easeInOutQuad:function(g){return g<.5?2*g*g:(4-2*g)*g-1},easeInCubic:function(g){return g*g*g},easeOutCubic:function(g){return--g*g*g+1},easeInOutCubic:function(g){return g<.5?4*g*g*g:(g-1)*(2*g-2)*(2*g-2)+1},easeInQuart:function(g){return g*g*g*g},easeOutQuart:function(g){return 1- --g*g*g*g},easeInOutQuart:function(g){return g<.5?8*g*g*g*g:1-8*--g*g*g*g},easeInQuint:function(g){return g*g*g*g*g},easeOutQuint:function(g){return 1+--g*g*g*g*g},easeInOutQuint:function(g){return g<.5?16*g*g*g*g*g:1+16*--g*g*g*g*g}};function qI(g,A){var t;$e(A)||(A=[A]);var C,e=hI(g);try{for(e.s();!(C=e.n()).done;){var I=C.value;if(I){t=I[A[0]];for(var i=1;i<A.length;i++)t&&(t=t[A[i]]);if(void 0!==t)break}}}catch(g){e.e(g)}finally{e.f()}return t}var $I=qC("splice"),gi=EC("splice",{ACCESSORS:!0,0:0,1:2}),Ai=Math.max,ti=Math.min;W({target:"Array",proto:!0,forced:!$I||!gi},{splice:function(g,A){var t,C,e,I,i,o,n=cg(this),r=Cg(n.length),s=ig(g,r),a=arguments.length;if(0===a?t=C=0:1===a?(t=0,C=r-s):(t=a-2,C=ti(Ai(Ag(A),0),r-s)),r+t-C>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(e=LA(n,C),I=0;I<C;I++)(i=s+I)in n&&Bg(e,I,n[i]);if(e.length=C,t<C){for(I=s;I<r-C;I++)o=I+t,(i=I+C)in n?n[o]=n[i]:delete n[o];for(I=r;I>r-C+t;I--)delete n[I-1]}else if(t>C)for(I=r-C;I>s;I--)o=I+t-1,(i=I+C-1)in n?n[o]=n[i]:delete n[o];for(I=0;I<t;I++)n[I+s]=arguments[I+2];return n.length=r-C+t,e}});var Ci=K("Array").splice,ei=Array.prototype,Ii=function(g){var A=g.splice;return g===ei||g instanceof Array&&A===ei.splice?Ci:A},ii=ng.includes,oi=EC("indexOf",{ACCESSORS:!0,1:0});W({target:"Array",proto:!0,forced:!oi},{includes:function(g){return ii(this,g,arguments.length>1?arguments[1]:void 0)}});var ni=K("Array").includes,ri=hA("match"),si=function(g){if(function(g){var A;return v(g)&&(void 0!==(A=g[ri])?!!A:"RegExp"==h(g))}(g))throw TypeError("The method doesn't accept regular expressions");return g},ai=hA("match");W({target:"String",proto:!0,forced:!function(g){var A=/./;try{"/./"[g](A)}catch(t){try{return A[ai]=!1,"/./"[g](A)}catch(g){}}return!1}("includes")},{includes:function(g){return!!~String(u(this)).indexOf(si(g),arguments.length>1?arguments[1]:void 0)}});var di=K("String").includes,hi=Array.prototype,li=String.prototype,ci=function(g){var A=g.includes;return g===hi||g instanceof Array&&A===hi.includes?ni:"string"==typeof g||g===li||g instanceof String&&A===li.includes?di:A};function ui(g){return ki=g,function(){var g={};xi=0,void(Oi=ki.charAt(0)),Fi(),"strict"===Ei&&(g.strict=!0,Fi());"graph"!==Ei&&"digraph"!==Ei||(g.type=Ei,Fi());Ti===bi&&(g.id=Ei,Fi());if("{"!=Ei)throw Wi("Angle bracket { expected");if(Fi(),Gi(g),"}"!=Ei)throw Wi("Angle bracket } expected");if(Fi(),""!==Ei)throw Wi("End of file expected");return Fi(),delete g.node,delete g.edge,delete g.graph,g}()}var pi={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},vi=dC(pi);vi.color="color.color",vi.style="dashes";var fi=0,yi=1,bi=2,mi=3,wi={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},ki="",xi=0,Oi="",Ei="",Ti=fi;function Di(){xi++,Oi=ki.charAt(xi)}function Ni(){return ki.charAt(xi+1)}var Ri=/[a-zA-Z_0-9.:#]/;function Pi(g){return Ri.test(g)}function Mi(g,A){if(g||(g={}),A)for(var t in A)A.hasOwnProperty(t)&&(g[t]=A[t]);return g}function zi(g,A,t){for(var C=A.split("."),e=g;C.length;){var I=C.shift();C.length?(e[I]||(e[I]={}),e=e[I]):e[I]=t}}function Si(g,A){for(var t,C,e=null,I=[g],i=g;i.parent;)I.push(i.parent),i=i.parent;if(i.nodes)for(t=0,C=i.nodes.length;t<C;t++)if(A.id===i.nodes[t].id){e=i.nodes[t];break}for(e||(e={id:A.id},g.node&&(e.attr=Mi(e.attr,g.node))),t=I.length-1;t>=0;t--){var o,n=I[t];n.nodes||(n.nodes=[]),-1===ce(o=n.nodes).call(o,e)&&n.nodes.push(e)}A.attr&&(e.attr=Mi(e.attr,A.attr))}function Bi(g,A){if(g.edges||(g.edges=[]),g.edges.push(A),g.edge){var t=Mi({},g.edge);A.attr=Mi(t,A.attr)}}function Zi(g,A,t,C,e){var I={from:A,to:t,type:C};return g.edge&&(I.attr=Mi({},g.edge)),I.attr=Mi(I.attr||{},e),null!=e&&e.hasOwnProperty("arrows")&&null!=e.arrows&&(I.arrows={to:{enabled:!0,type:e.arrows.type}},e.arrows=null),I}function Fi(){for(Ti=fi,Ei="";" "===Oi||"\t"===Oi||"\n"===Oi||"\r"===Oi;)Di();do{var g=!1;if("#"===Oi){for(var A=xi-1;" "===ki.charAt(A)||"\t"===ki.charAt(A);)A--;if("\n"===ki.charAt(A)||""===ki.charAt(A)){for(;""!=Oi&&"\n"!=Oi;)Di();g=!0}}if("/"===Oi&&"/"===Ni()){for(;""!=Oi&&"\n"!=Oi;)Di();g=!0}if("/"===Oi&&"*"===Ni()){for(;""!=Oi;){if("*"===Oi&&"/"===Ni()){Di(),Di();break}Di()}g=!0}for(;" "===Oi||"\t"===Oi||"\n"===Oi||"\r"===Oi;)Di()}while(g);if(""!==Oi){var t=Oi+Ni();if(wi[t])return Ti=yi,Ei=t,Di(),void Di();if(wi[Oi])return Ti=yi,Ei=Oi,void Di();if(Pi(Oi)||"-"===Oi){for(Ei+=Oi,Di();Pi(Oi);)Ei+=Oi,Di();return"false"===Ei?Ei=!1:"true"===Ei?Ei=!0:isNaN(Number(Ei))||(Ei=Number(Ei)),void(Ti=bi)}if('"'===Oi){for(Di();""!=Oi&&('"'!=Oi||'"'===Oi&&'"'===Ni());)'"'===Oi?(Ei+=Oi,Di()):"\\"===Oi&&"n"===Ni()?(Ei+="\n",Di()):Ei+=Oi,Di();if('"'!=Oi)throw Wi('End of string " expected');return Di(),void(Ti=bi)}for(Ti=mi;""!=Oi;)Ei+=Oi,Di();throw new SyntaxError('Syntax error in part "'+Hi(Ei,30)+'"')}Ti=yi}function Gi(g){for(;""!==Ei&&"}"!=Ei;)ji(g),";"===Ei&&Fi()}function ji(g){var A=Li(g);if(A)Vi(g,A);else if(!function(g){if("node"===Ei)return Fi(),g.node=Yi(),"node";if("edge"===Ei)return Fi(),g.edge=Yi(),"edge";if("graph"===Ei)return Fi(),g.graph=Yi(),"graph";return null}(g)){if(Ti!=bi)throw Wi("Identifier expected");var t=Ei;if(Fi(),"="===Ei){if(Fi(),Ti!=bi)throw Wi("Identifier expected");g[t]=Ei,Fi()}else!function(g,A){var t={id:A},C=Yi();C&&(t.attr=C);Si(g,t),Vi(g,A)}(g,t)}}function Li(g){var A=null;if("subgraph"===Ei&&((A={}).type="subgraph",Fi(),Ti===bi&&(A.id=Ei,Fi())),"{"===Ei){if(Fi(),A||(A={}),A.parent=g,A.node=g.node,A.edge=g.edge,A.graph=g.graph,Gi(A),"}"!=Ei)throw Wi("Angle bracket } expected");Fi(),delete A.node,delete A.edge,delete A.graph,delete A.parent,g.subgraphs||(g.subgraphs=[]),g.subgraphs.push(A)}return A}function Vi(g,A){for(;"->"===Ei||"--"===Ei;){var t,C=Ei;Fi();var e=Li(g);if(e)t=e;else{if(Ti!=bi)throw Wi("Identifier or subgraph expected");Si(g,{id:t=Ei}),Fi()}Bi(g,Zi(g,A,t,C,Yi())),A=t}}function Yi(){for(var g,A,t=null,C={dashed:!0,solid:!1,dotted:[1,5]},e={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},I=new Array,i=new Array;"["===Ei;){for(Fi(),t={};""!==Ei&&"]"!=Ei;){if(Ti!=bi)throw Wi("Attribute name expected");var o=Ei;if(Fi(),"="!=Ei)throw Wi("Equal sign = expected");if(Fi(),Ti!=bi)throw Wi("Attribute value expected");var n=Ei;"style"===o&&(n=C[n]),"arrowhead"===o&&(o="arrows",n={to:{enabled:!0,type:e[n]}}),"arrowtail"===o&&(o="arrows",n={from:{enabled:!0,type:e[n]}}),I.push({attr:t,name:o,value:n}),i.push(o),Fi(),","==Ei&&Fi()}if("]"!=Ei)throw Wi("Bracket ] expected");Fi()}if(ci(i).call(i,"dir")){var r={arrows:{}};for(g=0;g<I.length;g++)if("arrows"===I[g].name)if(null!=I[g].value.to)r.arrows.to=g;else{if(null==I[g].value.from)throw Wi("Invalid value of arrows");r.arrows.from=g}else"dir"===I[g].name&&(r.dir=g);var s,a,d=I[r.dir].value;if(!ci(i).call(i,"arrows"))if("both"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=I.length-1,I.push({attr:I[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=I.length-1;else if("forward"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=I.length-1;else if("back"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=I.length-1;else{if("none"!==d)throw Wi('Invalid dir type "'+d+'"');I.push({attr:I[r.dir].attr,name:"arrows",value:""}),r.arrows.to=I.length-1}if("both"===d)r.arrows.to&&r.arrows.from?(a=I[r.arrows.to].value.to.type,s=I[r.arrows.from].value.from.type,I[r.arrows.to]={attr:I[r.arrows.to].attr,name:I[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}},Ii(I).call(I,r.arrows.from,1)):r.arrows.to?(a=I[r.arrows.to].value.to.type,s="arrow",I[r.arrows.to]={attr:I[r.arrows.to].attr,name:I[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="arrow",s=I[r.arrows.from].value.from.type,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}});else if("back"===d)r.arrows.to&&r.arrows.from?(a="",s=I[r.arrows.from].value.from.type,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.to?(a="",s="arrow",r.arrows.from=r.arrows.to,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="",s=I[r.arrows.from].value.from.type,I[r.arrows.to]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}),I[r.arrows.from]={attr:I[r.arrows.from].attr,