vis-network
Version:
A dynamic, browser-based visualization library.
51 lines • 457 kB
JavaScript
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 8.5.4
* @date 2020-11-23T19:52:22.114Z
*
* @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 t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},n=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},r=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,h={f:a&&!s.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:s},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,c=function(t){return d.call(t).slice(8,-1)},u="".split,f=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?u.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return f(p(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!g(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!g(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!g(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!g(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,b=function(t,e){return m.call(t,e)},w=n.document,k=g(w)&&g(w.createElement),_=function(t){return k?w.createElement(t):{}},x=!r&&!o((function(){return 7!=Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,O={f:r?E:function(t,e){if(t=v(t),e=y(e,!0),x)try{return E(t,e)}catch(t){}if(b(t,e))return l(!h.f.call(t,e),t[e])}},S=/#|\.prototype\./,C=function(t,e){var i=D[T(t)];return i==P||i!=M&&("function"==typeof e?o(e):!!e)},T=C.normalize=function(t){return String(t).replace(S,".").toLowerCase()},D=C.data={},M=C.NATIVE="N",P=C.POLYFILL="P",I=C,B={},z=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},N=function(t,e,i){if(z(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},A=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},F=Object.defineProperty,j={f:r?F:function(t,e,i){if(A(t),e=y(e,!0),A(i),x)try{return F(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},R=r?function(t,e,i){return j.f(t,e,l(1,i))}:function(t,e,i){return t[e]=i,t},L=O.f,H=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},W=function(t,e){var i,o,r,s,a,h,l,d,c=t.target,u=t.global,f=t.stat,p=t.proto,v=u?n:f?n[c]:(n[c]||{}).prototype,g=u?B:B[c]||(B[c]={}),y=g.prototype;for(r in e)i=!I(u?r:c+(f?".":"#")+r,t.forced)&&v&&b(v,r),a=g[r],i&&(h=t.noTargetGet?(d=L(v,r))&&d.value:v[r]),s=i&&h?h:e[r],i&&typeof a==typeof s||(l=t.bind&&i?N(s,n):t.wrap&&i?H(s):p&&"function"==typeof s?N(Function.call,s):s,(t.sham||s&&s.sham||a&&a.sham)&&R(l,"sham",!0),g[r]=l,p&&(b(B,o=c+"Prototype")||R(B,o,{}),B[o][r]=s,t.real&&y&&!y[r]&&R(y,r,s)))},q=[].slice,V={},U=function(t,e,i){if(!(e in V)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";V[e]=Function("C,a","return new C("+n.join(",")+")")}return V[e](t,i)},Y=Function.bind||function(t){var e=z(this),i=q.call(arguments,1),n=function(){var o=i.concat(q.call(arguments));return this instanceof n?U(e,o.length,o):e.apply(t,o)};return g(e.prototype)&&(n.prototype=e.prototype),n};W({target:"Function",proto:!0},{bind:Y});var X=function(t){return B[t+"Prototype"]},G=X("Function").bind,K=Function.prototype,$=function(t){var e=t.bind;return t===K||t instanceof Function&&e===K.bind?G:e},Z=Math.ceil,Q=Math.floor,J=function(t){return isNaN(t=+t)?0:(t>0?Q:Z)(t)},tt=Math.min,et=function(t){return t>0?tt(J(t),9007199254740991):0},it=Math.max,nt=Math.min,ot=function(t,e){var i=J(t);return i<0?it(i+e,0):nt(i,e)},rt=function(t){return function(e,i,n){var o,r=v(e),s=et(r.length),a=ot(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},st={includes:rt(!0),indexOf:rt(!1)},at={},ht=st.indexOf,lt=function(t,e){var i,n=v(t),o=0,r=[];for(i in n)!b(at,i)&&b(n,i)&&r.push(i);for(;e.length>o;)b(n,i=e[o++])&&(~ht(r,i)||r.push(i));return r},dt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ct=Object.keys||function(t){return lt(t,dt)},ut={f:Object.getOwnPropertySymbols},ft=function(t){return Object(p(t))},pt=Object.assign,vt=Object.defineProperty,gt=!pt||o((function(){if(r&&1!==pt({b:1},pt(vt({},"a",{enumerable:!0,get:function(){vt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=pt({},t)[i]||ct(pt({},e)).join("")!=n}))?function(t,e){for(var i=ft(t),n=arguments.length,o=1,s=ut.f,a=h.f;n>o;)for(var l,d=f(arguments[o++]),c=s?ct(d).concat(s(d)):ct(d),u=c.length,p=0;u>p;)l=c[p++],r&&!a.call(d,l)||(i[l]=d[l]);return i}:pt;W({target:"Object",stat:!0,forced:Object.assign!==gt},{assign:gt});var yt=B.Object.assign;function mt(t,e,i,n){t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!1),t.closePath()}function bt(t,e,i,n,o,r){var s=Math.PI/180;n-2*r<0&&(r=n/2),o-2*r<0&&(r=o/2),t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.arc(e+n-r,i+r,r,270*s,360*s,!1),t.lineTo(e+n,i+o-r),t.arc(e+n-r,i+o-r,r,0,90*s,!1),t.lineTo(e+r,i+o),t.arc(e+r,i+o-r,r,90*s,180*s,!1),t.lineTo(e,i+r),t.arc(e+r,i+r,r,180*s,270*s,!1),t.closePath()}function wt(t,e,i,n,o){var r=.5522848,s=n/2*r,a=o/2*r,h=e+n,l=i+o,d=e+n/2,c=i+o/2;t.beginPath(),t.moveTo(e,c),t.bezierCurveTo(e,c-a,d-s,i,d,i),t.bezierCurveTo(d+s,i,h,c-a,h,c),t.bezierCurveTo(h,c+a,d+s,l,d,l),t.bezierCurveTo(d-s,l,e,c+a,e,c),t.closePath()}function kt(t,e,i,n,o){var r=o*(1/3),s=.5522848,a=n/2*s,h=r/2*s,l=e+n,d=i+r,c=e+n/2,u=i+r/2,f=i+(o-r/2),p=i+o;t.beginPath(),t.moveTo(l,u),t.bezierCurveTo(l,u+h,c+a,d,c,d),t.bezierCurveTo(c-a,d,e,u+h,e,u),t.bezierCurveTo(e,u-h,c-a,i,c,i),t.bezierCurveTo(c+a,i,l,u-h,l,u),t.lineTo(l,f),t.bezierCurveTo(l,f+h,c+a,p,c,p),t.bezierCurveTo(c-a,p,e,f+h,e,f),t.lineTo(e,u)}function _t(t,e,i,n,o,r){t.beginPath(),t.moveTo(e,i);for(var s=r.length,a=n-e,h=o-i,l=h/a,d=Math.sqrt(a*a+h*h),c=0,u=!0,f=0,p=+r[0];d>=.1;)(p=+r[c++%s])>d&&(p=d),f=Math.sqrt(p*p/(1+l*l)),e+=f=a<0?-f:f,i+=l*f,!0===u?t.lineTo(e,i):t.moveTo(e,i),d-=p,u=!u}var xt={circle:mt,dashedLine:_t,database:kt,diamond:function(t,e,i,n){t.beginPath(),t.lineTo(e,i+n),t.lineTo(e+n,i),t.lineTo(e,i-n),t.lineTo(e-n,i),t.closePath()},ellipse:wt,ellipse_vis:wt,hexagon:function(t,e,i,n){t.beginPath();var o=2*Math.PI/6;t.moveTo(e+n,i);for(var r=1;r<6;r++)t.lineTo(e+n*Math.cos(o*r),i+n*Math.sin(o*r));t.closePath()},roundRect:bt,square:function(t,e,i,n){t.beginPath(),t.rect(e-n,i-n,2*n,2*n),t.closePath()},star:function(t,e,i,n){t.beginPath(),i+=.1*(n*=.82);for(var o=0;o<10;o++){var r=o%2==0?1.3*n:.5*n;t.lineTo(e+r*Math.sin(2*o*Math.PI/10),i-r*Math.cos(2*o*Math.PI/10))}t.closePath()},triangle:function(t,e,i,n){t.beginPath(),i+=.275*(n*=1.15);var o=2*n,r=o/2,s=Math.sqrt(3)/6*o,a=Math.sqrt(o*o-r*r);t.moveTo(e,i-(a-s)),t.lineTo(e+r,i+s),t.lineTo(e-r,i+s),t.lineTo(e,i-(a-s)),t.closePath()},triangleDown:function(t,e,i,n){t.beginPath(),i-=.275*(n*=1.15);var o=2*n,r=o/2,s=Math.sqrt(3)/6*o,a=Math.sqrt(o*o-r*r);t.moveTo(e,i+(a-s)),t.lineTo(e+r,i-s),t.lineTo(e-r,i-s),t.lineTo(e,i+(a-s)),t.closePath()}};var Et=e((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}));W({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:j.f});var Ot=e((function(t){var e=B.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),St=Ot,Ct=r?Object.defineProperties:function(t,e){A(t);for(var i,n=ct(e),o=n.length,r=0;o>r;)j.f(t,i=n[r++],e[i]);return t};W({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:Ct});var Tt=e((function(t){var e=B.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Dt=function(t){return"function"==typeof t?t:void 0},Mt=function(t,e){return arguments.length<2?Dt(B[t])||Dt(n[t]):B[t]&&B[t][e]||n[t]&&n[t][e]},Pt=dt.concat("length","prototype"),It={f:Object.getOwnPropertyNames||function(t){return lt(t,Pt)}},Bt=Mt("Reflect","ownKeys")||function(t){var e=It.f(A(t)),i=ut.f;return i?e.concat(i(t)):e},zt=function(t,e,i){var n=y(e);n in t?j.f(t,n,l(0,i)):t[n]=i};W({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,i,n=v(t),o=O.f,r=Bt(n),s={},a=0;r.length>a;)void 0!==(i=o(n,e=r[a++]))&&zt(s,e,i);return s}});var Nt=B.Object.getOwnPropertyDescriptors,At=O.f,Ft=o((function(){At(1)}));W({target:"Object",stat:!0,forced:!r||Ft,sham:!r},{getOwnPropertyDescriptor:function(t,e){return At(v(t),e)}});var jt,Rt=e((function(t){var e=B.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Lt=Rt,Ht=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Wt=Ht&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qt=Array.isArray||function(t){return"Array"==c(t)},Vt=Mt("document","documentElement"),Ut=n["__core-js_shared__"]||function(t,e){try{R(n,t,e)}catch(i){n[t]=e}return e}("__core-js_shared__",{}),Yt=e((function(t){(t.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.7.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Xt=0,Gt=Math.random(),Kt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Xt+Gt).toString(36)},$t=Yt("keys"),Zt=function(t){return $t[t]||($t[t]=Kt(t))},Qt=Zt("IE_PROTO"),Jt=function(){},te=function(t){return"<script>"+t+"<\/script>"},ee=function(){try{jt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ee=jt?function(t){t.write(te("")),t.close();var e=t.parentWindow.Object;return t=null,e}(jt):((e=_("iframe")).style.display="none",Vt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(te("document.F=Object")),t.close(),t.F);for(var i=dt.length;i--;)delete ee.prototype[dt[i]];return ee()};at[Qt]=!0;var ie=Object.create||function(t,e){var i;return null!==t?(Jt.prototype=A(t),i=new Jt,Jt.prototype=null,i[Qt]=t):i=ee(),void 0===e?i:Ct(i,e)},ne=It.f,oe={}.toString,re="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],se={f:function(t){return re&&"[object Window]"==oe.call(t)?function(t){try{return ne(t)}catch(t){return re.slice()}}(t):ne(v(t))}},ae=function(t,e,i,n){n&&n.enumerable?t[e]=i:R(t,e,i)},he=Yt("wks"),le=n.Symbol,de=Wt?le:le&&le.withoutSetter||Kt,ce=function(t){return b(he,t)||(Ht&&b(le,t)?he[t]=le[t]:he[t]=de("Symbol."+t)),he[t]},ue={f:ce},fe=j.f,pe=function(t){var e=B.Symbol||(B.Symbol={});b(e,t)||fe(e,t,{value:ue.f(t)})},ve={};ve[ce("toStringTag")]="z";var ge="[object z]"===String(ve),ye=ce("toStringTag"),me="Arguments"==c(function(){return arguments}()),be=ge?c:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ye))?i:me?c(e):"Object"==(n=c(e))&&"function"==typeof e.callee?"Arguments":n},we=ge?{}.toString:function(){return"[object "+be(this)+"]"},ke=j.f,_e=ce("toStringTag"),xe=function(t,e,i,n){if(t){var o=i?t:t.prototype;b(o,_e)||ke(o,_e,{configurable:!0,value:e}),n&&!ge&&R(o,"toString",we)}},Ee=Function.toString;"function"!=typeof Ut.inspectSource&&(Ut.inspectSource=function(t){return Ee.call(t)});var Oe,Se,Ce,Te=Ut.inspectSource,De=n.WeakMap,Me="function"==typeof De&&/native code/.test(Te(De)),Pe=n.WeakMap;if(Me){var Ie=Ut.state||(Ut.state=new Pe),Be=Ie.get,ze=Ie.has,Ne=Ie.set;Oe=function(t,e){return e.facade=t,Ne.call(Ie,t,e),e},Se=function(t){return Be.call(Ie,t)||{}},Ce=function(t){return ze.call(Ie,t)}}else{var Ae=Zt("state");at[Ae]=!0,Oe=function(t,e){return e.facade=t,R(t,Ae,e),e},Se=function(t){return b(t,Ae)?t[Ae]:{}},Ce=function(t){return b(t,Ae)}}var Fe={set:Oe,get:Se,has:Ce,enforce:function(t){return Ce(t)?Se(t):Oe(t,{})},getterFor:function(t){return function(e){var i;if(!g(e)||(i=Se(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},je=ce("species"),Re=function(t,e){var i;return qt(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!qt(i.prototype)?g(i)&&null===(i=i[je])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},Le=[].push,He=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,r=6==t,s=5==t||r;return function(a,h,l,d){for(var c,u,p=ft(a),v=f(p),g=N(h,l,3),y=et(v.length),m=0,b=d||Re,w=e?b(a,y):i?b(a,0):void 0;y>m;m++)if((s||m in v)&&(u=g(c=v[m],m,p),t))if(e)w[m]=u;else if(u)switch(t){case 3:return!0;case 5:return c;case 6:return m;case 2:Le.call(w,c)}else if(o)return!1;return r?-1:n||o?o:w}},We={forEach:He(0),map:He(1),filter:He(2),some:He(3),every:He(4),find:He(5),findIndex:He(6)},qe=We.forEach,Ve=Zt("hidden"),Ue=ce("toPrimitive"),Ye=Fe.set,Xe=Fe.getterFor("Symbol"),Ge=Object.prototype,Ke=n.Symbol,$e=Mt("JSON","stringify"),Ze=O.f,Qe=j.f,Je=se.f,ti=h.f,ei=Yt("symbols"),ii=Yt("op-symbols"),ni=Yt("string-to-symbol-registry"),oi=Yt("symbol-to-string-registry"),ri=Yt("wks"),si=n.QObject,ai=!si||!si.prototype||!si.prototype.findChild,hi=r&&o((function(){return 7!=ie(Qe({},"a",{get:function(){return Qe(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Ze(Ge,e);n&&delete Ge[e],Qe(t,e,i),n&&t!==Ge&&Qe(Ge,e,n)}:Qe,li=function(t,e){var i=ei[t]=ie(Ke.prototype);return Ye(i,{type:"Symbol",tag:t,description:e}),r||(i.description=e),i},di=Wt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ke},ci=function(t,e,i){t===Ge&&ci(ii,e,i),A(t);var n=y(e,!0);return A(i),b(ei,n)?(i.enumerable?(b(t,Ve)&&t[Ve][n]&&(t[Ve][n]=!1),i=ie(i,{enumerable:l(0,!1)})):(b(t,Ve)||Qe(t,Ve,l(1,{})),t[Ve][n]=!0),hi(t,n,i)):Qe(t,n,i)},ui=function(t,e){A(t);var i=v(e),n=ct(i).concat(gi(i));return qe(n,(function(e){r&&!fi.call(i,e)||ci(t,e,i[e])})),t},fi=function(t){var e=y(t,!0),i=ti.call(this,e);return!(this===Ge&&b(ei,e)&&!b(ii,e))&&(!(i||!b(this,e)||!b(ei,e)||b(this,Ve)&&this[Ve][e])||i)},pi=function(t,e){var i=v(t),n=y(e,!0);if(i!==Ge||!b(ei,n)||b(ii,n)){var o=Ze(i,n);return!o||!b(ei,n)||b(i,Ve)&&i[Ve][n]||(o.enumerable=!0),o}},vi=function(t){var e=Je(v(t)),i=[];return qe(e,(function(t){b(ei,t)||b(at,t)||i.push(t)})),i},gi=function(t){var e=t===Ge,i=Je(e?ii:v(t)),n=[];return qe(i,(function(t){!b(ei,t)||e&&!b(Ge,t)||n.push(ei[t])})),n};if(Ht||(ae((Ke=function(){if(this instanceof Ke)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Kt(t),i=function(t){this===Ge&&i.call(ii,t),b(this,Ve)&&b(this[Ve],e)&&(this[Ve][e]=!1),hi(this,e,l(1,t))};return r&&ai&&hi(Ge,e,{configurable:!0,set:i}),li(e,t)}).prototype,"toString",(function(){return Xe(this).tag})),ae(Ke,"withoutSetter",(function(t){return li(Kt(t),t)})),h.f=fi,j.f=ci,O.f=pi,It.f=se.f=vi,ut.f=gi,ue.f=function(t){return li(ce(t),t)},r&&Qe(Ke.prototype,"description",{configurable:!0,get:function(){return Xe(this).description}})),W({global:!0,wrap:!0,forced:!Ht,sham:!Ht},{Symbol:Ke}),qe(ct(ri),(function(t){pe(t)})),W({target:"Symbol",stat:!0,forced:!Ht},{for:function(t){var e=String(t);if(b(ni,e))return ni[e];var i=Ke(e);return ni[e]=i,oi[i]=e,i},keyFor:function(t){if(!di(t))throw TypeError(t+" is not a symbol");if(b(oi,t))return oi[t]},useSetter:function(){ai=!0},useSimple:function(){ai=!1}}),W({target:"Object",stat:!0,forced:!Ht,sham:!r},{create:function(t,e){return void 0===e?ie(t):ui(ie(t),e)},defineProperty:ci,defineProperties:ui,getOwnPropertyDescriptor:pi}),W({target:"Object",stat:!0,forced:!Ht},{getOwnPropertyNames:vi,getOwnPropertySymbols:gi}),W({target:"Object",stat:!0,forced:o((function(){ut.f(1)}))},{getOwnPropertySymbols:function(t){return ut.f(ft(t))}}),$e){var yi=!Ht||o((function(){var t=Ke();return"[null]"!=$e([t])||"{}"!=$e({a:t})||"{}"!=$e(Object(t))}));W({target:"JSON",stat:!0,forced:yi},{stringify:function(t,e,i){for(var n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e,(g(e)||void 0!==t)&&!di(t))return qt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!di(e))return e}),o[1]=e,$e.apply(null,o)}})}Ke.prototype[Ue]||R(Ke.prototype,Ue,Ke.prototype.valueOf),xe(Ke,"Symbol"),at[Ve]=!0;var mi,bi,wi,ki=B.Object.getOwnPropertySymbols,_i={},xi=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ei=Zt("IE_PROTO"),Oi=Object.prototype,Si=xi?Object.getPrototypeOf:function(t){return t=ft(t),b(t,Ei)?t[Ei]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Oi:null},Ci=(ce("iterator"),!1);[].keys&&("next"in(wi=[].keys())?(bi=Si(Si(wi)))!==Object.prototype&&(mi=bi):Ci=!0),null==mi&&(mi={});var Ti={IteratorPrototype:mi,BUGGY_SAFARI_ITERATORS:Ci},Di=Ti.IteratorPrototype,Mi=function(){return this},Pi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return A(i),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),Ii=Ti.IteratorPrototype,Bi=Ti.BUGGY_SAFARI_ITERATORS,zi=ce("iterator"),Ni=function(){return this},Ai=function(t,e,i,n,o,r,s){!function(t,e,i){var n=e+" Iterator";t.prototype=ie(Di,{next:l(1,i)}),xe(t,n,!1,!0),_i[n]=Mi}(i,e,n);var a,h,d,c=function(t){if(t===o&&g)return g;if(!Bi&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},u=e+" Iterator",f=!1,p=t.prototype,v=p[zi]||p["@@iterator"]||o&&p[o],g=!Bi&&v||c(o),y="Array"==e&&p.entries||v;if(y&&(a=Si(y.call(new t)),Ii!==Object.prototype&&a.next&&(xe(a,u,!0,!0),_i[u]=Ni)),"values"==o&&v&&"values"!==v.name&&(f=!0,g=function(){return v.call(this)}),s&&p[zi]!==g&&R(p,zi,g),_i[e]=g,o)if(h={values:c("values"),keys:r?g:c("keys"),entries:c("entries")},s)for(d in h)(Bi||f||!(d in p))&&ae(p,d,h[d]);else W({target:e,proto:!0,forced:Bi||f},h);return h},Fi=Fe.set,ji=Fe.getterFor("Array Iterator");Ai(Array,"Array",(function(t,e){Fi(this,{type:"Array Iterator",target:v(t),index:0,kind:e})}),(function(){var t=ji(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");_i.Arguments=_i.Array;var Ri=ce("toStringTag");for(var Li 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 Hi=n[Li],Wi=Hi&&Hi.prototype;Wi&&be(Wi)!==Ri&&R(Wi,Ri,Li),_i[Li]=_i.Array}var qi=function(t){return function(e,i){var n,o,r=String(p(e)),s=J(i),a=r.length;return s<0||s>=a?t?"":void 0:(n=r.charCodeAt(s))<55296||n>56319||s+1===a||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):n:t?r.slice(s,s+2):o-56320+(n-55296<<10)+65536}},Vi={codeAt:qi(!1),charAt:qi(!0)}.charAt,Ui=Fe.set,Yi=Fe.getterFor("String Iterator");Ai(String,"String",(function(t){Ui(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Yi(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Vi(i,n),e.index+=t.length,{value:t,done:!1})}));var Xi=ce("iterator"),Gi=function(t){if(null!=t)return t[Xi]||t["@@iterator"]||_i[be(t)]},Ki=function(t){var e=Gi(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return A(e.call(t))},$i=Gi,Zi=function(t){var e=t.return;if(void 0!==e)return A(e.call(t)).value},Qi=function(t,e,i,n){try{return n?e(A(i)[0],i[1]):e(i)}catch(e){throw Zi(t),e}},Ji=ce("iterator"),tn=Array.prototype,en=function(t){return void 0!==t&&(_i.Array===t||tn[Ji]===t)},nn=ce("iterator"),on=!1;try{var rn=0,sn={next:function(){return{done:!!rn++}},return:function(){on=!0}};sn[nn]=function(){return this},Array.from(sn,(function(){throw 2}))}catch(t){}var an=!function(t,e){if(!e&&!on)return!1;var i=!1;try{var n={};n[nn]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));W({target:"Array",stat:!0,forced:an},{from:function(t){var e,i,n,o,r,s,a=ft(t),h="function"==typeof this?this:Array,l=arguments.length,d=l>1?arguments[1]:void 0,c=void 0!==d,u=Gi(a),f=0;if(c&&(d=N(d,l>2?arguments[2]:void 0,2)),null==u||h==Array&&en(u))for(i=new h(e=et(a.length));e>f;f++)s=c?d(a[f],f):a[f],zt(i,f,s);else for(r=(o=u.call(a)).next,i=new h;!(n=r.call(o)).done;f++)s=c?Qi(o,d,[n.value,f],!0):n.value,zt(i,f,s);return i.length=f,i}});var hn=B.Array.from,ln=hn;W({target:"Object",stat:!0,sham:!r},{create:ie});var dn=B.Object,cn=function(t,e){return dn.create(t,e)},un=cn,fn=Ot;var pn,vn=function(t,e,i){return e in t?fn(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},gn="\t\n\v\f\r \u2028\u2029\ufeff",yn="["+gn+"]",mn=RegExp("^"+yn+yn+"*"),bn=RegExp(yn+yn+"*$"),wn=function(t){return function(e){var i=String(p(e));return 1&t&&(i=i.replace(mn,"")),2&t&&(i=i.replace(bn,"")),i}},kn={start:wn(1),end:wn(2),trim:wn(3)},_n=kn.trim;W({target:"String",proto:!0,forced:(pn="trim",o((function(){return!!gn[pn]()||"
"!="
"[pn]()||gn[pn].name!==pn})))},{trim:function(){return _n(this)}});var xn=X("String").trim,En=String.prototype,On=function(t){var e=t.trim;return"string"==typeof t||t===En||t instanceof String&&e===En.trim?xn:e},Sn=function(t,e){var i=[][t];return!!i&&o((function(){i.call(null,e||function(){throw 1},1)}))},Cn=Object.defineProperty,Tn={},Dn=function(t){throw t},Mn=function(t,e){if(b(Tn,t))return Tn[t];e||(e={});var i=[][t],n=!!b(e,"ACCESSORS")&&e.ACCESSORS,s=b(e,0)?e[0]:Dn,a=b(e,1)?e[1]:void 0;return Tn[t]=!!i&&!o((function(){if(n&&!r)return!0;var t={length:-1};n?Cn(t,1,{enumerable:!0,get:Dn}):t[1]=1,i.call(t,s,a)}))},Pn=We.forEach,In=Sn("forEach"),Bn=Mn("forEach"),zn=In&&Bn?[].forEach:function(t){return Pn(this,t,arguments.length>1?arguments[1]:void 0)};W({target:"Array",proto:!0,forced:[].forEach!=zn},{forEach:zn});var Nn=X("Array").forEach,An=Array.prototype,Fn={DOMTokenList:!0,NodeList:!0},jn=function(t){var e=t.forEach;return t===An||t instanceof Array&&e===An.forEach||Fn.hasOwnProperty(be(t))?Nn:e},Rn=kn.trim,Ln=n.parseInt,Hn=/^[+-]?0[Xx]/,Wn=8!==Ln(gn+"08")||22!==Ln(gn+"0x16")?function(t,e){var i=Rn(String(t));return Ln(i,e>>>0||(Hn.test(i)?16:10))}:Ln;W({global:!0,forced:parseInt!=Wn},{parseInt:Wn});var qn=B.parseInt,Vn=h.f,Un=function(t){return function(e){for(var i,n=v(e),o=ct(n),s=o.length,a=0,h=[];s>a;)i=o[a++],r&&!Vn.call(n,i)||h.push(t?[i,n[i]]:n[i]);return h}},Yn={entries:Un(!0),values:Un(!1)}.values;W({target:"Object",stat:!0},{values:function(t){return Yn(t)}});var Xn,Gn,Kn=B.Object.values,$n=Mt("navigator","userAgent")||"",Zn=n.process,Qn=Zn&&Zn.versions,Jn=Qn&&Qn.v8;Jn?Gn=(Xn=Jn.split("."))[0]+Xn[1]:$n&&(!(Xn=$n.match(/Edge\/(\d+)/))||Xn[1]>=74)&&(Xn=$n.match(/Chrome\/(\d+)/))&&(Gn=Xn[1]);var to=Gn&&+Gn,eo=ce("species"),io=function(t){return to>=51||!o((function(){var e=[];return(e.constructor={})[eo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},no=We.filter,oo=io("filter"),ro=Mn("filter");W({target:"Array",proto:!0,forced:!oo||!ro},{filter:function(t){return no(this,t,arguments.length>1?arguments[1]:void 0)}});var so=X("Array").filter,ao=Array.prototype,ho=function(t){var e=t.filter;return t===ao||t instanceof Array&&e===ao.filter?so:e},lo=o((function(){Si(1)}));W({target:"Object",stat:!0,forced:lo,sham:!xi},{getPrototypeOf:function(t){return Si(ft(t))}});var co=B.Object.getPrototypeOf,uo=co,fo=st.indexOf,po=[].indexOf,vo=!!po&&1/[1].indexOf(1,-0)<0,go=Sn("indexOf"),yo=Mn("indexOf",{ACCESSORS:!0,1:0});W({target:"Array",proto:!0,forced:vo||!go||!yo},{indexOf:function(t){return vo?po.apply(this,arguments)||0:fo(this,t,arguments.length>1?arguments[1]:void 0)}});var mo=X("Array").indexOf,bo=Array.prototype,wo=function(t){var e=t.indexOf;return t===bo||t instanceof Array&&e===bo.indexOf?mo:e};W({target:"Array",stat:!0},{isArray:qt});var ko=B.Array.isArray,_o=ko;var xo=function(t){if(_o(t))return t},Eo=ce("iterator"),Oo=function(t){var e=Object(t);return void 0!==e[Eo]||"@@iterator"in e||_i.hasOwnProperty(be(e))},So=ce("isConcatSpreadable"),Co=to>=51||!o((function(){var t=[];return t[So]=!1,t.concat()[0]!==t})),To=io("concat"),Do=function(t){if(!g(t))return!1;var e=t[So];return void 0!==e?!!e:qt(t)};W({target:"Array",proto:!0,forced:!Co||!To},{concat:function(t){var e,i,n,o,r,s=ft(this),a=Re(s,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(Do(r=-1===e?s:arguments[e])){if(h+(o=et(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<o;i++,h++)i in r&&zt(a,h,r[i])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");zt(a,h++,r)}return a.length=h,a}}),pe("asyncIterator"),pe("hasInstance"),pe("isConcatSpreadable"),pe("iterator"),pe("match"),pe("matchAll"),pe("replace"),pe("search"),pe("species"),pe("split"),pe("toPrimitive"),pe("toStringTag"),pe("unscopables"),xe(n.JSON,"JSON",!0);var Mo=B.Symbol;pe("asyncDispose"),pe("dispose"),pe("observable"),pe("patternMatch"),pe("replaceAll");var Po=Mo;var Io=function(t,e){if(void 0!==Po&&Oo(Object(t))){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=Ki(t);!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw r}}return i}},Bo=hn,zo=io("slice"),No=Mn("slice",{ACCESSORS:!0,0:0,1:2}),Ao=ce("species"),Fo=[].slice,jo=Math.max;W({target:"Array",proto:!0,forced:!zo||!No},{slice:function(t,e){var i,n,o,r=v(this),s=et(r.length),a=ot(t,s),h=ot(void 0===e?s:e,s);if(qt(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!qt(i.prototype)?g(i)&&null===(i=i[Ao])&&(i=void 0):i=void 0,i===Array||void 0===i))return Fo.call(r,a,h);for(n=new(void 0===i?Array:i)(jo(h-a,0)),o=0;a<h;a++,o++)a in r&&zt(n,o,r[a]);return n.length=o,n}});var Ro=X("Array").slice,Lo=Array.prototype,Ho=function(t){var e=t.slice;return t===Lo||t instanceof Array&&e===Lo.slice?Ro:e},Wo=Ho;var qo=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n};var Vo=function(t,e){var i;if(t){if("string"==typeof t)return qo(t,e);var n=Wo(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Bo(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qo(t,e):void 0}};var Uo=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 Yo=function(t,e){return xo(t)||Io(t,e)||Vo(t,e)||Uo()};W({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Xo=B.Date.now,Go=o((function(){ct(1)}));W({target:"Object",stat:!0,forced:Go},{keys:function(t){return ct(ft(t))}});var Ko=B.Object.keys,$o=We.map,Zo=io("map"),Qo=Mn("map");W({target:"Array",proto:!0,forced:!Zo||!Qo},{map:function(t){return $o(this,t,arguments.length>1?arguments[1]:void 0)}});var Jo=X("Array").map,tr=Array.prototype,er=function(t){var e=t.map;return t===tr||t instanceof Array&&e===tr.map?Jo:e},ir=ko,nr=ue.f("iterator"),or=nr,rr=e((function(t){function e(i){return t.exports=e="function"==typeof Po&&"symbol"==typeof or?function(t){return typeof t}:function(t){return t&&"function"==typeof Po&&t.constructor===Po&&t!==Po.prototype?"symbol":typeof t},e(i)}t.exports=e}));W({target:"Reflect",stat:!0},{ownKeys:Bt});var sr=B.Reflect.ownKeys,ar=Ho;var hr=function(t){if(_o(t))return qo(t)};var lr=function(t){if(void 0!==Po&&Oo(Object(t)))return Bo(t)};var dr=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 cr=function(t){return hr(t)||lr(t)||Vo(t)||dr()},ur=X("Array").concat,fr=Array.prototype,pr=function(t){var e=t.concat;return t===fr||t instanceof Array&&e===fr.concat?ur:e},vr=Mo;function gr(t,e){var i=Ko(t);if(ki){var n=ki(t);e&&(n=ho(n).call(n,(function(e){return Lt(t,e).enumerable}))),i.push.apply(i,n)}return i}function yr(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)jn(i=gr(Object(n),!0)).call(i,(function(e){vn(t,e,n[e])}));else if(Nt)Tt(t,Nt(n));else{var o;jn(o=gr(Object(n))).call(o,(function(e){St(t,e,Lt(n,e))}))}}return t}function mr(t,e){var i;if(void 0===vr||null==$i(t)){if(ir(t)||(i=function(t,e){var i;if(!t)return;if("string"==typeof t)return br(t,e);var n=ar(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return ln(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return br(t,e)}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 r,s=!0,a=!1;return{s:function(){i=Ki(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function br(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}
/**
* 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 wr=vr("DELETE");function kr(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return _r.apply(void 0,pr(e=[{},t]).call(e,n))}function _r(){var t=xr.apply(void 0,arguments);return Or(t),t}function xr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<2)return e[0];var n;if(e.length>2)return xr.apply(void 0,pr(n=[_r(e[0],e[1])]).call(n,cr(ar(e).call(e,2))));var o,r=e[0],s=e[1],a=mr(sr(s));try{for(a.s();!(o=a.n()).done;){var h=o.value;Object.prototype.propertyIsEnumerable.call(s,h)&&(s[h]===wr?delete r[h]:null===r[h]||null===s[h]||"object"!==rr(r[h])||"object"!==rr(s[h])||ir(r[h])||ir(s[h])?r[h]=Er(s[h]):r[h]=xr(r[h],s[h]))}}catch(t){a.e(t)}finally{a.f()}return r}function Er(t){return ir(t)?er(t).call(t,(function(t){return Er(t)})):"object"===rr(t)&&null!==t?xr({},t):t}function Or(t){for(var e=0,i=Ko(t);e<i.length;e++){var n=i[e];t[n]===wr?delete t[n]:"object"===rr(t[n])&&null!==t[n]&&Or(t[n])}}function Sr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Cr(e.length?e:[Xo()])}function Cr(t){var e=function(){for(var t=Tr(),e=t(" "),i=t(" "),n=t(" "),o=0;o<arguments.length;o++)(e-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(e+=1),(i-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(i+=1),(n-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(n+=1);return[e,i,n]}(t),i=Yo(e,3),n=i[0],o=i[1],r=i[2],s=1,a=function(){var t=2091639*n+2.3283064365386963e-10*s;return n=o,o=r,r=t-(s=0|t)};return a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.algorithm="Alea",a.seed=t,a.version="0.9",a}function Tr(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var o=.02519603282416938*(t+=i.charCodeAt(n));o-=t=o>>>0,t=(o*=t)>>>0,t+=4294967296*(o-=t)}return 2.3283064365386963e-10*(t>>>0)}}var Dr=/^\/?Date\((-?\d+)/i,Mr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Pr=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Ir=/^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,Br=/^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 zr(t){return t instanceof Number||"number"==typeof t}function Nr(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Nr(e),t.removeChild(e))}}function Ar(t){return t instanceof String||"string"==typeof t}function Fr(t){return"object"===rr(t)&&null!==t}function jr(t,e,i,n){var o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}function Rr(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==rr(e[n]))jr(t,e,n,i);else{var o=t[n],r=e[n];Fr(o)&&Fr(r)&&Rr(o,r,i)}}var Lr=yt;function Hr(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ir(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o<t.length;o++){var r=t[o];if(Object.prototype.hasOwnProperty.call(i,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?qr(e[r],i[r],!1,n):jr(e,i,r,n);else{if(ir(i[r]))throw new TypeError("Arrays are not supported by deepExtend");jr(e,i,r,n)}}return e}function Wr(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ir(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&-1===wo(t).call(t,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?qr(e[o],i[o]):jr(e,i,o,n);else if(ir(i[o])){e[o]=[];for(var r=0;r<i[o].length;r++)e[o].push(i[o][r])}else jr(e,i,o,n);return e}function qr(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===i)if("object"===rr(e[o])&&null!==e[o]&&uo(e[o])===Object.prototype)void 0===t[o]?t[o]=qr({},e[o],i):"object"===rr(t[o])&&null!==t[o]&&uo(t[o])===Object.prototype?qr(t[o],e[o],i):jr(t,e,o,n);else if(ir(e[o])){var r;t[o]=ar(r=e[o]).call(r)}else jr(t,e,o,n);return t}function Vr(t,e){var i;return pr(i=[]).call(i,cr(t),[e])}function Ur(t){return ar(t).call(t)}function Yr(t){return t.getBoundingClientRect().left}function Xr(t){return t.getBoundingClientRect().top}function Gr(t,e){var i=t.className.split(" "),n=e.split(" ");i=pr(i).call(i,ho(n).call(n,(function(t){return wo(i).call(i,t)<0}))),t.className=i.join(" ")}function Kr(t,e){var i=t.className.split(" "),n=e.split(" ");i=ho(i).call(i,(function(t){return wo(n).call(n,t)<0})),t.className=i.join(" ")}function $r(t,e){if(ir(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e(t[o],o,t)}var Zr=Kn;function Qr(t,e,i,n){var o;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&wo(o=navigator.userAgent).call(o,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)}function Jr(t,e,i,n){var o;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&wo(o=navigator.userAgent).call(o,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)}var ts={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Ar(t)?t:zr(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function es(t){var e;switch(t.length){case 3:case 4:return(e=Pr.exec(t))?{r:qn(e[1]+e[1],16),g:qn(e[2]+e[2],16),b:qn(e[3]+e[3],16)}:null;case 6:case 7:return(e=Mr.exec(t))?{r:qn(e[1],16),g:qn(e[2],16),b:qn(e[3],16)}:null;default:return null}}function is(t,e){if(-1!==wo(t).call(t,"rgba"))return t;if(-1!==wo(t).call(t,"rgb")){var i=t.substr(wo(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=es(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}function ns(t,e,i){var n;return"#"+ar(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function os(t,e){if(Ar(t)){var i=t;if(us(i)){var n,o=er(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return qn(t)}));i=ns(o[0],o[1],o[2])}if(!0===cs(i)){var r=ds(i),s={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},a={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},h=ls(a.h,a.s,a.v),l=ls(s.h,s.s,s.v);return{background:i,border:h,highlight:{background:l,border:h},hover:{background:l,border:h}}}return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Ar(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Ar(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Ar(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Ar(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function rs(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),o=Math.max(t,Math.max(e,i));return n===o?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(o-n))/360,s:(o-n)/o,v:o}}var ss=function(t){var e,i={};return jn(e=t.split(";")).call(e,(function(t){if(""!=On(t).call(t)){var e,n,o=t.split(":"),r=On(e=o[0]).call(e),s=On(n=o[1]).call(n);i[r]=s}})),i},as=function(t){var e;return er(e=Ko(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function hs(t,e,i){var n,o,r,s=Math.floor(6*t),a=6*t-s,h=i*(1-e),l=i*(1-a*e),d=i*(1-(1-a)*e);switch(s%6){case 0:n=i,o=d,r=h;break;case 1:n=l,o=i,r=h;break;case 2:n=h,o=i,r=d;break;case 3:n=h,o=l,r=i;break;case 4:n=d,o=h,r=i;break;case 5:n=i,o=h,r=l}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*r)}}function ls(t,e,i){var n=hs(t,e,i);return ns(n.r,n.g,n.b)}function ds(t){var e=es(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return rs(e.r,e.g,e.b)}function cs(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function us(t){return Ir.test(t)}function fs(t){return Br.test(t)}function ps(t){if(null===t||"object"!==rr(t))return null;if(t instanceof Element)return t;var e=un(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==rr(t[i])&&(e[i]=ps(t[i]));return e}function vs(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!=t},r=function(t){return null!==t&&"object"===rr(t)},s=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!r(t))throw new Error("Parameter mergeTarget must be an object");if(!r(e))throw new Error("Parameter options must be an object");if(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");var a=function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])},h=e[i],l=r(n)&&!s(n),d=l?n[i]:void 0,c=d?d.enabled:void 0;if(void 0!==h){if("boolean"==typeof h)return r(t[i])||(t[i]={}),void(t[i].enabled=h);if(null===h&&!r(t[i])){if(!o(d))return;t[i]=un(d)}if(r(h)){var u=!0;void 0!==h.enabled?u=h.enabled:void 0!==c&&(u=d.enabled),a(t,e,i),t[i].enabled=u}}}var gs={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function ys(t,e){var i;ir(e)||(e=[e]);var n,o=mr(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r){i=r[e[0]];for(var s=1;s<e.length;s++)i&&(i=i[e[s]]);if(void 0!==i)break}}}catch(t){o.e(t)}finally{o.f()}return i}var ms=Object.freeze({__proto__:null,Alea:Sr,DELETE:wr,HSVToHex:ls,HSVToRGB:hs,RGBToHSV:rs,RGBToHex:ns,addClassName:Gr,addCssText:function(t,e){var i=ss(t.style.cssText),n=ss(e),o=yr(yr({},i),n);t.style.cssText=as(o)},addEventListener:Qr,binarySearchCustom:function(t,e,i,n){for(var o=0,r=0,s=t.length-1;r<=s&&o<1e4;){var a=Math.floor((r+s)/2),h=t[a],l=e(void 0===n?h[i]:h[i][n]);if(0==l)return a;-1==l?r=a+1:s=a-1,o++}return-1},binarySearchValue:function(t,e,i,n,o){var r,s,a,h,l=0,d=0,c=t.length-1;for(o=null!=o?o:function(t,e){return t==e?0:t<e?-1:1};d<=c&&l<1e4;){if(h=Math.floor(.5*(c+d)),r=t[Math.max(0,h-1)][i],s=t[h][i],a=t[Math.min(t.length-1,h+1)][i],0==o(s,e))return h;if(o(r,e)<0&&o(s,e)>0)return"before"==n?Math.max(0,h-1):h;if(o(s,e)<0&&o(a,e)>0)return"before"==n?h:Math.min(t.length-1,h+1);o(s,e)<0?d=h+1:c=h-1,l++}return-1},bridgeObject:ps,copyAndExtendArray:Vr,copyArray:Ur,deepExtend:qr,deepObjectAssign:_r,easingFunctions:gs,equalArray:function(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},extend:Lr,fillIfDefined:Rr,forEach:$r,getAbsoluteLeft:Yr,getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:Xr,getScrollBarWidth:function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},getTarget:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},getType:function(t){var e=rr(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":ir(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},hasParent:function(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},hexToHSV:ds,hexToRGB:es,insertSort:function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=void 0;for(o=i;o>0&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[o]=n}return t},isDate:function(t){if(t instanceof Date)return!0;if(Ar(t)){if(Dr.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:zr,isObject:Fr,isString:Ar,isValidHex:cs,isValidRGB:us,isValidRGBA:fs,mergeOptions:vs,option:ts,overrideOpacity:is,parseColor:os,preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:kr,recursiveDOMDelete:Nr,removeClassName:Kr,removeCssText:function(t,e){var i=ss(t.style.cssText),n=ss(e);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&delete i[o];t.style.cssText=as(i)},removeEventListener:Jr,selectiveBridgeObject:function(t,e){if(null!==e&&"object"===rr(e)){for(var i=un(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==rr(e[t[n]])&&(i[t[n]]=ps(e[t[n]]));return i}return null},selectiveDeepExtend:Hr,selectiveExtend:function(t,e){if(!ir(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];for(var r=0,s=n;r<s.length;r++)for(var a=s[r],h=0;h<t.length;h++){var l=t[h];a&&Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},selectiveNotDeepExtend:Wr,throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},toArray:Zr,topMost:ys,updateProperty:function(t,e,i){return t[e]!==i&&(t[e]=i,!0)}}),bs=io("splice"),ws=Mn("splice",{ACCESSORS:!0,0:0,1:2}),ks=Math.max,_s=Math.min;W({target:"Array",proto:!0,forced:!bs||!ws},{splice:function(t,e){var i,n,o,r,s,a,h=ft(this),l=et(h.length),d=ot(t,l),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=l-d):(i=c-2,n=_s(ks(J(e),0),l-d)),l+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Re(h,n),r=0;r<n;r++)(s=d+r)in h&&zt(o,r,h[s]);if(o.length=n,i<n){for(r=d;r<l-n;r++)a=r+i,(s=r+n)in h?h[a]=h[s]:delete h[a];for(r=l;r>l-n+i;r--)delete h[r-1]}else if(i>n)for(r=l-n;r>d;r--)a=r+i-1,(s=r+n-1)in h?h[a]=h[s]:delete h[a];for(r=0;r<i;r++)h[r+d]=arguments[r+2];return h.length=l-n+i,o}});var xs=X("Array").splice,Es=Array.prototype,Os=function(t){var e=t.splice;return t===Es||t instanceof Array&&e===Es.splice?xs:e},Ss=st.includes,Cs=Mn("indexOf",{ACCESSORS:!0,1:0});W({target:"Array",proto:!0,forced:!Cs},{includes:function(t){return Ss(this,t,arguments.length>1?arguments[1]:void 0)}});var Ts=X("Array").includes,Ds=ce("match"),Ms=function(t){if(function(t){var e;return g(t)&&(void 0!==(e=t[Ds])?!!e:"RegExp"==c(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Ps=ce("match");W({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[Ps]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(p(this)).indexOf(Ms(t),arguments.length>1?arguments[1]:void 0)}});var Is=X("String").includes,Bs=Array.prototype,zs=String.prototype,Ns=function(t){var e=t.includes;return t===Bs||t instanceof Array&&e===Bs.includes?Ts:"string"==typeof t||t===zs||t instanceof String&&e===zs.includes?Is:e};function As(t){return Vs=t,function(){var t={};Us=0,void(Ys=Vs.charAt(0)),oa(),"strict"===Xs&&(t.strict=!0,oa());"graph"!==Xs&&"digraph"!==Xs||(t.type=Xs,oa());Gs===Hs&&(t.id=Xs,oa());if("{"!=Xs)throw da("Angle bracket { expected");if(oa(),ra(t),"}"!=Xs)throw da("Angle bracket } expected");if(oa(),""!==Xs)throw da("End of file expected");return oa(),delete t.node,delete t.edge,delete t.graph,t}()}var Fs={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},js=un(Fs);js.color="color.color",js.style="dashes";var Rs=0,Ls=1,Hs=2,Ws=3,qs={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Vs="",Us=0,Ys="",Xs="",Gs=Rs;function Ks(){Us++,Ys=Vs.charAt(Us)}function $s(){return Vs.charAt(Us+1)}var Zs=/[a-zA-Z_0-9.:#]/;function Qs(t){return Zs.test(t)}function Js(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(