1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[707],{6558:function(t,e,n){let o;n.d(e,{TY:function(){return mq},qg:function(){return pf}});/** 2 * vis-timeline and vis-graph2d 3 * https://visjs.github.io/vis-timeline/ 4 * 5 * Create a fully customizable, interactive timeline with items and ranges. 6 * 7 * @version 7.7.3 8 * @date 2023-10-27T17:57:57.604Z 9 * 10 * @copyright (c) 2011-2017 Almende B.V, http://almende.com 11 * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs 12 * 13 * @license 14 * vis.js is dual licensed under both 15 * 16 * 1. The Apache 2.0 License 17 * http://www.apache.org/licenses/LICENSE-2.0 18 * 19 * and 20 * 21 * 2. The MIT License 22 * http://opensource.org/licenses/MIT 23 * 24 * vis.js may be distributed under either license. 25 */var r,s,a,l,h,u,d,c,p,f,m,v,g,y,b,_,w,k,x,D,S,C,T,M,O,E,P,I,A,L,N,F,R,j,Y,H,z,G,B,W,U,V="undefined"!=typeof globalThis?globalThis:window;function X(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var q={exports:{}};function K(){var t;return _||(_=1,t=function(){function t(){return K.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t){var e;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(e in t)if(o(t,e))return!1;return!0}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,o=[],r=t.length;for(n=0;n<r;++n)o.push(e(t[n],n));return o}function u(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,o){return eo(t,e,n,o,!0).utc()}function c(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=c(t),n=$.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function f(t){var e=d(NaN);return null!=t?u(c(e),t):c(e).userInvalidated=!0,e}$=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),o=n.length>>>0;for(e=0;e<o;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var m,v,g=t.momentProperties=[],y=!1;function b(t,e){var n,o,r,a=g.length;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=c(e)),s(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)s(r=e[o=g[n]])||(t[o]=r);return t}function _(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,t.updateOffset(this),y=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function k(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,n){var r=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){var s,a,l,h=[],u=arguments.length;for(a=0;a<u;a++){if(s="","object"==typeof arguments[a]){for(l in s+="\n["+a+"] ",arguments[0])o(arguments[0],l)&&(s+=l+": "+arguments[0][l]+", ");s=s.slice(0,-2)}else s=arguments[a];h.push(s)}k(e+"\nArguments: "+Array.prototype.slice.call(h).join("")+"\n"+Error().stack),r=!1}return n.apply(this,arguments)},n)}var D={};function S(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),D[e]||(k(n),D[e]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function T(t,e){var r,s=u({},t);for(r in e)o(e,r)&&(n(t[r])&&n(e[r])?(s[r]={},u(s[r],t[r]),u(s[r],e[r])):null!=e[r]?s[r]=e[r]:delete s[r]);for(r in t)o(t,r)&&!o(e,r)&&n(t[r])&&(s[r]=u({},s[r]));return s}function M(t){null!=t&&this.set(t)}function O(t,e,n){var o=""+Math.abs(t);return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,e-o.length)).toString().substr(1)+o}
25t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,Z=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},A={};function L(t,e,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),t&&(A[t]=r),e&&(A[e[0]]=function(){return O(r.apply(this,arguments),e[1],e[2])}),n&&(A[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function N(t,e){return t.isValid()?(I[e=F(e,t.localeData())]=I[e]||function(t){var e,n,o,r=t.match(E);for(n=0,o=r.length;n<o;n++)A[r[n]]?r[n]=A[r[n]]:r[n]=(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){var n,s="";for(n=0;n<o;n++)s+=C(r[n])?r[n].call(e,t):r[n];return s}}(e),I[e](t)):t.localeData().invalidDate()}function F(t,e){var n=5;function o(t){return e.longDateFormat(t)||t}for(P.lastIndex=0;n>=0&&P.test(t);)t=t.replace(P,o),P.lastIndex=0,n-=1;return t}var R={};function j(t,e){var n=t.toLowerCase();R[n]=R[n+"s"]=R[e]=t}function Y(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function H(t){var e,n,r={};for(n in t)o(t,n)&&(e=Y(n))&&(r[e]=t[n]);return r}var z={};function G(t){return t%4==0&&t%100!=0||t%400==0}function B(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function W(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=B(e)),n}function U(e,n){return function(o){return null!=o?(X(this,e,o),t.updateOffset(this,n),this):V(this,e)}}function V(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function X(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&G(t.year())&&1===t.month()&&29===t.date()?(n=W(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),t_(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var K,$,Z,J,Q=/\d/,tt=/\d\d/,te=/\d{3}/,ti=/\d{4}/,tn=/[+-]?\d{6}/,to=/\d\d?/,tr=/\d\d\d\d?/,ts=/\d\d\d\d\d\d?/,ta=/\d{1,3}/,tl=/\d{1,4}/,th=/[+-]?\d{1,6}/,tu=/\d+/,td=/[+-]?\d+/,tc=/Z|[+-]\d\d:?\d\d/gi,tp=/Z|[+-]\d\d(?::?\d\d)?/gi,tf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function tm(t,e,n){J[t]=C(e)?e:function(t,o){return t&&n?n:e}}function tv(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var tg={};function ty(t,e){var n,o,r=e;for("string"==typeof t&&(t=[t]),a(e)&&(r=function(t,n){n[e]=W(t)}),o=t.length,n=0;n<o;n++)tg[t[n]]=r}function tb(t,e){ty(t,function(t,n,o,r){o._w=o._w||{},e(t,o._w,o,r)})}function t_(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?G(t)?29:28:31-n%7%2}tG=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return -1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),L("MMMM",0,0,function(t){return this.localeData().months(this,t)}),j("month","M"),z.month=8,tm("M",to),tm("MM",to,tt),tm("MMM",function(t,e){return e.monthsShortRegex(t)}),tm("MMMM",function(t,e){return e.monthsRegex(t)}),ty(["M","MM"],function(t,e){e[1]=W(t)-1}),ty(["MMM","MMMM"],function(t,e,n,o){var r=n._locale.monthsParse(t,o,n._strict);null!=r?e[1]=r:c(n).invalidMonth=t});var tw="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tk=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function tx(t,e,n){var o,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(o=0,this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];o<12;++o)s=d([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=tG.call(this._shortMonthsParse,a))?r:null:-1!==(r=tG.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=tG.call(this._shortMonthsParse,a))?r:-1!==(r=tG.call(this._longMonthsParse,a))?r:null:-1!==(r=tG.call(this._longMonthsParse,a))?r:-1!==(r=tG.call(this._shortMonthsParse,a))?r:null}function tD(t,e){var n;if(!t.isValid())return t;if("string"==typeof e){if(/^\d+$/.test(e))e=W(e);else if(!a(e=t.localeData().monthsParse(e)))return t}return n=Math.min(t.date(),t_(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function tS(e){return null!=e?(tD(this,e),t.updateOffset(this,!0),this):V(this,"Month")}function tC(){function t(t,e){return e.length-t.length}var e,n,o=[],r=[],s=[];for(e=0;e<12;e++)n=d([2e3,e]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(o.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)o[e]=tv(o[e]),r[e]=tv(r[e]);for(e=0;e<24;e++)s[e]=tv(s[e]);this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}
25function tT(t){return G(t)?366:365}L("Y",0,0,function(){var t=this.year();return t<=9999?O(t,4):"+"+t}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),j("year","y"),z.year=1,tm("Y",td),tm("YY",to,tt),tm("YYYY",tl,ti),tm("YYYYY",th,tn),tm("YYYYYY",th,tn),ty(["YYYYY","YYYYYY"],0),ty("YYYY",function(e,n){n[0]=2===e.length?t.parseTwoDigitYear(e):W(e)}),ty("YY",function(e,n){n[0]=t.parseTwoDigitYear(e)}),ty("Y",function(t,e){e[0]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return W(t)+(W(t)>68?1900:2e3)};var tM=U("FullYear",!0);function tO(t,e,n,o,r,s,a){var l;return t<100&&t>=0?isFinite((l=new Date(t+400,e,n,o,r,s,a)).getFullYear())&&l.setFullYear(t):l=new Date(t,e,n,o,r,s,a),l}function tE(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,isFinite((e=new Date(Date.UTC.apply(null,n))).getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function tP(t,e,n){var o=7+e-n;return-((7+tE(t,0,o).getUTCDay()-e)%7)+o-1}function tI(t,e,n,o,r){var s,a,l=1+7*(e-1)+(7+n-o)%7+tP(t,o,r);return l<=0?a=tT(s=t-1)+l:l>tT(t)?(s=t+1,a=l-tT(t)):(s=t,a=l),{year:s,dayOfYear:a}}function tA(t,e,n){var o,r,s=tP(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?o=a+tL(r=t.year()-1,e,n):a>tL(t.year(),e,n)?(o=a-tL(t.year(),e,n),r=t.year()+1):(r=t.year(),o=a),{week:o,year:r}}function tL(t,e,n){var o=tP(t,e,n),r=tP(t+1,e,n);return(tT(t)-o+r)/7}function tN(t,e){return t.slice(e,7).concat(t.slice(0,e))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),z.week=5,z.isoWeek=5,tm("w",to),tm("ww",to,tt),tm("W",to),tm("WW",to,tt),tb(["w","ww","W","WW"],function(t,e,n,o){e[o.substr(0,1)]=W(t)}),L("d",0,"do","day"),L("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),L("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),L("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),z.day=11,z.weekday=11,z.isoWeekday=11,tm("d",to),tm("e",to),tm("E",to),tm("dd",function(t,e){return e.weekdaysMinRegex(t)}),tm("ddd",function(t,e){return e.weekdaysShortRegex(t)}),tm("dddd",function(t,e){return e.weekdaysRegex(t)}),tb(["dd","ddd","dddd"],function(t,e,n,o){var r=n._locale.weekdaysParse(t,o,n._strict);null!=r?e.d=r:c(n).invalidWeekday=t}),tb(["d","e","E"],function(t,e,n,o){e[o]=W(t)});var tF="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function tR(t,e,n){var o,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(o=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];o<7;++o)s=d([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=tG.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=tG.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=tG.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=tG.call(this._weekdaysParse,a))||-1!==(r=tG.call(this._shortWeekdaysParse,a))?r:-1!==(r=tG.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=tG.call(this._shortWeekdaysParse,a))||-1!==(r=tG.call(this._weekdaysParse,a))?r:-1!==(r=tG.call(this._minWeekdaysParse,a))?r:null:-1!==(r=tG.call(this._minWeekdaysParse,a))||-1!==(r=tG.call(this._weekdaysParse,a))?r:-1!==(r=tG.call(this._shortWeekdaysParse,a))?r:null}function tj(){function t(t,e){return e.length-t.length}var e,n,o,r,s,a=[],l=[],h=[],u=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),o=tv(this.weekdaysMin(n,"")),r=tv(this.weekdaysShort(n,"")),s=tv(this.weekdays(n,"")),a.push(o),l.push(r),h.push(s),u.push(o),u.push(r),u.push(s);a.sort(t),l.sort(t),h.sort(t),u.sort(t),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function tY(){return this.hours()%12||12}function tH(t,e){L(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function tz(t,e){return e._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,tY),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+tY.apply(this)+O(this.minutes(),2)}
25),L("hmmss",0,0,function(){return""+tY.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),tH("a",!0),tH("A",!1),j("hour","h"),z.hour=13,tm("a",tz),tm("A",tz),tm("H",to),tm("h",to),tm("k",to),tm("HH",to,tt),tm("hh",to,tt),tm("kk",to,tt),tm("hmm",tr),tm("hmmss",ts),tm("Hmm",tr),tm("Hmmss",ts),ty(["H","HH"],3),ty(["k","kk"],function(t,e,n){var o=W(t);e[3]=24===o?0:o}),ty(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ty(["h","hh"],function(t,e,n){e[3]=W(t),c(n).bigHour=!0}),ty("hmm",function(t,e,n){var o=t.length-2;e[3]=W(t.substr(0,o)),e[4]=W(t.substr(o)),c(n).bigHour=!0}),ty("hmmss",function(t,e,n){var o=t.length-4,r=t.length-2;e[3]=W(t.substr(0,o)),e[4]=W(t.substr(o,2)),e[5]=W(t.substr(r)),c(n).bigHour=!0}),ty("Hmm",function(t,e,n){var o=t.length-2;e[3]=W(t.substr(0,o)),e[4]=W(t.substr(o))}),ty("Hmmss",function(t,e,n){var o=t.length-4,r=t.length-2;e[3]=W(t.substr(0,o)),e[4]=W(t.substr(o,2)),e[5]=W(t.substr(r))});var tG,tB,tW=U("Hours",!0),tU={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:tw,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:tF,meridiemParse:/[ap]\.?m?\.?/i},tV={},tX={};function tq(t){return t?t.toLowerCase().replace("_","-"):t}function tK(t){var e=null;if(void 0===tV[t]&&q&&q.exports&&null!=t.match("^[^/\\\\]*$"))try{e=tB._abbr,function(t){throw Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}("./locale/"+t),t$(e)}catch(e){tV[t]=null}return tV[t]}function t$(t,e){var n;return t&&((n=s(e)?tJ(t):tZ(t,e))?tB=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),tB._abbr}function tZ(t,e){if(null===e)return delete tV[t],null;var n,o=tU;if(e.abbr=t,null!=tV[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=tV[t]._config;else if(null!=e.parentLocale){if(null!=tV[e.parentLocale])o=tV[e.parentLocale]._config;else{if(null==(n=tK(e.parentLocale)))return tX[e.parentLocale]||(tX[e.parentLocale]=[]),tX[e.parentLocale].push({name:t,config:e}),null;o=n._config}}return tV[t]=new M(T(o,e)),tX[t]&&tX[t].forEach(function(t){tZ(t.name,t.config)}),t$(t),tV[t]}function tJ(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return tB;if(!e(t)){if(n=tK(t))return n;t=[t]}return function(t){for(var e,n,o,r,s=0;s<t.length;){for(e=(r=tq(t[s]).split("-")).length,n=(n=tq(t[s+1]))?n.split("-"):null;e>0;){if(o=tK(r.slice(0,e).join("-")))return o;if(n&&n.length>=e&&function(t,e){var n,o=Math.min(t.length,e.length);for(n=0;n<o;n+=1)if(t[n]!==e[n])return n;return o}(r,n)>=e-1)break;e--}s++}return tB}(t)}function tQ(t){var e,n=t._a;return n&&-2===c(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>t_(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,c(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),c(t)._overflowWeeks&&-1===e&&(e=7),c(t)._overflowWeekday&&-1===e&&(e=8),c(t).overflow=e),t}var t0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,t1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,t2=/Z|[+-]\d\d(?::?\d\d)?/,t5=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],t3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],t4=/^\/?Date\((-?\d+)/i,t8=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,t6={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function t9(t){var e,n,o,r,s,a,l=t._i,h=t0.exec(l)||t1.exec(l),u=t5.length,d=t3.length;if(h){for(e=0,c(t).iso=!0,n=u;e<n;e++)if(t5[e][1].exec(h[1])){r=t5[e][0],o=!1!==t5[e][2];break}if(null==r){t._isValid=!1;return}if(h[3]){for(e=0,n=d;e<n;e++)if(t3[e][1].exec(h[3])){s=(h[2]||" ")+t3[e][0];break}if(null==s){t._isValid=!1;return}}if(!o&&null!=s){t._isValid=!1;return}if(h[4]){if(t2.exec(h[4]))a="Z";else{t._isValid=!1;return}}t._f=r+(s||"")+(a||""),ei(t)}else t._isValid=!1}function t7(t){var e,n,o,r,s,a,l,h,u,d=t8.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(n=d[4],o=d[3],r=d[2],s=d[5],a=d[6],l=d[7],h=[(e=parseInt(n,10))<=49?2e3+e:e<=999?1900+e:e,tw.indexOf(o),parseInt(r,10),parseInt(s,10),parseInt(a,10)],l&&h.push(parseInt(l,10)),(u=d[1])&&tF.indexOf(u)!==new Date(h[0],h[1],h[2]).getDay()&&(c(t).weekdayMismatch=!0,t._isValid=!1,1))return;t._a=h,t._tzm=function(t,e,n){if(t)return t6[t];if(e)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}(d[8],d[9],d[10]),t._d=tE.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),c(t).rfc2822=!0}else t._isValid=!1}function et(t,e,n){return null!=t?t:null!=e?e:n}function ee(e){var n,o,r,s,a,l,h,u,d,p,f,m,v,g,y,b=[];if(!e._d){for(p=new Date(t.now()),v=e._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(n=e._w).GG||null!=n.W||null!=n.E?(a=1,l=4,o=et(n.GG,e._a[0],tA(er(),1,4).year),r=et(n.W,1),((s=et(n.E,1))<1||s>7)&&(u=!0)):(a=e._locale._week.dow,l=e._locale._week.doy,d=tA(er(),a,l),o=et(n.gg,e._a[0],d.year),r=et(n.w,d.week),null!=n.d?((s=n.d)<0||s>6)&&(u=!0):null!=n.e?(s=n.e+a,(n.e<0||n.e>6)&&(u=!0)):s=a),r<1||r>tL(o,a,l)?c(e)._overflowWeeks=!0:null!=u?c(e)._overflowWeekday=!0:(h=tI(o,r,s,a,l),e._a[0]=h.year,e._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(y=et(e._a[0],v[0]),(e._dayOfYear>tT(y)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),m=tE(y,0,e._dayOfYear),e._a[1]=m.getUTCMonth(),e._a[2]=m.getUTCDate()),f=0;f<3&&null==e._a[f];++f)e._a[f]=b[f]=v[f];for(;f<7;f++)e._a[f]=b[f]=null==e._a[f]?2===f?1:0:e._a[f];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?tE:tO).apply(null,b),g=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==g&&(c(e).weekdayMismatch=!0)}}function ei(e){if(e._f===t.ISO_8601){t9(e);return}if(e._f===t.RFC_2822){t7(e);return}e._a=[],c(e).empty=!0;var n,r,s,a,l,h,u,d,p,f,m,v=""+e._i,g=v.length,y=0;for(l=0,m=(u=F(e._f,e._locale).match(E)||[]).length;l<m;l++)(d=u[l],(h=(v.match(o(J,d)?J[d](e._strict,e._locale):new RegExp(tv(d.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,o,r){return e||n||o||r}))))||[])[0])&&((p=v.substr(0,v.indexOf(h))).length>0&&c(e).unusedInput.push(p),v=v.slice(v.indexOf(h)+h.length),y+=h.length),A[d])?(h?c(e).empty=!1:c(e).unusedTokens.push(d),null!=h&&o(tg,d)&&tg[d](h,e._a,e,d)):e._strict&&!h&&c(e).unusedTokens.push(d);c(e).charsLeftOver=g-y,v.length>0&&c(e).unusedInput.push(v),e._a[3]<=12&&!0===c(e).bigHour&&e._a[3]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[3]=(n=e._locale,r=e._a[3],null==(s=e._meridiem)?r:null!=n.meridiemHour?n.meridiemHour(r,s):(null!=n.isPM&&((a=n.isPM(s))&&r<12&&(r+=12),a||12!==r||(r=0)),r)),null!==(f=c(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),ee(e),tQ(e)}function en(o){var r,d=o._i,m=o._f;
25return(o._locale=o._locale||tJ(o._l),null===d||void 0===m&&""===d)?f({nullInput:!0}):("string"==typeof d&&(o._i=d=o._locale.preparse(d)),w(d))?new _(tQ(d)):(l(d)?o._d=d:e(m)?function(t){var e,n,o,r,s,a,l=!1,h=t._f.length;if(0===h){c(t).invalidFormat=!0,t._d=new Date(NaN);return}for(r=0;r<h;r++)s=0,a=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],ei(e),p(e)&&(a=!0),s+=c(e).charsLeftOver+10*c(e).unusedTokens.length,c(e).score=s,l?s<o&&(o=s,n=e):(null==o||s<o||a)&&(o=s,n=e,a&&(l=!0));u(t,n||e)}(o):m?ei(o):s(r=o._i)?o._d=new Date(t.now()):l(r)?o._d=new Date(r.valueOf()):"string"==typeof r?function(e){var n=t4.exec(e._i);if(null!==n){e._d=new Date(+n[1]);return}t9(e),!1===e._isValid&&(delete e._isValid,t7(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(o):e(r)?(o._a=h(r.slice(0),function(t){return parseInt(t,10)}),ee(o)):n(r)?function(t){if(!t._d){var e=H(t._i),n=void 0===e.day?e.date:e.day;t._a=h([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ee(t)}}(o):a(r)?o._d=new Date(r):t.createFromInputFallback(o),p(o)||(o._d=null),o)}function eo(t,o,s,a,l){var h,u={};return(!0===o||!1===o)&&(a=o,o=void 0),(!0===s||!1===s)&&(a=s,s=void 0),(n(t)&&r(t)||e(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=l,u._l=s,u._i=t,u._f=o,u._strict=a,(h=new _(tQ(en(u))))._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function er(t,e,n,o){return eo(t,e,n,o,!1)}t.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var es=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=er.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:f()}),ea=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=er.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:f()});function el(t,n){var o,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return er();for(r=1,o=n[0];r<n.length;++r)(!n[r].isValid()||n[r][t](o))&&(o=n[r]);return o}var eh=["year","quarter","month","week","day","hour","minute","second","millisecond"];function eu(t){var e=H(t),n=e.year||0,r=e.quarter||0,s=e.month||0,a=e.week||e.isoWeek||0,l=e.day||0,h=e.hour||0,u=e.minute||0,d=e.second||0,c=e.millisecond||0;this._isValid=function(t){var e,n,r=!1,s=eh.length;for(e in t)if(o(t,e)&&!(-1!==tG.call(eh,e)&&(null==t[e]||!isNaN(t[e]))))return!1;for(n=0;n<s;++n)if(t[eh[n]]){if(r)return!1;parseFloat(t[eh[n]])!==W(t[eh[n]])&&(r=!0)}return!0}(e),this._milliseconds=+c+1e3*d+6e4*u+36e5*h,this._days=+l+7*a,this._months=+s+3*r+12*n,this._data={},this._locale=tJ(),this._bubble()}function ed(t){return t instanceof eu}function ec(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ep(t,e){L(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+O(~~(t/60),2)+e+O(~~t%60,2)})}ep("Z",":"),ep("ZZ",""),tm("Z",tp),tm("ZZ",tp),ty(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=em(tp,t)});var ef=/([\+\-]|\d\d)/gi;function em(t,e){var n,o,r=(e||"").match(t);return null===r?null:0===(o=+(60*(n=((r[r.length-1]||[])+"").match(ef)||["-",0,0])[1])+W(n[2]))?0:"+"===n[0]?o:-o}function ev(e,n){var o,r;return n._isUTC?(o=n.clone(),r=(w(e)||l(e)?e.valueOf():er(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+r),t.updateOffset(o,!1),o):er(e).local()}function eg(t){return-Math.round(t._d.getTimezoneOffset())}function ey(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var eb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,e_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ew(t,e){var n,r,s,l,h,u,d=t,c=null;return ed(t)?d={ms:t._milliseconds,d:t._days,M:t._months}:a(t)||!isNaN(+t)?(d={},e?d[e]=+t:d.milliseconds=+t):(c=eb.exec(t))?(l="-"===c[1]?-1:1,d={y:0,d:W(c[2])*l,h:W(c[3])*l,m:W(c[4])*l,s:W(c[5])*l,ms:W(ec(1e3*c[6]))*l}):(c=e_.exec(t))?(l="-"===c[1]?-1:1,d={y:ek(c[2],l),M:ek(c[3],l),w:ek(c[4],l),d:ek(c[5],l),h:ek(c[6],l),m:ek(c[7],l),s:ek(c[8],l)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(n=er(d.from),r=er(d.to),u=n.isValid()&&r.isValid()?(r=ev(r,n),n.isBefore(r)?s=ex(n,r):((s=ex(r,n)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(d={}).ms=u.milliseconds,d.M=u.months),h=new eu(d),ed(t)&&o(t,"_locale")&&(h._locale=t._locale),ed(t)&&o(t,"_isValid")&&(h._isValid=t._isValid),h}function ek(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function ex(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function eD(t,e){return function(n,o){var r;return null===o||isNaN(+o)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=o,o=r),eS(this,ew(n,o),t),this}}function eS(e,n,o,r){var s=n._milliseconds,a=ec(n._days),l=ec(n._months);e.isValid()&&(r=null==r||r,l&&tD(e,V(e,"Month")+l*o),a&&X(e,"Date",V(e,"Date")+a*o),s&&e._d.setTime(e._d.valueOf()+s*o),r&&t.updateOffset(e,a||l))}ew.fn=eu.prototype,ew.invalid=function(){return ew(NaN)};var eC=eD(1,"add"),eT=eD(-1,"subtract");function eM(t){return"string"==typeof t||t instanceof String}function eO(t,e){if(t.date()<e.date())return-eO(e,t);var n,o=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(o,"months");return n=e-r<0?(e-r)/(r-t.clone().add(o-1,"months")):(e-r)/(t.clone().add(o+1,"months")-r),-(o+n)||0}function eE(t){var e;return void 0===t?this._locale._abbr:(null!=(e=tJ(t))&&(this._locale=e),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var eP=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eI(){return this._locale}function eA(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function eL(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function eN(t,e){return e.erasAbbrRegex(t)}function eF(){var t,e,n=[],o=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)o.push(tv(a[t].name)),n.push(tv(a[t].abbr)),r.push(tv(a[t].narrow)),s.push(tv(a[t].name)),s.push(tv(a[t].abbr)),s.push(tv(a[t].narrow));this._erasRegex=RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+r.join("|")+")","i")}function eR(t,e){L(0,[t,t.length],0,e)}function ej(t,e,n,o,r){var s;return null==t?tA(this,o,r).year:(e>(s=tL(t,o,r))&&(e=s),eY.call(this,t,e,n,o,r))}function eY(t,e,n,o,r){var s=tI(t,e,n,o,r),a=tE(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),tm("N",eN),tm("NN",eN),tm("NNN",eN),tm("NNNN",function(t,e){return e.erasNameRegex(t)}),tm("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),ty(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,o){var r=n._locale.erasParse(t,o,n._strict);r?c(n).era=r:c(n).invalidEra=t}),tm("y",tu),tm("yy",tu),tm("yyy",tu),tm("yyyy",tu),tm("yo",function(t,e){return e._eraYearOrdinalRegex||tu}),ty(["y","yy","yyy","yyyy"],0),ty(["yo"],function(t,e,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[0]=n._locale.eraYearOrdinalParse(t,r):e[0]=parseInt(t,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),eR("gggg","weekYear"),eR("ggggg","weekYear"),eR("GGGG","isoWeekYear"),eR("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),z.weekYear=1,z.isoWeekYear=1,tm("G",td),tm("g",td),tm("GG",to,tt),tm("gg",to,tt),tm("GGGG",tl,ti),tm("gggg",tl,ti),tm("GGGGG",th,tn),tm("ggggg",th,tn),tb(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,o){e[o.substr(0,2)]=W(t)}),tb(["gg","GG"],function(e,n,o,r){n[r]=t.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),j("quarter","Q"),z.quarter=7,tm("Q",Q),ty("Q",function(t,e){e[1]=(W(t)-1)*3}),L("D",["DD",2],"Do","date"),j("date","D"),z.date=9,tm("D",to),tm("DD",to,tt),tm("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ty(["D","DD"],2),ty("Do",function(t,e){e[2]=W(t.match(to)[0])});var eH=U("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),z.dayOfYear=4,tm("DDD",ta),tm("DDDD",te),t
25y(["DDD","DDDD"],function(t,e,n){n._dayOfYear=W(t)}),L("m",["mm",2],0,"minute"),j("minute","m"),z.minute=14,tm("m",to),tm("mm",to,tt),ty(["m","mm"],4);var ez=U("Minutes",!1);L("s",["ss",2],0,"second"),j("second","s"),z.second=15,tm("s",to),tm("ss",to,tt),ty(["s","ss"],5);var eG=U("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),z.millisecond=16,tm("S",ta,Q),tm("SS",ta,tt),tm("SSS",ta,te),m="SSSS";m.length<=9;m+="S")tm(m,tu);function eB(t,e){e[6]=W(("0."+t)*1e3)}for(m="S";m.length<=9;m+="S")ty(m,eB);v=U("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var eW=_.prototype;function eU(t){return t}eW.add=eC,eW.calendar=function(s,h){if(1==arguments.length){if(arguments[0]){var u,d,c;(u=arguments[0],w(u)||l(u)||eM(u)||a(u)||(d=e(u),c=!1,d&&(c=0===u.filter(function(t){return!a(t)&&eM(u)}).length),d&&c)||function(t){var e,s,a=n(t)&&!r(t),l=!1,h=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=h.length;for(e=0;e<u;e+=1)s=h[e],l=l||o(t,s);return a&&l}(u)||null==u)?(s=arguments[0],h=void 0):function(t){var e,s,a=n(t)&&!r(t),l=!1,h=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<h.length;e+=1)s=h[e],l=l||o(t,s);return a&&l}(arguments[0])&&(h=arguments[0],s=void 0)}else s=void 0,h=void 0}var p=s||er(),f=ev(p,this).startOf("day"),m=t.calendarFormat(this,f)||"sameElse",v=h&&(C(h[m])?h[m].call(this,p):h[m]);return this.format(v||this.localeData().calendar(m,this,er(p)))},eW.clone=function(){return new _(this)},eW.diff=function(t,e,n){var o,r,s;if(!this.isValid()||!(o=ev(t,this)).isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,e=Y(e)){case"year":s=eO(this,o)/12;break;case"month":s=eO(this,o);break;case"quarter":s=eO(this,o)/3;break;case"second":s=(this-o)/1e3;break;case"minute":s=(this-o)/6e4;break;case"hour":s=(this-o)/36e5;break;case"day":s=(this-o-r)/864e5;break;case"week":s=(this-o-r)/6048e5;break;default:s=this-o}return n?s:B(s)},eW.endOf=function(e){var n,o;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(o=this._isUTC?eL:eA,e){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=36e5-((n+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":n=this._d.valueOf(),n+=6e4-(n%6e4+6e4)%6e4-1;break;case"second":n=this._d.valueOf(),n+=1e3-(n%1e3+1e3)%1e3-1}return this._d.setTime(n),t.updateOffset(this,!0),this},eW.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=N(this,e);return this.localeData().postformat(n)},eW.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||er(t).isValid())?ew({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},eW.fromNow=function(t){return this.from(er(),t)},eW.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||er(t).isValid())?ew({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},eW.toNow=function(t){return this.to(er(),t)},eW.get=function(t){return C(this[t=Y(t)])?this[t]():this},eW.invalidAt=function(){return c(this).overflow},eW.isAfter=function(t,e){var n=w(t)?t:er(t);return!!(this.isValid()&&n.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},eW.isBefore=function(t,e){var n=w(t)?t:er(t);return!!(this.isValid()&&n.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},eW.isBetween=function(t,e,n,o){var r=w(t)?t:er(t),s=w(e)?e:er(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(o=o||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===o[1]?this.isBefore(s,n):!this.isAfter(s,n))},eW.isSame=function(t,e){var n,o=w(t)?t:er(t);return!!(this.isValid()&&o.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},eW.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},eW.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},eW.isValid=function(){return p(this)},eW.lang=eP,eW.locale=eE,eW.localeData=eI,eW.max=ea,eW.min=es,eW.parsingFlags=function(){return u({},c(this))},eW.set=function(t,e){if("object"==typeof t){var n,r=function(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:z[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=H(t)),s=r.length;for(n=0;n<s;n++)this[r[n].unit](t[r[n].unit])}else if(C(this[t=Y(t)]))return this[t](e);return this},eW.startOf=function(e){var n,o;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(o=this._isUTC?eL:eA,e){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=((n+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":n=this._d.valueOf(),n-=(n%6e4+6e4)%6e4;break;case"second":n=this._d.valueOf(),n-=(n%1e3+1e3)%1e3}return this._d.setTime(n),t.updateOffset(this,!0),this},eW.subtract=eT,eW.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},eW.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},eW.toDate=function(){return new Date(this.valueOf())},eW.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return 0>n.year()||n.year()>9999?N(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",N(n,"Z")):N(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
25,eW.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,o,r="moment",s="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+r+'("]',e=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",o=s+'[")]',this.format(t+e+n+o)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(eW[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),eW.toJSON=function(){return this.isValid()?this.toISOString():null},eW.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},eW.unix=function(){return Math.floor(this.valueOf()/1e3)},eW.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},eW.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},eW.eraName=function(){var t,e,n,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),o[t].since<=n&&n<=o[t].until||o[t].until<=n&&n<=o[t].since)return o[t].name;return""},eW.eraNarrow=function(){var t,e,n,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),o[t].since<=n&&n<=o[t].until||o[t].until<=n&&n<=o[t].since)return o[t].narrow;return""},eW.eraAbbr=function(){var t,e,n,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),o[t].since<=n&&n<=o[t].until||o[t].until<=n&&n<=o[t].since)return o[t].abbr;return""},eW.eraYear=function(){var e,n,o,r,s=this.localeData().eras();for(e=0,n=s.length;e<n;++e)if(o=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-t(s[e].since).year())*o+s[e].offset;return this.year()},eW.year=tM,eW.isLeapYear=function(){return G(this.year())},eW.weekYear=function(t){return ej.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},eW.isoWeekYear=function(t){return ej.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},eW.quarter=eW.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)},eW.month=tS,eW.daysInMonth=function(){return t_(this.year(),this.month())},eW.week=eW.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add((t-e)*7,"d")},eW.isoWeek=eW.isoWeeks=function(t){var e=tA(this,1,4).week;return null==t?e:this.add((t-e)*7,"d")},eW.weeksInYear=function(){var t=this.localeData()._week;return tL(this.year(),t.dow,t.doy)},eW.weeksInWeekYear=function(){var t=this.localeData()._week;return tL(this.weekYear(),t.dow,t.doy)},eW.isoWeeksInYear=function(){return tL(this.year(),1,4)},eW.isoWeeksInISOWeekYear=function(){return tL(this.isoWeekYear(),1,4)},eW.date=eH,eW.day=eW.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,o=this._isUTC?this._d.getUTCDay():this._d.getDay();return null==t?o:(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-o,"d"))},eW.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},eW.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,n=(e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?n:n-7)},eW.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},eW.hour=eW.hours=tW,eW.minute=eW.minutes=ez,eW.second=eW.seconds=eG,eW.millisecond=eW.milliseconds=v,eW.utcOffset=function(e,n,o){var r,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?s:eg(this);if("string"==typeof e){if(null===(e=em(tp,e)))return this}else 16>Math.abs(e)&&!o&&(e*=60);return!this._isUTC&&n&&(r=eg(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s===e||(!n||this._changeInProgress?eS(this,ew(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},eW.utc=function(t){return this.utcOffset(0,t)},eW.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(eg(this),"m")),this},eW.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=em(tc,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},eW.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?er(t).utcOffset():0,(this.utcOffset()-t)%60==0)},eW.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},eW.isLocal=function(){return!!this.isValid()&&!this._isUTC},eW.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},eW.isUtc=ey,eW.isUTC=ey,eW.zoneAbbr=function(){return this._isUTC?"UTC":""},eW.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},eW.dates=x("dates accessor is deprecated. Use date instead.",eH),eW.months=x("months accessor is deprecated. Use month instead",tS),eW.years=x("years accessor is deprecated. Use year instead",tM),eW.zone
vendor: 9,325 bytes, line 25
25=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),eW.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=en(e))._a?(t=e._isUTC?d(e._a):er(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var o,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(o=0;o<r;o++)W(t[o])!==W(e[o])&&a++;return a+s}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var eV=M.prototype;function eX(t,e,n,o){var r=tJ(),s=d().set(o,e);return r[n](s,t)}function eq(t,e,n){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return eX(t,e,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=eX(t,o,n,"month");return r}function eK(t,e,n,o){"boolean"==typeof t||(n=e=t,t=!1),a(e)&&(n=e,e=void 0),e=e||"";var r,s=tJ(),l=t?s._week.dow:0,h=[];if(null!=n)return eX(e,(n+l)%7,o,"day");for(r=0;r<7;r++)h[r]=eX(e,(r+l)%7,o,"day");return h}eV.calendar=function(t,e,n){var o=this._calendar[t]||this._calendar.sameElse;return C(o)?o.call(e,n):o},eV.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(E).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},eV.invalidDate=function(){return this._invalidDate},eV.ordinal=function(t){return this._ordinal.replace("%d",t)},eV.preparse=eU,eV.postformat=eU,eV.relativeTime=function(t,e,n,o){var r=this._relativeTime[n];return C(r)?r(t,e,n,o):r.replace(/%d/i,t)},eV.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},eV.set=function(t){var e,n;for(n in t)o(t,n)&&(C(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},eV.eras=function(e,n){var o,r,s,a=this._eras||tJ("en")._eras;for(o=0,r=a.length;o<r;++o)switch("string"==typeof a[o].since&&(s=t(a[o].since).startOf("day"),a[o].since=s.valueOf()),typeof a[o].until){case"undefined":a[o].until=Infinity;break;case"string":s=t(a[o].until).startOf("day").valueOf(),a[o].until=s.valueOf()}return a},eV.erasParse=function(t,e,n){var o,r,s,a,l,h=this.eras();for(o=0,t=t.toUpperCase(),r=h.length;o<r;++o)if(s=h[o].name.toUpperCase(),a=h[o].abbr.toUpperCase(),l=h[o].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return h[o];break;case"NNNN":if(s===t)return h[o];break;case"NNNNN":if(l===t)return h[o]}else if([s,a,l].indexOf(t)>=0)return h[o]},eV.erasConvertYear=function(e,n){var o=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*o},eV.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||eF.call(this),t?this._erasAbbrRegex:this._erasRegex},eV.erasNameRegex=function(t){return o(this,"_erasNameRegex")||eF.call(this),t?this._erasNameRegex:this._erasRegex},eV.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||eF.call(this),t?this._erasNarrowRegex:this._erasRegex},eV.months=function(t,n){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||tk).test(n)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone},eV.monthsShort=function(t,n){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[tk.test(n)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},eV.monthsParse=function(t,e,n){var o,r,s;if(this._monthsParseExact)return tx.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++)if(r=d([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[o].test(t)||n&&"MMM"===e&&this._shortMonthsParse[o].test(t)||!n&&this._monthsParse[o].test(t))return o},eV.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tC.call(this),t)?this._monthsStrictRegex:this._monthsRegex:(o(this,"_monthsRegex")||(this._monthsRegex=tf),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},eV.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tC.call(this),t)?this._monthsShortStrictRegex:this._monthsShortRegex:(o(this,"_monthsShortRegex")||(this._monthsShortRegex=tf),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},eV.week=function(t){return tA(t,this._week.dow,this._week.doy).week},eV.firstDayOfYear=function(){return this._week.doy},eV.firstDayOfWeek=function(){return this._week.dow},eV.weekdays=function(t,n){var o=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?tN(o,this._week.dow):t?o[t.day()]:o},eV.weekdaysMin=function(t){return!0===t?tN(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},eV.weekdaysShort=function(t){return!0===t?tN(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},eV.weekdaysParse=function(t,e,n){var o,r,s;if(this._weekdaysParseExact)return tR.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=d([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[o].test(t)||n&&"ddd"===e&&this._shortWeekdaysParse[o].test(t))return o;if(n&&"dd"===e&&this._minWeekdaysParse[o].test(t))return o;if(!n&&this._weekdaysParse[o].test(t))return o}},eV.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tj.call(this),t)?this._weekdaysStrictRegex:this._weekdaysRegex:(o(this,"_weekdaysRegex")||(this._weekdaysRegex=tf),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},eV.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tj.call(this),t)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tf),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},eV.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tj.call(this),t)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tf),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},eV.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},eV.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},t$("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===W(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=x("moment.lang is deprecated. Use moment.locale instead.",t$),t.langData=x("moment.langData is deprecated. Use moment.localeData instead.",tJ);var e$=Math.abs;function eZ(t,e,n,o){var r=ew(e,n);return t._milliseconds+=o*r._milliseconds,t._days+=o*r._days,t._months+=o*r._months,t._bubble()}function eJ(t){return t<0?Math.floor(t):Math.ceil(t)}function eQ(t){return 4800*t/146097}function e0(t){return 146097*t/4800}function e1(t){return function(){return this.as(t)}}var e2=e1("ms"),e5=e1("s"),e3=e1("m"),e4=e1("h"),e8=e1("d"),e6=e1("w"),e9=e1("M"),e7=e1("Q"),it=e1("y");function ie(t){return function(){return this.isValid()?this._data[t]:NaN}}var ii=ie("milliseconds"),io=ie("seconds"),ir=ie("minutes"),is=ie("hours"),ia=ie("days"),il=ie("months"),ih=ie("years"),iu=Math.round,id={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ic(t,e,n,o,r){return r.relativeTime(e||1,!!n,t,o)}var ip=Math.abs;function im(t){return(t>0)-(t<0)||+t}function iv(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,o,r,s,a,l,h=ip(this._milliseconds)/1e3,u=ip(this._days),d=ip(this._months),c=this.asSeconds();return c?(t=B(h/60),e=B(t/60),h%=60,t%=60,n=B(d/12),d%=12,o=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",s=im(this._months)!==im(c)?"-":"",a=im(this._days)!==im(c)?"-":"",l=im(this._milliseconds)!==im(c)?"-":"",r+"P"+(n?s+n+"Y":"")+(d?s+d+"M":"")+(u?a+u+"D":"")+(e||t||h?"T":"")+(e?l+e+"H":"")+(t?l
25+t+"M":"")+(h?l+o+"S":"")):"P0D"}var ig=eu.prototype;return ig.isValid=function(){return this._isValid},ig.abs=function(){var t=this._data;return this._milliseconds=e$(this._milliseconds),this._days=e$(this._days),this._months=e$(this._months),t.milliseconds=e$(t.milliseconds),t.seconds=e$(t.seconds),t.minutes=e$(t.minutes),t.hours=e$(t.hours),t.months=e$(t.months),t.years=e$(t.years),this},ig.add=function(t,e){return eZ(this,t,e,1)},ig.subtract=function(t,e){return eZ(this,t,e,-1)},ig.as=function(t){if(!this.isValid())return NaN;var e,n,o=this._milliseconds;if("month"===(t=Y(t))||"quarter"===t||"year"===t)switch(e=this._days+o/864e5,n=this._months+eQ(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(e0(this._months)),t){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hour":return 24*e+o/36e5;case"minute":return 1440*e+o/6e4;case"second":return 86400*e+o/1e3;case"millisecond":return Math.floor(864e5*e)+o;default:throw Error("Unknown unit "+t)}},ig.asMilliseconds=e2,ig.asSeconds=e5,ig.asMinutes=e3,ig.asHours=e4,ig.asDays=e8,ig.asWeeks=e6,ig.asMonths=e9,ig.asQuarters=e7,ig.asYears=it,ig.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},ig._bubble=function(){var t,e,n,o,r,s=this._milliseconds,a=this._days,l=this._months,h=this._data;return s>=0&&a>=0&&l>=0||s<=0&&a<=0&&l<=0||(s+=864e5*eJ(e0(l)+a),a=0,l=0),h.milliseconds=s%1e3,t=B(s/1e3),h.seconds=t%60,e=B(t/60),h.minutes=e%60,n=B(e/60),h.hours=n%24,a+=B(n/24),l+=r=B(eQ(a)),a-=eJ(e0(r)),o=B(l/12),l%=12,h.days=a,h.months=l,h.years=o,this},ig.clone=function(){return ew(this)},ig.get=function(t){return t=Y(t),this.isValid()?this[t+"s"]():NaN},ig.milliseconds=ii,ig.seconds=io,ig.minutes=ir,ig.hours=is,ig.days=ia,ig.weeks=function(){return B(this.days()/7)},ig.months=il,ig.years=ih,ig.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,o,r,s,a,l,h,u,d,c,p,f,m,v=!1,g=id;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(v=t),"object"==typeof e&&(g=Object.assign({},id,e),null!=e.s&&null==e.ss&&(g.ss=e.s-1)),f=this.localeData(),n=!v,o=g,r=ew(this).abs(),s=iu(r.as("s")),a=iu(r.as("m")),l=iu(r.as("h")),h=iu(r.as("d")),u=iu(r.as("M")),d=iu(r.as("w")),c=iu(r.as("y")),p=s<=o.ss&&["s",s]||s<o.s&&["ss",s]||a<=1&&["m"]||a<o.m&&["mm",a]||l<=1&&["h"]||l<o.h&&["hh",l]||h<=1&&["d"]||h<o.d&&["dd",h],null!=o.w&&(p=p||d<=1&&["w"]||d<o.w&&["ww",d]),(p=p||u<=1&&["M"]||u<o.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=n,p[3]=+this>0,p[4]=f,m=ic.apply(null,p),v&&(m=f.pastFuture(+this,m)),f.postformat(m)},ig.toISOString=iv,ig.toString=iv,ig.toJSON=iv,ig.locale=eE,ig.localeData=eI,ig.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iv),ig.lang=eP,L("X",0,0,"unix"),L("x",0,0,"valueOf"),tm("x",td),tm("X",/[+-]?\d+(\.\d{1,3})?/),ty("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),ty("x",function(t,e,n){n._d=new Date(W(t))}),t.version="2.29.4",K=er,t.fn=eW,t.min=function(){var t=[].slice.call(arguments,0);return el("isBefore",t)},t.max=function(){var t=[].slice.call(arguments,0);return el("isAfter",t)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(t){return er(1e3*t)},t.months=function(t,e){return eq(t,e,"months")},t.isDate=l,t.locale=t$,t.invalid=f,t.duration=ew,t.isMoment=w,t.weekdays=function(t,e,n){return eK(t,e,n,"weekdays")},t.parseZone=function(){return er.apply(null,arguments).parseZone()},t.localeData=tJ,t.isDuration=ed,t.monthsShort=function(t,e){return eq(t,e,"monthsShort")},t.weekdaysMin=function(t,e,n){return eK(t,e,n,"weekdaysMin")},t.defineLocale=tZ,t.updateLocale=function(t,e){if(null!=e){var n,o,r=tU;null!=tV[t]&&null!=tV[t].parentLocale?tV[t].set(T(tV[t]._config,e)):(null!=(o=tK(t))&&(r=o._config),e=T(r,e),null==o&&(e.abbr=t),(n=new M(e)).parentLocale=tV[t],tV[t]=n),t$(t)}else null!=tV[t]&&(null!=tV[t].parentLocale?(tV[t]=tV[t].parentLocale,t===t$()&&t$(t)):null!=tV[t]&&delete tV[t]);return tV[t]},t.locales=function(){return Z(tV)},t.weekdaysShort=function(t,e,n){return eK(t,e,n,"weekdaysShort")},t.normalizeUnits=Y,t.relativeTimeRounding=function(t){return void 0===t?iu:"function"==typeof t&&(iu=t,!0)},t.relativeTimeThreshold=function(t,e){return void 0!==id[t]&&(void 0===e?id[t]:(id[t]=e,"s"===t&&(id.ss=e-1),!0))},t.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=eW,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t},q.exports=t()),q.exports}(function(t){function e(t,e,n,o){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[n][0]:r[n][1]}t.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(K()),r=K(),s="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),l=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],h=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,r.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?a[t.month()]:s[t.month()]:s},monthsRegex:h,monthsShortRegex:h,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".
vendor: 4,147 bytes, line 25
25split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"}),u=K(),d=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,c=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],u.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:d,monthsShortRegex:d,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:c,longMonthsParse:c,shortMonthsParse:c,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdâhui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}}),K().defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
25d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xba",week:{dow:1,doy:4}}),K().defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令å",narrow:"ã¿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"å¹³æ",narrow:"ã»",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"æå",narrow:"ã¼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大æ£",narrow:"ã½",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"ææ²»",narrow:"ã¾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西æ¦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"ç´å
å",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(å
|\d+)å¹´/,eraYearOrdinalParse:function(t,e){return"å
"===e[1]?1:parseInt(e[1]||t,10)},months:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥".split("_"),weekdaysShort:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),weekdaysMin:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥ dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥(ddd) HH:mm"},meridiemParse:/åå|åå¾/i,isPM:function(t){return"åå¾"===t},meridiem:function(t,e,n){return t<12?"åå":"åå¾"},calendar:{sameDay:"[仿¥] LT",nextDay:"[ææ¥] LT",nextWeek:function(t){return t.week()!==this.week()?"[æ¥é±]dddd LT":"dddd LT"},lastDay:"[æ¨æ¥] LT",lastWeek:function(t){return this.week()!==t.week()?"[å
é±]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}æ¥/,ordinal:function(t,e){switch(e){case"y":return 1===t?"å
å¹´":t+"å¹´";case"d":case"D":case"DDD":return t+"æ¥";default:return t}},relativeTime:{future:"%så¾",past:"%så",s:"æ°ç§",ss:"%dç§",m:"1å",mm:"%då",h:"1æé",hh:"%dæé",d:"1æ¥",dd:"%dæ¥",M:"1ã¶æ",MM:"%dã¶æ",y:"1å¹´",yy:"%då¹´"}}),p=K(),f="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),m="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),v=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],g=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,p.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?m[t.month()]:f[t.month()]:f},monthsRegex:g,monthsShortRegex:g,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:v,longMonthsParse:v,shortMonthsParse:v,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}}
25),function(t){var e="styczeÅ_luty_marzec_kwiecieÅ_maj_czerwiec_lipiec_sierpieÅ_wrzesieÅ_październik_listopad_grudzieÅ".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅnia_października_listopada_grudnia".split("_"),o=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function r(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,n){var o=t+" ";switch(n){case"ss":return o+(r(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutÄ";case"mm":return o+(r(t)?"minuty":"minut");case"h":return e?"godzina":"godzinÄ";case"hh":return o+(r(t)?"godziny":"godzin");case"ww":return o+(r(t)?"tygodnie":"tygodni");case"MM":return o+(r(t)?"miesiÄ
ce":"miesiÄcy");case"yy":return o+(r(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,o){return t?/D MMMM/.test(o)?n[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"niedziela_poniedziaÅek_wtorek_Åroda_czwartek_piÄ
tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_År_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_År_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DziÅ o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielÄ o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W ÅrodÄ o] LT";case 6:return"[W sobotÄ o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszÅÄ
niedzielÄ o] LT";case 3:return"[W zeszÅÄ
ÅrodÄ o] LT";case 6:return"[W zeszÅÄ
sobotÄ o] LT";default:return"[W zeszÅy] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:s,m:s,mm:s,h:s,hh:s,d:"1 dzieÅ",dd:"%d dni",w:"tydzieÅ",ww:s,M:"miesiÄ
c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(K()),function(t){function e(t,e,n){var o,r,s;return"m"===n?e?"минÑÑа":"минÑÑÑ":t+" "+(o=({ss:e?"ÑекÑнда_ÑекÑндÑ_ÑекÑнд":"ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд",mm:e?"минÑÑа_минÑÑÑ_минÑÑ":"минÑÑÑ_минÑÑÑ_минÑÑ",hh:"ÑаÑ_ÑаÑа_ÑаÑов",dd:"денÑ_днÑ_дней",ww:"неделÑ_недели_неделÑ",MM:"меÑÑÑ_меÑÑÑа_меÑÑÑев",yy:"год_года_леÑ"})[n],r=+t,s=o.split("_"),r%10==1&&r%100!=11?s[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?s[1]:s[2])}var n=[/^Ñнв/i,/^Ñев/i,/^маÑ/i,/^апÑ/i,/^ма[йÑ]/i,/^иÑн/i,/^иÑл/i,/^авг/i,/^Ñен/i,/^окÑ/i,/^ноÑ/i,/^дек/i];t.defineLocale("ru",{months:{format:"ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),standalone:"ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_")},monthsShort:{format:"Ñнв._ÑевÑ._маÑ._апÑ._маÑ_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),standalone:"Ñнв._ÑевÑ._маÑÑ_апÑ._май_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_")},weekdays:{standalone:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа".split("_"),format:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑедÑ_ÑеÑвеÑг_пÑÑниÑÑ_ÑÑббоÑÑ".split("_"),isFormat:/\[ ?[Ðв] ?(?:пÑоÑлÑÑ|ÑледÑÑÑÑÑ|ÑÑÑ)? ?] ?dddd/},weekdaysShort:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsShortRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsStrictRegex:/^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[Ñй]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i,monthsShortStrictRegex:/^(Ñнв\.|ÑевÑ?\.|маÑ[Ñ.]|апÑ\.|ма[Ñй]|иÑн[ÑÑ.]|иÑл[ÑÑ.]|авг\.|ÑенÑ?\.|ок
25Ñ\.|ноÑб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[СегоднÑ, в] LT",nextDay:"[ÐавÑÑа, в] LT",lastDay:"[ÐÑеÑа, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Ðо] dddd, [в] LT":"[Ð] dddd, [в] LT";switch(this.day()){case 0:return"[Ð ÑледÑÑÑее] dddd, [в] LT";case 1:case 2:case 4:return"[Ð ÑледÑÑÑий] dddd, [в] LT";case 3:case 5:case 6:return"[Ð ÑледÑÑÑÑÑ] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Ðо] dddd, [в] LT":"[Ð] dddd, [в] LT";switch(this.day()){case 0:return"[РпÑоÑлое] dddd, [в] LT";case 1:case 2:case 4:return"[РпÑоÑлÑй] dddd, [в] LT";case 3:case 5:case 6:return"[РпÑоÑлÑÑ] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"ÑеÑез %s",past:"%s назад",s:"неÑколÑко ÑекÑнд",ss:e,m:e,mm:e,h:"ÑаÑ",hh:e,d:"денÑ",dd:e,w:"неделÑ",ww:e,M:"меÑÑÑ",MM:e,y:"год",yy:e},meridiemParse:/ноÑи|ÑÑÑа|днÑ|веÑеÑа/i,isPM:function(t){return/^(днÑ|веÑеÑа)$/.test(t)},meridiem:function(t,e,n){return t<4?"ноÑи":t<12?"ÑÑÑа":t<17?"днÑ":"веÑеÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|Ñ)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-Ñ";default:return t}},week:{dow:1,doy:4}})}(K()),function(t){function e(t,e,n){var o,r,s;return"m"===n?e?"Ñ
вилина":"Ñ
вилинÑ":"h"===n?e?"година":"годинÑ":t+" "+(o=({ss:e?"ÑекÑнда_ÑекÑнди_ÑекÑнд":"ÑекÑндÑ_ÑекÑнди_ÑекÑнд",mm:e?"Ñ
вилина_Ñ
вилини_Ñ
вилин":"Ñ
вилинÑ_Ñ
вилини_Ñ
вилин",hh:e?"година_години_годин":"годинÑ_години_годин",dd:"денÑ_днÑ_днÑв",MM:"мÑÑÑÑÑ_мÑÑÑÑÑ_мÑÑÑÑÑв",yy:"ÑÑк_Ñоки_ÑокÑв"})[n],r=+t,s=o.split("_"),r%10==1&&r%100!=11?s[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?s[1]:s[2])}function n(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"ÑÑÑнÑ_лÑÑого_беÑезнÑ_квÑÑнÑ_ÑÑавнÑ_ÑеÑвнÑ_липнÑ_ÑеÑпнÑ_веÑеÑнÑ_жовÑнÑ_лиÑÑопада_гÑÑднÑ".split("_"),standalone:"ÑÑÑенÑ_лÑÑий_беÑезенÑ_квÑÑенÑ_ÑÑавенÑ_ÑеÑвенÑ_липенÑ_ÑеÑпенÑ_веÑеÑенÑ_жовÑенÑ_лиÑÑопад_гÑÑденÑ".split("_")},monthsShort:"ÑÑÑ_лÑÑ_беÑ_квÑÑ_ÑÑав_ÑеÑв_лип_ÑеÑп_веÑ_жовÑ_лиÑÑ_гÑÑд".split("_"),weekdays:function(t,e){var n={nominative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑеда_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑа".split("_"),accusative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑедÑ_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑÑ".split("_"),genitive:"недÑлÑ_понедÑлка_вÑвÑоÑка_ÑеÑеди_ÑеÑвеÑга_пâÑÑниÑÑ_ÑÑбоÑи".split("_")};return!0===t?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):t?n[/(\[[ÐвУÑ]\]) ?dddd/.test(e)?"accusative":/\[?(?:минÑлоÑ|наÑÑÑпноÑ)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:n.nominative},weekdaysShort:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Ñ.",LLL:"D MMMM YYYY Ñ., HH:mm",LLLL:"dddd, D MMMM YYYY Ñ., HH:mm"},calendar:{sameDay:n("[СÑÐ¾Ð³Ð¾Ð´Ð½Ñ "),nextDay:n("[ÐавÑÑа "),lastDay:n("[ÐÑоÑа "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[ÐинÑлоÑ] dddd [").call(this);case 1:case 2:case 4:return n("[ÐинÑлого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s ÑомÑ",s:"декÑлÑка ÑекÑнд",ss:e,m:e,mm:e,h:"годинÑ",hh:e,d:"денÑ",dd:e,M:"мÑÑÑÑÑ",MM:e,y:"ÑÑк",yy:e},meridiemParse:/ноÑÑ|ÑанкÑ|днÑ|веÑоÑа/,isPM:function(t){return/^(днÑ|веÑоÑа)$/.test(t)},meridiem:function(t,e,n){return t<4?"ноÑÑ":t<12?"ÑанкÑ":t<17?"днÑ":"веÑоÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(K());var $=function(t){try{return!!t()}catch(t){return!0}},Z=!$(function(){var t=(function(){}).bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),J=Function.prototype,Q=J.call,tt=Z&&J.bind.bind(Q,Q),te=Z?tt:function(t){return function(){return Q.apply(t,arguments)}},ti=Math.ceil,tn=Math.floor,to=Math.trunc||function(t){var e=+t;return(e>0?tn:ti)(e)},tr=function(t){var e=+t;return e!=e||0===e?0:to(e)},ts=function(t){return t&&t.Math===Math&&t},ta=ts("object"==typeof globalThis&&globalThis)||ts(window)||ts("object"==typeof self&&self)||ts("object"==typeof V&&V)||function(){return this}()||V||Function("return this")(),tl={exports:{}},th=Object.defineProperty,tu="__core-js_shared__",td=ta[tu]||function(t,e){try{th(ta,t,{value:e,configurable:!0,writable:!0})}catch(n){ta[t]=e}return e}(tu,{});(tl.exports=function(t,e){return td[t]||(td[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var tc=tl.exports,tp=function(t){return null==t},tf=TypeError,tm=function(t){if(tp(t))throw new tf("Can't call method on "+t);return t},tv=Object,tg=function(t){return tv(tm(t))},ty=te({}.hasOwnProperty),tb=Object.hasOwn||function(t,e){return ty(tg(t),e)},t_=0,tw=Math.random(),tk=te(1..toString),tx=function(t){return"Symbol("+(void 0===t?"":t)+")_"+tk(++t_+tw,36)},tD="undefined"!=typeof navigator&&String(navigator.userAgent)||"",tS=ta.process,tC=ta.Deno,tT=tS&&tS.versions||tC&&tC.version,tM=tT&&tT.v8;tM&&(k=(w=tM.split("."))[0]>0&&w[0]<4?1:+(w[0]+w[1])),!k&&tD&&(!(w=tD.match(/Edge\/(\d+)/))||w[1]>
25=74)&&(w=tD.match(/Chrome\/(\d+)/))&&(k=+w[1]);var tO=k,tE=ta.String,tP=!!Object.getOwnPropertySymbols&&!$(function(){var t=Symbol("symbol detection");return!tE(t)||!(Object(t) instanceof Symbol)||!Symbol.sham&&tO&&tO<41}),tI=tP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tA=ta.Symbol,tL=tc("wks"),tN=tI?tA.for||tA:tA&&tA.withoutSetter||tx,tF=function(t){return tb(tL,t)||(tL[t]=tP&&tb(tA,t)?tA[t]:tN("Symbol."+t)),tL[t]},tR=tF("toStringTag"),tj={};tj[tR]="z";var tY="[object z]"===String(tj),tH="object"==typeof document&&document.all,tz={all:tH,IS_HTMLDDA:void 0===tH&&void 0!==tH},tG=tz.all,tB=tz.IS_HTMLDDA?function(t){return"function"==typeof t||t===tG}:function(t){return"function"==typeof t},tW=te({}.toString),tU=te("".slice),tV=function(t){return tU(tW(t),8,-1)},tX=tF("toStringTag"),tq=Object,tK="Arguments"===tV(function(){return arguments}()),t$=function(t,e){try{return t[e]}catch(t){}},tZ=tY?tV:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=t$(e=tq(t),tX))?n:tK?tV(e):"Object"===(o=tV(e))&&tB(e.callee)?"Arguments":o},tJ=String,tQ=function(t){if("Symbol"===tZ(t))throw TypeError("Cannot convert a Symbol value to a string");return tJ(t)},t0=te("".charAt),t1=te("".charCodeAt),t2=te("".slice),t5=function(t){return function(e,n){var o,r,s=tQ(tm(e)),a=tr(n),l=s.length;return a<0||a>=l?t?"":void 0:(o=t1(s,a))<55296||o>56319||a+1===l||(r=t1(s,a+1))<56320||r>57343?t?t0(s,a):o:t?t2(s,a,a+2):(o-55296<<10)+(r-56320)+65536}},t3={codeAt:t5(!1),charAt:t5(!0)},t4=ta.WeakMap,t8=tB(t4)&&/native code/.test(String(t4)),t6=tz.all,t9=tz.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:tB(t)||t===t6}:function(t){return"object"==typeof t?null!==t:tB(t)},t7=!$(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),et={},ee=ta.document,ei=t9(ee)&&t9(ee.createElement),en=function(t){return ei?ee.createElement(t):{}},eo=!t7&&!$(function(){return 7!==Object.defineProperty(en("div"),"a",{get:function(){return 7}}).a}),er=t7&&$(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),es=String,ea=TypeError,el=function(t){if(t9(t))return t;throw new ea(es(t)+" is not an object")},eh=Function.prototype.call,eu=Z?eh.bind(eh):function(){return eh.apply(eh,arguments)},ed={},ec=function(t){return tB(t)?t:void 0},ep=function(t,e){return arguments.length<2?ec(ed[t])||ec(ta[t]):ed[t]&&ed[t][e]||ta[t]&&ta[t][e]},ef=te({}.isPrototypeOf),em=Object,ev=tI?function(t){return"symbol"==typeof t}:function(t){var e=ep("Symbol");return tB(e)&&ef(e.prototype,em(t))},eg=String,ey=function(t){try{return eg(t)}catch(t){return"Object"}},eb=TypeError,e_=function(t){if(tB(t))return t;throw new eb(ey(t)+" is not a function")},ew=function(t,e){var n=t[e];return tp(n)?void 0:e_(n)},ek=TypeError,ex=function(t,e){var n,o;if("string"===e&&tB(n=t.toString)&&!t9(o=eu(n,t))||tB(n=t.valueOf)&&!t9(o=eu(n,t))||"string"!==e&&tB(n=t.toString)&&!t9(o=eu(n,t)))return o;throw new ek("Can't convert object to primitive value")},eD=TypeError,eS=tF("toPrimitive"),eC=function(t,e){if(!t9(t)||ev(t))return t;var n,o=ew(t,eS);if(o){if(void 0===e&&(e="default"),!t9(n=eu(o,t,e))||ev(n))return n;throw new eD("Can't convert object to primitive value")}return void 0===e&&(e="number"),ex(t,e)},eT=function(t){var e=eC(t,"string");return ev(e)?e:e+""},eM=TypeError,eO=Object.defineProperty,eE=Object.getOwnPropertyDescriptor,eP="enumerable",eI="configurable",eA="writable";et.f=t7?er?function(t,e,n){if(el(t),e=eT(e),el(n),"function"==typeof t&&"prototype"===e&&"value"in n&&eA in n&&!n[eA]){var o=eE(t,e);o&&o[eA]&&(t[e]=n.value,n={configurable:eI in n?n[eI]:o[eI],enumerable:eP in n?n[eP]:o[eP],writable:!1})}return eO(t,e,n)}:eO:function(t,e,n){if(el(t),e=eT(e),el(n),eo)try{return eO(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new eM("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var eL=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},eN=t7?function(t,e,n){return et.f(t,e,eL(1,n))}:function(t,e,n){return t[e]=n,t},eF=tc("keys"),eR=function(t){return eF[t]||(eF[t]=tx(t))},ej={},eY="Object already initialized",eH=ta.TypeError,ez=ta.WeakMap;if(t8||td.state){var eG=td.state||(td.state=new ez);eG.get=eG.get,eG.has=eG.has,eG.set=eG.set,x=function(t,e){if(eG.has(t))throw new eH(eY);return e.facade=t,eG.set(t,e),e},D=function(t){return eG.get(t)||{}}}else{var eB=eR("state");ej[eB]=!0,x=function(t,e){if(tb(t,eB))throw new eH(eY);return e.facade=t,eN(t,eB,e),e},D=function(t){return tb(t,eB)?t[eB]:{}}}var eW=x,eU=function(t){return function(e){var n;if(!t9(e)||(n=D(e)).type!==t)throw new eH("Incompatible receiver, "+t+" required");return n}},eV=Function.prototype,eX=eV.apply,eq=eV.call,eK="object"==typeof Reflect&&Reflect.apply||(Z?eq.bind(eX):function(){return eq.apply(eX,arguments)}),e$=function(t){if("Function"===tV(t))return te(t)},eZ={},eJ={},eQ={}.propertyIsEnumerable,e0=Object.getOwnPropertyDescriptor,e1=e0&&!eQ.call({1:2},1);eJ.f=e1?function(t){var e=e0(this,t);return!!e&&e.enumerable}:eQ;var e2=Object,e5=te("".split),e3=$(function(){return!e2("z").propertyIsEnumerable(0)})?function(t){return"String"===tV(t)?e5(t,""):e2(t)}:e2,e4=function(t){return e3(tm(t))},e8=Object.getOwnPropertyDescriptor;eZ.f=t7?e8:function(t,e){if(t=e4(t),e=eT(e),eo)try{return e8(t,e)}catch(t){}if(tb(t,e))return eL(!eu(eJ.f,t,e),t[e])};var e6=/#|\.prototype\./,e9=function(t,e){var n=it[e7(t)];return n===ii||n!==ie&&(tB(e)?$(e):!!e)},e7=e9.normalize=function(t){return String(t).replace(e6,".").toLowerCase()},it=e9.data={},ie=e9.NATIVE="N",ii=e9.POLYFILL="P",io=e$(e$.bind),ir=function(t,e){return e_(t),void 0===e?t:Z?io(t,e):function(){return t.apply(e,arguments)}},is=eZ.f,ia=function(t){var e=function(n,o,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,o)}return new t(n,o,r)}return eK(t,this,arguments)};return e.prototype=t.prototype,e},il=function(t,e){var n,o,r,s,a,l,h,u,d,c=t.target,p=t.global,f=t.stat,m=t.proto,v=p?ta:f?ta[c]:(ta[c]||{}).prototype,g=p?ed:ed[c]||eN(ed,c,{})[c],y=g.prototype;for(s in e)o=!(n=e9(p?s:c+(f?".":"#")+s,t.forced))&&v&&tb(v,s),l=g[s],o&&(h=t.dontCallGetSet?(d=is(v,s))&&d.value:v[s]),a=o&&h?h:e[s],(!o||typeof l!=typeof a)&&(u=t.bind&&o?ir(a,ta):t.wrap&&o?ia(a):m&&tB(a)?e$(a):a,(t.sham||a&&a.sham||l&&l.sham)&&eN(u,"sham",!0),eN(g,s,u),m&&(tb(ed,r=c+"Prototype")||eN(ed,r,{}),eN(ed[r],s,a),t.real&&y&&(n||!y[s])&&eN(y,s,a)))},ih=Function.prototype,iu=t7&&Object.getOwnPropertyDescriptor,id=tb(ih,"name"),ic=id&&(!t7||t7&&iu(ih,"name").configurable),ip={},im=Math.max,iv=Math.min,ig=function(t,e){var n=tr(t);return n<0?im(n+e,0):iv(n,e)},iy=Math.min,ib=function(t){var e;return(e=t.length)>0?iy(tr(e),9007199254740991):0},i_=function(t){return function(e,n,o){var r,s=e4(e),a=ib(s),l=ig(o,a);if(t&&n!=n){for(;a>l;)if((r=s[l++])!=r)return!0}else for(;a>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}},iw={includes:i_(!0),indexOf:i_(!1)},ik=iw.indexOf,ix=te([].push),iD=function(t,e){var n,o=e4(t),r=0,s=[];for(n in o)!tb(ej,n)&&tb(o,n)&&ix(s,n);for(;e.length>r;)tb(o,n=e[r++])&&(~ik(s,n)||ix(s,n));return s},iS=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
25ing","toString","valueOf"],iC=Object.keys||function(t){return iD(t,iS)};ip.f=t7&&!er?Object.defineProperties:function(t,e){el(t);for(var n,o=e4(e),r=iC(e),s=r.length,a=0;s>a;)et.f(t,n=r[a++],o[n]);return t};var iT=ep("document","documentElement"),iM="prototype",iO="script",iE=eR("IE_PROTO"),iP=function(){},iI=function(t){return"<"+iO+">"+t+"</"+iO+">"},iA=function(t){t.write(iI("")),t.close();var e=t.parentWindow.Object;return t=null,e},iL=function(){var t,e=en("iframe");return e.style.display="none",iT.appendChild(e),e.src=String("java"+iO+":"),(t=e.contentWindow.document).open(),t.write(iI("document.F=Object")),t.close(),t.F},iN=function(){try{C=new ActiveXObject("htmlfile")}catch(t){}iN="undefined"!=typeof document?document.domain&&C?iA(C):iL():iA(C);for(var t=iS.length;t--;)delete iN[iM][iS[t]];return iN()};ej[iE]=!0;var iF=Object.create||function(t,e){var n;return null!==t?(iP[iM]=el(t),n=new iP,iP[iM]=null,n[iE]=t):n=iN(),void 0===e?n:ip.f(n,e)},iR=!$(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),ij=eR("IE_PROTO"),iY=Object,iH=iY.prototype,iz=iR?iY.getPrototypeOf:function(t){var e=tg(t);if(tb(e,ij))return e[ij];var n=e.constructor;return tB(n)&&e instanceof n?n.prototype:e instanceof iY?iH:null},iG=function(t,e,n,o){return o&&o.enumerable?t[e]=n:eN(t,e,n),t},iB=tF("iterator"),iW=!1;[].keys&&("next"in(O=[].keys())?(M=iz(iz(O)))!==Object.prototype&&(T=M):iW=!0),tB((T=!t9(T)||$(function(){var t={};return T[iB].call(t)!==t})?{}:iF(T))[iB])||iG(T,iB,function(){return this});var iU=T,iV=iW,iX=et.f,iq=tY?({}).toString:function(){return"[object "+tZ(this)+"]"},iK=tF("toStringTag"),i$=function(t,e,n,o){if(t){var r=n?t:t.prototype;tb(r,iK)||iX(r,iK,{configurable:!0,value:e}),o&&!tY&&eN(r,"toString",iq)}},iZ={},iJ=function(){return this},iQ=String,i0=TypeError,i1=function(t,e,n){try{return te(e_(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},i2=function(t){if("object"==typeof t||tB(t))return t;throw new i0("Can't set "+iQ(t)+" as a prototype")},i5=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i1(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return el(n),i2(o),e?t(n,o):n.__proto__=o,n}}():void 0),i3={PROPER:id&&"something"===(function(){}).name,CONFIGURABLE:ic},i4=function(t,e,n,o){var r=e+" Iterator";return t.prototype=iF(iU,{next:eL(+!o,n)}),i$(t,r,!1,!0),iZ[r]=iJ,t},i8=i3.PROPER;i3.CONFIGURABLE;var i6=tF("iterator"),i9="keys",i7="values",nt="entries",ne=function(){return this},ni=function(t,e,n,o,r,s,a){i4(n,e,o);var l,h,u,d=function(t){if(t===r&&v)return v;if(!iV&&t&&t in f)return f[t];switch(t){case i9:case i7:case nt:return function(){return new n(this,t)}}return function(){return new n(this)}},c=e+" Iterator",p=!1,f=t.prototype,m=f[i6]||f["@@iterator"]||r&&f[r],v=!iV&&m||d(r),g="Array"===e&&f.entries||m;if(g&&(l=iz(g.call(new t)))!==Object.prototype&&l.next&&(i$(l,c,!0,!0),iZ[c]=ne),i8&&r===i7&&m&&m.name!==i7&&(p=!0,v=function(){return eu(m,this)}),r){if(h={values:d(i7),keys:s?v:d(i9),entries:d(nt)},a)for(u in h)!iV&&!p&&u in f||iG(f,u,h[u]);else il({target:e,proto:!0,forced:iV||p},h)}return a&&f[i6]!==v&&iG(f,i6,v,{name:r}),iZ[e]=v,h},nn=function(t,e){return{value:t,done:e}},no=t3.charAt,nr="String Iterator",ns=eU(nr);ni(String,"String",function(t){eW(this,{type:nr,string:tQ(t),index:0})},function(){var t,e=ns(this),n=e.string,o=e.index;return o>=n.length?nn(void 0,!0):(t=no(n,o),e.index+=t.length,nn(t,!1))});var na=function(t,e,n){var o,r;el(t);try{if(!(o=ew(t,"return"))){if("throw"===e)throw n;return n}o=eu(o,t)}catch(t){r=!0,o=t}if("throw"===e)throw n;if(r)throw o;return el(o),n},nl=tF("iterator"),nh=Array.prototype,nu=function(t){return void 0!==t&&(iZ.Array===t||nh[nl]===t)},nd=te(Function.toString);tB(td.inspectSource)||(td.inspectSource=function(t){return nd(t)});var nc=td.inspectSource,np=function(){},nf=[],nm=ep("Reflect","construct"),nv=/^\s*(?:class|function)\b/,ng=te(nv.exec),ny=!nv.test(np),nb=function(t){if(!tB(t))return!1;try{return nm(np,nf,t),!0}catch(t){return!1}},n_=function(t){if(!tB(t))return!1;switch(tZ(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ny||!!ng(nv,nc(t))}catch(t){return!0}};n_.sham=!0;var nw=!nm||$(function(){var t;return nb(nb.call)||!nb(Object)||!nb(function(){t=!0})||t})?n_:nb,nk=function(t,e,n){var o=eT(e);o in t?et.f(t,o,eL(0,n)):t[o]=n},nx=tF("iterator"),nD=function(t){if(!tp(t))return ew(t,nx)||ew(t,"@@iterator")||iZ[tZ(t)]},nS=TypeError,nC=function(t,e){var n=arguments.length<2?nD(t):e;if(e_(n))return el(eu(n,t));throw new nS(ey(t)+" is not iterable")},nT=function(t,e,n,o){try{return o?e(el(n)[0],n[1]):e(n)}catch(e){na(t,"throw",e)}},nM=Array,nO=tF("iterator"),nE=!1;try{var nP=0,nI={next:function(){return{done:!!nP++}},return:function(){nE=!0}};nI[nO]=function(){return this},Array.from(nI,function(){throw 2})}catch(t){}var nA=function(t,e){try{if(!e&&!nE)return!1}catch(t){return!1}var n=!1;try{var o={};o[nO]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n};il({target:"Array",stat:!0,forced:!nA(function(t){Array.from(t)})},{from:function(t){var e,n,o,r,s,a,l=tg(t),h=nw(this),u=arguments.length,d=u>1?arguments[1]:void 0,c=void 0!==d;c&&(d=ir(d,u>2?arguments[2]:void 0));var p=nD(l),f=0;if(p&&!(this===nM&&nu(p)))for(s=(r=nC(l,p)).next,n=h?new this:[];!(o=eu(s,r)).done;f++)a=c?nT(r,d,[o.value,f],!0):o.value,nk(n,f,a);else for(e=ib(l),n=h?new this(e):nM(e);e>f;f++)a=c?d(l[f],f):l[f],nk(n,f,a);return n.length=f,n}});var nL=ed.Array.from,nN=X(nL);et.f;var nF="Array Iterator",nR=eU(nF);ni(Array,"Array",function(t,e){eW(this,{type:nF,target:e4(t),index:0,kind:e})},function(){var t=nR(this),e=t.target,n=t.kind,o=t.index++;if(!e||o>=e.length)return t.target=void 0,nn(void 0,!0);switch(n){case"keys":return nn(o,!1);case"values":return nn(e[o],!1)}return nn([o,e[o]],!1)},"values"),iZ.Arguments=iZ.Array;var nj={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},nY=tF("toStringTag");for(var nH in nj){var nz=ta[nH],nG=nz&&nz.prototype;nG&&tZ(nG)!==nY&&eN(nG,nY,nH),iZ[nH]=iZ.Array}var nB=X(nD),nW=X(nD);function nU(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}var nV={exports:{}},nX=et.f;il({target:"Object",stat:!0,forced:Object.defineProperty!==nX,sham:!t7},{defineProperty:nX});var nq=ed.Object,nK=nV.exports=function(t,e,n){return nq.defineProperty(t,e,n)};nq.defineProperty.sham&&(nK.sham=!0);var n$=nV.exports,nZ=X(n$),nJ=Array.isArray||function(t){return"Array"===tV(t)},nQ=TypeError,n0=function(t){if(t>9007199254740991)throw nQ("Maximum allowed index exceeded");return t},n1=tF("species"),n2=Array,n5=function(t){var e;return nJ(t)&&(nw(e=t.constructor)&&(e===n2||nJ(e.prototype))?e=void 0:t9(e)&&null===(e=e[n1])&&(e=void 0)),void 0===e?n2:e},n3=function(t,e){return new(n5(t))(0===e?0:e)},n4=tF("species"),n8=function(t){return tO>=51||!$(function(){var e=[];return(e.constructor={})[n4]=function(){return{foo:1}
25},1!==e[t](Boolean).foo})},n6=tF("isConcatSpreadable"),n9=tO>=51||!$(function(){var t=[];return t[n6]=!1,t.concat()[0]!==t}),n7=function(t){if(!t9(t))return!1;var e=t[n6];return void 0!==e?!!e:nJ(t)};il({target:"Array",proto:!0,arity:1,forced:!n9||!n8("concat")},{concat:function(t){var e,n,o,r,s,a=tg(this),l=n3(a,0),h=0;for(e=-1,o=arguments.length;e<o;e++)if(s=-1===e?a:arguments[e],n7(s))for(n0(h+(r=ib(s))),n=0;n<r;n++,h++)n in s&&nk(l,h,s[n]);else n0(h+1),nk(l,h++,s);return l.length=h,l}});var ot={},oe=iS.concat("length","prototype");ot.f=Object.getOwnPropertyNames||function(t){return iD(t,oe)};var oi={},on=Array,oo=Math.max,or=function(t,e,n){for(var o=ib(t),r=ig(e,o),s=ig(void 0===n?o:n,o),a=on(oo(s-r,0)),l=0;r<s;r++,l++)nk(a,l,t[r]);return a.length=l,a},os=ot.f,oa=window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ol=function(t){try{return os(t)}catch(t){return or(oa)}};oi.f=function(t){return oa&&"Window"===tV(t)?ol(t):os(e4(t))};var oh={};oh.f=Object.getOwnPropertySymbols;var ou=function(t,e,n){return et.f(t,e,n)},od={};od.f=tF;var oc=et.f,op=function(t){var e=ed.Symbol||(ed.Symbol={});tb(e,t)||oc(e,t,{value:od.f(t)})},of=function(){var t=ep("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,o=tF("toPrimitive");e&&!e[o]&&iG(e,o,function(t){return eu(n,this)},{arity:1})},om=te([].push),ov=function(t){var e=1===t,n=2===t,o=3===t,r=4===t,s=6===t,a=7===t,l=5===t||s;return function(h,u,d,c){for(var p,f,m=tg(h),v=e3(m),g=ir(u,d),y=ib(v),b=0,_=c||n3,w=e?_(h,y):n||a?_(h,0):void 0;y>b;b++)if((l||b in v)&&(f=g(p=v[b],b,m),t)){if(e)w[b]=f;else if(f)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:om(w,p)}else switch(t){case 4:return!1;case 7:om(w,p)}}return s?-1:o||r?r:w}},og={forEach:ov(0),map:ov(1),filter:ov(2),some:ov(3),every:ov(4),find:ov(5),findIndex:ov(6),filterReject:ov(7)},oy=og.forEach,ob=eR("hidden"),o_="Symbol",ow="prototype",ok=eU(o_),ox=Object[ow],oD=ta.Symbol,oS=oD&&oD[ow],oC=ta.RangeError,oT=ta.TypeError,oM=ta.QObject,oO=eZ.f,oE=et.f,oP=oi.f,oI=eJ.f,oA=te([].push),oL=tc("symbols"),oN=tc("op-symbols"),oF=tc("wks"),oR=!oM||!oM[ow]||!oM[ow].findChild,oj=function(t,e,n){var o=oO(ox,e);o&&delete ox[e],oE(t,e,n),o&&t!==ox&&oE(ox,e,o)},oY=t7&&$(function(){return 7!==iF(oE({},"a",{get:function(){return oE(this,"a",{value:7}).a}})).a})?oj:oE,oH=function(t,e){var n=oL[t]=iF(oS);return eW(n,{type:o_,tag:t,description:e}),t7||(n.description=e),n},oz=function(t,e,n){t===ox&&oz(oN,e,n),el(t);var o=eT(e);return(el(n),tb(oL,o))?(n.enumerable?(tb(t,ob)&&t[ob][o]&&(t[ob][o]=!1),n=iF(n,{enumerable:eL(0,!1)})):(tb(t,ob)||oE(t,ob,eL(1,{})),t[ob][o]=!0),oY(t,o,n)):oE(t,o,n)},oG=function(t,e){el(t);var n=e4(e);return oy(iC(n).concat(oV(n)),function(e){(!t7||eu(oB,n,e))&&oz(t,e,n[e])}),t},oB=function(t){var e=eT(t),n=eu(oI,this,e);return(!(this===ox&&tb(oL,e))||!!tb(oN,e))&&(!(n||!tb(this,e)||!tb(oL,e)||tb(this,ob)&&this[ob][e])||n)},oW=function(t,e){var n=e4(t),o=eT(e);if(!(n===ox&&tb(oL,o))||tb(oN,o)){var r=oO(n,o);return r&&tb(oL,o)&&!(tb(n,ob)&&n[ob][o])&&(r.enumerable=!0),r}},oU=function(t){var e=oP(e4(t)),n=[];return oy(e,function(t){tb(oL,t)||tb(ej,t)||oA(n,t)}),n},oV=function(t){var e=t===ox,n=oP(e?oN:e4(t)),o=[];return oy(n,function(t){tb(oL,t)&&(!e||tb(ox,t))&&oA(o,oL[t])}),o};!tP&&(iG(oS=(oD=function(){if(ef(oS,this))throw new oT("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?tQ(arguments[0]):void 0,e=tx(t),n=function(t){this===ox&&eu(n,oN,t),tb(this,ob)&&tb(this[ob],e)&&(this[ob][e]=!1);var o=eL(1,t);try{oY(this,e,o)}catch(t){if(!(t instanceof oC))throw t;oj(this,e,o)}};return t7&&oR&&oY(ox,e,{configurable:!0,set:n}),oH(e,t)})[ow],"toString",function(){return ok(this).tag}),iG(oD,"withoutSetter",function(t){return oH(tx(t),t)}),eJ.f=oB,et.f=oz,ip.f=oG,eZ.f=oW,ot.f=oi.f=oU,oh.f=oV,od.f=function(t){return oH(tF(t),t)},t7&&ou(oS,"description",{configurable:!0,get:function(){return ok(this).description}})),il({global:!0,constructor:!0,wrap:!0,forced:!tP,sham:!tP},{Symbol:oD}),oy(iC(oF),function(t){op(t)}),il({target:o_,stat:!0,forced:!tP},{useSetter:function(){oR=!0},useSimple:function(){oR=!1}}),il({target:"Object",stat:!0,forced:!tP,sham:!t7},{create:function(t,e){return void 0===e?iF(t):oG(iF(t),e)},defineProperty:oz,defineProperties:oG,getOwnPropertyDescriptor:oW}),il({target:"Object",stat:!0,forced:!tP},{getOwnPropertyNames:oU}),of(),i$(oD,o_),ej[ob]=!0;
25var oX=tP&&!!Symbol.for&&!!Symbol.keyFor,oq=tc("string-to-symbol-registry"),oK=tc("symbol-to-string-registry");il({target:"Symbol",stat:!0,forced:!oX},{for:function(t){var e=tQ(t);if(tb(oq,e))return oq[e];var n=ep("Symbol")(e);return oq[e]=n,oK[n]=e,n}});var o$=tc("symbol-to-string-registry");il({target:"Symbol",stat:!0,forced:!oX},{keyFor:function(t){if(!ev(t))throw TypeError(ey(t)+" is not a symbol");if(tb(o$,t))return o$[t]}});var oZ=te([].slice),oJ=te([].push),oQ=function(t){if(tB(t))return t;if(nJ(t)){for(var e=t.length,n=[],o=0;o<e;o++){var r=t[o];"string"==typeof r?oJ(n,r):("number"==typeof r||"Number"===tV(r)||"String"===tV(r))&&oJ(n,tQ(r))}var s=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(nJ(this))return e;for(var o=0;o<s;o++)if(n[o]===t)return e}}},o0=String,o1=ep("JSON","stringify"),o2=te(/./.exec),o5=te("".charAt),o3=te("".charCodeAt),o4=te("".replace),o8=te(1..toString),o6=/[\uD800-\uDFFF]/g,o9=/^[\uD800-\uDBFF]$/,o7=/^[\uDC00-\uDFFF]$/,rt=!tP||$(function(){var t=ep("Symbol")("stringify detection");return"[null]"!==o1([t])||"{}"!==o1({a:t})||"{}"!==o1(Object(t))}),re=$(function(){return'"\udf06\ud834"'!==o1("\uDF06\uD834")||'"\udead"'!==o1("\uDEAD")}),ri=function(t,e){var n=oZ(arguments),o=oQ(e);if(!(!tB(o)&&(void 0===t||ev(t))))return n[1]=function(t,e){if(tB(o)&&(e=eu(o,this,o0(t),e)),!ev(e))return e},eK(o1,null,n)},rn=function(t,e,n){var o=o5(n,e-1),r=o5(n,e+1);return o2(o9,t)&&!o2(o7,r)||o2(o7,t)&&!o2(o9,o)?"\\u"+o8(o3(t,0),16):t};o1&&il({target:"JSON",stat:!0,arity:3,forced:rt||re},{stringify:function(t,e,n){var o=oZ(arguments),r=eK(rt?ri:o1,null,o);return re&&"string"==typeof r?o4(r,o6,rn):r}}),il({target:"Object",stat:!0,forced:!tP||$(function(){oh.f(1)})},{getOwnPropertySymbols:function(t){var e=oh.f;return e?e(tg(t)):[]}}),op("asyncIterator"),op("hasInstance"),op("isConcatSpreadable"),op("iterator"),op("match"),op("matchAll"),op("replace"),op("search"),op("species"),op("split"),op("toPrimitive"),of(),op("toStringTag"),i$(ep("Symbol"),"Symbol"),op("unscopables"),i$(ta.JSON,"JSON",!0);var ro=ed.Symbol,rr=et.f,rs=tF("metadata"),ra=Function.prototype;void 0===ra[rs]&&rr(ra,rs,{value:null}),op("asyncDispose"),op("dispose"),op("metadata");var rl=ep("Symbol"),rh=rl.keyFor,ru=te(rl.prototype.valueOf),rd=rl.isRegisteredSymbol||function(t){try{return void 0!==rh(ru(t))}catch(t){return!1}};il({target:"Symbol",stat:!0},{isRegisteredSymbol:rd});for(var rc=ep("Symbol"),rp=rc.isWellKnownSymbol,rf=ep("Object","getOwnPropertyNames"),rm=te(rc.prototype.valueOf),rv=tc("wks"),rg=0,ry=rf(rc),rb=ry.length;rg<rb;rg++)try{var r_=ry[rg];ev(rc[r_])&&tF(r_)}catch(t){}var rw=function(t){if(rp&&rp(t))return!0;try{for(var e=rm(t),n=0,o=rf(rv),r=o.length;n<r;n++)if(rv[o[n]]==e)return!0}catch(t){}return!1};il({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:rw}),op("matcher"),op("observable"),il({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:rd}),il({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:rw}),op("metadataKey"),op("patternMatch"),op("replaceAll");var rk=X(ro),rx=od.f("iterator"),rD=X(rx);function rS(t){return(rS="function"==typeof rk&&"symbol"==typeof rD?function(t){return typeof t}:function(t){return t&&"function"==typeof rk&&t.constructor===rk&&t!==rk.prototype?"symbol":typeof t})(t)}var rC=X(od.f("toPrimitive"));function rT(t){var e=function(t,e){if("object"!==rS(t)||null===t)return t;var n=t[rC];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==rS(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rS(e)?e:String(e)}function rM(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),nZ(t,rT(o.key),o)}}function rO(t,e,n){return e&&rM(t.prototype,e),n&&rM(t,n),nZ(t,"prototype",{writable:!1}),t}il({target:"Array",stat:!0},{isArray:nJ});var rE=ed.Array.isArray,rP=X(rE),rI=TypeError,rA=Object.getOwnPropertyDescriptor,rL=t7&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(nJ(t)&&!rA(t,"length").writable)throw new rI("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e};il({target:"Array",proto:!0,arity:1,forced:$(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=tg(this),n=ib(e),o=arguments.length;n0(n+o);for(var r=0;r<o;r++)e[n]=arguments[r],n++;return rL(e,n),n}});var rN=function(t){return ed[t+"Prototype"]},rF=rN("Array").push,rR=Array.prototype,rj=function(t){var e=t.push;return t===rR||ef(rR,t)&&e===rR.push?rF:e},rY=X(rj),rH=n8("slice"),rz=tF("species"),rG=Array,rB=Math.max;il({target:"Array",proto:!0,forced:!rH},{slice:function(t,e){var n,o,r,s=e4(this),a=ib(s),l=ig(t,a),h=ig(void 0===e?a:e,a);if(nJ(s)&&(nw(n=s.constructor)&&(n===rG||nJ(n.prototype))?n=void 0:t9(n)&&null===(n=n[rz])&&(n=void 0),n===rG||void 0===n))return oZ(s,l,h);for(r=0,o=new(void 0===n?rG:n)(rB(h-l,0));l<h;l++,r++)l in s&&nk(o,r,s[l]);return o.length=r,o}});var rW=rN("Array").slice,rU=Array.prototype,rV=function(t){var e=t.slice;return t===rU||ef(rU,t)&&e===rU.slice?rW:e},rX=X(rV),rq=X(nL);function rK(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function r$(t,e){if(t){if("string"==typeof t)return rK(t,e);var n,o=rX(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return rq(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return rK(t,e)}}function rZ(t,e){return function(t){if(rP(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==rk&&nB(t)||t["@@iterator"];if(null!=n){var o,r,s,a,l=[],h=!0,u=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;h=!1}else for(;!(h=(o=s.call(n)).done)&&(rY(l).call(l,o.value),l.length!==e);h=!0);}catch(t){u=!0,r=t}
25finally{try{if(!h&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(t,e)||r$(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rJ(t){return function(t){if(rP(t))return rK(t)}(t)||function(t){if(void 0!==rk&&null!=nB(t)||null!=t["@@iterator"])return rq(t)}(t)||r$(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var rQ=X(ro),r0=rN("Array").concat,r1=Array.prototype,r2=X(function(t){var e=t.concat;return t===r1||ef(r1,t)&&e===r1.concat?r0:e}),r5=X(rV),r3=te([].concat),r4=ep("Reflect","ownKeys")||function(t){var e=ot.f(el(t)),n=oh.f;return n?r3(e,n(t)):e};il({target:"Reflect",stat:!0},{ownKeys:r4});var r8=X(ed.Reflect.ownKeys),r6=X(rE),r9=og.map;il({target:"Array",proto:!0,forced:!n8("map")},{map:function(t){return r9(this,t,arguments.length>1?arguments[1]:void 0)}});var r7=rN("Array").map,st=Array.prototype,se=X(function(t){var e=t.map;return t===st||ef(st,t)&&e===st.map?r7:e});il({target:"Object",stat:!0,forced:$(function(){iC(1)})},{keys:function(t){return iC(tg(t))}});var si=X(ed.Object.keys),sn=Date,so=te(sn.prototype.getTime);il({target:"Date",stat:!0},{now:function(){return so(new sn)}});var sr=X(ed.Date.now),ss=Function,sa=te([].concat),sl=te([].join),sh={},su=function(t,e,n){if(!tb(sh,e)){for(var o=[],r=0;r<e;r++)o[r]="a["+r+"]";sh[e]=ss("C,a","return new C("+sl(o,",")+")")}return sh[e](t,n)},sd=Z?ss.bind:function(t){var e=e_(this),n=e.prototype,o=oZ(arguments,1),r=function(){var n=sa(o,oZ(arguments));return this instanceof r?su(e,n.length,n):e.apply(t,n)};return t9(n)&&(r.prototype=n),r};il({target:"Function",proto:!0,forced:Function.bind!==sd},{bind:sd});var sc=rN("Function").bind,sp=Function.prototype,sf=function(t){var e=t.bind;return t===sp||ef(sp,t)&&e===sp.bind?sc:e},sm=X(sf),sv=function(t,e){var n=[][t];return!!n&&$(function(){n.call(null,e||function(){return 1},1)})},sg=og.forEach,sy=sv("forEach")?[].forEach:function(t){return sg(this,t,arguments.length>1?arguments[1]:void 0)};il({target:"Array",proto:!0,forced:[].forEach!==sy},{forEach:sy});var sb=rN("Array").forEach,s_=Array.prototype,sw={DOMTokenList:!0,NodeList:!0},sk=function(t){var e=t.forEach;return t===s_||ef(s_,t)&&e===s_.forEach||tb(sw,tZ(t))?sb:e},sx=X(sk),sD=te([].reverse),sS=[1,2];il({target:"Array",proto:!0,forced:String(sS)===String(sS.reverse())},{reverse:function(){return nJ(this)&&(this.length=this.length),sD(this)}});var sC=rN("Array").reverse,sT=Array.prototype,sM=function(t){var e=t.reverse;return t===sT||ef(sT,t)&&e===sT.reverse?sC:e},sO=X(sM),sE=TypeError,sP=function(t,e){if(!delete t[e])throw new sE("Cannot delete property "+ey(e)+" of "+ey(t))},sI=n8("splice"),sA=Math.max,sL=Math.min;il({target:"Array",proto:!0,forced:!sI},{splice:function(t,e){var n,o,r,s,a,l,h=tg(this),u=ib(h),d=ig(t,u),c=arguments.length;for(0===c?n=o=0:1===c?(n=0,o=u-d):(n=c-2,o=sL(sA(tr(e),0),u-d)),n0(u+n-o),r=n3(h,o),s=0;s<o;s++)(a=d+s)in h&&nk(r,s,h[a]);if(r.length=o,n<o){for(s=d;s<u-o;s++)a=s+o,l=s+n,a in h?h[l]=h[a]:sP(h,l);for(s=u;s>u-o+n;s--)sP(h,s-1)}else if(n>o)for(s=u-o;s>d;s--)a=s+o-1,l=s+n-1,a in h?h[l]=h[a]:sP(h,l);for(s=0;s<n;s++)h[s+d]=arguments[s+2];return rL(h,u-o+n),r}});var sN=rN("Array").splice,sF=Array.prototype,sR=X(function(t){var e=t.splice;return t===sF||ef(sF,t)&&e===sF.splice?sN:e}),sj=Object.assign,sY=Object.defineProperty,sH=te([].concat),sz=!sj||$(function(){if(t7&&1!==sj({b:1},sj(sY({},"a",{enumerable:!0,get:function(){sY(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!==sj({},t)[n]||iC(sj({},e)).join("")!==o})?function(t,e){for(var n=tg(t),o=arguments.length,r=1,s=oh.f,a=eJ.f;o>r;)for(var l,h=e3(arguments[r++]),u=s?sH(iC(h),s(h)):iC(h),d=u.length,c=0;d>c;)l=u[c++],(!t7||eu(a,h,l))&&(n[l]=h[l]);return n}:sj;il({target:"Object",stat:!0,arity:2,forced:Object.assign!==sz},{assign:sz});var sG=X(ed.Object.assign),sB=iw.includes;il({target:"Array",proto:!0,forced:$(function(){return![,].includes()})},{includes:function(t){return sB(this,t,arguments.length>1?arguments[1]:void 0)}});var sW=rN("Array").includes,sU=tF("match"),sV=function(t){var e;return t9(t)&&(void 0!==(e=t[sU])?!!e:"RegExp"===tV(t))},sX=TypeError,sq=tF("match"),sK=function(t){if(sV(t))throw new sX("The method doesn't accept regular expressions");return t},s$=te("".indexOf);il({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[sq]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~s$(tQ(tm(this)),tQ(sK(t)),arguments.length>1?arguments[1]:void 0)}});var sZ=rN("String").includes,sJ=Array.prototype,sQ=String.prototype,s0=X(function(t){var e=t.includes;return t===sJ||ef(sJ,t)&&e===sJ.includes?sW:"string"==typeof t||t===sQ||ef(sQ,t)&&e===sQ.includes?sZ:e});il({target:"Object",stat:!0,forced:$(function(){iz(1)}),sham:!iR},{getPrototypeOf:function(t){return iz(tg(t))}});var s1=ed.Object.getPrototypeOf,s2=X(s1),s5=og.filter;il({target:"Array",proto:!0,forced:!n8("filter")},{filter:function(t){return s5(this,t,arguments.length>1?arguments[1]:void 0)}});var s3=rN("Array").filter,s4=Array.prototype,s8=X(function(t){var e=t.filter;return t===s4||ef(s4,t)&&e===s4.filter?s3:e}),s6=te(eJ.f),s9=te([].push),s7=t7&&$(function(){var t=Object.create(null);return t[2]=2,!s6(t,2)}),at=function(t){return function(e){for(var n,o=e4(e),r=iC(o),s=s7&&null===iz(
25o),a=r.length,l=0,h=[];a>l;)n=r[l++],(!t7||(s?n in o:s6(o,n)))&&s9(h,t?[n,o[n]]:o[n]);return h}},ae={entries:at(!0),values:at(!1)},ai=ae.values;il({target:"Object",stat:!0},{values:function(t){return ai(t)}});var an=X(ed.Object.values),ao=" \n\v\f\r \xa0áââââââ ââââââ¯âã\u2028\u2029\uFEFF",ar=te("".replace),as=RegExp("^["+ao+"]+"),aa=RegExp("(^|[^"+ao+"])["+ao+"]+$"),al=function(t){return function(e){var n=tQ(tm(e));return 1&t&&(n=ar(n,as,"")),2&t&&(n=ar(n,aa,"$1")),n}},ah={start:al(1),end:al(2),trim:al(3)},au=ah.trim,ad=ta.parseInt,ac=ta.Symbol,ap=ac&&ac.iterator,af=/^[+-]?0x/i,am=te(af.exec),av=8!==ad(ao+"08")||22!==ad(ao+"0x16")||ap&&!$(function(){ad(Object(ap))})?function(t,e){var n=au(tQ(t));return ad(n,e>>>0||(am(af,n)?16:10))}:ad;il({global:!0,forced:parseInt!==av},{parseInt:av});var ag=X(ed.parseInt),ay=iw.indexOf,ab=e$([].indexOf),a_=!!ab&&1/ab([1],1,-0)<0;il({target:"Array",proto:!0,forced:a_||!sv("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a_?ab(this,t,e)||0:ay(this,t,e)}});var aw=rN("Array").indexOf,ak=Array.prototype,ax=X(function(t){var e=t.indexOf;return t===ak||ef(ak,t)&&e===ak.indexOf?aw:e}),aD=ae.entries;il({target:"Object",stat:!0},{entries:function(t){return aD(t)}});var aS=X(ed.Object.entries);il({target:"Object",stat:!0,sham:!t7},{create:iF});var aC=ed.Object,aT=function(t,e){return aC.create(t,e)},aM=X(aT);ed.JSON||(ed.JSON={stringify:JSON.stringify});var aO=X(function(t,e,n){return eK(ed.JSON.stringify,null,arguments)}),aE="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,aP=TypeError,aI=function(t,e){if(t<e)throw new aP("Not enough arguments");return t},aA=ta.Function,aL=/MSIE .\./.test(tD)||aE&&((y=ta.Bun.version.split(".")).length<3||"0"===y[0]&&(y[1]<3||"3"===y[1]&&"0"===y[2])),aN=function(t,e){var n=e?2:1;return aL?function(o,r){var s=aI(arguments.length,1)>n,a=tB(o)?o:aA(o),l=s?oZ(arguments,n):[],h=s?function(){eK(a,this,l)}:a;return e?t(h,r):t(h)}:t},aF=aN(ta.setInterval,!0);il({global:!0,bind:!0,forced:ta.setInterval!==aF},{setInterval:aF});var aR=aN(ta.setTimeout,!0);il({global:!0,bind:!0,forced:ta.setTimeout!==aR},{setTimeout:aR});var aj=X(ed.setTimeout);il({target:"Array",proto:!0},{fill:function(t){for(var e=tg(this),n=ib(e),o=arguments.length,r=ig(o>1?arguments[1]:void 0,n),s=o>2?arguments[2]:void 0,a=void 0===s?n:ig(s,n);a>r;)e[r++]=t;return e}});var aY=rN("Array").fill,aH=Array.prototype,az=X(function(t){var e=t.fill;return t===aH||ef(aH,t)&&e===aH.fill?aY:e}),aG={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];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 n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),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 n,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<o.length;r++)if((n=o[r])===e||n.fn===e){o.splice(r,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),n=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(n){n=n.slice(0);for(var o=0,r=n.length;o<r;++o)n[o].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}}(aG);var aB=X(aG.exports);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 26 * http://naver.github.io/egjs 27 * 28 * Forked By Naver egjs 29 * Copyright (c) hammerjs 30 * Licensed under the MIT license */function aW(){return(aW=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function aU(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function aV(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var aX="function"!=typeof Object.assign?function(t){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign,aq=["","webkit","Moz","MS","ms","o"],aK="undefined"==typeof document?{style:{}}:document.createElement("div"),a$=Math.round,aZ=Math.abs,aJ=Date.now;function aQ(t,e){for(var n,o,r=e[0].toUpperCase()+e.slice(1),s=0;s<aq.length;){if((o=(n=aq[s])?n+r:e)in t)return o;s++}}E=window;var a0=aQ(aK.style,"touchAction"),a1=void 0!==a0,a2="compute",a5="auto",a3="mani
30pulation",a4="none",a8="pan-x",a6="pan-y",a9=function(){if(!a1)return!1;var t={},e=E.CSS&&E.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||E.CSS.supports("touch-action",n)}),t}(),a7="ontouchstart"in E,lt=void 0!==aQ(E,"PointerEvent"),le=a7&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),li="touch",ln="mouse",lo=["x","y"],lr=["clientX","clientY"];function ls(t,e,n){var o;if(t){if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}}function la(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function ll(t,e){return t.indexOf(e)>-1}var lh=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===a2&&(t=this.compute()),a1&&this.manager.element.style&&a9[t]&&(this.manager.element.style[a0]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return ls(this.manager.recognizers,function(e){la(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(ll(t,a4))return a4;var e=ll(t,a8),n=ll(t,a6);return e&&n?a4:e||n?e?a8:a6:ll(t,a3)?a3:a5}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented){e.preventDefault();return}var o=this.actions,r=ll(o,a4)&&!a9[a4],s=ll(o,a6)&&!a9[a6],a=ll(o,a8)&&!a9[a8];if(r){var l=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(l&&h&&u)return}if((!a||!s)&&(r||s&&6&n||a&&24&n))return this.preventSrc(e)},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function lu(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function ld(t){var e=t.length;if(1===e)return{x:a$(t[0].clientX),y:a$(t[0].clientY)};for(var n=0,o=0,r=0;r<e;)n+=t[r].clientX,o+=t[r].clientY,r++;return{x:a$(n/e),y:a$(o/e)}}function lc(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:a$(t.pointers[n].clientX),clientY:a$(t.pointers[n].clientY)},n++;return{timeStamp:aJ(),pointers:e,center:ld(e),deltaX:t.deltaX,deltaY:t.deltaY}}function lp(t,e,n){n||(n=lo);var o=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(o*o+r*r)}function lf(t,e,n){n||(n=lo);var o=e[n[0]]-t[n[0]];return 180*Math.atan2(e[n[1]]-t[n[1]],o)/Math.PI}function lm(t,e){return t===e?1:aZ(t)>=aZ(e)?t<0?2:4:e<0?8:16}function lv(t,e,n){return{x:e/t||0,y:n/t||0}}function lg(t,e,n){var o,r,s,a,l,h,u,d,c,p,f,m,v,g,y,b,_,w=n.pointers.length,k=n.changedPointers.length,x=1&e&&w-k==0,D=12&e&&w-k==0;n.isFirst=!!x,n.isFinal=!!D,x&&(t.session={}),n.eventType=e,r=t.session,a=(s=n.pointers).length,r.firstInput||(r.firstInput=lc(n)),a>1&&!r.firstMultiple?r.firstMultiple=lc(n):1===a&&(r.firstMultiple=!1),l=r.firstInput,u=(h=r.firstMultiple)?h.center:l.center,d=n.center=ld(s),n.timeStamp=aJ(),n.deltaTime=n.timeStamp-l.timeStamp,n.angle=lf(u,d),n.distance=lp(u,d),c=n.center,p=r.offsetDelta||{},f=r.prevDelta||{},m=r.prevInput||{},(1===n.eventType||4===m.eventType)&&(f=r.prevDelta={x:m.deltaX||0,y:m.deltaY||0},p=r.offsetDelta={x:c.x,y:c.y}),n.deltaX=f.x+(c.x-p.x),n.deltaY=f.y+(c.y-p.y),n.offsetDirection=lm(n.deltaX,n.deltaY),v=lv(n.deltaTime,n.deltaX,n.deltaY),n.overallVelocityX=v.x,n.overallVelocityY=v.y,n.overallVelocity=aZ(v.x)>aZ(v.y)?v.x:v.y,n.scale=h?(g=h.pointers,lp(s[0],s[1],lr)/lp(g[0],g[1],lr)):1,n.rotation=h?(y=h.pointers,lf(s[1],s[0],lr)+lf(y[1],y[0],lr)):0,n.maxPointers=r.prevInput?n.pointers.length>r.prevInput.maxPointers?n.pointers.length:r.prevInput.maxPointers:n.pointers.length,function(t,e){var n,o,r,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(l>25||void 0===a.velocity)){var h=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,d=lv(l,h,u);o=d.x,r=d.y,n=aZ(d.x)>aZ(d.y)?d.x:d.y,s=lm(h,u),t.lastInterval=e}else n=a.velocity,o=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,e.direction=s}(r,n),b=t.element,lu(o=(_=n.srcEvent).composedPath?_.composedPath()[0]:_.path?_.path[0]:_.target,b)&&(b=o),n.target=b,t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function ly(t){return t.trim().split(/\s+/g)}
30function lb(t,e,n){ls(ly(e),function(e){t.addEventListener(e,n,!1)})}function l_(t,e,n){ls(ly(e),function(e){t.removeEventListener(e,n,!1)})}function lw(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var lk=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){la(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&lb(this.element,this.evEl,this.domHandler),this.evTarget&&lb(this.target,this.evTarget,this.domHandler),this.evWin&&lb(lw(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&l_(this.element,this.evEl,this.domHandler),this.evTarget&&l_(this.target,this.evTarget,this.domHandler),this.evWin&&l_(lw(this.element),this.evWin,this.domHandler)},t}();function lx(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var o=0;o<t.length;){if(n&&t[o][n]==e||!n&&t[o]===e)return o;o++}return -1}var lD={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},lS={2:li,3:"pen",4:ln,5:"kinect"},lC="pointerdown",lT="pointermove pointerup pointercancel";E.MSPointerEvent&&!E.PointerEvent&&(lC="MSPointerDown",lT="MSPointerMove MSPointerUp MSPointerCancel");var lM=function(t){function e(){var n,o=e.prototype;return o.evEl=lC,o.evWin=lT,n=t.apply(this,arguments)||this,n.store=n.manager.session.pointerEvents=[],n}return aU(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,o=lD[t.type.toLowerCase().replace("ms","")],r=lS[t.pointerType]||t.pointerType,s=r===li,a=lx(e,t.pointerId,"pointerId");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(n=!0),!(a<0)&&(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))},e}(lk);function lO(t){return Array.prototype.slice.call(t,0)}function lE(t,e,n){for(var o=[],r=[],s=0;s<t.length;){var a=e?t[s][e]:t[s];0>lx(r,a)&&o.push(t[s]),r[s]=a,s++}return n&&(o=e?o.sort(function(t,n){return t[e]>n[e]}):o.sort()),o}var lP={touchstart:1,touchmove:2,touchend:4,touchcancel:8},lI=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",n=t.apply(this,arguments)||this,n.targetIds={},n}return aU(e,t),e.prototype.handler=function(t){var e=lP[t.type],n=lA.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:li,srcEvent:t})},e}(lk);function lA(t,e){var n,o,r=lO(t.touches),s=this.targetIds;if(3&e&&1===r.length)return s[r[0].identifier]=!0,[r,r];var a=lO(t.changedTouches),l=[],h=this.target;if(o=r.filter(function(t){return lu(t.target,h)}),1===e)for(n=0;n<o.length;)s[o[n].identifier]=!0,n++;for(n=0;n<a.length;)s[a[n].identifier]&&l.push(a[n]),12&e&&delete s[a[n].identifier],n++;if(l.length)return[lE(o.concat(l),"identifier",!0),l]}var lL={mousedown:1,mousemove:2,mouseup:4},lN=function(t){function e(){var n,o=e.prototype;return o.evEl="mousedown",o.evWin="mousemove mouseup",n=t.apply(this,arguments)||this,n.pressed=!1,n}return aU(e,t),e.prototype.handler=function(t){var e=lL[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:ln,srcEvent:t}))},e}(lk);function lF(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},o=this.lastTouches;this.lastTouches.push(n),setTimeout(function(){var t=o.indexOf(n);t>-1&&o.splice(t,1)},2500)}}function lR(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lF.call(this,e)):12&t&&lF.call(this,e)}function lj(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var r=this.lastTouches[o],s=Math.abs(e-r.x),a=Math.abs(n-r.y);if(s<=25&&a<=25)return!0}return!1}var lY=function(t){function e(e,n){var o;return(o=t.call(this,e,n)||this).handler=function(t,e,n){var r=n.pointerType===li,s=n.pointerType===ln;if(!s||!n.sourceCapabilities||!n.sourceCapabilities.firesTouchEvents){if(r)lR.call(aV(aV(o)),e,n);else if(s&&lj.call(aV(aV(o)),n))return;o.callback(t,e,n)}},o.touch=new lI(o.manager,o.handler),o.mouse=new lN(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return aU(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(lk);function lH(t,e,n){return!!Array.isArray(t)&&(ls(t,n[e],n),!0)}var lz=1;function lG(t,e){var n=e.manager;return n?n.get(t):t}function lB(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var lW=function(){function t(t){void 0===t&&(t={}),this.options=aW({enable:!0},t),this.id=lz++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return aX(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(lH(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=lG(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return lH(t,"dropRecognizeWith",this)||(t=lG(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(lH(t,"requireFailure",this))return this;var e=this.requireFail;return -1===lx(e,t=lG(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(lH(t,"dropRequireFailure",this))return this;t=lG(t,this);var e=lx(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function o(n){e.manager.emit(n,t)}n<8&&o(e.options.event+lB(n)),o(e.options.event),t.additionalEvent&&o(t.additionalEvent),n>=8&&o(e.options.event+lB(n))}
30,e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=aX({},t);if(!la(this.options.enable,[this,e])){this.reset(),this.state=32;return}56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),lU=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,aW({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}aU(e,t);var n=e.prototype;return n.getTouchAction=function(){return[a3]},n.process=function(t){var e=this,n=this.options,o=t.pointers.length===n.pointers,r=t.distance<n.threshold,s=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&s&&o){if(4!==t.eventType)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,l=!this.pCenter||lp(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,l&&a?this.count+=1:this.count=1,this._input=t,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.interval),2):8}return 32},n.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=32},this.options.interval),32},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(lW),lV=function(t){function e(e){return void 0===e&&(e={}),t.call(this,aW({pointers:1},e))||this}aU(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,o=6&e,r=this.attrTest(t);return o&&(8&n||!r)?16|e:o||r?4&n?8|e:2&e?4|e:2:32},e}(lW);function lX(t){return 16===t?"down":8===t?"up":2===t?"left":4===t?"right":""}var lq=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,aW({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}aU(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(a6),24&t&&e.push(a8),e},n.directionTest=function(t){var e=this.options,n=!0,o=t.distance,r=t.direction,s=t.deltaX,a=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!==this.pX,o=Math.abs(t.deltaX)):(r=0===a?1:a<0?8:16,n=a!==this.pY,o=Math.abs(t.deltaY))),t.direction=r,n&&o>e.threshold&&r&e.direction},n.attrTest=function(t){return lV.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=lX(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(lV),lK=function(t){function e(e){return void 0===e&&(e={}),t.call(this,aW({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}aU(e,t);var n=e.prototype;return n.getTouchAction=function(){return lq.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,o=this.options.direction;return 30&o?n=e.overallVelocity:6&o?n=e.overallVelocityX:24&o&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&o&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&aZ(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=lX(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(lV),l$=function(t){function e(e){return void 0===e&&(e={}),t.call(this,aW({event:"pinch",threshold:0,pointers:2},e))||this}aU(e,t);var n=e.prototype;return n.getTouchAction=function(){return[a4]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(lV),lZ=function(t){function e(e){return void 0===e&&(e={}),t.call(this,aW({event:"rotate",threshold:0,pointers:2},e))||this}aU(e,t);var n=e.prototype;return n.getTouchAction=function(){return[a4]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(lV),lJ=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,aW({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}aU(e,t);var n=e.prototype;return n.getTouchAction=function(){return[a5]},n.process=function(t){var e=this,n=this.options,o=t.pointers.length===n.pointers,r=t.distance<n.threshold,s=t.deltaTime>n.time;if(this._input=t,r&&o&&(!(12&t.eventType)||s)){if(1&t.eventType)this.reset(),this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.time);else if(4&t.eventType)return 8}else this.reset();return 32},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=aJ(),this.manager.emit(this.options.event,this._input)))},e}(lW),lQ={domEvents:!1,touchAction:a2,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},l0=[[lZ,{enable:!1}],[l$,{enable:!1},["rotate"]],[lK,{direction:6}],[lq,{direction:6},["swipe"]],[lU],[lU,{event:"doubletap",taps:2},["tap"]],[lJ]];function l1(t,e){var n,o=t.element;o.style&&(ls(t.options.cssProps,function(r,s){n=aQ(o.style,s),e?(t.oldCssProps[n]=o.style[n],o.style[n]=r):o.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var l2=function(){function t(t,e){var n,o=this;this.options=aX({},lQ,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this.options.inputClass)?n:lt?lM:le?lI:a7?lY:lN)(this,lg),this.touchAction=new lh(this,this.options.touchAction),l1(this,!0),ls(this.options.recognizers,function(t){var e=o.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return aX(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e,n=this.session;if(!n.stopped){this.touchAction.preventDefaults(t);var o=this.recognizers,r=n.curRecognizer;(!r||r&&8&r.state)&&(n.curRecognizer=null,r=null);for(var s=0;s<o.length;
30)e=o[s],2!==n.stopped&&(!r||e===r||e.canRecognizeWith(r))?e.recognize(t):e.reset(),!r&&14&e.state&&(n.curRecognizer=e,r=e),s++}},e.get=function(t){if(t instanceof lW)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(lH(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(lH(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,o=lx(n,e);-1!==o&&(n.splice(o,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return ls(ly(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return ls(ly(t),function(t){e?n[t]&&n[t].splice(lx(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){if(this.options.domEvents){var n;(n=document.createEvent("Event")).initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var o=this.handlers[t]&&this.handlers[t].slice();if(o&&o.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<o.length;)o[r](e),r++}},e.destroy=function(){this.element&&l1(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),l5={touchstart:1,touchmove:2,touchend:4,touchcancel:8},l3=function(t){function e(){var n,o=e.prototype;return o.evTarget="touchstart",o.evWin="touchstart touchmove touchend touchcancel",n=t.apply(this,arguments)||this,n.started=!1,n}return aU(e,t),e.prototype.handler=function(t){var e=l5[t.type];if(1===e&&(this.started=!0),this.started){var n=l4.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:li,srcEvent:t})}},e}(lk);function l4(t,e){var n=lO(t.touches),o=lO(t.changedTouches);return 12&e&&(n=lE(n.concat(o),"identifier",!0)),[n,o]}function l8(t,e,n){var o="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,o,n),t.apply(this,arguments)}}var l6=l8(function(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&void 0===t[o[r]])&&(t[o[r]]=e[o[r]]),r++;return t},"extend","Use `assign`."),l9=l8(function(t,e){return l6(t,e,!0)},"merge","Use `assign`.");function l7(t,e){return function(){return t.apply(e,arguments)}}var ht=((b=function(t,e){return void 0===e&&(e={}),new l2(t,aW({recognizers:l0.concat()},e))}).VERSION="2.0.17-rc",b.DIRECTION_ALL=30,b.DIRECTION_DOWN=16,b.DIRECTION_LEFT=2,b.DIRECTION_RIGHT=4,b.DIRECTION_UP=8,b.DIRECTION_HORIZONTAL=6,b.DIRECTION_VERTICAL=24,b.DIRECTION_NONE=1,b.DIRECTION_DOWN=16,b.INPUT_START=1,b.INPUT_MOVE=2,b.INPUT_END=4,b.INPUT_CANCEL=8,b.STATE_POSSIBLE=1,b.STATE_BEGAN=2,b.STATE_CHANGED=4,b.STATE_ENDED=8,b.STATE_RECOGNIZED=8,b.STATE_CANCELLED=16,b.STATE_FAILED=32,b.Manager=l2,b.Input=lk,b.TouchAction=lh,b.TouchInput=lI,b.MouseInput=lN,b.PointerEventInput=lM,b.TouchMouseInput=lY,b.SingleTouchInput=l3,b.Recognizer=lW,b.AttrRecognizer=lV,b.Tap=lU,b.Pan=lq,b.Swipe=lK,b.Pinch=l$,b.Rotate=lZ,b.Press=lJ,b.on=lb,b.off=l_,b.each=ls,b.merge=l9,b.extend=l6,b.bindFn=l7,b.assign=aX,b.inherit=function(t,e,n){var o,r=e.prototype;(o=t.prototype=Object.create(r)).constructor=t,o._super=r,n&&aX(o,n)},b.bindFn=l7,b.prefixed=aQ,b.toArray=lO,b.inArray=lx,b.uniqueArray=lE,b.splitStr=ly,b.boolOrFn=la,b.hasParent=lu,b.addEventListeners=lb,b.removeEventListeners=l_,b.defaults=aX({},lQ,{preset:l0}),b);function he(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return hi(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return hi(t,void 0)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function hi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}ht.defaults;var hn=rQ("DELETE");function ho(t){for(var e,n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return hr.apply(void 0,r2(e=[{},t]).call(e,o))}function hr(){var t=(function t(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];if(n.length<2)return n[0];if(n.length>2)return t.apply(void 0,r2(a=[hr(n[0],n[1])]).call(a,rJ(r5(n).call(n,2))));var r=n[0],s=n[1];if(r instanceof Date&&s instanceof Date)return r.setTime(s.getTime()),r;var a,l,h=he(r8(s));try{for(h.s();!(l=h.n()).done;){var u=l.value;Object.prototype.propertyIsEnumerable.call(s,u)&&(s[u]===hn?delete r[u]:null===r[u]||null===s[u]||"object"!==rS(r[u])||"object"!==rS(s[u])||r6(r[u])||r6(s[u])?r[u]=function e(n){return r6(n)?se(n).call(n,function(t){return e(t)}):"object"!==rS(n)||null===n?n:n instanceof Date?new Date(n.getTime()):t({},n)}(s[u]):r[u]=t(r[u],s[u]))}}catch(t){h.e(t)}finally{h.f()}return r}).apply(void 0,arguments);return function t(e){for(var n=0,o=si(e);n<o.length;n++){var r=o[n];e[r]===hn?delete e[r]:"object"===rS(e[r])&&null!==e[r]&&t(e[r])}}(t),t}var hs=window.Hammer||ht;function ha(t){var e,n=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)});var o=hs(this._dom.overlay);o.on("tap",sm(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){o.destroy()});var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];sx(r).call(r,function(t){o.on(t,function(t){t.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(e){!function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}(e.target,t)&&n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",n._onClick)})),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}aB(ha.prototype),ha.current=null,ha.prototype.destroy=function(){this.deactivate();var t,e,n,o=he(sO(t=sR(e=this._cleanupQueue).call(e,0)).call(t));try{for(o.s();!(n=o.n()).done;)(0,n.value)()}catch(t){o.e(t)}finally{o.f()}},ha.prototype.activate=function(){ha.current&&ha.current.deactivate(),ha.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit
30("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},ha.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},ha.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var hl=/^\/?Date\((-?\d+)/i,hh=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,hu=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,hd=/^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,hc=/^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 hp(t){return t instanceof Number||"number"==typeof t}function hf(t){return t instanceof String||"string"==typeof t}function hm(t){return"object"===rS(t)&&null!==t}function hv(t,e,n,o){var r=!1;!0===o&&(r=null===e[n]&&void 0!==t[n]),r?delete t[n]:t[n]=e[n]}function hg(t,e){var n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var s in e)(Object.prototype.hasOwnProperty.call(e,s)||!0===o)&&("object"===rS(e[s])&&null!==e[s]&&s2(e[s])===Object.prototype?void 0===t[s]?t[s]=hg({},e[s],o):"object"===rS(t[s])&&null!==t[s]&&s2(t[s])===Object.prototype?hg(t[s],e[s],o):hv(t,e,s,r):r6(e[s])?t[s]=r5(n=e[s]).call(n):hv(t,e,s,r));return t}function hy(t){var e=rS(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":r6(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function hb(t,e){var n;return r2(n=[]).call(n,rJ(t),[e])}function h_(t){return r5(t).call(t)}function hw(t){var e;switch(t.length){case 3:case 4:return(e=hu.exec(t))?{r:ag(e[1]+e[1],16),g:ag(e[2]+e[2],16),b:ag(e[3]+e[3],16)}:null;case 6:case 7:return(e=hh.exec(t))?{r:ag(e[1],16),g:ag(e[2],16),b:ag(e[3],16)}:null;default:return null}}function hk(t,e,n){var o;return"#"+r5(o=(16777216+(t<<16)+(e<<8)+n).toString(16)).call(o,1)}function hx(t,e,n){var o=Math.min(t/=255,Math.min(e/=255,n/=255)),r=Math.max(t,Math.max(e,n));if(o===r)return{h:0,s:0,v:o};var s=t===o?e-n:n===o?t-e:n-t;return{h:60*((t===o?3:n===o?1:5)-s/(r-o))/360,s:(r-o)/r,v:r}}function hD(t){var e=document.createElement("div"),n={};e.style.cssText=t;for(var o=0;o<e.style.length;++o)n[e.style[o]]=e.style.getPropertyValue(e.style[o]);return n}function hS(t,e,n){var o,r,s,a=Math.floor(6*t),l=6*t-a,h=n*(1-e),u=n*(1-l*e),d=n*(1-(1-l)*e);switch(a%6){case 0:o=n,r=d,s=h;break;case 1:o=u,r=n,s=h;break;case 2:o=h,r=n,s=d;break;case 3:o=h,r=u,s=n;break;case 4:o=d,r=h,s=n;break;case 5:o=n,r=h,s=u}return{r:Math.floor(255*o),g:Math.floor(255*r),b:Math.floor(255*s)}}function hC(t,e,n){var o=hS(t,e,n);return hk(o.r,o.g,o.b)}function hT(t){var e=hw(t);if(!e)throw TypeError("'".concat(t,"' is not a valid color."));return hx(e.r,e.g,e.b)}function hM(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function hO(t){return hd.test(t)}function hE(t){return hc.test(t)}function hP(t){if(null===t||"object"!==rS(t))return null;if(t instanceof Element)return t;var e=aM(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==rS(t[n])&&(e[n]=hP(t[n]));return e}var hI={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA5
305D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},hA=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;nU(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return rO(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"==typeof t)this.updateCallback=t;else throw Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if("function"==typeof t)this.closeCallback=t;else throw Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if("string"==typeof t)return hI[t]}},{key:"setColor",value:function(t){var e,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("none"!==t){var o=this._isColorString(t);if(void 0!==o&&(t=o),!0===hf(t)){if(!0===hO(t)){var r=t.substr(4).substr(0,t.length-5).split(",");e={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===hE(t)){var s=t.substr(5).substr(0,t.length-6).split(",");e={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(!0===hM(t)){var a=hw(t);e={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var l=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:l}}if(void 0===e)throw Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+aO(t));this._setColor(e,n)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!0===e&&(this.previousColor=sG({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",aj(function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];!0===e&&(this.initialColor=sG({},t)),this.color=t;var n=hx(t.r,t.g,t.b),o=2*Math.PI,r=this.r*n.s,s=this.centerCoordinates.x+r*Math.sin(o*n.h),a=this.centerCoordinates.y+r*Math.cos(o*n.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=hx(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=hS(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=hx(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,o,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",
30n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),az(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var e,n,o,r,s=document.createElement("DIV");s.style.color="red",s.style.fontWeight="bold",s.style.padding="10px",s.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(s)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=sm(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=sm(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=sm(o=this._save).call(o,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=sm(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new hs(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(e){e.isFirst&&t._moveSelector(e)}),this.hammer.on("tap",function(e){t._moveSelector(e)}),this.hammer.on("panstart",function(e){t._moveSelector(e)}),this.hammer.on("panmove",function(e){t._moveSelector(e)}),this.hammer.on("panend",function(e){t._moveSelector(e)})}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t,e,n,o,r,s=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1)),s.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,l=this.colorPickerCanvas.clientHeight;s.clearRect(0,0,a,l),this.centerCoordinates={x:.5*a,y:.5*l},this.r=.49*a;var h=2*Math.PI/360,u=1/360,d=1/this.r;for(n=0;n<360;n++)for(o=0;o<this.r;o++)t=this.centerCoordinates.x+o*Math.sin(h*n),e=this.centerCoordinates.y+o*Math.cos(h*n),r=hS(n*u,o*d,1),s.fillStyle="rgb("+r.r+","+r.g+","+r.b+")",s.fillRect(t-.5,e-.5,2,2);s.strokeStyle="rgba(0,0,0,1)",s.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),s.stroke(),this.hueCircle=s.getImageData(0,0,a,l)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,o=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,s=.5*this.colorPickerDiv.clientWidth,a=n-s,l=o-r,h=Math.atan2(a,l),u=.98*Math.min(Math.sqrt(a*a+l*l),s),d=Math.cos(h)*u+r,c=Math.sin(h)*u+s;this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=c-.5*this.colorPickerSelector.clientWidth+"px";
30var p=h/(2*Math.PI);p=p<0?p+1:p;var f=u/this.r,m=hx(this.color.r,this.color.g,this.color.b);m.h=p,m.s=f;var v=hS(m.h,m.s,m.v);v.a=this.color.a,this.color=v,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function hL(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);var o=document.createElement(e[0]);return o.appendChild(hL.apply(void 0,rJ(r5(e).call(e,1)))),o}var hN=function(){function t(e,n,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};nU(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},sG(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new hA(r),this.wrapper=void 0}return rO(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(r6(t))this.options.filter=t.join();else if("object"===rS(t)){if(null==t)throw TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==s8(t)&&(this.options.filter=s8(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===s8(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=s8(this.options),e=0,n=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(o,[]))||this._handleObject(this.configureOptions[o],[o],!0):(!0===t||-1!==ax(t).call(t,o))&&(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++)if(void 0!==e[t[n]])e=e[t[n]];else{e=void 0;break}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return sx(o).call(o,function(t){e.appendChild(t)}),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(hL("i","b",t))}else o.innerText=t+":";return o}},{key:"_makeDropdown",value:function(t,e,n){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==ax(t).call(t,e)&&(r=ax(t).call(t,e));for(var s=0;s<t.length;s++){var a=document.createElement("option");a.value=t[s],s===r&&(a.selected="selected"),a.innerText=t[s],o.appendChild(a)}var l=this;
30o.onchange=function(){l._update(this.value,n)};var h=this._makeLabel(n[n.length-1],n);this._makeItem(n,h,o)}},{key:"_makeRange",value:function(t,e,n){var o=t[0],r=t[1],s=t[2],a=t[3],l=document.createElement("input");l.className="vis-configuration vis-config-range";try{l.type="range",l.min=r,l.max=s}catch(t){}l.step=a;var h="",u=0;void 0!==e?(e<0&&1.2*e<r?(l.min=Math.ceil(1.2*e),u=l.min,h="range increased"):e/1.2<r&&(l.min=Math.ceil(e/1.2),u=l.min,h="range increased"),1.2*e>s&&1!==s&&(l.max=Math.ceil(1.2*e),u=l.max,h="range increased"),l.value=e):l.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=l.value;var c=this;l.onchange=function(){d.value=this.value,c._update(Number(this.value),n)},l.oninput=function(){d.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,l,d);""!==h&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(h,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var o=document.createElement("div");o.id="vis-configuration-popup",o.className="vis-configuration-popup",o.innerText=t,o.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:o,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=aj(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=aj(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var o=document.createElement("input");o.type="checkbox",o.className="vis-configuration vis-config-checkbox",o.checked=t,void 0!==e&&(o.checked=e,e!==t&&("object"===rS(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var r=this;o.onchange=function(){r._update(this.checked,n)};var s=this._makeLabel(n[n.length-1],n);this._makeItem(n,s,o)}},{key:"_makeTextInput",value:function(t,e,n){var o=document.createElement("input");o.type="text",o.className="vis-configuration vis-config-text",o.value=e,e!==t&&this.changedOptions.push({path:n,value:e});var r=this;o.onchange=function(){r._update(this.value,n)};var s=this._makeLabel(n[n.length-1],n);this._makeItem(n,s,o)}},{key:"_makeColorField",value:function(t,e,n){var o=this,r=t[1],s=document.createElement("div");"none"!==(e=void 0===e?r:e)?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=e):s.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,s.onclick=function(){o._showColorPicker(e,s,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,s)}},{key:"_showColorPicker",value:function(t,e,n){var o=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(t){var r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,o._update(r,n)}),this.colorPicker.setCloseCallback(function(){e.onclick=function(){o._showColorPicker(t,e,n)}})}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,r=s8(this.options),s=!1;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){o=!0;var l=t[a],h=hb(e,a);if("function"==typeof r&&!1===(o=r(a,e))&&!r6(l)&&"string"!=typeof l&&"boolean"!=typeof l&&l instanceof Object&&(this.allowCreation=!1,o=this._handleObject(l,h,!0),this.allowCreation=!1===n),!1!==o){s=!0;var u=this._getValue(h);if(r6(l))this._handleArray(l,u,h);else if("string"==typeof l)this._makeTextInput(l,u,h);else if("boolean"==typeof l)this._makeCheckbox(l,u,h);else if(l instanceof Object){if(!this.hideOption(e,a,this.moduleOptions)){if(void 0!==l.enabled){var d=hb(h,"enabled"),c=this._getValue(d);if(!0===c){var p=this._makeLabel(a,h,!0);this._makeItem(h,p),s=this._handleObject(l,h)||s}else this._makeCheckbox(l,c,h)}else{var f=this._makeLabel(a,h,!0);this._makeItem(h,f),s=this._handleObject(l,h)||s}}}else console.error("dont know how to handle",l,a,h)}}return s}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n;t="false"!==(t="true"===t||t)&&t;for(var r=0;r<e.length;r++)"global"!==e[r]&&(void 0===o[e[r]]&&(o[e[r]]={}),r!==e.length-1?o=o[e[r]]:o[e[r]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(hL("pre","const options = "+aO(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),hF=function(){function t(e,n){nU(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return rO(t,[{key:"setPosition",value:function(t,e){this.x=ag(t),this.y=ag(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,o=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,s=0,a=0;if("flip"==this.overflowMethod){var l=!1,h=!0;this.y-e<this.padding&&(h=!1),this.x+n>r-this.padding&&(l=!0),s=l?this.x-n:this.x,a=h?this.y-e:this.y}else(a=this.y-e)+e+this.padding>o&&(a=o-e-this.padding),a<this.padding&&(a=this.padding),(s=this.x)+n+this.padding>r&&(s=r-n-this.padding),s<this.padding&&(s=this.padding);this.frame.style.left=s+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),hR=!1,hj="background: #FFeeee; color: #dd0000",hY=function(){function t(){nU(this,t)}return rO(t,null,[{key:"validate",value:function(e,n,o){hR=!1,P=n;var r=n;return void 0!==o&&(r=n[o]),t.parse(e,r,[]),hR}},{key:"parse",value:function(e,n,o){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.check(r,e,n,o)}},{key:"check",value:function(e,n,o,r){if(void 0===o[e]&&void 0===o.__any__){t.getSuggestion(e,o,r);return}var s=e,a=!0;void 0===o[e]&&void 0!==o.__any__&&(s="__any__",a="object"===t.getType(n[e]));var l=o[s];a&&void 0!==l.__type__&&(l=l.__type__),t.checkFields(e,n,o,s,l,r)}},{key:"checkFields",value:function(e,n,o,r,s,a){var l=function(n){console.error("%c"+n+t.printLocation(a,e),hj)},h=t.getType(n[e]),u=s[h];void 0!==u?"array"===t.getType(u)&&-1===ax(u).call(u,n[e])?(l('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),hR=!0):"object"===h&&"__any__"!==r&&(a=hb(a,e),t.parse(n[e],o[r],a)):void 0===s.any&&(l('Invalid type received for "'+e+'". Expected: '+t.print(si(s))+". Received ["+h+'] "'+n[e]+'"'),hR=!0)}},{key:"getType",value:function(t){var e=rS(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":r6(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,o){var r,s=t.findInOptions(e,n,o,!1),a=t.findInOptions(e,P,[],!0);r=void 0!==s.indexMatch?" in "+t.printLocation(s.path,e,"")+'Perhaps it was incomplete? Did
30you mean: "'+s.indexMatch+'"?\n\n':a.distance<=4&&s.distance>a.distance?" in "+t.printLocation(s.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):s.distance<=8?'. Did you mean "'+s.closestMatch+'"?'+t.printLocation(s.path,e):". Did you mean one of these: "+t.print(si(n))+t.printLocation(o,e),console.error('%cUnknown option detected: "'+e+'"'+r,hj),hR=!0}},{key:"findInOptions",value:function(e,n,o){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,a="",l=[],h=e.toLowerCase(),u=void 0;for(var d in n){var c,p=void 0;if(void 0!==n[d].__type__&&!0===r){var f=t.findInOptions(e,n[d],hb(o,d));s>f.distance&&(a=f.closestMatch,l=f.path,s=f.distance,u=f.indexMatch)}else -1!==ax(c=d.toLowerCase()).call(c,h)&&(u=d),s>(p=t.levenshteinDistance(e,d))&&(a=d,l=h_(o),s=p)}return{closestMatch:a,path:l,distance:s,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",o="\n\n"+n+"options = {\n",r=0;r<t.length;r++){for(var s=0;s<r+1;s++)o+=" ";o+=t[r]+": {\n"}for(var a=0;a<t.length+1;a++)o+=" ";o+=e+"\n";for(var l=0;l<t.length+1;l++){for(var h=0;h<t.length-l;h++)o+=" ";o+="}\n"}return o+"\n\n"}},{key:"print",value:function(t){return aO(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,o,r=[];for(n=0;n<=e.length;n++)r[n]=[n];for(o=0;o<=t.length;o++)r[0][o]=o;for(n=1;n<=e.length;n++)for(o=1;o<=t.length;o++)e.charAt(n-1)==t.charAt(o-1)?r[n][o]=r[n-1][o-1]:r[n][o]=Math.min(r[n-1][o-1]+1,Math.min(r[n][o-1]+1,r[n-1][o]+1));return r[e.length][t.length]}}]),t}(),hH=Object.freeze({__proto__:null,Activator:ha,Alea:function(){for(var t,e,n,o,r,s,a,l=arguments.length,h=Array(l),u=0;u<l;u++)h[u]=arguments[u];return n=(e=rZ(function(){for(var t,e=(t=4022871197,function(e){for(var n=e.toString(),o=0;o<n.length;o++){var r=.02519603282416938*(t+=n.charCodeAt(o));t=r>>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return(t>>>0)*23283064365386963e-26}),n=e(" "),o=e(" "),r=e(" "),s=0;s<arguments.length;s++)n-=e(s<0||arguments.length<=s?void 0:arguments[s]),n<0&&(n+=1),o-=e(s<0||arguments.length<=s?void 0:arguments[s]),o<0&&(o+=1),r-=e(s<0||arguments.length<=s?void 0:arguments[s]),r<0&&(r+=1);return[n,o,r]}(t=h.length?h:[sr()]),3))[0],o=e[1],r=e[2],s=1,(a=function(){var t=2091639*n+23283064365386963e-26*s;return n=o,o=r,r=t-(s=0|t)}).uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+(2097152*a()|0)*11102230246251565e-32},a.algorithm="Alea",a.seed=t,a.version="0.9",a},ColorPicker:hA,Configurator:hN,DELETE:hn,HSVToHex:hC,HSVToRGB:hS,Hammer:hs,Popup:hF,RGBToHSV:hx,RGBToHex:hk,VALIDATOR_PRINT_STYLE:hj,Validator:hY,addClassName:function(t,e){var n=t.className.split(" "),o=e.split(" ");n=r2(n).call(n,s8(o).call(o,function(t){return!s0(n).call(n,t)})),t.className=n.join(" ")},addCssText:function(t,e){for(var n=hD(e),o=0,r=aS(n);o<r.length;o++){var s=rZ(r[o],2),a=s[0],l=s[1];t.style.setProperty(a,l)}},addEventListener:function(t,e,n,o){if(t.addEventListener){var r;void 0===o&&(o=!1),"mousewheel"===e&&s0(r=navigator.userAgent).call(r,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,o)}else t.attachEvent("on"+e,n)},binarySearchCustom:function(t,e,n,o){for(var r=0,s=0,a=t.length-1;s<=a&&r<1e4;){var l=Math.floor((s+a)/2),h=t[l],u=e(void 0===o?h[n]:h[n][o]);if(0==u)return l;-1==u?s=l+1:a=l-1,r++}return -1},binarySearchValue:function(t,e,n,o,r){var s,a,l,h,u=0,d=0,c=t.length-1;for(r=void 0!=r?r:function(t,e){return t==e?0:t<e?-1:1};d<=c&&u<1e4;){if(s=t[Math.max(0,(h=Math.floor(.5*(c+d)))-1)][n],a=t[h][n],l=t[Math.min(t.length-1,h+1)][n],0==r(a,e))return h;if(0>r(s,e)&&r(a,e)>0)return"before"==o?Math.max(0,h-1):h;if(0>r(a,e)&&r(l,e)>0)return"before"==o?h:Math.min(t.length-1,h+1);0>r(a,e)?d=h+1:c=h-1,u++}return -1},bridgeObject:hP,copyAndExtendArray:hb,copyArray:h_,deepExtend:hg,deepObjectAssign:hr,easingFunctions:{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:-1+(4-2*t)*t},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}},equalArray:function(t,e){if(t.length!==e.length)return!1;for(var n=0,o=t.length;n<o;n++)if(t[n]!=e[n])return!1;return!0},extend:sG,fillIfDefined:function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var r in e)if(void 0!==n[r]){if(null===n[r]||"object"!==rS(n[r]))hv(e,n,r,o);else{var s=e[r],a=n[r];hm(s)&&hm(a)&&t(s,a,o)}}}
30,forEach:function(t,e){if(r6(t))for(var n=t.length,o=0;o<n;o++)e(t[o],o,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],r,t)},getAbsoluteLeft:function(t){return t.getBoundingClientRect().left},getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:function(t){return t.getBoundingClientRect().top},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 n=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return n==o&&(o=e.clientWidth),document.body.removeChild(e),n-o},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:hy,hasParent:function(t,e){for(var n=t;n;){if(n===e)return!0;if(n.parentNode)n=n.parentNode;else break}return!1},hexToHSV:hT,hexToRGB:hw,insertSort:function(t,e){for(var n=0;n<t.length;n++){var o=t[n],r=void 0;for(r=n;r>0&&0>e(o,t[r-1]);r--)t[r]=t[r-1];t[r]=o}return t},isDate:function(t){return!!(t instanceof Date||hf(t)&&(hl.exec(t)||!isNaN(Date.parse(t))))},isNumber:hp,isObject:hm,isString:hf,isValidHex:hM,isValidRGB:hO,isValidRGBA:hE,mergeOptions:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return null!=t},s=function(t){return null!==t&&"object"===rS(t)};if(!s(t))throw Error("Parameter mergeTarget must be an object");if(!s(e))throw Error("Parameter options must be an object");if(!r(n))throw Error("Parameter option must have a value");if(!s(o))throw Error("Parameter globalOptions must be an object");var a=e[n],l=s(o)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(o)?o[n]:void 0,h=l?l.enabled:void 0;if(void 0!==a){if("boolean"==typeof a){s(t[n])||(t[n]={}),t[n].enabled=a;return}if(null===a&&!s(t[n])){if(!r(l))return;t[n]=aM(l)}if(s(a)){var u=!0;void 0!==a.enabled?u=a.enabled:void 0!==h&&(u=l.enabled),function(t,e,n){s(t[n])||(t[n]={});var o=e[n],r=t[n];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])}(t,e,n),t[n].enabled=u}}},option:{asBoolean:function(t,e){return("function"==typeof t&&(t=t()),null!=t)?!1!=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()),hf(t))?t:hp(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}},overrideOpacity:function(t,e){if(s0(t).call(t,"rgba"))return t;if(s0(t).call(t,"rgb")){var n=t.substr(ax(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var o=hw(t);return null==o?t:"rgba("+o.r+","+o.g+","+o.b+","+e+")"},parseColor:function(t,e){if(hf(t)){var n=t;if(hO(n)){var o,r=se(o=n.substr(4).substr(0,n.length-5).split(",")).call(o,function(t){return ag(t)});n=hk(r[0],r[1],r[2])}if(!0!==hM(n))return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}};var s=hT(n),a={h:s.h,s:.8*s.s,v:Math.min(1,1.02*s.v)},l={h:s.h,s:Math.min(1,1.25*s.s),v:.8*s.v},h=hC(l.h,l.s,l.v),u=hC(a.h,a.s,a.v);return{background:n,border:h,highlight:{background:u,border:h},hover:{background:u,border:h}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:hf(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:hf(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:hf(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:hf(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:ho,recursiveDOMDelete:function t(e){if(e)for(;!0===e.hasChildNodes();){var n=e.firstChild;n&&(t(n),e.removeChild(n))}},removeClassName:function(t,e){var n=t.className.split(" "),o=e.split(" ");n=s8(n).call(n,function(t){return!s0(o).call(o,t)}
30),t.className=n.join(" ")},removeCssText:function(t,e){for(var n=hD(e),o=0,r=si(n);o<r.length;o++){var s=r[o];t.style.removeProperty(s)}},removeEventListener:function(t,e,n,o){if(t.removeEventListener){var r;void 0===o&&(o=!1),"mousewheel"===e&&s0(r=navigator.userAgent).call(r,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,o)}else t.detachEvent("on"+e,n)},selectiveBridgeObject:function(t,e){if(null===e||"object"!==rS(e))return null;for(var n=aM(e),o=0;o<t.length;o++)Object.prototype.hasOwnProperty.call(e,t[o])&&"object"==rS(e[t[o]])&&(n[t[o]]=hP(e[t[o]]));return n},selectiveDeepExtend:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r6(n))throw TypeError("Arrays are not supported by deepExtend");for(var r=0;r<t.length;r++){var s=t[r];if(Object.prototype.hasOwnProperty.call(n,s)){if(n[s]&&n[s].constructor===Object)void 0===e[s]&&(e[s]={}),e[s].constructor===Object?hg(e[s],n[s],!1,o):hv(e,n,s,o);else if(r6(n[s]))throw TypeError("Arrays are not supported by deepExtend");else hv(e,n,s,o)}}return e},selectiveExtend:function(t,e){if(!r6(t))throw Error("Array with property names expected as first argument");for(var n=arguments.length,o=Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];for(var s=0;s<o.length;s++)for(var a=o[s],l=0;l<t.length;l++){var h=t[l];a&&Object.prototype.hasOwnProperty.call(a,h)&&(e[h]=a[h])}return e},selectiveNotDeepExtend:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r6(n))throw TypeError("Arrays are not supported by deepExtend");for(var r in n)if(!(!Object.prototype.hasOwnProperty.call(n,r)||s0(t).call(t,r))){if(n[r]&&n[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?hg(e[r],n[r]):hv(e,n,r,o);else if(r6(n[r])){e[r]=[];for(var s=0;s<n[r].length;s++)e[r].push(n[r][s])}else hv(e,n,r,o)}return e},throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}},toArray:an,topMost:function(t,e){r6(e)||(e=[e]);var n,o,r=he(t);try{for(r.s();!(o=r.n()).done;){var s=o.value;if(s){n=s[e[0]];for(var a=1;a<e.length;a++)n&&(n=n[e[a]]);if(void 0!==n)break}}}catch(t){r.e(t)}finally{r.f()}return n},updateProperty:function(t,e,n){return t[e]!==n&&(t[e]=n,!0)}});function hz(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function hG(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var n=0;n<t[e].redundant.length;n++)t[e].redundant[n].parentNode.removeChild(t[e].redundant[n]);t[e].redundant=[]}}function hB(t,e,n){var o;return e.hasOwnProperty(t)?e[t].redundant.length>0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(o)):(o=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(o)),e[t].used.push(o),o}function hW(t,e,n,o){var r;return e.hasOwnProperty(t)?e[t].redundant.length>0?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElement(t),void 0!==o?n.insertBefore(r,o):n.appendChild(r)):(r=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==o?n.insertBefore(r,o):n.appendChild(r)),e[t].used.push(r),r}function hU(t,e,n,o,r,s){var a;if("circle"==n.style?((a=hB("circle",o,r)).setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",e),a.setAttributeNS(null,"r",.5*n.size)):((a=hB("rect",o,r)).setAttributeNS(null,"x",t-.5*n.size),a.setAttributeNS(null,"y",e-.5*n.size),a.setAttributeNS(null,"width",n.size),a.setAttributeNS(null,"height",n.size)),void 0!==n.styles&&a.setAttributeNS(null,"style",n.styles),a.setAttributeNS(null,"class",n.className+" vis-point"),s){var l=hB("text",o,r);s.xOffset&&(t+=s.xOffset),s.yOffset&&(e+=s.yOffset),s.content&&(l.textContent=s.content),s.className&&l.setAttributeNS(null,"class",s.className+" vis-label"),l.setAttributeNS(null,"x",t),l.setAttributeNS(null,"y",e)}return a}function hV(t,e,n,o,r,s,a,l){if(0!=o){o<0&&(o*=-1,e-=o);var h=hB("rect",s,a);h.setAttributeNS(null,"x",t-.5*n),h.setAttributeNS(null,"y",e),h.setAttributeNS(null,"width",n),h.setAttributeNS(null,"height",o),h.setAttributeNS(null,"class",r),l&&h.setAttributeNS(null,"
30style",l)}}function hX(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var hq=X(aT);il({target:"Object",stat:!0},{setPrototypeOf:i5});var hK=ed.Object.setPrototypeOf,h$=X(hK),hZ=X(sf);function hJ(t,e){return(hJ=h$?hZ(h$).call(h$):function(t,e){return t.__proto__=e,t})(t,e)}function hQ(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=hq(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),nZ(t,"prototype",{writable:!1}),e&&hJ(t,e)}function h0(t,e){if(e&&("object"===rS(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return hX(t)}var h1=X(s1);function h2(t){return(h2=h$?hZ(h1).call(h1):function(t){return t.__proto__||h1(t)})(t)}function h5(t,e,n){return(e=rT(e))in t?nZ(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h3={exports:{}},h4={exports:{}};!function(t){function e(n){return t.exports=e="function"==typeof ro&&"symbol"==typeof rx?function(t){return typeof t}:function(t){return t&&"function"==typeof ro&&t.constructor===ro&&t!==ro.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(h4);var h8=h4.exports,h6=Error,h9=te("".replace),h7=String(new h6("zxcasd").stack),ut=/\n\s*at [^:]*:[^\n]*/,ue=ut.test(h7),ui=!$(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",eL(1,7)),7!==t.stack)}),un=function(t,e){if(ue&&"string"==typeof t&&!h6.prepareStackTrace)for(;e--;)t=h9(t,ut,"");return t},uo=Error.captureStackTrace,ur=TypeError,us=function(t,e){this.stopped=t,this.result=e},ua=us.prototype,ul=function(t,e,n){var o,r,s,a,l,h,u,d=n&&n.that,c=!!(n&&n.AS_ENTRIES),p=!!(n&&n.IS_RECORD),f=!!(n&&n.IS_ITERATOR),m=!!(n&&n.INTERRUPTED),v=ir(e,d),g=function(t){return o&&na(o,"normal",t),new us(!0,t)},y=function(t){return c?(el(t),m?v(t[0],t[1],g):v(t[0],t[1])):m?v(t,g):v(t)};if(p)o=t.iterator;else if(f)o=t;else{if(!(r=nD(t)))throw new ur(ey(t)+" is not iterable");if(nu(r)){for(s=0,a=ib(t);a>s;s++)if((l=y(t[s]))&&ef(ua,l))return l;return new us(!1)}o=nC(t,r)}for(h=p?t.next:o.next;!(u=eu(h,o)).done;){try{l=y(u.value)}catch(t){na(o,"throw",t)}if("object"==typeof l&&l&&ef(ua,l))return l}return new us(!1)},uh=function(t,e){t9(e)&&"cause"in e&&eN(t,"cause",e.cause)},uu=function(t,e,n,o){ui&&(uo?uo(t,e):eN(t,"stack",un(n,o)))},ud=tF("toStringTag"),uc=Error,up=[].push,uf=function(t,e){var n,o=ef(um,this);i5?n=i5(new uc,o?iz(this):um):eN(n=o?this:iF(um),ud,"Error"),void 0!==e&&eN(n,"message",function(t,e){return void 0===t?arguments.length<2?"":e:tQ(t)}(e)),uu(n,uf,n.stack,1),arguments.length>2&&uh(n,arguments[2]);var r=[];return ul(t,up,{that:r}),eN(n,"errors",r),n};i5?i5(uf,uc):function(t,e,n){for(var o=r4(e),r=et.f,s=eZ.f,a=0;a<o.length;a++){var l=o[a];tb(t,l)||n&&tb(n,l)||r(t,l,s(e,l))}}(uf,uc,{name:!0});var um=uf.prototype=iF(uc.prototype,{constructor:eL(1,uf),message:eL(1,""),name:eL(1,"AggregateError")});il({global:!0,constructor:!0,arity:2},{AggregateError:uf});var uv="process"===tV(ta.process),ug=tF("species"),uy=function(t){var e=ep(t);t7&&e&&!e[ug]&&ou(e,ug,{configurable:!0,get:function(){return this}})},ub=TypeError,u_=function(t,e){if(ef(e,t))return t;throw new ub("Incorrect invocation")},uw=TypeError,uk=function(t){if(nw(t))return t;throw new uw(ey(t)+" is not a constructor")},ux=tF("species"),uD=function(t,e){var n,o=el(t).constructor;return void 0===o||tp(n=el(o)[ux])?e:uk(n)},uS=/(?:ipad|iphone|ipod).*applewebkit/i.test(tD),uC=ta.setImmediate,uT=ta.clearImmediate,uM=ta.process,uO=ta.Dispatch,uE=ta.Function,uP=ta.MessageChannel,uI=ta.String,uA=0,uL={},uN="onreadystatechange";$(function(){I=ta.location});var uF=function(t){if(tb(uL,t)){var e=uL[t];delete uL[t],e()}},uR=function(t){return function(){uF(t)}},uj=function(t){uF(t.data)},uY=function(t){ta.postMessage(uI(t),I.protocol+"//"+I.host)};uC&&uT||(uC=function(t){aI(arguments.length,1);
30var e=tB(t)?t:uE(t),n=oZ(arguments,1);return uL[++uA]=function(){eK(e,void 0,n)},A(uA),uA},uT=function(t){delete uL[t]},uv?A=function(t){uM.nextTick(uR(t))}:uO&&uO.now?A=function(t){uO.now(uR(t))}:uP&&!uS?(N=(L=new uP).port2,L.port1.onmessage=uj,A=ir(N.postMessage,N)):ta.addEventListener&&tB(ta.postMessage)&&!ta.importScripts&&I&&"file:"!==I.protocol&&!$(uY)?(A=uY,ta.addEventListener("message",uj,!1)):A=uN in en("script")?function(t){iT.appendChild(en("script"))[uN]=function(){iT.removeChild(this),uF(t)}}:function(t){setTimeout(uR(t),0)});var uH=uC,uz=function(){this.head=null,this.tail=null};uz.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var uG=/ipad|iphone|ipod/i.test(tD)&&"undefined"!=typeof Pebble,uB=/web0s(?!.*chrome)/i.test(tD),uW=eZ.f,uU=uH,uV=ta.MutationObserver||ta.WebKitMutationObserver,uX=ta.document,uq=ta.process,uK=ta.Promise,u$=uW(ta,"queueMicrotask"),uZ=u$&&u$.value;if(!uZ){var uJ=new uz,uQ=function(){var t,e;for(uv&&(t=uq.domain)&&t.exit();e=uJ.get();)try{e()}catch(t){throw uJ.head&&F(),t}t&&t.enter()};uS||uv||uB||!uV||!uX?!uG&&uK&&uK.resolve?((Y=uK.resolve(void 0)).constructor=uK,H=ir(Y.then,Y),F=function(){H(uQ)}):uv?F=function(){uq.nextTick(uQ)}:(uU=ir(uU,ta),F=function(){uU(uQ)}):(R=!0,j=uX.createTextNode(""),new uV(uQ).observe(j,{characterData:!0}),F=function(){j.data=R=!R}),uZ=function(t){uJ.head||F(),uJ.add(t)}}var u0=uZ,u1=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},u2=ta.Promise,u5="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,u3=!u5&&!uv&&"object"==typeof document,u4=u2&&u2.prototype,u8=tF("species"),u6=!1,u9=tB(ta.PromiseRejectionEvent),u7={CONSTRUCTOR:e9("Promise",function(){var t=nc(u2),e=t!==String(u2);if(!e&&66===tO||!(u4.catch&&u4.finally))return!0;if(!tO||tO<51||!/native code/.test(t)){var n=new u2(function(t){t(1)}),o=function(t){t(function(){},function(){})};if((n.constructor={})[u8]=o,!(u6=n.then(function(){}) instanceof o))return!0}return!e&&(u3||u5)&&!u9}),REJECTION_EVENT:u9,SUBCLASSING:u6},dt={},de=TypeError,di=function(t){var e,n;this.promise=new t(function(t,o){if(void 0!==e||void 0!==n)throw new de("Bad Promise constructor");e=t,n=o}),this.resolve=e_(e),this.reject=e_(n)};dt.f=function(t){return new di(t)};var dn=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}},dr="Promise",ds=u7.CONSTRUCTOR,da=u7.REJECTION_EVENT;u7.SUBCLASSING;var dl=eU(dr),dh=u2&&u2.prototype,du=u2,dd=dh,dc=ta.TypeError,dp=ta.document,df=ta.process,dm=dt.f,dv=dm,dg=!!(dp&&dp.createEvent&&ta.dispatchEvent),dy="unhandledrejection",db=function(t){var e;return!!(t9(t)&&tB(e=t.then))&&e},d_=function(t,e){var n,o,r,s=e.value,a=1===e.state,l=a?t.ok:t.fail,h=t.resolve,u=t.reject,d=t.domain;try{l?(a||(2===e.rejection&&dS(e),e.rejection=1),!0===l?n=s:(d&&d.enter(),n=l(s),d&&(d.exit(),r=!0)),n===t.promise?u(new dc("Promise-chain cycle")):(o=db(n))?eu(o,n,h,u):h(n)):u(s)}catch(t){d&&!r&&d.exit(),u(t)}},dw=function(t,e){t.notified||(t.notified=!0,u0(function(){for(var n,o=t.reactions;n=o.get();)d_(n,t);t.notified=!1,e&&!t.rejection&&dx(t)}))},dk=function(t,e,n){var o,r;dg?((o=dp.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),ta.dispatchEvent(o)):o={promise:e,reason:n},!da&&(r=ta["on"+t])?r(o):t===dy&&dn("Unhandled promise rejection",n)},dx=function(t){eu(uH,ta,function(){var e,n=t.facade,o=t.value;if(dD(t)&&(e=u1(function(){uv?df.emit("unhandledRejection",o,n):dk(dy,n,o)}),t.rejection=uv||dD(t)?2:1,e.error))throw e.value})},dD=function(t){return 1!==t.rejection&&!t.parent},dS=function(t){eu(uH,ta,function(){var e=t.facade;uv?df.emit("rejectionHandled",e):dk("rejectionhandled",e,t.value)})},dC=function(t,e,n){return function(o){t(e,o,n)}},dT=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,dw(t,!0))},dM=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new dc("Promise can't be resolved itself");var o=db(e);o?u0(function(){var n={done:!1};try{eu(o,e,dC(dM,n,t),dC(dT,n,t))}catch(e){dT(n,e,t)}}):(t.value=e,t.state=1,dw(t,!1))}catch(e){dT({done:!1},e,t)}}};ds&&(dd=(du=function(t){u_(this,dd),e_(t),eu(z,this);var e=dl(this);try{t(dC(dM,e),dC(dT,e))}catch(t){dT(e,t)}}).prototype,(z=function(t){eW(this,{type:dr,done:!1,notified:!1,parent:!1,reactions:new uz,rejection:!1,state:0,value:void 0})}).prototype=iG(dd,"then",function(t,e){var n=dl(this),o=dm(uD(this,du));return n.parent=!0,o.ok=!tB(t)||t,o.fail=tB(e)&&e,o.domain=uv?df.domain:void 0,0===n.state?n.reactions.add(o):u0(function(){d_(o,n)}),o.promise}),G=function(){var t=new z,e=dl(t);this.promise=t,this.resolve=dC(dM,e),this.reject=dC(dT,e)}
30,dt.f=dm=function(t){return t===du||t===B?new G(t):dv(t)}),il({global:!0,constructor:!0,wrap:!0,forced:ds},{Promise:du}),i$(du,dr,!1,!0),uy(dr);var dO=u7.CONSTRUCTOR||!nA(function(t){u2.all(t).then(void 0,function(){})});il({target:"Promise",stat:!0,forced:dO},{all:function(t){var e=this,n=dt.f(e),o=n.resolve,r=n.reject,s=u1(function(){var n=e_(e.resolve),s=[],a=0,l=1;ul(t,function(t){var h=a++,u=!1;l++,eu(n,e,t).then(function(t){!u&&(u=!0,s[h]=t,--l||o(s))},r)}),--l||o(s)});return s.error&&r(s.value),n.promise}});var dE=u7.CONSTRUCTOR;u2&&u2.prototype,il({target:"Promise",proto:!0,forced:dE,real:!0},{catch:function(t){return this.then(void 0,t)}}),il({target:"Promise",stat:!0,forced:dO},{race:function(t){var e=this,n=dt.f(e),o=n.reject,r=u1(function(){var r=e_(e.resolve);ul(t,function(t){eu(r,e,t).then(n.resolve,o)})});return r.error&&o(r.value),n.promise}}),il({target:"Promise",stat:!0,forced:u7.CONSTRUCTOR},{reject:function(t){var e=dt.f(this);return eu(e.reject,void 0,t),e.promise}});var dP=function(t,e){if(el(t),t9(e)&&e.constructor===t)return e;var n=dt.f(t);return(0,n.resolve)(e),n.promise},dI=u7.CONSTRUCTOR,dA=ep("Promise"),dL=!dI;il({target:"Promise",stat:!0,forced:!0},{resolve:function(t){return dP(dL&&this===dA?u2:this,t)}}),il({target:"Promise",stat:!0,forced:dO},{allSettled:function(t){var e=this,n=dt.f(e),o=n.resolve,r=n.reject,s=u1(function(){var n=e_(e.resolve),r=[],s=0,a=1;ul(t,function(t){var l=s++,h=!1;a++,eu(n,e,t).then(function(t){!h&&(h=!0,r[l]={status:"fulfilled",value:t},--a||o(r))},function(t){!h&&(h=!0,r[l]={status:"rejected",reason:t},--a||o(r))})}),--a||o(r)});return s.error&&r(s.value),n.promise}});var dN="No one promise resolved";il({target:"Promise",stat:!0,forced:dO},{any:function(t){var e=this,n=ep("AggregateError"),o=dt.f(e),r=o.resolve,s=o.reject,a=u1(function(){var o=e_(e.resolve),a=[],l=0,h=1,u=!1;ul(t,function(t){var d=l++,c=!1;h++,eu(o,e,t).then(function(t){c||u||(u=!0,r(t))},function(t){!c&&!u&&(c=!0,a[d]=t,--h||s(new n(a,dN)))})}),--h||s(new n(a,dN))});return a.error&&s(a.value),o.promise}});var dF=u2&&u2.prototype;il({target:"Promise",proto:!0,real:!0,forced:!!u2&&$(function(){dF.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=uD(this,ep("Promise")),n=tB(t);return this.then(n?function(n){return dP(e,t()).then(function(){return n})}:t,n?function(n){return dP(e,t()).then(function(){throw n})}:t)}});var dR=ed.Promise;il({target:"Promise",stat:!0},{withResolvers:function(){var t=dt.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}}),il({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=dt.f(this),n=u1(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}}),function(t){var e=h8.default;function n(){t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var o,r={},s=Object.prototype,a=s.hasOwnProperty,l=n$||function(t,e,n){t[e]=n.value},h="function"==typeof ro?ro:{},u=h.iterator||"@@iterator",d=h.asyncIterator||"@@asyncIterator",c=h.toStringTag||"@@toStringTag";function p(t,e,n){return n$(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var s,a,h=aT((e&&e.prototype instanceof _?e:_).prototype);return l(h,"_invoke",{value:(s=new E(r||[]),a=v,function(e,r){if(a===g)throw Error("Generator is already running");if(a===y){if("throw"===e)throw r;return{value:o,done:!0}}for(s.method=e,s.arg=r;;){var l=s.delegate;if(l){var h=function t(e,n){var r=n.method,s=e.iterator[r];if(s===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=o,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),b;var a=m(s,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,b;var l=a.arg;return l?l.done?(n[e.resultName]=l.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=o),n.delegate=null,b):l:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,b)}(l,s);if(h){if(h===b)continue;return h}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===v)throw a=y,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=g;var u=m(t,n,s);if("normal"===u.type){if(a=s.done?y:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:s.done}}"throw"===u.type&&(a=y,s.method="throw",s.arg=u.arg)}})}),h}function m(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var v="suspendedStart",g="executing",y="completed",b={};function _(){}function w(){}function k(){}var x={};p(x,u,function(){return this});var D=s1&&s1(s1(P([])));D&&D!==s&&a.call(D,u)&&(x=D);var S=k.prototype=_.prototype=aT(x);function C(t){var e;sk(e=["next","throw","return"]).call(e,function(e){p(t,e,function(t){return this._invoke(e,t)})})}function T(t,n){var o;l(this,"_invoke",{value:function(r,s){function l(){return new n(function(o,l){!function o(r,s,l,h){var u=m(t[r],t,s);if("throw"!==u.type){var d=u.arg,c=d.value;return c&&"object"==e(c)&&a.call(c,"__await")?n.resolve(c.__await).then(function(t){o("next",t,l,h)},function(t){o("throw",t,l,h)}):n.resolve(c).then(function(t){d.value=t,l(d)},function(t){return o("throw",t,l,h)})}h(u.arg)}(r,s,o,l)})}return o=o?o.then(l,l):l()}})}function M(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),rj(e=this.tryEntries).call(e,n)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],sk(t).call(t,M,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[u];
30if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function e(){for(;++r<t.length;)if(a.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=o,e.done=!0,e};return s.next=s}}throw TypeError(e(t)+" is not iterable")}return w.prototype=k,l(S,"constructor",{value:k,configurable:!0}),l(k,"constructor",{value:w,configurable:!0}),w.displayName=p(k,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return hK?hK(t,k):(t.__proto__=k,p(t,c,"GeneratorFunction")),t.prototype=aT(S),t},r.awrap=function(t){return{__await:t}},C(T.prototype),p(T.prototype,d,function(){return this}),r.AsyncIterator=T,r.async=function(t,e,n,o,s){void 0===s&&(s=dR);var a=new T(f(t,e,n,o),s);return r.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},C(S),p(S,c,"Generator"),p(S,u,function(){return this}),p(S,"toString",function(){return"[object Generator]"}),r.keys=function(t){var e=Object(t),n=[];for(var o in e)rj(n).call(n,o);return sM(n).call(n),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},r.values=P,E.prototype={constructor:E,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,sk(e=this.tryEntries).call(e,O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+rV(n).call(n,1))&&(this[n]=o)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return l.type="throw",l.arg=t,e.next=n,r&&(e.method="next",e.arg=o),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],l=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var h=a.call(s,"catchLoc"),u=a.call(s,"finallyLoc");if(h&&u){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(h){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=t,s.arg=e,r?(this.method="next",this.next=r.finallyLoc,b):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=o),b}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(h3);var dj=(0,h3.exports)();try{regeneratorRuntime=dj}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=dj:Function("r","regeneratorRuntime = r")(dj)}var dY=X(dj),dH=TypeError,dz=function(t){return function(e,n,o,r){e_(n);var s=tg(e),a=e3(s),l=ib(s),h=t?l-1:0,u=t?-1:1;if(o<2)for(;;){if(h in a){r=a[h],h+=u;break}if(h+=u,t?h<0:l<=h)throw new dH("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=u)h in a&&(r=n(r,a[h],h,s));return r}},dG={left:dz(!1),right:dz(!0)}.left;il({target:"Array",proto:!0,forced:!uv&&tO>79&&tO<83||!sv("reduce")},{reduce:function(t){var e=arguments.length;return dG(this,t,e,e>1?arguments[1]:void 0)}});var dB=rN("Array").reduce,dW=Array.prototype,dU=X(function(t){var e=t.reduce;return t===dW||ef(dW,t)&&e===dW.reduce?dB:e}),dV=function(t,e,n,o,r,s,a,l){for(var h,u,d=r,c=0,p=!!a&&ir(a,l);c<o;)c in n&&(h=p?p(n[c],c,e):n[c],s>0&&nJ(h)?(u=ib(h),d=dV(t,e,h,u,d,s-1)-1):(n0(d+1),t[d]=h),d++),c++;return d};il({target:"Array",proto:!0},{flatMap:function(t){var e,n=tg(this),o=ib(n);return e_(t),(e=n3(n,0)).length=dV(e,n,n,o,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var dX=rN("Array").flatMap,dq=Array.prototype,dK=X(function(t){var e=t.flatMap;return t===dq||ef(dq,t)&&e===dq.flatMap?dX:e}),d$={exports:{}},dZ=$(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),dJ=Object.isExtensible,dQ=$(function(){dJ(1)})||dZ?function(t){return!!t9(t)&&(!dZ||"ArrayBuffer"!==tV(t))&&(!dJ||dJ(t))}:dJ,d0=!$(function(){return Object.isExtensible(Object.preventExtensions({}))}),d1=et.f,d2=!1,d5=tx("meta"),d3=0,d4=function(t){d1(t,d5,{value:{objectID:"O"+d3++,weakData:{}}})},d8=d$.exports={enable:function(){d8.enable=function(){},d2=!0;var t=ot.f,e=te([].splice),n={};n[d5]=1,t(n).length&&(ot.f=function(n){for(var o=t(n),r=0,s=o.length;r<s;r++)if(o[r]===d5){e(o,r,1);break}return o},il({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oi.f}))},fastKey:function(t,e){if(!t9(t))return"symbol"==typeof t?t:("str
30ing"==typeof t?"S":"P")+t;if(!tb(t,d5)){if(!dQ(t))return"F";if(!e)return"E";d4(t)}return t[d5].objectID},getWeakData:function(t,e){if(!tb(t,d5)){if(!dQ(t))return!0;if(!e)return!1;d4(t)}return t[d5].weakData},onFreeze:function(t){return d0&&d2&&dQ(t)&&!tb(t,d5)&&d4(t),t}};ej[d5]=!0;var d6=d$.exports,d9=et.f,d7=og.forEach,ct=function(t,e,n){var o,r=-1!==t.indexOf("Map"),s=-1!==t.indexOf("Weak"),a=r?"set":"add",l=ta[t],h=l&&l.prototype,u={};if(t7&&tB(l)&&(s||h.forEach&&!$(function(){new l().entries().next()}))){var d=(o=e(function(e,n){eW(u_(e,d),{type:t,collection:new l}),tp(n)||ul(n,e[a],{that:e,AS_ENTRIES:r})})).prototype,c=eU(t);d7(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"===t||"set"===t;t in h&&!(s&&"clear"===t)&&eN(d,t,function(n,o){var r=c(this).collection;if(!e&&s&&!t9(n))return"get"===t&&void 0;var a=r[t](0===n?0:n,o);return e?this:a})}),s||d9(d,"size",{configurable:!0,get:function(){return c(this).collection.size}})}else o=n.getConstructor(e,t,r,a),d6.enable();return i$(o,t,!1,!0),u[t]=o,il({global:!0,forced:!0},u),s||n.setStrong(o,t,r),o},ce=function(t,e,n){for(var o in e)n&&n.unsafe&&t[o]?t[o]=e[o]:iG(t,o,e[o],n);return t},ci=d6.fastKey,cn={getConstructor:function(t,e,n,o){var r=t(function(t,r){u_(t,s),eW(t,{type:e,index:iF(null),first:void 0,last:void 0,size:0}),t7||(t.size=0),tp(r)||ul(r,t[o],{that:t,AS_ENTRIES:n})}),s=r.prototype,a=eU(e),l=function(t,e,n){var o,r,s=a(t),l=h(t,e);return l?l.value=n:(s.last=l={index:r=ci(e,!0),key:e,value:n,previous:o=s.last,next:void 0,removed:!1},s.first||(s.first=l),o&&(o.next=l),t7?s.size++:t.size++,"F"!==r&&(s.index[r]=l)),t},h=function(t,e){var n,o=a(t),r=ci(e);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key===e)return n};return ce(s,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,t7?t.size=0:this.size=0},delete:function(t){var e=a(this),n=h(this,t);if(n){var o=n.next,r=n.previous;delete e.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),e.first===n&&(e.first=o),e.last===n&&(e.last=r),t7?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=a(this),o=ir(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(o(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!h(this,t)}}),ce(s,n?{get:function(t){var e=h(this,t);return e&&e.value},set:function(t,e){return l(this,0===t?0:t,e)}}:{add:function(t){return l(this,t=0===t?0:t,t)}}),t7&&ou(s,"size",{configurable:!0,get:function(){return a(this).size}}),r},setStrong:function(t,e,n){var o=e+" Iterator",r=eU(e),s=eU(o);ni(t,e,function(t,e){eW(this,{type:o,target:t,state:r(t),kind:e,last:void 0})},function(){for(var t=s(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"===e?nn(n.key,!1):"values"===e?nn(n.value,!1):nn([n.key,n.value],!1):(t.target=void 0,nn(void 0,!0))},n?"entries":"values",!n,!0),uy(e)}};ct("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},cn);var co=X(ed.Map);ct("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},cn);var cr=X(ed.Set),cs=X(rx),ca=X(nC),cl=Math.floor,ch=function(t,e){var n=t.length,o=cl(n/2);return n<8?cu(t,e):cd(t,ch(or(t,0,o),e),ch(or(t,o),e),e)},cu=function(t,e){for(var n,o,r=t.length,s=1;s<r;){for(o=s,n=t[s];o&&e(t[o-1],n)>0;)t[o]=t[--o];o!==s++&&(t[o]=n)}return t},cd=function(t,e,n,o){for(var r=e.length,s=n.length,a=0,l=0;a<r||l<s;)t[a+l]=a<r&&l<s?0>=o(e[a],n[l])?e[a++]:n[l++]:a<r?e[a++]:n[l++];return t},cc=tD.match(/firefox\/(\d+)/i),cp=!!cc&&+cc[1],cf=/MSIE|Trident/.test(tD),cm=tD.match(/AppleWebKit\/(\d+)\./),cv=!!cm&&+cm[1],cg=[],cy=te(cg.sort),cb=te(cg.push),c_=$(function(){cg.sort(void 0)}),cw=$(function(){cg.sort(null)}),ck=sv("sort"),cx=!$(function(){if(tO)return tO<70;if(!cp||!(cp>3)){if(cf)return!0;if(cv)return cv<603;var t,e,n,o,r="";for(t=65;t<76;
30t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)cg.push({k:e+o,v:n})}for(cg.sort(function(t,e){return e.v-t.v}),o=0;o<cg.length;o++)e=cg[o].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}});il({target:"Array",proto:!0,forced:c_||!cw||!ck||!cx},{sort:function(t){void 0!==t&&e_(t);var e,n,o=tg(this);if(cx)return void 0===t?cy(o):cy(o,t);var r=[],s=ib(o);for(n=0;n<s;n++)n in o&&cb(r,o[n]);for(ch(r,function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:tQ(e)>tQ(n)?1:-1}),e=ib(r),n=0;n<e;)o[n]=r[n++];for(;n<s;)sP(o,n++);return o}});var cD=rN("Array").sort,cS=Array.prototype,cC=X(function(t){var e=t.sort;return t===cS||ef(cS,t)&&e===cS.sort?cD:e}),cT=og.some;il({target:"Array",proto:!0,forced:!sv("some")},{some:function(t){return cT(this,t,arguments.length>1?arguments[1]:void 0)}});var cM=rN("Array").some,cO=Array.prototype,cE=X(function(t){var e=t.some;return t===cO||ef(cO,t)&&e===cO.some?cM:e}),cP=rN("Array").keys,cI=Array.prototype,cA={DOMTokenList:!0,NodeList:!0},cL=X(function(t){var e=t.keys;return t===cI||ef(cI,t)&&e===cI.keys||tb(cA,tZ(t))?cP:e}),cN=rN("Array").values,cF=Array.prototype,cR={DOMTokenList:!0,NodeList:!0},cj=X(function(t){var e=t.values;return t===cF||ef(cF,t)&&e===cF.values||tb(cR,tZ(t))?cN:e}),cY=rN("Array").entries,cH=Array.prototype,cz={DOMTokenList:!0,NodeList:!0},cG=X(function(t){var e=t.entries;return t===cH||ef(cH,t)&&e===cH.entries||tb(cz,tZ(t))?cY:e}),cB=X(n$),cW=ep("Reflect","construct"),cU=Object.prototype,cV=[].push,cX=$(function(){function t(){}return!(cW(function(){},[],t) instanceof t)}),cq=!$(function(){cW(function(){})}),cK=cX||cq;il({target:"Reflect",stat:!0,forced:cK,sham:cK},{construct:function(t,e){uk(t),el(e);var n=arguments.length<3?t:uk(arguments[2]);if(cq&&!cX)return cW(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var o=[null];return eK(cV,o,e),new(eK(sd,t,o))}var r=n.prototype,s=iF(t9(r)?r:cU),a=eK(t,s,e);return t9(a)?a:s}});var c$=X(ed.Reflect.construct),cZ=X(ed.Object.getOwnPropertySymbols),cJ={exports:{}},cQ=eZ.f;il({target:"Object",stat:!0,forced:!t7||$(function(){cQ(1)}),sham:!t7},{getOwnPropertyDescriptor:function(t,e){return cQ(e4(t),e)}});var c0=ed.Object,c1=cJ.exports=function(t,e){return c0.getOwnPropertyDescriptor(t,e)};c0.getOwnPropertyDescriptor.sham&&(c1.sham=!0);var c2=X(cJ.exports);il({target:"Object",stat:!0,sham:!t7},{getOwnPropertyDescriptors:function(t){for(var e,n,o=e4(t),r=eZ.f,s=r4(o),a={},l=0;s.length>l;)void 0!==(n=r(o,e=s[l++]))&&nk(a,e,n);return a}});var c5=X(ed.Object.getOwnPropertyDescriptors),c3={exports:{}},c4=ip.f;il({target:"Object",stat:!0,forced:Object.defineProperties!==c4,sham:!t7},{defineProperties:c4});var c8=ed.Object,c6=c3.exports=function(t,e){return c8.defineProperties(t,e)};c8.defineProperties.sham&&(c6.sham=!0);var c9=X(c3.exports);let c7=new Uint8Array(16),pt=[];for(let t=0;t<256;++t)pt.push((t+256).toString(16).slice(1));var pe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function pi(t,e,n){if(pe.randomUUID&&!e&&!t)return pe.randomUUID();let r=(t=t||{}).random||(t.rng||function(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(c7)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return pt[t[e+0]]+pt[t[e+1]]+pt[t[e+2]]+pt[t[e+3]]+"-"+pt[t[e+4]]+pt[t[e+5]]+"-"+pt[t[e+6]]+pt[t[e+7]]+"-"+pt[t[e+8]]+pt[t[e+9]]+"-"+pt[t[e+10]]+pt[t[e+11]]+pt[t[e+12]]+pt[t[e+13]]+pt[t[e+14]]+pt[t[e+15]]}(r)}function pn(t,e){var n=si(t);if(cZ){var o=cZ(t);e&&(o=s8(o).call(o,function(e){return c2(t,e).enumerable})),n.push.apply(n,o)}return n}function po(t){for(var e=1;e<arguments.length;e++){var n,o,r=null!=arguments[e]?arguments[e]:{};
30e%2?sx(n=pn(Object(r),!0)).call(n,function(e){h5(t,e,r[e])}):c5?c9(t,c5(r)):sx(o=pn(Object(r))).call(o,function(e){cB(t,e,c2(r,e))})}return t}function pr(t){var e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,o=h2(t);return n=e?c$(o,arguments,h2(this).constructor):o.apply(this,arguments),h0(this,n)}}function ps(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return pa(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return pa(t,void 0)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function pa(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}var pl=function(){function t(e,n,o){var r,s,a;nU(this,t),h5(this,"_source",void 0),h5(this,"_transformers",void 0),h5(this,"_target",void 0),h5(this,"_listeners",{add:sm(r=this._add).call(r,this),remove:sm(s=this._remove).call(s,this),update:sm(a=this._update).call(a,this)}),this._source=e,this._transformers=n,this._target=o}return rO(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return dU(e=this._transformers).call(e,function(t,e){return e(t)},t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),ph=function(){function t(e){nU(this,t),h5(this,"_source",void 0),h5(this,"_transformers",[]),this._source=e}return rO(t,[{key:"filter",value:function(t){return this._transformers.push(function(e){return s8(e).call(e,t)}),this}},{key:"map",value:function(t){return this._transformers.push(function(e){return se(e).call(e,t)}),this}},{key:"flatMap",value:function(t){return this._transformers.push(function(e){return dK(e).call(e,t)}),this}},{key:"to",value:function(t){return new pl(this._source,this._transformers,t)}}]),t}();function pu(t){return"string"==typeof t||"number"==typeof t}var pd=function(){function t(e){nU(this,t),h5(this,"delay",void 0),h5(this,"max",void 0),h5(this,"_queue",[]),h5(this,"_timeout",null),h5(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}return rO(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,n=0;n<e.length;n++){var o=e[n];o.original?t[o.name]=o.original:delete t[o.name]}this._extended=null}}},{key:"replace",value:function(t,e){var n=this,o=t[e];if(!o)throw Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];n.queue({args:e,fn:o,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=aj(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,e;sx(t=sR(e=this._queue).call(e,0)).call(t,function(t){t.fn.apply(t.context||t.fn,t.args||[])})}}],[{key:"extend",value:function(e,n){var o=new t(n);if(void 0!==e.flush)throw Error("Target object already has a property flush");e.flush=function(){o.flush()};var r=[{name:"flush",original:void 0}];if(n&&n.replace)for(var s=0;s<n.replace.length;s++){var a=n.replace[s];
30r.push({name:a,original:e[a]}),o.replace(e,a)}return o._extended={object:e,methods:r},o}}]),t}(),pc=function(){function t(){nU(this,t),h5(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),h5(this,"subscribe",t.prototype.on),h5(this,"unsubscribe",t.prototype.off)}return rO(t,[{key:"_trigger",value:function(t,e,n){var o,r;if("*"===t)throw Error("Cannot trigger event *");sx(o=r2(r=[]).call(r,rJ(this._subscribers[t]),rJ(this._subscribers["*"]))).call(o,function(o){o(t,e,null!=n?n:null)})}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var n;this._subscribers[t]=s8(n=this._subscribers[t]).call(n,function(t){return t!==e})}}]),t}(),pp=function(){function t(e){nU(this,t),h5(this,"_pairs",void 0),this._pairs=e}return rO(t,[{key:cs,value:dY.mark(function t(){var e,n,o,r,s;return dY.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ps(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=(o=rZ(n.value,2))[0],s=o[1],t.next=7,[r,s];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"entries",value:dY.mark(function t(){var e,n,o,r,s;return dY.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ps(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=(o=rZ(n.value,2))[0],s=o[1],t.next=7,[r,s];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"keys",value:dY.mark(function t(){var e,n,o;return dY.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ps(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return o=rZ(n.value,1)[0],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"values",value:dY.mark(function t(){var e,n,o;return dY.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=ps(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return o=rZ(n.value,2)[1],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}},t,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var t;return se(t=rJ(this._pairs)).call(t,function(t){return t[0]})}},{key:"toItemArray",value:function(){var t;return se(t=rJ(this._pairs)).call(t,function(t){return t[1]})}},{key:"toEntryArray",value:function(){return rJ(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=aM(null),n=ps(this._pairs);try{for(n.s();!(t=n.n()).done;){var o=rZ(t.value,2),r=o[0],s=o[1];e[r]=s}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"toMap",value:function(){return new co(this._pairs)}},{key:"toIdSet",value:function(){return new cr(this.toIdArray())}},{key:"toItemSet",value:function(){return new cr(this.toItemArray())}},{key:"cache",value:function(){return new t(rJ(this._pairs))}},{key:"distinct",value:function(t){var e,n=new cr,o=ps(this._pairs);try{for(o.s();!(e=o.n()).done;){var r=rZ(e.value,2),s=r[0],a=r[1];n.add(t(a,s))}}catch(t){o.e(t)}finally{o.f()}return n}},{key:"filter",value:function(e){var n=this._pairs;return new t(h5({},cs,dY.mark(function t(){var o,r,s,a,l;return dY.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=ps(n),t.prev=1,o.s();case 3:if((r=o.n()).done){t.next=10;break}if(a=(s=rZ(r.value,2))[0],!e(l=s[1],a)){t.next=8;break}return t.next=8,[a,l];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),o.e(t.t0);case 15:return t.prev=15,o.f(),t.finish(15);case 18:case"end":return t.stop()}},t,null,[[1,12,15,18]])})))}},{key:"forEach",value:function(t){var e,n=ps(this._pairs);try{for(n.s();!(e=n.n()).done;){var o=rZ(e.value,2),r=o[0],s=o[1];t(s,r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"map",value:function(e){var n=this._pairs;return new t(h5({},cs,dY.mark(function t(){var o,r,s,a,l;return dY.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=ps(n),t.prev=1,o.s();case 3:if((r=o.n()).done){t.next=9;break}return a=(s=rZ(r.value,2))[0],l=s[1],t.next=7,[a,e(l,a)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),o.e(t.t0);case 14:return t.prev=14,o.f(),t.finish(14);case 17:case"end":return t.stop()}},t,null,[[1,11,14,17]])})))}},{key:"max",value:function(t){var e=ca(this._pairs),n=e.next();if(n.done)return null;for(var o=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var s=rZ(n.value,2),a=s[0],l=s[1],h=t(l,a);h>r&&(r=h,o=l)}return o}},{key:"min",value:function(t){var e=ca(this._pairs),n=e.next();if(n.done)return null;for(var o=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var s=rZ(n.value,2),a=s[0],l=s[1],h=t(l,a);h<r&&(r=h,o=l)}return o}},{key:"reduce",value:function(t,e){var n,o=ps(this._pairs);try{for(o.s();!(n=o.n()).done;){var r=rZ(n.value,2),s=r[0],a=r[1];e=t(e,a,s)}}catch(t){o.e(t)}finally{o.f()}return e}},{key:"sort",value:function(e){var n=this;return new t(h5({},cs,function(){var t;return ca(cC(t=rJ(n._pairs)).call(t,function(t,n){var o=rZ(t,2),r=o[0],s=o[1],a=rZ(n,2),l=a[0];return e(s,a[1],r,l)}))}
30))}}]),t}(),pf=function(t){hQ(n,t);var e=pr(n);function n(t,o){var r;return nU(this,n),h5(hX(r=e.call(this)),"flush",void 0),h5(hX(r),"length",void 0),h5(hX(r),"_options",void 0),h5(hX(r),"_data",void 0),h5(hX(r),"_idProp",void 0),h5(hX(r),"_queue",null),t&&!r6(t)&&(o=t,t=[]),r._options=o||{},r._data=new co,r.length=0,r._idProp=r._options.fieldId||"id",t&&t.length&&r.add(t),r.setOptions(o),r}return rO(n,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=pd.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===rS(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var n,o=this,r=[];if(r6(t)){var s=se(t).call(t,function(t){return t[o._idProp]});if(cE(s).call(s,function(t){return o._data.has(t)}))throw Error("A duplicate id was found in the parameter array.");for(var a=0,l=t.length;a<l;a++)n=this._addItem(t[a]),r.push(n)}else if(t&&"object"===rS(t))n=this._addItem(t),r.push(n);else throw Error("Unknown dataType");return r.length&&this._trigger("add",{items:r},e),r}},{key:"update",value:function(t,e){var n=this,o=[],r=[],s=[],a=[],l=this._idProp,h=function(t){var e=t[l];if(null!=e&&n._data.has(e)){var h=sG({},n._data.get(e)),u=n._updateItem(t);r.push(u),a.push(t),s.push(h)}else{var d=n._addItem(t);o.push(d)}};if(r6(t))for(var u=0,d=t.length;u<d;u++)t[u]&&"object"===rS(t[u])?h(t[u]):console.warn("Ignoring input item, which is not an object at index "+u);else if(t&&"object"===rS(t))h(t);else throw Error("Unknown dataType");return o.length&&this._trigger("add",{items:o},e),r.length&&this._trigger("update",{items:r,oldData:s,data:a},e),r2(o).call(o,r)}},{key:"updateOnly",value:function(t,e){var n,o=this;r6(t)||(t=[t]);var r=se(n=se(t).call(t,function(t){var e=o._data.get(t[o._idProp]);if(null==e)throw Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}})).call(n,function(t){var e=t.oldData,n=t.update,r=e[o._idProp],s=ho(e,n);return o._data.set(r,s),{id:r,oldData:e,updatedData:s}});if(!r.length)return[];var s={items:se(r).call(r,function(t){return t.id}),oldData:se(r).call(r,function(t){return t.oldData}),data:se(r).call(r,function(t){return t.updatedData})};return this._trigger("update",s,e),s.items}},{key:"get",value:function(t,e){var n,o,r=void 0,s=void 0,a=void 0;pu(t)?(r=t,a=e):r6(t)?(s=t,a=e):a=t;var l=a&&"Object"===a.returnType?"Object":"Array",h=a&&s8(a),u=[],d=void 0,c=void 0,p=void 0;if(null!=r)(d=this._data.get(r))&&h&&!h(d)&&(d=void 0);else if(null!=s)for(var f=0,m=s.length;f<m;f++)null!=(d=this._data.get(s[f]))&&(!h||h(d))&&u.push(d);else{c=rJ(cL(n=this._data).call(n));for(var v=0,g=c.length;v<g;v++)p=c[v],null!=(d=this._data.get(p))&&(!h||h(d))&&u.push(d)}if(a&&a.order&&void 0==r&&this._sort(u,a.order),a&&a.fields){var y=a.fields;if(void 0!=r&&null!=d)d=this._filterFields(d,y);else for(var b=0,_=u.length;b<_;b++)u[b]=this._filterFields(u[b],y)}if("Object"==l){for(var w={},k=0,x=u.length;k<x;k++){var D=u[k];w[D[this._idProp]]=D}return w}return null!=r?null!==(o=d)&&void 0!==o?o:null:u}},{key:"getIds",value:function(t){var e=this._data,n=t&&s8(t),o=t&&t.order,r=rJ(cL(e).call(e)),s=[];if(n){if(o){for(var a=[],l=0,h=r.length;l<h;l++){var u=r[l],d=this._data.get(u);null!=d&&n(d)&&a.push(d)}this._sort(a,o);for(var c=0,p=a.length;c<p;c++)s.push(a[c][this._idProp])}else for(var f=0,m=r.length;f<m;f++){var v=r[f],g=this._data.get(v);null!=g&&n(g)&&s.push(g[this._idProp])}}else if(o){for(var y=[],b=0,_=r.length;b<_;b++){var w=r[b];y.push(e.get(w))}this._sort(y,o);for(var k=0,x=y.length;k<x;k++)s.push(y[k][this._idProp])}else for(var D=0,S=r.length;D<S;D++){var C=r[D],T=e.get(C);null!=T&&s.push(T[this._idProp])}return s}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var n=e&&s8(e),o=this._data,r=rJ(cL(o).call(o));if(e&&e.order)for(var s=this.get(e),a=0,l=s.length;a<l;a++){var h=s[a],u=h[this._idProp];t(h,u)}else for(var d=0,c=r.length;d<c;d++){var p=r[d],f=this._data.get(p);null!=f&&(!n||n(f))&&t(f,p)}}},{key:"map",value:function(t,e){for(var n=e&&s8(e),o=[],r=this._data,s=rJ(cL(r).call(r)),a=0,l=s.length;a<l;a++){var h=s[a],u=this._data.get(h);null!=u&&(!n||n(u))&&o.push(t(u,h))}return e&&e.order&&this._sort(o,e.order),o}},{key:"_filterFields",value:function(t,e){var n;return t?dU(n=r6(e)?e:si(e)).call(n,function(e,n){return e[n]=t[n],e},{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e)cC(t).call(t,function(t,n){var o=t[e],r=n[e];return o>r?1:o<r?-1:0});else if("function"==typeof e)cC(t).call(t,e);else throw TypeError("Order must be a function or a string")}},{key:"remove",value:function(t,e){for(var n=[],o=[],r=r6(t)?t:[t],s=0,a=r.length;s<a;s++){var l=this._remove(r[s]);if(l){var h=l[this._idProp];null!=h&&(n.push(h),o.push(l))}}return n.length&&this._trigger("remove",{items:n,oldData:o},e),n}},{key:"_remove",value:function(t){var e;if(pu(t)?e=t:t&&"object"===rS(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var n=this._data.get(e)||null;return this._data.delete(e),--this.length,n}return null}},{key:"clear",value:function(t){for(var e,n=rJ(cL(e=this._data).call(e)),o=[],r=0,s=n.length;r<s;r++)o.push(this._data.get(n[r]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:o},t),n}},{key:"max",value:function(t){var e,n,o=null,r=null,s=ps(cj(e=this._data).call(e));try{for(s.s();!(n=s.n()).done;){var a=n.value,l=a[t];"number"==typeof l&&(null==r||l>r)&&(o=a,r=l)}}catch(t){s.e(t)}finally{s.f()}return o||null}},{key:"min",value:function(t){var e,n,o=null,r=null,s=ps(cj(e=this._data).call(e));try{for(s.s();!(n=s.n()).done;){var a=n.value,l=a[t];"number"==typeof l&&(null==r||l<r)&&(o=a,r=l)}}catch(t){s.e(t)}finally{s.f()}return o||null}},{key:"distinct",value:function(t){for(var e=this._data,n=rJ(cL(e).call(e)),o=[],r=0,s=0,a=n.length;s<a;s++){for(var l=n[s],h=e.get(l)[t],u=!1,d=0;d<r;d++)if(o[d]==h){u=!0;break}!u&&void 0!==h&&(o[r]=h,r++)}return o}},{key:"_addItem",value:function(t){var e,n=(null==t[e=this._idProp]&&(t[e]=pi()),t),o=n[this._idProp];if(this._data.has(o))throw Error("Cannot add item: item with id "+o+" already exists");return this._data.set(o,n),++this.length,o}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw Error("Cannot update item: item has no id (item: "+aO(t)+")");var n=this._data.get(e);if(!n)throw Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,po(po({},n),t)),e}},{key:"stream",value:function(t){if(!t)return new pp(h5({},cs,sm(e=cG(this._data)).call(e,this._data)));var e,n=this._data;return new pp(h5({},cs,dY.mark(function e(){var o,r,s,a;return dY.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=ps(t),e.prev=1,o.s();case 3:if((r=o.n()).done){e.next=11;break}if(s=r.value,!(null!=(a=n.get(s)))){e.next=9;break}return e.next=9,[s,a];case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),o.e(e.t0);case 16:return e.prev=16,o.f(),e.finish(16);case 19:case"end":return e.stop()}},e,null,[[1,13,16,19]])})))}}]),n}(pc),pm=function(t){hQ(n,t);var e=pr(n);function n(t,o){var r,s;return nU(this,n),h5(hX(s=e.call(this)),"length",0),h5(hX(s),"_listener",void 0),h5(hX(s),"_data",void 0),h5(hX(s),"_ids",new cr),h5(hX(s),"_options",void 0),s._options=o||{},s._listener=sm(r=s._onEvent).call(r,hX(s)),s.setData(t),s}return rO(n,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:s8(this._options)}),n=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:n})}if(null!=t){this._data=t;for(var o=this._data.getIds({filter:s8(this._options)}),r=0,s=o.length;r<s;r++){var a=o[r];this._ids.add(a)}this.length=o.length,this._trigger("add",{items:o})}else this._data=new pf;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:s8(this._options)}),e=rJ(this._ids),n={},o=[],r=[],s=[],a=0,l=t.length;a<l;a++){var h=t[a];n[h]=!0,this._ids.has(h)||(o.push(h),this._ids.add(h))}for(var u=0,d=e.length;u<d;u++){var c=e[u],p=this._data.get(c);null==p?console.error("If you see this, report it please."):n[c]||(r.push(c),s.push(p),this._ids.delete(c))}this.length+=o.length-r.length,o.length&&this._trigger("add",{items:o}),r.length&&this._trigger("remove",{items:r,oldData:s})}},{key:"get",value:function(t,e){if(null==this._data)return null;var n,o=null;pu(t)||r6(t)?(o=t,n=e):n=t;var r=sG({},this._options,n),s=s8(this._options),a=n&&s8(n);return(s&&a&&(r.filter=function(t){return s(t)&&a(t)}),null==o)?this._data.get(r):this._data.get(o,r)}},{key:"getIds",value:function(t){if(!this._data.length)return[];var e,n=s8(this._options),o=null!=t?s8(t):null;return e=o?n?function(t){return n(t)&&o(t)}:o:n,this._data.getIds({filter:e,order:t&&t.order})}}
30,{key:"forEach",value:function(t,e){if(this._data){var n,o,r=s8(this._options),s=e&&s8(e);o=s?r?function(t){return r(t)&&s(t)}:s:r,sx(n=this._data).call(n,t,{filter:o,order:e&&e.order})}}},{key:"map",value:function(t,e){if(!this._data)return[];var n,o,r=s8(this._options),s=e&&s8(e);return o=s?r?function(t){return r(t)&&s(t)}:s:r,se(n=this._data).call(n,t,{filter:o,order:e&&e.order})}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||h5({},cs,sm(e=cL(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var t,e,o="This data view has already been disposed of.",r={get:function(){throw Error(o)},set:function(){throw Error(o)},configurable:!1},s=ps(r8(n.prototype));try{for(s.s();!(e=s.n()).done;){var a=e.value;cB(this,a,r)}}catch(t){s.e(t)}finally{s.f()}}},{key:"_onEvent",value:function(t,e,n){if(e&&e.items&&this._data){var o=e.items,r=[],s=[],a=[],l=[],h=[],u=[];switch(t){case"add":for(var d=0,c=o.length;d<c;d++){var p=o[d];this.get(p)&&(this._ids.add(p),r.push(p))}break;case"update":for(var f=0,m=o.length;f<m;f++){var v=o[f];this.get(v)?this._ids.has(v)?(s.push(v),h.push(e.data[f]),l.push(e.oldData[f])):(this._ids.add(v),r.push(v)):this._ids.has(v)&&(this._ids.delete(v),a.push(v),u.push(e.oldData[f]))}break;case"remove":for(var g=0,y=o.length;g<y;g++){var b=o[g];this._ids.has(b)&&(this._ids.delete(b),a.push(b),u.push(e.oldData[g]))}}this.length+=r.length-a.length,r.length&&this._trigger("add",{items:r},n),s.length&&this._trigger("update",{items:s,oldData:l,data:h},n),a.length&&this._trigger("remove",{items:a,oldData:u},n)}}}]),n}(pc),pv=X(window.moment||K()),pg=X(K()),py={exports:{}},pb={},p_={exports:{}},pw={};function pk(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode
30-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}var px=/javascript\s*\:/img;pw.whiteList=pk(),pw.getDefaultWhiteList=pk,pw.onAttr=function(t,e,n){},pw.onIgnoreAttr=function(t,e,n){},pw.safeAttrValue=function(t,e){return px.test(e)?"":e};var pD={trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},pS=function(t,e){";"!==(t=pD.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,o=!1,r=0,s=0,a="";function l(){if(!o){var n=pD.trim(t.slice(r,s)),l=n.indexOf(":");if(-1!==l){var h=pD.trim(n.slice(0,l)),u=pD.trim(n.slice(l+1));if(h){var d=e(r,a.length,h,u,n);d&&(a+=d+"; ")}}}r=s+1}for(;s<n;s++){var h=t[s];if("/"===h&&"*"===t[s+1]){var u=t.indexOf("*/",s+2);if(-1===u)break;r=(s=u+1)+1,o=!1}else"("===h?o=!0:")"===h?o=!1:";"===h?o||l():"\n"===h&&l()}return pD.trim(a)};function pC(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).whiteList=t.whiteList||pw.whiteList,t.onAttr=t.onAttr||pw.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||pw.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||pw.safeAttrValue,this.options=t}pC.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,o=e.onAttr,r=e.onIgnoreAttr,s=e.safeAttrValue;return pS(t,function(t,e,a,l,h){var u=n[a],d=!1;if(!0===u?d=u:"function"==typeof u?d=u(l):u instanceof RegExp&&(d=u.test(l)),!0!==d&&(d=!1),l=s(a,l)){var c={position:e,sourcePosition:t,source:h,isWhite:d};if(d){var p=o(a,l,c);return null==p?a+":"+l:p}var p=r(a,l,c);if(null!=p)return p}})},function(t,e){for(var n in(e=t.exports=function(t,e){return new pC(e).process(t)}).FilterCSS=pC,pw)e[n]=pw[n];window.filterCSS=t.exports}(p_,p_.exports);var pT=p_.exports,pM={indexOf:function(t,e){var n,o;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return -1},forEach:function(t,e,n){var o,r;if(Array.prototype.forEach)return t.forEach(e,n);for(o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}},pO=pT.FilterCSS,pE=pT.getDefaultWhiteList;function pP(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var pI=new pO;function pA(t){return t.replace(pL,"<").replace(pN,">")}var pL=/</g,pN=/>/g,pF=/"/g,pR=/"/g,pj=/&#([a-zA-Z0-9]*);?/gim,pY=/:?/gim,pH=/&newline;?/gim,pz=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,pG=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,pB=/u\s*r\s*l\s*\(.*/gi;function pW(t){return t.replace(pF,""")}function pU(t){return t.replace(pR,'"')}function pV(t){return t.replace(pj,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})}function pX(t){return t.replace(pY,":").replace(pH," ")}function pq(t){for(var e="",n=0,o=t.length;n<o;n++)e+=32>t.charCodeAt(n)?" ":t.charAt(n);return pM.trim(e)}function pK(t){return t=pq(t=pX(t=pV(t=pU(t))))}function p$(t){return t=pA(t=pW(t))}pb.whiteList=pP(),pb.getDefaultWhiteList=pP,pb.onTag=function(t,e,n){},pb.onIgnoreTag=function(t,e,n){},pb.onTagAttr=function(t,e,n){},pb.onIgnoreTagAttr=function(t,e,n){},pb.safeAttrValue=function(t,e,n,o){if(n=pK(n),"href"===e||"src"===e){if("#"===(n=pM.trim(n)))return"#";if(!("http://"===n.substr(0,7)||"https://"===n.substr(0,8)||"mailto:"===n.substr(0,7)||"tel:"===n.substr(0,4)||"data:image/"===n.substr(0,11)||"ftp://"===n.substr(0,6)||"./"===n.substr(0,2)||"../"===n.substr(0,3)||"#"===n[0]||"/"===n[0]))return""}else if("background"===e){if(pz.lastIndex=0,pz.test(n))return""}else if("style"===e){if(pG.lastIndex=0,pG.test(n)||(pB.lastIndex=0,pB.test(n)&&(pz.lastIndex=0,pz.test(n))))return"";!1!==o&&(n=(o=o||pI).process(n))}return n=p$(n)},pb.escapeHtml=pA,pb.escapeQuote=pW,pb.unescapeQuote=pU,pb.escapeHtmlEntities=pV,pb.escapeDangerHtml5Entities=pX,pb.clearNonPrintableCharacter=pq,pb.friendlyAttrValue=pK,pb.escapeAttrValue=p$,pb.onIgnoreTagStripAll=function(){return""},pb.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var n=!Array.isArray(t),o=[],r=!1;return{onIgnoreTag:function(s,a,l){if(n?0:-1===pM.indexOf(t,s))return e(s,a,l);if(!l.isClosing)return r||(r=l.position),"[removed]";var h="[/removed]",u=l.position+h.length;return o.push([!1!==r?r:l.position,u]),r=!1,h},remove:function(t){var e="",n=0;
30return pM.forEach(o,function(o){e+=t.slice(n,o[0]),n=o[1]}),e+=t.slice(n)}}},pb.stripCommentTag=function(t){for(var e="",n=0;n<t.length;){var o=t.indexOf("<!--",n);if(-1===o){e+=t.slice(n);break}e+=t.slice(n,o);var r=t.indexOf("-->",o);if(-1===r)break;n=r+3}return e},pb.stripBlankChar=function(t){var e=t.split("");return(e=e.filter(function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||10===e||13===e)})).join("")},pb.cssFilter=pI,pb.getDefaultCSSWhiteList=pE;var pZ={},pJ=/[^a-zA-Z0-9\\_:.-]/gim;function pQ(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]?t.substr(1,t.length-2):t}pZ.parseTag=function(t,e,n){var o="",r=0,s=!1,a=!1,l=0,h=t.length,u="",d="";t:for(l=0;l<h;l++){var c=t.charAt(l);if(!1===s){if("<"===c){s=l;continue}}else if(!1===a){if("<"===c){o+=n(t.slice(r,l)),s=l,r=l;continue}if(">"===c||l===h-1){o+=n(t.slice(r,s)),u=function(t){var e,n=pM.spaceIndex(t);return e=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(e=pM.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}(d=t.slice(s,l+1)),o+=e(s,o.length,u,d,"</"===d.slice(0,2)),r=l+1,s=!1;continue}
30if('"'===c||"'"===c)for(var p=1,f=t.charAt(l-p);""===f.trim()||"="===f;){if("="===f){a=c;continue t}f=t.charAt(l-++p)}}else if(c===a){a=!1;continue}}return r<h&&(o+=n(t.substr(r))),o},pZ.parseAttr=function(t,e){var n=0,o=0,r=[],s=!1,a=t.length;function l(t,n){if(!((t=(t=pM.trim(t)).replace(pJ,"").toLowerCase()).length<1)){var o=e(t,n||"");o&&r.push(o)}}for(var h=0;h<a;h++){var u,d=t.charAt(h);if(!1===s&&"="===d){s=t.slice(n,h),n=h+1,o='"'===t.charAt(n)||"'"===t.charAt(n)?n:function(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n){if("'"===n||'"'===n)return e;return -1}}}(t,h+1);continue}if(!1!==s&&h===o){if(-1===(u=t.indexOf(d,h+1)))break;l(s,pM.trim(t.slice(o+1,u))),s=!1,n=(h=u)+1;continue}if(/\s|\n|\t/.test(d)){if(t=t.replace(/\s|\n|\t/g," "),!1===s){if(-1===(u=function(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n){if("="===n)return e;return -1}}}(t,h))){l(pM.trim(t.slice(n,h))),s=!1,n=h+1;continue}h=u-1;continue}if(-1!==(u=function(t,e){for(;e>0;e--){var n=t[e];if(" "!==n){if("="===n)return e;return -1}}}(t,h-1)))continue;l(s,pQ(pM.trim(t.slice(n,h)))),s=!1,n=h+1;continue}}return n<t.length&&(!1===s?l(t.slice(n)):l(s,pQ(pM.trim(t.slice(n))))),pM.trim(r.join(" "))};var p0=pT.FilterCSS,p1=pZ.parseTag,p2=pZ.parseAttr;function p5(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=pb.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map(function(t){return t.toLowerCase()}):e[n.toLowerCase()]=t[n];return e}(t.whiteList||t.allowList):t.whiteList=pb.whiteList,t.onTag=t.onTag||pb.onTag,t.onTagAttr=t.onTagAttr||pb.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||pb.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||pb.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||pb.safeAttrValue,t.escapeHtml=t.escapeHtml||pb.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new p0(t.css))}p5.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,o=e.onTag,r=e.onIgnoreTag,s=e.onTagAttr,a=e.onIgnoreTagAttr,l=e.safeAttrValue,h=e.escapeHtml,u=this.cssFilter;e.stripBlankChar&&(t=pb.stripBlankChar(t)),e.allowCommentTag||(t=pb.stripCommentTag(t));var d=!1;e.stripIgnoreTagBody&&(r=(d=pb.StripTagBody(e.stripIgnoreTagBody,r)).onIgnoreTag);var c=p1(t,function(t,e,d,c,p){var f={sourcePosition:t,position:e,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(n,d)},m=o(d,c,f);if(null!=m)return m;if(f.isWhite){if(f.isClosing)return"</"+d+">";var v=function(t){var e=pM.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=pM.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=pM.trim(t.slice(0,-1))),{html:t,closing:n}}(c),g=n[d],y=p2(v.html,function(t,e){var n=-1!==pM.indexOf(g,t),o=s(d,t,e,n);return null!=o?o:n?(e=l(d,t,e,u))?t+'="'+e+'"':t:null!=(o=a(d,t,e,n))?o:void 0});return c="<"+d,y&&(c+=" "+y),v.closing&&(c+=" /"),c+=">"}return null!=(m=r(d,c,f))?m:h(c)},h);return d&&(c=d.remove(c)),c},function(t,e){function n(t,e){return new p5(e).process(t)}(e=t.exports=n).filterXSS=n,e.FilterXSS=p5,function(){for(var t in pb)e[t]=pb[t];for(var n in pZ)e[n]=pZ[n]}(),window.filterXSS=t.exports,"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)}(py,py.exports);var p3=X(py.exports);function p4(t,e){var n=si(t);if(cZ){var o=cZ(t);e&&(o=s8(o).call(o,function(e){return c2(t,e).enumerable})),n.push.apply(n,o)}return n}function p8(t){for(var e=1;e<arguments.length;e++){var n,o,r=null!=arguments[e]?arguments[e]:{};e%2?sx(n=p4(Object(r),!0)).call(n,function(e){h5(t,e,r[e])}):c5?c9(t,c5(r)):sx(o=p4(Object(r))).call(o,function(e){cB(t,e,c2(r,e))})}return t}function p6(t){if(!t)return!1;var e,n,o=null!==(n=t.idProp)&&void 0!==n?n:t._idProp;return!!o&&"object"===rS(t)&&null!==t&&o===t.idProp&&"function"==typeof sx(t)&&"function"==typeof t.get&&"function"==typeof t.getDataSet&&"function"==typeof t.getIds&&"number"==typeof t.length&&"function"==typeof se(t)&&"function"==typeof t.off&&"function"==typeof t.on&&"function"==typeof t.stream&&(e=t.getDataSet(),"object"===rS(e)&&null!==e&&o===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof sx(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof se(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly)}var p9=/^\/?Date\((-?\d+)/i,p7=/^\d+$/;function ft(t,e){var n;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw Error("Type must be a string");switch(e){case"boolean":case"Boolean":return!!t;case"number":case"Number":if(hf(t)&&!isNaN(Date.parse(t)))return pg(t).valueOf();return Number(t.valueOf());case"string":case"String":return String(t);case"Date":try{return ft(t,"Moment").toDate()}catch(n){if(n instanceof TypeError)throw TypeError("Cannot convert object of type "+hy(t)+" to type "+e);throw n}case"Moment":if(hp(t))return pg(t);if(t instanceof Date)return pg(t.valueOf());if(pg.isMoment(t))return pg(t);if(hf(t)){if(n=p9.exec(t))return pg(Number(n[1]));if(n=p7.exec(t))return pg(Number(t));return pg(t)}throw TypeError("Cannot convert object of type "+hy(t)+" to type "+e);case"ISODate":if(hp(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(pg.isMoment(t))return t.toDate().toISOString();if(hf(t)){if(n=p9.exec(t))return new Date(Number(n[1])).toISOString();return pg(t).format()}else throw Error("Cannot convert object of type "+hy(t)+" to type ISODate");case"ASPDate":if(hp(t))return"/Date("+t+")/";if(t instanceof Date||pg.isMoment(t))return"/Date("+t.valueOf()+")/";if(hf(t))return"/Date("+((n=p9.exec(t))?new Date(Number(n[1])).valueOf():new Date(t).valueOf())+")/";throw Error("Cannot convert object of type "+hy(t)+" to type ASPDate");default:throw Error("Unknown type ".concat(e))}}}function fe(t){var e,n,o,r,s,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},h=t._idProp,u=new pf({fieldId:h}),d=se(e=new ph(t)).call(e,function(t){var e;return dU(e=si(t)).call(e,function(e,n){return e[n]=ft(t[n],l[n]),e},{})}).to(u);return d.all().start(),{add:function(){var e;return(e=t.getDataSet()).add.apply(e,arguments)},remove:function(){var e;return(e=t.getDataSet()).remove.apply(e,arguments)},update:function(){var e;return(e=t.getDataSet()).update.apply(e,arguments)},updateOnly:function(){var e;return(e=t.getDataSet()).updateOnly.apply(e,arguments)},clear:function(){var e;return(e=t.getDataSet()).clear.apply(e,arguments)}
30,forEach:sm(n=sx(u)).call(n,u),get:sm(o=u.get).call(o,u),getIds:sm(r=u.getIds).call(r,u),off:sm(s=u.off).call(s,u),on:sm(a=u.on).call(a,u),get length(){return u.length},idProp:h,type:l,rawDS:t,coercedDS:u,dispose:function(){return d.stop()}}}var fi=function(t){var e=new p3.FilterXSS(t);return function(t){return e.process(t)}},fn=function(t){return t},fo=fi(),fr=p8(p8({},hH),{},{convert:ft,setupXSSProtection:function(t){t&&(!0===t.disabled?(fo=fn,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(fo=fi(t.filterOptions)))}});cB(fr,"xss",{get:function(){return fo}});var fs=ah.trim,fa=te("".charAt),fl=ta.parseFloat,fh=ta.Symbol,fu=fh&&fh.iterator,fd=1/fl(ao+"-0")!=-1/0||fu&&!$(function(){fl(Object(fu))})?function(t){var e=fs(tQ(t)),n=fl(e);return 0===n&&"-"===fa(e,0)?-0:n}:fl;il({global:!0,forced:parseFloat!==fd},{parseFloat:fd});var fc=X(ed.parseFloat),fp=function(){function t(e,n){nU(this,t),this.options=null,this.props=null}return rO(t,[{key:"setOptions",value:function(t){t&&fr.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),t}(),ff=RangeError;il({target:"String",proto:!0},{repeat:function(t){var e=tQ(tm(this)),n="",o=tr(t);if(o<0||o===1/0)throw new ff("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}});var fm=rN("String").repeat,fv=String.prototype,fg=X(function(t){var e=t.repeat;return"string"==typeof t||t===fv||ef(fv,t)&&e===fv.repeat?fm:e});function fy(t,e,n){if(n&&!r6(n))return fy(t,e,[n]);if(e.hiddenDates=[],n&&!0==r6(n)){for(var o,r=0;r<n.length;r++)if(void 0===fg(n[r])){var s={};s.start=t(n[r].start).toDate().valueOf(),s.end=t(n[r].end).toDate().valueOf(),e.hiddenDates.push(s)}cC(o=e.hiddenDates).call(o,function(t,e){return t.start-e.start})}}function fb(t,e,n){if(n&&!r6(n))return fb(t,e,[n]);if(n&&void 0!==e.domProps.centerContainer.width){fy(t,e,n);for(var o=t(e.range.start),r=t(e.range.end),s=(e.range.end-e.range.start)/e.domProps.centerContainer.width,a=0;a<n.length;a++)if(void 0!==fg(n[a])){var l=t(n[a].start),h=t(n[a].end);if("Invalid Date"==l._d)throw Error("Supplied start date is not valid: ".concat(n[a].start));if("Invalid Date"==h._d)throw Error("Supplied end date is not valid: ".concat(n[a].end));if(h-l>=4*s){var u=0,d=r.clone();switch(fg(n[a])){case"daily":l.day()!=h.day()&&(u=1),l.dayOfYear(o.dayOfYear()),l.year(o.year()),l.subtract(7,"days"),h.dayOfYear(o.dayOfYear()),h.year(o.year()),h.subtract(7-u,"days"),d.add(1,"weeks");break;case"weekly":var c=h.diff(l,"days"),p=l.day();l.date(o.date()),l.month(o.month()),l.year(o.year()),h=l.clone(),l.day(p),h.day(p),h.add(c,"days"),l.subtract(1,"weeks"),h.subtract(1,"weeks"),d.add(1,"weeks");break;case"monthly":l.month()!=h.month()&&(u=1),l.month(o.month()),l.year(o.year()),l.subtract(1,"months"),h.month(o.month()),h.year(o.year()),h.subtract(1,"months"),h.add(u,"months"),d.add(1,"months");break;case"yearly":l.year()!=h.year()&&(u=1),l.year(o.year()),l.subtract(1,"years"),h.year(o.year()),h.subtract(1,"years"),h.add(u,"years"),d.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",fg(n[a]));return}for(;l<d;)switch(e.hiddenDates.push({start:l.valueOf(),end:h.valueOf()}),fg(n[a])){case"daily":l.add(1,"days"),h.add(1,"days");break;case"weekly":l.add(1,"weeks"),h.add(1,"weeks");break;case"monthly":l.add(1,"months"),h.add(1,"months");break;case"yearly":l.add(1,"y"),h.add(1,"y");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",fg(n[a]));return}e.hiddenDates.push({start:l.valueOf(),end:h.valueOf()})}}!function(t){for(var e,n=t.hiddenDates,o=[],r=0;r<n.length;r++)for(var s=0;s<n.length;s++)r!=s&&!0!=n[s].remove&&!0!=n[r].remove&&(n[s].start>=n[r].start&&n[s].end<=n[r].end?n[s].remove=!0:n[s].start>=n[r].start&&n[s].start<=n[r].end?(n[r].end=n[s].end,n[s].remove=!0):n[s].end>=n[r].start&&n[s].end<=n[r].end&&(n[r].start=n[s].start,n[s].remove=!0));for(r=0;r<n.length;r++)!0!==n[r].remove&&o.push(n[r]);t.hiddenDates=o,cC(e=t.hiddenDates).call(e,function(t,e){return t.start-e.start})}(e);var f=fC(e.range.start,e.hiddenDates),m=fC(e.range.end,e.hiddenDates),v=e.range.start,g=e.range.end;!0==f.hidden&&(v=!0==e.range.startToFront?f.startDate-1:f.endDate+1),!0==m.hidden&&(g=!0==e.range.endToFront?m.startDate-1:m.endDate+1),(!0==f.hidden||!0==m.hidden)&&e.range._applyRange(v,g)}}function f_(t,e,n){if(0==t.body.hiddenDates.length)return o=t.range.conversion(n),(e.valueOf()-o.offset)*o.scale;var o,r=fC(e,t.body.hiddenDates);!0==r.hidden&&(e=r.startDate);var s=fk(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){o=t.range.conversion(n,s);var a=function(t,e,n){for(var o=0,r=0;r<t.length;r++){var s=t[r].start,a=t[r].end;s>=e&&a<=n&&(o+=a-s)}return o}(t.body.hiddenDates,e,o.offset);return e=t.options.moment(e).toDate().valueOf()+a,-(o.offset-e.valueOf())*o.scale}if(!(e>t.range.end))return e=fx(t.options.moment,t.body.hiddenDates,t.range,e),o=t.range.conversion(n,s),(e.valueOf()-o.offset)*o.scale;var l={start:t.range.start,end:e};return e=fx(t.options.moment,t.body.hiddenDates,l,e),o=t.range.conversion(n,s),(e.valueOf()-o.offset)*o.scale}function fw(t,e,n){if(0==t.body.hiddenDates.length){var o=t.range.conversion(n);return new Date(e/o.scale+o.offset)}var r=fk(t.body.hiddenDates,t.range.start,t.range.end),s=(t.range.end-t.range.start-r)*e/n;return new Date(function(t,e,n){for(var o=0,r=0,s=e.start,a=0;a<t.length;a++){var l=t[a].start,h=t[a].end;if(l>=e.start&&h<e.end){if(r+=l-s,s=h,r>=n)break;o+=h-l}}return o}(t.body.hiddenDates,t.range,s)+s+t.range.start)}function fk(t,e,n){for(var o=0,r=0;r<t.length;r++){var s=t[r].start,a=t[r].end;s>=e&&a<n&&(o+=a-s)}return o}function fx(t,e,n,o){return o=t(o).toDate().valueOf(),o-=fD(t,e,n,o)}function fD(t,e,n,o){var r=0;o=t(o).toDate().valueOf();for(var s=0;s<e.length;s++){var a=e[s].start,l=e[s].end;a>=n.start&&l<n.end&&o>=l&&(r+=l-a)}return r}function fS(t,e,n,o){var r=fC(e,t);
30return!0!=r.hidden?e:n<0?!0==o?r.startDate-(r.endDate-e)-1:r.startDate-1:!0==o?r.endDate+(e-r.startDate)+1:r.endDate+1}function fC(t,e){for(var n=0;n<e.length;n++){var o=e[n].start,r=e[n].end;if(t>=o&&t<r)return{hidden:!0,startDate:o,endDate:r}}return{hidden:!1,startDate:o,endDate:r}}var fT=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e){nU(this,o),c=n.call(this);var r,s,a,l,h,u,d,c,p=pv().hours(0).minutes(0).seconds(0).milliseconds(0),f=p.clone().add(-3,"days").valueOf(),m=p.clone().add(3,"days").valueOf();return c.millisecondsPerPixelCache=void 0,void 0===e?(c.start=f,c.end=m):(c.start=e.start||f,c.end=e.end||m),c.rolling=!1,c.body=t,c.deltaDifference=0,c.scaleOffset=0,c.startToFront=!1,c.endToFront=!0,c.defaultOptions={rtl:!1,start:null,end:null,moment:pv,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},c.options=fr.extend({},c.defaultOptions),c.props={touch:{}},c.animationTimer=null,c.body.emitter.on("panstart",sm(r=c._onDragStart).call(r,hX(c))),c.body.emitter.on("panmove",sm(s=c._onDrag).call(s,hX(c))),c.body.emitter.on("panend",sm(a=c._onDragEnd).call(a,hX(c))),c.body.emitter.on("mousewheel",sm(l=c._onMouseWheel).call(l,hX(c))),c.body.emitter.on("touch",sm(h=c._onTouch).call(h,hX(c))),c.body.emitter.on("pinch",sm(u=c._onPinch).call(u,hX(c))),c.body.dom.rollingModeBtn.addEventListener("click",sm(d=c.startRolling).call(d,hX(c))),c.setOptions(e),c}return rO(o,[{key:"setOptions",value:function(t){t&&(fr.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end))}},{key:"startRolling",value:function(){var t=this;!function e(){t.stopRolling(),t.rolling=!0;var n=t.end-t.start,o=fr.convert(new Date,"Date").valueOf(),r=t.options.rollingMode&&t.options.rollingMode.offset||.5,s=o-n*r,a=o+n*(1-r);t.setRange(s,a,{animation:!1}),(n=1/t.conversion(t.body.domProps.center.width).scale/10)<30&&(n=30),n>1e3&&(n=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=aj(e,n)}()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(t,e,n,o,r){n||(n={}),!0!==n.byUser&&(n.byUser=!1);var s=this,a=void 0!=t?fr.convert(t,"Date").valueOf():null,l=void 0!=e?fr.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,n.animation){var h,u=this.start,d=this.end,c="object"===rS(n.animation)&&"duration"in n.animation?n.animation.duration:500,p="object"===rS(n.animation)&&"easingFunction"in n.animation?n.animation.easingFunction:"easeInOutQuad",f=fr.easingFunctions[p];if(!f)throw Error(r2(h="Unknown easing function ".concat(aO(p),". Choose from: ")).call(h,si(fr.easingFunctions).join(", ")));var m=sr(),v=!1;return function t(){if(!s.props.touch.dragging){var e=sr()-m,h=f(e/c),p=e>c,y=p||null===a?a:u+(a-u)*h,b=p||null===l?l:d+(l-d)*h;g=s._applyRange(y,b),fb(s.options.moment,s.body,s.options.hiddenDates),v=v||g;var _={start:new Date(s.start),end:new Date(s.end),byUser:n.byUser,event:n.event};if(r&&r(h,g,p),g&&s.body.emitter.emit("rangechange",_),p){if(v&&(s.body.emitter.emit("rangechanged",_),o))return o()}else s.animationTimer=aj(t,20)}}()}var g=this._applyRange(a,l);if(fb(this.options.moment,this.body,this.options.hiddenDates),g){var y={start:new Date(this.start),end:new Date(this.end),byUser:n.byUser,event:n.event};if(this.body.emitter.emit("rangechange",y),clearTimeout(s.timeoutID),s.timeoutID=aj(function(){s.body.emitter.emit("rangechanged",y)},200),o)return o()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(t,e){var n,o=null!=t?fr.convert(t,"Date").valueOf():this.start,r=null!=e?fr.convert(e,"Date").valueOf():this.end,s=null!=this.options.max?fr.convert(this.options.max,"Date").valueOf():null,a=null!=this.options.min?fr.convert(this.options.min,"Date").valueOf():null;if(isNaN(o)||null===o)throw Error('Invalid start "'.concat(t,'"'));if(isNaN(r)||null===r)throw Error('Invalid end "'.concat(e,'"'));if(r<o&&(r=o),null!==a&&o<a&&(n=a-o,o+=n,r+=n,null!=s&&r>s&&(r=s)),null!==s&&r>s&&(o-=n=r-s,r-=n,null!=a&&o<a&&(o=a)),null!==this.options.zoomMin){var l=fc(this.options.zoomMin);l<0&&(l=0),r-o<l&&(this.end-this.start===l&&o>=this.start-.5&&r<=this.end?(o=this.start,r=this.end):(n=l-(r-o),o-=n/2,r+=n/2))}if(null!==this.options.zoomMax){var h=fc(this.options.zoomMax);h<0&&(h=0),r-o>h&&(this.end-this.start===h&&o<this.start&&r>this.end?(o=this.start,r=this.end):(n=r-o-h,o+=n/2,r-=n/2))}var u=this.start!=o||this.end!=r;return o>=this.start&&o<=this.end||r>=this.start&&r<=this.end||this.start>=o&&this.start<=r||this.end>=o&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=o,this.end=r,u}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(t,e){return o.conversion(this.start,this.end,t,e)}
30},{key:"_onDragStart",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e,n=this.options.direction;fM(n);var o="horizontal"==n?t.deltaX:t.deltaY;o-=this.deltaDifference;var r=this.props.touch.end-this.props.touch.start;r-=fk(this.body.hiddenDates,this.start,this.end);var s="horizontal"==n?this.body.domProps.center.width:this.body.domProps.center.height;e=this.options.rtl?o/s*r:-o/s*r;var a=this.props.touch.start+e,l=this.props.touch.end+e,h=fS(this.body.hiddenDates,a,this.previousDelta-o,!0),u=fS(this.body.hiddenDates,l,this.previousDelta-o,!0);if(h!=a||u!=l){this.deltaDifference+=o,this.props.touch.start=h,this.props.touch.end=u,this._onDrag(t);return}this.previousDelta=o,this._applyRange(a,l);var d=new Date(this.start),c=new Date(this.end);this.body.emitter.emit("rangechange",{start:d,end:c,byUser:!0,event:t}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))}},{key:"_onMouseWheel",value:function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail?e=-t.detail/3:t.deltaY&&(e=-t.deltaY/3),(!this.options.zoomKey||t[this.options.zoomKey]||!this.options.zoomable)&&(this.options.zoomable||!this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var n,o,r=this.options.zoomFriction||5;if(n=e<0?1-e/r:1/(1+e/r),this.rolling){var s=this.options.rollingMode&&this.options.rollingMode.offset||.5;o=this.start+(this.end-this.start)*s}else{var a=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);o=this._pointerToDate(a)}this.zoom(n,o,e,t),t.preventDefault()}}},{key:"_onTouch",value:function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,fr.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){fr.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),n=this.props.touch.centerDate,o=fk(this.body.hiddenDates,this.start,this.end),r=fD(this.options.moment,this.body.hiddenDates,this,n),s=o-r,a=n-r+(this.props.touch.start-(n-r))*e,l=n+s+(this.props.touch.end-(n+s))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var h=fS(this.body.hiddenDates,a,1-e,!0),u=fS(this.body.hiddenDates,l,e-1,!0);(h!=a||u!=l)&&(this.props.touch.start=h,this.props.touch.end=u,this.scaleOffset=1-t.scale,a=h,l=u),this.setRange(a,l,{animation:!1,byUser:!0,event:t}),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e=t.center?t.center.x:t.clientX,n=this.body.dom.centerContainer.getBoundingClientRect(),o=this.options.rtl?e-n.left:n.right-e,r=this.body.util.toTime(o);return r>=this.start&&r<=this.end}},{key:"_pointerToDate",value:function(t){var e,n=this.options.direction;if(fM(n),"horizontal"==n)return this.body.util.toTime(t.x).valueOf();var o=this.body.domProps.center.height;return e=this.conversion(o),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){var n=e.getBoundingClientRect();return this.options.rtl?{x:n.right-t.x,y:t.y-n.top}:{x:t.x-n.left,y:t.y-n.top}}},{key:"zoom",value:function(t,e,n,o){null==e&&(e=(this.start+this.end)/2);var r=fk(this.body.hiddenDates,this.start,this.end),s=fD(this.options.moment,this.body.hiddenDates,this,e),a=r-s,l=e-s+(this.start-(e-s))*t,h=e+a+(this.end-(e+a))*t;this.startToFront=!(n>0),this.endToFront=!(-n>0);var u=fS(this.body.hiddenDates,l,n,!0),d=fS(this.body.hiddenDates,h,-n,!0);(u!=l||d!=h)&&(l=u,h=d),this.setRange(l,h,{animation:!1,byUser:!0,event:o}),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(t){var e=this.end-this.start,n=this.start+e*t,o=this.end+e*t;this.start=n,this.end=o}},{key:"moveTo",value:function(t){var e=(this.start+this.end)/2-t,n=this.start-e,o=this.end-e;this.setRange(n,o,{animation:!1,byUser:!0,event:null})}},{key:"destroy",value:function(){this.stopRolling()}}
30],[{key:"conversion",value:function(t,e,n,o){return(void 0===o&&(o=0),0!=n&&e-t!=0)?{offset:t,scale:n/(e-t-o)}:{offset:0,scale:1}}}]),o}(fp);function fM(t){if("horizontal"!=t&&"vertical"!=t)throw TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var fO=X(ed.setInterval),fE=null;function fP(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}W=function t(e,n){var o=n||{preventDefault:!1};if(e.Manager){var r=function(n,r){var s=Object.create(o);return r&&e.assign(s,r),t(new e(n,s),s)};return e.assign(r,e),r.Manager=function(n,r){var s=Object.create(o);return r&&e.assign(s,r),t(new e.Manager(n,s),s)},r}var s=Object.create(e),a=e.element;function l(t){return t.match(/[^ ]+/g)}function h(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var n=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof n&&(t.srcEvent.stopPropagation=function(){n(),t.stopPropagation()}),t.firstTarget=fE;for(var o=fE;o&&!e;){var r,s=o.hammer;if(s){for(var a=0;a<s.length;a++)if(r=s[a]._handlers[t.type])for(var l=0;l<r.length&&!e;l++)r[l](t)}o=o.parentNode}}return a.hammer||(a.hammer=[]),a.hammer.push(s),e.on("hammer.input",function(t){(!0===o.preventDefault||o.preventDefault===t.pointerType)&&t.preventDefault(),t.isFirst&&(fE=t.target)}),s._handlers={},s.on=function(t,n){return l(t).forEach(function(t){var o=s._handlers[t];o||(s._handlers[t]=o=[],e.on(t,h)),o.push(n)}),s},s.off=function(t,n){return l(t).forEach(function(t){var o=s._handlers[t];o&&((o=n?o.filter(function(t){return t!==n}):[]).length>0?s._handlers[t]=o:(e.off(t,h),delete s._handlers[t]))}),s},s.emit=function(t,n){fE=n.target,e.emit(t,n)},s.destroy=function(){var t=e.element.hammer,n=t.indexOf(s);-1!==n&&t.splice(n,1),t.length||delete e.element.hammer,s._handlers={},e.destroy()},s}(window.Hammer||ht,{preventDefault:"mouse"});var fI=function(){function t(e,n,o,r,s){nU(this,t),this.moment=s&&s.moment||pv,this.options=s||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,n,o),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,r6(r)?this.hiddenDates=r:void 0!=r?this.hiddenDates=[r]:this.hiddenDates=[],this.format=t.FORMAT}return rO(t,[{key:"setMoment",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(e){var n=fr.deepExtend({},t.FORMAT);this.format=fr.deepExtend(n,e)}},{key:"setRange",value:function(t,e,n){if(!(t instanceof Date)||!(e instanceof Date))throw"No legal start or end date in method setRange";this._start=void 0!=t?this.moment(t.valueOf()):sr(),this._end=void 0!=e?this.moment(e.valueOf()):sr(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(1!=this.step){var t=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}t.isSame(this.current)||(this.current=this.moment(fS(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),6>this.current.month()?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var e=this.current.clone();e.add(1,"week"),e.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(1!=this.step)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0)}this.current.valueOf()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,function(t,e,n){for(var o=!1,r=e.current.valueOf(),s=0;s<e.hiddenDates.length;s++){var a=e.hiddenDates[s].start,l=e.hiddenDates[s].end;if(r>=a&&r<l){o=!0;break}}if(!0==o&&r<e._end.valueOf()&&r!=n){var h=t(n),u=t(l);h.year()!=u.year()?e.switchedYear=!0:h.month()!=u.month()?e.switchedMonth=!0:h.dayOfYear()!=u.dayOfYear()&&(e.switchedDay=!0),e.current=u}}
30(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&"string"==typeof t.scale&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){void 0!=t&&(31104e9>t&&(this.scale="year",this.step=1e3),15552e9>t&&(this.scale="year",this.step=500),31104e8>t&&(this.scale="year",this.step=100),15552e8>t&&(this.scale="year",this.step=50),31104e7>t&&(this.scale="year",this.step=10),15552e7>t&&(this.scale="year",this.step=5),31104e6>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),2592e6>t&&(this.scale="month",this.step=1),6048e5>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>t&&(this.scale="day",this.step=2),864e5>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),36e5>t&&(this.scale="hour",this.step=1),9e5>t&&(this.scale="minute",this.step=15),6e5>t&&(this.scale="minute",this.step=10),3e5>t&&(this.scale="minute",this.step=5),6e4>t&&(this.scale="minute",this.step=1),15e3>t&&(this.scale="second",this.step=15),1e4>t&&(this.scale="second",this.step=10),5e3>t&&(this.scale="second",this.step=5),1e3>t&&(this.scale="second",this.step=1),200>t&&(this.scale="millisecond",this.step=200),100>t&&(this.scale="millisecond",this.step=100),50>t&&(this.scale="millisecond",this.step=50),10>t&&(this.scale="millisecond",this.step=10),5>t&&(this.scale="millisecond",this.step=5),1>t&&(this.scale="millisecond",this.step=1))}},{key:"isMajor",value:function(){if(!0==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(!0==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(!0==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":return this.options.showWeekScale?1==t.isoWeekday():1==t.date();case"week":return 1==t.date();case"month":return 0==t.month();default:return!1}}},{key:"getLabelMinor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];return"week"===this.scale&&1===t.date()&&0!==t.weekday()?"":e&&e.length>0?this.moment(t).format(e):""}},{key:"getLabelMajor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""}},{key:"getClassName",value:function(){var t,e=this.moment,n=this.moment(this.current),o=n.locale?n.locale("en"):n.lang("en"),r=this.step,s=[];function a(t){return t/r%2==0?" vis-even":" vis-odd"}function l(t){return t.isSame(sr(),"day")?" vis-today":t.isSame(e().add(1,"day"),"day")?" vis-tomorrow":t.isSame(e().add(-1,"day"),"day")?" vis-yesterday":""}function h(t){return t.isSame(sr(),"week")?" vis-current-week":""}function u(t){return t.isSame(sr(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":s.push(l(o)),s.push(a(o.milliseconds()));break;case"second":s.push(l(o)),s.push(a(o.seconds()));break;case"minute":s.push(l(o)),s.push(a(o.minutes()));break;case"hour":s.push(r2(t="vis-h".concat(o.hours())).call(t,4==this.step?"-h"+(o.hours()+4):"")),s.push(l(o)),s.push(a(o.hours()));break;case"weekday":s.push("vis-".concat(o.format("dddd").toLowerCase())),s.push(l(o)),s.push(h(o)),s.push(a(o.date()));break;case"day":s.push("vis-day".concat(o.date())),s.push("vis-".concat(o.format("MMMM").toLowerCase())),s.push(l(o)),s.push(u(o)),s.push(this.step<=2?l(o):""),s.push(this.step<=2?"vis-".concat(o.format("dddd").toLowerCase()):""),s.push(a(o.date()-1));break;case"week":s.push("vis-week".concat(o.format("w"))),s.push(h(o)),s.push(a(o.week()));break;case"month":s.push("vis-".concat(o.format("MMMM").toLowerCase())),s.push(u(o)),s.push(a(o.month()));break;case"year":s.push("vis-year".concat(o.year())),s.push(o.isSame(sr(),"year")?" vis-current-year":""),s.push(a(o.year()))}
30return s8(s).call(s,String).join(" ")}}],[{key:"snap",value:function(t,e,n){var o=pv(t);if("year"==e){var r=o.year()+Math.round(o.month()/12);o.year(Math.round(r/n)*n),o.month(0),o.date(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("month"==e)o.date()>15?(o.date(1),o.add(1,"month")):o.date(1),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if("week"==e)o.weekday()>2?(o.weekday(0),o.add(1,"week")):o.weekday(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if("day"==e){switch(n){case 5:case 2:o.hours(24*Math.round(o.hours()/24));break;default:o.hours(12*Math.round(o.hours()/12))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("weekday"==e){switch(n){case 5:case 2:o.hours(12*Math.round(o.hours()/12));break;default:o.hours(6*Math.round(o.hours()/6))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("hour"==e)4===n?o.minutes(60*Math.round(o.minutes()/60)):o.minutes(30*Math.round(o.minutes()/30)),o.seconds(0),o.milliseconds(0);else if("minute"==e){switch(n){case 15:case 10:o.minutes(5*Math.round(o.minutes()/5)),o.seconds(0);break;case 5:o.seconds(60*Math.round(o.seconds()/60));break;default:o.seconds(30*Math.round(o.seconds()/30))}o.milliseconds(0)}else if("second"==e)switch(n){case 15:case 10:o.seconds(5*Math.round(o.seconds()/5)),o.milliseconds(0);break;case 5:o.milliseconds(1e3*Math.round(o.milliseconds()/1e3));break;default:o.milliseconds(500*Math.round(o.milliseconds()/500))}else if("millisecond"==e){var s=n>5?n/2:1;o.milliseconds(Math.round(o.milliseconds()/s)*s)}return o}}]),t}();function fA(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}fI.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},fA(".vis-time-axis {\n position: relative;\n overflow: hidden;\n}\n\n.vis-time-axis.vis-foreground {\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.vis-time-axis.vis-background {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.vis-time-axis .vis-text {\n position: absolute;\n color: #4d4d4d;\n padding: 3px;\n overflow: hidden;\n box-sizing: border-box;\n\n white-space: nowrap;\n}\n\n.vis-time-axis .vis-text.vis-measure {\n position: absolute;\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n visibility: hidden;\n}\n\n.vis-time-axis .vis-grid.vis-vertical {\n position: absolute;\n border-left: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-vertical-rtl {\n position: absolute;\n border-right: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-time-axis .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n");var fL=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e){var r;return nU(this,o),(r=n.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},r.props={range:{start:0,end:0,minimumStep:0},lineTop:0},r.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:fr.extend({},fI.FORMAT),moment:pv,timeAxis:null},r.options=fr.extend({},r.defaultOptions),r.body=t,r._create(),r.setOptions(e),r}return rO(o,[{key:"setOptions",value:function(t){t&&(fr.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),fr.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.axis=t.orientation:"object"===rS(t.orientation)&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"==typeof pv.locale?pv.locale(t.locale):pv.lang(t.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var t=this.props,e=this.dom.foreground,n=this.dom.background,o="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=e.parentNode!==o;this._calculateCharSize();var s=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,a=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;t.minorLabelHeight=s?t.minorCharHeight:0,t.majorLabelHeight=a?t.majorCharHeight:0,t.height=t.minorLabelHeight+t.majorLabelHeight,t.width=e.offsetWidth,t.minorLineHeight=this.body.domProps.root.height-t.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),t.minorLineWidth=1,t.majorLineHeight=t.minorLineHeight+t.majorLabelHeight,t.majorLineWidth=1;var l=e.nextSibling,h=n.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),n.parentNode&&n.parentNode.removeChild(n),e.style.height="".concat(this.props.height,"px"),this._repaintLabels(),l?o.insertBefore(e,l):o.appendChild(e),h?this.body.dom.backgroundVertical.insertBefore(n,h):this.body.dom.backgroundVertical.appendChild(n),this._isResized()||r}},{key:"_repaintLabels",value:function(){var t,e,n,o,r,s,a,l,h,u=this.options.orientation.axis,d=fr.convert(this.body.range.start,"Number"),c=fr.convert(this.body.range.end,"Number"),p=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),f=p-fD(this.options.moment,this.body.hiddenDates,this.body.range,p);f-=this.body.util.toTime(0).valueOf();var m=new fI(new Date(d),new Date(c),f,this.body.hiddenDates,this.options);m.setMoment(this.options.moment),this.options.format&&m.setFormat(this.options.format),this.options.timeAxis&&m.setScale(this.options.timeAxis),this.step=m;var v=this.dom;v.redundant.lines=v.lines,v.redundant.majorTexts=v.majorTexts,v.redundant.minorTexts=v.minorTexts,v.lines=[],v.majorTexts=[],v.minorTexts=[];var g=0,y=void 0,b=0;for(m.start(),e=m.getCurrent(),o=this.body.util.toScreen(e);m.hasNext()&&b<1e3;){if(b++,r=m.isMajor(),h=m.getClassName(),t=e,n=o,m.next(),e=m.getCurrent(),o=this.body.util.toScreen(e),a=g,g=o-n,s="week"===m.scale||g>=.4*a,this.options.showMinorLabels&&s){var _=this._repaintMinorText(n,m.getLabelMinor(t),u,h);_.style.width="".concat(g,"px")}r&&this.options.showMajorLabels?(n>0&&(void 0==y&&(y=n),_=this._repaintMajorText(n,m.getLabelMajor(t),u,h)),l=this._repaintMajorLine(n,g,u,h)):s?l=this._repaintMinorLine(n,g,u,h):l&&(l.style.width="".concat(ag(l.style.width)+g,"px"))}if(1e3!==b||fN||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(1e3," lines.")),fN=!0),this.options.showMajorLabels){var w=this.body.util.toTime(0),k=m.getLabelMajor(w),x=k.length*(this.props.majorCharWidth||10)+10;(void 0==y||x<y)&&this._repaintMajorText(0,k,u,h)}sx(fr).call(fr,this.dom.redundant,function(t){for(;t.length;){var e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}})}},{key:"_repaintMinorText",value:function(t,e,n,o){var r=this.dom.redundant.minorTexts.shift();if(!r){var s=document.createTextNode("");(r=document.createElement("div")).appendChild(s),this.dom.foreground.appendChild(r)}this.dom.minorTexts.push(r),r.innerHTML=fr.xss(e);var a="top"==n?this.props.majorLabelHeight:0;return this._setXY(r,t,a),r.className="vis-text vis-minor ".concat(o),r}},{key:"_repaintMajorText",value:function(t,e,n,o){var r=this.dom.redundant.majorTexts.shift();if(!r){var s=document.createElement("div");(r=document.createElement("div")).appendChild(s),this.dom.foreground.appendChild(r)}r.childNodes[0].innerHTML=fr.xss(e),r.className="vis-text vis-major ".concat(o);var a="top"==n?0:this.props.minorLabelHeight;return this._setXY(r,t,a),this.dom.majorTexts.push(r),r}},{key:"_setXY",value:function(t,e,n){var o,r=this.options.rtl?-1*e:e;t.style.transform=r2(o="translate(".concat(r,"px, ")).call(o,n,"px)")}},{key:"_repaintMinorLine",value:function(t,e,n,o){var r,s=this.dom.redundant.lines.shift();s||(s=document.createElement("div"),this.dom.background.appendChild(s)),this.dom.lines.push(s);var a=this.props;s.style.width="".concat(e,"px"),s.style.height="".concat(a.minorLineHeight,"px");var l="top"==n?a.majorLabelHeight:this.body.domProps.top.height,h=t-a.minorLineWidth/2;return this._setXY(s,h,l),s.className=r2(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(r,o),s}},{key:"_repaintMajorLine",value:function(t,e,n,o){var r,s=this.dom.redundant.lines.shift();s||(s=document.createElement("div"),this.dom.background.appendChild(s)),this.dom.lines.push(s);var a=this.props;s.style.width="".concat(e,"px"),s.style.height="".concat(a.majorLineHeight,"px");var l="top"==n?0:this.body.domProps.top.height,h=t-a.majorLineWidth/2;return this._setXY(s,h,l),s.className=r2(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(r,o),s}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),o}(fp),fN=!1;function fF(t){this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=W(this.dom.overlay),this.hammer.on("tap",sm(e=this._onTapOverlay).call(e,this));var e,n,o=this,r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];sx(r).call(r,function(t){o.hammer.on(t,function(t){t.stopPropagation()})}),document&&document.body&&(this.onClick=function(e){!function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}(e.target,t)&&o.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=function(t){var e,n=window,o={},r={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:65+(e-97),shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1}
30,s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(t){h(t,"keydown")},l=function(t){h(t,"keyup")},h=function(t,e){if(void 0!==r[e][t.keyCode])for(var n=r[e][t.keyCode],o=0;o<n.length;o++)void 0===n[o].shift?n[o].fn(t):!0==n[o].shift&&!0==t.shiftKey?n[o].fn(t):!1==n[o].shift&&!1==t.shiftKey&&n[o].fn(t)};return o.bind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw Error("unsupported key: "+t);void 0===r[n][s[t].code]&&(r[n][s[t].code]=[]),r[n][s[t].code].push({fn:e,shift:s[t].shift})},o.bindAll=function(t,e){for(var n in void 0===e&&(e="keydown"),s)s.hasOwnProperty(n)&&o.bind(n,t,e)},o.getKey=function(t){for(var e in s)if(s.hasOwnProperty(e)&&(!0==t.shiftKey&&!0==s[e].shift&&t.keyCode==s[e].code||!1==t.shiftKey&&!1==s[e].shift&&t.keyCode==s[e].code||t.keyCode==s[e].code&&"shift"==e))return e;return"unknown key, currently not supported"},o.unbind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw Error("unsupported key: "+t);if(void 0!==e){var o=[],a=r[n][s[t].code];if(void 0!==a)for(var l=0;l<a.length;l++)a[l].fn==e&&a[l].shift==s[t].shift||o.push(r[n][s[t].code][l]);r[n][s[t].code]=o}else r[n][s[t].code]=[]},o.reset=function(){r={keydown:{},keyup:{}}},o.destroy=function(){r={keydown:{},keyup:{}},n.removeEventListener("keydown",a,!0),n.removeEventListener("keyup",l,!0)},n.addEventListener("keydown",a,!0),n.addEventListener("keyup",l,!0),o}(),this.escListener=sm(n=this.deactivate).call(n,this)}fA(".vis .overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n /* Must be displayed above for example selected Timeline items */\n z-index: 10;\n}\n\n.vis-active {\n box-shadow: 0 0 10px #86d5f8;\n}\n"),aB(fF.prototype),fF.current=null,fF.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},fF.prototype.activate=function(){var t;fF.current&&fF.current.deactivate(),fF.current=this,this.active=!0,this.dom.overlay.style.display="none",fr.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),sm(t=this.keycharm).call(t,"esc",this.escListener)},fF.prototype.deactivate=function(){fF.current===this&&(fF.current=null),this.active=!1,this.dom.overlay.style.display="",fr.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},fF.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var fR={current:"current",time:"time",deleteSelected:"Delete selected"},fj={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},fY={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},fH={current:"Aktuelle",time:"Zeit",deleteSelected:"L\xf6sche Auswahl"},fz={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},fG={current:"corriente",time:"hora",deleteSelected:"Eliminar selecci\xf3n"},fB={current:"поÑоÑний",time:"ÑаÑ",deleteSelected:"ÐидалиÑи обÑане"},fW={current:"ÑекÑÑее",time:"вÑемÑ",deleteSelected:"УдалиÑÑ Ð²ÑбÑанное"},fU={current:"aktualny",time:"czas",deleteSelected:"UsuÅ wybrane"},fV={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},fX={current:"ç¾å¨",time:"æå»",deleteSelected:"鏿ããããã®ãåé¤"},fq={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},fK={current:"n\xe5v\xe6rende",time:"tid",deleteSelected:"Slett valgte"},f$={current:"einamas",time:"laikas",deleteSelected:"PaÅ¡alinti pasirinktÄ
"},fZ={en:fR,en_EN:fR,en_US:fR,it:fj,it_IT:fj,it_CH:fj,nl:fY,nl_NL:fY,nl_BE:fY,de:fH,de_DE:fH,fr:fz,fr_FR:fz,fr_CA:fz,fr_BE:fz,es:fG,es_ES:fG,uk:fB,uk_UA:fB,ru:fW,ru_RU:fW,pl:fU,pl_PL:fU,pt:fV,pt_BR:fV,pt_PT:fV,ja:fX,ja_JP:fX,lt:f$,lt_LT:f$,sv:fq,sv_SE:fq,nb:fK,nn:fK,nb_NO:fK,nn_NO:fK};fA(".vis-custom-time {\n background-color: #6E94FF;\n width: 2px;\n cursor: move;\n z-index: 1;\n}\n\n.vis-custom-time > .vis-custom-time-marker {\n background-color: inherit;\n color: white;\n font-size: 12px;\n white-space: nowrap;\n padding: 3px 5px;\n top: 0px;\n cursor: initial;\n z-index: inherit;\n}");var fJ=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e){nU(this,o),(s=n.call(this)).body=t,s.defaultOptions={moment:pv,locales:fZ,locale:"en",id:void 0,title:void 0},s.options=fr.extend({},s.defaultOptions),s.setOptions(e),s.options.locales=fr.extend({},fZ,s.options.locales);var r,s,a=s.defaultOptions.locales[s.defaultOptions.locale];return sx(r=si(s.options.locales)).call(r,function(t){s.options.locales[t]=fr.extend({},a,s.options.locales[t])}),e&&null!=e.time?s.customTime=e.time:s.customTime=new Date,s.eventParam
30s={},s._create(),s}return rO(o,[{key:"setOptions",value:function(t){t&&fr.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,t)}},{key:"_create",value:function(){var t,e,n,o=document.createElement("div");o["custom-time"]=this,o.className="vis-custom-time ".concat(this.options.id||""),o.style.position="absolute",o.style.top="0px",o.style.height="100%",this.bar=o;var r=document.createElement("div");function s(t){this.body.range._onMouseWheel(t)}r.style.position="relative",r.style.top="0px",this.options.rtl?r.style.right="-10px":r.style.left="-10px",r.style.height="100%",r.style.width="20px",r.addEventListener?(r.addEventListener("mousewheel",sm(s).call(s,this),!1),r.addEventListener("DOMMouseScroll",sm(s).call(s,this),!1)):r.attachEvent("onmousewheel",sm(s).call(s,this)),o.appendChild(r),this.hammer=new W(r),this.hammer.on("panstart",sm(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",sm(e=this._onDrag).call(e,this)),this.hammer.on("panend",sm(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:W.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var t,e=this.body.dom.backgroundVertical;this.bar.parentNode!=e&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),e.appendChild(this.bar));var n=this.body.util.toScreen(this.customTime),o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en);var r=this.options.title;return void 0===r?r=(r=r2(t="".concat(o.time,": ")).call(t,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+r.substring(1):"function"==typeof r&&(r=r.call(this,this.customTime)),this.options.rtl?this.bar.style.right="".concat(n,"px"):this.bar.style.left="".concat(n,"px"),this.bar.title=r,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(t){this.customTime=fr.convert(t,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(t,e){if(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=fr.xss(t),this.marker.style.position="absolute",e){var n,o;this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",function(){this.marker.focus()}),this.marker.addEventListener("input",sm(n=this._onMarkerChange).call(n,this)),this.marker.title=t,this.marker.addEventListener("blur",sm(o=function(t){this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}).call(o,this))}this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(t){this.options.title=t}},{key:"_onDragStart",value:function(t){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,t.stopPropagation()}},{key:"_onDrag",value:function(t){if(this.eventParams.dragging){var e=this.options.rtl?-1*t.deltaX:t.deltaX,n=this.body.util.toScreen(this.eventParams.customTime)+e,o=this.body.util.toTime(n),r=this.body.util.getScale(),s=this.body.util.getStep(),a=this.options.snap,l=a?a(o,r,s):o;this.setCustomTime(l),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation()}}},{key:"_onDragEnd",value:function(t){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}},{key:"_onMarkerChange",value:function(t){this.body.emitter.emit("markerchange",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}},{key:"_onMarkerChanged",value:function(t){this.body.emitter.emit("markerchanged",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("custom-time"))return e["custom-time"];e=e.parentNode}return null}}]),o}(fp);fA(".vis-timeline {\n /*\n -webkit-transition: height .4s ease-in-out;\n transition: height .4s ease-in-out;\n */\n}\n\n.vis-panel {\n /*\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n */\n}\n\n.vis-axis {\n /*\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n */\n}\n\n/* TODO: get animation working nicely\n\n.vis-item {\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n}\n\n.vis-item.line {\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n}\n/**/"),fA('.vis-current-time {\n background-color: #FF7F6E;\n width: 2px;\n z-index: 1;\n pointer-events: none;\n}\n\n.vis-rolling-mode-btn {\n height: 40px;\n width: 40px;\n position: absolute;\n top: 7px;\n right: 20px;\n border-radius: 50%;\n font-size: 28px;\n cursor: pointer;\n opacity: 0.8;\n color: white;\n font-weight: bold;\n text-align: center;\n background: #3876c2;\n}\n.vis-rolling-mode-btn:before {\n content: "\\26F6";\n}\n\n.vis-rolling-mode-btn:hover {\n opacity: 1;\n}'),fA(".vis-panel {\n position: absolute;\n\n padding: 0;\n margin: 0;\n\n box-sizing: border-box;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border: 1px #bfbfbf;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right {\n border-top-style: solid;\n border-bottom-style: solid;\n overflow: hidden;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {\n height: 100%;\n overflow-x: hidden;
30\n overflow-y: scroll;\n} \n\n.vis-left.vis-panel.vis-vertical-scroll {\n direction: rtl;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll .vis-content {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll .vis-content {\n direction: rtl;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border-left-style: solid;\n border-right-style: solid;\n}\n\n.vis-background {\n overflow: hidden;\n}\n\n.vis-panel > .vis-content {\n position: relative;\n}\n\n.vis-panel .vis-shadow {\n position: absolute;\n width: 100%;\n height: 1px;\n box-shadow: 0 0 10px rgba(0,0,0,0.8);\n /* TODO: find a nice way to ensure vis-shadows are drawn on top of items\n z-index: 1;\n */\n}\n\n.vis-panel .vis-shadow.vis-top {\n top: -1px;\n left: 0;\n}\n\n.vis-panel .vis-shadow.vis-bottom {\n bottom: -1px;\n left: 0;\n}"),fA(".vis-graph-group0 {\n fill:#4f81bd;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #4f81bd;\n}\n\n.vis-graph-group1 {\n fill:#f79646;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #f79646;\n}\n\n.vis-graph-group2 {\n fill: #8c51cf;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #8c51cf;\n}\n\n.vis-graph-group3 {\n fill: #75c841;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #75c841;\n}\n\n.vis-graph-group4 {\n fill: #ff0100;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #ff0100;\n}\n\n.vis-graph-group5 {\n fill: #37d8e6;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #37d8e6;\n}\n\n.vis-graph-group6 {\n fill: #042662;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #042662;\n}\n\n.vis-graph-group7 {\n fill:#00ff26;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #00ff26;\n}\n\n.vis-graph-group8 {\n fill:#ff00ff;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #ff00ff;\n}\n\n.vis-graph-group9 {\n fill: #8f3938;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #8f3938;\n}\n\n.vis-timeline .vis-fill {\n fill-opacity:0.1;\n stroke: none;\n}\n\n\n.vis-timeline .vis-bar {\n fill-opacity:0.5;\n stroke-width:1px;\n}\n\n.vis-timeline .vis-point {\n stroke-width:2px;\n fill-opacity:1.0;\n}\n\n\n.vis-timeline .vis-legend-background {\n stroke-width:1px;\n fill-opacity:0.9;\n fill: #ffffff;\n stroke: #c2c2c2;\n}\n\n\n.vis-timeline .vis-outline {\n stroke-width:1px;\n fill-opacity:1;\n fill: #ffffff;\n stroke: #e5e5e5;\n}\n\n.vis-timeline .vis-icon-fill {\n fill-opacity:0.3;\n stroke: none;\n}\n"),fA("\n.vis-timeline {\n position: relative;\n border: 1px solid #bfbfbf;\n overflow: hidden;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-loading-screen {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}"),fA('/* override some bootstrap styles screwing up the timelines css */\n\n.vis [class*="span"] {\n min-height: 0;\n width: auto;\n}\n');var fQ=function(){function t(){nU(this,t)}return rO(t,[{key:"_create",value:function(t){var e,n,o,r,s,a=this;this.dom={},this.dom.container=t,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){!0===a.initialDrawDone&&a._redraw()}),this.on("rangechanged",function(){a.initialRangeChangeDone||(a.initialRangeChangeDone=!0)}),this.on("touch",sm(o=this._onTouch).call(o,this)),this.on("panmove",sm(r=this._onDrag).call(r,this));var l=this;this._origRedraw=sm(s=this._redraw).call(s,this),this._redraw=fr.throttle(this._origRedraw),this.on("_change",function(t){l.itemSet&&l.itemSet.initialItemSetDrawn&&t&&!0==t.queue?l._redraw():l._origRedraw()}),this.hammer=new W(this.dom.root);var h=this.hammer.get("pinch").set({enable:!0});h&&(h.getTouchAction=function(){return["pan-y"]}),this.hammer.get("pan").set({threshold:5,direction:W.DIRECTION_ALL}),this.timelineListeners={};var u=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];
30function d(t){this.isActive()&&this.emit("mousewheel",t);var e=0,n=0;if("detail"in t&&(n=-1*t.detail),"wheelDelta"in t&&(n=t.wheelDelta),"wheelDeltaY"in t&&(n=t.wheelDeltaY),"wheelDeltaX"in t&&(e=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=-1*n,n=0),"deltaY"in t&&(n=-1*t.deltaY),"deltaX"in t&&(e=t.deltaX),t.deltaMode&&(1===t.deltaMode?(e*=40,n*=40):(e*=40,n*=800)),this.options.preferZoom){if(!this.options.zoomKey||t[this.options.zoomKey])return}else if(this.options.zoomKey&&t[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll){if(this.options.verticalScroll&&Math.abs(n)>=Math.abs(e)){var o=this.props.scrollTop,r=o+n;this.isActive()&&this._setScrollTop(r)!==o&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}else if(this.options.horizontalScroll){var s=(Math.abs(e)>=Math.abs(n)?e:n)/120*(this.range.end-this.range.start)/20,a=this.range.start+s,l=this.range.end+s;this.range.setRange(a,l,{animation:!1,byUser:!0,event:t}),t.preventDefault()}}}sx(u).call(u,function(t){var e=function(e){l.isActive()&&l.emit(t,e)};l.hammer.on(t,e),l.timelineListeners[t]=e}),fP(this.hammer,function(t){l.emit("touch",t)}),e=this.hammer,(n=function(t){l.emit("release",t)}).inputHandler=function(t){t.isFinal&&n(t)},e.on("hammer.input",n.inputHandler);var c="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function p(t){if(l.options.verticalScroll&&(t.preventDefault(),l.isActive())){var e=-t.target.scrollTop;l._setScrollTop(e),l._redraw(),l.emit("scrollSide",t)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(c,sm(d).call(d,this),!1),this.dom.top.addEventListener(c,sm(d).call(d,this),!1),this.dom.bottom.addEventListener(c,sm(d).call(d,this),!1),this.dom.left.parentNode.addEventListener("scroll",sm(p).call(p,this)),this.dom.right.parentNode.addEventListener("scroll",sm(p).call(p,this));var f=!1;function m(t){var e;if(t.preventDefault&&(l.emit("dragover",l.getEventProperties(t)),t.preventDefault()),ax(e=t.target.className).call(e,"timeline")>-1&&!f)return t.dataTransfer.dropEffect="move",f=!0,!1}function v(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(t){return!1}return f=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?l.itemSet._onAddItem(t):l.itemSet._onDropObjectOnItem(t),l.emit("drop",l.getEventProperties(t)),!1}if(this.dom.center.addEventListener("dragover",sm(m).call(m,this),!1),this.dom.center.addEventListener("drop",sm(v).call(v,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){var e;if(t){if(fr.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==rS(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===rS(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new fL(this.body,this.options);n.setOptions=function(t){var e=t?fr.extend({},t):{};e.orientation="top",fL.prototype.setOptions.call(n,e)},this.components.push(n)}}else if(this.timeAxis2){var o,r,s=ax(o=this.components).call(o,this.timeAxis2);-1!==s&&sR(r=this.components).call(r,s,1),this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&fy(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new fF(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(sx(e=this.components).call(e,function(e){return e.setOptions(t)}),"configure"in t){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var a,l=fr.deepExtend({},this.options);sx(a=this.components).call(a,function(t){fr.deepExtend(l,t.options)}),this.configurator.setModuleOptions({global:l})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;for(var e in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(e)&&delete this.timelineListeners[e];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,sx(t=this.components).call(t,function(t){return t.destroy()}),this.body=null}},{key:"setCustomTime",value:function(t,e){var n,o=s8(n=this.customTimes).call(n,function(t){return e===t.options.id});if(0===o.length)throw Error("No custom time bar found with id ".concat(aO(e)));o.length>0&&o[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e,n=s8(e=this.customTimes).call(e,function(e){return e.options.id===t});if(0===n.length)throw Error("No custom time bar found with id ".concat(aO(t)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,e,n){var o,r=s8(o=this.customTimes).call(o,function(t){return t.options.id===e});if(0===r.length)throw Error("No custom time bar found with id ".concat(aO(e)));r.length>0&&r[0].setCustomMarker(t,n)}},{key:"setCustomTimeTitle",value:function(t,e){var n,o=s8(n=this.customTimes).call(n,function(t){return t.options.id===e});if(0===o.length)throw Error("No custom time bar found with id ".concat(aO(e)));if(o.length>0)return o[0].setCustomTitle(t)}
30},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var n,o=void 0!==t?fr.convert(t,"Date"):new Date;if(cE(n=this.customTimes).call(n,function(t){return t.options.id===e}))throw Error("A custom time with id ".concat(aO(e)," already exists"));var r=new fJ(this.body,fr.extend({},this.options,{time:o,id:e,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(r),this.components.push(r),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e,n=this,o=s8(e=this.customTimes).call(e,function(e){return e.options.id===t});if(0===o.length)throw Error("No custom time bar found with id ".concat(aO(t)));sx(o).call(o,function(t){var e,o,r,s;sR(e=n.customTimes).call(e,ax(o=n.customTimes).call(o,t),1),sR(r=n.components).call(r,ax(s=n.components).call(s,t),1),t.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,e){var n=this.getDataRange();if(null!==n.min||null!==n.max){var o=n.max-n.min,r=new Date(n.min.valueOf()-.01*o),s=new Date(n.max.valueOf()+.01*o),a=!t||void 0===t.animation||t.animation;this.range.setRange(r,s,{animation:a},e)}}},{key:"getDataRange",value:function(){throw Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,e,n,o){var r,s;"function"==typeof arguments[2]&&(o=arguments[2],n={}),1==arguments.length?(s=arguments[0],r=void 0===s.animation||s.animation,this.range.setRange(s.start,s.end,{animation:r})):2==arguments.length&&"function"==typeof arguments[1]?(s=arguments[0],o=arguments[1],r=void 0===s.animation||s.animation,this.range.setRange(s.start,s.end,{animation:r},o)):(r=!n||void 0===n.animation||n.animation,this.range.setRange(t,e,{animation:r},o))}},{key:"moveTo",value:function(t,e,n){"function"==typeof arguments[1]&&(n=arguments[1],e={});var o=this.range.end-this.range.start,r=fr.convert(t,"Date").valueOf(),s=!e||void 0===e.animation||e.animation;this.range.setRange(r-o/2,r+o/2,{animation:s},n)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,e,n){if(t&&!(t<0)&&!(t>1)){"function"==typeof arguments[1]&&(n=arguments[1],e={});var o=this.getWindow(),r=o.start.valueOf(),s=o.end.valueOf(),a=s-r,l=(a-a/(1+t))/2;this.setWindow(r+l,s-l,e,n)}}},{key:"zoomOut",value:function(t,e,n){if(t&&!(t<0)&&!(t>1)){"function"==typeof arguments[1]&&(n=arguments[1],e={});var o=this.getWindow(),r=o.start.valueOf(),s=o.end.valueOf(),a=s-r;this.setWindow(r-a*t/2,s+a*t/2,e,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){this.redrawCount++;var t,e=this.dom;if(e&&e.container&&0!=e.root.offsetWidth){var n=!1,o=this.options,r=this.props;fb(this.options.moment,this.body,this.options.hiddenDates),"top"==o.orientation?(fr.addClassName(e.root,"vis-top"),fr.removeClassName(e.root,"vis-bottom")):(fr.removeClassName(e.root,"vis-top"),fr.addClassName(e.root,"vis-bottom")),o.rtl?(fr.addClassName(e.root,"vis-rtl"),fr.removeClassName(e.root,"vis-ltr")):(fr.addClassName(e.root,"vis-ltr"),fr.removeClassName(e.root,"vis-rtl")),e.root.style.maxHeight=fr.option.asSize(o.maxHeight,""),e.root.style.minHeight=fr.option.asSize(o.minHeight,""),e.root.style.width=fr.option.asSize(o.width,"");var s=e.root.offsetWidth;r.border.left=1,r.border.right=1,r.border.top=1,r.border.bottom=1,r.center.height=e.center.offsetHeight,r.left.height=e.left.offsetHeight,r.right.height=e.right.offsetHeight,r.top.height=e.top.clientHeight||-r.border.top,r.bottom.height=Math.round(e.bottom.getBoundingClientRect().height)||e.bottom.clientHeight||-r.border.bottom;var a=Math.max(r.left.height,r.center.height,r.right.height),l=r.top.height+a+r.bottom.height+r.border.top+r.border.bottom;e.root.style.height=fr.option.asSize(o.height,"".concat(l,"px")),r.root.height=e.root.offsetHeight,r.background.height=r.root.height;var h=r.root.height-r.top.height-r.bottom.height;r.centerContainer.height=h,r.leftContainer.height=h,r.rightContainer.height=r.leftContainer.height,r.root.width=s,r.background.width=r.root.width,this.initialDrawDone||(r.scrollbarWidth=fr.getScrollBarWidth());var u=e.leftContainer.clientWidth,d=e.rightContainer.clientWidth;o.verticalScroll?o.rtl?(r.left.width=u||-r.border.left,r.right.width=d+r.scrollbarWidth||-r.border.right):(r.left.width=u+r.scrollbarWidth||-r.border.left,r.right.width=d||-r.border.right):(r.left.width=u||-r.border.left,r.right.width=d||-r.border.right),this._setDOM();var c=this._updateScrollTop();"top"!=o.orientation.item&&(c+=Math.max(r.centerContainer.height-r.center.height-r.border.top-r.border.bottom,0)),e.center.style.transform="translateY(".concat(c,"px)");var p=0==r.scrollTop?"hidden":"",f=r.scrollTop==r.scrollTopMin?"hidden":"";e.shadowTop.style.visibility=p,e.shadowBottom.style.visibility=f,e.shadowTopLeft.style.visibility=p,e.shadowBottomLeft.style.visibility=f,e.shadowTopRight.style.visibility=p,e.shadowBottomRight.style.visibility=f,o.verticalScroll&&(e.rightContainer.className="vis-panel vis-right vis-vertical-scroll",e.leftContainer.className="vis-panel vis-left vis-vertical-scroll",e.shadowTopRight.style.visibility="hidden",e.shadowBottomRight.style.visibility="hidden",e.shadowTopLeft.style.visibility="hidden",e.shadowBottomLeft.style.visibility="hidden",e.left.style.top="0px",e.right.style.top="0px"),(!o.verticalScroll||r.center.height<r.centerContainer.height)&&(e.left.style.top="".concat(c,"px"),e.right.style.top="".concat(c,"px"),e.rightContainer.className=e.rightContainer.className.replace(RegExp("(?:^|\\s)vis-vertical-scroll(?:\\
30s|$)")," "),e.leftContainer.className=e.leftContainer.className.replace(RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),r.left.width=u||-r.border.left,r.right.width=d||-r.border.right,this._setDOM());var m=r.center.height>r.centerContainer.height;if(this.hammer.get("pan").set({direction:m?W.DIRECTION_ALL:W.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),sx(t=this.components).call(t,function(t){n=t.redraw()||n}),n){if(this.redrawCount<5){this.body.emitter.emit("_change");return}console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var n=t.root.width-t.left.width-t.right.width;t.center.width=n,t.centerContainer.width=n,t.top.width=n,t.bottom.width=n,e.background.style.height="".concat(t.background.height,"px"),e.backgroundVertical.style.height="".concat(t.background.height,"px"),e.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),e.centerContainer.style.height="".concat(t.centerContainer.height,"px"),e.leftContainer.style.height="".concat(t.leftContainer.height,"px"),e.rightContainer.style.height="".concat(t.rightContainer.height,"px"),e.background.style.width="".concat(t.background.width,"px"),e.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),e.backgroundHorizontal.style.width="".concat(t.background.width,"px"),e.centerContainer.style.width="".concat(t.center.width,"px"),e.top.style.width="".concat(t.top.width,"px"),e.bottom.style.width="".concat(t.bottom.width,"px"),e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top="".concat(t.top.height,"px"),e.centerContainer.style.left="".concat(t.left.width,"px"),e.centerContainer.style.top="".concat(t.top.height,"px"),e.leftContainer.style.left="0",e.leftContainer.style.top="".concat(t.top.height,"px"),e.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),e.rightContainer.style.top="".concat(t.top.height,"px"),e.top.style.left="".concat(t.left.width,"px"),e.top.style.top="0",e.bottom.style.left="".concat(t.left.width,"px"),e.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return fw(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return fw(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return f_(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return f_(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){!0==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(!0!=t.options.autoResize){t._stopAutoResize();return}if(t.dom.root){var e=t.dom.root.offsetHeight,n=t.dom.root.offsetWidth;(n!=t.props.lastWidth||e!=t.props.lastHeight)&&(t.props.lastWidth=n,t.props.lastHeight=e,t.props.scrollbarWidth=fr.getScrollBarWidth(),t.body.emitter.emit("_change"))}},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=fO(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,n=this._getScrollTop(),o=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),o!=n&&this.emit
30("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<t&&(this.props.scrollTop=t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw Error("Cannot invoke abstract method _createConfigurator")}}]),t}();aB(fQ.prototype);var f0=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e){nU(this,o),(s=n.call(this)).body=t,s.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:pv,locales:fZ,locale:"en"},s.options=fr.extend({},s.defaultOptions),s.setOptions(e),s.options.locales=fr.extend({},fZ,s.options.locales);var r,s,a=s.defaultOptions.locales[s.defaultOptions.locale];return sx(r=si(s.options.locales)).call(r,function(t){s.options.locales[t]=fr.extend({},a,s.options.locales[t])}),s.offset=0,s._create(),s}return rO(o,[{key:"_create",value:function(){var t=document.createElement("div");t.className="vis-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(t){t&&fr.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,t)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var t,e,n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar),this.start());var o=this.options.moment(sr()+this.offset);this.options.alignCurrentTime&&(o=o.startOf(this.options.alignCurrentTime));var r=this.body.util.toScreen(o),s=this.options.locales[this.options.locale];s||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),s=this.options.locales.en);var a=r2(t=r2(e="".concat(s.current," ")).call(e,s.time,": ")).call(t,o.format("dddd, MMMM Do YYYY, H:mm:ss"));a=a.charAt(0).toUpperCase()+a.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*r,"px)"):this.bar.style.transform="translateX(".concat(r,"px)"),this.bar.title=a}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var t=this;!function e(){t.stop();var n=1/t.body.range.conversion(t.body.domProps.center.width).scale/10;n<30&&(n=30),n>1e3&&(n=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=aj(e,n)}()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=fr.convert(t,"Date").valueOf(),n=sr();this.offset=e-n,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(sr()+this.offset)}}]),o}(fp),f1=og.find,f2="find",f5=!0;f2 in[]&&[,][f2](function(){f5=!1}),il({target:"Array",proto:!0,forced:f5},{find:function(t){return f1(this,t,arguments.length>1?arguments[1]:void 0)}});var f3=rN("Array").find,f4=Array.prototype,f8=X(function(t){var e=t.find;return t===f4||ef(f4,t)&&e===f4.find?f3:e}),f6=og.findIndex,f9="findIndex",f7=!0;f9 in[]&&[,][f9](function(){f7=!1}),il({target:"Array",proto:!0,forced:f7},{findIndex:function(t){return f6(this,t,arguments.length>1?arguments[1]:void 0)}});var mt=rN("Array").findIndex,me=Array.prototype,mi=X(function(t){var e=t.findIndex;return t===me||ef(me,t)&&e===me.findIndex?mt:e});function mn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function mo(t,e,n,o){return null===ms(t,e.item,!1,function(t){return t.stack&&(n||null===t.top)},function(t){return t.stack},function(t){return e.axis},o)}function mr(t,e,n){var o=!1,r=[];for(var s in n)n[s].hasOwnProperty("index")?r[n[s].index]=s:r.push(s);for(var a=0;a<r.length;a++)if(s=r[a],n.hasOwnProperty(s)){for(var l in o=o||n[s].stack,n[s].top=0,n)n[l].visible&&n[s].index>n[l].index&&(n[s].top+=n[l].height);for(var h=t[s],u=0;u<h.length;u++)void 0!==h[u].data.subgroup&&(h[u].top=n[h[u].data.subgroup].top+.5*e.item.vertical,n[s].stack&&(h[u].baseTop=h[u].top));o&&n[s].stack&&function(t,e,n){var o=ms(t,e.item,!1,function(t){return t.stack},function(t){return!0},function(t){return t.baseTop});n.height=o-n.top+.5*e.item.vertical}(t[s],e,n[s])}}function ms(t,e,n,o,r,s,a){var l,h=function(t){return t.start},u=function(t){return t.end};n||(h=t[0]&&t[0].options.rtl?function(t){return t.right}:function(t){return t.left}
30,u=function(t){return h(t)+t.width+e.horizontal});var d,c=[],p=[],f=null,m=0,v=function(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return mn(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return mn(t,void 0)}}(t))){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}(t);try{for(v.s();!(d=v.n()).done;)!function(){var t=d.value;if(o(t))c.push(t);else if(r(t)){var e=h(t);null!==f&&e<f-.001&&(m=0),f=e,m=ma(p,function(t){return h(t)-.001>e},m),sR(p).call(p,m,0,t),m++}}()}catch(t){v.e(t)}finally{v.f()}f=null;var g=null;m=0;for(var y=0,b=0,_=0;c.length>0;)if(l=function(){var t,n,o=c.shift();o.top=s(o);var l=h(o),d=u(o);null!==f&&l<f-.001&&(y=0,b=0,m=0,g=null),f=l,y=ma(p,function(t){return l<u(t)-.001},y),(null===g||g<d-.001)&&(b=ma(p,function(t){return d<h(t)-.001},Math.max(y,b))),null!==g&&g-.001>d&&(b=function(t,e,n,o){for(n||(n=0),o||(o=t.length),i=o-1;i>=n;i--)if(e(t[i]))return i;return n-1}(p,function(t){return d+.001>=h(t)},y,b)+1);for(var v=cC(t=s8(n=r5(p).call(p,y,b)).call(n,function(t){return l<u(t)-.001&&d-.001>h(t)})).call(t,function(t,e){return t.top-e.top}),w=0;w<v.length;w++){var k=v[w];o.top-e.vertical+.001<k.top+k.height&&o.top+o.height+e.vertical-.001>k.top&&(o.top=k.top+k.height+e.vertical)}r(o)&&(m=ma(p,function(t){return h(t)-.001>l},m),sR(p).call(p,m,0,o),m++);var x=o.top+o.height;if(x>_&&(_=x),a&&a())return{v:null}}())return l.v;return _}function ma(t,e,n){n||(n=0);var o,r=mi(o=r5(t).call(t,n)).call(o,e);return -1===r?t.length:r+n}var ml={BACKGROUND:"__background__"},mh=function(){function t(e,n,o){var r=this;if(nU(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=n&&n.subgroupOrder,this.itemSet=o,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],n&&n.nestedGroups&&(this.nestedGroups=n.nestedGroups,!1==n.showNested?this.showNested=!1:this.showNested=!0),n&&n.subgroupStack){if("boolean"==typeof n.subgroupStack)this.doInnerStack=n.subgroupStack,this.subgroupStackAll=n.subgroupStack;else for(var s in n.subgroupStack)this.subgroupStack[s]=n.subgroupStack[s],this.doInnerStack=this.doInnerStack||n.subgroupStack[s]}n&&n.heightMode?this.heightMode=n.heightMode:this.heightMode=o.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var a=function(){r.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",a),this._disposeCallbacks.push(function(){r.itemSet.body.emitter.off("checkRangedItems",a)}),this._create(),this.setData(n)}return rO(t,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){if(t&&t.subgroupVisibility)for(var e in t.subgroupVisibility)this.subgroupVisibility[e]=t.subgroupVisibility[e];if((n=this.itemSet.options&&this.itemSet.options.groupTemplate?(
30o=sm(r=this.itemSet.options.groupTemplate).call(r,this))(t,this.dom.inner):t&&t.content)instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(n)}else n instanceof Object&&n.isReactComponent||(n instanceof Object?o(t,this.dom.inner):null!=n?this.dom.inner.innerHTML=fr.xss(n):this.dom.inner.innerHTML=fr.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?fr.removeClassName(this.dom.inner,"vis-hidden"):fr.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?(this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),(void 0!==t.showNested||void 0===this.showNested)&&(!1==t.showNested?this.showNested=!1:this.showNested=!0),fr.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(fr.removeClassName(this.dom.label,"collapsed"),fr.addClassName(this.dom.label,"expanded")):(fr.removeClassName(this.dom.label,"expanded"),fr.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,fr.removeClassName(this.dom.label,"collapsed"),fr.removeClassName(this.dom.label,"expanded"),fr.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(fr.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?fr.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):fr.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):fr.addClassName(this.dom.label,"vis-group-level-0");var n,o,r,s=t&&t.className||null;s!=this.className&&(this.className&&(fr.removeClassName(this.dom.label,this.className),fr.removeClassName(this.dom.foreground,this.className),fr.removeClassName(this.dom.background,this.className),fr.removeClassName(this.dom.axis,this.className)),fr.addClassName(this.dom.label,s),fr.addClassName(this.dom.foreground,s),fr.addClassName(this.dom.background,s),fr.addClassName(this.dom.axis,s),this.className=s),this.style&&(fr.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(fr.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t==this.lastMarkerHeight)return!1;this.lastMarkerHeight=t;var e={},n=0;if(sx(fr).call(fr,this.items,function(t,o){t.dirty=!0,t.displayed&&(e[o]=t.redraw(!0),n=e[o].length)}),n>0)for(var o=function(t){sx(fr).call(fr,e,function(e){e[t]()})},r=0;r<n;r++)o(r);return!0}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,e=t.offsetTop,n=t.offsetLeft,o=t.offsetWidth;this.top=e,this.right=n,this.width=o}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,e=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:e&&e.timeoutMs,userBailFunction:e&&e.callback,shouldBailStackItems:this.shouldBailStackItems},o=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(sr()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&null==this.itemSet.userContinueNotBail?n.userBailFunction(function(e){t.itemSet.userContinueNotBail=e,o=!e}):o=!1==t.itemSet.userContinueNotBail)}return o}},{key:"_redrawItems",value:function(t,e,n,o){var r=this;if(t||this.stackDirty||this.isVisible&&!e){var s,a={byEnd:s8(c=this.orderedItems.byEnd).call(c,function(t){return!t.isCluster}),byStart:s8(p=this.orderedItems.byStart).call(p,function(t){return!t.isCluster})},l={byEnd:rJ(new cr(s8(f=se(m=this.orderedItems.byEnd).call(m,function(t){return t.cluster})).call(f,function(t){return!!t}))),byStart:rJ(new cr(s8(v=se(g=this.orderedItems.byStart).call(g,function(t){return t.cluster})).call(v,function(t){return!!t})))},h=function(){var t,e,n,s=r._updateItemsInRange(a,s8(t=r.visibleItems).call(t,function(t){return!t.isCluster}),o),h=r._updateClustersInRange(l,s8(e=r.visibleItems).call(e,function(t){return t.isCluster}),o);return r2(n=[]).call(n,rJ(s),rJ(h))},u=function(t){var e={},n=function(n){var o,s=s8(o=r.visibleItems).call(o,function(t){return t.data.subgroup===n});e[n]=t?cC(s).call(s,function(e,n){return t(e.data,n.data)}):s};for(var o in r.subgroups)n(o);return e};if("function"==typeof this.itemSet.options.order){var d=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups)mr(u(this.itemSet.options.order),n,this.subgroups),this.visibleItems=h(),this._updateSubGroupHeights(n);else{this.visibleItems=h(),this._updateSubGroupHeights(n);var c,p,f,m,v,g,y,b,_,w,k=cC(y=s8(b=r5(_=this.visibleItems).call(_)).call(b,function(t){return t.isCluster||!t.isCluster&&!t.cluster})).call(y,function(t,e){return d.itemSet.options.order(t.data,e.data)});this.shouldBailStackItems=mo(k,n,!0,sm(w=this._shouldBailItemsRedraw).call(w,this))}}else(this.visibleItems=h(),this._updateSubGroupHeights(n),this.itemSet.options.stack)?this.doInnerStack&&this.itemSet.options.stackSubgroups?mr(u(),n,this.subgroups):this.shouldBailStackItems=mo(this.visibleItems,n,!0,sm(s=this._shouldBailItemsRedraw).call(s,this)):function(t,e,n,o){for(var r=0;r<t.length;r++)if(void 0==t[r].data.subgroup)t[r].top=e.item.vertical;else if(void 0!==t[r].data.subgroup&&o){var s=0;for(var a in n)n.hasOwnProperty(a)&&!0==n[a].visible&&n[a].index<n[t[r].data.subgroup].index&&(s+=n[a].height,n[t[r].data.subgroup].top=s);t[r].top=s+.5*e.item.vertical}o||function(t,e,n){var o;ms(cC(o=an(n)).call(o,function(t,e){return t.index>
30e.index?1:t.index<e.index?-1:0}),{vertical:0},!0,function(t){return!0},function(t){return!0},function(t){return 0});for(var r=0;r<t.length;r++)void 0!==t[r].data.subgroup&&(t[r].top=n[t[r].data.subgroup].top+.5*e.item.vertical)}(t,e,n)}(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups);for(var x=0;x<this.visibleItems.length;x++)this.visibleItems[x].repositionX(),void 0===this.subgroupVisibility[this.visibleItems[x].data.subgroup]||this.subgroupVisibility[this.visibleItems[x].data.subgroup]||this.visibleItems[x].hide();this.itemSet.options.cluster&&sx(fr).call(fr,this.items,function(t){t.cluster&&t.displayed&&t.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,e){t=fr.updateProperty(this,"height",e)||t;var n=this.dom.inner.clientWidth,o=this.dom.inner.clientHeight;return t=fr.updateProperty(this.props.label,"width",n)||t,t=fr.updateProperty(this.props.label,"height",o)||t}},{key:"_applyGroupHeight",value:function(t){this.dom.background.style.height="".concat(t,"px"),this.dom.foreground.style.height="".concat(t,"px"),this.dom.label.style.height="".concat(t,"px")}},{key:"_updateItemsVerticalPosition",value:function(t){for(var e=0,n=this.visibleItems.length;e<n;e++){var o=this.visibleItems[e];o.repositionY(t),!this.isVisible&&this.groupId!=ml.BACKGROUND&&o.displayed&&o.hide()}}},{key:"redraw",value:function(t,e,n,o){var r,s,a,l,h,u,d,c=this,p=!1,f=this.isVisible,m=[function(){n=c._didMarkerHeightChange.call(c)||n},sm(a=this._updateSubGroupHeights).call(a,this,e),sm(l=this._calculateGroupSizeAndPosition).call(l,this),function(){var n;c.isVisible=sm(n=c._isGroupVisible).call(n,c)(t,e)},function(){var o;sm(o=c._redrawItems).call(o,c)(n,f,e,t)},sm(h=this._updateSubgroupsSizes).call(h,this),function(){var t;r=sm(t=c._calculateHeight).call(t,c)(e)},sm(u=this._calculateGroupSizeAndPosition).call(u,this),function(){var t;p=sm(t=c._didResize).call(t,c)(p,r)},function(){var t;sm(t=c._applyGroupHeight).call(t,c)(r)},function(){var t;sm(t=c._updateItemsVerticalPosition).call(t,c)(e)},sm(d=function(){return!c.isVisible&&c.height&&(p=!1),p}).call(d,this)];return o?m:(sx(m).call(m,function(t){s=t()}),s)}},{key:"_updateSubGroupHeights",value:function(t){var e=this;if(si(this.subgroups).length>0){var n=this;this._resetSubgroups(),sx(fr).call(fr,this.visibleItems,function(o){void 0!==o.data.subgroup&&(n.subgroups[o.data.subgroup].height=Math.max(n.subgroups[o.data.subgroup].height,o.height+t.item.vertical),n.subgroups[o.data.subgroup].visible=void 0===e.subgroupVisibility[o.data.subgroup]||!!e.subgroupVisibility[o.data.subgroup])})}}},{key:"_isGroupVisible",value:function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){if((n="fixed"===this.heightMode?fr.toArray(this.items):this.visibleItems).length>0){var e,n,o=n[0].top,r=n[0].top+n[0].height;if(sx(fr).call(fr,n,function(t){o=Math.min(o,t.top),r=Math.max(r,t.top+t.height)}),o>t.axis){var s=o-t.axis;r-=s,sx(fr).call(fr,n,function(t){t.top-=s})}e=Math.ceil(r+t.item.vertical/2),"fitItems"!==this.heightMode&&(e=Math.max(e,this.props.label.height))}else e=this.props.label.height;return e}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var o=this.dom.axis;o.parentNode&&o.parentNode.removeChild(o)}},{key:"add",value:function(t){var e;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),!s0(e=this.visibleItems).call(e,t)){var n=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;void 0!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[e].start)&&(this.subgroups[e].start=t.data.start);var n=t.data.end||t.data.start;new Date(n)>new Date(this.subgroups[e].end)&&(this.subgroups[e].end=n),this.subgroups[e].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups)for(var e in t.subgroups)!function(){var n,o=t.subgroups[e].items[0].data.end||t.subgroups[e].items[0].data.start,r=t.subgroups[e].items[0].data.start,s=o-1;sx(n=t.subgroups[e].items).call(n,function(t){new Date(t.data.start)<new Date(r)&&(r=t.data.start);var e=t.data.end||t.data.start;new Date(e)>new Date(s)&&(s=e)}),t.subgroups[e].start=r,t.subgroups[e].end=new Date(s-1)}()}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var t=[];if("string"==typeof this.subgroupOrderer){for(var e in this.subgroups)t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});cC(t).call(t,function(t,e){return t.sortField-e.sortField})}else if("function"==typeof this.subgroupOrderer){for(var n in this.subgroups)t.push(this.subgroups[n].items[0].data);cC(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var o=0;o<t.length;o++)this.subgroups[t[o].subgroup].index=o}}},{key:"_resetSubgroups",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:"remove",value:function(t){delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var e,n,o=ax(e=this.visibleItems).call(e,t);-1!=o&&sR(n=this.visibleItems).call(n,o,1),void 0!==t.data.subgroup&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(void 0!=e){var n=this.subgroups[e];if(n){var o,r,s=ax(o=n.items).call(o,t);s>=0&&(sR(r=n.items).call(r,s,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[e])}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=fr.toArray(this.items),e=[],n=[],o=0;o<t.length;o++)void 0!==t[o].data.end&&n.push(t[o]),e.push(t[o]);this.orderedItems={byStart:e,byEnd:n},function(t){cC(t).call(t,function(t,e){return t.data.start-e.data.start})}(this.orderedItems.byStart),function(t){cC(t).call(t,function(t,e){return("end"in t.data?t.data.end:t.data.start)-("end"in e.data?e.data.end:e.data.start)})}(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,e,n){var o=[],r={};if(!this.isVisible&&void 0!==this.height&&this.groupId!=ml.BACKGROUND){for(var s=0;s<e.length;s++){var a=e[s];a.displayed&&a.hide()}return o}var l=(n.end-n.start)/4,h=n.start-l,u=n.end+l;if(e.length>0)for(var d=0;d<e.length;d++)this._checkIfVisibleWithReference(e[d],o,r,n);var c=fr.binarySearchCustom(t.byStart,function(t){return t<h?-1:t<=u?0:1},"data","start");if(this._traceVisible(c,t.byStart,o,r,function(t){return t.data.start<h||t.data.start>u}),!0==this.checkRangedItems){this.checkRangedItems=!1;for(var p=0;p<t.byEnd.length;p++)this._checkIfVisibleWithReference(t.byEnd[p],o,r,n)}else{var f=fr.binarySearchCustom(t.byEnd,function(t){var e=t.start;return t.end<h?-1:e<=u?0:1},"data");this._traceVisible(f,t.byEnd,o,r,function(t){return t.data.end<h||t.data.start>u})}for(var m={},v=0,g=0;g<o.length;g++){var y=o[g];y.displayed||(m[g]=y.redraw(!0),v=m[g].length)}if(v>0)for(var b=function(t){sx(fr).call(fr,m,function(e){e[t]()})},_=0;_<v;_++)b(_);for(var w=0;w<o.length;w++)o[w].repositionX();return o}},{key:"_traceVisible",value:function(t,e,n,o,r){if(-1!=t){for(var s=t;s>=0;s--){var a=e[s];if(r(a))break;a.isCluster&&!a.hasItems()||a.cluster||void 0!==o[a.id]||(o[a.id]=!0,n.push(a))}for(var l=t+1;l<e.length;l++){var h=e[l];
30if(r(h))break;h.isCluster&&!h.hasItems()||h.cluster||void 0!==o[h.id]||(o[h.id]=!0,n.push(h))}}}},{key:"_checkIfVisible",value:function(t,e,n){t.isVisible(n)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,e,n,o){t.isVisible(o)?void 0===n[t.id]&&(n[t.id]=!0,e.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,e,n){var o=[],r={};if(e.length>0)for(var s=0;s<e.length;s++)this._checkIfVisibleWithReference(e[s],o,r,n);for(var a=0;a<t.byStart.length;a++)this._checkIfVisibleWithReference(t.byStart[a],o,r,n);for(var l=0;l<t.byEnd.length;l++)this._checkIfVisibleWithReference(t.byEnd[l],o,r,n);for(var h={},u=0,d=0;d<o.length;d++){var c=o[d];c.displayed||(h[d]=c.redraw(!0),u=h[d].length)}if(u>0)for(var p=0;p<u;p++)sx(fr).call(fr,h,function(t){t[p]()});for(var f=0;f<o.length;f++)o[f].repositionX();return o}},{key:"changeSubgroup",value:function(t,e,n){this._removeFromSubgroup(t,e),this._addToSubgroup(t,n),this.orderSubgroups()}},{key:"dispose",value:function(){var t;for(this.hide();t=this._disposeCallbacks.pop();)t()}}]),t}(),mu=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r){var s;return nU(this,o),(s=n.call(this,t,e,r)).width=0,s.height=0,s.top=0,s.left=0,s}return rO(o,[{key:"redraw",value:function(t,e,n){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var o=0,r=this.visibleItems.length;o<r;o++)this.visibleItems[o].repositionY(e);return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),o}(mh);function md(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}fA('\n.vis-item {\n position: absolute;\n color: #1A1A1A;\n border-color: #97B0F8;\n border-width: 1px;\n background-color: #D5DDF6;\n display: inline-block;\n z-index: 1;\n /*overflow: hidden;*/\n}\n\n.vis-item.vis-selected {\n border-color: #FFC200;\n background-color: #FFF785;\n\n /* z-index must be higher than the z-index of custom time bar and current time bar */\n z-index: 2;\n}\n\n.vis-editable.vis-selected {\n cursor: move;\n}\n\n.vis-item.vis-point.vis-selected {\n background-color: #FFF785;\n}\n\n.vis-item.vis-box {\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-point {\n background: none;\n}\n\n.vis-item.vis-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}\n\n.vis-item.vis-range {\n border-style: solid;\n border-radius: 2px;\n box-sizing: border-box;\n}\n\n.vis-item.vis-background {\n border: none;\n background-color: rgba(213, 221, 246, 0.4);\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n}\n\n.vis-item .vis-item-overflow {\n position: relative;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n overflow: hidden;\n}\n\n.vis-item-visible-frame {\n white-space: nowrap;\n}\n\n.vis-item.vis-range .vis-item-content {\n position: relative;\n display: inline-block;\n}\n\n.vis-item.vis-background .vis-item-content {\n position: absolute;\n display: inline-block;\n}\n\n.vis-item.vis-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item .vis-item-content {\n white-space: nowrap;\n box-sizing: border-box;\n padding: 5px;\n}\n\n.vis-item .vis-onUpdateTime-tooltip {\n position: absolute;\n background: #4f81bd;\n color: white;\n width: 200px;\n text-align: center;\n white-space: nowrap;\n padding: 5px;\n border-radius: 1px;\n transition: 0.4s;\n -o-transition: 0.4s;\n -moz-transition: 0.4s;\n -webkit-transition: 0.4s;\n}\n\n.vis-item .vis-delete, .vis-item .vis-delete-rtl {\n position: absolute;\n top: 0px;\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n padding: 0px 5px;\n cursor: pointer;\n\n -webkit-transition: background 0.2s linear;\n -moz-transition: background 0.2s linear;\n -ms-transition: background 0.2s linear;\n -o-transition: background 0.2s linear;\n transition: background 0.2s linear;\n}\n\n.vis-item .vis-delete {\n right: -24px;\n}\n\n.vis-item .vis-delete-rtl {\n left: -24px;\n}\n\n.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {\n
30content: "\\00D7"; /* MULTIPLICATION SIGN */\n color: red;\n font-family: arial, sans-serif;\n font-size: 22px;\n font-weight: bold;\n\n -webkit-transition: color 0.2s linear;\n -moz-transition: color 0.2s linear;\n -ms-transition: color 0.2s linear;\n -o-transition: color 0.2s linear;\n transition: color 0.2s linear;\n}\n\n.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {\n background: red;\n}\n\n.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {\n color: white;\n}\n\n.vis-item .vis-drag-center {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0px;\n cursor: move;\n}\n\n.vis-item.vis-range .vis-drag-left {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n left: -4px;\n\n cursor: w-resize;\n}\n\n.vis-item.vis-range .vis-drag-right {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n right: -4px;\n\n cursor: e-resize;\n}\n\n.vis-range.vis-item.vis-readonly .vis-drag-left,\n.vis-range.vis-item.vis-readonly .vis-drag-right {\n cursor: auto;\n}\n\n.vis-item.vis-cluster {\n vertical-align: center;\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-cluster-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item.vis-cluster-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}');var mc=function(){function t(e,n,o){var r,s=this;nU(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=n||{},this.defaultOptions={locales:fZ,locale:"en"},this.options=fr.extend({},this.defaultOptions,o),this.options.locales=fr.extend({},fZ,this.options.locales);var a=this.defaultOptions.locales[this.defaultOptions.locale];sx(r=si(this.options.locales)).call(r,function(t){s.options.locales[t]=fr.extend({},a,s.options.locales[t])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=o&&o.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(e),this.editable=null,this._updateEditStatus()}return rO(t,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(t){void 0!=t.group&&this.data.group!=t.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0),void 0!=t.subgroup&&this.data.subgroup!=t.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(t){t&&(this.selectable=void 0===t.selectable||!!t.selectable)}},{key:"setParent",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:"isVisible",value:function(t){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var t,e,n=this,o=document.createElement("div");o.className="vis-drag-center",o.dragCenterItem=this,this.hammerDragCenter=new W(o),this.hammerDragCenter.on("tap",function(t){n.parent.itemSet.body.emitter.emit("click",{event:t,item:n.id})}),this.hammerDragCenter.on("doubletap",function(t){t.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:t,item:n.id})}),this.hammerDragCenter.on("panstart",function(t){t.stopPropagation(),n.parent.itemSet._onDragStart(t)}),this.hammerDragCenter.on("panmove",sm(t=n.parent.itemSet._onDrag).call(t,n.parent.itemSet)),this.hammerDragCenter.on("panend",sm(e=n.parent.itemSet._onDragEnd).call(e,n.parent.itemSet)),this.hammerDragCenter.get("press").set({t
30ime:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(o,this.dom.dragLeft):this.dom.box.appendChild(o):this.dom.point&&this.dom.point.appendChild(o),this.dom.dragCenter=o}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(t){var e=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&e&&!this.dom.deleteButton){var n=this,o=document.createElement("div");this.options.rtl?o.className="vis-delete-rtl":o.className="vis-delete";var r=this.options.locales[this.options.locale];r||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),r=this.options.locales.en),o.title=r.deleteSelected,this.hammerDeleteButton=new W(o).on("tap",function(t){t.stopPropagation(),n.parent.removeFromDataSet(n)}),t.appendChild(o),this.dom.deleteButton=o}else(!this.selected||!e)&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(t){if(this.options.tooltipOnItemUpdateTime){var e=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&e&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",t.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var o,r,s=this.parent.itemSet.body.domProps.scrollTop;("top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-s?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px")),this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template?o=sm(r=this.options.tooltipOnItemUpdateTime.template).call(r,this)(this.data):(o="start: ".concat(pv(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(o+="<br> end: ".concat(pv(this.data.end).format("MM/DD/YYYY hh:mm")))),this.dom.onItemUpdateTimeTooltip.innerHTML=fr.xss(o)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var e,n,o,r,s,a,l=this._getItemData(),h=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate?(r=sm(s=this.options.visibleFrameTemplate).call(s,this),o=fr.xss(r(l,h))):o="",h){if(o instanceof Object&&!(o instanceof Element))r(l,h);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(o)){if(o instanceof Element)h.innerHTML="",h.appendChild(o);else if(void 0!=o)h.innerHTML=fr.xss(o);else if(!("background"==this.data.type&&void 0===this.data.content))throw Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=o}}if((e=this.options.template?(n=sm(a=this.options.template).call(a,this))(l,t,this.data):this.data.content)instanceof Object&&!(e instanceof Element))n(l,t);else if(this._contentToString(this.content)!==this._contentToString(e)){if(e instanceof Element)t.innerHTML="",t.appendChild(e);else if(void 0!=e)t.innerHTML=fr.xss(e);else if(!("background"==this.data.type&&void 0===this.data.content))throw Error('Property "content" missing in item '.concat(this.id
30));this.content=e}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var e=[];if(r6(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=si(this.data)}var n,o=function(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return md(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return md(t,void 0)}}(t))){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}(e);try{for(o.s();!(n=o.n()).done;){var r=n.value,s=this.data[r];null!=s?t.setAttribute("data-".concat(r),s):t.removeAttribute("data-".concat(r))}}catch(t){o.e(t)}finally{o.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(fr.removeCssText(t,this.style),this.style=null),this.data.style&&(fr.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return"string"==typeof t?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===rS(this.options.editable)&&(this.editable={},fr.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||!this.data||("boolean"==typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===rS(this.data.editable)&&(this.editable={},fr.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){if(this.options.tooltip&&this.options.tooltip.template){var t;return sm(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data)}return this.data.title}}]),t}();mc.prototype.stack=!0;var mp=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r){var s;if(nU(this,o),(s=n.call(this,t,e,r)).props={dot:{width:0,height:0},line:{width:0,height:0}},t&&void 0==t.start)throw Error('Property "start" missing in item '.concat(t));return s}return rO(o,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.data.align||this.options.align,n=this.width*t.getMillisecondsPerPixel();return"right"==e?this.data.start.getTime()>t.start&&this.data.start.getTime()-n<t.end:"left"==e?this.data.start.getTime()+n>t.start&&this.data.start.getTime()<t.end:this.data.start.getTime()+n/2>t.start&&this.data.start.getTime()-n/2<t.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var e=this.parent.dom.background;if(!e)throw Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;
30if(!e)throw Error("Cannot redraw item: parent has no axis container element");n.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(e),this.dom.line.className="vis-item vis-line".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=t.dot.height,this.props.dot.width=t.dot.width,this.props.line.width=t.line.width,this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(t){var e,n,o,r,s,a,l=this,h=[sm(o=this._createDomElement).call(o,this),sm(r=this._appendDomElement).call(r,this),sm(s=this._updateDirtyDomComponents).call(s,this),function(){l.dirty&&(e=l._getDomComponentsSizes())},function(){if(l.dirty){var t;sm(t=l._updateDomComponentsSizes).call(t,l)(e)}},sm(a=this._repaintDomAdditionals).call(a,this)];return t?h:(sx(h).call(h,function(t){n=t()}),n)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.remove?t.box.remove():t.box.parentNode&&t.box.parentNode.removeChild(t.box),t.line.remove?t.line.remove():t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.remove?t.dot.remove():t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==n){var s=r?-1*e:e;if(void 0===n){t.style.transform="translateX(".concat(s,"px)");return}if(void 0===e){t.style.transform="translateY(".concat(n,"px)");return}t.style.transform=r2(o="translate(".concat(s,"px, ")).call(o,n,"px)")}};e(this.dom.box,this.boxX,this.boxY,t),e(this.dom.dot,this.dotX,this.dotY,t),e(this.dom.line,this.lineX,this.lineY,t)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=void 0===this.data.align?this.options.align:this.data.align,n=this.props.line.width,o=this.props.dot.width;"right"==e?(this.boxX=t-this.width,this.lineX=t-n,this.dotX=t-n/2-o/2):"left"==e?(this.boxX=t,this.lineX=t,this.dotX=t+n/2-o/2):(this.boxX=t-this.width/2,this.lineX=this.options.rtl?t-n:t-n/2,this.dotX=t-o/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.line.style;if("top"==t){var n=this.parent.top+this.top+1;this.boxY=this.top||0,e.height="".concat(n,"px"),e.bottom="",e.top="0"}else{var o=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),e.height="".concat(o,"px"),e.top="",e.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),o}(mc),mf=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r){var s;if(nU(this,o),(s=n.call(this,t,e,r)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},t&&void 0==t.start)throw Error('Property "start" missing in item '.concat(t));return s}return rO(o,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.width*t.getMillisecondsPerPixel();return this.data.start.getTime()+e>t.start&&this.data.start<t.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.a
30ppendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var t=this.parent.dom.foreground;if(!t)throw Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.dot.width=t.dot.width,this.props.dot.height=t.dot.height,this.props.content.height=t.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=t.point.width,this.height=t.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var e=this.props.dot.width,n=this.options.rtl?e/2:-(e/2*1);this.dom.dot.style.transform="translateX(".concat(n,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(t){var e,n,o,r,s,a,l=this,h=[sm(o=this._createDomElement).call(o,this),sm(r=this._appendDomElement).call(r,this),sm(s=this._updateDirtyDomComponents).call(s,this),function(){l.dirty&&(e=l._getDomComponentsSizes())},function(){if(l.dirty){var t;sm(t=l._updateDomComponentsSizes).call(t,l)(e)}},sm(a=this._repaintDomAdditionals).call(a,this)];return t?h:(sx(h).call(h,function(t){n=t()}),n)}},{key:"repositionXY",value:function(){var t=this.options.rtl;!function(t,e,n){var o,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==n){var s=r?-1*e:e;if(void 0===n){t.style.transform="translateX(".concat(s,"px)");return}if(void 0===e){t.style.transform="translateY(".concat(n,"px)");return}t.style.transform=r2(o="translate(".concat(s,"px, ")).call(o,n,"px)")}}(this.dom.point,this.pointX,this.pointY,t)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start);this.pointX=t,this.options.rtl?this.right=t-this.props.dot.width:this.left=t-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){"top"==this.options.orientation.item?this.pointY=this.top:this.pointY=this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),o}(mc),mm=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r){var s;if(nU(this,o),(s=n.call(this,t,e,r)).props={content:{width:0}},s.overflow=!1,t){if(void 0==t.start)throw Error('Property "start" missing in item '.concat(t.id));if(void 0==t.end)throw Error('Property "end" missing in item '.concat(t.id))}return s}return rO(o,[{key:"isVisible",value:function(t){return!this.cluster&&this.data.start<t.end&&this.data.end>t.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,this.whiteSpace="nowrap"!==window.getComputedStyle(this.dom.content).whiteSpace,{c
30ontent:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(t){var e,n,o,r,s,a,l=this,h=[sm(o=this._createDomElement).call(o,this),sm(r=this._appendDomElement).call(r,this),sm(s=this._updateDirtyDomComponents).call(s,this),function(){if(l.dirty){var t;e=sm(t=l._getDomComponentsSizes).call(t,l)()}},function(){if(l.dirty){var t;sm(t=l._updateDomComponentsSizes).call(t,l)(e)}},sm(a=this._repaintDomAdditionals).call(a,this)];return t?h:(sx(h).call(h,function(t){n=t()}),n)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}}},{key:"repositionX",value:function(t){var e,n,o=this.parent.width,r=this.conversion.toScreen(this.data.start),s=this.conversion.toScreen(this.data.end),a=void 0===this.data.align?this.options.align:this.data.align;!1!==this.data.limitSize&&(void 0===t||!0===t)&&(r<-o&&(r=-o),s>2*o&&(s=2*o));var l=Math.max(Math.round((s-r)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=r:this.left=r,this.width=l+this.props.content.width,n=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=l,n=Math.min(s-r,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(-1*this.right,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(l,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),a){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var h=-1*Math.max(l-n,0);this.dom.content.style.transform="translateX(".concat(h,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(l-n,0),"px)");break;case"center":if(this.options.rtl){var u=-1*Math.max((l-n)/2,0);this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((l-n)/2,0),"px)");break;default:(e=this.overflow?s>0?Math.max(-r,0):-n:r<0?-r:0,this.options.rtl)?this.dom.content.style.transform="translateX(".concat(-1*e,"px)"):this.dom.content.style.transform="translateX(".concat(e,"px)")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;"top"==t?e.style.top="".concat(this.top,"px"):e.style.top="".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement("div");t.className="vis-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var t=document.createElement("div");t.className="vis-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),o}(mc);mm.prototype.baseClassName="vis-item vis-range";var mv=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r){var s;if(nU(this,o),(s=n.call(this,t,e,r)).props={content:{width:0}},s.overflow=!1,t){if(void 0==t.start)throw Error('Property "start" missing in item '.concat(t.id));if(void 0==t.end)throw Error('Property "end" missing in item '.concat(t.id))}return s}return rO(o,[{key:"isVisible",value:function(t){return this.data.start<t.end&&this.data.end>t.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+t}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(t){var e,n,o,r,s,a,l=this,h=[sm(o=this._createDomElement).call(o,this),sm(r=this._appendDomElement).call(r,this),sm(s=this._updateDirtyDomComponents).call(s,this),function(){if(l.dirty){var t;e=sm(t=l._getDomComponentsSizes).call(t,l)()}},function(){if(l.dirty){var t;sm(t=l._updateDomComponentsSizes).call(t,l)(e)}},sm(a=this._repaintDomAdditionals).call(a,this)];return t?h:(sx(h).call(h,function(t){n=t()}),n)}},{key:"repositionY",value:function(t){var e,n=this.options.orientation.item;if(void 0!==this.data.subgroup){var o=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[o].height,"px"),"top"==n?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[o].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[o].top-this.parent.subgroups[o].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof mu?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==n?"0":"",this.dom.box.style.top="top"==n?"0":""):(e=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(e,"px")}}]),o}(mc);mv.prototype.baseClassName="vis-item vis-background",mv.prototype.stack=!1,mv.prototype.show=mm.prototype.show,mv.prototype.hide=mm.prototype.hide,mv.prototype.repositionX=mm.prototype.repositionX,fA("div.vis-tooltip {\n position: absolute;\n visibility: hidden;\n padding: 5px;\n white-space: nowrap;\n\n font-family: verdana;\n font-size:14px;\n color:#000000;\n background-color: #f5f4ed;\n\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #808074;\n\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n\n z-index: 5;\n}\n");var mg=function(){function t(e,n){nU(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return rO(t,[{key:"setPosition",value:function(t,e){this.x=ag(t),this.y=ag(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=fr.xss(t)}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,o=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,s=0,a=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){var l=!1,h=!0;"flip"==this.overflowMethod&&(this.y-e<this.padding&&(h=!1),this.x+n>r-this.padding&&(l=!0)),s=l?this.x-n:this.x,a=h?this.y-e:this.y}else(a=this.y-e)+e+this.padding>o&&(a=o-e-this.padding),a<this.padding&&(a=this.padding),(s=this.x)+n+this.padding>r&&(s=r-n-this.padding),s<this.padding&&(s=this.padding);this.frame.style.left=s+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),my=og.every;il({target:"Array",proto:!0,forced:!sv("every")},{every:function(t){return my(this,t,arguments.length>1?arguments[1]:void 0)}});var mb=rN("Array").every,m_=Array.prototype,mw=X(function(t){var e=t.every;return t===m_||ef(m_,t)&&e===m_.every?mb:e});function mk(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];
30if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return mx(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return mx(t,void 0)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function mx(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}var mD=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r){nU(this,o);var s,a=sG({},{fitOnDoubleClick:!0},r,{editable:!1});if((s=n.call(this,t,e,a)).props={content:{width:0,height:0}},!t||void 0==t.uiItems)throw Error('Property "uiItems" missing in item '+t.id);return s.id=pi(),s.group=t.group,s._setupRange(),s.emitter=s.data.eventEmitter,s.range=s.data.range,s.attached=!1,s.isCluster=!0,s.data.isCluster=!0,s}return rO(o,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(t){this.detach(),this.data.uiItems=t,this._setupRange(),this.attach()}},{key:"isVisible",value:function(t){var e=this.data.end?this.data.end-this.data.start:0,n=this.width*t.getMillisecondsPerPixel(),o=Math.max(this.data.start.getTime()+e,this.data.start.getTime()+n);return this.data.start<t.end&&o>t.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(t){var e,n,o,r,s,a,l,h,u=[sm(e=this._createDomElement).call(e,this),sm(n=this._appendDomElement).call(n,this),sm(o=this._updateDirtyDomComponents).call(o,this),sm(r=function(){this.dirty&&(l=this._getDomComponentsSizes())}).call(r,this),sm(s=function(){if(this.dirty){var t;sm(t=this._updateDomComponentsSizes).call(t,this)(l)}}).call(s,this),sm(a=this._repaintDomAdditionals).call(a,this)];return t?u:(sx(u).call(u,function(t){h=t()}),h)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.parentNode&&t.box.parentNode.removeChild(t.box),this.options.showStipes&&(t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=this.data.end?this.conversion.toScreen(this.data.end):0;if(e)this.repositionXWithRanges(t,e);else{var n=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,n)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(t,e))}},{key:"repositionStype",value:function(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block";var n=this.dom.line.offsetWidth,o=this.dom.dot.offsetWidth;if(e){var r=n+t+(e-t)/2,s=r-o/2,a=this.options.rtl?-1*r:r,l=this.options.rtl?-1*s:s;this.dom.line.style.transform="translateX(".concat(a,"px)"),this.dom.dot.style.transform="translateX(".concat(l,"px)")}else{var h=this.options.rtl?-1*t:t,u=this.options.rtl?-((t-o/2)*1):t-o/2;this.dom.line.style.transform="translateX(".concat(h,"px)"),this.dom.dot.style.transform="translateX(".concat(u,"px)")}}},{key:"repositionXWithoutRanges",value:function(t,e){"right"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width,this.dom.box.style.left=this.left+"px"):"left"==e?this.options.rtl?(this.right=t,this.dom.box.style.right=this.right+"px"):(this.left=t,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(t,e){var n=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(n,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=n+"px"}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;if("top"==t?e.style.top=(this.top||0)+"px":e.style.top=(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==t)this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var n=this.parent.itemSet.props.height,o=n-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=n-o+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var t,e,n=mk(this.data.uiItems);try{for(n.s();!(e=n.n()).done;
30)e.value.cluster=this}catch(t){n.e(t)}finally{n.f()}this.data.items=se(t=this.data.uiItems).call(t,function(t){return t.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var e,n=mk(this.data.uiItems);try{for(n.s();!(e=n.n()).done;){var o=e.value;delete o.cluster}}catch(t){n.e(t)}finally{n.f()}this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var t,e,n,o=se(t=this.data.uiItems).call(t,function(t){return{start:t.data.start.valueOf(),end:t.data.end?t.data.end.valueOf():t.data.start.valueOf()}});this.data.min=Math.min.apply(Math,rJ(se(o).call(o,function(t){return Math.min(t.start,t.end||t.start)}))),this.data.max=Math.max.apply(Math,rJ(se(o).call(o,function(t){return Math.max(t.start,t.end||t.start)})));var r=se(e=this.data.uiItems).call(e,function(t){return t.center}),s=dU(r).call(r,function(t,e){return t+e},0)/this.data.uiItems.length;cE(n=this.data.uiItems).call(n,function(t){return t.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)
30):(this.data.start=new Date(s),this.data.end=null)}},{key:"_getUiItems",value:function(){var t,e=this;return this.data.uiItems&&this.data.uiItems.length?s8(t=this.data.uiItems).call(t,function(t){return t.cluster===e}):[]}},{key:"_createDomElement",value:function(){if(!this.dom){if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick){var t;this.dom.box.ondblclick=sm(t=o.prototype._onDoubleClick).call(t,this)}this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}var e=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!e)throw Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!e)throw Error("Cannot redraw item: parent has no axis container element");n.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+t,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var t={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(t.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},t.line={width:this.dom.line.offsetWidth}),t}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:"_fit",value:function(){if(this.emitter){var t=this._getFitRange(),e=t.fitStart,n=t.fitEnd,o={start:new Date(e),end:new Date(n),animation:!0};this.emitter.emit("fit",o)}}},{key:"_getItemData",value:function(){return this.data}}]),o}(mc);function mS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}mD.prototype.baseClassName="vis-item vis-range vis-cluster";var mC={UNGROUPED:"__ungrouped__"},mT=function(){function t(e){nU(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return rO(t,[{key:"createClusterItem",value:function(t,e,n){return new mD(t,e,n)}},{key:"setItems",value:function(t,e){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,e&&e.applyOnChangedLevel&&(this.applyOnChangedLevel=e.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(t,e,n){var o="boolean"==typeof n?{}:n,r=o.maxItems,s=o.clusterCriteria;s||(s=function(){return!0}),r=r||1;var a=-1,l=0;if(e>0){if(e>=1)return[];l=Math.abs(Math.pow(2,a=Math.abs(Math.round(Math.log(100/e)/Math.log(2)))))}if(this.dataChanged){var h=a!=this.cacheLevel;(!this.applyOnChangedLevel||h)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=a;var u=this.cache[a];if(!u){for(var d in u=[],this.groups)if(this.groups.hasOwnProperty(d))for(var c=this.groups[d],p=c.length,f=0;f<p;){for(var m=c[f],v=1,g=f-1;g>=0&&m.center-c[g].center<l/2;)!c[g].cluster&&s(m.data,c[g].data)&&v++,g--;for(var y=f+1;y<c.length&&c[y].center-m.center<l/2;)s(m.data,c[y].data)&&v++,y++;for(var b=u.length-1;b>=0&&m.center-u[b].center<l;)m.group==u[b].group&&s(m.data,u[b].data)&&v++,b--;if(v>r){for(var _=v-r+1,w=[],k=f;w.length<_&&k<c.length;)s(c[f].data,c[k].data)&&w.push(c[k]),k++;var x=this.itemSet.getGroupId(m.data),D=this.itemSet.groups[x]||this.itemSet.groups[mC.UNGROUPED],S=this._getClusterForItems(w,D,t,n);u.push(S),f+=_}else delete m.cluster,f+=1}this.cache[a]=u}return u}},{key:"_filterData",value:function(){var t,e={};this.groups=e;for(var n=0,o=an(this.items);n<o.length;n++){var r=o[n],s=r.parent?r.parent.groupId:"",a=e[s];a||(a=[],e[s]=a),a.push(r),r.data.start&&(r.data.end?r.center=(r.data.start.valueOf()+r.data.end.valueOf())/2:r.center=r.data.start.valueOf())}for(var l in e)e.hasOwnProperty(l)&&cC(t=e[l]).call(t,function(t,e){return t.center-e.center});this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,e,n,o){var r=se(s=n||[]).call(s,function(t){var e;
30return{cluster:t,itemsIds:new cr(se(e=t.data.uiItems).call(e,function(t){return t.id}))}});if(r.length){var s,a,l,h=function(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return mS(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return mS(t,void 0)}}(t))){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}(r);try{for(h.s();!(l=h.n()).done&&!function(){var e=l.value;if(e.itemsIds.size===t.length&&mw(t).call(t,function(t){return e.itemsIds.has(t.id)}))return a=e.cluster,1}(););}catch(t){h.e(t)}finally{h.f()}}if(a)return a.setUiItems(t),a.group!==e&&(a.group&&a.group.remove(a),e&&(e.add(a),a.group=e)),a;var u=o.titleTemplate||"",d={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},c=u.replace(/{count}/,t.length),p='<div title="'+c+'">'+t.length+"</div>",f=sG({},o,this.itemSet.options),m={content:p,title:c,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return a=this.createClusterItem(m,d,f),e&&(e.add(a),a.group=e),a.attach(),a}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}();function mM(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return mO(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return mO(t,void 0)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function mO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}fA('\n.vis-itemset {\n position: relative;\n padding: 0;\n margin: 0;\n\n box-sizing: border-box;\n}\n\n.vis-itemset .vis-background,\n.vis-itemset .vis-foreground {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n.vis-axis {\n position: absolute;\n width: 100%;\n height: 0;\n left: 0;\n z-index: 1;\n}\n\n.vis-foreground .vis-group {\n position: relative;\n box-sizing: border-box;\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-foreground .vis-group:last-child {\n border-bottom: none;\n}\n\n.vis-nesting-group {\n cursor: pointer;\n}\n\n.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {\n background: #f5f5f5;\n}\n.vis-label.vis-nested-group.vis-group-level-0 {\n background-color: #ffffff;\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-left: 0;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-right: 0;\n}\n.vis-label.vis-nested-group.vis-group-level-1 {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-left: 15px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-right: 15px;\n}\n.vis-label.vis-nested-group.vis-group-level-2 {\n background-color: rgba(0, 0, 0, 0.1);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-left: 30px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-right: 30px;\n}\n.vis-label.vis-nested-group.vis-group-level-3 {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-left: 45px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-right: 45px;\n}\n.vis-label.vis-nested-group.vis-group-level-4 {\n background-color: rgba(0, 0, 0, 0.2);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-left: 60px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-right: 60px;\n}
30\n.vis-label.vis-nested-group.vis-group-level-5 {\n background-color: rgba(0, 0, 0, 0.25);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-left: 75px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-right: 75px;\n}\n.vis-label.vis-nested-group.vis-group-level-6 {\n background-color: rgba(0, 0, 0, 0.3);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-left: 90px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-right: 90px;\n}\n.vis-label.vis-nested-group.vis-group-level-7 {\n background-color: rgba(0, 0, 0, 0.35);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-left: 105px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-right: 105px;\n}\n.vis-label.vis-nested-group.vis-group-level-8 {\n background-color: rgba(0, 0, 0, 0.4);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-left: 120px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-right: 120px;\n}\n.vis-label.vis-nested-group.vis-group-level-9 {\n background-color: rgba(0, 0, 0, 0.45);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-left: 135px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-right: 135px;\n}\n/* default takes over beginning with level-10 (thats why we add .vis-nested-group\n to the selectors above, to have higher specifity than these rules for the defaults) */\n.vis-label.vis-nested-group {\n background-color: rgba(0, 0, 0, 0.5);\n}\n.vis-ltr .vis-label.vis-nested-group .vis-inner {\n padding-left: 150px;\n}\n.vis-rtl .vis-label.vis-nested-group .vis-inner {\n padding-right: 150px;\n}\n\n.vis-group-level-unknown-but-gte1 {\n border: 1px solid red;\n}\n\n/* expanded/collapsed indicators */\n.vis-label.vis-nesting-group:before,\n.vis-label.vis-nesting-group:before {\n display: inline-block;\n width: 15px;\n}\n.vis-label.vis-nesting-group.expanded:before {\n content: "\\25BC";\n}\n.vis-label.vis-nesting-group.collapsed:before {\n content: "\\25B6";\n}\n.vis-rtl .vis-label.vis-nesting-group.collapsed:before {\n content: "\\25C0";\n}\n/* compensate missing expanded/collapsed indicator, but only at levels > 0 */\n.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-left: 15px;\n}\n.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-right: 15px;\n}\n\n.vis-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 10;\n}'),fA("\n.vis-labelset {\n position: relative;\n\n overflow: hidden;\n\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n color: #4d4d4d;\n\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-labelset .vis-label.draggable {\n cursor: pointer;\n}\n\n.vis-group-is-dragging {\n background: rgba(0, 0, 0, .1);\n}\n\n.vis-labelset .vis-label:last-child {\n border-bottom: none;\n}\n\n.vis-labelset .vis-label .vis-inner {\n display: inline-block;\n padding: 5px;\n}\n\n.vis-labelset .vis-label .vis-inner.vis-hidden {\n padding: 0;\n}\n");var mE="__ungrouped__",mP="__background__",mI=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e){nU(this,o),(r=n.call(this)).body=t,r.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(t,e,n){var o=e.order;e.order=t.order,t.order=o},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:fI.snap,onDropObjectOnItem:function(t,e,n){n(e)},onAdd:function(t,e){e(t)},onUpdate:function(t,e){e(t)},onMove:function(t,e){e(t)},onRemove:function(t,e){e(t)},onMoving:function(t,e){e(t)},onAddGroup:function(t,e){e(t)},onMoveGroup:function(t,e){e(t)},onRemoveGroup:function(t,e){e(t)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},r.options=fr.extend({}
30,r.defaultOptions),r.options.rtl=e.rtl,r.options.onTimeout=e.onTimeout,r.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},r.dom={},r.props={},r.hammer=null;var r,s=hX(r);return r.itemsData=null,r.groupsData=null,r.itemsSettingTime=null,r.initialItemSetDrawn=!1,r.userContinueNotBail=null,r.sequentialSelection=!1,r.itemListeners={add:function(t,e,n){s._onAdd(e.items),s.options.cluster&&s.clusterGenerator.setItems(s.items,{applyOnChangedLevel:!1}),s.redraw()},update:function(t,e,n){s._onUpdate(e.items),s.options.cluster&&s.clusterGenerator.setItems(s.items,{applyOnChangedLevel:!1}),s.redraw()},remove:function(t,e,n){s._onRemove(e.items),s.options.cluster&&s.clusterGenerator.setItems(s.items,{applyOnChangedLevel:!1}),s.redraw()}},r.groupListeners={add:function(t,e,n){if(s._onAddGroups(e.items),s.groupsData&&s.groupsData.length>0){var o,r=s.groupsData.getDataSet();sx(o=r.get()).call(o,function(t){if(t.nestedGroups){!1!=t.showNested&&(t.showNested=!0);var e,o=[];sx(e=t.nestedGroups).call(e,function(e){var n=r.get(e);n&&(n.nestedInGroup=t.id,!1==t.showNested&&(n.visible=!1),o=r2(o).call(o,n))}),r.update(o,n)}})}},update:function(t,e,n){s._onUpdateGroups(e.items)},remove:function(t,e,n){s._onRemoveGroups(e.items)}},r.items={},r.groups={},r.groupIds=[],r.selection=[],r.popup=null,r.popupTimer=null,r.touchParams={},r.groupTouchParams={group:null,isDragging:!1},r._create(),r.setOptions(e),r.clusters=[],r}return rO(o,[{key:"_create",value:function(){var t,e,n,o,r,s,a,l,h,u,d,c,p,f,m,v=this,g=document.createElement("div");g.className="vis-itemset",g["vis-itemset"]=this,this.dom.frame=g;var y=document.createElement("div");y.className="vis-background",g.appendChild(y),this.dom.background=y;var b=document.createElement("div");b.className="vis-foreground",g.appendChild(b),this.dom.foreground=b;var _=document.createElement("div");_.className="vis-axis",this.dom.axis=_;var w=document.createElement("div");w.className="vis-labelset",this.dom.labelSet=w,this._updateUngrouped();var k=new mu(mP,null,this);k.show(),this.groups[mP]=k,this.hammer=new W(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(t){t.isFirst&&v._onTouch(t)}),this.hammer.on("panstart",sm(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",sm(e=this._onDrag).call(e,this)),this.hammer.on("panend",sm(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:W.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",sm(o=this._onSelectItem).call(o,this)),this.hammer.on("press",sm(r=this._onMultiSelectItem).call(r,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",sm(s=this._onAddItem).call(s,this)),this.options.rtl?this.groupHammer=new W(this.body.dom.rightContainer):this.groupHammer=new W(this.body.dom.leftContainer),this.groupHammer.on("tap",sm(a=this._onGroupClick).call(a,this)),this.groupHammer.on("panstart",sm(l=this._onGroupDragStart).call(l,this)),this.groupHammer.on("panmove",sm(h=this._onGroupDrag).call(h,this)),this.groupHammer.on("panend",sm(u=this._onGroupDragEnd).call(u,this)),this.groupHammer.get("pan").set({threshold:5,direction:W.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",sm(d=this._onMouseOver).call(d,this)),this.body.dom.centerContainer.addEventListener("mouseout",sm(c=this._onMouseOut).call(c,this)),this.body.dom.centerContainer.addEventListener("mousemove",sm(p=this._onMouseMove).call(p,this)),this.body.dom.centerContainer.addEventListener("contextmenu",sm(f=this._onDragEnd).call(f,this)),this.body.dom.centerContainer.addEventListener("mousewheel",sm(m=this._onMouseWheel).call(m,this)),this.show()}},{key:"setOptions",value:function(t){var e,n,o=this;t&&(fr.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"!==rS(t.itemsAlwaysDraggable)||(fr.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in t&&"boolean"==typeof t.sequentialSelection&&(this.options.sequentialSelection=t.sequentialSelection),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===rS(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"==typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===rS(t.margin)&&(fr.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"==typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===rS(t.margin.item)&&fr.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),sx(e=["locale","locales"]).call(e,function(e){e in t&&(o.options[e]=t[e])}),"editable"in t&&("boolean"==typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===rS(t.editable)&&fr.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"==typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===rS(t.groupEditable)&&fr.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable)),sx(n=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(n,function(e){var n,r=t[e];if(r){if("function"!=typeof r)throw Error(r2(n="option ".concat(e," must be a function ")).call(n,e,"(item, callback)"));o.options[e]=r}}),t.cluster?(sG(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new mT(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}
30),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty())}},{key:"markDirty",value:function(t){this.groupIds=[],t&&(t.refreshItems&&sx(fr).call(fr,this.items,function(t){t.dirty=!0,t.displayed&&t.redraw()}),t.restackGroups&&sx(fr).call(fr,this.groups,function(t,e){e!==mP&&(t.stackDirty=!0)}))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(t){if(this.clearPopupTimer(),t){var e=this.options.tooltip.delay||"number"==typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=aj(function(){t.show()},e)}}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(t){void 0==t&&(t=[]),r6(t)||(t=[t]);var e,n,o=mM(s8(e=this.selection).call(e,function(e){return -1===ax(t).call(t,e)}));try{for(o.s();!(n=o.n()).done;){var r=n.value,s=this.getItemById(r);s&&s.unselect()}}catch(t){o.e(t)}finally{o.f()}this.selection=rJ(t);var a,l=mM(t);try{for(l.s();!(a=l.n()).done;){var h=a.value,u=this.getItemById(h);u&&u.select()}}catch(t){l.e(t)}finally{l.f()}}},{key:"getSelection",value:function(){var t;return r2(t=this.selection).call(t,[])}},{key:"getVisibleItems",value:function(){var t=this.body.range.getRange();this.options.rtl?(o=this.body.util.toScreen(t.start),r=this.body.util.toScreen(t.end)):(r=this.body.util.toScreen(t.start),o=this.body.util.toScreen(t.end));var e=[];for(var n in this.groups)if(this.groups.hasOwnProperty(n)){var o,r,s,a=this.groups[n],l=mM(a.isVisible?a.visibleItems:[]);try{for(l.s();!(s=l.n()).done;){var h=s.value;this.options.rtl?h.right<r&&h.right+h.width>o&&e.push(h.id):h.left<o&&h.left+h.width>r&&e.push(h.id)}}catch(t){l.e(t)}finally{l.f()}}return e}},{key:"getItemsAtCurrentTime",value:function(t){this.options.rtl?(o=this.body.util.toScreen(t),r=this.body.util.toScreen(t)):(r=this.body.util.toScreen(t),o=this.body.util.toScreen(t));var e=[];for(var n in this.groups)if(this.groups.hasOwnProperty(n)){var o,r,s,a=this.groups[n],l=mM(a.isVisible?a.visibleItems:[]);try{for(l.s();!(s=l.n()).done;){var h=s.value;this.options.rtl?h.right<r&&h.right+h.width>o&&e.push(h.id):h.left<o&&h.left+h.width>r&&e.push(h.id)}}catch(t){l.e(t)}finally{l.f()}}return e}},{key:"getVisibleGroups",value:function(){var t=[];for(var e in this.groups)this.groups.hasOwnProperty(e)&&this.groups[e].isVisible&&t.push(e);return t}},{key:"getItemById",value:function(t){var e;
30return this.items[t]||f8(e=this.clusters).call(e,function(e){return e.id===t})}},{key:"_deselect",value:function(t){for(var e=this.selection,n=0,o=e.length;n<o;n++)if(e[n]==t){sR(e).call(e,n,1);break}}},{key:"redraw",value:function(){var t=this.options.margin,e=this.body.range,n=fr.option.asSize,o=this.options,r=o.orientation.item,s=!1,a=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,a.className="vis-itemset",this.options.cluster&&this._clusterItems(),s=this._orderGroups()||s;var l=e.end-e.start,h=l!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,u=e.start!=this.lastRangeStart,d=o.stack!=this.lastStack,c=o.stackSubgroups!=this.lastStackSubgroups,p=h||u||d||c;this.lastVisibleInterval=l,this.lastRangeStart=e.start,this.lastStack=o.stack,this.lastStackSubgroups=o.stackSubgroups,this.props.lastWidth=this.props.width;var f=this._firstGroup(),m={item:t.item,axis:t.axis},v={item:t.item,axis:t.item.vertical/2},g=0,y=t.axis+t.item.vertical;this.groups[mP].redraw(e,v,p);var b={},_=0;if(sx(fr).call(fr,this.groups,function(t,n){n!==mP&&(b[n]=t.redraw(e,t==f?m:v,p,!0),_=b[n].length)}),_>0){for(var w={},k=function(t){sx(fr).call(fr,b,function(e,n){w[n]=e[t]()})},x=0;x<_;x++)k(x);sx(fr).call(fr,this.groups,function(t,e){e!==mP&&(s=w[e]||s,g+=t.height)}),g=Math.max(g,y)}return g=Math.max(g,y),a.style.height=n(g),this.props.width=a.offsetWidth,this.props.height=g,this.dom.axis.style.top=n("top"==r?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,s=this._isResized()||s}},{key:"_firstGroup",value:function(){var t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t];return this.groups[e]||this.groups[mE]||null}},{key:"_updateUngrouped",value:function(){var t,e,n=this.groups[mE];if(this.groupsData){if(n){for(e in n.dispose(),delete this.groups[mE],this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var o=this.getGroupId(t.data),r=this.groups[o];r&&r.add(t)||t.hide()}}}else if(!n){for(e in n=new mh(null,null,this),this.groups[mE]=n,this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],n.add(t));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(t){this.itemsSettingTime=new Date;var e,n=this,o=this.itemsData;if(t){if(p6(t))this.itemsData=fe(t);else throw TypeError("Data must implement the interface of DataSet or DataView")}else this.itemsData=null;if(o&&(sx(fr).call(fr,this.itemListeners,function(t,e){o.off(e,t)}),o.dispose(),e=o.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;sx(fr).call(fr,this.itemListeners,function(t,e){n.itemsData.on(e,t,r)}),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return null!=this.itemsData?this.itemsData.rawDS:null}},{key:"setGroups",value:function(t){var e=this;if(this.groupsData&&(sx(fr).call(fr,this.groupListeners,function(t,n){e.groupsData.off(n,t)}),n=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(n)),t){if(p6(t))this.groupsData=t;else throw TypeError("Data must implement the interface of DataSet or DataView")}else this.groupsData=null;if(this.groupsData){var n,o,r=this.groupsData.getDataSet();sx(o=r.get()).call(o,function(t){if(t.nestedGroups){var e;sx(e=t.nestedGroups).call(e,function(e){var n=r.get(e);n.nestedInGroup=t.id,!1==t.showNested&&(n.visible=!1),r.update(n)})}});var s=this.id;sx(fr).call(fr,this.groupListeners,function(t,n){e.groupsData.on(n,t,s)}),n=this.groupsData.getIds(),this._onAddGroups(n)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(t){var e=this,n=this.itemsData.get(t);n&&this.options.onRemove(n,function(n){n&&e.itemsData.remove(t)})}},{key:"_getType",value:function(t){return t.type||this.options.type||(t.end?"range":"box")}},{key:"getGroupId",value:function(t){return"background"==this._getType(t)&&void 0==t.group?mP:this.groupsData?t.group:mE}},{key:"_onUpdate",value:function(t){var e=this,n=this;sx(t).call(t,function(t){var r,s=n.itemsData.get(t),a=n.items[t],l=s?n._getType(s):null,h=o.types[l];
30if(a&&(h&&a instanceof h?n._updateItem(a,s):(r=a.selected,n._removeItem(a),a=null)),!a&&s){if(h)(a=new h(s,n.conversion,n.options)).id=t,n._addItem(a),r&&(e.selection.push(t),a.select());else throw TypeError('Unknown item type "'.concat(l,'"'))}}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(t){var e=0,n=this;sx(t).call(t,function(t){var o=n.items[t];o&&(e++,n._removeItem(o))}),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){sx(fr).call(fr,this.groups,function(t){t.order()})}},{key:"_onUpdateGroups",value:function(t){this._onAddGroups(t)}},{key:"_onAddGroups",value:function(t){var e=this;sx(t).call(t,function(t){var n=e.groupsData.get(t),o=e.groups[t];if(o)o.setData(n);else{if(t==mE||t==mP)throw Error("Illegal group id. ".concat(t," is a reserved id."));var r=aM(e.options);for(var s in fr.extend(r,{height:null}),o=new mh(t,n,e),e.groups[t]=o,e.items)if(e.items.hasOwnProperty(s)){var a=e.items[s];a.data.group==t&&o.add(a)}o.order(),o.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(t){var e=this;sx(t).call(t,function(t){var n=e.groups[t];n&&(n.dispose(),delete e.groups[t])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(!this.groupsData)return!1;var t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);var e=!fr.equalArray(t,this.groupIds);if(e){var n=this.groups;sx(t).call(t,function(t){n[t].hide()}),sx(t).call(t,function(t){n[t].show()}),this.groupIds=t}return e}},{key:"_orderNestedGroups",value:function(t){var e=this;return function t(e,n){var o=[];return sx(n).call(n,function(n){if(o.push(n),e.groupsData.get(n).nestedGroups){var r,s=se(r=e.groupsData.get({filter:function(t){return t.nestedInGroup==n},order:e.options.groupOrder})).call(r,function(t){return t.id});o=r2(o).call(o,t(e,s))}}),o}(this,s8(t).call(t,function(t){return!e.groupsData.get(t).nestedInGroup}))}},{key:"_addItem",value:function(t){this.items[t.id]=t;var e=this.getGroupId(t.data),n=this.groups[e];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,n&&n.add(t)}},{key:"_updateItem",value:function(t,e){t.setData(e);var n=this.getGroupId(t.data),o=this.groups[n];o?o&&o.data&&o.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}},{key:"_removeItem",value:function(t){t.hide(),delete this.items[t.id];var e,n,o=ax(e=this.selection).call(e,t.id);-1!=o&&sR(n=this.selection).call(n,o,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(t){for(var e=[],n=0;n<t.length;n++)t[n]instanceof mm&&e.push(t[n]);return e}},{key:"_onTouch",value:function(t){this.touchParams.item=this.itemFromTarget(t),this.touchParams.dragLeftItem=t.target.dragLeftItem||!1,this.touchParams.dragRightItem=t.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(t){for(var e=0;e<this.groupIds.length;e++)if(t==this.groupIds[e])return e}},{key:"_onDragStart",value:function(t){var e,n=this;if(!this.touchParams.itemIsDragging){var o=this.touchParams.item||null,r=this;if(o&&(o.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||null!=o.editable&&!o.editable.updateTime&&!o.editable.updateGroup&&!this.options.editable.overrideItems)return;var s=this.touchParams.dragLeftItem,a=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=o,s)e={item:s,initialX:t.center.x,dragLeft:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[e];else if(a)e={item:a,initialX:t.center.x,dragRight:!0,data:this._cloneItemData(o.data)},this.touchParams.itemProps=[e];else if(this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey))this._onDragStartAddItem(t);else{this.groupIds.length<1&&this.redraw();var l=this._getGroupIndex(o.data.group),h=this.options.itemsAlwaysDraggable.item&&!o.selected?[o.id]:this.getSelection();this.touchParams.itemProps=se(h).call(h,function(e){var o=r.items[e],s=r._getGroupIndex(o.data.group);return{item:o,initialX:t.center.x,groupOffset:l-s,data:n._cloneItemData(o.data)}})}t.stopPropagation()}else this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey)&&this._onDragStartAddItem(t)}}},{key:"_onDragStartAddItem",value:function(t){var e=this.options.snap||null,n=this.dom.frame.getBoundingClientRect(),o=this.options.rtl?n.right-t.center.x+10:t.center.x-n.left-10,r=this.body.util.toTime(o),s=this.body.util.getScale(),a=this.body.util.getStep(),l=e?e(r,s,a):r,h={type:"range",start:l,end:l,content:"new item"},u=pi();h[this.itemsData.idProp]=u;var d=this.groupFromTarget(t);d&&(h.group=d.groupId);var c=new mm(h,this.conversion,this.options);c.id=u,c.data=this._cloneItemData(h),this._addItem(c),this.touchParams.selectedItem=c;var p={item:c,initialX:t.center.x,data:c.data};this.options.rtl?p.dragLeft=!0:p.dragRight=!0,this.touchParams.itemProps=[p],t.stopPropagation()}},{key:"_onDrag",value:function(t){var e=this;if(null!=this.popup&&this.options.showTooltips&&!this.popup.hidden){var n=this.body.dom.centerContainer,o=n.getBoundingClientRect();this.popup.setPosition(t.center.x-o.left+n.offsetLeft,t.center.y-o.top+n.offsetTop),this.popup.show()}if(this.touchParams.itemProps){t.stopPropagation();var r,s=this,a=this.options.snap||null,l=this.body.dom.root.offsetLeft,h=this.options.rtl?l+this.body.domProps.right.width:l+this.body.domProps.left.width,u=this.body.util.getScale(),d=this.body.util.getStep(),c=this.touchParams.selectedItem,p=(this.options.editable.overrideItems||null==c.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=c.editable&&c.editable.updateGroup,f=null;if(p&&c&&void 0!=c.data.group){var m=s.groupFromTarget(t);m&&(f=this._getGroupIndex(m.groupId))}sx(r=this.touchParams.itemProps).call(r,function(n){var o,r,l,m,v=s.body.util.toTime(t.center.x-h),g=s.body.util.toTime(n.initialX-h);o=e.options.rtl?-(v-g):v-g;var y=e._cloneItemData(n.item.data);if(null==n.item.editable||n.item.editable.updateTime||n.item.editable.updateGroup||s.options.editable.overrideItems){if((e.options.editable.overrideItems||null==c.editable)&&e.options.editable.updateTime||!e.options.editable.overrideItems&&null!=c.editable&&c.editable.updateTime){if(n.dragLeft)e.options.rtl?void 0!=y.end&&(m=new Date(fr.convert(n.data.end,"Date").valueOf()+o),y.end=a?a(m,u,d):m):void 0!=y.start&&(l=new Date((r=fr.convert(n.data.start,"Date")).valueOf()+o),y.start=a?a(l,u,d):l);else if(n.dragRight)e.options.rtl?void 0!=y.start&&(l=new Date((r=fr.convert(n.data.start,"Date")).valueOf()+o),y.start=a?a(l,u,d):l):void 0!=y.end&&(m=new Date(fr.convert(n.data.end,"Date").valueOf()+o),y.end=a?a(m,u,d):m);else if(void 0!=y.start){if(l=new Date((r=fr.convert(n.data.start,"Date").valueOf())+o),void 0!=y.end){var b=fr.convert(n.data.end,"Date").valueOf()-r.valueOf();y.start=a?a(l,u,d):l,y.end=new Date(y.start.valueOf()+b)}else y.start=a?a(l,u,d):l}}if(p&&!n.dragLeft&&!n.dragRight&&null!=f&&void 0!=y.group){var _=f-n.groupOffset;_=Math.max(0,_),_=Math.min(s.groupIds.length-1,_),y.group=s.groupIds[_]}y=e._cloneItemData(y),s.options.onMoving(y,function(t){t&&n.item.setData(e._cloneItemData(t,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(t,e){var n=this.groups[e];if(n&&n.groupId!=t.data.group){var o=t.parent;o.remove(t),o.order(),t.data.group=n.groupId,n.add(t),n.order()}}},{key:"_onDragEnd",value:function(t){var e=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){t.stopPropagation();var n=this,o=this.touchParams.itemProps;this.touchParams.itemProps=null,sx(o).call(o,function(t){var o=t.item.id;if(null!=n.itemsData.get(o)){var r=e._cloneItemData(t.item.data);n.options.onMove(r,function(r){r?(r[e.itemsData.idProp]=o,e.itemsData.update(r)):(t.item.setData(t.data),n.body.emitter.emit("_change"))})}else n.options.onAdd(t.item.data,function(e){n._removeItem(t.item),e&&n.itemsData.add(e),n.body.emitter.emit("_change")})})}}},{key:"_onGroupClick",value:function(t){var e=this,n=this.groupFromTarget(t);aj(function(){e.toggleGroupShowNested(n)},1)}},{key:"toggleGroupShowNested",value:function(t){var e,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&t.nestedGroups){var r=this.groupsData.getDataSet();void 0!=o?t.showNested=!!o:t.showNested=!t.showNested;var s=r.get(t.groupId);s.showNested=t.showNested;for(var a=t.nestedGroups,l=a;l.length>0;){var h=l;l=[];for(var u=0;u<h.length;u++){var d=r.get(h[u]);d.nestedGroups&&(l=r2(l).call(l,d.nestedGroups))}l.length>0&&(a=r2(a).call(a,l))}if(s.showNested){for(var c=r.get(s.nestedGroups),p=0;p<c.length;p++){var f=c[p];f.nestedGroups&&f.nestedGroups.length>0&&(void 0==f.showNested||!0==f.showNested)&&c.push.apply(c,rJ(r.get(f.nestedGroups)))}e=se(c).call(c,function(t){return void 0==t.visible&&(t.visible=!0),t.visible=!!s.showNested,t})}else e=se(n=r.get(a)).call(n,function(t){return void 0==t.visible&&(t.visible=!0),t.visible=!!s.showNested,t});r.update(r2(e).call(e,s)),s.showNested?(fr.removeClassName(t.dom.label,"collapsed"),fr.addClassName(t.dom.label,"expanded")):(fr.removeClassName(t.dom.label,"expanded"),fr.addClassName(t.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(t){t.dom.label.classList.toggle("vis-group-is-dragging"),t.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(t){!this.groupTouchParams.isDragging&&this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData.getDataSet(),n=this.groupFromTarget(t);if(n&&n.height!=this.groupTouchParams.group.height){var o=n.top<this.groupTouchParams.group.top,r=t.center?t.center.y:t.clientY,s=n.dom.foreground.getBoundingClientRect(),a=this.groupTouchParams.group.height;if(o){if(s.top+a<r)return}else{var l=n.height;if(s.top+l-a>r)return}}if(n&&n!=this.groupTouchParams.group){var h=e.get(n.groupId),u=e.get(this.groupTouchParams.group.groupId);u&&h&&(this.options.groupOrderSwap(u,h,e),e.update(u),e.update(h));var d=e.getIds({order:this.options.groupOrder});if(!fr.equalArray(d,this.groupTouchParams.originalOrder))for(var c=this.groupTouchParams.originalOrder,p=this.groupTouchParams.group.groupId,f=Math.min(c.length,d.length),m=0,v=0,g=0;m<f;){for(;m+v<f&&m+g<f&&d[m+v]==c[m+g];)m++;if(m+v>=f)break;
30if(d[m+v]==p)v=1;else if(c[m+g]==p)g=1;else{var y=ax(d).call(d,c[m+g]),b=e.get(d[m+v]),_=e.get(c[m+g]);this.options.groupOrderSwap(b,_,e),e.update(b),e.update(_);var w=d[m+v];d[m+v]=c[m+g],d[y]=w,m++}}}}}},{key:"_onGroupDragEnd",value:function(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,n=e.groupTouchParams.group.groupId,o=e.groupsData.getDataSet(),r=fr.extend({},o.get(n));e.options.onMoveGroup(r,function(t){if(t)t[o._idProp]=n,o.update(t);else{var r=o.getIds({order:e.options.groupOrder});if(!fr.equalArray(r,e.groupTouchParams.originalOrder))for(var s=e.groupTouchParams.originalOrder,a=Math.min(s.length,r.length),l=0;l<a;){for(;l<a&&r[l]==s[l];)l++;if(l>=a)break;var h=ax(r).call(r,s[l]),u=o.get(r[l]),d=o.get(s[l]);e.options.groupOrderSwap(u,d,o),o.update(u),o.update(d);var c=r[l];r[l]=s[l],r[h]=c,l++}}}),e.body.emitter.emit("groupDragged",{groupId:n}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),n=t.srcEvent&&t.srcEvent.shiftKey;if(e||n){this._onMultiSelectItem(t);return}var o=this.getSelection(),r=this.itemFromTarget(t),s=r&&r.selectable?[r.id]:[];this.setSelection(s);var a=this.getSelection();(a.length>0||o.length>0)&&this.body.emitter.emit("select",{items:a,event:t})}}},{key:"_onMouseOver",value:function(t){var e=this.itemFromTarget(t);if(e){if(e===this.itemFromRelatedTarget(t))return;var n=e.getTitle();if(this.options.showTooltips&&n){null==this.popup&&(this.popup=new mg(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(n);var o=this.body.dom.centerContainer,r=o.getBoundingClientRect();this.popup.setPosition(t.clientX-r.left+o.offsetLeft,t.clientY-r.top+o.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}}},{key:"_onMouseOut",value:function(t){var e=this.itemFromTarget(t);if(e){if(e===this.itemFromRelatedTarget(t))return;this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t})}}},{key:"_onMouseMove",value:function(t){if(this.itemFromTarget(t)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var e=this.body.dom.centerContainer,n=e.getBoundingClientRect();this.popup.setPosition(t.clientX-n.left+e.offsetLeft,t.clientY-n.top+e.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}},{key:"_onUpdateItem",value:function(t){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var e=this;if(t){var n=e.itemsData.get(t.id);this.options.onUpdate(n,function(t){t&&e.itemsData.update(t)})}}}},{key:"_onDropObjectOnItem",value:function(t){var e=this.itemFromTarget(t),n=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(n,e)}},{key:"_onAddItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e,n,o=this,r=this.options.snap||null,s=this.dom.frame.getBoundingClientRect(),a=this.options.rtl?s.right-t.center.x:t.center.x-s.left,l=this.body.util.toTime(a),h=this.body.util.getScale(),u=this.body.util.getStep();"drop"==t.type?((n=JSON.parse(t.dataTransfer.getData("text"))).content=n.content?n.content:"new item",n.start=n.start?n.start:r?r(l,h,u):l,n.type=n.type||"box",n[this.itemsData.idProp]=n.id||pi(),"range"!=n.type||n.end||(e=this.body.util.toTime(a+this.props.width/5),n.end=r?r(e,h,u):e)):((n={start:r?r(l,h,u):l,content:"new item"})[this.itemsData.idProp]=pi(),"range"===this.options.type&&(e=this.body.util.toTime(a+this.props.width/5),n.end=r?r(e,h,u):e));var d=this.groupFromTarget(t);d&&(n.group=d.groupId),n=this._cloneItemData(n),this.options.onAdd(n,function(e){e&&(o.itemsData.add(e),"drop"==t.type&&o.setSelection([e.id]))})}}},{key:"_onMultiSelectItem",value:function(t){var e=this;if(this.options.selectable){var n=this.itemFromTarget(t);
30if(n){var r=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var s=this.itemsData.get(n.id).group,a=void 0;this.options.multiselectPerGroup&&r.length>0&&(a=this.itemsData.get(r[0]).group),this.options.multiselectPerGroup&&void 0!=a&&a!=s||r.push(n.id);var l=o._getItemRange(this.itemsData.get(r));if(!this.options.multiselectPerGroup||a==s){for(var h in r=[],this.items)if(this.items.hasOwnProperty(h)){var u=this.items[h],d=u.data.start,c=void 0!==u.data.end?u.data.end:d;!(d>=l.min)||!(c<=l.max)||this.options.multiselectPerGroup&&a!=this.itemsData.get(u.id).group||u instanceof mv||r.push(u.id)}}}else{var p=ax(r).call(r,n.id);-1==p?r.push(n.id):sR(r).call(r,p,1)}var f=s8(r).call(r,function(t){return e.getItemById(t).selectable});this.setSelection(f),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}}},{key:"itemFromElement",value:function(t){for(var e=t;e;){if(e.hasOwnProperty("vis-item"))return e["vis-item"];e=e.parentNode}return null}},{key:"itemFromTarget",value:function(t){return this.itemFromElement(t.target)}},{key:"itemFromRelatedTarget",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:"groupFromTarget",value:function(t){var e=t.center?t.center.y:t.clientY,n=this.groupIds;n.length<=0&&this.groupsData&&(n=this.groupsData.getIds({order:this.options.groupOrder}));for(var o=0;o<n.length;o++){var r=n[o],s=this.groups[r],a=s.dom.foreground,l=a.getBoundingClientRect();if(e>=l.top&&e<l.top+a.offsetHeight)return s;if("top"===this.options.orientation.item){if(o===this.groupIds.length-1&&e>l.top)return s}else if(0===o&&e<l.top+a.offset)return s}return null}},{key:"_cloneItemData",value:function(t,e){var n=fr.extend({},t);return e||(e=this.itemsData.type),void 0!=n.start&&(n.start=fr.convert(n.start,e&&e.start||"Date")),void 0!=n.end&&(n.end=fr.convert(n.end,e&&e.end||"Date")),n}},{key:"_clusterItems",value:function(){if(this.options.cluster){var t=this.body.range.conversion(this.body.domProps.center.width).scale,e=this.clusterGenerator.getClusters(this.cluster
30s,t,this.options.cluster);if(this.clusters!=e){if(this._detachAllClusters(),e){var n,o=mM(e);try{for(o.s();!(n=o.n()).done;)n.value.attach()}catch(t){o.e(t)}finally{o.f()}this.clusters=e}this._updateClusters(e)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t,e=mM(this.clusters);try{for(e.s();!(t=e.n()).done;)t.value.detach()}catch(t){e.e(t)}finally{e.f()}}}},{key:"_updateClusters",value:function(t){if(this.clusters&&this.clusters.length){var e,n,o=new cr(se(t).call(t,function(t){return t.id})),r=s8(e=this.clusters).call(e,function(t){return!o.has(t.id)}),s=!1,a=mM(r);try{for(a.s();!(n=a.n()).done;){var l,h,u=n.value,d=ax(l=this.selection).call(l,u.id);-1!==d&&(u.unselect(),sR(h=this.selection).call(h,d,1),s=!0)}}catch(t){a.e(t)}finally{a.f()}if(s){var c=this.getSelection();this.body.emitter.emit("select",{items:c,event:event})}}this.clusters=t||[]}}],[{key:"_getItemRange",value:function(t){var e=null,n=null;return sx(t).call(t,function(t){(null==n||t.start<n)&&(n=t.start),void 0!=t.end?(null==e||t.end>e)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)}),{min:n,max:e}}},{key:"itemSetFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("vis-itemset"))return e["vis-itemset"];e=e.parentNode}return null}}]),o}(fp);mI.types={background:mv,box:mp,range:mm,point:mf},mI.prototype._onAdd=mI.prototype._onUpdate;var mA=!1,mL="background: #FFeeee; color: #dd0000",mN=function(){function t(){nU(this,t)}return rO(t,null,[{key:"validate",value:function(e,n,o){mA=!1,U=n;var r=n;return void 0!==o&&(r=n[o]),t.parse(e,r,[]),mA}},{key:"parse",value:function(e,n,o){for(var r in e)e.hasOwnProperty(r)&&t.check(r,e,n,o)}},{key:"check",value:function(e,n,o,r){if(void 0===o[e]&&void 0===o.__any__){t.getSuggestion(e,o,r);return}var s=e,a=!0;void 0===o[e]&&void 0!==o.__any__&&(s="__any__",a="object"===t.getType(n[e]));var l=o[s];a&&void 0!==l.__type__&&(l=l.__type__),t.checkFields(e,n,o,s,l,r)}},{key:"checkFields",value:function(e,n,o,r,s,a){var l=function(n){console.log("%c"+n+t.printLocation(a,e),mL)},h=t.getType(n[e]),u=s[h];void 0!==u?"array"===t.getType(u)&&-1===ax(u).call(u,n[e])?(l('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),mA=!0):"object"===h&&"__any__"!==r&&(a=fr.copyAndExtendArray(a,e),t.parse(n[e],o[r],a)):void 0===s.any&&(l('Invalid type received for "'+e+'". Expected: '+t.print(si(s))+". Received ["+h+'] "'+n[e]+'"'),mA=!0)}},{key:"getType",value:function(t){var e=rS(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":r6(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,o){var r,s=t.findInOptions(e,n,o,!1),a=t.findInOptions(e,U,[],!0);r=void 0!==s.indexMatch?" in "+t.printLocation(s.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+'"?\n\n':a.distance<=4&&s.distance>a.distance?" in "+t.printLocation(s.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):s.distance<=8?'. Did you mean "'+s.closestMatch+'"?'+t.printLocation(s.path,e):". Did you mean one of these: "+t.print(si(n))+t.printLocation(o,e),console.log('%cUnknown option detected: "'+e+'"'+r,mL),mA=!0}},{key:"findInOptions",value:function(e,n,o){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,a="",l=[],h=e.toLowerCase(),u=void 0;for(var d in n){var c,p=void 0;if(void 0!==n[d].__type__&&!0===r){var f=t.findInOptions(e,n[d],fr.copyAndExtendArray(o,d));s>f.distance&&(a=f.closestMatch,l=f.path,s=f.distance,u=f.indexMatch)}else -1!==ax(c=d.toLowerCase()).call(c,h)&&(u=d),s>(p=t.levenshteinDistance(e,d))&&(a=d,l=fr.copyArray(o),s=p)}return{closestMatch:a,path:l,distance:s,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",o="\n\n"+n+"options = {\n",r=0;r<t.length;r++){for(var s=0;s<r+1;s++)o+=" ";o+=t[r]+": {\n"}for(var a=0;a<t.length+1;a++)o+=" ";o+=e+"\n";for(var l=0;l<t.length+1;l++){for(var h=0;h<t.length-l;h++)o+=" ";o+="}\n"}return o+"\n\n"}},{key:"print",value:function(t){return aO(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,o,r=[];for(n=0;n<=e.length;n++)r[n]=[n];for(o=0;o<=t.length;o++)r[0][o]=o;for(n=1;n<=e.length;n++)for(o=1;o<=t.length;o++)e.charAt(n-1)==t.charAt(o-1)?r[n][o]=r[n-1][o-1]:r[n][o]=Math.min(r[n-1][o-1]+1,Math.min(r[n][o-1]+1,r[n-1][o]+1));return r[e.length][t.length]}}]),t}
vendor: 6,455 bytes, line 30
30(),mF="string",mR="boolean",mj="number",mY="array",mH="date",mz="object",mG="moment",mB={configure:{enabled:{boolean:mR},filter:{boolean:mR,function:"function"},container:{dom:"dom"},__type__:{object:mz,boolean:mR,function:"function"}},align:{string:mF},alignCurrentTime:{string:mF,undefined:"undefined"},rtl:{boolean:mR,undefined:"undefined"},rollingMode:{follow:{boolean:mR},offset:{number:mj,undefined:"undefined"},__type__:{object:mz}},onTimeout:{timeoutMs:{number:mj},callback:{function:"function"},__type__:{object:mz}},verticalScroll:{boolean:mR,undefined:"undefined"},horizontalScroll:{boolean:mR,undefined:"undefined"},autoResize:{boolean:mR},throttleRedraw:{number:mj},clickToUse:{boolean:mR},dataAttributes:{string:mF,array:mY},editable:{add:{boolean:mR,undefined:"undefined"},remove:{boolean:mR,undefined:"undefined"},updateGroup:{boolean:mR,undefined:"undefined"},updateTime:{boolean:mR,undefined:"undefined"},overrideItems:{boolean:mR,undefined:"undefined"},__type__:{boolean:mR,object:mz}},end:{number:mj,date:mH,string:mF,moment:mG},format:{minorLabels:{millisecond:{string:mF,undefined:"undefined"},second:{string:mF,undefined:"undefined"},minute:{string:mF,undefined:"undefined"},hour:{string:mF,undefined:"undefined"},weekday:{string:mF,undefined:"undefined"},day:{string:mF,undefined:"undefined"},week:{string:mF,undefined:"undefined"},month:{string:mF,undefined:"undefined"},year:{string:mF,undefined:"undefined"},__type__:{object:mz,function:"function"}},majorLabels:{millisecond:{string:mF,undefined:"undefined"},second:{string:mF,undefined:"undefined"},minute:{string:mF,undefined:"undefined"},hour:{string:mF,undefined:"undefined"},weekday:{string:mF,undefined:"undefined"},day:{string:mF,undefined:"undefined"},week:{string:mF,undefined:"undefined"},month:{string:mF,undefined:"undefined"},year:{string:mF,undefined:"undefined"},__type__:{object:mz,function:"function"}},__type__:{object:mz}},moment:{function:"function"},groupHeightMode:{string:mF},groupOrder:{string:mF,function:"function"},groupEditable:{add:{boolean:mR,undefined:"undefined"},remove:{boolean:mR,undefined:"undefined"},order:{boolean:mR,undefined:"undefined"},__type__:{boolean:mR,object:mz}},groupOrderSwap:{function:"function"},height:{string:mF,number:mj},hiddenDates:{start:{date:mH,number:mj,string:mF,moment:mG},end:{date:mH,number:mj,string:mF,moment:mG},repeat:{string:mF},__type__:{object:mz,array:mY}},itemsAlwaysDraggable:{item:{boolean:mR,undefined:"undefined"},range:{boolean:mR,undefined:"undefined"},__type__:{boolean:mR,object:mz}},limitSize:{boolean:mR},locale:{string:mF},locales:{__any__:{any:"any"},__type__:{object:mz}},longSelectPressTime:{number:mj},margin:{axis:{number:mj},item:{horizontal:{number:mj,undefined:"undefined"},vertical:{number:mj,undefined:"undefined"},__type__:{object:mz,number:mj}},__type__:{object:mz,number:mj}},max:{date:mH,number:mj,string:mF,moment:mG},maxHeight:{number:mj,string:mF},maxMinorChars:{number:mj},min:{date:mH,number:mj,string:mF,moment:mG},minHeight:{number:mj,string:mF},moveable:{boolean:mR},multiselect:{boolean:mR},multiselectPerGroup:{boolean:mR},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:mF,undefined:"undefined"},item:{string:mF,undefined:"undefined"},__type__:{string:mF,object:mz}},selectable:{boolean:mR},sequentialSelection:{boolean:mR},showCurrentTime:{boolean:mR},showMajorLabels:{boolean:mR},showMinorLabels:{boolean:mR},showWeekScale:{boolean:mR},stack:{boolean:mR},stackSubgroups:{boolean:mR},cluster:{maxItems:{number:mj,undefined:"undefined"},titleTemplate:{string:mF,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:mR,undefined:"undefined"},fitOnDoubleClick:{boolean:mR,undefined:"undefined"},__type__:{boolean:mR,object:mz}},snap:{function:"function",null:"null"},start:{date:mH,number:mj,string:mF,moment:mG},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:mF,function:"function"},showTooltips:{boolean:mR},tooltip:{followMouse:{boolean:mR},overflowMethod:{string:["cap","flip","none"]},delay:{number:mj},template:{function:"function"},__type__:{object:mz}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:mR,object:mz}},timeAxis:{scale:{string:mF,undefined:"undefined"},step:{number:mj,undefined:"undefined"},__type__:{object:mz}},type:{string:mF},width:{string:mF,number:mj},preferZoom:{boolean:mR},zoomable:{boolean:mR},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:mj},zoomMax:{number:mj},zoomMin:{number:mj},xss:{disabled:{boolean:mR},filterOptions:{__any__:{any:"any"},__type__:{object:mz}},__type__:{object:mz}},__type__:{object:mz}},mW={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}}
30,mU={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},mV=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;nU(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return rO(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"==typeof t)this.updateCallback=t;else throw Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(t){if("function"==typeof t)this.closeCallback=t;else throw Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(t){if("string"==typeof t)return mU[t]}},{key:"setColor",value:function(t){var e,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if("none"!==t){var o=this._isColorString(t);if(void 0!==o&&(t=o),!0===fr.isString(t)){if(!0===fr.isValidRGB(t)){var r=t.substr(4).substr(0,t.length-5).split(",");e={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===fr.isValidRGBA(t)){var s=t.substr(5).substr(0,t.length-6).split(",");e={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(!0===fr.isValidHex(t)){var a=fr.hexToRGB(t);e={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var l=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:l}}if(void 0===e)throw Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+aO(t));this._setColor(e,n)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!0===e&&(this.previousColor=fr.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",aj(function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}
30,0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];!0===e&&(this.initialColor=fr.extend({},t)),this.color=t;var n=fr.RGBToHSV(t.r,t.g,t.b),o=2*Math.PI,r=this.r*n.s,s=this.centerCoordinates.x+r*Math.sin(o*n.h),a=this.centerCoordinates.y+r*Math.cos(o*n.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=fr.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=fr.HSVToRGB(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=fr.RGBToHSV(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,o,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),az(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var e,n,o,r,s=document.createElement("DIV");s.style.color="red",s.style.fontWeight="bold",s.style.padding="10px",s.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(s)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.
30innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=sm(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=sm(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=sm(o=this._save).call(o,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=sm(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new W(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),fP(this.hammer,function(e){t._moveSelector(e)}),this.hammer.on("tap",function(e){t._moveSelector(e)}),this.hammer.on("panstart",function(e){t._moveSelector(e)}),this.hammer.on("panmove",function(e){t._moveSelector(e)}),this.hammer.on("panend",function(e){t._moveSelector(e)})}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t,e,n,o,r,s=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1)),s.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var a=this.colorPickerCanvas.clientWidth,l=this.colorPickerCanvas.clientHeight;s.clearRect(0,0,a,l),this.centerCoordinates={x:.5*a,y:.5*l},this.r=.49*a;var h=2*Math.PI/360,u=1/360,d=1/this.r;for(n=0;n<360;n++)for(o=0;o<this.r;o++)t=this.centerCoordinates.x+o*Math.sin(h*n),e=this.centerCoordinates.y+o*Math.cos(h*n),r=fr.HSVToRGB(n*u,o*d,1),s.fillStyle="rgb("+r.r+","+r.g+","+r.b+")",s.fillRect(t-.5,e-.5,2,2);s.strokeStyle="rgba(0,0,0,1)",s.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),s.stroke(),this.hueCircle=s.getImageData(0,0,a,l)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,o=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,s=.5*this.colorPickerDiv.clientWidth,a=n-s,l=o-r,h=Math.atan2(a,l),u=.98*Math.min(Math.sqrt(a*a+l*l),s),d=Math.cos(h)*u+r,c=Math.sin(h)*u+s;this.colorPickerSelector.style.top=d-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=c-.5*this.colorPickerSelector.clientWidth+"px";var p=h/(2*Math.PI);p=p<0?p+1:p;var f=u/this.r,m=fr.RGBToHSV(this.color.r,this.color.g,this.color.b);m.h=p,m.s=f;var v=fr.HSVToRGB(m.h,m.s,m.v);v.a=this.color.a,this.color=v,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();fA("div.vis-configuration {\n position:relative;\n display:block;\n float:left;\n font-size:12px;\n}\n\ndiv.vis-configuration-wrapper {\n display:block;\n width:700px;\n}
30\n\ndiv.vis-configuration-wrapper::after {\n clear: both;\n content: \"\";\n display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container{\n display:block;\n width:495px;\n background-color: #ffffff;\n border:2px solid #f7f8fa;\n border-radius:4px;\n margin-top:20px;\n left:10px;\n padding-left:5px;\n}\n\ndiv.vis-configuration.vis-config-button{\n display:block;\n width:495px;\n height:25px;\n vertical-align: middle;\n line-height:25px;\n background-color: #f7f8fa;\n border:2px solid #ceced0;\n border-radius:4px;\n margin-top:20px;\n left:10px;\n padding-left:5px;\n cursor: pointer;\n margin-bottom:30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover{\n background-color: #4588e6;\n border:2px solid #214373;\n color:#ffffff;\n}\n\ndiv.vis-configuration.vis-config-item{\n display:block;\n float:left;\n width:495px;\n height:25px;\n vertical-align: middle;\n line-height:25px;\n}\n\n\ndiv.vis-configuration.vis-config-item.vis-config-s2{\n left:10px;\n background-color: #f7f8fa;\n padding-left:5px;\n border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s3{\n left:20px;\n background-color: #e4e9f0;\n padding-left:5px;\n border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s4{\n left:30px;\n background-color: #cfd8e6;\n padding-left:5px;\n border-radius:3px;\n}\n\ndiv.vis-configuration.vis-config-header{\n font-size:18px;\n font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label{\n width:120px;\n height:25px;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3{\n width:110px;\n}\ndiv.vis-configuration.vis-config-label.vis-config-s4{\n width:100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock{\n top:1px;\n width:30px;\n height:19px;\n border:1px solid #444444;\n border-radius:2px;\n padding:0px;\n margin:0px;\n cursor:pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n left:-5px;\n}\n\n\ninput.vis-configuration.vis-config-rangeinput{\n position:relative;\n top:-5px;\n width:60px;\n /*height:13px;*/\n padding:1px;\n margin:0;\n pointer-events:none;\n}\n\ninput.vis-configuration.vis-config-range{\n /*removes default webkit styles*/\n -webkit-appearance: none;\n\n /*fix for FF unable to apply focus style bug */\n border: 0px solid white;\n background-color:rgba(0,0,0,0);\n\n /*required for proper track sizing in FF*/\n width: 300px;\n height:20px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n width: 300px;\n height: 5px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #14334b;\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: #3876c2; /* Old browsers */\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #3876c2 0%,#385380 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #3876c2 0%,#385380 100%); /* IE10+ */\n background: linear-gradient(to bottom, #3876c2 0%,#385380 100%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\n box-shadow: #111927 0px 0px 1px 0px;\n margin-top: -7px;\n}\ninput.vis-configuration.vis-config-range:focus {\n outline: none;\n}\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n background: #9d9d9d; /* Old browsers */\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #9d9d9d 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n width: 300px;\n height: 10px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), c
30olor-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n border: none;\n height: 16px;\n width: 16px;\n\n border-radius: 50%;\n background: #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring{\n outline: 1px solid white;\n outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n width: 300px;\n height: 5px;\n\n /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\n background: transparent;\n\n /*leave room for the larger thumb to overflow with a transparent border */\n border-color: transparent;\n border-width: 6px 0;\n\n /*remove default tick marks*/\n color: transparent;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n background: #777;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n background: #ddd;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n background: #888;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n background: #ccc;\n}\n\n.vis-configuration-popup {\n position: absolute;\n background: rgba(57, 76, 89, 0.85);\n border: 2px solid #f2faff;\n line-height:30px;\n height:30px;\n width:150px;\n text-align:center;\n color: #ffffff;\n font-size:14px;\n border-radius:4px;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n.vis-configuration-popup:after, .vis-configuration-popup:before {\n left: 100%;\n top: 50%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n border-color: rgba(136, 183, 213, 0);\n border-left-color: rgba(57, 76, 89, 0.85);\n border-width: 8px;\n margin-top: -8px;\n}\n.vis-configuration-popup:before {\n border-color: rgba(194, 225, 245, 0);\n border-left-color: #f2faff;\n border-width: 12px;\n margin-top: -12px;\n}");var mX=function(){function t(e,n,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;nU(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},fr.extend(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new mV(r),this.wrapper=void 0}return rO(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(r6(t))this.options.filter=t.join();else if("object"===rS(t)){if(null==t)throw TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==s8(t)&&(this.options.filter=s8(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===s8(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=s8(this.options),e=0,n=!1;for(var o in this.configureOptions)this.configureOptions.hasOwnProperty(o)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(o,[]))||this._handleObject(this.configureOptions[o],[o],!0):(!0===t||-1!==ax(t).call(t,o))&&(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++)if(void 0!==e[t[n]])e=e[t[n]];else{e=void 0;break}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return sx(o).call(o,function(t){e.appendChild(t)}),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerHTML=fr.xss(t),this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=document.createElement("div");return o.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n?o.innerHTML=fr.xss("<i><b>"+t+":</b></i>"):o.innerHTML=fr.xss(t+":"),o}},{key:"_makeDropdown",value:function(t,e,n){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==ax(t).call(t,e)&&(r=ax(t).call(t,e));for(var s=0;s<t.length;s++){var a=document.createElement("option");a.value=t[s],s===r&&(a.selected="selected"),a.innerHTML=t[s],o.appendChild(a)}var l=this;
30o.onchange=function(){l._update(this.value,n)};var h=this._makeLabel(n[n.length-1],n);this._makeItem(n,h,o)}},{key:"_makeRange",value:function(t,e,n){var o=t[0],r=t[1],s=t[2],a=t[3],l=document.createElement("input");l.className="vis-configuration vis-config-range";try{l.type="range",l.min=r,l.max=s}catch(t){}l.step=a;var h="",u=0;void 0!==e?(e<0&&1.2*e<r?(l.min=Math.ceil(1.2*e),u=l.min,h="range increased"):e/1.2<r&&(l.min=Math.ceil(e/1.2),u=l.min,h="range increased"),1.2*e>s&&1!==s&&(l.max=Math.ceil(1.2*e),u=l.max,h="range increased"),l.value=e):l.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=Number(l.value);var c=this;l.onchange=function(){d.value=this.value,c._update(Number(this.value),n)},l.oninput=function(){d.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,l,d);""!==h&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(h,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var o=document.createElement("div");o.id="vis-configuration-popup",o.className="vis-configuration-popup",o.innerHTML=fr.xss(t),o.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:o,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=aj(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=aj(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var o=document.createElement("input");o.type="checkbox",o.className="vis-configuration vis-config-checkbox",o.checked=t,void 0!==e&&(o.checked=e,e!==t&&("object"===rS(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var r=this;o.onchange=function(){r._update(this.checked,n)};var s=this._makeLabel(n[n.length-1],n);this._makeItem(n,s,o)}},{key:"_makeTextInput",value:function(t,e,n){var o=document.createElement("input");o.type="text",o.className="vis-configuration vis-config-text",o.value=e,e!==t&&this.changedOptions.push({path:n,value:e});var r=this;o.onchange=function(){r._update(this.value,n)};var s=this._makeLabel(n[n.length-1],n);this._makeItem(n,s,o)}},{key:"_makeColorField",value:function(t,e,n){var o=this,r=t[1],s=document.createElement("div");"none"!==(e=void 0===e?r:e)?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=e):s.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,s.onclick=function(){o._showColorPicker(e,s,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,s)}},{key:"_showColorPicker",value:function(t,e,n){var o=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(t){var r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,o._update(r,n)}),this.colorPicker.setCloseCallback(function(){e.onclick=function(){o._showColorPicker(t,e,n)}})}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,r=s8(this.options),s=!1;for(var a in t)if(t.hasOwnProperty(a)){o=!0;var l=t[a],h=fr.copyAndExtendArray(e,a);if("function"==typeof r&&!1===(o=r(a,e))&&!r6(l)&&"string"!=typeof l&&"boolean"!=typeof l&&l instanceof Object&&(this.allowCreation=!1,o=this._handleObject(l,h,!0),this.allowCreation=!1===n),!1!==o){s=!0;var u=this._getValue(h);if(r6(l))this._handleArray(l,u,h);else if("string"==typeof l)this._makeTextInput(l,u,h);else if("boolean"==typeof l)this._makeCheckbox(l,u,h);else if(l instanceof Object){var d=!0;if(-1!==ax(e).call(e,"physics")&&this.moduleOptions.physics.solver!==a&&(d=!1),!0===d){if(void 0!==l.enabled){var c=fr.copyAndExtendArray(h,"enabled"),p=this._getValue(c);if(!0===p){var f=this._makeLabel(a,h,!0);this._makeItem(h,f),s=this._handleObject(l,h)||s}else this._makeCheckbox(l,p,h)}else{var m=this._makeLabel(a,h,!0);this._makeItem(h,m),s=this._handleObject(l,h)||s}}}else console.error("dont know how to handle",l,a,h)}}return s}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n;t="false"!==(t="true"===t||t)&&t;for(var r=0;r<e.length;r++)"global"!==e[r]&&(void 0===o[e[r]]&&(o[e[r]]={}),r!==e.length-1?o=o[e[r]]:o[e[r]]=t);return n}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+aO(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),mq=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r,s){if(nU(this,o),(v=n.call(this)).initTime=new Date,v.itemsDone=!1,!(hX(v) instanceof o))throw SyntaxError("Constructor must be called with the new operator");if(!(r6(r)||p6(r))&&r instanceof Object){var a=s;s=r,r=a}s&&s.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var l=hX(v);if(v.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:pv},v.options=fr.deepExtend({},v.defaultOptions),s&&fr.setupXSSProtection(s.xss),v._create(t),!s||s&&void 0===s.rtl){v.dom.root.style.visibility="hidden";for(var h,u,d,c,p,f,m,v,g,y=v.dom.root;!g&&y;)g=window.getComputedStyle(y,null).direction,y=y.parentElement;v.options.rtl=g&&"rtl"==g.toLowerCase()}else v.options.rtl=s.rtl;s&&(s.rollingMode&&(v.options.rollingMode=s.rollingMode),s.onInitialDrawComplete&&(v.options.onInitialDrawComplete=s.onInitialDrawComplete),s.onTimeout&&(v.options.onT
30imeout=s.onTimeout),s.loadingScreenTemplate&&(v.options.loadingScreenTemplate=s.loadingScreenTemplate));var b=document.createElement("div");if(v.options.loadingScreenTemplate){var _,w=sm(_=v.options.loadingScreenTemplate).call(_,hX(v)),k=w(v.dom.loadingScreen);k instanceof Object&&!(k instanceof Element)?w(b):k instanceof Element?(b.innerHTML="",b.appendChild(k)):void 0!=k&&(b.innerHTML=fr.xss(k))}function x(t,e){l.hasListeners(t)&&l.emit(t,l.getEventProperties(e))}return v.dom.loadingScreen.appendChild(b),v.components=[],v.body={dom:v.dom,domProps:v.props,emitter:{on:sm(h=v.on).call(h,hX(v)),off:sm(u=v.off).call(u,hX(v)),emit:sm(d=v.emit).call(d,hX(v))},hiddenDates:[],util:{getScale:function(){return l.timeAxis.step.scale},getStep:function(){return l.timeAxis.step.step},toScreen:sm(c=l._toScreen).call(c,l),toGlobalScreen:sm(p=l._toGlobalScreen).call(p,l),toTime:sm(f=l._toTime).call(f,l),toGlobalTime:sm(m=l._toGlobalTime).call(m,l)}},v.range=new fT(v.body,v.options),v.components.push(v.range),v.body.range=v.range,v.timeAxis=new fL(v.body,v.options),v.timeAxis2=null,v.components.push(v.timeAxis),v.currentTime=new f0(v.body,v.options),v.components.push(v.currentTime),v.itemSet=new mI(v.body,v.options),v.components.push(v.itemSet),v.itemsData=null,v.groupsData=null,v.dom.root.onclick=function(t){x("click",t)},v.dom.root.ondblclick=function(t){x("doubleClick",t)},v.dom.root.oncontextmenu=function(t){x("contextmenu",t)},v.dom.root.onmouseover=function(t){x("mouseOver",t)},window.PointerEvent?(v.dom.root.onpointerdown=function(t){x("mouseDown",t)},v.dom.root.onpointermove=function(t){x("mouseMove",t)},v.dom.root.onpointerup=function(t){x("mouseUp",t)}):(v.dom.root.onmousemove=function(t){x("mouseMove",t)},v.dom.root.onmousedown=function(t){x("mouseDown",t)},v.dom.root.onmouseup=function(t){x("mouseUp",t)}),v.initialFitDone=!1,v.on("changed",function(){if(null!=l.itemsData){if(!l.initialFitDone&&!l.options.rollingMode){if(l.initialFitDone=!0,void 0!=l.options.start||void 0!=l.options.end){if(void 0==l.options.start||void 0==l.options.end)var t=l.getItemRange();var e=void 0!=l.options.start?l.options.start:t.min,n=void 0!=l.options.end?l.options.end:t.max;l.setWindow(e,n,{animation:!1})}else l.fit({animation:!1})}!l.initialDrawDone&&(l.initialRangeChangeDone||!l.options.start&&!l.options.end||l.options.rollingMode)&&(l.initialDrawDone=!0,l.itemSet.initialDrawDone=!0,l.dom.root.style.visibility="visible",l.dom.loadingScreen.parentNode.removeChild(l.dom.loadingScreen),l.options.onInitialDrawComplete&&aj(function(){return l.options.onInitialDrawComplete()},0))}}),v.on("destroyTimeline",function(){l.destroy()}),s&&v.setOptions(s),v.body.emitter.on("fit",function(t){v._onFit(t),v.redraw()}),r&&v.setGroups(r),e&&v.setItems(e),v._redraw(),v}return rO(o,[{key:"_createConfigurator",value:function(){return new mX(this,this.dom.container,mW)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(t){if(!0===mN.validate(t,mB)&&console.log("%cErrors have been found in the supplied options object.",mL),fQ.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;var e=this.itemsData;if(e){var n=this.getSelection();this.setItems(null),this.setItems(e.rawDS),this.setSelection(n)}}}},{key:"setItems",value:function(t){var e;this.itemsDone=!1,e=t?p6(t)?fe(t):fe(new pf(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.itemSet&&this.itemSet.setItems(null!=e?e.rawDS:null)}},{key:"setGroups",value:function(t){var e;t?(r6(t)&&(t=new pf(t)),e=new pm(t,{filter:function(t){return!1!==t.visible}})):e=null,null!=this.groupsData&&"function"==typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=e,this.itemSet.setGroups(e)}},{key:"setData",value:function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}},{key:"setSelection",value:function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(t,e){if(this.itemsData&&void 0!=t){var n=r6(t)?t:[t],o=this.itemsData.get(n),r=null,s=null;if(sx(o).call(o,function(t){var e=t.start.valueOf(),n="end"in t?t.end.valueOf():t.start.valueOf();
30(null===r||e<r)&&(r=e),(null===s||n>s)&&(s=n)}),null!==r&&null!==s){var a=this,l=this.itemSet.items[n[0]],h=-1*this._getScrollTop(),u=null,d=function(){var t=mZ(a,l);t.shouldScroll&&t.itemTop!=u.itemTop&&(a._setScrollTop(-t.scrollOffset),a._redraw())},c=!e||void 0===e.zoom||e.zoom,p=(r+s)/2,f=c?(s-r)*1.1:Math.max(this.range.end-this.range.start,(s-r)*1.1),m=!e||void 0===e.animation||e.animation;m||(u={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(p-f/2,p+f/2,{animation:m},function(){d(),aj(d,100)},function(t,e,n){var o=mZ(a,l);if(!1!==o&&(u||(u=o),u.itemTop!=o.itemTop||u.shouldScroll)){u.itemTop!=o.itemTop&&o.shouldScroll&&(u=o,h=-1*a._getScrollTop());var r=h,s=u.scrollOffset;a._setScrollTop(-(n?s:r+(s-r)*t)),e||a._redraw()}})}}}},{key:"fit",value:function(t,e){var n,o=!t||void 0===t.animation||t.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(n=this.getDataRange(),this.moveTo(n.min.valueOf(),{animation:o},e)):(n=this.getItemRange(),this.range.setRange(n.min,n.max,{animation:o},e))}},{key:"getItemRange",value:function(){var t=this,e=this.getDataRange(),n=null!==e.min?e.min.valueOf():null,o=null!==e.max?e.max.valueOf():null,r=null,s=null;if(null!=n&&null!=o){var a=o-n;a<=0&&(a=10);var l=a/this.props.center.width,h={},u=0;if(sx(fr).call(fr,this.itemSet.items,function(t,e){t.groupShowing&&(h[e]=t.redraw(!0),u=h[e].length)}),u>0)for(var d=function(t){sx(fr).call(fr,h,function(e){e[t]()})},c=0;c<u;c++)d(c);if(sx(fr).call(fr,this.itemSet.items,function(e){var a,h,u=mK(e),d=m$(e);t.options.rtl?(a=u-(e.getWidthRight()+10)*l,h=d+(e.getWidthLeft()+10)*l):(a=u-(e.getWidthLeft()+10)*l,h=d+(e.getWidthRight()+10)*l),a<n&&(n=a,r=e),h>o&&(o=h,s=e)}),r&&s){var p=r.getWidthLeft()+10,f=s.getWidthRight()+10,m=this.props.center.width-p-f;m>0&&(this.options.rtl?(n=mK(r)-f*a/m,o=m$(s)+p*a/m):(n=mK(r)-p*a/m,o=m$(s)+f*a/m))}}return{min:null!=n?new Date(n):null,max:null!=o?new Date(o):null}}},{key:"getDataRange",value:function(){var t,e=null,n=null;return this.itemsData&&sx(t=this.itemsData).call(t,function(t){var o=fr.convert(t.start,"Date").valueOf(),r=fr.convert(void 0!=t.end?t.end:t.start,"Date").valueOf();(null===e||o<e)&&(e=o),(null===n||r>n)&&(n=r)}),{min:null!=e?new Date(e):null,max:null!=n?new Date(n):null}}},{key:"getEventProperties",value:function(t){var e=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY,o=this.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?o.right-e:e-o.left,s=n-o.top,a=this.itemSet.itemFromTarget(t),l=this.itemSet.groupFromTarget(t),h=fJ.customTimeFromTarget(t),u=this.itemSet.options.snap||null,d=this.body.util.getScale(),c=this.body.util.getStep(),p=this._toTime(r),f=u?u(p,d,c):p,m=fr.getTarget(t),v=null;return null!=a?v="item":null!=h?v="custom-time":fr.hasParent(m,this.timeAxis.dom.foreground)?v="axis":this.timeAxis2&&fr.hasParent(m,this.timeAxis2.dom.foreground)?v="axis":fr.hasParent(m,this.itemSet.dom.labelSet)?v="group-label":fr.hasParent(m,this.currentTime.bar)?v="current-time":fr.hasParent(m,this.dom.center)&&(v="background"),{event:t,item:a?a.id:null,isCluster:!!a&&!!a.isCluster,items:a?a.items||[]:null,group:l?l.groupId:null,customTime:h?h.options.id:null,what:v,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:r,y:s,time:p,snappedTime:f}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){fQ.prototype._redraw.call(this)}},{key:"_onFit",value:function(t){var e=t.start,n=t.end,o=t.animation;n?this.range.setRange(e,n,{animation:o}):this.moveTo(e.valueOf(),{animation:o})}}]),o}(fQ);function mK(t){return fr.convert(t.data.start,"Date").valueOf()}function m$(t){var e=void 0!=t.data.end?t.data.end:t.data.start;return fr.convert(e,"Date").valueOf()}function mZ(t,e){if(!e.parent)return!1;var n=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,o=t.props.center.height,r=e.parent,s=r.top,a=!0,l=t.timeAxis.options.orientation.axis,h=function(){return"bottom"==l?r.he
30ight-e.top-e.height:e.top},u=-1*t._getScrollTop(),d=s+h(),c=e.height;return d<u?s+n<=s+h()+c&&(s+=h()-t.itemSet.options.margin.item.vertical):d+c>u+n?s+=h()+c-n+t.itemSet.options.margin.item.vertical:a=!1,{shouldScroll:a,scrollOffset:s=Math.min(s,o-n),itemTop:d}}var mJ=function(){function t(e,n,o,r,s,a){var l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],h=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(nU(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=a,this._start=e,this._end=n,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=l,this.autoScaleStart=o,this.autoScaleEnd=r,this.formattingFunction=h,o||r){var u=this,d=function(t){var e=t-t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>u.magnitudefactor*u.minorSteps[u.minorStepIdx]*.5?e+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:e};o&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=d(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=d(this._end)),this.determineScale()}}return rO(t,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,n=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var o=0;n<0&&(o=n);for(var r=!1,s=o;Math.abs(s)<=Math.abs(n);s++){this.magnitudefactor=Math.pow(10,s);for(var a=0;a<this.minorSteps.length;a++)if(this.magnitudefactor*this.minorSteps[a]>=e){r=!0,this.minorStepIdx=a;break}if(!0===r)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var e=t.toPrecision(5);return("function"==typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"==typeof e)?"".concat(e):"string"==typeof e?e:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],e=this.getStep(),n=(e-this._start%e)%e,o=this._start+n;this._end-o>1e-5;o+=e)o!=this._start&&t.push({major:this.is_major(o),y:this.convertValue(o),val:this.formatValue(o)});return t}},{key:"followScale",value:function(t){var e=this.minorStepIdx,n=this._start,o=this._end,r=this,s=function(){r.magnitudefactor*=2},a=function(){r.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==e||s(),s()):(this.minorStepIdx=2,1==e||a(),a()));for(var l=t.convertValue(0),h=t.getStep()*t.scale,u=!1,d=0;!u&&d++<5;){this.scale=h/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var c=this.containerHeight/this.scale;this._start=n,this._end=this._start+c;var p=this._end*this.scale,f=this.magnitudefactor*this.majorSteps[this.minorStepIdx],m=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var v=l-p;this._end+=v/this.scale,this._start=this._end-c}else this.autoScaleStart?this._start-=m/this.scale:this._start+=f-m/this.scale,this._end=this._start+c;if(!this.autoScaleEnd&&this._end>o+1e-5){a(),u=!1;continue}if(!this.autoScaleStart&&this._start<n-1e-5){if(this.zeroAlign&&n>=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{a(),u=!1;continue}}if(this.autoScaleStart&&this.autoScaleEnd&&c<o-n){s(),u=!1;continue}u=!0}}},{key:"convertValue",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:"screenToValue",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),t}();function mQ(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}fA("\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {\n position: absolute;\n width: 100%;\n height: 0;\n border-bottom: 1px solid;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n\n\n.vis-data-axis .vis-y-axis.vis-major {\n width: 100%;\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-major.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n\n.vis-data-axis .vis-y-axis.vis-minor {\n position: absolute;\n width: 100%;\n color: #bebebe;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-minor.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title {\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n bottom: 20px;\n text-align: center;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-measure {\n padding: 0;\n margin: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-left {\n bottom: 0;\n -webkit-transform-origin: left top;\n -moz-transform-origin: left top;\n -ms-transform-origin: left top;\n -o-transform-origin: left top;\n transform-origin: left bottom;\n -webkit-transform: rotate(-90deg);\n -moz-transform: rotate(-90deg);\n -ms-transform: rotate(-90deg);\n -o-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-right {\n bottom: 0;\n -webkit-transform-origin: right bottom;\n -moz-transform-origin: right bottom;\n -ms-transform-origin: right bottom;\n -o-transform-origin: right bottom;\n transform-origin: right bottom;\n -webkit-transform: rotate(90deg);\n -moz-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n -o-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.vis-legend {\n background-color: rgba(247, 252, 255, 0.65);\n padding: 5px;\n border: 1px solid #b3b3b3;\n box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);\n}\n\n.vis-legend-text {\n /*font-size: 10px;*/\n white-space: nowrap;\n display: inline-block\n}");var m0=function(t){hQ(o,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!c$||c$.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(c$(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h2(o);return t=e?c$(n,arguments,h2(this).constructor):n.apply(this,arguments),h0(this,t)});function o(t,e,r,s){nU(this,o),(a=n.call(this)).id=pi(),a.body=t,a.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(t){return"".concat(fc(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return"".concat(fc(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},a.linegraphOptions=s,a.linegraphSVG=r,a.props={},a.DOMelements={lines:{},labels:{},title:{}},a.dom={},a.scale=void 0,a.range={start:0,end:0},a.options=fr.extend({},a.defaultOptions),a.conversionFactor=1,a.setOptions(e),a.width=Number("".concat(a.options.width).replace("px","")),a.minWidth=a.width,a.height=a.linegraphSVG.getBoundingClientRect().height,a.hidden=!1,a.stepPixels=25,a.zeroCrossing=-1,a.amountOfSteps=-1,a.lineOffset=0,a.master=!0,a.masterAxis=null,a.svgElements={},a.iconsRemoved=!1,a.groups={},a.amountOfGroups=0,a._create(),void 0==a.scale&&a._redrawLabels(),a.framework={svg:a.svg,svgElements:a.svgElements,options:a.options,groups:a.groups};var a,l=hX(a);return a.body.emitter.on("verticalDrag",function(){l.dom.lineContainer.style.top="".concat(l.body.domProps.scrollTop,"px")}),a}return rO(o,[{key:"addGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1}},{key:"updateGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.amountOfGroups+=1),this.groups[t]=e}},{key:"removeGroup",value:function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)}},{key:"setOptions",value:function(t){if(t){var e=!1;this.options.orientation!=t.orientation&&void 0!==t.orientation&&(e=!0),fr.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,t),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===e&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){hz(this.svgElements);var t=this.options.iconWidth,e=11.5;o="left"===this.options.orientation?4:this.width-t-4;var n=si(this.groups);cC(n).call(n,function(t,e){return t<e?-1:1});var o,r,s=function(t,e){var n=void 0!==rQ&&nW(t)||t["@@iterator"];
30if(!n){if(r6(t)||(n=function(t,e){if(t){if("string"==typeof t)return mQ(t,void 0);var n,o=r5(n=Object.prototype.toString.call(t)).call(n,8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return nN(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return mQ(t,void 0)}}(t))){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}(n);try{for(s.s();!(r=s.n()).done;){var a=r.value;!0===this.groups[a].visible&&(void 0===this.linegraphOptions.visibility[a]||!0===this.linegraphOptions.visibility[a])&&(this.groups[a].getLegend(t,15,this.framework,o,e),e+=19)}}catch(t){s.e(t)}finally{s.f()}hG(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(hz(this.svgElements),hG(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||("left"===this.options.orientation?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(t,e){this.range.start=t,this.range.end=e}},{key:"redraw",value:function(){var t=!1,e=0;for(var n in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(n)&&!0===this.groups[n].visible&&(void 0===this.linegraphOptions.visibility[n]||!0===this.linegraphOptions.visibility[n])&&e++;if(0===this.amountOfGroups||0===e)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=!0===this.options.visible?Number("".concat(this.options.width).replace("px","")):0;var o=this.props,r=this.dom.frame;r.className="vis-data-axis",this._calculateCharSize();var s=this.options.orientation,a=this.options.showMinorLabels,l=this.options.showMajorLabels,h=this.body.dom.backgroundHorizontal.offsetWidth;o.minorLabelHeight=a?o.minorCharHeight:0,o.majorLabelHeight=l?o.majorCharHeight:0,o.minorLineWidth=h-this.lineOffset-this.width+2*this.options.minorLinesOffset,o.minorLineHeight=1,o.majorLineWidth=h-this.lineOffset-this.width+2*this.options.majorLinesOffset,o.majorLineHeight=1,"left"===s?(r.style.top="0",r.style.left="0",r.style.bottom="",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(r.style.top="",r.style.bottom="0",r.style.left="0",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),t=this._redrawLabels(),t=this._isResized()||t,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(s)}return t}},{key:"_redrawLabels",value:function(){var t=this,e=!1;hz(this.DOMelements.lines),hz(this.DOMelements.labels);var n=this.options.orientation,o=void 0!=this.options[n].range?this.options[n].range:{},r=!0;void 0!=o.max&&(this.range.end=o.max,r=!1);var s=!0;void 0!=o.min&&(this.range.start=o.min,s=!1),this.scale=new mJ(this.range.start,this.range.end,s,r,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[n].format),!1===this.master&&void 0!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var a=this.scale.getLines();sx(a).call(a,function(e){var o=e.y,r=e.major;t.options.showMinorLabels&&!1===r&&t._redrawLabel(o-2,e.val,n,"vis-y-axis vis-minor",t.props.minorCharHeight),r&&o>=0&&t._redrawLabel(o-2,e.val,n,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(r?t._redrawLine(o,n,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(o,n,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))});var l=0;void 0!==this.options[n].title&&void 0!==this.options[n].title.text&&(l=this.props.titleCharHeight);var h=!0===this.options.icons?Math.max(this.options.iconWidth,l)+this.options.labelOffsetX+15:l+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-h&&!0===this.options.visible?(this.width=this.maxLabelSize+h,this.options.width="".concat(this.width,"px"),hG(this.DOMelements.lines),hG(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSize<this.width-h&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+h),this.options.width="".concat(this.width,"px"),hG(this.DOMelements.lines),hG(this.DOMelements.labels),this.redraw(),e=!0):(hG(this.DOMelements.lines),hG(this.DOMelements.labels),e=!1),e}},{key:"convertValue",value:function(t){return this.scale.convertValue(t)}},{key:"screenToValue",value:function(t){return this.scale.screenToValue(t)}},{key:"_redrawLabel",value:function(t,e,n,o,r){var s=hW("div",this.DOMelements.labels,this.dom.frame);s.className=o,s.innerHTML=fr.xss(e),"left"===n?(s.style.left="-".concat(this.options.labelOffsetX,"px"),s.style.textAlign="right"):(s.style.right="-".concat(this.options.labelOffsetX,"px"),s.style.textAlign="left"),s.style.top="".concat(t-.5*r+this.options.labelOffsetY,"px"),e+="";var a=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<e.length*a&&(this.maxLabelSize=e.length*a)}},{key:"_redrawLine",value:function(t,e,n,o,r){if(!0===this.master){var s=hW("div",this.DOMelements.lines,this.dom.lineContainer);s.className=n,s.innerHTML="","left"===e?s.style.left="".concat(this.width-o,"px"):s.style.right="".concat(this.width-o,"px"),s.style.width="".concat(r,"px"),s.style.top="".concat(t,"px")}}},{key:"_redrawTitle",value:function(t){if(hz(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){var e=hW("div",this.DOMelements.title,this.dom.frame);e.className="vis-y-axis vis-title vis-".concat(t),e.innerHTML=fr.xss(this.options[t].title.text),void 0!==this.options[t].title.style&&fr.addCssText(e,this.options[t].title.style),"left"===t?e.style.left="".concat(this.props.titleCharHeight,"px"):e.style.right="".concat(this.props.titleCharHeight,"px"),e.style.width="".concat(this.height,"px")}hG(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var t=document.createTextNode("0"),e=d
30ocument.createElement("div");e.className="vis-y-axis vis-minor vis-measure",e.appendChild(t),this.dom.frame.appendChild(e),this.props.minorCharHeight=e.clientHeight,this.props.minorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)}if(!("majorCharHeight"in this.props)){var n=document.createTextNode("0"),o=document.createElement("div");o.className="vis-y-axis vis-major vis-measure",o.appendChild(n),this.dom.frame.appendChild(o),this.props.majorCharHeight=o.clientHeight,this.props.majorCharWidth=o.clientWidth,this.dom.frame.removeChild(o)}if(!("titleCharHeight"in this.props)){var r=document.createTextNode("0"),s=document.createElement("div");s.className="vis-y-axis vis-title vis-measure",s.appendChild(r),this.dom.frame.appendChild(s),this.props.titleCharHeight=s.clientHeight,this.props.titleCharWidth=s.clientWidth,this.dom.frame.removeChild(s)}}}]),o}(fp);function m1(t,e){}function m2(t,e){return{style:(e=void 0===e?{}:e).style||t.options.drawPoints.style,styles:e.styles||t.options.drawPoints.styles,size:e.size||t.options.drawPoints.size,className:e.className||t.className}}function m5(t,e){}function m3(t,e){}function m4(t,e,n,o){this.id=e,this.options=fr.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],n),this.usingDefaultStyle=void 0===t.className,this.groupsUsingDefaultStyles=o,this.zeroPosition=0,this.update(t),!0==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===t.visible||t.visible}function m8(t,e,n,o){this.body=t,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=n,this.options=fr.extend({},this.defaultOptions),this.linegraphOptions=o,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(e)}m1.draw=function(t,e,n,o){o=o||0;for(var r,s=(r=void 0,n.options&&n.options.drawPoints&&n.options.drawPoints.onRender&&"function"==typeof n.options.drawPoints.onRender&&(r=n.options.drawPoints.onRender),e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&"function"==typeof e.group.options.drawPoints.onRender&&(r=e.group.options.drawPoints.onRender),r),a=0;a<t.length;a++)if(s){var l=s(t[a],e);(!0===l||"object"===rS(l))&&hU(t[a].screen_x+o,t[a].screen_y,m2(e,l),n.svgElements,n.svg,t[a].label)}else hU(t[a].screen_x+o,t[a].screen_y,m2(e),n.svgElements,n.svg,t[a].label)},m1.drawIcon=function(t,e,n,o,r,s){var a=.5*r,l=hB("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",n-a),l.setAttributeNS(null,"width",o),l.setAttributeNS(null,"height",2*a),l.setAttributeNS(null,"class","vis-outline"),hU(e+.5*o,n,m2(t),s.svgElements,s.svg)},m5.drawIcon=function(t,e,n,o,r,s){var a=.5*r,l=hB("rect",s.svgElements,s.svg);l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",n-a),l.setAttributeNS(null,"width",o),l.setAttributeNS(null,"height",2*a),l.setAttributeNS(null,"class","vis-outline");var h=Math.round(.3*o),u=t.options.barChart.width/h,d=Math.round(.4*r),c=Math.round(.75*r),p=Math.round((o-2*h)/3);if(hV(e+.5*h+p,n+a-d-1,h,d,t.className+" vis-bar",s.svgElements,s.svg,t.style),hV(e+1.5*h+p+2,n+a-c-1,h,c,t.className+" vis-bar",s.svgElements,s.svg,t.style),!0==t.options.drawPoints.enabled){var f={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/u,className:t.className};hU(e+.5*h+p,n+a-d-1,f,s.svgElements,s.svg),hU(e+1.5*h+p+2,n+a-c-1,f,s.svgElements,s.svg)}},m5.draw=function(t,e,n){var o,r,s,a,l,h,u=[],d={},c=0;for(l=0;l<t.length;l++)if("bar"===(a=n.groups[t[l]]).options.style&&!0===a.visible&&(void 0===n.options.groups.visibility[t[l]]||!0===n.options.groups.visibility[t[l]]))for(h=0;h<e[t[l]].length;h++)u.push({screen_x:e[t[l]][h].screen_x,screen_end:e[t[l]][h].screen_end,screen_y:e[t[l]][h].screen_y,x:e[t[l]][h].x,end:e[t[l]][h
30].end,y:e[t[l]][h].y,groupId:t[l],label:e[t[l]][h].label}),c+=1;if(0!==c)for(cC(u).call(u,function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x}),m5._getDataIntersections(d,u),l=0;l<u.length;l++){var p=void 0!=(a=n.groups[u[l].groupId]).options.barChart.minWidth?a.options.barChart.minWidth:.1*a.options.barChart.width;r=u[l].screen_x;var f=0;if(void 0===d[r])l+1<u.length&&(o=Math.abs(u[l+1].screen_x-r)),s=m5._getSafeDrawData(o,a,p);else{var m=l+(d[r].amount-d[r].resolved);m<u.length&&(o=Math.abs(u[m].screen_x-r)),s=m5._getSafeDrawData(o,a,p),d[r].resolved+=1,!0===a.options.stack&&!0!==a.options.excludeFromStacking?u[l].screen_y<a.zeroPosition?(f=d[r].accumulatedNegative,d[r].accumulatedNegative+=a.zeroPosition-u[l].screen_y):(f=d[r].accumulatedPositive,d[r].accumulatedPositive+=a.zeroPosition-u[l].screen_y):!0===a.options.barChart.sideBySide&&(s.width=s.width/d[r].amount,s.offset+=d[r].resolved*s.width-.5*s.width*(d[r].amount+1))}var v=s.width,g=u[l].screen_x;if(void 0!=u[l].screen_end?g+=.5*(v=u[l].screen_end-u[l].screen_x):g+=s.offset,hV(g,u[l].screen_y-f,v,a.zeroPosition-u[l].screen_y,a.className+" vis-bar",n.svgElements,n.svg,a.style),!0===a.options.drawPoints.enabled){var y={screen_x:u[l].screen_x,screen_y:u[l].screen_y-f,x:u[l].x,y:u[l].y,groupId:u[l].groupId,label:u[l].label};m1.draw([y],a,n,s.offset)}}},m5._getDataIntersections=function(t,e){for(var n,o=0;o<e.length;o++)o+1<e.length&&(n=Math.abs(e[o+1].screen_x-e[o].screen_x)),o>0&&(n=Math.min(n,Math.abs(e[o-1].screen_x-e[o].screen_x))),0===n&&(void 0===t[e[o].screen_x]&&(t[e[o].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[o].screen_x].amount+=1)},m5._getSafeDrawData=function(t,e,n){var o,r;return t<e.options.barChart.width&&t>0?(o=t<n?n:t,r=0,"left"===e.options.barChart.align?r-=.5*t:"right"===e.options.barChart.align&&(r+=.5*t)):(o=e.options.barChart.width,r=0,"left"===e.options.barChart.align?r-=.5*e.options.barChart.width:"right"===e.options.barChart.align&&(r+=.5*e.options.barChart.width)),{width:o,offset:r}},m5.getStackedYRange=function(t,e,n,o,r){if(t.length>0){cC(t).call(t,function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x});var s={};m5._getDataIntersections(s,t),e[o]=m5._getStackedYRange(s,t),e[o].yAxisOrientation=r,n.push(o)}},m5._getStackedYRange=function(t,e){for(var n,o=e[0].screen_y,r=e[0].screen_y,s=0;s<e.length;s++)void 0===t[n=e[s].screen_x]?(o=o>e[s].screen_y?e[s].screen_y:o,r=r<e[s].screen_y?e[s].screen_y:r):e[s].screen_y<0?t[n].accumulatedNegative+=e[s].screen_y:t[n].accumulatedPositive+=e[s].screen_y;for(var a in t)t.hasOwnProperty(a)&&(o=(o=o>t[a].accumulatedNegative?t[a].accumulatedNegative:o)>t[a].accumulatedPositive?t[a].accumulatedPositive:o,r=(r=r<t[a].accumulatedNegative?t[a].accumulatedNegative:r)<t[a].accumulatedPositive?t[a].accumulatedPositive:r);return{min:o,max:r}},m3.calcPath=function(t,e){if(null!=t&&t.length>0)return!0==e.options.interpolation.enabled?m3._catmullRom(t,e):m3._linear(t)},m3.drawIcon=function(t,e,n,o,r,s){var a,l,h=.5*r,u=hB("rect",s.svgElements,s.svg);u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",n-h),u.setAttributeNS(null,"width",o),u.setAttributeNS(null,"height",2*h),u.setAttributeNS(null,"class","vis-outline"),(a=hB("path",s.svgElements,s.svg)).setAttributeNS(null,"class",t.className),void 0!==t.style&&a.setAttributeNS(null,"style",t.style),a.setAttributeNS(null,"d","M"+e+","+n+" L"+(e+o)+","+n),!0==t.options.shaded.enabled&&(l=hB("path",s.svgElements,s.svg),"top"==t.options.shaded.orientation?l.setAttributeNS(null,"d","M"+e+", "+(n-h)+"L"+e+","+n+" L"+(e+o)+","+n+" L"+(e+o)+","+(n-h)):l.setAttributeNS(null,"d","M"+e+","+n+" L"+e+","+(n+h)+" L"+(e+o)+","+(n+h)+"L"+(e+o)+","+n),l.setAttributeNS(null,"class",t.className+" vis-icon-fill"),void 0!==t.options.shaded.style&&""!==t.options.shaded.style&&l.setAttributeNS(null,"style",t.options.shaded.style)),!0==t.options.drawPoints.enabled&&hU(e+.5*o,n,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},s.svgElements,s.svg)},m3.drawShading=function(t,e,n,o){if(!0==e.options.shaded.enabled){var r,s=Number(o.svg.style.height.replace("px","")),a=hB("path",o.svgElements,o.svg),l="L";!0==e.options.interpolation.enabled&&(l="C");var h=0;h="top"==e.options.shaded.orientation?0:"bottom"==e.options.shaded.orientation?s:Math.min(Math.max(0,e.zeroPosition),s),r="group"==e.options.shaded.orientation&&null!=n&&void 0!=n?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,l,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,l,!0)+n[0][0]+","+n[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,l,!1)+" V"+h+" H"
30+t[0][0]+" Z",a.setAttributeNS(null,"class",e.className+" vis-fill"),void 0!==e.options.shaded.style&&a.setAttributeNS(null,"style",e.options.shaded.style),a.setAttributeNS(null,"d",r)}},m3.draw=function(t,e,n){if(null!=t&&void 0!=t){var o=hB("path",n.svgElements,n.svg);o.setAttributeNS(null,"class",e.className),void 0!==e.style&&o.setAttributeNS(null,"style",e.style);var r="L";!0==e.options.interpolation.enabled&&(r="C"),o.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,r,!1))}},m3.serializePath=function(t,e,n){if(t.length<2)return"";var o,r=e;if(n)for(o=t.length-2;o>0;o--)r+=t[o][0]+","+t[o][1]+" ";else for(o=1;o<t.length;o++)r+=t[o][0]+","+t[o][1]+" ";return r},m3._catmullRomUniform=function(t){var e,n,o,r,s,a,l=[];l.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var h=1/6,u=t.length,d=0;d<u-1;d++)e=0==d?t[0]:t[d-1],n=t[d],o=t[d+1],r=d+2<u?t[d+2]:o,s={screen_x:(-e.screen_x+6*n.screen_x+o.screen_x)*h,screen_y:(-e.screen_y+6*n.screen_y+o.screen_y)*h},a={screen_x:(n.screen_x+6*o.screen_x-r.screen_x)*h,screen_y:(n.screen_y+6*o.screen_y-r.screen_y)*h},l.push([s.screen_x,s.screen_y]),l.push([a.screen_x,a.screen_y]),l.push([o.screen_x,o.screen_y]);return l},m3._catmullRom=function(t,e){var n=e.options.interpolation.alpha;if(0==n||void 0===n)return this._catmullRomUniform(t);var o,r,s,a,l,h,u,d,c,p,f,m,v,g,y,b,_,w,k,x=[];x.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var D=t.length,S=0;S<D-1;S++)o=0==S?t[0]:t[S-1],r=t[S],s=t[S+1],a=S+2<D?t[S+2]:s,u=Math.sqrt(Math.pow(o.screen_x-r.screen_x,2)+Math.pow(o.screen_y-r.screen_y,2)),d=Math.sqrt(Math.pow(r.screen_x-s.screen_x,2)+Math.pow(r.screen_y-s.screen_y,2)),g=Math.pow(c=Math.sqrt(Math.pow(s.screen_x-a.screen_x,2)+Math.pow(s.screen_y-a.screen_y,2)),n),b=Math.pow(c,2*n),y=Math.pow(d,n),_=Math.pow(d,2*n),k=Math.pow(u,n),p=2*(w=Math.pow(u,2*n))+3*k*y+_,f=2*b+3*g*y+_,(m=3*k*(k+y))>0&&(m=1/m),(v=3*g*(g+y))>0&&(v=1/v),l={screen_x:(-_*o.screen_x+p*r.screen_x+w*s.screen_x)*m,screen_y:(-_*o.screen_y+p*r.screen_y+w*s.screen_y)*m},h={screen_x:(b*r.screen_x+f*s.screen_x-_*a.screen_x)*v,screen_y:(b*r.screen_y+f*s.screen_y-_*a.screen_y)*v},0==l.screen_x&&0==l.screen_y&&(l=r),0==h.screen_x&&0==h.screen_y&&(h=s),x.push([l.screen_x,l.screen_y]),x.push([h.screen_x,h.screen_y]),x.push([s.screen_x,s.screen_y]);return x},m3._linear=function(t){for(var e=[],n=0;n<t.length;n++)e.push([t[n].screen_x,t[n].screen_y]);return e},m4.prototype.setItems=function(t){null!=t?(this.itemsData=t,!0==cC(this.options)&&fr.insertSort(this.itemsData,function(t,e){return t.x>e.x?1:-1})):this.itemsData=[]},m4.prototype.getItems=function(){return this.itemsData},m4.prototype.setZeroPosition=function(t){this.zeroPosition=t},m4.prototype.setOptions=function(t){void 0!==t&&(fr.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),fr.mergeOptions(this.options,t,"interpolation"),fr.mergeOptions(this.options,t,"drawPoints"),fr.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==rS(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)))},m4.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},m4.prototype.getLegend=function(t,e,n,o,r){switch((void 0==n||null==n)&&(n={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),(void 0==o||null==o)&&(o=0),(void 0==r||null==r)&&(r=.5*e),this.options.style){case"line":m3.drawIcon(this,o,r,t,e,n);break;case"points":case"point":m1.drawIcon(this,o,r,t,e,n);break;case"bar":m5.drawIcon(this,o,r,t,e,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOr
30ientation}},m4.prototype.getYRange=function(t){for(var e=t[0].y,n=t[0].y,o=0;o<t.length;o++)e=e>t[o].y?t[o].y:e,n=n<t[o].y?t[o].y:n;return{min:e,max:n,yAxisOrientation:this.options.yAxisOrientation}},m8.prototype=new fp,m8.prototype.clear=function(){this.groups={},this.amountOfGroups=0},m8.prototype.addGroup=function(t,e){!0!=e.options.excludeFromLegend&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},m8.prototype.updateGroup=function(t,e){this.groups[t]=e},m8.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)},m8.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)},m8.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},m8.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},m8.prototype.setOptions=function(t){fr.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,t)},m8.prototype.redraw=function(){var t=0,e=si(this.groups);cC(e).call(e,function(t,e){return t<e?-1:1});for(var n=0;n<e.length;n++){var o=e[n];!0==this.groups[o].visible&&(void 0===this.linegraphOptions.visibility[o]||!0==this.linegraphOptions.visibility[o])&&t++}if(!1==this.options[this.side].visible||0==this.amountOfGroups||!1==this.options.enabled||0==t)this.hide();else{if(this.show(),"top-left"==this.options[this.side].position||"bottom-left"==this.options[this.side].position?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),"top-left"==this.options[this.side].position||"top-right"==this.options[this.side].position)this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var r=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+r+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}!1==this.options.icons?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var s="";for(n=0;n<e.length;n++)o=e[n],!0==this.groups[o].visible&&(void 0===this.linegraphOptions.visibility[o]||!0==this.linegraphOptions.visibility[o])&&(s+=this.groups[o].content+"<br />");this.dom.textArea.innerHTML=fr.xss(s),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},m8.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t,e=si(this.groups);cC(e).call(e,function(t,e){return t<e?-1:1}),hz(t=this.svgElements),hG(t),hz(t);var n=Number(window.getComputedStyle(this.dom.frame).paddingTop.replace("px","")),o=this.options.iconSize,r=.75*this.options.iconSize,s=n+.5*r+3;this.svg.style.width=o+5+n+"px";for(var a=0;a<e.length;a++){var l=e[a];!0==this.groups[l].visible&&(void 0===this.linegraphOptions.visibility[l]||!0==this.linegraphOptions.visibility[l])&&(this.groups[l].getLegend(o,r,this.framework,n,s),s+=r+this.options.iconS
30pacing)}}};var m6="__ungrouped__";function m9(t,e){this.id=pi(),this.body=t,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=fr.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var n=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(t,e,o){n._onAdd(e.items)},update:function(t,e,o){n._onUpdate(e.items)},remove:function(t,e,o){n._onRemove(e.items)}},this.groupListeners={add:function(t,e,o){n._onAddGroups(e.items)},update:function(t,e,o){n._onUpdateGroups(e.items)},remove:function(t,e,o){n._onRemoveGroups(e.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(e),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){n.svg.style.left=fr.option.asSize(-n.props.width),n.forceGraphUpdate=!0,n.redraw.call(n)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}m9.prototype=new fp,m9.prototype._create=function(){var t=document.createElement("div");t.className="vis-line-graph",this.dom.frame=t,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",t.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new m0(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new m0(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new m8(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new m8(this.body,this.options.legend,"right",this.options.groups),this.show()},m9.prototype.setOptions=function(t){t&&(void 0===t.graphHeight&&void 0!==t.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==t.graphHeight&&ag((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),fr.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,t),fr.mergeOptions(this.options,t,"interpolation"),fr.mergeOptions(this.options,t,"drawPoints"),fr.mergeOptions(this.options,t,"shaded"),fr.mergeOptions(this.options,t,"legend"),t.interpolation&&"object"==rS(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&void 0!==t.dataAxis&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&void 0!==t.legend&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(m6)&&this.groups[m6].setOptions(t)),this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},m9.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},m9.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},m9.prototype.setItems=function(t){var e,n=this,o=this.itemsData;if(t){if(p6(t))this.itemsData=fe(t);else throw TypeError("Data must implement the interface of DataSet or DataView")}else this.itemsData=null;if(o&&(sx(fr).call(fr,this.itemListeners,function(t,e){o.off(e,t)}),o.dispose(),e=o.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;sx(fr).call(fr,this.itemListeners,function(t,e){n.itemsData.on(e,t,r)}),e=this.itemsData.getIds(),this._onAdd(e)}},m9.prototype.setGroups=function(t){var e,n=this;if(this.groupsData){sx(fr).call(fr,this.groupListeners,function(t,e){n.groupsData.off(e,t)}),e=this.groupsData.getIds(),this.groupsData=null;for(var o=0;o<e.length;o++)this._removeGroup(e[o])}if(t){if(p6(t))this.groupsData=t;else throw TypeError("Data must implement the interface of DataSet or DataView")}else this.groupsData=null;if(this.groupsData){var r=this.id;sx(fr).call(fr,this.groupListeners,function(t,e){n.groupsData.on(e,t,r)}),e=this.groupsData.getIds(),this._onAddGroups(e)}},m9.prototype._onUpdate=function(t){this._updateAllGroupData(t)},m9.prototype._onAdd=function(t){this._onUpdate(t)},m9.prototype._onRemove=function(t){this._onUpdate(t)},m9.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},m9.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},m9.prototype._onRemoveGroups=function(t){for(var e=0;e<t.length;e++)this._removeGroup(t[e]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})},m9.prototype._removeGroup=function(t){this.groups.hasOwnProperty(t)&&("right"==this.groups[t].options.yAxisOr
30ientation?(this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t),this.legendLeft.redraw()),delete this.groups[t])},m9.prototype._updateGroup=function(t,e){this.groups.hasOwnProperty(e)?(this.groups[e].update(t),"right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.updateGroup(e,this.groups[e]),this.legendRight.updateGroup(e,this.groups[e]),this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e)):(this.yAxisLeft.updateGroup(e,this.groups[e]),this.legendLeft.updateGroup(e,this.groups[e]),this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e))):(this.groups[e]=new m4(t,e,this.options,this.groupsUsingDefaultStyles),"right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.addGroup(e,this.groups[e]),this.legendRight.addGroup(e,this.groups[e])):(this.yAxisLeft.addGroup(e,this.groups[e]),this.legendLeft.addGroup(e,this.groups[e]))),this.legendLeft.redraw(),this.legendRight.redraw()},m9.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var n={},o=this.itemsData.get(),r=this.itemsData.idProp,s={};t&&se(t).call(t,function(t){s[t]=t});for(var a={},l=0;l<o.length;l++){var h=o[l],u=h.group;null==u&&(u=m6),a.hasOwnProperty(u)?a[u]++:a[u]=1}var d={};if(!e&&t){for(u in this.groups)if(this.groups.hasOwnProperty(u)){var c=(v=this.groups[u]).getItems();n[u]=s8(c).call(c,function(t){return d[t[r]]=t[r],t[r]!==s[t[r]]});var p=a[u];a[u]-=n[u].length,n[u].length<p&&(n[u][p-1]={})}}for(l=0;l<o.length;l++)if(null==(u=(h=o[l]).group)&&(u=m6),!(!e&&t&&h[r]!==s[h[r]]&&d.hasOwnProperty(h[r]))){n.hasOwnProperty(u)||(n[u]=Array(a[u]));var f=fr.bridgeObject(h);f.x=fr.convert(h.x,"Date"),f.end=fr.convert(h.end,"Date"),f.orginalY=h.y,f.y=Number(h.y),f[r]=h[r];var m=n[u].length-a[u]--;n[u][m]=f}for(u in this.groups)this.groups.hasOwnProperty(u)&&!n.hasOwnProperty(u)&&(n[u]=[]);for(u in n)if(n.hasOwnProperty(u)){if(0==n[u].length)this.groups.hasOwnProperty(u)&&this._removeGroup(u);else{var v=void 0;void 0!=this.groupsData&&(v=this.groupsData.get(u)),void 0==v&&(v={id:u,content:this.options.defaultGroup+u}),this._updateGroup(v,u),this.groups[u].setItems(n[u])}}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},m9.prototype.redraw=function(){var t,e=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,e=this._isResized()||e;var n=this.body.range.end-this.body.range.start,o=n!=this.lastVisibleInterval;if(this.lastVisibleInterval=n,!0==e&&(this.svg.style.width=fr.option.asSize(3*this.props.width),this.svg.style.left=fr.option.asSize(-this.props.width),(-1!=ax(t=this.options.height+"").call(t,"%")||!0==this.updateSVGheightOnResize)&&(this.updateSVGheight=!0)),!0==this.updateSVGheight?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",!0==e||!0==o||!0==this.abortedGraphUpdate||!0==this.forceGraphUpdate)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(0!=this.lastStart){var r=this.body.range.start-this.lastStart,s=this.body.range.end-this.body.range.start;if(0!=this.props.width){var a=this.props.width/s;this.svg.style.left=-this.props.width-r*a+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e},m9.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var n=this.groups[e];!0==n.visible&&(void 0===this.options.groups.visibility[e]||!0==this.options.groups.visibility[e])&&t.push({id:e,zIndex:n.options.zIndex})}fr.insertSort(t,function(t,e){var n=t.zIndex,o=e.zIndex;return void 0===n&&(n=0),void 0===o&&(o=0),n==o?0:n<o?-1:1});for(var o=Array(t.length),r=0;r<t.length;r++)o[r]=t[r].id;return o},m9.prototype._updateGraph=function(){if(hz(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e,n={},o=this.body.util.toGlobalTime(-this.body.domProps.root.width),r=this.body.util.toGlobalTime(2*this.body.domProps.root.width),s=this._getSortedGroupIds();if(s.length>0){var a={};
30for(this._getRelevantData(s,a,o,r),this._applySampling(s,a),e=0;e<s.length;e++)this._convertXcoordinates(a[s[e]]);if(this._getYRanges(s,a,n),!0==this._updateYAxis(s,n))return hG(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var l=void 0;for(e=0;e<s.length;e++)t=this.groups[s[e]],!0!==this.options.stack||"line"!==this.options.style||void 0!=t.options.excludeFromStacking&&t.options.excludeFromStacking||(void 0!=l&&(this._stack(a[t.id],a[l.id]),!0==t.options.shaded.enabled&&"group"!==t.options.shaded.orientation&&("top"==t.options.shaded.orientation&&"group"!==l.options.shaded.orientation?(l.options.shaded.orientation="group",l.options.shaded.groupId=t.id):(t.options.shaded.orientation="group",t.options.shaded.groupId=l.id))),l=t),this._convertYcoordinates(a[s[e]],t);var h={};for(e=0;e<s.length;e++)if("line"===(t=this.groups[s[e]]).options.style&&!0==t.options.shaded.enabled){var u=a[s[e]];if(null==u||0==u.length)continue;if(h.hasOwnProperty(s[e])||(h[s[e]]=m3.calcPath(u,t)),"group"===t.options.shaded.orientation){var d=t.options.shaded.groupId;if(-1===ax(s).call(s,d)){console.log(t.id+": Unknown shading group target given:"+d);continue}h.hasOwnProperty(d)||(h[d]=m3.calcPath(a[d],this.groups[d])),m3.drawShading(h[s[e]],t,h[d],this.framework)}else m3.drawShading(h[s[e]],t,void 0,this.framework)}for(m5.draw(s,a,this.framework),e=0;e<s.length;e++)if(t=this.groups[s[e]],a[s[e]].length>0)switch(t.options.style){case"line":h.hasOwnProperty(s[e])||(h[s[e]]=m3.calcPath(a[s[e]],t)),m3.draw(h[s[e]],t,this.framework);case"point":case"points":("point"==t.options.style||"points"==t.options.style||!0==t.options.drawPoints.enabled)&&m1.draw(a[s[e]],t,this.framework)}}}return hG(this.svgElements),!1},m9.prototype._stack=function(t,e){var n,o,r,s,a;n=0;for(var l=0;l<t.length;l++){s=void 0,a=void 0;for(var h=n;h<e.length;h++){if(e[h].x===t[l].x){s=e[h],a=e[h],n=h;break}if(e[h].x>t[l].x){a=e[h],s=0==h?a:e[h-1],n=h;break}}void 0===a&&(s=e[e.length-1],a=e[e.length-1]),o=a.x-s.x,r=a.y-s.y,0==o?t[l].y=t[l].orginalY+a.y:t[l].y=t[l].orginalY+r/o*(t[l].x-s.x)+s.y}},m9.prototype._getRelevantData=function(t,e,n,o){var r,s,a,l;if(t.length>0)for(s=0;s<t.length;s++){var h=(r=this.groups[t[s]]).getItems();if(!0==cC(r.options)){var u=function t(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},d=Math.max(0,fr.binarySearchValue(h,n,"x","before",u)),c=Math.min(h.length,fr.binarySearchValue(h,o,"x","after",u)+1);c<=0&&(c=h.length);var p=Array(c-d);for(a=d;a<c;a++)l=r.itemsData[a],p[a-d]=l;e[t[s]]=p}else e[t[s]]=r.itemsData}},m9.prototype._applySampling=function(t,e){if(t.length>0){for(var n=0;n<t.length;n++)if(!0==this.groups[t[n]].options.sampling){var o=e[t[n]];if(o.length>0){var r=1,s=o.length,a=s/(this.body.util.toGlobalScreen(o[o.length-1].x)-this.body.util.toGlobalScreen(o[0].x));r=Math.min(Math.ceil(.2*s),Math.max(1,Math.round(a)));for(var l=Array(s),h=0;h<s;h+=r)l[Math.round(h/r)]=o[h];e[t[n]]=sR(l).call(l,0,Math.round(s/r))}}}},m9.prototype._getYRanges=function(t,e,n){var o,r,s,a,l=[],h=[];if(t.length>0){for(s=0;s<t.length;s++)o=e[t[s]],a=this.groups[t[s]].options,o.length>0&&(r=this.groups[t[s]],!0===a.stack&&"bar"===a.style?"left"===a.yAxisOrientation?l=r2(l).call(l,o):h=r2(h).call(h,o):n[t[s]]=r.getYRange(o,t[s]));m5.getStackedYRange(l,n,t,"__barStackLeft","left"),m5.getStackedYRange(h,n,t,"__barStackRight","right")}},m9.prototype._updateYAxis=function(t,e){var n,o,r=!1,s=!1,a=!1,l=1e9,h=1e9,u=-1e9,d=-1e9;if(t.length>0){for(var c=0;c<t.length;c++){var p=this.groups[t[c]];
30p&&"right"!=p.options.yAxisOrientation?(s=!0,l=1e9,u=-1e9):p&&p.options.yAxisOrientation&&(a=!0,h=1e9,d=-1e9)}for(c=0;c<t.length;c++)e.hasOwnProperty(t[c])&&!0!==e[t[c]].ignore&&(n=e[t[c]].min,o=e[t[c]].max,"right"!=e[t[c]].yAxisOrientation?(s=!0,l=l>n?n:l,u=u<o?o:u):(a=!0,h=h>n?n:h,d=d<o?o:d));!0==s&&this.yAxisLeft.setRange(l,u),!0==a&&this.yAxisRight.setRange(h,d)}r=this._toggleAxisVisiblity(s,this.yAxisLeft)||r,r=this._toggleAxisVisiblity(a,this.yAxisRight)||r,!0==a&&!0==s?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!s,this.yAxisRight.masterAxis=this.yAxisLeft,!1==this.yAxisRight.master&&(!0==a?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,r=this.yAxisLeft.redraw()||r),r=this.yAxisRight.redraw()||r;var f=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(c=0;c<f.length;c++)-1!=ax(t).call(t,f[c])&&sR(t).call(t,ax(t).call(t,f[c]),1);return r},m9.prototype._toggleAxisVisiblity=function(t,e){var n=!1;return!1==t?e.dom.frame.parentNode&&!1==e.hidden&&(e.hide(),n=!0):e.dom.frame.parentNode||!0!=e.hidden||(e.show(),n=!0),n},m9.prototype._convertXcoordinates=function(t){for(var e=this.body.util.toScreen,n=0;n<t.length;n++)t[n].screen_x=e(t[n].x)+this.props.width,t[n].screen_y=t[n].y,void 0!=t[n].end?t[n].screen_end=e(t[n].end)+this.props.width:t[n].screen_end=void 0},m9.prototype._convertYcoordinates=function(t,e){var n=this.yAxisLeft,o=Number(this.svg.style.height.replace("px",""));
30"right"==e.options.yAxisOrientation&&(n=this.yAxisRight);for(var r=0;r<t.length;r++)t[r].screen_y=Math.round(n.convertValue(t[r].y));e.setZeroPosition(Math.min(o,n.convertValue(0)))};var m7="string",vt="boolean",ve="number",vi="date",vn="object",vo="moment",vr={configure:{enabled:{boolean:vt},filter:{boolean:vt,function:"function"},container:{dom:"dom"},__type__:{object:vn,boolean:vt,function:"function"}},alignCurrentTime:{string:m7,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:m7},sort:{boolean:vt},sampling:{boolean:vt},stack:{boolean:vt},graphHeight:{string:m7,number:ve},shaded:{enabled:{boolean:vt},orientation:{string:["bottom","top","zero","group"]},groupId:{object:vn},__type__:{boolean:vt,object:vn}},style:{string:["line","bar","points"]},barChart:{width:{number:ve},minWidth:{number:ve},sideBySide:{boolean:vt},align:{string:["left","center","right"]},__type__:{object:vn}},interpolation:{enabled:{boolean:vt},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:ve},__type__:{object:vn,boolean:vt}},drawPoints:{enabled:{boolean:vt},onRender:{function:"function"},size:{number:ve},style:{string:["square","circle"]},__type__:{object:vn,boolean:vt,function:"function"}},dataAxis:{showMinorLabels:{boolean:vt},showMajorLabels:{boolean:vt},showWeekScale:{boolean:vt},icons:{boolean:vt},width:{string:m7,number:ve},visible:{boolean:vt},alignZeros:{boolean:vt},left:{range:{min:{number:ve,undefined:"undefined"},max:{number:ve,undefined:"undefined"},__type__:{object:vn}},format:{function:"function"},title:{text:{string:m7,number:ve,undefined:"undefined"},style:{string:m7,undefined:"undefined"},__type__:{object:vn}},__type__:{object:vn}},right:{range:{min:{number:ve,undefined:"undefined"},max:{number:ve,undefined:"undefined"},__type__:{object:vn}},format:{function:"function"},title:{text:{string:m7,number:ve,undefined:"undefined"},style:{string:m7,undefined:"undefined"},__type__:{object:vn}},__type__:{object:vn}},__type__:{object:vn}},legend:{enabled:{boolean:vt},icons:{boolean:vt},left:{visible:{boolean:vt},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:vn}},right:{visible:{boolean:vt},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:vn}},__type__:{object:vn,boolean:vt}},groups:{visibility:{any:"any"},__type__:{object:vn}},autoResize:{boolean:vt},throttleRedraw:{number:ve},clickToUse:{boolean:vt},end:{number:ve,date:vi,string:m7,moment:vo},format:{minorLabels:{millisecond:{string:m7,undefined:"undefined"},second:{string:m7,undefined:"undefined"},minute:{string:m7,undefined:"undefined"},hour:{string:m7,undefined:"undefined"},weekday:{string:m7,undefined:"undefined"},day:{string:m7,undefined:"undefined"},week:{string:m7,undefined:"undefined"},month:{string:m7,undefined:"undefined"},quarter:{string:m7,undefined:"undefined"},year:{string:m7,undefined:"undefined"},__type__:{object:vn}},majorLabels:{millisecond:{string:m7,undefined:"undefined"},second:{string:m7,undefined:"undefined"},minute:{string:m7,undefined:"undefined"},hour:{string:m7,undefined:"undefined"},weekday:{string:m7,undefined:"undefined"},day:{string:m7,undefined:"undefined"},week:{string:m7,undefined:"undefined"},month:{string:m7,undefined:"undefined"},quarter:{string:m7,undefined:"undefined"},year:{string:m7,undefined:"undefined"},__type__:{object:vn}},__type__:{object:vn}},moment:{function:"function"},height:{string:m7,number:ve},hiddenDates:{start:{date:vi,number:ve,string:m7,moment:vo},end:{date:vi,number:ve,string:m7,moment:vo},repeat:{string:m7},__type__:{object:vn,array:"array"}},locale:{string:m7},locales:{__any__:{any:"any"},__type__:{object:vn}},max:{date:vi,number:ve,string:m7,moment:vo},maxHeight:{number:ve,string:m7},maxMinorChars:{number:ve},min:{date:vi,number:ve,string:m7,moment:vo},minHeight:{number:ve,string:m7},moveable:{boolean:vt},multiselect:{boolean:vt},orientation:{string:m7},showCurrentTime:{boolean:vt},showMajorLabels:{boolean:vt},showMinorLabels:{boolean:vt},showWeekScale:{boolean:vt},snap:{function:"function",null:"null"},start:{date:vi,number:ve,string:m7,moment:vo},timeAxis:{scale:{string:m7,undefined:"undefined"},step:{number:ve,undefined:"undefined"},__type__:{object:vn}},width:{string:m7,number:ve},zoomable:{boolean:vt},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:ve},zoomMin:{number:ve},zIndex:{number:ve},__type__:{object:vn}},vs={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function va(t,e,n,o){if(!(r6(n)||p6(n))&&n instanceof Object){var r,s,a,l,h,u,d,c=o;o=n,n=c}o&&o.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var p=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:pv,width:null,height:null,maxHeight:null,minHeight:null},this.options=fr.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:sm(r=this.on).call(r,this),off:sm(s=this.off).call(s,this),emit:sm(a=this.emit).call(a,this)},hiddenDates:[],util:{getScale:function(){return p.timeAxis.step.scale},getStep:function(){return p.timeAxis.step.step},toScreen:sm(l=p._toScreen).call(l,p),toGlobalScreen:sm(h=p._toGlobalScreen).call(h,p),toTime:sm(u=p._toTime).call(u,p),toGlobalTime:sm(d=p._toGlobalTime).call(
30d,p)}},this.range=new fT(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new fL(this.body),this.components.push(this.timeAxis),this.currentTime=new f0(this.body),this.components.push(this.currentTime),this.linegraph=new m9(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(t){p.emit("click",p.getEventProperties(t))}),this.on("doubletap",function(t){p.emit("doubleClick",p.getEventProperties(t))}),this.dom.root.oncontextmenu=function(t){p.emit("contextmenu",p.getEventProperties(t))},this.initialFitDone=!1,this.on("changed",function(){if(null!=p.itemsData){if(!p.initialFitDone&&!p.options.rollingMode){if(p.initialFitDone=!0,void 0!=p.options.start||void 0!=p.options.end){if(void 0==p.options.start||void 0==p.options.end)var t=p.getItemRange();var e=void 0!=p.options.start?p.options.start:t.min,n=void 0!=p.options.end?p.options.end:t.max;p.setWindow(e,n,{animation:!1})}else p.fit({animation:!1})}!p.initialDrawDone&&(p.initialRangeChangeDone||!p.options.start&&!p.options.end||p.options.rollingMode)&&(p.initialDrawDone=!0,p.dom.root.style.visibility="visible",p.dom.loadingScreen.parentNode.removeChild(p.dom.loadingScreen),p.options.onInitialDrawComplete&&aj(function(){return p.options.onInitialDrawComplete()},0))}}),o&&this.setOptions(o),n&&this.setGroups(n),e&&this.setItems(e),this._redraw()}va.prototype=new fQ,va.prototype.setOptions=function(t){!0===mN.validate(t,vr)&&console.log("%cErrors have been found in the supplied options object.",mL),fQ.prototype.setOptions.call(this,t)},va.prototype.setItems=function(t){var e,n=null==this.itemsData;if(e=t?p6(t)?fe(t):fe(new pf(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.linegraph&&this.linegraph.setItems(null!=e?e.rawDS:null),n){if(void 0!=this.options.start||void 0!=this.options.end){var o=void 0!=this.options.start?this.options.start:null,r=void 0!=this.options.end?this.options.end:null;this.setWindow(o,r,{animation:!1})}else this.fit({animation:!1})}},va.prototype.setGroups=function(t){var e;e=t?p6(t)?t:new pf(t):null,this.groupsData=e,this.linegraph.setGroups(e)},va.prototype.getLegend=function(t,e,n){return(void 0===e&&(e=15),void 0===n&&(n=15),void 0!==this.linegraph.groups[t])?this.linegraph.groups[t].getLegend(e,n):"cannot find group:'"+t+"'"},va.prototype.isGroupVisible=function(t){return void 0!==this.linegraph.groups[t]&&this.linegraph.groups[t].visible&&(void 0===this.linegraph.options.groups.visibility[t]||!0==this.linegraph.options.groups.visibility[t])},va.prototype.getDataRange=function(){var t=null,e=null;for(var n in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(n)&&!0==this.linegraph.groups[n].visible)for(var o=0;o<this.linegraph.groups[n].itemsData.length;o++){var r=this.linegraph.groups[n].itemsData[o],s=fr.convert(r.x,"Date").valueOf();t=null==t?s:t>s?s:t,e=null==e?s:e<s?s:e}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},va.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY,o=e-fr.getAbsoluteLeft(this.dom.centerContainer),r=n-fr.getAbsoluteTop(this.dom.centerContainer),s=this._toTime(o),a=fJ.customTimeFromTarget(t),l=fr.getTarget(t),h=null;fr.hasParent(l,this.timeAxis.dom.foreground)?h="axis":this.timeAxis2&&fr.hasParent(l,this.timeAxis2.dom.foreground)?h="axis":fr.hasParent(l,this.linegraph.yAxisLeft.dom.frame)?h="data-axis":fr.hasParent(l,this.linegraph.yAxisRight.dom.frame)?h="data-axis":fr.hasParent(l,this.linegraph.legendLeft.dom.frame)?h="legend":fr.hasParent(l,this.linegraph.legendRight.dom.frame)?h="legend":null!=a?h="custom-time":fr.hasParent(l,this.currentTime.bar)?h="current-time":fr.hasParent(l,this.dom.center)&&(h="background");var u=[],d=this.linegraph.yAxisLeft,c=this.linegraph.yAxisRight;return!d.hidden&&this.itemsData.length>0&&u.push(d.screenToValue(r)),!c.hidden&&this.itemsData.length>0&&u.push(c.screenToValue(r)),{event:t,customTime:a?a.options.id:null,what:h,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:o,y:r,time:s,value:u}},va.prototype._createConfigurator=function(){return new mX(this,this.dom.container,vs)};var vl=function(){try{if(!navigator)return"en";if(navigator.languages&&navigator.languages.length)return navigator.languages;return navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}catch(t){return"en"}}();pv.locale(vl)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.