hugvey/www/js/vis-timeline-graph2d.min.js

59 lines
576 KiB
JavaScript
Raw Normal View History

/**
* vis-timeline and vis-graph2d
* https://visjs.github.io/vis-timeline/
*
* Create a fully customizable, interactive timeline with items and ranges.
*
* @version 7.1.1
* @date 2020-02-14T17:02:29.658Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis=t.vis||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var i in e)c(e,i)&&(t[i]=e[i]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,i,n){return De(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function m(t){if(null==t._isValid){var e=p(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function v(t){var e=f(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var g=r.momentProperties=[];function y(t,e){var i,n,r;if(a(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),a(e._i)||(t._i=e._i),a(e._f)||(t._f=e._f),a(e._l)||(t._l=e._l),a(e._strict)||(t._strict=e._strict),a(e._tzm)||(t._tzm=e._tzm),a(e._isUTC)||(t._isUTC=e._isUTC),a(e._offset)||(t._offset=e._offset),a(e._pf)||(t._pf=p(e)),a(e._locale)||(t._locale=e._locale),g.length>0)for(i=0;i<g.length;i++)a(r=e[n=g[i]])||(t[n]=r);return t}var b=!1;function _(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function k(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=k(e)),i}function D(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&S(t[n])!==S(e[n]))&&s++;return s+o}function x(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var i=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),i){for(var n,o=[],s=0;s<arguments.length;s++){if(n="","object"==typeof arguments[s]){for(var a in n+="\n["+s+"] ",arguments[0])n+=a+": "+arguments[0][a]+", ";n=n.slice(0,-2)}else n=arguments[s];o.push(n)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var M,T={};function C(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),T[t]||(x(e),T[t]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var i,n=d({},t);for(i in e)c(e,i)&&(s(t[i])&&s(e[i])?(n[i]={},d(n[i],
/**
* vis-data
* http://visjs.org/
*
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
*
* @version 6.3.5
* @date 2020-01-19T08:37:05.508Z
*
* @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 cs(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function ds(t,e){return t(e={exports:{}},e.exports),e.exports}var fs=function(t){return t&&t.Math==Math&&t},ps=fs("object"==typeof globalThis&&globalThis)||fs("object"==typeof window&&window)||fs("object"==typeof self&&self)||fs("object"==typeof hs&&hs)||Function("return this")(),ms=function(t){try{return!!t()}catch(t){return!0}},vs=!ms((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gs={}.propertyIsEnumerable,ys=Object.getOwnPropertyDescriptor,bs={f:ys&&!gs.call({1:2},1)?function(t){var e=ys(this,t);return!!e&&e.enumerable}:gs},_s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ws={}.toString,ks=function(t){return ws.call(t).slice(8,-1)},Ss="".split,Ds=ms((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==ks(t)?Ss.call(t,""):Object(t)}:Object,xs=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Os=function(t){return Ds(xs(t))},Ms=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Ts=function(t,e){if(!Ms(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!Ms(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!Ms(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!Ms(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Cs={}.hasOwnProperty,Ps=function(t,e){return Cs.call(t,e)},Es=ps.document,As=Ms(Es)&&Ms(Es.createElement),Ls=function(t){return As?Es.createElement(t):{}},Is=!vs&&!ms((function(){return 7!=Object.defineProperty(Ls("div"),"a",{get:function(){return 7}}).a})),js=Object.getOwnPropertyDescriptor,Ys={f:vs?js:function(t,e){if(t=Os(t),e=Ts(e,!0),Is)try{return js(t,e)}catch(t){}if(Ps(t,e))return _s(!bs.f.call(t,e),t[e])}},Ns=/#|\.prototype\./,Rs=function(t,e){var i=Hs[Fs(t)];return i==zs||i!=Gs&&("function"==typeof e?ms(e):!!e)},Fs=Rs.normalize=function(t){return String(t).replace(Ns,".").toLowerCase()},Hs=Rs.data={},Gs=Rs.NATIVE="N",zs=Rs.POLYFILL="P",Ws=Rs,Vs={},Us=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Bs=function(t,e,i){if(Us(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,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},Xs=function(t){if(!Ms(t))throw TypeError(String(t)+" is not an object");return t},qs=Object.defineProperty,Zs={f:vs?qs:function(t,e,i){if(Xs(t),e=Ts(e,!0),Xs(i),Is)try{return qs(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}},Js=vs?function(t,e,i){return Zs.f(t,e,_s(1,i))}:function(t,e,i){return t[e]=i,t},$s=Ys.f,Ks=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},Qs=function(t,e){var i,n,r,o,s,a,l,u,h=t.target,c=t.global,d=t.stat,f=t.proto,p=c?ps:d?ps[h]:(ps[h]||{}).prototype,m=c?Vs:Vs[h]||(Vs[h]={}),v=m.prototype;for(r in e)i=!Ws(c?r:h+(d?".":"#")+r,t.forced)&&p&&Ps(p,r),s=m[r],i&&(a=t.noTargetGet?(u=$s(p,r))&&u.value:p[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(l=t.bind&&i?Bs(o,ps):t.wrap&&i?Ks(o):f&&"function"==typeof o?Bs(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&Js(l,"sham",!0),m[r]=l,f&&(Ps(Vs,n=h+"Prototype")||Js(Vs,n,{}),Vs[n][r]=o,t.real&&v&&!v[r]&&Js(v,r,o)))},ta=Array.isArray||function(t){return"Array"==ks(t)},ea=Math.ceil,ia=Math.floor,na=function(t){return isNaN(t=+t)?0:(t>0?ia:ea)(t)},ra=Math.min,oa=function(t){return t>0?ra(na(t),9007199254740991):0},sa=function(t,e,i,n,r,o,s,a){for(var l,u=r,h=0,c=!!s&&Bs(s,a,3);h<n;){if(h in i){if(l=c?c(i[h],h,e):i[h],o>0&&ta(l))u=sa(t,e,l,oa(l.length),u,o-1)-1;else{if(u>=9007199254740991)throw TypeError("Exceed the acceptable array length");t
/*! 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 CD(){return(CD=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function PD(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ED(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var AD,LD="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign,ID=["","webkit","Moz","MS","ms","o"],jD="undefined"==typeof document?{style:{}}:document.createElement("div"),YD=Math.round,ND=Math.abs,RD=Date.now;function FD(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;o<ID.length;){if((n=(i=ID[o])?i+r:e)in t)return n;o++}}AD="undefined"==typeof window?{}:window;var HD=FD(jD.style,"touchAction"),GD=void 0!==HD;var zD=function(){if(!GD)return!1;var t={},e=AD.CSS&&AD.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||AD.CSS.supports("touch-action",i)})),t}(),WD="ontouchstart"in AD,VD=void 0!==FD(AD,"PointerEvent"),UD=WD&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),BD=["x","y"],XD=["clientX","clientY"];function qD(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function ZD(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function JD(t,e){return t.indexOf(e)>-1}var $D=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){"compute"===t&&(t=this.compute()),GD&&this.manager.element.style&&zD[t]&&(this.manager.element.style[HD]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return qD(this.manager.recognizers,(function(e){ZD(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(JD(t,"none"))return"none";var e=JD(t,"pan-x"),i=JD(t,"pan-y");return e&&i?"none":e||i?e?"pan-x":"pan-y":JD(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=JD(n,"none")&&!zD.none,o=JD(n,"pan-y")&&!zD["pan-y"],s=JD(n,"pan-x")&&!zD["pan-x"];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&6&i||s&&24&i?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function KD(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function QD(t){var e=t.length;if(1===e)return{x:YD(t[0].clientX),y:YD(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:YD(i/e),y:YD(n/e)}}function tx(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:YD(t.pointers[i].clientX),clientY:YD(t.pointers[i].clientY)},i++;return{timeStamp:RD(),pointers:e,center:QD(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ex(t,e,i){i||(i=BD);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function ix(t,e,i){i||(i=BD);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function nx(t,e){return t===e?1:ND(t)>=ND(e)?t<0?2:4:e<0?8:16}function rx(t,e,i){return{x:e/t||0,y:i/t||0}}function ox(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=tx(e)),r>1&&!i.firstMultiple?i.firstMultiple=tx(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=QD(n);e.timeStamp=RD(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=ix(a,l),e.distance=ex(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelt
//# sourceMappingURL=vis-timeline-graph2d.min.js.map