UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

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