roam/js/vis-network.min.js

34 lines
686 KiB
JavaScript
Raw Normal View History

2023-09-05 22:33:07 +00:00
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 0.0.0-no-version
* @date 2023-09-04T19:24:06.421Z
*
* @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,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((g="undefined"!=typeof globalThis?globalThis:g||self).vis=g.vis||{})}(this,(function(g){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var A={},C={get exports(){return A},set exports(g){A=g}},I=function(g){return g&&g.Math==Math&&g},i=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(g){try{return!!g()}catch(g){return!0}},n=!o((function(){var g=function(){}.bind();return"function"!=typeof g||g.hasOwnProperty("prototype")})),r=n,s=Function.prototype,a=s.apply,d=s.call,h="object"==typeof Reflect&&Reflect.apply||(r?d.bind(a):function(){return d.apply(a,arguments)}),l=n,c=Function.prototype,u=c.call,p=l&&c.bind.bind(u,u),f=l?p:function(g){return function(){return u.apply(g,arguments)}},v=f,y=v({}.toString),m=v("".slice),b=function(g){return m(y(g),8,-1)},w=b,x=f,k=function(g){if("Function"===w(g))return x(g)},E="object"==typeof document&&document.all,O={all:E,IS_HTMLDDA:void 0===E&&void 0!==E},T=O.all,D=O.IS_HTMLDDA?function(g){return"function"==typeof g||g===T}:function(g){return"function"==typeof g},N={},R=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),P=n,M=Function.prototype.call,B=P?M.bind(M):function(){return M.apply(M,arguments)},z={},S={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,F=Z&&!S.call({1:2},1);z.f=F?function(g){var t=Z(this,g);return!!t&&t.enumerable}:S;var G,j,L=function(g,t){return{enumerable:!(1&g),configurable:!(2&g),writable:!(4&g),value:t}},V=o,Y=b,W=Object,Q=f("".split),U=V((function(){return!W("z").propertyIsEnumerable(0)}))?function(g){return"String"==Y(g)?Q(g,""):W(g)}:W,_=function(g){return null==g},H=_,K=TypeError,X=function(g){if(H(g))throw K("Can't call method on "+g);return g},J=U,q=X,$=function(g){return J(q(g))},gg=D,tg=O.all,eg=O.IS_HTMLDDA?function(g){return"object"==typeof g?null!==g:gg(g)||g===tg}:function(g){return"object"==typeof g?null!==g:gg(g)},Ag={},Cg=Ag,Ig=i,ig=D,og=function(g){return ig(g)?g:void 0},ng=function(g,t){return arguments.length<2?og(Cg[g])||og(Ig[g]):Cg[g]&&Cg[g][t]||Ig[g]&&Ig[g][t]},rg=f({}.isPrototypeOf),sg="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ag=i,dg=sg,hg=ag.process,lg=ag.Deno,cg=hg&&hg.versions||lg&&lg.version,ug=cg&&cg.v8;ug&&(j=(G=ug.split("."))[0]>0&&G[0]<4?1:+(G[0]+G[1])),!j&&dg&&(!(G=dg.match(/Edge\/(\d+)/))||G[1]>=74)&&(G=dg.match(/Chrome\/(\d+)/))&&(j=+G[1]);var pg=j,fg=pg,vg=o,yg=!!Object.getOwnPropertySymbols&&!vg((function(){var g=Symbol();return!String(g)||!(Object(g)instanceof Symbol)||!Symbol.sham&&fg&&fg<41})),mg=yg&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bg=ng,wg=D,xg=rg,kg=Object,Eg=mg?function(g){return"symbol"==typeof g}:function(g){var t=bg("Symbol");return wg(t)&&xg(t.prototype,kg(g))},Og=String,Tg=function(g){try{return Og(g)}catch(g){return"Object"}},Dg=D,Ng=Tg,Rg=TypeError,Pg=function(g){if(Dg(g))return g;throw Rg(Ng(g)+" is not a function")},Mg=Pg,Bg=_,zg=function(g,t){var e=g[t];return Bg(e)?void 0:Mg(e)},Sg=B,Zg=D,Fg=eg,Gg=TypeError,jg={},Lg={get exports(){return jg},set exports(g){jg=g}},Vg=i,Yg=Object.defineProperty,Wg=function(g,t){try{Yg(Vg,g,{value:t,configurable:!0,writable:!0})}catch(e){Vg[g]=t}return t},Qg="__core-js_shared__",Ug=i[Qg]||Wg(Qg,{}),_g=Ug;(Lg.exports=function(g,t){return _g[g]||(_g[g]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Hg=X,Kg=Object,Xg=function(g){return Kg(Hg(g))},Jg=Xg,qg=f({}.hasOwnProperty),$g=Object.hasOwn||function(g,t){return qg(Jg(g)
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
* Licensed under the MIT license */function nv(){return nv=Object.assign||function(g){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var A in e)Object.prototype.hasOwnProperty.call(e,A)&&(g[A]=e[A])}return g},nv.apply(this,arguments)}function rv(g,t){g.prototype=Object.create(t.prototype),g.prototype.constructor=g,g.__proto__=t}function sv(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}iv="function"!=typeof Object.assign?function(g){if(null==g)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(g),e=1;e<arguments.length;e++){var A=arguments[e];if(null!=A)for(var C in A)A.hasOwnProperty(C)&&(t[C]=A[C])}return t}:Object.assign;var av,dv=iv,hv=["","webkit","Moz","MS","ms","o"],lv="undefined"==typeof document?{style:{}}:document.createElement("div"),cv="function",uv=Math.round,pv=Math.abs,fv=Date.now;function vv(g,t){for(var e,A,C=t[0].toUpperCase()+t.slice(1),I=0;I<hv.length;){if((A=(e=hv[I])?e+C:t)in g)return A;I++}}av="undefined"==typeof window?{}:window;var yv=vv(lv.style,"touchAction"),mv=void 0!==yv;var bv="compute",wv="auto",xv="manipulation",kv="none",Ev="pan-x",Ov="pan-y",Tv=function(){if(!mv)return!1;var g={},t=av.CSS&&av.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(e){return g[e]=!t||av.CSS.supports("touch-action",e)})),g}(),Dv="ontouchstart"in av,Nv=void 0!==vv(av,"PointerEvent"),Rv=Dv&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Pv="touch",Mv="mouse",Bv=25,zv=1,Sv=2,Zv=4,Fv=8,Gv=1,jv=2,Lv=4,Vv=8,Yv=16,Wv=jv|Lv,Qv=Vv|Yv,Uv=Wv|Qv,_v=["x","y"],Hv=["clientX","clientY"];function Kv(g,t,e){var A;if(g)if(g.forEach)g.forEach(t,e);else if(void 0!==g.length)for(A=0;A<g.length;)t.call(e,g[A],A,g),A++;else for(A in g)g.hasOwnProperty(A)&&t.call(e,g[A],A,g)}function Xv(g,t){return typeof g===cv?g.apply(t&&t[0]||void 0,t):g}function Jv(g,t){return g.indexOf(t)>-1}var qv=function(){function g(g,t){this.manager=g,this.set(t)}var t=g.prototype;return t.set=function(g){g===bv&&(g=this.compute()),mv&&this.manager.element.style&&Tv[g]&&(this.manager.element.style[yv]=g),this.actions=g.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var g=[];return Kv(this.manager.recognizers,(function(t){Xv(t.options.enable,[t])&&(g=g.concat(t.getTouchAction()))})),function(g){if(Jv(g,kv))return kv;var t=Jv(g,Ev),e=Jv(g,Ov);return t&&e?kv:t||e?t?Ev:Ov:Jv(g,xv)?xv:wv}(g.join(" "))},t.preventDefaults=function(g){var t=g.srcEvent,e=g.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var A=this.actions,C=Jv(A,kv)&&!Tv[kv],I=Jv(A,Ov)&&!Tv[Ov],i=Jv(A,Ev)&&!Tv[Ev];if(C){var o=1===g.pointers.length,n=g.distance<2,r=g.deltaTime<250;if(o&&n&&r)return}if(!i||!I)return C||I&&e&Wv||i&&e&Qv?this.preventSrc(t):void 0}},t.preventSrc=function(g){this.manager.session.prevented=!0,g.preventDefault()},g}();function $v(g,t){for(;g;){if(g===t)return!0;g=g.parentNode}return!1}function gy(g){var t=g.length;if(1===t)return{x:uv(g[0].clientX),y:uv(g[0].clientY)};for(var e=0,A=0,C=0;C<t;)e+=g[C].clientX,A+=g[C].clientY,C++;return{x:uv(e/t),y:uv(A/t)}}function ty(g){for(var t=[],e=0;e<g.pointers.length;)t[e]={clientX:uv(g.pointers[e].clientX),clientY:uv(g.pointers[e].clientY)},e++;return{timeStamp:fv(),pointers:t,center:gy(t),deltaX:g.deltaX,deltaY:g.deltaY}}function ey(g,t,e){e||(e=_v);var A=t[e[0]]-g[e[0]],C=t[e[1]]-g[e[1]];return Math.sqrt(A*A+C*C)}function Ay(g,t,e){e||(e=_v);var A=t[e[0]]-g[e[0]],C=t[e[1]]-g[e[1]];return 180*Math.atan2(C,A)/Math.PI}function Cy(g,t){return g===t?Gv:pv(g)>=pv(t)?g<0?jv:Lv:t<0?Vv:Yv}function Iy(g,t,e){return{x:t/g||0,y:e/g||0}}function iy(g,t){var e=g.session,A=t.pointers,C=A.length;e.firstInput||(e.firstInput=ty(t)),C>1&&!e.firstMultiple?e.firstMultiple=ty(t):1===C&&(e.firstMultiple=!1);var I=e.firstInput,i=e.firstMultiple,o=i?i.center:I.center,n=t.center=gy(A);t.timeStamp=fv(),t.deltaTime=t.timeStamp-I.timeStamp,t.angle=Ay(o,n),t.distance=ey(o,n),function(g,t){var e=t.center
//# sourceMappingURL=vis-network.min.js.map