UNPKG

291 kBJavaScriptView Raw
1/**
2 * vis-graph3d - graph3d
3 * http://visjs.org/
4 *
5 * Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
6 *
7 * @version 5.0.0
8 * @date 2019-07-16T14:14:19Z
9 *
10 * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11 * @copyright (c) 2018-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 */
26!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis={})}(this,function(t){"use strict";function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function n(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ei(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}for(var e,r=(function(ti,t){ti.exports=function(){var e,r;function h(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(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 i(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)d(e,n)&&(t[n]=e[n]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return Ee(t,e,n,i,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=m(t),n=r.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function y(t){var e=f(NaN);return null!=t?c(m(e),t):m(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var v=h.momentProperties=[];function g(t,e){var n,i,r;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=m(e)),s(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)i=v[n],s(r=e[i])||(t[i]=r);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,h.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function D(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&S(t[i])!==S(e[i]))&&a++;return a+s}function M(t){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(r,s){var a=!0;return c(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,r),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}M(r+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var k,x={};function T(t,e){null!=h.deprecationHandler&&h.deprecationHandler(t,e),x[t]||(M(e),x[t]=!0)}function O(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t,e){var n,i=c({},t);for(n in e)d(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},c(i[n],t[n]),c(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)d(t,n)&&!d(e,n)&&o(t[n])&&(i[n]=c({},i[n]));return i}function C(t){null!=t&&this.set(t)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null,k=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)d(t,e)&&n.push(e);return n};var P={};function E(t,e){var n=t.toLowerCase();P[n]=P[n+"s"]=P[e]=t}function L(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)d(t,n)&&(e=L(n))&&(i[e]=t[n]);return i}var A={};function W(t,e){A[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:A[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var i=""+Math.abs(t),r=e-i.length,s=0<=t;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},j={};function G(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(j[t]=r),e&&(j[e[0]]=function(){return N(r.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function z(t,e){return t.isValid()?(e=B(e,t.localeData()),V[e]=V[e]||function(i){var t,r,s=i.match(F);for(t=0,r=s.length;t<r;t++)j[s[t]]?s[t]=j[s[t]]:s[t]=U(s[t]);return function(t){var e,n="";for(e=0;e<r;e++)n+=O(s[e])?s[e].call(t,i):s[e];return n}}(e),V[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;0<=n&&H.test(t);)t=t.replace(H,i),H.lastIndex=0,n-=1;return t}var Z=/\d/,q=/\d\d/,X=/\d{3}/,$=/\d{4}/,Q=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,it=/[+-]?\d{1,6}/,rt=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,ht={};function lt(t,n,i){ht[t]=O(n)?n:function(t,e){return t&&i?i:n}}function dt(t,e){return d(ht,t)?ht[t](e._strict,e._locale):new RegExp(function(t){return ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}(t))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),u(n)&&(i=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)ft[t[e]]=i}function pt(t,r){mt(t,function(t,e,n,i){n._w=n._w||{},r(t,n._w,n,i)})}function yt(t,e,n){null!=e&&d(ft,t)&&ft[t](e,n._a,n,t)}var vt=0,gt=1,_t=2,wt=3,bt=4,St=5,Dt=6,Mt=7,kt=8;function xt(t){return Tt(t)?366:365}function Tt(t){return t%4==0&&t%100!=0||t%400==0}G("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),E("year","y"),W("year",1),lt("Y",st),lt("YY",J,q),lt("YYYY",nt,$),lt("YYYYY",it,Q),lt("YYYYYY",it,Q),mt(["YYYYY","YYYYYY"],vt),mt("YYYY",function(t,e){e[vt]=2===t.length?h.parseTwoDigitYear(t):S(t)}),mt("YY",function(t,e){e[vt]=h.parseTwoDigitYear(t)}),mt("Y",function(t,e){e[vt]=parseInt(t,10)}),h.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Ot,Yt=Ct("FullYear",!0);function Ct(e,n){return function(t){return null!=t?(Et(this,e,t),h.updateOffset(this,n),this):Pt(this,e)}}function Pt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Et(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Tt(t)?29:28:31-n%7%2}Ot=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},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),G("MMMM",0,0,function(t){return this.localeData().months(this,t)}),E("month","M"),W("month",8),lt("M",J),lt("MM",J,q),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),mt(["M","MM"],function(t,e){e[gt]=S(t)-1}),mt(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[gt]=r:m(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ot.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,a))?r:-1!==(r=Ot.call(this._longMonthsParse,a))?r:null:-1!==(r=Ot.call(this._longMonthsParse,a))?r:-1!==(r=Ot.call(this._shortMonthsParse,a))?r:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),h.updateOffset(this,!0),this):Pt(this,"Month")}var Ht=ut;var Vt=ut;function jt(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],s=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)i[e]=ct(i[e]),r[e]=ct(r[e]);for(e=0;e<24;e++)s[e]=ct(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Gt(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ut(t,e,n){var i=7+e-n,r=(7+Gt(t,0,i).getUTCDay()-e)%7;return i-r-1}function zt(t,e,n,i,r){var s,a,o=(7+n-i)%7,u=Ut(t,i,r),h=1+7*(e-1)+o+u;return a=h<=0?xt(s=t-1)+h:h>xt(t)?(s=t+1,h-xt(t)):(s=t,h),{year:s,dayOfYear:a}}function Bt(t,e,n){var i,r,s=Ut(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?(r=t.year()-1,i=a+Zt(r,e,n)):a>Zt(t.year(),e,n)?(i=a-Zt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Zt(t,e,n){var i=Ut(t,e,n),r=Ut(t+1,e,n);return(xt(t)-i+r)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),W("week",5),W("isoWeek",5),lt("w",J),lt("ww",J,q),lt("W",J),lt("WW",J,q),pt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=S(t)});function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),pt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t}),pt(["d","e","E"],function(t,e,n,i){e[i]=S(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Jt(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(i),o.push(r),u.push(s),h.push(i),h.push(r),h.push(s);for(a.sort(t),o.sort(t),u.sort(t),h.sort(t),e=0;e<7;e++)o[e]=ct(o[e]),u[e]=ct(u[e]),h[e]=ct(h[e]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,ie),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+ie.apply(this)+N(this.minutes(),2)}),G("hmmss",0,0,function(){return""+ie.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),re("a",!0),re("A",!1),E("hour","h"),W("hour",13),lt("a",se),lt("A",se),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,q),lt("hh",J,q),lt("kk",J,q),lt("hmm",K),lt("hmmss",tt),lt("Hmm",K),lt("Hmmss",tt),mt(["H","HH"],wt),mt(["k","kk"],function(t,e,n){var i=S(t);e[wt]=24===i?0:i}),mt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),mt(["h","hh"],function(t,e,n){e[wt]=S(t),m(n).bigHour=!0}),mt("hmm",function(t,e,n){var i=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i)),m(n).bigHour=!0}),mt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i,2)),e[St]=S(t.substr(r)),m(n).bigHour=!0}),mt("Hmm",function(t,e,n){var i=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i))}),mt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i,2)),e[St]=S(t.substr(r))});var ae,oe=Ct("Hours",!0),ue={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Qt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},he={},le={};function de(t){return t?t.toLowerCase().replace("_","-"):t}function ce(t){var e=null;if(!he[t]&&ti&&ti.exports)try{e=ae._abbr;var n=ei;n("./locale/"+t),fe(e)}catch(t){}return he[t]}function fe(t,e){var n;return t&&((n=s(e)?pe(t):me(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function me(t,e){if(null===e)return delete he[t],null;var n,i=ue;if(e.abbr=t,null!=he[t])T("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."),i=he[t]._config;else if(null!=e.parentLocale)if(null!=he[e.parentLocale])i=he[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return le[e.parentLocale]||(le[e.parentLocale]=[]),le[e.parentLocale].push({name:t,config:e}),null;i=n._config}return he[t]=new C(Y(i,e)),le[t]&&le[t].forEach(function(t){me(t.name,t.config)}),fe(t),he[t]}function pe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=ce(t))return e;t=[t]}return function(t){var e,n,i,r,s=0;for(;s<t.length;){for(r=de(t[s]).split("-"),e=r.length,n=(n=de(t[s+1]))?n.split("-"):null;0<e;){if(i=ce(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&D(r,n,!0)>=e-1)break;e--}s++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[vt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[Dt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[Dt]<0||999<n[Dt]?Dt:-1,m(t)._overflowDayOfYear&&(e<vt||_t<e)&&(e=_t),m(t)._overflowWeeks&&-1===e&&(e=Mt),m(t)._overflowWeekday&&-1===e&&(e=kt),m(t).overflow=e),t}function ve(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,i,r,s,a=[];if(!t._d){for(i=function(t){var e=new Date(h.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,i,r,s,a,o,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)s=1,a=4,n=ve(e.GG,t._a[vt],Bt(Le(),1,4).year),i=ve(e.W,1),((r=ve(e.E,1))<1||7<r)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var h=Bt(Le(),s,a);n=ve(e.gg,t._a[vt],h.year),i=ve(e.w,h.week),null!=e.d?((r=e.d)<0||6<r)&&(u=!0):null!=e.e?(r=e.e+s,(e.e<0||6<e.e)&&(u=!0)):r=s}i<1||i>Zt(n,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=zt(n,i,r,s,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ve(t._a[vt],i[vt]),(t._dayOfYear>xt(s)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Gt(s,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[Dt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Gt:function(t,e,n,i,r,s,a){var o;t<100&&0<=t?(o=new Date(t+400,e,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,r,s,a);return o}).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(m(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],De=[["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/]],Me=/^\/?Date\((\-?\d+)/i;function ke(t){var e,n,i,r,s,a,o=t._i,u=_e.exec(o)||we.exec(o);if(u){for(m(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){r=Se[e][0],i=!1!==Se[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=De.length;e<n;e++)if(De[e][1].exec(u[3])){s=(u[2]||" ")+De[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Ce(t)}else t._isValid=!1}var xe=/^(?:(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}))$/;function Te(t,e,n,i,r,s){var a=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Wt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return s&&a.push(parseInt(s,10)),a}var Oe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t){var e=xe.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Te(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var i=$t.indexOf(t),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return m(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Oe[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return 60*((i-r)/100)+r}}(e[8],e[9],e[10]),t._d=Gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Ce(t){if(t._f!==h.ISO_8601)if(t._f!==h.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,r,s,a=""+t._i,o=a.length,u=0;for(i=B(t._f,t._locale).match(F)||[],e=0;e<i.length;e++)r=i[e],(n=(a.match(dt(r,t))||[])[0])&&(0<(s=a.substr(0,a.indexOf(n))).length&&m(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),u+=n.length),j[r]?(n?m(t).empty=!1:m(t).unusedTokens.push(r),yt(r,n,t)):t._strict&&!n&&m(t).unusedTokens.push(r);m(t).charsLeftOver=o-u,0<a.length&&m(t).unusedInput.push(a),t._a[wt]<=12&&!0===m(t).bigHour&&0<t._a[wt]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Ye(t);else ke(t)}function Pe(t){var e=t._i,n=t._f;return t._locale=t._locale||pe(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(l(e)?t._d=e:a(n)?function(t){var e,n,i,r,s;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)s=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ce(e),p(e)&&(s+=m(e).charsLeftOver,s+=10*m(e).unusedTokens.length,m(e).score=s,(null==i||s<i)&&(i=s,n=e));c(t,n||e)}(t):n?Ce(t):function(t){var e=t._i;s(e)?t._d=new Date(h.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Me.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(ke(t),!1!==t._isValid)return;delete t._isValid}{if(Ye(t),!1!==t._isValid)return;delete t._isValid}h.createFromInputFallback(t)}(t):a(e)?(t._a=i(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):o(e)?function(t){if(t._d)return;var e=R(t._i);t._a=i([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):h.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ee(t,e,n,i,r){var s={};return!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&function(t){{if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}}(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=t,s._f=e,s._strict=i,function(t){var e=new _(ye(Pe(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(s)}function Le(t,e,n,i){return Ee(t,e,n,i,!1)}h.createFromInputFallback=t("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var Re=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Ae=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function We(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=R(t),n=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,l=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ot.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ie.length;++i)if(t[Ie[i]]){if(n)return!1;parseFloat(t[Ie[i]])!==S(t[Ie[i]])&&(n=!0)}return!0}(e),this._milliseconds=+l+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=pe(),this._bubble()}function Fe(t){return t instanceof Ne}function He(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,n){G(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}Ve("Z",":"),Ve("ZZ",""),lt("Z",ot),lt("ZZ",ot),mt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ge(ot,t)});var je=/([\+\-]|\d\d)/gi;function Ge(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],r=(i+"").match(je)||["-",0,0],s=60*r[1]+S(r[2]);return 0===s?0:"+"===r[0]?s:-s}function Ue(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(w(t)||l(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),h.updateOffset(n,!1),n):Le(t).local()}function ze(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}h.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,s=t,a=null;return Fe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(He(1e3*a[Dt]))*n}):(a=qe.exec(t))?(n="-"===a[1]?-1:1,s={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Ue(e,t),t.isBefore(e)?n=Qe(t,e):((n=Qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(s.from),Le(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),i=new Ne(s),Fe(t)&&d(t,"_locale")&&(i._locale=t._locale),i}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qe(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Je(i,r){return function(t,e){var n;return null===e||isNaN(+e)||(T(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,Xe(t="string"==typeof t?+t:t,e),i),this}}function Ke(t,e,n,i){var r=e._milliseconds,s=He(e._days),a=He(e._months);t.isValid()&&(i=null==i||i,a&&Nt(t,Pt(t,"Month")+a*n),s&&Et(t,"Date",Pt(t,"Date")+s*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&h.updateOffset(t,s||a))}Xe.fn=Ne.prototype,Xe.invalid=function(){return Xe(NaN)};var tn=Je(1,"add"),en=Je(-1,"subtract");function nn(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return i=e-s<0?(n=t.clone().add(r-1,"months"),(e-s)/(s-n)):(n=t.clone().add(1+r,"months"),(e-s)/(n-s)),-(r+i)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=pe(t))&&(this._locale=e),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=t("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 an(){return this._locale}var on=126227808e5;function un(t,e){return(t%e+e)%e}function hn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-on:new Date(t,e,n).valueOf()}function ln(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-on:Date.UTC(t,e,n)}function dn(t,e){G(0,[t,t.length],0,e)}function cn(t,e,n,i,r){var s;return null==t?Bt(this,i,r).year:((s=Zt(t,i,r))<e&&(e=s),function(t,e,n,i,r){var s=zt(t,e,n,i,r),a=Gt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,i,r))}G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),lt("G",st),lt("g",st),lt("GG",J,q),lt("gg",J,q),lt("GGGG",nt,$),lt("gggg",nt,$),lt("GGGGG",it,Q),lt("ggggg",it,Q),pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=S(t)}),pt(["gg","GG"],function(t,e,n,i){e[i]=h.parseTwoDigitYear(t)}),G("Q",0,"Qo","quarter"),E("quarter","Q"),W("quarter",7),lt("Q",Z),mt("Q",function(t,e){e[gt]=3*(S(t)-1)}),G("D",["DD",2],"Do","date"),E("date","D"),W("date",9),lt("D",J),lt("DD",J,q),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],_t),mt("Do",function(t,e){e[_t]=S(t.match(J)[0])});var fn=Ct("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),W("dayOfYear",4),lt("DDD",et),lt("DDDD",X),mt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),G("m",["mm",2],0,"minute"),E("minute","m"),W("minute",14),lt("m",J),lt("mm",J,q),mt(["m","mm"],bt);var mn=Ct("Minutes",!1);G("s",["ss",2],0,"second"),E("second","s"),W("second",15),lt("s",J),lt("ss",J,q),mt(["s","ss"],St);var pn,yn=Ct("Seconds",!1);for(G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),E("millisecond","ms"),W("millisecond",16),lt("S",et,Z),lt("SS",et,q),lt("SSS",et,X),pn="SSSS";pn.length<=9;pn+="S")lt(pn,rt);function vn(t,e){e[Dt]=S(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")mt(pn,vn);var gn=Ct("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),i=Ue(n,this).startOf("day"),r=h.calendarFormat(this,i)||"sameElse",s=e&&(O(e[r])?e[r].call(this,n):e[r]);return this.format(s||this.localeData().calendar(r,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Ue(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=L(e)){case"year":s=nn(this,i)/12;break;case"month":s=nn(this,i);break;case"quarter":s=nn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:b(s)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ln:hn;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),h.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(O(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,i){var r=w(t)?t:Le(t),s=w(e)?e:Le(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n)))},_n.isSame=function(t,e){var n,i=w(t)?t:Le(t);if(!this.isValid()||!i.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return p(this)},_n.lang=sn,_n.locale=rn,_n.localeData=an,_n.max=Ae,_n.min=Re,_n.parsingFlags=function(){return c({},m(this))},_n.set=function(t,e){if("object"==typeof t)for(var n=I(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(O(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ln:hn;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),h.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},_n.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(O(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z"));return z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Yt,_n.isLeapYear=function(){return Tt(this.year())},_n.weekYear=function(t){return cn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return cn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=fn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,i=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=i.weekdaysParse(n))?null:n:parseInt(n,10):n,this.add(t-e,"d")):e;var n,i},_n.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")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,i=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:i.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,i},_n.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")},_n.hour=_n.hours=oe,_n.minute=_n.minutes=mn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?r:ze(this);if("string"==typeof t){if(null===(t=Ge(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=ze(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?Ke(this,Xe(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ze(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ge(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",fn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Yt),_n.zone=t("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()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Pe(t))._a){var e=t._isUTC?f(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<D(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=C.prototype;function Sn(t,e,n,i){var r=pe(),s=f().set(i,e);return r[n](s,t)}function Dn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Sn(t,i,n,"month");return r}function Mn(t,e,n,i){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var r,s=pe(),a=t?s._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,i,"day");var o=[];for(r=0;r<7;r++)o[r]=Sn(e,(r+a)%7,i,"day");return o}bn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return O(i)?i.call(e,n):i},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return O(r)?r(t,e,n,i):r.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return O(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)O(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var i,r,s;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},bn.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Vt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ht),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var i,r,s;if(this._weekdaysParseExact)return Jt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},fe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),h.lang=t("moment.lang is deprecated. Use moment.locale instead.",fe),h.langData=t("moment.langData is deprecated. Use moment.localeData instead.",pe);var kn=Math.abs;function xn(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Tn(t){return t<0?Math.floor(t):Math.ceil(t)}function On(t){return 4800*t/146097}function Yn(t){return 146097*t/4800}function Cn(t){return function(){return this.as(t)}}var Pn=Cn("ms"),En=Cn("s"),Ln=Cn("m"),Rn=Cn("h"),An=Cn("d"),Wn=Cn("w"),In=Cn("M"),Nn=Cn("Q"),Fn=Cn("y");function Hn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vn=Hn("milliseconds"),jn=Hn("seconds"),Gn=Hn("minutes"),Un=Hn("hours"),zn=Hn("days"),Bn=Hn("months"),Zn=Hn("years");var qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Qn(t){return(0<t)-(t<0)||+t}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,i=$n(this._days),r=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var s=b(r/12),a=r%=12,o=i,u=e,h=t,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var c=d<0?"-":"",f=Qn(this._months)!==Qn(d)?"-":"",m=Qn(this._days)!==Qn(d)?"-":"",p=Qn(this._milliseconds)!==Qn(d)?"-":"";return c+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||h||l?"T":"")+(u?p+u+"H":"")+(h?p+h+"M":"")+(l?p+l+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),t.milliseconds=kn(t.milliseconds),t.seconds=kn(t.seconds),t.minutes=kn(t.minutes),t.hours=kn(t.hours),t.months=kn(t.months),t.years=kn(t.years),this},Kn.add=function(t,e){return xn(this,t,e,1)},Kn.subtract=function(t,e){return xn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+On(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Yn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=Pn,Kn.asSeconds=En,Kn.asMinutes=Ln,Kn.asHours=Rn,Kn.asDays=An,Kn.asWeeks=Wn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,i,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=s&&0<=a&&0<=o||s<=0&&a<=0&&o<=0||(s+=864e5*Tn(Yn(o)+a),o=a=0),u.milliseconds=s%1e3,t=b(s/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),r=b(On(a)),o+=r,a-=Tn(Yn(r)),i=b(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},Kn.clone=function(){return Xe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=Vn,Kn.seconds=jn,Kn.minutes=Gn,Kn.hours=Un,Kn.days=zn,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var i=Xe(t).abs(),r=qn(i.as("s")),s=qn(i.as("m")),a=qn(i.as("h")),o=qn(i.as("d")),u=qn(i.as("M")),h=qn(i.as("y")),l=r<=Xn.ss&&["s",r]||r<Xn.s&&["ss",r]||s<=1&&["m"]||s<Xn.m&&["mm",s]||a<=1&&["h"]||a<Xn.h&&["hh",a]||o<=1&&["d"]||o<Xn.d&&["dd",o]||u<=1&&["M"]||u<Xn.M&&["MM",u]||h<=1&&["y"]||["yy",h];return l[2]=e,l[3]=0<+t,l[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,l)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Jn,Kn.toString=Jn,Kn.toJSON=Jn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Kn.lang=sn,G("X",0,0,"unix"),G("x",0,0,"valueOf"),lt("x",st),lt("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),mt("x",function(t,e,n){n._d=new Date(S(t))}),h.version="2.24.0",function(t){e=t}(Le),h.fn=_n,h.min=function(){return We("isBefore",[].slice.call(arguments,0))},h.max=function(){return We("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=f,h.unix=function(t){return Le(1e3*t)},h.months=function(t,e){return Dn(t,e,"months")},h.isDate=l,h.locale=fe,h.invalid=y,h.duration=Xe,h.isMoment=w,h.weekdays=function(t,e,n){return Mn(t,e,n,"weekdays")},h.parseZone=function(){return Le.apply(null,arguments).parseZone()},h.localeData=pe,h.isDuration=Fe,h.monthsShort=function(t,e){return Dn(t,e,"monthsShort")},h.weekdaysMin=function(t,e,n){return Mn(t,e,n,"weekdaysMin")},h.defineLocale=me,h.updateLocale=function(t,e){if(null!=e){var n,i,r=ue;null!=(i=ce(t))&&(r=i._config),e=Y(r,e),(n=new C(e)).parentLocale=he[t],he[t]=n,fe(t)}else null!=he[t]&&(null!=he[t].parentLocale?he[t]=he[t].parentLocale:null!=he[t]&&delete he[t]);return he[t]},h.locales=function(){return k(he)},h.weekdaysShort=function(t,e,n){return Mn(t,e,n,"weekdaysShort")},h.normalizeUnits=L,h.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(qn=t,!0):qn},h.relativeTimeThreshold=function(t,e){return void 0!==Xn[t]&&(void 0===e?Xn[t]:(Xn[t]=e,"s"===t&&(Xn.ss=e-1),!0))},h.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"},h.prototype=_n,h.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"},h}()}(e={exports:{}},e.exports),e.exports),s=[],a=0;a<256;a++)s[a]=(a+256).toString(16).substr(1);for(var o=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),u=[],h=0;h<256;h++)u[h]=(h+256).toString(16).substr(1);var d=o();d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7];function c(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length?arguments[1]:void 0,n=e&&(2<arguments.length?arguments[2]:void 0)||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var i=t.random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var r=0;r<16;r++)e[n+r]=i[r];return e||function(t,e){var n=e||0,i=s;return i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]}(i)}var f=/^\/?Date\((-?\d+)/i,m=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,p=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;function y(t){return t instanceof Number||"number"==typeof t}function v(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(v(e),t.removeChild(e))}}function g(t){return t instanceof String||"string"==typeof t}function _(t){return"object"===l(t)&&null!==t}function w(t){if(t instanceof Date)return!0;if(g(t)){if(f.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function b(t){return r.isMoment(t)}function S(t,e,n,i){var r=!1;!0===i&&(r=null===e[n]&&void 0!==t[n]),r?delete t[n]:t[n]=e[n]}function D(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];for(var i in t)if(void 0!==e[i])if(null===e[i]||"object"!==l(e[i]))S(t,e,i,n);else{var r=t[i],s=e[i];_(r)&&_(s)&&D(r,s,n)}}var M=Object.assign;function k(t,e){if(!Array.isArray(t))throw new Error("Array with property names expected as first argument");for(var n=2;n<(arguments.length<=2?0:arguments.length-2);n++)for(var i=n+2<2||arguments.length<=n+2?void 0:arguments[n+2],r=0;r<t.length;r++){var s=t[r];i&&Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}function x(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(n))throw new 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?O(e[s],n[s],!1,i):S(e,n,s,i);else{if(Array.isArray(n[s]))throw new TypeError("Arrays are not supported by deepExtend");S(e,n,s,i)}}return e}function T(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&-1===t.indexOf(r))if(n[r]&&n[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?O(e[r],n[r]):S(e,n,r,i);else if(Array.isArray(n[r])){e[r]=[];for(var s=0;s<n[r].length;s++)e[r].push(n[r][s])}else S(e,n,r,i);return e}function O(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===n)if(e[r]&&e[r].constructor===Object)void 0===t[r]&&(t[r]={}),t[r].constructor===Object?O(t[r],e[r],n):S(t,e,r,i);else if(Array.isArray(e[r])){t[r]=[];for(var s=0;s<e[r].length;s++)t[r].push(e[r][s])}else S(t,e,r,i);return t}function Y(t,e){if(t.length!==e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]!=e[n])return!1;return!0}function C(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 new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return g(t)&&!isNaN(Date.parse(t))?r(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(y(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(b(t))return new Date(t.valueOf());if(g(t))return(n=f.exec(t))?new Date(Number(n[1])):r(new Date(t)).toDate();throw new Error("Cannot convert object of type "+P(t)+" to type Date");case"Moment":if(y(t))return r(t);if(t instanceof Date)return r(t.valueOf());if(b(t))return r(t);if(g(t))return n=f.exec(t),r(n?Number(n[1]):t);throw new Error("Cannot convert object of type "+P(t)+" to type Date");case"ISODate":if(y(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(b(t))return t.toDate().toISOString();if(g(t))return(n=f.exec(t))?new Date(Number(n[1])).toISOString():r(t).format();throw new Error("Cannot convert object of type "+P(t)+" to type ISODate");case"ASPDate":if(y(t))return"/Date("+t+")/";if(t instanceof Date)return"/Date("+t.valueOf()+")/";if(g(t))return"/Date("+((n=f.exec(t))?new Date(Number(n[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+P(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function P(t){var e=l(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Array.isArray(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function E(t,e){return[].concat(n(t),[e])}function L(t){return t.slice()}function R(t){return t.getBoundingClientRect().left}function A(t){return t.getBoundingClientRect().right}function W(t){return t.getBoundingClientRect().top}function I(t,e){var n=t.className.split(" "),i=e.split(" ");n=n.concat(i.filter(function(t){return n.indexOf(t)<0})),t.className=n.join(" ")}function N(t,e){var n=t.className.split(" "),i=e.split(" ");n=n.filter(function(t){return i.indexOf(t)<0}),t.className=n.join(" ")}function F(t,e){if(Array.isArray(t))for(var n=t.length,i=0;i<n;i++)e(t[i],i,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],r,t)}var H=Object.values;function V(t,e,n){return t[e]!==n&&(t[e]=n,!0)}function j(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}}function G(t,e,n,i){t.addEventListener?(void 0===i&&(i=!1),"mousewheel"===e&&0<=navigator.userAgent.indexOf("Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,i)):t.attachEvent("on"+e,n)}function U(t,e,n,i){t.removeEventListener?(void 0===i&&(i=!1),"mousewheel"===e&&0<=navigator.userAgent.indexOf("Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,i)):t.detachEvent("on"+e,n)}function z(t){(t=t||window.event)&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function B(){var t=0<arguments.length&&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}function Z(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1}var q={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),g(t)?t:y(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function X(t){var e;switch(t.length){case 3:case 4:return(e=p.exec(t))?{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16)}:null;case 6:case 7:return(e=m.exec(t))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null;default:return null}}function $(t,e){if(-1!==t.indexOf("rgba"))return t;if(-1!==t.indexOf("rgb")){var n=t.substr(t.indexOf("(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var i=X(t);return null==i?t:"rgba("+i.r+","+i.g+","+i.b+","+e+")"}function Q(t,e,n){return"#"+((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)}function J(t,e){if(g(t)){var n=t;if(ut(n)){var i=n.substr(4).substr(0,n.length-5).split(",").map(function(t){return parseInt(t)});n=Q(i[0],i[1],i[2])}if(!0!==ot(n))return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}};var r=at(n),s={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},a={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},o=st(a.h,a.s,a.v),u=st(s.h,s.s,s.v);return{background:n,border:o,highlight:{background:u,border:o},hover:{background:u,border:o}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:g(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:g(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:g(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:g(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function K(t,e,n){t/=255,e/=255,n/=255;var i=Math.min(t,Math.min(e,n)),r=Math.max(t,Math.max(e,n));return i===r?{h:0,s:0,v:i}:{h:60*((t===i?3:n===i?1:5)-(t===i?e-n:n===i?t-e:n-t)/(r-i))/360,s:(r-i)/r,v:r}}var tt=function(t){var r={};return t.split(";").forEach(function(t){if(""!=t.trim()){var e=t.split(":"),n=e[0].trim(),i=e[1].trim();r[n]=i}}),r},et=function(e){return Object.keys(e).map(function(t){return t+": "+e[t]}).join("; ")};function nt(t,e){var n=function(r){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(s,!0).forEach(function(t){var e,n,i;e=r,i=s[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):i(s).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(s,t))})}return r}({},tt(t.style.cssText),{},tt(e));t.style.cssText=et(n)}function it(t,e){var n=tt(t.style.cssText),i=tt(e);for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&delete n[r];t.style.cssText=et(n)}function rt(t,e,n){var i,r,s,a=Math.floor(6*t),o=6*t-a,u=n*(1-e),h=n*(1-o*e),l=n*(1-(1-o)*e);switch(a%6){case 0:i=n,r=l,s=u;break;case 1:i=h,r=n,s=u;break;case 2:i=u,r=n,s=l;break;case 3:i=u,r=h,s=n;break;case 4:i=l,r=u,s=n;break;case 5:i=n,r=u,s=h}return{r:Math.floor(255*i),g:Math.floor(255*r),b:Math.floor(255*s)}}function st(t,e,n){var i=rt(t,e,n);return Q(i.r,i.g,i.b)}function at(t){var e=X(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return K(e.r,e.g,e.b)}function ot(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function ut(t){return t=t.replace(" ",""),/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(t)}function ht(t){return t=t.replace(" ",""),/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(0?.{1,3})\)/i.test(t)}function lt(t,e){if(null===e||"object"!==l(e))return null;for(var n=Object.create(e),i=0;i<t.length;i++)Object.prototype.hasOwnProperty.call(e,t[i])&&"object"==l(e[t[i]])&&(n[t[i]]=dt(e[t[i]]));return n}function dt(t){if(null===t||"object"!==l(t))return null;if(t instanceof Element)return t;var e=Object.create(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==l(t[n])&&(e[n]=dt(t[n]));return e}function ct(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=void 0;for(r=n;0<r&&e(i,t[r-1])<0;r--)t[r]=t[r-1];t[r]=i}return t}function ft(t,e,n){function i(t){return null!=t}function a(t){return null!==t&&"object"===l(t)}var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(!a(t))throw new Error("Parameter mergeTarget must be an object");if(!a(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!a(r))throw new Error("Parameter globalOptions must be an object");var s=e[n],o=a(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,u=o?o.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return a(t[n])||(t[n]={}),void(t[n].enabled=s);if(null===s&&!a(t[n])){if(!i(o))return;t[n]=Object.create(o)}if(a(s)){var h=!0;void 0!==s.enabled?h=s.enabled:void 0!==u&&(h=o.enabled),function(t,e,n){a(t[n])||(t[n]={});var i=e[n],r=t[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}(t,e,n),t[n].enabled=h}}}function mt(t,e,n,i){for(var r=0,s=0,a=t.length-1;s<=a&&r<1e4;){var o=Math.floor((s+a)/2),u=t[o],h=e(void 0===i?u[n]:u[n][i]);if(0==h)return o;-1==h?s=o+1:a=o-1,r++}return-1}function pt(t,e,n,i,r){var s,a,o,u,h=0,l=0,d=t.length-1;for(r=null!=r?r:function(t,e){return t==e?0:t<e?-1:1};l<=d&&h<1e4;){if(u=Math.floor(.5*(d+l)),s=t[Math.max(0,u-1)][n],a=t[u][n],o=t[Math.min(t.length-1,u+1)][n],0==r(a,e))return u;if(r(s,e)<0&&0<r(a,e))return"before"==i?Math.max(0,u-1):u;if(r(a,e)<0&&0<r(o,e))return"before"==i?u:Math.min(t.length-1,u+1);r(a,e)<0?l=u+1:d=u-1,h++}return-1}var yt={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function vt(){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 i=t.offsetWidth;return n==i&&(i=e.clientWidth),document.body.removeChild(e),n-i}function gt(t,e){var n;Array.isArray(e)||(e=[e]);var i=!0,r=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(i=(a=o.next()).done);i=!0){var u=a.value;if(u){n=u[e[0]];for(var h=1;h<e.length;h++)n=n&&n[e[h]];if(void 0!==n)break}}}catch(t){r=!0,s=t}finally{try{i||null==o.return||o.return()}finally{if(r)throw s}}return n}var _t=Object.freeze({isNumber:y,recursiveDOMDelete:v,isString:g,isObject:_,isDate:w,isMoment:b,fillIfDefined:D,extend:M,selectiveExtend:k,selectiveDeepExtend:x,selectiveNotDeepExtend:T,deepExtend:O,equalArray:Y,convert:C,getType:P,copyAndExtendArray:E,copyArray:L,getAbsoluteLeft:R,getAbsoluteRight:A,getAbsoluteTop:W,addClassName:I,removeClassName:N,forEach:F,toArray:H,updateProperty:V,throttle:j,addEventListener:G,removeEventListener:U,preventDefault:z,getTarget:B,hasParent:Z,option:q,hexToRGB:X,overrideOpacity:$,RGBToHex:Q,parseColor:J,RGBToHSV:K,addCssText:nt,removeCssText:it,HSVToRGB:rt,HSVToHex:st,hexToHSV:at,isValidHex:ot,isValidRGB:ut,isValidRGBA:ht,selectiveBridgeObject:lt,bridgeObject:dt,insertSort:ct,mergeOptions:ft,binarySearchCustom:mt,binarySearchValue:pt,easingFunctions:yt,getScrollBarWidth:vt,topMost:gt,randomUUID:c}),wt=Object.freeze({default:_t,HSVToHex:st,HSVToRGB:rt,RGBToHSV:K,RGBToHex:Q,addClassName:I,addCssText:nt,addEventListener:G,binarySearchCustom:mt,binarySearchValue:pt,bridgeObject:dt,convert:C,copyAndExtendArray:E,copyArray:L,deepExtend:O,easingFunctions:yt,equalArray:Y,extend:M,fillIfDefined:D,forEach:F,getAbsoluteLeft:R,getAbsoluteRight:A,getAbsoluteTop:W,getScrollBarWidth:vt,getTarget:B,getType:P,hasParent:Z,hexToHSV:at,hexToRGB:X,insertSort:ct,isDate:w,isMoment:b,isNumber:y,isObject:_,isString:g,isValidHex:ot,isValidRGB:ut,isValidRGBA:ht,mergeOptions:ft,option:q,overrideOpacity:$,parseColor:J,preventDefault:z,randomUUID:c,recursiveDOMDelete:v,removeClassName:N,removeCssText:it,removeEventListener:U,selectiveBridgeObject:lt,selectiveDeepExtend:x,selectiveExtend:k,selectiveNotDeepExtend:T,throttle:j,toArray:H,topMost:gt,updateProperty:V});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ni(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function bt(t,e){return t(e={exports:{}},e.exports),e.exports}function St(t){return t&&t.default||t}var Dt=bt(function(t,h){h.prepareElements=function(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])},h.cleanupElements=function(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=[]}},h.resetElements=function(t){h.prepareElements(t),h.cleanupElements(t),h.prepareElements(t)},h.getSVGElement=function(t,e,n){var i;return e.hasOwnProperty(t)?0<e[t].redundant.length?(i=e[t].redundant[0],e[t].redundant.shift()):(i=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(i)):(i=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(i)),e[t].used.push(i),i},h.getDOMElement=function(t,e,n,i){var r;return e.hasOwnProperty(t)?0<e[t].redundant.length?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElement(t),void 0!==i?n.insertBefore(r,i):n.appendChild(r)):(r=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==i?n.insertBefore(r,i):n.appendChild(r)),e[t].used.push(r),r},h.drawPoint=function(t,e,n,i,r,s){var a;if("circle"==n.style?((a=h.getSVGElement("circle",i,r)).setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",e),a.setAttributeNS(null,"r",.5*n.size)):((a=h.getSVGElement("rect",i,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 o=h.getSVGElement("text",i,r);s.xOffset&&(t+=s.xOffset),s.yOffset&&(e+=s.yOffset),s.content&&(o.textContent=s.content),s.className&&o.setAttributeNS(null,"class",s.className+" vis-label"),o.setAttributeNS(null,"x",t),o.setAttributeNS(null,"y",e)}return a},h.drawBar=function(t,e,n,i,r,s,a,o){if(0!=i){i<0&&(e-=i*=-1);var u=h.getSVGElement("rect",s,a);u.setAttributeNS(null,"x",t-.5*n),u.setAttributeNS(null,"y",e),u.setAttributeNS(null,"width",n),u.setAttributeNS(null,"height",i),u.setAttributeNS(null,"class",r),o&&u.setAttributeNS(null,"style",o)}}});Dt.prepareElements,Dt.cleanupElements,Dt.resetElements,Dt.getSVGElement,Dt.getDOMElement,Dt.drawPoint,Dt.drawBar;function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function ii(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function kt(t,e){return t(e={exports:{}},e.exports),e.exports}for(var xt=kt(function(ti,t){ti.exports=function(){var e,r;function h(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(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 i(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)d(e,n)&&(t[n]=e[n]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return Ee(t,e,n,i,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=m(t),n=r.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function y(t){var e=f(NaN);return null!=t?c(m(e),t):m(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var v=h.momentProperties=[];function g(t,e){var n,i,r;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=m(e)),s(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)i=v[n],s(r=e[i])||(t[i]=r);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,h.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function D(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&S(t[i])!==S(e[i]))&&a++;return a+s}function M(t){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(r,s){var a=!0;return c(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,r),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}M(r+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var k,x={};function T(t,e){null!=h.deprecationHandler&&h.deprecationHandler(t,e),x[t]||(M(e),x[t]=!0)}function O(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t,e){var n,i=c({},t);for(n in e)d(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},c(i[n],t[n]),c(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)d(t,n)&&!d(e,n)&&o(t[n])&&(i[n]=c({},i[n]));return i}function C(t){null!=t&&this.set(t)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null,k=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)d(t,e)&&n.push(e);return n};var P={};function E(t,e){var n=t.toLowerCase();P[n]=P[n+"s"]=P[e]=t}function L(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)d(t,n)&&(e=L(n))&&(i[e]=t[n]);return i}var A={};function W(t,e){A[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:A[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var i=""+Math.abs(t),r=e-i.length,s=0<=t;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},j={};function G(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(j[t]=r),e&&(j[e[0]]=function(){return N(r.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function z(t,e){return t.isValid()?(e=B(e,t.localeData()),V[e]=V[e]||function(i){var t,r,s=i.match(F);for(t=0,r=s.length;t<r;t++)j[s[t]]?s[t]=j[s[t]]:s[t]=U(s[t]);return function(t){var e,n="";for(e=0;e<r;e++)n+=O(s[e])?s[e].call(t,i):s[e];return n}}(e),V[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;0<=n&&H.test(t);)t=t.replace(H,i),H.lastIndex=0,n-=1;return t}var Z=/\d/,q=/\d\d/,X=/\d{3}/,$=/\d{4}/,Q=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,it=/[+-]?\d{1,6}/,rt=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,ht={};function lt(t,n,i){ht[t]=O(n)?n:function(t,e){return t&&i?i:n}}function dt(t,e){return d(ht,t)?ht[t](e._strict,e._locale):new RegExp(function(t){return ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}(t))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),u(n)&&(i=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)ft[t[e]]=i}function pt(t,r){mt(t,function(t,e,n,i){n._w=n._w||{},r(t,n._w,n,i)})}function yt(t,e,n){null!=e&&d(ft,t)&&ft[t](e,n._a,n,t)}var vt=0,gt=1,_t=2,wt=3,bt=4,St=5,Dt=6,Mt=7,kt=8;function xt(t){return Tt(t)?366:365}function Tt(t){return t%4==0&&t%100!=0||t%400==0}G("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),E("year","y"),W("year",1),lt("Y",st),lt("YY",J,q),lt("YYYY",nt,$),lt("YYYYY",it,Q),lt("YYYYYY",it,Q),mt(["YYYYY","YYYYYY"],vt),mt("YYYY",function(t,e){e[vt]=2===t.length?h.parseTwoDigitYear(t):S(t)}),mt("YY",function(t,e){e[vt]=h.parseTwoDigitYear(t)}),mt("Y",function(t,e){e[vt]=parseInt(t,10)}),h.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Ot,Yt=Ct("FullYear",!0);function Ct(e,n){return function(t){return null!=t?(Et(this,e,t),h.updateOffset(this,n),this):Pt(this,e)}}function Pt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Et(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Tt(t)?29:28:31-n%7%2}Ot=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},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),G("MMMM",0,0,function(t){return this.localeData().months(this,t)}),E("month","M"),W("month",8),lt("M",J),lt("MM",J,q),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),mt(["M","MM"],function(t,e){e[gt]=S(t)-1}),mt(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[gt]=r:m(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ot.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,a))?r:-1!==(r=Ot.call(this._longMonthsParse,a))?r:null:-1!==(r=Ot.call(this._longMonthsParse,a))?r:-1!==(r=Ot.call(this._shortMonthsParse,a))?r:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),h.updateOffset(this,!0),this):Pt(this,"Month")}var Ht=ut;var Vt=ut;function jt(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],s=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)i[e]=ct(i[e]),r[e]=ct(r[e]);for(e=0;e<24;e++)s[e]=ct(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Gt(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ut(t,e,n){var i=7+e-n,r=(7+Gt(t,0,i).getUTCDay()-e)%7;return i-r-1}function zt(t,e,n,i,r){var s,a,o=(7+n-i)%7,u=Ut(t,i,r),h=1+7*(e-1)+o+u;return a=h<=0?xt(s=t-1)+h:h>xt(t)?(s=t+1,h-xt(t)):(s=t,h),{year:s,dayOfYear:a}}function Bt(t,e,n){var i,r,s=Ut(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?(r=t.year()-1,i=a+Zt(r,e,n)):a>Zt(t.year(),e,n)?(i=a-Zt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Zt(t,e,n){var i=Ut(t,e,n),r=Ut(t+1,e,n);return(xt(t)-i+r)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),W("week",5),W("isoWeek",5),lt("w",J),lt("ww",J,q),lt("W",J),lt("WW",J,q),pt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=S(t)});function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),pt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t}),pt(["d","e","E"],function(t,e,n,i){e[i]=S(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Jt(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(i),o.push(r),u.push(s),h.push(i),h.push(r),h.push(s);for(a.sort(t),o.sort(t),u.sort(t),h.sort(t),e=0;e<7;e++)o[e]=ct(o[e]),u[e]=ct(u[e]),h[e]=ct(h[e]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,ie),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+ie.apply(this)+N(this.minutes(),2)}),G("hmmss",0,0,function(){return""+ie.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),re("a",!0),re("A",!1),E("hour","h"),W("hour",13),lt("a",se),lt("A",se),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,q),lt("hh",J,q),lt("kk",J,q),lt("hmm",K),lt("hmmss",tt),lt("Hmm",K),lt("Hmmss",tt),mt(["H","HH"],wt),mt(["k","kk"],function(t,e,n){var i=S(t);e[wt]=24===i?0:i}),mt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),mt(["h","hh"],function(t,e,n){e[wt]=S(t),m(n).bigHour=!0}),mt("hmm",function(t,e,n){var i=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i)),m(n).bigHour=!0}),mt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i,2)),e[St]=S(t.substr(r)),m(n).bigHour=!0}),mt("Hmm",function(t,e,n){var i=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i))}),mt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i,2)),e[St]=S(t.substr(r))});var ae,oe=Ct("Hours",!0),ue={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Qt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},he={},le={};function de(t){return t?t.toLowerCase().replace("_","-"):t}function ce(t){var e=null;if(!he[t]&&ti&&ti.exports)try{e=ae._abbr;var n=ii;n("./locale/"+t),fe(e)}catch(t){}return he[t]}function fe(t,e){var n;return t&&((n=s(e)?pe(t):me(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function me(t,e){if(null===e)return delete he[t],null;var n,i=ue;if(e.abbr=t,null!=he[t])T("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."),i=he[t]._config;else if(null!=e.parentLocale)if(null!=he[e.parentLocale])i=he[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return le[e.parentLocale]||(le[e.parentLocale]=[]),le[e.parentLocale].push({name:t,config:e}),null;i=n._config}return he[t]=new C(Y(i,e)),le[t]&&le[t].forEach(function(t){me(t.name,t.config)}),fe(t),he[t]}function pe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=ce(t))return e;t=[t]}return function(t){var e,n,i,r,s=0;for(;s<t.length;){for(r=de(t[s]).split("-"),e=r.length,n=(n=de(t[s+1]))?n.split("-"):null;0<e;){if(i=ce(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&D(r,n,!0)>=e-1)break;e--}s++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[vt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[Dt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[Dt]<0||999<n[Dt]?Dt:-1,m(t)._overflowDayOfYear&&(e<vt||_t<e)&&(e=_t),m(t)._overflowWeeks&&-1===e&&(e=Mt),m(t)._overflowWeekday&&-1===e&&(e=kt),m(t).overflow=e),t}function ve(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,i,r,s,a=[];if(!t._d){for(i=function(t){var e=new Date(h.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,i,r,s,a,o,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)s=1,a=4,n=ve(e.GG,t._a[vt],Bt(Le(),1,4).year),i=ve(e.W,1),((r=ve(e.E,1))<1||7<r)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var h=Bt(Le(),s,a);n=ve(e.gg,t._a[vt],h.year),i=ve(e.w,h.week),null!=e.d?((r=e.d)<0||6<r)&&(u=!0):null!=e.e?(r=e.e+s,(e.e<0||6<e.e)&&(u=!0)):r=s}i<1||i>Zt(n,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=zt(n,i,r,s,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ve(t._a[vt],i[vt]),(t._dayOfYear>xt(s)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Gt(s,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[Dt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Gt:function(t,e,n,i,r,s,a){var o;t<100&&0<=t?(o=new Date(t+400,e,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,r,s,a);return o}).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(m(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],De=[["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/]],Me=/^\/?Date\((\-?\d+)/i;function ke(t){var e,n,i,r,s,a,o=t._i,u=_e.exec(o)||we.exec(o);if(u){for(m(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){r=Se[e][0],i=!1!==Se[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=De.length;e<n;e++)if(De[e][1].exec(u[3])){s=(u[2]||" ")+De[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Ce(t)}else t._isValid=!1}var xe=/^(?:(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}))$/;function Te(t,e,n,i,r,s){var a=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Wt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return s&&a.push(parseInt(s,10)),a}var Oe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t){var e=xe.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Te(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var i=$t.indexOf(t),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return m(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Oe[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return 60*((i-r)/100)+r}}(e[8],e[9],e[10]),t._d=Gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Ce(t){if(t._f!==h.ISO_8601)if(t._f!==h.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,r,s,a=""+t._i,o=a.length,u=0;for(i=B(t._f,t._locale).match(F)||[],e=0;e<i.length;e++)r=i[e],(n=(a.match(dt(r,t))||[])[0])&&(0<(s=a.substr(0,a.indexOf(n))).length&&m(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),u+=n.length),j[r]?(n?m(t).empty=!1:m(t).unusedTokens.push(r),yt(r,n,t)):t._strict&&!n&&m(t).unusedTokens.push(r);m(t).charsLeftOver=o-u,0<a.length&&m(t).unusedInput.push(a),t._a[wt]<=12&&!0===m(t).bigHour&&0<t._a[wt]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Ye(t);else ke(t)}function Pe(t){var e=t._i,n=t._f;return t._locale=t._locale||pe(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(l(e)?t._d=e:a(n)?function(t){var e,n,i,r,s;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)s=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ce(e),p(e)&&(s+=m(e).charsLeftOver,s+=10*m(e).unusedTokens.length,m(e).score=s,(null==i||s<i)&&(i=s,n=e));c(t,n||e)}(t):n?Ce(t):function(t){var e=t._i;s(e)?t._d=new Date(h.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Me.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(ke(t),!1!==t._isValid)return;delete t._isValid}{if(Ye(t),!1!==t._isValid)return;delete t._isValid}h.createFromInputFallback(t)}(t):a(e)?(t._a=i(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):o(e)?function(t){if(t._d)return;var e=R(t._i);t._a=i([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):h.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ee(t,e,n,i,r){var s={};return!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&function(t){{if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}}(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=t,s._f=e,s._strict=i,function(t){var e=new _(ye(Pe(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(s)}function Le(t,e,n,i){return Ee(t,e,n,i,!1)}h.createFromInputFallback=t("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var Re=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Ae=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function We(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=R(t),n=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,l=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ot.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ie.length;++i)if(t[Ie[i]]){if(n)return!1;parseFloat(t[Ie[i]])!==S(t[Ie[i]])&&(n=!0)}return!0}(e),this._milliseconds=+l+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=pe(),this._bubble()}function Fe(t){return t instanceof Ne}function He(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,n){G(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}Ve("Z",":"),Ve("ZZ",""),lt("Z",ot),lt("ZZ",ot),mt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ge(ot,t)});var je=/([\+\-]|\d\d)/gi;function Ge(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],r=(i+"").match(je)||["-",0,0],s=60*r[1]+S(r[2]);return 0===s?0:"+"===r[0]?s:-s}function Ue(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(w(t)||l(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),h.updateOffset(n,!1),n):Le(t).local()}function ze(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}h.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,s=t,a=null;return Fe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(He(1e3*a[Dt]))*n}):(a=qe.exec(t))?(n="-"===a[1]?-1:1,s={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Ue(e,t),t.isBefore(e)?n=Qe(t,e):((n=Qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(s.from),Le(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),i=new Ne(s),Fe(t)&&d(t,"_locale")&&(i._locale=t._locale),i}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qe(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Je(i,r){return function(t,e){var n;return null===e||isNaN(+e)||(T(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,Xe(t="string"==typeof t?+t:t,e),i),this}}function Ke(t,e,n,i){var r=e._milliseconds,s=He(e._days),a=He(e._months);t.isValid()&&(i=null==i||i,a&&Nt(t,Pt(t,"Month")+a*n),s&&Et(t,"Date",Pt(t,"Date")+s*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&h.updateOffset(t,s||a))}Xe.fn=Ne.prototype,Xe.invalid=function(){return Xe(NaN)};var tn=Je(1,"add"),en=Je(-1,"subtract");function nn(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return i=e-s<0?(n=t.clone().add(r-1,"months"),(e-s)/(s-n)):(n=t.clone().add(1+r,"months"),(e-s)/(n-s)),-(r+i)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=pe(t))&&(this._locale=e),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=t("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 an(){return this._locale}var on=126227808e5;function un(t,e){return(t%e+e)%e}function hn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-on:new Date(t,e,n).valueOf()}function ln(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-on:Date.UTC(t,e,n)}function dn(t,e){G(0,[t,t.length],0,e)}function cn(t,e,n,i,r){var s;return null==t?Bt(this,i,r).year:((s=Zt(t,i,r))<e&&(e=s),function(t,e,n,i,r){var s=zt(t,e,n,i,r),a=Gt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,i,r))}G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),lt("G",st),lt("g",st),lt("GG",J,q),lt("gg",J,q),lt("GGGG",nt,$),lt("gggg",nt,$),lt("GGGGG",it,Q),lt("ggggg",it,Q),pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=S(t)}),pt(["gg","GG"],function(t,e,n,i){e[i]=h.parseTwoDigitYear(t)}),G("Q",0,"Qo","quarter"),E("quarter","Q"),W("quarter",7),lt("Q",Z),mt("Q",function(t,e){e[gt]=3*(S(t)-1)}),G("D",["DD",2],"Do","date"),E("date","D"),W("date",9),lt("D",J),lt("DD",J,q),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],_t),mt("Do",function(t,e){e[_t]=S(t.match(J)[0])});var fn=Ct("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),W("dayOfYear",4),lt("DDD",et),lt("DDDD",X),mt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),G("m",["mm",2],0,"minute"),E("minute","m"),W("minute",14),lt("m",J),lt("mm",J,q),mt(["m","mm"],bt);var mn=Ct("Minutes",!1);G("s",["ss",2],0,"second"),E("second","s"),W("second",15),lt("s",J),lt("ss",J,q),mt(["s","ss"],St);var pn,yn=Ct("Seconds",!1);for(G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),E("millisecond","ms"),W("millisecond",16),lt("S",et,Z),lt("SS",et,q),lt("SSS",et,X),pn="SSSS";pn.length<=9;pn+="S")lt(pn,rt);function vn(t,e){e[Dt]=S(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")mt(pn,vn);var gn=Ct("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),i=Ue(n,this).startOf("day"),r=h.calendarFormat(this,i)||"sameElse",s=e&&(O(e[r])?e[r].call(this,n):e[r]);return this.format(s||this.localeData().calendar(r,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Ue(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=L(e)){case"year":s=nn(this,i)/12;break;case"month":s=nn(this,i);break;case"quarter":s=nn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:b(s)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ln:hn;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),h.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(O(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,i){var r=w(t)?t:Le(t),s=w(e)?e:Le(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n)))},_n.isSame=function(t,e){var n,i=w(t)?t:Le(t);if(!this.isValid()||!i.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return p(this)},_n.lang=sn,_n.locale=rn,_n.localeData=an,_n.max=Ae,_n.min=Re,_n.parsingFlags=function(){return c({},m(this))},_n.set=function(t,e){if("object"==typeof t)for(var n=I(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(O(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ln:hn;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),h.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},_n.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(O(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z"));return z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Yt,_n.isLeapYear=function(){return Tt(this.year())},_n.weekYear=function(t){return cn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return cn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=fn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,i=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=i.weekdaysParse(n))?null:n:parseInt(n,10):n,this.add(t-e,"d")):e;var n,i},_n.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")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,i=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:i.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,i},_n.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")},_n.hour=_n.hours=oe,_n.minute=_n.minutes=mn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?r:ze(this);if("string"==typeof t){if(null===(t=Ge(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=ze(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?Ke(this,Xe(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ze(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ge(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",fn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Yt),_n.zone=t("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()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Pe(t))._a){var e=t._isUTC?f(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<D(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=C.prototype;function Sn(t,e,n,i){var r=pe(),s=f().set(i,e);return r[n](s,t)}function Dn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Sn(t,i,n,"month");return r}function Mn(t,e,n,i){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var r,s=pe(),a=t?s._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,i,"day");var o=[];for(r=0;r<7;r++)o[r]=Sn(e,(r+a)%7,i,"day");return o}bn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return O(i)?i.call(e,n):i},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return O(r)?r(t,e,n,i):r.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return O(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)O(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var i,r,s;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},bn.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Vt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ht),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var i,r,s;if(this._weekdaysParseExact)return Jt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},fe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),h.lang=t("moment.lang is deprecated. Use moment.locale instead.",fe),h.langData=t("moment.langData is deprecated. Use moment.localeData instead.",pe);var kn=Math.abs;function xn(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Tn(t){return t<0?Math.floor(t):Math.ceil(t)}function On(t){return 4800*t/146097}function Yn(t){return 146097*t/4800}function Cn(t){return function(){return this.as(t)}}var Pn=Cn("ms"),En=Cn("s"),Ln=Cn("m"),Rn=Cn("h"),An=Cn("d"),Wn=Cn("w"),In=Cn("M"),Nn=Cn("Q"),Fn=Cn("y");function Hn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vn=Hn("milliseconds"),jn=Hn("seconds"),Gn=Hn("minutes"),Un=Hn("hours"),zn=Hn("days"),Bn=Hn("months"),Zn=Hn("years");var qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Qn(t){return(0<t)-(t<0)||+t}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,i=$n(this._days),r=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var s=b(r/12),a=r%=12,o=i,u=e,h=t,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var c=d<0?"-":"",f=Qn(this._months)!==Qn(d)?"-":"",m=Qn(this._days)!==Qn(d)?"-":"",p=Qn(this._milliseconds)!==Qn(d)?"-":"";return c+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||h||l?"T":"")+(u?p+u+"H":"")+(h?p+h+"M":"")+(l?p+l+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),t.milliseconds=kn(t.milliseconds),t.seconds=kn(t.seconds),t.minutes=kn(t.minutes),t.hours=kn(t.hours),t.months=kn(t.months),t.years=kn(t.years),this},Kn.add=function(t,e){return xn(this,t,e,1)},Kn.subtract=function(t,e){return xn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+On(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Yn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=Pn,Kn.asSeconds=En,Kn.asMinutes=Ln,Kn.asHours=Rn,Kn.asDays=An,Kn.asWeeks=Wn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,i,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=s&&0<=a&&0<=o||s<=0&&a<=0&&o<=0||(s+=864e5*Tn(Yn(o)+a),o=a=0),u.milliseconds=s%1e3,t=b(s/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),r=b(On(a)),o+=r,a-=Tn(Yn(r)),i=b(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},Kn.clone=function(){return Xe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=Vn,Kn.seconds=jn,Kn.minutes=Gn,Kn.hours=Un,Kn.days=zn,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var i=Xe(t).abs(),r=qn(i.as("s")),s=qn(i.as("m")),a=qn(i.as("h")),o=qn(i.as("d")),u=qn(i.as("M")),h=qn(i.as("y")),l=r<=Xn.ss&&["s",r]||r<Xn.s&&["ss",r]||s<=1&&["m"]||s<Xn.m&&["mm",s]||a<=1&&["h"]||a<Xn.h&&["hh",a]||o<=1&&["d"]||o<Xn.d&&["dd",o]||u<=1&&["M"]||u<Xn.M&&["MM",u]||h<=1&&["y"]||["yy",h];return l[2]=e,l[3]=0<+t,l[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,l)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Jn,Kn.toString=Jn,Kn.toJSON=Jn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Kn.lang=sn,G("X",0,0,"unix"),G("x",0,0,"valueOf"),lt("x",st),lt("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),mt("x",function(t,e,n){n._d=new Date(S(t))}),h.version="2.24.0",function(t){e=t}(Le),h.fn=_n,h.min=function(){return We("isBefore",[].slice.call(arguments,0))},h.max=function(){return We("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=f,h.unix=function(t){return Le(1e3*t)},h.months=function(t,e){return Dn(t,e,"months")},h.isDate=l,h.locale=fe,h.invalid=y,h.duration=Xe,h.isMoment=w,h.weekdays=function(t,e,n){return Mn(t,e,n,"weekdays")},h.parseZone=function(){return Le.apply(null,arguments).parseZone()},h.localeData=pe,h.isDuration=Fe,h.monthsShort=function(t,e){return Dn(t,e,"monthsShort")},h.weekdaysMin=function(t,e,n){return Mn(t,e,n,"weekdaysMin")},h.defineLocale=me,h.updateLocale=function(t,e){if(null!=e){var n,i,r=ue;null!=(i=ce(t))&&(r=i._config),e=Y(r,e),(n=new C(e)).parentLocale=he[t],he[t]=n,fe(t)}else null!=he[t]&&(null!=he[t].parentLocale?he[t]=he[t].parentLocale:null!=he[t]&&delete he[t]);return he[t]},h.locales=function(){return k(he)},h.weekdaysShort=function(t,e,n){return Mn(t,e,n,"weekdaysShort")},h.normalizeUnits=L,h.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(qn=t,!0):qn},h.relativeTimeThreshold=function(t,e){return void 0!==Xn[t]&&(void 0===e?Xn[t]:(Xn[t]=e,"s"===t&&(Xn.ss=e-1),!0))},h.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"},h.prototype=_n,h.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"},h}()}),Tt=[],Ot={},Yt=0;Yt<256;Yt++)Tt[Yt]=(Yt+256).toString(16).substr(1),Ot[Tt[Yt]]=Yt;function Ct(t,e){var n=e||0,i=Tt;return i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]}for(var Pt=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),Et=[],Lt=0;Lt<256;Lt++)Et[Lt]=(Lt+256).toString(16).substr(1);var Rt=Pt(),At=[1|Rt[0],Rt[1],Rt[2],Rt[3],Rt[4],Rt[5]],Wt=16383&(Rt[6]<<8|Rt[7]),It=0,Nt=0;function Ft(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length?arguments[1]:void 0,n=e&&(2<arguments.length?arguments[2]:void 0)||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var i=t.random||(t.rng||Pt)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var r=0;r<16;r++)e[n+r]=i[r];return e||Ct(i)}function Ht(){return Ft.apply(void 0,arguments)}Ht.v1=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length?arguments[1]:void 0,n=e&&(2<arguments.length?arguments[2]:void 0)||0,i=e||[],r=void 0!==t.clockseq?t.clockseq:Wt,s=void 0!==t.msecs?t.msecs:(new Date).getTime(),a=void 0!==t.nsecs?t.nsecs:Nt+1,o=s-It+(a-Nt)/1e4;if(o<0&&void 0===t.clockseq&&(r=r+1&16383),(o<0||It<s)&&void 0===t.nsecs&&(a=0),1e4<=a)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");It=s,Wt=r;var u=(1e4*(268435455&(s+=122192928e5))+(Nt=a))%4294967296;i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=255&u;var h=s/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=255&h,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=r>>>8|128,i[n++]=255&r;for(var l=t.node||At,d=0;d<6;d++)i[n+d]=l[d];return e||Ct(i)},Ht.v4=Ft,Ht.parse=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=e&&(2<arguments.length?arguments[2]:void 0)||0,i=0;for(t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){return i<16&&(e[n+i++]=Ot[t]),""});i<16;)e[n+i++]=0;return e},Ht.unparse=Ct;var Vt=kt(function(t,u){function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e,n,i){var r=!1;!0===i&&(r=null===e[n]&&void 0!==t[n]),r?delete t[n]:t[n]=e[n]}u.isNumber=function(t){return t instanceof Number||"number"==typeof t},u.recursiveDOMDelete=function(t){if(t)for(;!0===t.hasChildNodes();)u.recursiveDOMDelete(t.firstChild),t.removeChild(t.firstChild)},u.isString=function(t){return t instanceof String||"string"==typeof t},u.isDate=function(t){if(t instanceof Date)return!0;if(u.isString(t)){if(i.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},u.randomUUID=function(){return Ht.v4()},u.fillIfDefined=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];for(var i in t)void 0!==e[i]&&(null===e[i]||"object"!==l(e[i])?a(t,e,i,n):"object"===l(t[i])&&u.fillIfDefined(t[i],e[i],n))},u.extend=function(t,e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t},u.selectiveExtend=function(t,e,n){if(!Array.isArray(t))throw new Error("Array with property names expected as first argument");for(var i=2;i<arguments.length;i++)for(var r=arguments[i],s=0;s<t.length;s++){var a=t[s];r&&r.hasOwnProperty(a)&&(e[a]=r[a])}return e},u.selectiveDeepExtend=function(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r<t.length;r++){var s=t[r];if(n.hasOwnProperty(s))if(n[s]&&n[s].constructor===Object)void 0===e[s]&&(e[s]={}),e[s].constructor===Object?u.deepExtend(e[s],n[s],!1,i):a(e,n,s,i);else{if(Array.isArray(n[s]))throw new TypeError("Arrays are not supported by deepExtend");a(e,n,s,i)}}return e},u.selectiveNotDeepExtend=function(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r in n)if(n.hasOwnProperty(r)&&-1===t.indexOf(r))if(n[r]&&n[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?u.deepExtend(e[r],n[r]):a(e,n,r,i);else if(Array.isArray(n[r])){e[r]=[];for(var s=0;s<n[r].length;s++)e[r].push(n[r][s])}else a(e,n,r,i);return e},u.deepExtend=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(e.hasOwnProperty(r)||!0===n)if(e[r]&&e[r].constructor===Object)void 0===t[r]&&(t[r]={}),t[r].constructor===Object?u.deepExtend(t[r],e[r],n):a(t,e,r,i);else if(Array.isArray(e[r])){t[r]=[];for(var s=0;s<e[r].length;s++)t[r].push(e[r][s])}else a(t,e,r,i);return t},u.equalArray=function(t,e){if(t.length!=e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]!=e[n])return!1;return!0},u.convert=function(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 new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return u.isString(t)&&!isNaN(Date.parse(t))?xt(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(u.isNumber(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(xt.isMoment(t))return new Date(t.valueOf());if(u.isString(t))return(n=i.exec(t))?new Date(Number(n[1])):xt(new Date(t)).toDate();throw new Error("Cannot convert object of type "+u.getType(t)+" to type Date");case"Moment":if(u.isNumber(t))return xt(t);if(t instanceof Date)return xt(t.valueOf());if(xt.isMoment(t))return xt(t);if(u.isString(t))return n=i.exec(t),xt(n?Number(n[1]):t);throw new Error("Cannot convert object of type "+u.getType(t)+" to type Date");case"ISODate":if(u.isNumber(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(xt.isMoment(t))return t.toDate().toISOString();if(u.isString(t))return(n=i.exec(t))?new Date(Number(n[1])).toISOString():xt(t).format();throw new Error("Cannot convert object of type "+u.getType(t)+" to type ISODate");case"ASPDate":if(u.isNumber(t))return"/Date("+t+")/";if(t instanceof Date)return"/Date("+t.valueOf()+")/";if(u.isString(t))return"/Date("+((n=i.exec(t))?new Date(Number(n[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+u.getType(t)+" to type ASPDate");default:throw new Error('Unknown type "'+e+'"')}}};var i=/^\/?Date\((\-?\d+)/i;u.getType=function(t){var e=l(t);return"object"==e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Array.isArray(t)?"Array":t instanceof Date?"Date":"Object":"number"==e?"Number":"boolean"==e?"Boolean":"string"==e?"String":void 0===e?"undefined":e},u.copyAndExtendArray=function(t,e){for(var n=[],i=0;i<t.length;i++)n.push(t[i]);return n.push(e),n},u.copyArray=function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e},u.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},u.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},u.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},u.addClassName=function(t,e){var n=t.className.split(" "),i=e.split(" ");n=n.concat(i.filter(function(t){return n.indexOf(t)<0})),t.className=n.join(" ")},u.removeClassName=function(t,e){var n=t.className.split(" "),i=e.split(" ");n=n.filter(function(t){return i.indexOf(t)<0}),t.className=n.join(" ")},u.forEach=function(t,e){var n,i;if(Array.isArray(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else for(n in t)t.hasOwnProperty(n)&&e(t[n],n,t)},u.toArray=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},u.updateProperty=function(t,e,n){return t[e]!==n&&(t[e]=n,!0)},u.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}},u.addEventListener=function(t,e,n,i){t.addEventListener?(void 0===i&&(i=!1),"mousewheel"===e&&0<=navigator.userAgent.indexOf("Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,i)):t.attachEvent("on"+e,n)},u.removeEventListener=function(t,e,n,i){t.removeEventListener?(void 0===i&&(i=!1),"mousewheel"===e&&0<=navigator.userAgent.indexOf("Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,i)):t.detachEvent("on"+e,n)},u.preventDefault=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1},u.getTarget=function(t){var e;return(t=t||window.event).target?e=t.target:t.srcElement&&(e=t.srcElement),null!=e.nodeType&&3==e.nodeType&&(e=e.parentNode),e},u.hasParent=function(t,e){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1},u.option={},u.option.asBoolean=function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},u.option.asNumber=function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},u.option.asString=function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},u.option.asSize=function(t,e){return"function"==typeof t&&(t=t()),u.isString(t)?t:u.isNumber(t)?t+"px":e||null},u.option.asElement=function(t,e){return"function"==typeof t&&(t=t()),t||e||null},u.hexToRGB=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},u.overrideOpacity=function(t,e){var n;return-1!=t.indexOf("rgba")?t:-1!=t.indexOf("rgb")?"rgba("+(n=t.substr(t.indexOf("(")+1).replace(")","").split(","))[0]+","+n[1]+","+n[2]+","+e+")":null==(n=u.hexToRGB(t))?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"},u.RGBToHex=function(t,e,n){return"#"+((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},u.parseColor=function(t){var e;if(!0===u.isString(t)){if(!0===u.isValidRGB(t)){var n=t.substr(4).substr(0,t.length-5).split(",").map(function(t){return parseInt(t)});t=u.RGBToHex(n[0],n[1],n[2])}if(!0===u.isValidHex(t)){var i=u.hexToHSV(t),r={h:i.h,s:.8*i.s,v:Math.min(1,1.02*i.v)},s={h:i.h,s:Math.min(1,1.25*i.s),v:.8*i.v},a=u.HSVToHex(s.h,s.s,s.v),o=u.HSVToHex(r.h,r.s,r.v);e={background:t,border:a,highlight:{background:o,border:a},hover:{background:o,border:a}}}else e={background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else(e={}).background=t.background||void 0,e.border=t.border||void 0,u.isString(t.highlight)?e.highlight={border:t.highlight,background:t.highlight}:(e.highlight={},e.highlight.background=t.highlight&&t.highlight.background||void 0,e.highlight.border=t.highlight&&t.highlight.border||void 0),u.isString(t.hover)?e.hover={border:t.hover,background:t.hover}:(e.hover={},e.hover.background=t.hover&&t.hover.background||void 0,e.hover.border=t.hover&&t.hover.border||void 0);return e},u.RGBToHSV=function(t,e,n){t/=255,e/=255,n/=255;var i=Math.min(t,Math.min(e,n)),r=Math.max(t,Math.max(e,n));return i==r?{h:0,s:0,v:i}:{h:60*((t==i?3:n==i?1:5)-(t==i?e-n:n==i?t-e:n-t)/(r-i))/360,s:(r-i)/r,v:r}};var s=function(t){var r={};return t.split(";").forEach(function(t){if(""!=t.trim()){var e=t.split(":"),n=e[0].trim(),i=e[1].trim();r[n]=i}}),r},o=function(e){return Object.keys(e).map(function(t){return t+": "+e[t]}).join("; ")};u.addCssText=function(t,e){var n=s(t.style.cssText),i=s(e),r=u.extend(n,i);t.style.cssText=o(r)},u.removeCssText=function(t,e){var n=s(t.style.cssText),i=s(e);for(var r in i)i.hasOwnProperty(r)&&delete n[r];t.style.cssText=o(n)},u.HSVToRGB=function(t,e,n){var i,r,s,a=Math.floor(6*t),o=6*t-a,u=n*(1-e),h=n*(1-o*e),l=n*(1-(1-o)*e);switch(a%6){case 0:i=n,r=l,s=u;break;case 1:i=h,r=n,s=u;break;case 2:i=u,r=n,s=l;break;case 3:i=u,r=h,s=n;break;case 4:i=l,r=u,s=n;break;case 5:i=n,r=u,s=h}return{r:Math.floor(255*i),g:Math.floor(255*r),b:Math.floor(255*s)}},u.HSVToHex=function(t,e,n){var i=u.HSVToRGB(t,e,n);return u.RGBToHex(i.r,i.g,i.b)},u.hexToHSV=function(t){var e=u.hexToRGB(t);return u.RGBToHSV(e.r,e.g,e.b)},u.isValidHex=function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},u.isValidRGB=function(t){return t=t.replace(" ",""),/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(t)},u.isValidRGBA=function(t){return t=t.replace(" ",""),/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(t)},u.selectiveBridgeObject=function(t,e){if(null===e||"object"!==l(e))return null;for(var n=Object.create(e),i=0;i<t.length;i++)e.hasOwnProperty(t[i])&&"object"==l(e[t[i]])&&(n[t[i]]=u.bridgeObject(e[t[i]]));return n},u.bridgeObject=function(t){if(null===t||"object"!==l(t))return null;var e=Object.create(t);if(t instanceof Element)e=t;else for(var n in e=Object.create(t),t)t.hasOwnProperty(n)&&"object"==l(t[n])&&(e[n]=u.bridgeObject(t[n]));return e},u.insertSort=function(t,e){for(var n=0;n<t.length;n++){for(var i=t[n],r=n;0<r&&e(i,t[r-1])<0;r--)t[r]=t[r-1];t[r]=i}return t},u.mergeOptions=function(t,e,n){function i(t){return null!=t}function a(t){return null!==t&&"object"===l(t)}var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(!a(t))throw new Error("Parameter mergeTarget must be an object");if(!a(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!a(r))throw new Error("Parameter globalOptions must be an object");var s=e[n],o=a(r)&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(r)?r[n]:void 0,u=o?o.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return a(t[n])||(t[n]={}),void(t[n].enabled=s);if(null===s&&!a(t[n])){if(!i(o))return;t[n]=Object.create(o)}if(a(s)){var h=!0;void 0!==s.enabled?h=s.enabled:void 0!==u&&(h=o.enabled),function(t,e,n){a(t[n])||(t[n]={});var i=e[n],r=t[n];for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])}(t,e,n),t[n].enabled=h}}},u.binarySearchCustom=function(t,e,n,i){for(var r=0,s=0,a=t.length-1;s<=a&&r<1e4;){var o=Math.floor((s+a)/2),u=t[o],h=e(void 0===i?u[n]:u[n][i]);if(0==h)return o;-1==h?s=o+1:a=o-1,r++}return-1},u.binarySearchValue=function(t,e,n,i,r){var s,a,o,u,h=0,l=0,d=t.length-1;for(r=null!=r?r:function(t,e){return t==e?0:t<e?-1:1};l<=d&&h<1e4;){if(u=Math.floor(.5*(d+l)),s=t[Math.max(0,u-1)][n],a=t[u][n],o=t[Math.min(t.length-1,u+1)][n],0==r(a,e))return u;if(r(s,e)<0&&0<r(a,e))return"before"==i?Math.max(0,u-1):u;if(r(a,e)<0&&0<r(o,e))return"before"==i?u:Math.min(t.length-1,u+1);r(a,e)<0?l=u+1:d=u-1,h++}return-1},u.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:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},u.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 i=t.offsetWidth;return n==i&&(i=e.clientWidth),document.body.removeChild(e),n-i},u.topMost=function(t,e){var n;Array.isArray(e)||(e=[e]);var i=!0,r=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(i=(a=o.next()).done);i=!0){var u=a.value;if(u){n=u[e[0]];for(var h=1;h<e.length;h++)n=n&&n[e[h]];if(void 0!==n)break}}}catch(t){r=!0,s=t}finally{try{i||null==o.return||o.return()}finally{if(r)throw s}}return n}});Vt.isNumber,Vt.recursiveDOMDelete,Vt.isString,Vt.isDate,Vt.randomUUID,Vt.fillIfDefined,Vt.extend,Vt.selectiveExtend,Vt.selectiveDeepExtend,Vt.selectiveNotDeepExtend,Vt.deepExtend,Vt.equalArray,Vt.convert,Vt.getType,Vt.copyAndExtendArray,Vt.copyArray,Vt.getAbsoluteLeft,Vt.getAbsoluteRight,Vt.getAbsoluteTop,Vt.addClassName,Vt.removeClassName,Vt.forEach,Vt.toArray,Vt.updateProperty,Vt.throttle,Vt.addEventListener,Vt.removeEventListener,Vt.preventDefault,Vt.getTarget,Vt.hasParent,Vt.option,Vt.hexToRGB,Vt.overrideOpacity,Vt.RGBToHex,Vt.parseColor,Vt.RGBToHSV,Vt.addCssText,Vt.removeCssText,Vt.HSVToRGB,Vt.HSVToHex,Vt.hexToHSV,Vt.isValidHex,Vt.isValidRGB,Vt.isValidRGBA,Vt.selectiveBridgeObject,Vt.bridgeObject,Vt.insertSort,Vt.mergeOptions,Vt.binarySearchCustom,Vt.binarySearchValue,Vt.easingFunctions,Vt.getScrollBarWidth,Vt.topMost;function jt(t){this.delay=null,this.max=1/0,this._queue=[],this._timeout=null,this._extended=null,this.setOptions(t)}jt.prototype.setOptions=function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()},jt.extend=function(t,e){var n=new jt(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var i=[{name:"flush",original:void 0}];if(e&&e.replace)for(var r=0;r<e.replace.length;r++){var s=e.replace[r];i.push({name:s,original:t[s]}),n.replace(t,s)}return n._extended={object:t,methods:i},n},jt.prototype.destroy=function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,n=0;n<e.length;n++){var i=e[n];i.original?t[i.name]=i.original:delete t[i.name]}this._extended=null}},jt.prototype.replace=function(t,e){var n=this,i=t[e];if(!i)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n.queue({args:t,fn:i,context:this})}},jt.prototype.queue=function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()},jt.prototype._flushIfNeeded=function(){if(this._queue.length>this.max&&this.flush(),clearTimeout(this._timeout),0<this.queue.length&&"number"==typeof this.delay){var t=this;this._timeout=setTimeout(function(){t.flush()},this.delay)}},jt.prototype.flush=function(){for(;0<this._queue.length;){var t=this._queue.shift();t.fn.apply(t.context||t.fn,t.args||[])}};var Gt=jt;function Ut(t,e){if(t&&!Array.isArray(t)&&(e=t,t=null),this._options=e||{},this._data={},this.length=0,this._fieldId=this._options.fieldId||"id",this._type={},this._options.type)for(var n=Object.keys(this._options.type),i=0,r=n.length;i<r;i++){var s=n[i],a=this._options.type[s];this._type[s]="Date"==a||"ISODate"==a||"ASPDate"==a?"Date":a}this._subscribers={},t&&this.add(t),this.setOptions(e)}Ut.prototype.setOptions=function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=Gt.extend(this,{replace:["add","update","remove"]})),"object"===Mt(t.queue)&&this._queue.setOptions(t.queue)))},Ut.prototype.on=function(t,e){var n=this._subscribers[t];n||(n=[],this._subscribers[t]=n),n.push({callback:e})},Ut.prototype.off=function(t,e){var n=this._subscribers[t];n&&(this._subscribers[t]=n.filter(function(t){return t.callback!=e}))},Ut.prototype._trigger=function(t,e,n){if("*"==t)throw new Error("Cannot trigger event *");var i=[];t in this._subscribers&&(i=i.concat(this._subscribers[t])),"*"in this._subscribers&&(i=i.concat(this._subscribers["*"]));for(var r=0,s=i.length;r<s;r++){var a=i[r];a.callback&&a.callback(t,e,n||null)}},Ut.prototype.add=function(t,e){var n,i=[];if(Array.isArray(t))for(var r=0,s=t.length;r<s;r++)n=this._addItem(t[r]),i.push(n);else{if(!t||"object"!==Mt(t))throw new Error("Unknown dataType");n=this._addItem(t),i.push(n)}return i.length&&this._trigger("add",{items:i},e),i},Ut.prototype.update=function(t,e){function n(t){var e=t[u];if(o._data[e]){var n=Vt.extend({},o._data[e]);e=o._updateItem(t),r.push(e),a.push(t),s.push(n)}else e=o._addItem(t),i.push(e)}var i=[],r=[],s=[],a=[],o=this,u=o._fieldId;if(Array.isArray(t))for(var h=0,l=t.length;h<l;h++)t[h]&&"object"===Mt(t[h])?n(t[h]):console.warn("Ignoring input item, which is not an object at index "+h);else{if(!t||"object"!==Mt(t))throw new Error("Unknown dataType");n(t)}if(i.length&&this._trigger("add",{items:i},e),r.length){var d={items:r,oldData:s,data:a};this._trigger("update",d,e)}return i.concat(r)},Ut.prototype.get=function(t){var e,n,i,r,s=Vt.getType(t);if((i="String"==s||"Number"==s?(e=t,arguments[1]):"Array"==s?(n=t,arguments[1]):t)&&i.returnType){r=-1==["Array","Object"].indexOf(i.returnType)?"Array":i.returnType}else r="Array";var a,o,u,h,l,d=i&&i.type||this._options.type,c=i&&i.filter,f=[];if(null!=e)(a=this._getItem(e,d))&&c&&!c(a)&&(a=null);else if(null!=n)for(h=0,l=n.length;h<l;h++)a=this._getItem(n[h],d),c&&!c(a)||f.push(a);else for(h=0,l=(o=Object.keys(this._data)).length;h<l;h++)u=o[h],a=this._getItem(u,d),c&&!c(a)||f.push(a);if(i&&i.order&&null==e&&this._sort(f,i.order),i&&i.fields){var m=i.fields;if(null!=e)a=this._filterFields(a,m);else for(h=0,l=f.length;h<l;h++)f[h]=this._filterFields(f[h],m)}if("Object"!=r)return null!=e?a:f;var p,y={};for(h=0,l=f.length;h<l;h++)y[(p=f[h]).id]=p;return y},Ut.prototype.getIds=function(t){var e,n,i,r,s,a=this._data,o=t&&t.filter,u=t&&t.order,h=t&&t.type||this._options.type,l=Object.keys(a),d=[];if(o)if(u){for(s=[],e=0,n=l.length;e<n;e++)i=l[e],o(r=this._getItem(i,h))&&s.push(r);for(this._sort(s,u),e=0,n=s.length;e<n;e++)d.push(s[e][this._fieldId])}else for(e=0,n=l.length;e<n;e++)i=l[e],o(r=this._getItem(i,h))&&d.push(r[this._fieldId]);else if(u){for(s=[],e=0,n=l.length;e<n;e++)i=l[e],s.push(a[i]);for(this._sort(s,u),e=0,n=s.length;e<n;e++)d.push(s[e][this._fieldId])}else for(e=0,n=l.length;e<n;e++)r=a[i=l[e]],d.push(r[this._fieldId]);return d},Ut.prototype.getDataSet=function(){return this},Ut.prototype.forEach=function(t,e){var n,i,r,s,a=e&&e.filter,o=e&&e.type||this._options.type,u=this._data,h=Object.keys(u);if(e&&e.order){var l=this.get(e);for(n=0,i=l.length;n<i;n++)t(r=l[n],s=r[this._fieldId])}else for(n=0,i=h.length;n<i;n++)s=h[n],r=this._getItem(s,o),a&&!a(r)||t(r,s)},Ut.prototype.map=function(t,e){var n,i,r,s,a=e&&e.filter,o=e&&e.type||this._options.type,u=[],h=this._data,l=Object.keys(h);for(n=0,i=l.length;n<i;n++)r=l[n],s=this._getItem(r,o),a&&!a(s)||u.push(t(s,r));return e&&e.order&&this._sort(u,e.order),u},Ut.prototype._filterFields=function(t,e){if(!t)return t;var n,i,r={},s=Object.keys(t),a=s.length;if(Array.isArray(e))for(n=0;n<a;n++)i=s[n],-1!=e.indexOf(i)&&(r[i]=t[i]);else for(n=0;n<a;n++)i=s[n],e.hasOwnProperty(i)&&(r[e[i]]=t[i]);return r},Ut.prototype._sort=function(t,e){if(Vt.isString(e)){var r=e;t.sort(function(t,e){var n=t[r],i=e[r];return i<n?1:n<i?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");t.sort(e)}},Ut.prototype.remove=function(t,e){var n,i,r,s,a,o=[],u=[];for(i=0,r=(n=Array.isArray(t)?t:[t]).length;i<r;i++)(a=this._remove(n[i]))&&null!=(s=a[this._fieldId])&&(o.push(s),u.push(a));return o.length&&this._trigger("remove",{items:o,oldData:u},e),o},Ut.prototype._remove=function(t){var e,n;return Vt.isNumber(t)||Vt.isString(t)?n=t:t&&"object"===Mt(t)&&(n=t[this._fieldId]),void 0!==n&&this._data[n]?(e=this._data[n],delete this._data[n],this.length--,e):null},Ut.prototype.clear=function(t){var e,n,i=Object.keys(this._data),r=[];for(e=0,n=i.length;e<n;e++)r.push(this._data[i[e]]);return this._data={},this.length=0,this._trigger("remove",{items:i,oldData:r},t),i},Ut.prototype.max=function(t){var e,n,i=this._data,r=Object.keys(i),s=null,a=null;for(e=0,n=r.length;e<n;e++){var o=i[r[e]],u=o[t];null!=u&&(!s||a<u)&&(s=o,a=u)}return s},Ut.prototype.min=function(t){var e,n,i=this._data,r=Object.keys(i),s=null,a=null;for(e=0,n=r.length;e<n;e++){var o=i[r[e]],u=o[t];null!=u&&(!s||u<a)&&(s=o,a=u)}return s},Ut.prototype.distinct=function(t){var e,n,i,r=this._data,s=Object.keys(r),a=[],o=this._options.type&&this._options.type[t]||null,u=0;for(e=0,i=s.length;e<i;e++){var h=r[s[e]][t],l=!1;for(n=0;n<u;n++)if(a[n]==h){l=!0;break}l||void 0===h||(a[u]=h,u++)}if(o)for(e=0,i=a.length;e<i;e++)a[e]=Vt.convert(a[e],o);return a},Ut.prototype._addItem=function(t){var e=t[this._fieldId];if(null!=e){if(this._data[e])throw new Error("Cannot add item: item with id "+e+" already exists")}else e=Vt.randomUUID(),t[this._fieldId]=e;var n,i,r={},s=Object.keys(t);for(n=0,i=s.length;n<i;n++){var a=s[n],o=this._type[a];r[a]=Vt.convert(t[a],o)}return this._data[e]=r,this.length++,e},Ut.prototype._getItem=function(t,e){var n,i,r,s,a=this._data[t];if(!a)return null;var o={},u=Object.keys(a);if(e)for(r=0,s=u.length;r<s;r++)i=a[n=u[r]],o[n]=Vt.convert(i,e[n]);else for(r=0,s=u.length;r<s;r++)i=a[n=u[r]],o[n]=i;return o[this._fieldId]||(o[this._fieldId]=a.id),o},Ut.prototype._updateItem=function(t){var e=t[this._fieldId];if(null==e)throw new Error("Cannot update item: item has no id (item: "+JSON.stringify(t)+")");var n=this._data[e];if(!n)throw new Error("Cannot update item: no item with id "+e+" found");for(var i=Object.keys(t),r=0,s=i.length;r<s;r++){var a=i[r],o=this._type[a];n[a]=Vt.convert(t[a],o)}return e};var zt=Ut;function Bt(t,e){this._data=null,this._ids={},this.length=0,this._options=e||{},this._fieldId="id",this._subscribers={};var n=this;this.listener=function(){n._onEvent.apply(n,arguments)},this.setData(t)}Bt.prototype.setData=function(t){var e,n,i,r,s;if(this._data){for(this._data.off&&this._data.off("*",this.listener),s=[],i=0,r=(e=this._data.getIds({filter:this._options&&this._options.filter})).length;i<r;i++)s.push(this._data._data[e[i]]);this._ids={},this.length=0,this._trigger("remove",{items:e,oldData:s})}if(this._data=t,this._data){for(this._fieldId=this._options.fieldId||this._data&&this._data.options&&this._data.options.fieldId||"id",i=0,r=(e=this._data.getIds({filter:this._options&&this._options.filter})).length;i<r;i++)n=e[i],this._ids[n]=!0;this.length=e.length,this._trigger("add",{items:e}),this._data.on&&this._data.on("*",this.listener)}},Bt.prototype.refresh=function(){var t,e,n,i=this._data.getIds({filter:this._options&&this._options.filter}),r=Object.keys(this._ids),s={},a=[],o=[],u=[];for(e=0,n=i.length;e<n;e++)s[t=i[e]]=!0,this._ids[t]||(a.push(t),this._ids[t]=!0);for(e=0,n=r.length;e<n;e++)s[t=r[e]]||(o.push(t),u.push(this._data._data[t]),delete this._ids[t]);this.length+=a.length-o.length,a.length&&this._trigger("add",{items:a}),o.length&&this._trigger("remove",{items:o,oldData:u})},Bt.prototype.get=function(t){var e,n,i,r=this,s=Vt.getType(t);i="String"==s||"Number"==s||"Array"==s?(e=t,n=arguments[1],arguments[2]):(n=t,arguments[1]);var a=Vt.extend({},this._options,n);this._options.filter&&n&&n.filter&&(a.filter=function(t){return r._options.filter(t)&&n.filter(t)});var o=[];return null!=e&&o.push(e),o.push(a),o.push(i),this._data&&this._data.get.apply(this._data,o)},Bt.prototype.getIds=function(e){var t;if(this._data){var n,i=this._options.filter;n=e&&e.filter?i?function(t){return i(t)&&e.filter(t)}:e.filter:i,t=this._data.getIds({filter:n,order:e&&e.order})}else t=[];return t},Bt.prototype.forEach=function(t,e){if(this._data){var n,i=this._options.filter;n=e&&e.filter?i?function(t){return i(t)&&e.filter(t)}:e.filter:i,this._data.forEach(t,{filter:n,order:e&&e.order})}},Bt.prototype.map=function(t,e){var n=[];if(this._data){var i,r=this._options.filter;i=e&&e.filter?r?function(t){return r(t)&&e.filter(t)}:e.filter:r,n=this._data.map(t,{filter:i,order:e&&e.order})}else n=[];return n},Bt.prototype.getDataSet=function(){for(var t=this;t instanceof Bt;)t=t._data;return t||null},Bt.prototype._onEvent=function(t,e,n){var i,r,s,a=e&&e.items,o=[],u=[],h=[],l=[],d=[],c=[];if(a&&this._data){switch(t){case"add":for(i=0,r=a.length;i<r;i++)s=a[i],this.get(s)&&(this._ids[s]=!0,o.push(s));break;case"update":for(i=0,r=a.length;i<r;i++)s=a[i],this.get(s)?this._ids[s]?(u.push(s),d.push(e.data[i]),l.push(e.oldData[i])):(this._ids[s]=!0,o.push(s)):this._ids[s]&&(delete this._ids[s],h.push(s),c.push(e.oldData[i]));break;case"remove":for(i=0,r=a.length;i<r;i++)s=a[i],this._ids[s]&&(delete this._ids[s],h.push(s),c.push(e.oldData[i]))}this.length+=o.length-h.length,o.length&&this._trigger("add",{items:o},n),u.length&&this._trigger("update",{items:u,oldData:l,data:d},n),h.length&&this._trigger("remove",{items:h,oldData:c},n)}},Bt.prototype.on=zt.prototype.on,Bt.prototype.off=zt.prototype.off,Bt.prototype._trigger=zt.prototype._trigger,Bt.prototype.subscribe=Bt.prototype.on,Bt.prototype.unsubscribe=Bt.prototype.off;var Zt=zt,qt=Bt,Xt=Gt,$t={DataSet:Zt,DataView:qt,Queue:Xt},Qt=Object.freeze({default:$t,DataSet:Zt,DataView:qt,Queue:Xt}),Jt=Kt;function Kt(t){if(t)return function(t){for(var e in Kt.prototype)t[e]=Kt.prototype[e];return t}(t)}function te(t,e,n){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0,this.z=void 0!==n?n:0}Kt.prototype.on=Kt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},Kt.prototype.once=function(t,e){var n=this;function i(){n.off(t,i),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},i.fn=e,this.on(t,i),this},Kt.prototype.off=Kt.prototype.removeListener=Kt.prototype.removeAllListeners=Kt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks[t];if(!i)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r=0;r<i.length;r++)if((n=i[r])===e||n.fn===e){i.splice(r,1);break}return this},Kt.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n)for(var i=0,r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,e);return this},Kt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},Kt.prototype.hasListeners=function(t){return!!this.listeners(t).length},te.subtract=function(t,e){var n=new te;return n.x=t.x-e.x,n.y=t.y-e.y,n.z=t.z-e.z,n},te.add=function(t,e){var n=new te;return n.x=t.x+e.x,n.y=t.y+e.y,n.z=t.z+e.z,n},te.avg=function(t,e){return new te((t.x+e.x)/2,(t.y+e.y)/2,(t.z+e.z)/2)},te.crossProduct=function(t,e){var n=new te;return n.x=t.y*e.z-t.z*e.y,n.y=t.z*e.x-t.x*e.z,n.z=t.x*e.y-t.y*e.x,n},te.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};var ee=te;var ne=function(t,e){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0},ie=St(wt);function re(t,e){if(void 0===t)throw new Error("No container element defined");if(this.container=t,this.visible=!e||null==e.visible||e.visible,this.visible){this.frame=document.createElement("DIV"),this.frame.style.width="100%",this.frame.style.position="relative",this.container.appendChild(this.frame),this.frame.prev=document.createElement("INPUT"),this.frame.prev.type="BUTTON",this.frame.prev.value="Prev",this.frame.appendChild(this.frame.prev),this.frame.play=document.createElement("INPUT"),this.frame.play.type="BUTTON",this.frame.play.value="Play",this.frame.appendChild(this.frame.play),this.frame.next=document.createElement("INPUT"),this.frame.next.type="BUTTON",this.frame.next.value="Next",this.frame.appendChild(this.frame.next),this.frame.bar=document.createElement("INPUT"),this.frame.bar.type="BUTTON",this.frame.bar.style.position="absolute",this.frame.bar.style.border="1px solid red",this.frame.bar.style.width="100px",this.frame.bar.style.height="6px",this.frame.bar.style.borderRadius="2px",this.frame.bar.style.MozBorderRadius="2px",this.frame.bar.style.border="1px solid #7F7F7F",this.frame.bar.style.backgroundColor="#E5E5E5",this.frame.appendChild(this.frame.bar),this.frame.slide=document.createElement("INPUT"),this.frame.slide.type="BUTTON",this.frame.slide.style.margin="0px",this.frame.slide.value=" ",this.frame.slide.style.position="relative",this.frame.slide.style.left="-100px",this.frame.appendChild(this.frame.slide);var n=this;this.frame.slide.onmousedown=function(t){n._onMouseDown(t)},this.frame.prev.onclick=function(t){n.prev(t)},this.frame.play.onclick=function(t){n.togglePlay(t)},this.frame.next.onclick=function(t){n.next(t)}}this.onChangeCallback=void 0,this.values=[],this.index=void 0,this.playTimeout=void 0,this.playInterval=1e3,this.playLoop=!0}re.prototype.prev=function(){var t=this.getIndex();0<t&&(t--,this.setIndex(t))},re.prototype.next=function(){var t=this.getIndex();t<this.values.length-1&&(t++,this.setIndex(t))},re.prototype.playNext=function(){var t=new Date,e=this.getIndex();e<this.values.length-1?(e++,this.setIndex(e)):this.playLoop&&(e=0,this.setIndex(e));var n=new Date-t,i=Math.max(this.playInterval-n,0),r=this;this.playTimeout=setTimeout(function(){r.playNext()},i)},re.prototype.togglePlay=function(){void 0===this.playTimeout?this.play():this.stop()},re.prototype.play=function(){this.playTimeout||(this.playNext(),this.frame&&(this.frame.play.value="Stop"))},re.prototype.stop=function(){clearInterval(this.playTimeout),this.playTimeout=void 0,this.frame&&(this.frame.play.value="Play")},re.prototype.setOnChangeCallback=function(t){this.onChangeCallback=t},re.prototype.setPlayInterval=function(t){this.playInterval=t},re.prototype.getPlayInterval=function(){return this.playInterval},re.prototype.setPlayLoop=function(t){this.playLoop=t},re.prototype.onChange=function(){void 0!==this.onChangeCallback&&this.onChangeCallback()},re.prototype.redraw=function(){if(this.frame){this.frame.bar.style.top=this.frame.clientHeight/2-this.frame.bar.offsetHeight/2+"px",this.frame.bar.style.width=this.frame.clientWidth-this.frame.prev.clientWidth-this.frame.play.clientWidth-this.frame.next.clientWidth-30+"px";var t=this.indexToLeft(this.index);this.frame.slide.style.left=t+"px"}},re.prototype.setValues=function(t){this.values=t,0<this.values.length?this.setIndex(0):this.index=void 0},re.prototype.setIndex=function(t){if(!(t<this.values.length))throw new Error("Index out of range");this.index=t,this.redraw(),this.onChange()},re.prototype.getIndex=function(){return this.index},re.prototype.get=function(){return this.values[this.index]},re.prototype._onMouseDown=function(t){if(t.which?1===t.which:1===t.button){this.startClientX=t.clientX,this.startSlideX=parseFloat(this.frame.slide.style.left),this.frame.style.cursor="move";var e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},ie.addEventListener(document,"mousemove",this.onmousemove),ie.addEventListener(document,"mouseup",this.onmouseup),ie.preventDefault(t)}},re.prototype.leftToIndex=function(t){var e=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10,n=t-3,i=Math.round(n/e*(this.values.length-1));return i<0&&(i=0),i>this.values.length-1&&(i=this.values.length-1),i},re.prototype.indexToLeft=function(t){var e=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;return 3+t/(this.values.length-1)*e},re.prototype._onMouseMove=function(t){var e=t.clientX-this.startClientX,n=this.startSlideX+e,i=this.leftToIndex(n);this.setIndex(i),ie.preventDefault()},re.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",ie.removeEventListener(document,"mousemove",this.onmousemove),ie.removeEventListener(document,"mouseup",this.onmouseup),ie.preventDefault()};var se=re;function ae(t,e,n,i){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(t,e,n,i)}ae.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ae.prototype.setRange=function(t,e,n,i){if(!this.isNumeric(t))throw new Error("Parameter 'start' is not numeric; value: "+t);if(!this.isNumeric(e))throw new Error("Parameter 'end' is not numeric; value: "+t);if(!this.isNumeric(n))throw new Error("Parameter 'step' is not numeric; value: "+t);this._start=t||0,this._end=e||0,this.setStep(n,i)},ae.prototype.setStep=function(t,e){void 0===t||t<=0||(void 0!==e&&(this.prettyStep=e),!0===this.prettyStep?this._step=ae.calculatePrettyStep(t):this._step=t)},ae.calculatePrettyStep=function(t){function e(t){return Math.log(t)/Math.LN10}var n=Math.pow(10,Math.round(e(t))),i=2*Math.pow(10,Math.round(e(t/2))),r=5*Math.pow(10,Math.round(e(t/5))),s=n;return Math.abs(i-t)<=Math.abs(s-t)&&(s=i),Math.abs(r-t)<=Math.abs(s-t)&&(s=r),s<=0&&(s=1),s},ae.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))},ae.prototype.getStep=function(){return this._step},ae.prototype.start=function(t){void 0===t&&(t=!1),this._current=this._start-this._start%this._step,t&&this.getCurrent()<this._start&&this.next()},ae.prototype.next=function(){this._current+=this._step},ae.prototype.end=function(){return this._current>this._end};var oe=ae;function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function he(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function le(){this.armLocation=new ee,this.armRotation={},this.armRotation.horizontal=0,this.armRotation.vertical=0,this.armLength=1.7,this.cameraOffset=new ee,this.offsetMultiplier=.6,this.cameraLocation=new ee,this.cameraRotation=new ee(.5*Math.PI,0,0),this.calculateCameraOrientation()}le.prototype.setOffset=function(t,e){var n=Math.abs,i=Math.sign,r=this.offsetMultiplier,s=this.armLength*r;n(t)>s&&(t=i(t)*s),n(e)>s&&(e=i(e)*s),this.cameraOffset.x=t,this.cameraOffset.y=e,this.calculateCameraOrientation()},le.prototype.getOffset=function(){return this.cameraOffset},le.prototype.setArmLocation=function(t,e,n){this.armLocation.x=t,this.armLocation.y=e,this.armLocation.z=n,this.calculateCameraOrientation()},le.prototype.setArmRotation=function(t,e){void 0!==t&&(this.armRotation.horizontal=t),void 0!==e&&(this.armRotation.vertical=e,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===t&&void 0===e||this.calculateCameraOrientation()},le.prototype.getArmRotation=function(){var t={};return t.horizontal=this.armRotation.horizontal,t.vertical=this.armRotation.vertical,t},le.prototype.setArmLength=function(t){void 0!==t&&(this.armLength=t,this.armLength<.71&&(this.armLength=.71),5<this.armLength&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},le.prototype.getArmLength=function(){return this.armLength},le.prototype.getCameraLocation=function(){return this.cameraLocation},le.prototype.getCameraRotation=function(){return this.cameraRotation},le.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;var t=this.cameraRotation.x,e=this.cameraRotation.z,n=this.cameraOffset.x,i=this.cameraOffset.y,r=Math.sin,s=Math.cos;this.cameraLocation.x=this.cameraLocation.x+n*s(e)+i*-r(e)*s(t),this.cameraLocation.y=this.cameraLocation.y+n*r(e)+i*s(e)*s(t),this.cameraLocation.z=this.cameraLocation.z+i*r(t)};var de=le,ce={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},fe={dot:ce.DOT,"dot-line":ce.DOTLINE,"dot-color":ce.DOTCOLOR,"dot-size":ce.DOTSIZE,line:ce.LINE,grid:ce.GRID,surface:ce.SURFACE,bar:ce.BAR,"bar-color":ce.BARCOLOR,"bar-size":ce.BARSIZE},me=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrid","showPerspective","showShadow","keepAspectRatio","verticalRatio","dotSizeRatio","dotSizeMinFraction","dotSizeMaxFraction","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","gridColor","xCenter","yCenter","zoomable","ctrlToZoom"],pe=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"],ye=void 0;function ve(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function ge(t,e){return void 0===t||""===t?e:t+function(t){return void 0===t||""===t||"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}(e)}function _e(t,e,n,i){for(var r,s=0;s<n.length;++s)e[ge(i,r=n[s])]=t[r]}function we(t,e,n,i){for(var r,s=0;s<n.length;++s)void 0!==t[r=n[s]]&&(e[ge(i,r)]=t[r])}function be(t,e){void 0!==t.backgroundColor&&function(t,e){var n="white",i="gray",r=1;if("string"==typeof t)n=t,i="none",r=0;else{if("object"!==ue(t))throw new Error("Unsupported type of backgroundColor");void 0!==t.fill&&(n=t.fill),void 0!==t.stroke&&(i=t.stroke),void 0!==t.strokeWidth&&(r=t.strokeWidth)}e.frame.style.backgroundColor=n,e.frame.style.borderColor=i,e.frame.style.borderWidth=r+"px",e.frame.style.borderStyle="solid"}(t.backgroundColor,e),function(t,e){if(void 0===t)return;void 0===e.dataColor&&(e.dataColor={});"string"==typeof t?(e.dataColor.fill=t,e.dataColor.stroke=t):(t.fill&&(e.dataColor.fill=t.fill),t.stroke&&(e.dataColor.stroke=t.stroke),void 0!==t.strokeWidth&&(e.dataColor.strokeWidth=t.strokeWidth))}(t.dataColor,e),function(t,e){if(void 0===t)return;var n;if("string"==typeof t){if(-1===(n=function(t){var e=fe[t];return void 0!==e?e:-1}(t)))throw new Error("Style '"+t+"' is invalid")}else{if(!function(t){var e=!1;for(var n in ce)if(ce[n]===t){e=!0;break}return e}(t))throw new Error("Style '"+t+"' is invalid");n=t}e.style=n}(t.style,e),function(t,e){if(void 0===t){if(void 0===ye.showLegend){var n=e.style===ce.DOTCOLOR||e.style===ce.DOTSIZE;e.showLegend=n}}else e.showLegend=t}(t.showLegend,e),Se(t.cameraPosition,e),void 0!==t.tooltip&&(e.showTooltip=t.tooltip),null!=t.onclick&&(e.onclick_callback=t.onclick),void 0!==t.tooltipStyle&&ie.selectiveDeepExtend(["tooltipStyle"],e,t)}function Se(t,e){var n=t;void 0!==n&&(void 0===e.camera&&(e.camera=new de),e.camera.setArmRotation(n.horizontal,n.vertical),e.camera.setArmLength(n.distance))}var De,Me={STYLE:ce,setDefaults:function(t,e){if(void 0===t||ve(t))throw new Error("No DEFAULTS passed");if(void 0===e)throw new Error("No dst passed");_e(ye=t,e,me),_e(t,e,pe,"default"),be(t,e),e.margin=10,e.showGrayBottom=!1,e.showTooltip=!1,e.onclick_callback=null,e.eye=new ee(0,0,-1)},setOptions:function(t,e){if(void 0!==t){if(void 0===e)throw new Error("No dst passed");if(void 0===ye||ve(ye))throw new Error("DEFAULTS not set for module Settings");we(t,e,me),we(t,e,pe,"default"),be(t,e)}},setCameraPosition:Se},ke=!1,xe="background: #FFeeee; color: #dd0000",Te=function(){function f(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f)}return function(t,e,n){e&&he(t.prototype,e),n&&he(t,n)}(f,null,[{key:"validate",value:function(t,e,n){ke=!1;var i=De=e;return void 0!==n&&(i=e[n]),f.parse(t,i,[]),ke}},{key:"parse",value:function(t,e,n){for(var i in t)t.hasOwnProperty(i)&&f.check(i,t,e,n)}},{key:"check",value:function(t,e,n,i){if(void 0!==n[t]||void 0!==n.__any__){var r=t,s=!0;void 0===n[t]&&void 0!==n.__any__&&(r="__any__",s="object"===f.getType(e[t]));var a=n[r];s&&void 0!==a.__type__&&(a=a.__type__),f.checkFields(t,e,n,r,a,i)}else f.getSuggestion(t,n,i)}},{key:"checkFields",value:function(e,t,n,i,r,s){function a(t){console.log("%c"+t+f.printLocation(s,e),xe)}var o=f.getType(t[e]),u=r[o];void 0!==u?"array"===f.getType(u)&&-1===u.indexOf(t[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+f.print(u)+' not "'+t[e]+'". '),ke=!0):"object"===o&&"__any__"!==i&&(s=_t.copyAndExtendArray(s,e),f.parse(t[e],n[i],s)):void 0===r.any&&(a('Invalid type received for "'+e+'". Expected: '+f.print(Object.keys(r))+". Received ["+o+'] "'+t[e]+'"'),ke=!0)}},{key:"getType",value:function(t){var e=ue(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Array.isArray(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(t,e,n){var i,r=f.findInOptions(t,e,n,!1),s=f.findInOptions(t,De,[],!0);i=void 0!==r.indexMatch?" in "+f.printLocation(r.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+r.indexMatch+'"?\n\n':s.distance<=4&&r.distance>s.distance?" in "+f.printLocation(r.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+f.printLocation(s.path,s.closestMatch,""):r.distance<=8?'. Did you mean "'+r.closestMatch+'"?'+f.printLocation(r.path,t):". Did you mean one of these: "+f.print(Object.keys(e))+f.printLocation(n,t),console.log('%cUnknown option detected: "'+t+'"'+i,xe),ke=!0}},{key:"findInOptions",value:function(t,e,n,i){var r=3<arguments.length&&void 0!==i&&i,s=1e9,a="",o=[],u=t.toLowerCase(),h=void 0;for(var l in e){var d=void 0;if(void 0!==e[l].__type__&&!0===r){var c=f.findInOptions(t,e[l],_t.copyAndExtendArray(n,l));s>c.distance&&(a=c.closestMatch,o=c.path,s=c.distance,h=c.indexMatch)}else-1!==l.toLowerCase().indexOf(u)&&(h=l),(d=f.levenshteinDistance(t,l))<s&&(a=l,o=_t.copyArray(n),s=d)}return{closestMatch:a,path:o,distance:s,indexMatch:h}}},{key:"printLocation",value:function(t,e,n){for(var i="\n\n"+(2<arguments.length&&void 0!==n?n:"Problem value found at: \n")+"options = {\n",r=0;r<t.length;r++){for(var s=0;s<r+1;s++)i+=" ";i+=t[r]+": {\n"}for(var a=0;a<t.length+1;a++)i+=" ";i+=e+"\n";for(var o=0;o<t.length+1;o++){for(var u=0;u<t.length-o;u++)i+=" ";i+="}\n"}return i+"\n\n"}},{key:"print",value:function(t){return JSON.stringify(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,i,r=[];for(n=0;n<=e.length;n++)r[n]=[n];for(i=0;i<=t.length;i++)r[0][i]=i;for(n=1;n<=e.length;n++)for(i=1;i<=t.length;i++)e.charAt(n-1)==t.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[e.length][t.length]}}]),f}(),Oe=Object.freeze({Validator:Te,printStyle:xe}),Ye="string",Ce="boolean",Pe="number",Ee="object",Le={fill:{string:Ye},stroke:{string:Ye},strokeWidth:{number:Pe},__type__:{string:Ye,object:Ee,undefined:"undefined"}},Re={animationAutoStart:{boolean:Ce,undefined:"undefined"},animationInterval:{number:Pe},animationPreload:{boolean:Ce},axisColor:{string:Ye},backgroundColor:Le,xBarWidth:{number:Pe,undefined:"undefined"},yBarWidth:{number:Pe,undefined:"undefined"},cameraPosition:{distance:{number:Pe},horizontal:{number:Pe},vertical:{number:Pe},__type__:{object:Ee}},zoomable:{boolean:Ce},ctrlToZoom:{boolean:Ce},xCenter:{string:Ye},yCenter:{string:Ye},dataColor:Le,dotSizeMinFraction:{number:Pe},dotSizeMaxFraction:{number:Pe},dotSizeRatio:{number:Pe},filterLabel:{string:Ye},gridColor:{string:Ye},onclick:{function:"function"},keepAspectRatio:{boolean:Ce},xLabel:{string:Ye},yLabel:{string:Ye},zLabel:{string:Ye},legendLabel:{string:Ye},xMin:{number:Pe,undefined:"undefined"},yMin:{number:Pe,undefined:"undefined"},zMin:{number:Pe,undefined:"undefined"},xMax:{number:Pe,undefined:"undefined"},yMax:{number:Pe,undefined:"undefined"},zMax:{number:Pe,undefined:"undefined"},showAnimationControls:{boolean:Ce,undefined:"undefined"},showGrid:{boolean:Ce},showLegend:{boolean:Ce,undefined:"undefined"},showPerspective:{boolean:Ce},showShadow:{boolean:Ce},showXAxis:{boolean:Ce},showYAxis:{boolean:Ce},showZAxis:{boolean:Ce},xStep:{number:Pe,undefined:"undefined"},yStep:{number:Pe,undefined:"undefined"},zStep:{number:Pe,undefined:"undefined"},style:{number:Pe,string:["bar","bar-color","bar-size","dot","dot-line","dot-color","dot-size","line","grid","surface"]},tooltip:{boolean:Ce,function:"function"},tooltipStyle:{content:{color:{string:Ye},background:{string:Ye},border:{string:Ye},borderRadius:{string:Ye},boxShadow:{string:Ye},padding:{string:Ye},__type__:{object:Ee}},line:{borderLeft:{string:Ye},height:{string:Ye},width:{string:Ye},pointerEvents:{string:Ye},__type__:{object:Ee}},dot:{border:{string:Ye},borderRadius:{string:Ye},height:{string:Ye},width:{string:Ye},pointerEvents:{string:Ye},__type__:{object:Ee}},__type__:{object:Ee}},xValueLabel:{function:"function"},yValueLabel:{function:"function"},zValueLabel:{function:"function"},valueMax:{number:Pe,undefined:"undefined"},valueMin:{number:Pe,undefined:"undefined"},verticalRatio:{number:Pe},height:{string:Ye},width:{string:Ye},__type__:{object:Ee}},Ae=Object.freeze({allOptions:Re});function We(){this.min=void 0,this.max=void 0}We.prototype.adjust=function(t){void 0!==t&&((void 0===this.min||this.min>t)&&(this.min=t),(void 0===this.max||this.max<t)&&(this.max=t))},We.prototype.combine=function(t){this.add(t.min),this.add(t.max)},We.prototype.expand=function(t){if(void 0!==t){var e=this.min-t,n=this.max+t;if(n<e)throw new Error("Passed expansion value makes range invalid");this.min=e,this.max=n}},We.prototype.range=function(){return this.max-this.min},We.prototype.center=function(){return(this.min+this.max)/2};var Ie=We,Ne=St(Qt),Fe=Ne.DataView;function He(t,e,n){this.dataGroup=t,this.column=e,this.graph=n,this.index=void 0,this.value=void 0,this.values=t.getDistinctValues(this.column),0<this.values.length&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,n.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}He.prototype.isLoaded=function(){return this.loaded},He.prototype.getLoadedProgress=function(){for(var t=this.values.length,e=0;this.dataPoints[e];)e++;return Math.round(e/t*100)},He.prototype.getLabel=function(){return this.graph.filterLabel},He.prototype.getColumn=function(){return this.column},He.prototype.getSelectedValue=function(){if(void 0!==this.index)return this.values[this.index]},He.prototype.getValues=function(){return this.values},He.prototype.getValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");return this.values[t]},He.prototype._getDataPoints=function(t){if(void 0===t&&(t=this.index),void 0===t)return[];var e;if(this.dataPoints[t])e=this.dataPoints[t];else{var n={};n.column=this.column,n.value=this.values[t];var i=new Fe(this.dataGroup.getDataSet(),{filter:function(t){return t[n.column]==n.value}}).get();e=this.dataGroup._getDataPoints(i),this.dataPoints[t]=e}return e},He.prototype.setOnLoadCallback=function(t){this.onLoadCallback=t},He.prototype.selectValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");this.index=t,this.value=this.values[t]},He.prototype.loadInBackground=function(t){void 0===t&&(t=0);var e=this.graph.frame;if(t<this.values.length){void 0===e.progress&&(e.progress=document.createElement("DIV"),e.progress.style.position="absolute",e.progress.style.color="gray",e.appendChild(e.progress));var n=this.getLoadedProgress();e.progress.innerHTML="Loading animation... "+n+"%",e.progress.style.bottom="60px",e.progress.style.left="10px";var i=this;setTimeout(function(){i.loadInBackground(t+1)},10),this.loaded=!1}else this.loaded=!0,void 0!==e.progress&&(e.removeChild(e.progress),e.progress=void 0),this.onLoadCallback&&this.onLoadCallback()};var Ve=He,je=Ne.DataSet,Ge=Ne.DataView;function Ue(){this.dataTable=null}Ue.prototype.initializeData=function(t,e,n){if(void 0!==e){var i;if(Array.isArray(e)&&(e=new je(e)),!(e instanceof je||e instanceof Ge))throw new Error("Array, DataSet, or DataView expected");if(0!=(i=e.get()).length){this.style=n,this.dataSet&&this.dataSet.off("*",this._onChange),this.dataSet=e,this.dataTable=i;var r=this;this._onChange=function(){t.setData(r.dataSet)},this.dataSet.on("*",this._onChange),this.colX="x",this.colY="y",this.colZ="z";var s=t.hasBars(n);if(s&&(void 0!==t.defaultXBarWidth?this.xBarWidth=t.defaultXBarWidth:this.xBarWidth=this.getSmallestDifference(i,this.colX)||1,void 0!==t.defaultYBarWidth?this.yBarWidth=t.defaultYBarWidth:this.yBarWidth=this.getSmallestDifference(i,this.colY)||1),this._initializeRange(i,this.colX,t,s),this._initializeRange(i,this.colY,t,s),this._initializeRange(i,this.colZ,t,!1),i[0].hasOwnProperty("style")){this.colValue="style";var a=this.getColumnRange(i,this.colValue);this._setRangeDefaults(a,t.defaultValueMin,t.defaultValueMax),this.valueRange=a}return this.getDataTable()[0].hasOwnProperty("filter")&&void 0===this.dataFilter&&(this.dataFilter=new Ve(this,"filter",t),this.dataFilter.setOnLoadCallback(function(){t.redraw()})),this.dataFilter?this.dataFilter._getDataPoints():this._getDataPoints(this.getDataTable())}}},Ue.prototype._collectRangeSettings=function(t,e){if(-1==["x","y","z"].indexOf(t))throw new Error("Column '"+t+"' invalid");var n=t.toUpperCase();return{barWidth:this[t+"BarWidth"],min:e["default"+n+"Min"],max:e["default"+n+"Max"],step:e["default"+n+"Step"],range_label:t+"Range",step_label:t+"Step"}},Ue.prototype._initializeRange=function(t,e,n,i){var r=this._collectRangeSettings(e,n),s=this.getColumnRange(t,e);i&&"z"!=e&&s.expand(r.barWidth/2),this._setRangeDefaults(s,r.min,r.max),this[r.range_label]=s,this[r.step_label]=void 0!==r.step?r.step:s.range()/5},Ue.prototype.getDistinctValues=function(t,e){void 0===e&&(e=this.dataTable);for(var n=[],i=0;i<e.length;i++){var r=e[i][t]||0;-1===n.indexOf(r)&&n.push(r)}return n.sort(function(t,e){return t-e})},Ue.prototype.getSmallestDifference=function(t,e){for(var n=this.getDistinctValues(t,e),i=null,r=1;r<n.length;r++){var s=n[r]-n[r-1];(null==i||s<i)&&(i=s)}return i},Ue.prototype.getColumnRange=function(t,e){for(var n=new Ie,i=0;i<t.length;i++){var r=t[i][e];n.adjust(r)}return n},Ue.prototype.getNumberOfRows=function(){return this.dataTable.length},Ue.prototype._setRangeDefaults=function(t,e,n){void 0!==e&&(t.min=e),void 0!==n&&(t.max=n),t.max<=t.min&&(t.max=t.min+1)},Ue.prototype.getDataTable=function(){return this.dataTable},Ue.prototype.getDataSet=function(){return this.dataSet},Ue.prototype.getDataPoints=function(t){for(var e=[],n=0;n<t.length;n++){var i=new ee;i.x=t[n][this.colX]||0,i.y=t[n][this.colY]||0,i.z=t[n][this.colZ]||0,i.data=t[n],void 0!==this.colValue&&(i.value=t[n][this.colValue]||0);var r={};r.point=i,r.bottom=new ee(i.x,i.y,this.zRange.min),r.trans=void 0,r.screen=void 0,e.push(r)}return e},Ue.prototype.initDataAsMatrix=function(t){var e,n,i,r,s=this.getDistinctValues(this.colX,t),a=this.getDistinctValues(this.colY,t),o=this.getDataPoints(t),u=[];for(i=0;i<o.length;i++){r=o[i];var h=s.indexOf(r.point.x),l=a.indexOf(r.point.y);void 0===u[h]&&(u[h]=[]),u[h][l]=r}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0);return o},Ue.prototype.getInfo=function(){var t=this.dataFilter;if(t)return t.getLabel()+": "+t.getSelectedValue()},Ue.prototype.reload=function(){this.dataTable&&this.setData(this.dataTable)},Ue.prototype._getDataPoints=function(t){var e=[];if(this.style===Me.STYLE.GRID||this.style===Me.STYLE.SURFACE)e=this.initDataAsMatrix(t);else if(this._checkValueField(t),e=this.getDataPoints(t),this.style===Me.STYLE.LINE)for(var n=0;n<e.length;n++)0<n&&(e[n-1].pointNext=e[n]);return e},Ue.prototype._checkValueField=function(t){if(this.style===Me.STYLE.BARCOLOR||this.style===Me.STYLE.BARSIZE||this.style===Me.STYLE.DOTCOLOR||this.style===Me.STYLE.DOTSIZE){if(void 0===this.colValue)throw new Error("Expected data to have field 'style' for graph style '"+this.style+"'");if(void 0===t[0][this.colValue])throw new Error("Expected data to have field '"+this.colValue+"' for graph style '"+this.style+"'")}};var ze=Ue,Be=St(Oe),Ze=St(Ae),qe=Be.Validator,Xe=Be.printStyle,$e=Ze.allOptions;Je.STYLE=Me.STYLE;var Qe=void 0;function Je(t,e,n){if(!(this instanceof Je))throw new SyntaxError("Constructor must be called with the new operator");this.containerElement=t,this.dataGroup=new ze,this.dataPoints=null,this.create(),Me.setDefaults(Je.DEFAULTS,this),this.colX=void 0,this.colY=void 0,this.colZ=void 0,this.colValue=void 0,this.setOptions(n),this.setData(e)}function Ke(t){return"clientX"in t?t.clientX:t.targetTouches[0]&&t.targetTouches[0].clientX||0}function tn(t){return"clientY"in t?t.clientY:t.targetTouches[0]&&t.targetTouches[0].clientY||0}Je.DEFAULTS={width:"400px",height:"400px",filterLabel:"time",legendLabel:"value",xLabel:"x",yLabel:"y",zLabel:"z",xValueLabel:function(t){return t},yValueLabel:function(t){return t},zValueLabel:function(t){return t},showXAxis:!0,showYAxis:!0,showZAxis:!0,showGrid:!0,showPerspective:!0,showShadow:!1,keepAspectRatio:!0,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:Qe,animationInterval:1e3,animationPreload:!1,animationAutoStart:Qe,axisColor:"#4D4D4D",gridColor:"#D3D3D3",xCenter:"55%",yCenter:"50%",style:Je.STYLE.DOT,tooltip:!1,tooltipStyle:{content:{padding:"10px",border:"1px solid #4d4d4d",color:"#1a1a1a",background:"rgba(255,255,255,0.7)",borderRadius:"2px",boxShadow:"5px 5px 10px rgba(128,128,128,0.5)"},line:{height:"40px",width:"0",borderLeft:"1px solid #4d4d4d",pointerEvents:"none"},dot:{height:"0",width:"0",border:"5px solid #4d4d4d",borderRadius:"5px",pointerEvents:"none"}},dataColor:{fill:"#7DC1FF",stroke:"#3267D2",strokeWidth:1},cameraPosition:{horizontal:1,vertical:.5,distance:1.7},zoomable:!0,ctrlToZoom:!1,showLegend:Qe,backgroundColor:Qe,xBarWidth:Qe,yBarWidth:Qe,valueMin:Qe,valueMax:Qe,xMin:Qe,xMax:Qe,xStep:Qe,yMin:Qe,yMax:Qe,yStep:Qe,zMin:Qe,zMax:Qe,zStep:Qe},Jt(Je.prototype),Je.prototype._setScale=function(){this.scale=new ee(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range()),this.keepAspectRatio&&(this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y),this.scale.z*=this.verticalRatio,void 0!==this.valueRange&&(this.scale.value=1/this.valueRange.range());var t=this.xRange.center()*this.scale.x,e=this.yRange.center()*this.scale.y,n=this.zRange.center()*this.scale.z;this.camera.setArmLocation(t,e,n)},Je.prototype._convert3Dto2D=function(t){var e=this._convertPointToTranslation(t);return this._convertTranslationToScreen(e)},Je.prototype._convertPointToTranslation=function(t){var e=this.camera.getCameraLocation(),n=this.camera.getCameraRotation(),i=t.x*this.scale.x,r=t.y*this.scale.y,s=t.z*this.scale.z,a=e.x,o=e.y,u=e.z,h=Math.sin(n.x),l=Math.cos(n.x),d=Math.sin(n.y),c=Math.cos(n.y),f=Math.sin(n.z),m=Math.cos(n.z);return new ee(c*(f*(r-o)+m*(i-a))-d*(s-u),h*(c*(s-u)+d*(f*(r-o)+m*(i-a)))+l*(m*(r-o)-f*(i-a)),l*(c*(s-u)+d*(f*(r-o)+m*(i-a)))-h*(m*(r-o)-f*(i-a)))},Je.prototype._convertTranslationToScreen=function(t){var e,n,i=this.eye.x,r=this.eye.y,s=this.eye.z,a=t.x,o=t.y,u=t.z;return n=this.showPerspective?(e=s/u*(a-i),s/u*(o-r)):(e=a*(-s/this.camera.getArmLength()),o*(-s/this.camera.getArmLength())),new ne(this.currentXCenter+e*this.frame.canvas.clientWidth,this.currentYCenter-n*this.frame.canvas.clientWidth)},Je.prototype._calcTranslations=function(t){for(var e=0;e<t.length;e++){var n=t[e];n.trans=this._convertPointToTranslation(n.point),n.screen=this._convertTranslationToScreen(n.trans);var i=this._convertPointToTranslation(n.bottom);n.dist=this.showPerspective?i.length():-i.z}t.sort(function(t,e){return e.dist-t.dist})},Je.prototype._initializeRanges=function(){var t=this.dataGroup;this.xRange=t.xRange,this.yRange=t.yRange,this.zRange=t.zRange,this.valueRange=t.valueRange,this.xStep=t.xStep,this.yStep=t.yStep,this.zStep=t.zStep,this.xBarWidth=t.xBarWidth,this.yBarWidth=t.yBarWidth,this.colX=t.colX,this.colY=t.colY,this.colZ=t.colZ,this.colValue=t.colValue,this._setScale()},Je.prototype.getDataPoints=function(t){for(var e=[],n=0;n<t.length;n++){var i=new ee;i.x=t[n][this.colX]||0,i.y=t[n][this.colY]||0,i.z=t[n][this.colZ]||0,i.data=t[n],void 0!==this.colValue&&(i.value=t[n][this.colValue]||0);var r={};r.point=i,r.bottom=new ee(i.x,i.y,this.zRange.min),r.trans=void 0,r.screen=void 0,e.push(r)}return e},Je.prototype._getDataPoints=function(t){var e,n,i,r,s=[];if(this.style===Je.STYLE.GRID||this.style===Je.STYLE.SURFACE){var a=this.dataGroup.getDistinctValues(this.colX,t),o=this.dataGroup.getDistinctValues(this.colY,t);s=this.getDataPoints(t);var u=[];for(i=0;i<s.length;i++){r=s[i];var h=a.indexOf(r.point.x),l=o.indexOf(r.point.y);void 0===u[h]&&(u[h]=[]),u[h][l]=r}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0)}else if(this._checkValueField(t),s=this.getDataPoints(t),this.style===Je.STYLE.LINE)for(i=0;i<s.length;i++)0<i&&(s[i-1].pointNext=s[i]);return s},Je.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t),this.frame.filter=document.createElement("div"),this.frame.filter.style.position="absolute",this.frame.filter.style.bottom="0px",this.frame.filter.style.left="0px",this.frame.filter.style.width="100%",this.frame.appendChild(this.frame.filter);var e=this;ie.addEventListener(this.frame.canvas,"mousedown",function(t){e._onMouseDown(t)}),ie.addEventListener(this.frame.canvas,"touchstart",function(t){e._onTouchStart(t)}),ie.addEventListener(this.frame.canvas,"mousewheel",function(t){e._onWheel(t)}),ie.addEventListener(this.frame.canvas,"mousemove",function(t){e._onTooltip(t)}),ie.addEventListener(this.frame.canvas,"click",function(t){e._onClick(t)}),this.containerElement.appendChild(this.frame)},Je.prototype._setSize=function(t,e){this.frame.style.width=t,this.frame.style.height=e,this._resizeCanvas()},Je.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,this.frame.filter.style.width=this.frame.canvas.clientWidth-20+"px"},Je.prototype.animationStart=function(){if(this.animationAutoStart&&this.dataGroup.dataFilter){if(!this.frame.filter||!this.frame.filter.slider)throw new Error("No animation available");this.frame.filter.slider.play()}},Je.prototype.animationStop=function(){this.frame.filter&&this.frame.filter.slider&&this.frame.filter.slider.stop()},Je.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=parseFloat(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight):this.currentYCenter=parseFloat(this.yCenter)},Je.prototype.getCameraPosition=function(){var t=this.camera.getArmRotation();return t.distance=this.camera.getArmLength(),t},Je.prototype._readData=function(t){this.dataPoints=this.dataGroup.initializeData(this,t,this.style),this._initializeRanges(),this._redrawFilter()},Je.prototype.setData=function(t){null!=t&&(this._readData(t),this.redraw(),this.animationStart())},Je.prototype.setOptions=function(t){void 0!==t&&(!0===qe.validate(t,$e)&&console.log("%cErrors have been found in the supplied options object.",Xe),this.animationStop(),Me.setOptions(t,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.setData(this.dataGroup.getDataTable()),this.animationStart())},Je.prototype.setPointDrawingMethod=function(){var t=void 0;switch(this.style){case Je.STYLE.BAR:t=Je.prototype._redrawBarGraphPoint;break;case Je.STYLE.BARCOLOR:t=Je.prototype._redrawBarColorGraphPoint;break;case Je.STYLE.BARSIZE:t=Je.prototype._redrawBarSizeGraphPoint;break;case Je.STYLE.DOT:t=Je.prototype._redrawDotGraphPoint;break;case Je.STYLE.DOTLINE:t=Je.prototype._redrawDotLineGraphPoint;break;case Je.STYLE.DOTCOLOR:t=Je.prototype._redrawDotColorGraphPoint;break;case Je.STYLE.DOTSIZE:t=Je.prototype._redrawDotSizeGraphPoint;break;case Je.STYLE.SURFACE:t=Je.prototype._redrawSurfaceGraphPoint;break;case Je.STYLE.GRID:t=Je.prototype._redrawGridGraphPoint;break;case Je.STYLE.LINE:t=Je.prototype._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=t},Je.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},Je.prototype._getContext=function(){var t=this.frame.canvas.getContext("2d");return t.lineJoin="round",t.lineCap="round",t},Je.prototype._redrawClear=function(){var t=this.frame.canvas;t.getContext("2d").clearRect(0,0,t.width,t.height)},Je.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},Je.prototype._getLegendWidth=function(){var t;this.style===Je.STYLE.DOTSIZE?t=this._dotSize()*this.dotSizeMaxFraction:t=this.style===Je.STYLE.BARSIZE?this.xBarWidth:20;return t},Je.prototype._redrawLegend=function(){if(!0===this.showLegend&&this.style!==Je.STYLE.LINE&&this.style!==Je.STYLE.BARSIZE){var t=this.style===Je.STYLE.BARSIZE||this.style===Je.STYLE.DOTSIZE,e=this.style===Je.STYLE.DOTSIZE||this.style===Je.STYLE.DOTCOLOR||this.style===Je.STYLE.BARCOLOR,n=Math.max(.25*this.frame.clientHeight,100),i=this.margin,r=this._getLegendWidth(),s=this.frame.clientWidth-this.margin,a=s-r,o=i+n,u=this._getContext();if(u.lineWidth=1,!(u.font="14px arial")==t){var h,l=n;for(h=0;h<l;h++){var d=240*((h-0)/(l-0)),c=this._hsv2rgb(d,1,1);u.strokeStyle=c,u.beginPath(),u.moveTo(a,i+h),u.lineTo(s,i+h),u.stroke()}u.strokeStyle=this.axisColor,u.strokeRect(a,i,r,n)}else{var f;this.style===Je.STYLE.DOTSIZE?f=r*(this.dotSizeMinFraction/this.dotSizeMaxFraction):(this.style,Je.STYLE.BARSIZE),u.strokeStyle=this.axisColor,u.fillStyle=this.dataColor.fill,u.beginPath(),u.moveTo(a,i),u.lineTo(s,i),u.lineTo(a+f,o),u.lineTo(a,o),u.closePath(),u.fill(),u.stroke()}var m,p,y=e?this.valueRange.min:this.zRange.min,v=e?this.valueRange.max:this.zRange.max,g=new oe(y,v,(v-y)/5,!0);for(g.start(!0);!g.end();)h=o-(g.getCurrent()-y)/(v-y)*n,m=new ne(a-5,h),p=new ne(a,h),this._line(u,m,p),u.textAlign="right",u.textBaseline="middle",u.fillStyle=this.axisColor,u.fillText(g.getCurrent(),a-10,h),g.next();u.textAlign="right",u.textBaseline="top";var _=this.legendLabel;u.fillText(_,s,o+this.margin)}},Je.prototype._redrawFilter=function(){var t=this.dataGroup.dataFilter,e=this.frame.filter;if(e.innerHTML="",t){var n={visible:this.showAnimationControls},i=new se(e,n);e.slider=i,e.style.padding="10px",i.setValues(t.values),i.setPlayInterval(this.animationInterval);var r=this;i.setOnChangeCallback(function(){var t=r.dataGroup.dataFilter,e=i.getIndex();t.selectValue(e),r.dataPoints=t._getDataPoints(),r.redraw()})}else e.slider=void 0},Je.prototype._redrawSlider=function(){void 0!==this.frame.filter.slider&&this.frame.filter.slider.redraw()},Je.prototype._redrawInfo=function(){var t=this.dataGroup.getInfo();if(void 0!==t){var e=this._getContext();e.font="14px arial",e.lineStyle="gray",e.fillStyle="gray",e.textAlign="left",e.textBaseline="top";var n=this.margin,i=this.margin;e.fillText(t,n,i)}},Je.prototype._line=function(t,e,n,i){void 0!==i&&(t.strokeStyle=i),t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.stroke()},Je.prototype.drawAxisLabelX=function(t,e,n,i,r){void 0===r&&(r=0);var s=this._convert3Dto2D(e);0<Math.cos(2*i)?(t.textAlign="center",t.textBaseline="top",s.y+=r):(Math.sin(2*i)<0?t.textAlign="right":t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,s.x,s.y)},Je.prototype.drawAxisLabelY=function(t,e,n,i,r){void 0===r&&(r=0);var s=this._convert3Dto2D(e);Math.cos(2*i)<0?(t.textAlign="center",t.textBaseline="top",s.y+=r):(0<Math.sin(2*i)?t.textAlign="right":t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,s.x,s.y)},Je.prototype.drawAxisLabelZ=function(t,e,n,i){void 0===i&&(i=0);var r=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,r.x-i,r.y)},Je.prototype._line3d=function(t,e,n,i){var r=this._convert3Dto2D(e),s=this._convert3Dto2D(n);this._line(t,r,s,i)},Je.prototype._redrawAxis=function(){var t,e,n,i,r,s,a,o,u,h,l=this._getContext();l.font=24/this.camera.getArmLength()+"px arial";var d,c,f,m=.025/this.scale.x,p=.025/this.scale.y,y=5/this.camera.getArmLength(),v=this.camera.getArmRotation().horizontal,g=new ne(Math.cos(v),Math.sin(v)),_=this.xRange,w=this.yRange,b=this.zRange;for(l.lineWidth=1,i=void 0===this.defaultXStep,(n=new oe(_.min,_.max,this.xStep,i)).start(!0);!n.end();){var S=n.getCurrent();if(this.showGrid?(t=new ee(S,w.min,b.min),e=new ee(S,w.max,b.min),this._line3d(l,t,e,this.gridColor)):this.showXAxis&&(t=new ee(S,w.min,b.min),e=new ee(S,w.min+m,b.min),this._line3d(l,t,e,this.axisColor),t=new ee(S,w.max,b.min),e=new ee(S,w.max-m,b.min),this._line3d(l,t,e,this.axisColor)),this.showXAxis){a=0<g.x?w.min:w.max,d=new ee(S,a,b.min);var D=" "+this.xValueLabel(S)+" ";this.drawAxisLabelX(l,d,D,v,y)}n.next()}for(l.lineWidth=1,i=void 0===this.defaultYStep,(n=new oe(w.min,w.max,this.yStep,i)).start(!0);!n.end();){var M=n.getCurrent();if(this.showGrid?(t=new ee(_.min,M,b.min),e=new ee(_.max,M,b.min),this._line3d(l,t,e,this.gridColor)):this.showYAxis&&(t=new ee(_.min,M,b.min),e=new ee(_.min+p,M,b.min),this._line3d(l,t,e,this.axisColor),t=new ee(_.max,M,b.min),e=new ee(_.max-p,M,b.min),this._line3d(l,t,e,this.axisColor)),this.showYAxis){s=0<g.y?_.min:_.max,d=new ee(s,M,b.min);var k=" "+this.yValueLabel(M)+" ";this.drawAxisLabelY(l,d,k,v,y)}n.next()}if(this.showZAxis){for(l.lineWidth=1,i=void 0===this.defaultZStep,(n=new oe(b.min,b.max,this.zStep,i)).start(!0),s=0<g.x?_.min:_.max,a=g.y<0?w.min:w.max;!n.end();){var x=n.getCurrent(),T=new ee(s,a,x),O=this._convert3Dto2D(T);e=new ne(O.x-y,O.y),this._line(l,O,e,this.axisColor);var Y=this.zValueLabel(x)+" ";this.drawAxisLabelZ(l,T,Y,5),n.next()}l.lineWidth=1,t=new ee(s,a,b.min),e=new ee(s,a,b.max),this._line3d(l,t,e,this.axisColor)}this.showXAxis&&(l.lineWidth=1,c=new ee(_.min,w.min,b.min),f=new ee(_.max,w.min,b.min),this._line3d(l,c,f,this.axisColor),c=new ee(_.min,w.max,b.min),f=new ee(_.max,w.max,b.min),this._line3d(l,c,f,this.axisColor));this.showYAxis&&(l.lineWidth=1,t=new ee(_.min,w.min,b.min),e=new ee(_.min,w.max,b.min),this._line3d(l,t,e,this.axisColor),t=new ee(_.max,w.min,b.min),e=new ee(_.max,w.max,b.min),this._line3d(l,t,e,this.axisColor));var C=this.xLabel;0<C.length&&this.showXAxis&&(h=.1/this.scale.y,s=(_.max+3*_.min)/4,a=0<g.x?w.min-h:w.max+h,r=new ee(s,a,b.min),this.drawAxisLabelX(l,r,C,v));var P=this.yLabel;0<P.length&&this.showYAxis&&(u=.1/this.scale.x,s=0<g.y?_.min-u:_.max+u,a=(w.max+3*w.min)/4,r=new ee(s,a,b.min),this.drawAxisLabelY(l,r,P,v));var E=this.zLabel;0<E.length&&this.showZAxis&&(s=0<g.x?_.min:_.max,a=g.y<0?w.min:w.max,o=(b.max+3*b.min)/4,r=new ee(s,a,o),this.drawAxisLabelZ(l,r,E,30))},Je.prototype._hsv2rgb=function(t,e,n){var i,r,s,a,o,u;switch(a=n*e,o=Math.floor(t/60),u=a*(1-Math.abs(t/60%2-1)),o){case 0:i=a,r=u,s=0;break;case 1:i=u,r=a,s=0;break;case 2:i=0,r=a,s=u;break;case 3:i=0,r=u,s=a;break;case 4:i=u,r=0,s=a;break;case 5:i=a,r=0,s=u;break;default:s=r=i=0}return"RGB("+parseInt(255*i)+","+parseInt(255*r)+","+parseInt(255*s)+")"},Je.prototype._getStrokeWidth=function(t){return void 0!==t?this.showPerspective?1/-t.trans.z*this.dataColor.strokeWidth:-this.eye.z/this.camera.getArmLength()*this.dataColor.strokeWidth:this.dataColor.strokeWidth},Je.prototype._redrawBar=function(t,e,n,i,r,s){var a,o=this,u=e.point,h=this.zRange.min,l=[{point:new ee(u.x-n,u.y-i,u.z)},{point:new ee(u.x+n,u.y-i,u.z)},{point:new ee(u.x+n,u.y+i,u.z)},{point:new ee(u.x-n,u.y+i,u.z)}],d=[{point:new ee(u.x-n,u.y-i,h)},{point:new ee(u.x+n,u.y-i,h)},{point:new ee(u.x+n,u.y+i,h)},{point:new ee(u.x-n,u.y+i,h)}];l.forEach(function(t){t.screen=o._convert3Dto2D(t.point)}),d.forEach(function(t){t.screen=o._convert3Dto2D(t.point)});var c=[{corners:l,center:ee.avg(d[0].point,d[2].point)},{corners:[l[0],l[1],d[1],d[0]],center:ee.avg(d[1].point,d[0].point)},{corners:[l[1],l[2],d[2],d[1]],center:ee.avg(d[2].point,d[1].point)},{corners:[l[2],l[3],d[3],d[2]],center:ee.avg(d[3].point,d[2].point)},{corners:[l[3],l[0],d[0],d[3]],center:ee.avg(d[0].point,d[3].point)}];e.surfaces=c;for(var f=0;f<c.length;f++){a=c[f];var m=this._convertPointToTranslation(a.center);a.dist=this.showPerspective?m.length():-m.z}c.sort(function(t,e){var n=e.dist-t.dist;return n||(t.corners===l?1:e.corners===l?-1:0)}),t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=s,t.fillStyle=r;for(var p=2;p<c.length;p++)a=c[p],this._polygon(t,a.corners)},Je.prototype._polygon=function(t,e,n,i){if(!(e.length<2)){void 0!==n&&(t.fillStyle=n),void 0!==i&&(t.strokeStyle=i),t.beginPath(),t.moveTo(e[0].screen.x,e[0].screen.y);for(var r=1;r<e.length;++r){var s=e[r];t.lineTo(s.screen.x,s.screen.y)}t.closePath(),t.fill(),t.stroke()}},Je.prototype._drawCircle=function(t,e,n,i,r){var s=this._calcRadius(e,r);t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=i,t.fillStyle=n,t.beginPath(),t.arc(e.screen.x,e.screen.y,s,0,2*Math.PI,!0),t.fill(),t.stroke()},Je.prototype._getColorsRegular=function(t){var e=240*(1-(t.point.z-this.zRange.min)*this.scale.z/this.verticalRatio);return{fill:this._hsv2rgb(e,1,1),border:this._hsv2rgb(e,1,.8)}},Je.prototype._getColorsColor=function(t){var e,n;if("string"==typeof t.point.value)e=t.point.value,n=t.point.value;else{var i=240*(1-(t.point.value-this.valueRange.min)*this.scale.value);e=this._hsv2rgb(i,1,1),n=this._hsv2rgb(i,1,.8)}return{fill:e,border:n}},Je.prototype._getColorsSize=function(){return{fill:this.dataColor.fill,border:this.dataColor.stroke}},Je.prototype._calcRadius=function(t,e){var n;return void 0===e&&(e=this._dotSize()),(n=this.showPerspective?e/-t.trans.z:e*(-this.eye.z/this.camera.getArmLength()))<0&&(n=0),n},Je.prototype._redrawBarGraphPoint=function(t,e){var n=this.xBarWidth/2,i=this.yBarWidth/2,r=this._getColorsRegular(e);this._redrawBar(t,e,n,i,r.fill,r.border)},Je.prototype._redrawBarColorGraphPoint=function(t,e){var n=this.xBarWidth/2,i=this.yBarWidth/2,r=this._getColorsColor(e);this._redrawBar(t,e,n,i,r.fill,r.border)},Je.prototype._redrawBarSizeGraphPoint=function(t,e){var n=(e.point.value-this.valueRange.min)/this.valueRange.range(),i=this.xBarWidth/2*(.8*n+.2),r=this.yBarWidth/2*(.8*n+.2),s=this._getColorsSize();this._redrawBar(t,e,i,r,s.fill,s.border)},Je.prototype._redrawDotGraphPoint=function(t,e){var n=this._getColorsRegular(e);this._drawCircle(t,e,n.fill,n.border)},Je.prototype._redrawDotLineGraphPoint=function(t,e){var n=this._convert3Dto2D(e.bottom);t.lineWidth=1,this._line(t,n,e.screen,this.gridColor),this._redrawDotGraphPoint(t,e)},Je.prototype._redrawDotColorGraphPoint=function(t,e){var n=this._getColorsColor(e);this._drawCircle(t,e,n.fill,n.border)},Je.prototype._redrawDotSizeGraphPoint=function(t,e){var n=this._dotSize(),i=(e.point.value-this.valueRange.min)/this.valueRange.range(),r=n*this.dotSizeMinFraction,s=r+(n*this.dotSizeMaxFraction-r)*i,a=this._getColorsSize();this._drawCircle(t,e,a.fill,a.border,s)},Je.prototype._redrawSurfaceGraphPoint=function(t,e){var n=e.pointRight,i=e.pointTop,r=e.pointCross;if(void 0!==e&&void 0!==n&&void 0!==i&&void 0!==r){var s,a,o=!0;if(this.showGrayBottom||this.showShadow){var u=ee.subtract(r.trans,e.trans),h=ee.subtract(i.trans,n.trans),l=ee.crossProduct(u,h),d=l.length();o=0<l.z}if(o){var c,f=240*(1-((e.point.z+n.point.z+i.point.z+r.point.z)/4-this.zRange.min)*this.scale.z/this.verticalRatio);a=this.showShadow?(c=Math.min(1+l.x/d/2,1),s=this._hsv2rgb(f,1,c)):(c=1,s=this._hsv2rgb(f,1,c),this.axisColor)}else s="gray",a=this.axisColor;t.lineWidth=this._getStrokeWidth(e);var m=[e,n,r,i];this._polygon(t,m,s,a)}},Je.prototype._drawGridLine=function(t,e,n){if(void 0!==e&&void 0!==n){var i=240*(1-((e.point.z+n.point.z)/2-this.zRange.min)*this.scale.z/this.verticalRatio);t.lineWidth=2*this._getStrokeWidth(e),t.strokeStyle=this._hsv2rgb(i,1,1),this._line(t,e.screen,n.screen)}},Je.prototype._redrawGridGraphPoint=function(t,e){this._drawGridLine(t,e,e.pointRight),this._drawGridLine(t,e,e.pointTop)},Je.prototype._redrawLineGraphPoint=function(t,e){void 0!==e.pointNext&&(t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=this.dataColor.stroke,this._line(t,e.screen,e.pointNext.screen))},Je.prototype._redrawDataGraph=function(){var t,e=this._getContext();if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),t=0;t<this.dataPoints.length;t++){var n=this.dataPoints[t];this._pointDrawingMethod.call(this,e,n)}},Je.prototype._storeMousePosition=function(t){this.startMouseX=Ke(t),this.startMouseY=tn(t),this._startCameraOffset=this.camera.getOffset()},Je.prototype._onMouseDown=function(t){if(t=t||window.event,this.leftButtonDown&&this._onMouseUp(t),this.leftButtonDown=t.which?1===t.which:1===t.button,this.leftButtonDown||this.touchDown){this._storeMousePosition(t),this.startStart=new Date(this.start),this.startEnd=new Date(this.end),this.startArmRotation=this.camera.getArmRotation(),this.frame.style.cursor="move";var e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},ie.addEventListener(document,"mousemove",e.onmousemove),ie.addEventListener(document,"mouseup",e.onmouseup),ie.preventDefault(t)}},Je.prototype._onMouseMove=function(t){this.moving=!0,t=t||window.event;var e=parseFloat(Ke(t))-this.startMouseX,n=parseFloat(tn(t))-this.startMouseY;if(t&&!0===t.ctrlKey){var i=.5*this.frame.clientWidth,r=.5*this.frame.clientHeight,s=(this._startCameraOffset.x||0)-e/i*this.camera.armLength*.8,a=(this._startCameraOffset.y||0)+n/r*this.camera.armLength*.8;this.camera.setOffset(s,a),this._storeMousePosition(t)}else{var o=this.startArmRotation.horizontal+e/200,u=this.startArmRotation.vertical+n/200,h=Math.sin(4/360*2*Math.PI);Math.abs(Math.sin(o))<h&&(o=Math.round(o/Math.PI)*Math.PI-.001),Math.abs(Math.cos(o))<h&&(o=(Math.round(o/Math.PI-.5)+.5)*Math.PI-.001),Math.abs(Math.sin(u))<h&&(u=Math.round(u/Math.PI)*Math.PI),Math.abs(Math.cos(u))<h&&(u=(Math.round(u/Math.PI-.5)+.5)*Math.PI),this.camera.setArmRotation(o,u)}this.redraw();var l=this.getCameraPosition();this.emit("cameraPositionChange",l),ie.preventDefault(t)},Je.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",this.leftButtonDown=!1,ie.removeEventListener(document,"mousemove",this.onmousemove),ie.removeEventListener(document,"mouseup",this.onmouseup),ie.preventDefault(t)},Je.prototype._onClick=function(t){if(this.onclick_callback){if(this.moving)this.moving=!1;else{var e=this.frame.getBoundingClientRect(),n=Ke(t)-e.left,i=tn(t)-e.top,r=this._dataPointFromXY(n,i);r&&this.onclick_callback(r.point.data)}ie.preventDefault(t)}},Je.prototype._onTooltip=function(t){var e=this.frame.getBoundingClientRect(),n=Ke(t)-e.left,i=tn(t)-e.top;if(this.showTooltip)if(this.tooltipTimeout&&clearTimeout(this.tooltipTimeout),this.leftButtonDown)this._hideTooltip();else if(this.tooltip&&this.tooltip.dataPoint){var r=this._dataPointFromXY(n,i);r!==this.tooltip.dataPoint&&(r?this._showTooltip(r):this._hideTooltip())}else{var s=this;this.tooltipTimeout=setTimeout(function(){s.tooltipTimeout=null;var t=s._dataPointFromXY(n,i);t&&s._showTooltip(t)},300)}},Je.prototype._onTouchStart=function(t){this.touchDown=!0;var e=this;this.ontouchmove=function(t){e._onTouchMove(t)},this.ontouchend=function(t){e._onTouchEnd(t)},ie.addEventListener(document,"touchmove",e.ontouchmove),ie.addEventListener(document,"touchend",e.ontouchend),this._onMouseDown(t)},Je.prototype._onTouchMove=function(t){this._onMouseMove(t)},Je.prototype._onTouchEnd=function(t){this.touchDown=!1,ie.removeEventListener(document,"touchmove",this.ontouchmove),ie.removeEventListener(document,"touchend",this.ontouchend),this._onMouseUp(t)},Je.prototype._onWheel=function(t){if(t=t||window.event,this.zoomable&&(!this.ctrlToZoom||t.ctrlKey)){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e){var n=this.camera.getArmLength()*(1-e/10);this.camera.setArmLength(n),this.redraw(),this._hideTooltip()}var i=this.getCameraPosition();this.emit("cameraPositionChange",i),ie.preventDefault(t)}},Je.prototype._insideTriangle=function(t,e){var n=e[0],i=e[1],r=e[2];function s(t){return 0<t?1:t<0?-1:0}var a=s((i.x-n.x)*(t.y-n.y)-(i.y-n.y)*(t.x-n.x)),o=s((r.x-i.x)*(t.y-i.y)-(r.y-i.y)*(t.x-i.x)),u=s((n.x-r.x)*(t.y-r.y)-(n.y-r.y)*(t.x-r.x));return!(0!=a&&0!=o&&a!=o||0!=o&&0!=u&&o!=u||0!=a&&0!=u&&a!=u)},Je.prototype._dataPointFromXY=function(t,e){var n,i=null,r=null,s=null,a=new ne(t,e);if(this.style===Je.STYLE.BAR||this.style===Je.STYLE.BARCOLOR||this.style===Je.STYLE.BARSIZE)for(n=this.dataPoints.length-1;0<=n;n--){var o=(i=this.dataPoints[n]).surfaces;if(o)for(var u=o.length-1;0<=u;u--){var h=o[u].corners,l=[h[0].screen,h[1].screen,h[2].screen],d=[h[2].screen,h[3].screen,h[0].screen];if(this._insideTriangle(a,l)||this._insideTriangle(a,d))return i}}else for(n=0;n<this.dataPoints.length;n++){var c=(i=this.dataPoints[n]).screen;if(c){var f=Math.abs(t-c.x),m=Math.abs(e-c.y),p=Math.sqrt(f*f+m*m);(null===s||p<s)&&p<100&&(s=p,r=i)}}return r},Je.prototype.hasBars=function(t){return t==Je.STYLE.BAR||t==Je.STYLE.BARCOLOR||t==Je.STYLE.BARSIZE},Je.prototype._showTooltip=function(t){var e,n,i;this.tooltip?(e=this.tooltip.dom.content,n=this.tooltip.dom.line,i=this.tooltip.dom.dot):(e=document.createElement("div"),Object.assign(e.style,{},this.tooltipStyle.content),e.style.position="absolute",n=document.createElement("div"),Object.assign(n.style,{},this.tooltipStyle.line),n.style.position="absolute",i=document.createElement("div"),Object.assign(i.style,{},this.tooltipStyle.dot),i.style.position="absolute",this.tooltip={dataPoint:null,dom:{content:e,line:n,dot:i}}),this._hideTooltip(),this.tooltip.dataPoint=t,"function"==typeof this.showTooltip?e.innerHTML=this.showTooltip(t.point):e.innerHTML="<table><tr><td>"+this.xLabel+":</td><td>"+t.point.x+"</td></tr><tr><td>"+this.yLabel+":</td><td>"+t.point.y+"</td></tr><tr><td>"+this.zLabel+":</td><td>"+t.point.z+"</td></tr></table>",e.style.left="0",e.style.top="0",this.frame.appendChild(e),this.frame.appendChild(n),this.frame.appendChild(i);var r=e.offsetWidth,s=e.offsetHeight,a=n.offsetHeight,o=i.offsetWidth,u=i.offsetHeight,h=t.screen.x-r/2;h=Math.min(Math.max(h,10),this.frame.clientWidth-10-r),n.style.left=t.screen.x+"px",n.style.top=t.screen.y-a+"px",e.style.left=h+"px",e.style.top=t.screen.y-a-s+"px",i.style.left=t.screen.x-o/2+"px",i.style.top=t.screen.y-u/2+"px"},Je.prototype._hideTooltip=function(){if(this.tooltip)for(var t in this.tooltip.dataPoint=null,this.tooltip.dom)if(this.tooltip.dom.hasOwnProperty(t)){var e=this.tooltip.dom[t];e&&e.parentNode&&e.parentNode.removeChild(e)}},Je.prototype.setCameraPosition=function(t){Me.setCameraPosition(t,this),this.redraw()},Je.prototype.setSize=function(t,e){this._setSize(t,e),this.redraw()};var en=Je,nn=bt(function(ti,t){ti.exports=function(){var e,r;function h(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function u(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 i(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)d(e,n)&&(t[n]=e[n]);return d(e,"toString")&&(t.toString=e.toString),d(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return Ee(t,e,n,i,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=m(t),n=r.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function y(t){var e=f(NaN);return null!=t?c(m(e),t):m(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var v=h.momentProperties=[];function g(t,e){var n,i,r;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=m(e)),s(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)i=v[n],s(r=e[i])||(t[i]=r);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,h.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function D(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&S(t[i])!==S(e[i]))&&a++;return a+s}function M(t){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(r,s){var a=!0;return c(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,r),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}M(r+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var k,x={};function T(t,e){null!=h.deprecationHandler&&h.deprecationHandler(t,e),x[t]||(M(e),x[t]=!0)}function O(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t,e){var n,i=c({},t);for(n in e)d(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},c(i[n],t[n]),c(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)d(t,n)&&!d(e,n)&&o(t[n])&&(i[n]=c({},i[n]));return i}function C(t){null!=t&&this.set(t)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null,k=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)d(t,e)&&n.push(e);return n};var P={};function E(t,e){var n=t.toLowerCase();P[n]=P[n+"s"]=P[e]=t}function L(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)d(t,n)&&(e=L(n))&&(i[e]=t[n]);return i}var A={};function W(t,e){A[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:A[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var i=""+Math.abs(t),r=e-i.length,s=0<=t;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},j={};function G(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(j[t]=r),e&&(j[e[0]]=function(){return N(r.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function z(t,e){return t.isValid()?(e=B(e,t.localeData()),V[e]=V[e]||function(i){var t,r,s=i.match(F);for(t=0,r=s.length;t<r;t++)j[s[t]]?s[t]=j[s[t]]:s[t]=U(s[t]);return function(t){var e,n="";for(e=0;e<r;e++)n+=O(s[e])?s[e].call(t,i):s[e];return n}}(e),V[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;0<=n&&H.test(t);)t=t.replace(H,i),H.lastIndex=0,n-=1;return t}var Z=/\d/,q=/\d\d/,X=/\d{3}/,$=/\d{4}/,Q=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,it=/[+-]?\d{1,6}/,rt=/\d+/,st=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,ht={};function lt(t,n,i){ht[t]=O(n)?n:function(t,e){return t&&i?i:n}}function dt(t,e){return d(ht,t)?ht[t](e._strict,e._locale):new RegExp(function(t){return ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}(t))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function mt(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),u(n)&&(i=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)ft[t[e]]=i}function pt(t,r){mt(t,function(t,e,n,i){n._w=n._w||{},r(t,n._w,n,i)})}function yt(t,e,n){null!=e&&d(ft,t)&&ft[t](e,n._a,n,t)}var vt=0,gt=1,_t=2,wt=3,bt=4,St=5,Dt=6,Mt=7,kt=8;function xt(t){return Tt(t)?366:365}function Tt(t){return t%4==0&&t%100!=0||t%400==0}G("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),E("year","y"),W("year",1),lt("Y",st),lt("YY",J,q),lt("YYYY",nt,$),lt("YYYYY",it,Q),lt("YYYYYY",it,Q),mt(["YYYYY","YYYYYY"],vt),mt("YYYY",function(t,e){e[vt]=2===t.length?h.parseTwoDigitYear(t):S(t)}),mt("YY",function(t,e){e[vt]=h.parseTwoDigitYear(t)}),mt("Y",function(t,e){e[vt]=parseInt(t,10)}),h.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Ot,Yt=Ct("FullYear",!0);function Ct(e,n){return function(t){return null!=t?(Et(this,e,t),h.updateOffset(this,n),this):Pt(this,e)}}function Pt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Et(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Tt(t)?29:28:31-n%7%2}Ot=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},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),G("MMMM",0,0,function(t){return this.localeData().months(this,t)}),E("month","M"),W("month",8),lt("M",J),lt("MM",J,q),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),mt(["M","MM"],function(t,e){e[gt]=S(t)-1}),mt(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[gt]=r:m(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ot.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,a))?r:-1!==(r=Ot.call(this._longMonthsParse,a))?r:null:-1!==(r=Ot.call(this._longMonthsParse,a))?r:-1!==(r=Ot.call(this._shortMonthsParse,a))?r:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),h.updateOffset(this,!0),this):Pt(this,"Month")}var Ht=ut;var Vt=ut;function jt(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],s=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)i[e]=ct(i[e]),r[e]=ct(r[e]);for(e=0;e<24;e++)s[e]=ct(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Gt(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ut(t,e,n){var i=7+e-n,r=(7+Gt(t,0,i).getUTCDay()-e)%7;return i-r-1}function zt(t,e,n,i,r){var s,a,o=(7+n-i)%7,u=Ut(t,i,r),h=1+7*(e-1)+o+u;return a=h<=0?xt(s=t-1)+h:h>xt(t)?(s=t+1,h-xt(t)):(s=t,h),{year:s,dayOfYear:a}}function Bt(t,e,n){var i,r,s=Ut(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?(r=t.year()-1,i=a+Zt(r,e,n)):a>Zt(t.year(),e,n)?(i=a-Zt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Zt(t,e,n){var i=Ut(t,e,n),r=Ut(t+1,e,n);return(xt(t)-i+r)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),W("week",5),W("isoWeek",5),lt("w",J),lt("ww",J,q),lt("W",J),lt("WW",J,q),pt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=S(t)});function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),pt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t}),pt(["d","e","E"],function(t,e,n,i){e[i]=S(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Jt(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,a))?r:-1!==(r=Ot.call(this._weekdaysParse,a))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,a))?r:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(i),o.push(r),u.push(s),h.push(i),h.push(r),h.push(s);for(a.sort(t),o.sort(t),u.sort(t),h.sort(t),e=0;e<7;e++)o[e]=ct(o[e]),u[e]=ct(u[e]),h[e]=ct(h[e]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,ie),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+ie.apply(this)+N(this.minutes(),2)}),G("hmmss",0,0,function(){return""+ie.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),re("a",!0),re("A",!1),E("hour","h"),W("hour",13),lt("a",se),lt("A",se),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,q),lt("hh",J,q),lt("kk",J,q),lt("hmm",K),lt("hmmss",tt),lt("Hmm",K),lt("Hmmss",tt),mt(["H","HH"],wt),mt(["k","kk"],function(t,e,n){var i=S(t);e[wt]=24===i?0:i}),mt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),mt(["h","hh"],function(t,e,n){e[wt]=S(t),m(n).bigHour=!0}),mt("hmm",function(t,e,n){var i=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i)),m(n).bigHour=!0}),mt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i,2)),e[St]=S(t.substr(r)),m(n).bigHour=!0}),mt("Hmm",function(t,e,n){var i=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i))}),mt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=S(t.substr(0,i)),e[bt]=S(t.substr(i,2)),e[St]=S(t.substr(r))});var ae,oe=Ct("Hours",!0),ue={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Qt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},he={},le={};function de(t){return t?t.toLowerCase().replace("_","-"):t}function ce(t){var e=null;if(!he[t]&&ti&&ti.exports)try{e=ae._abbr;var n=ni;n("./locale/"+t),fe(e)}catch(t){}return he[t]}function fe(t,e){var n;return t&&((n=s(e)?pe(t):me(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function me(t,e){if(null===e)return delete he[t],null;var n,i=ue;if(e.abbr=t,null!=he[t])T("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."),i=he[t]._config;else if(null!=e.parentLocale)if(null!=he[e.parentLocale])i=he[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return le[e.parentLocale]||(le[e.parentLocale]=[]),le[e.parentLocale].push({name:t,config:e}),null;i=n._config}return he[t]=new C(Y(i,e)),le[t]&&le[t].forEach(function(t){me(t.name,t.config)}),fe(t),he[t]}function pe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=ce(t))return e;t=[t]}return function(t){var e,n,i,r,s=0;for(;s<t.length;){for(r=de(t[s]).split("-"),e=r.length,n=(n=de(t[s+1]))?n.split("-"):null;0<e;){if(i=ce(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&D(r,n,!0)>=e-1)break;e--}s++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[vt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[Dt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[Dt]<0||999<n[Dt]?Dt:-1,m(t)._overflowDayOfYear&&(e<vt||_t<e)&&(e=_t),m(t)._overflowWeeks&&-1===e&&(e=Mt),m(t)._overflowWeekday&&-1===e&&(e=kt),m(t).overflow=e),t}function ve(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,i,r,s,a=[];if(!t._d){for(i=function(t){var e=new Date(h.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,i,r,s,a,o,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)s=1,a=4,n=ve(e.GG,t._a[vt],Bt(Le(),1,4).year),i=ve(e.W,1),((r=ve(e.E,1))<1||7<r)&&(u=!0);else{s=t._locale._week.dow,a=t._locale._week.doy;var h=Bt(Le(),s,a);n=ve(e.gg,t._a[vt],h.year),i=ve(e.w,h.week),null!=e.d?((r=e.d)<0||6<r)&&(u=!0):null!=e.e?(r=e.e+s,(e.e<0||6<e.e)&&(u=!0)):r=s}i<1||i>Zt(n,s,a)?m(t)._overflowWeeks=!0:null!=u?m(t)._overflowWeekday=!0:(o=zt(n,i,r,s,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ve(t._a[vt],i[vt]),(t._dayOfYear>xt(s)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Gt(s,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[Dt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Gt:function(t,e,n,i,r,s,a){var o;t<100&&0<=t?(o=new Date(t+400,e,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,r,s,a);return o}).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(m(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],De=[["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/]],Me=/^\/?Date\((\-?\d+)/i;function ke(t){var e,n,i,r,s,a,o=t._i,u=_e.exec(o)||we.exec(o);if(u){for(m(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){r=Se[e][0],i=!1!==Se[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=De.length;e<n;e++)if(De[e][1].exec(u[3])){s=(u[2]||" ")+De[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Ce(t)}else t._isValid=!1}var xe=/^(?:(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}))$/;function Te(t,e,n,i,r,s){var a=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Wt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return s&&a.push(parseInt(s,10)),a}var Oe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t){var e=xe.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Te(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var i=$t.indexOf(t),r=new Date(e[0],e[1],e[2]).getDay();if(i!==r)return m(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Oe[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return 60*((i-r)/100)+r}}(e[8],e[9],e[10]),t._d=Gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Ce(t){if(t._f!==h.ISO_8601)if(t._f!==h.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,r,s,a=""+t._i,o=a.length,u=0;for(i=B(t._f,t._locale).match(F)||[],e=0;e<i.length;e++)r=i[e],(n=(a.match(dt(r,t))||[])[0])&&(0<(s=a.substr(0,a.indexOf(n))).length&&m(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),u+=n.length),j[r]?(n?m(t).empty=!1:m(t).unusedTokens.push(r),yt(r,n,t)):t._strict&&!n&&m(t).unusedTokens.push(r);m(t).charsLeftOver=o-u,0<a.length&&m(t).unusedInput.push(a),t._a[wt]<=12&&!0===m(t).bigHour&&0<t._a[wt]&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Ye(t);else ke(t)}function Pe(t){var e=t._i,n=t._f;return t._locale=t._locale||pe(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(l(e)?t._d=e:a(n)?function(t){var e,n,i,r,s;if(0===t._f.length)return m(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)s=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ce(e),p(e)&&(s+=m(e).charsLeftOver,s+=10*m(e).unusedTokens.length,m(e).score=s,(null==i||s<i)&&(i=s,n=e));c(t,n||e)}(t):n?Ce(t):function(t){var e=t._i;s(e)?t._d=new Date(h.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Me.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(ke(t),!1!==t._isValid)return;delete t._isValid}{if(Ye(t),!1!==t._isValid)return;delete t._isValid}h.createFromInputFallback(t)}(t):a(e)?(t._a=i(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):o(e)?function(t){if(t._d)return;var e=R(t._i);t._a=i([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):h.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ee(t,e,n,i,r){var s={};return!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&function(t){{if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}}(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=t,s._f=e,s._strict=i,function(t){var e=new _(ye(Pe(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(s)}function Le(t,e,n,i){return Ee(t,e,n,i,!1)}h.createFromInputFallback=t("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var Re=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Ae=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function We(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=R(t),n=e.year||0,i=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,l=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ot.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ie.length;++i)if(t[Ie[i]]){if(n)return!1;parseFloat(t[Ie[i]])!==S(t[Ie[i]])&&(n=!0)}return!0}(e),this._milliseconds=+l+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=pe(),this._bubble()}function Fe(t){return t instanceof Ne}function He(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,n){G(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}Ve("Z",":"),Ve("ZZ",""),lt("Z",ot),lt("ZZ",ot),mt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ge(ot,t)});var je=/([\+\-]|\d\d)/gi;function Ge(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],r=(i+"").match(je)||["-",0,0],s=60*r[1]+S(r[2]);return 0===s?0:"+"===r[0]?s:-s}function Ue(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(w(t)||l(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),h.updateOffset(n,!1),n):Le(t).local()}function ze(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}h.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,s=t,a=null;return Fe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(He(1e3*a[Dt]))*n}):(a=qe.exec(t))?(n="-"===a[1]?-1:1,s={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Ue(e,t),t.isBefore(e)?n=Qe(t,e):((n=Qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(s.from),Le(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),i=new Ne(s),Fe(t)&&d(t,"_locale")&&(i._locale=t._locale),i}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qe(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Je(i,r){return function(t,e){var n;return null===e||isNaN(+e)||(T(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,Xe(t="string"==typeof t?+t:t,e),i),this}}function Ke(t,e,n,i){var r=e._milliseconds,s=He(e._days),a=He(e._months);t.isValid()&&(i=null==i||i,a&&Nt(t,Pt(t,"Month")+a*n),s&&Et(t,"Date",Pt(t,"Date")+s*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&h.updateOffset(t,s||a))}Xe.fn=Ne.prototype,Xe.invalid=function(){return Xe(NaN)};var tn=Je(1,"add"),en=Je(-1,"subtract");function nn(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return i=e-s<0?(n=t.clone().add(r-1,"months"),(e-s)/(s-n)):(n=t.clone().add(1+r,"months"),(e-s)/(n-s)),-(r+i)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=pe(t))&&(this._locale=e),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=t("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 an(){return this._locale}var on=126227808e5;function un(t,e){return(t%e+e)%e}function hn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-on:new Date(t,e,n).valueOf()}function ln(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-on:Date.UTC(t,e,n)}function dn(t,e){G(0,[t,t.length],0,e)}function cn(t,e,n,i,r){var s;return null==t?Bt(this,i,r).year:((s=Zt(t,i,r))<e&&(e=s),function(t,e,n,i,r){var s=zt(t,e,n,i,r),a=Gt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,i,r))}G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),lt("G",st),lt("g",st),lt("GG",J,q),lt("gg",J,q),lt("GGGG",nt,$),lt("gggg",nt,$),lt("GGGGG",it,Q),lt("ggggg",it,Q),pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=S(t)}),pt(["gg","GG"],function(t,e,n,i){e[i]=h.parseTwoDigitYear(t)}),G("Q",0,"Qo","quarter"),E("quarter","Q"),W("quarter",7),lt("Q",Z),mt("Q",function(t,e){e[gt]=3*(S(t)-1)}),G("D",["DD",2],"Do","date"),E("date","D"),W("date",9),lt("D",J),lt("DD",J,q),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],_t),mt("Do",function(t,e){e[_t]=S(t.match(J)[0])});var fn=Ct("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),W("dayOfYear",4),lt("DDD",et),lt("DDDD",X),mt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),G("m",["mm",2],0,"minute"),E("minute","m"),W("minute",14),lt("m",J),lt("mm",J,q),mt(["m","mm"],bt);var mn=Ct("Minutes",!1);G("s",["ss",2],0,"second"),E("second","s"),W("second",15),lt("s",J),lt("ss",J,q),mt(["s","ss"],St);var pn,yn=Ct("Seconds",!1);for(G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),E("millisecond","ms"),W("millisecond",16),lt("S",et,Z),lt("SS",et,q),lt("SSS",et,X),pn="SSSS";pn.length<=9;pn+="S")lt(pn,rt);function vn(t,e){e[Dt]=S(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")mt(pn,vn);var gn=Ct("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),i=Ue(n,this).startOf("day"),r=h.calendarFormat(this,i)||"sameElse",s=e&&(O(e[r])?e[r].call(this,n):e[r]);return this.format(s||this.localeData().calendar(r,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Ue(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=L(e)){case"year":s=nn(this,i)/12;break;case"month":s=nn(this,i);break;case"quarter":s=nn(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:b(s)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ln:hn;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),h.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(O(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,i){var r=w(t)?t:Le(t),s=w(e)?e:Le(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n)))},_n.isSame=function(t,e){var n,i=w(t)?t:Le(t);if(!this.isValid()||!i.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return p(this)},_n.lang=sn,_n.locale=rn,_n.localeData=an,_n.max=Ae,_n.min=Re,_n.parsingFlags=function(){return c({},m(this))},_n.set=function(t,e){if("object"==typeof t)for(var n=I(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(O(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?ln:hn;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),h.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},_n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(O(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z"));return z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Yt,_n.isLeapYear=function(){return Tt(this.year())},_n.weekYear=function(t){return cn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return cn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=fn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,i=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=i.weekdaysParse(n))?null:n:parseInt(n,10):n,this.add(t-e,"d")):e;var n,i},_n.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")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,i=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:i.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,i},_n.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")},_n.hour=_n.hours=oe,_n.minute=_n.minutes=mn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?r:ze(this);if("string"==typeof t){if(null===(t=Ge(ot,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=ze(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?Ke(this,Xe(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ze(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ge(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",fn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Yt),_n.zone=t("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()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Pe(t))._a){var e=t._isUTC?f(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<D(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=C.prototype;function Sn(t,e,n,i){var r=pe(),s=f().set(i,e);return r[n](s,t)}function Dn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Sn(t,i,n,"month");return r}function Mn(t,e,n,i){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var r,s=pe(),a=t?s._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,i,"day");var o=[];for(r=0;r<7;r++)o[r]=Sn(e,(r+a)%7,i,"day");return o}bn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return O(i)?i.call(e,n):i},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return O(r)?r(t,e,n,i):r.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return O(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)O(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var i,r,s;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},bn.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Vt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ht),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var i,r,s;if(this._weekdaysParseExact)return Jt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},fe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),h.lang=t("moment.lang is deprecated. Use moment.locale instead.",fe),h.langData=t("moment.langData is deprecated. Use moment.localeData instead.",pe);var kn=Math.abs;function xn(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Tn(t){return t<0?Math.floor(t):Math.ceil(t)}function On(t){return 4800*t/146097}function Yn(t){return 146097*t/4800}function Cn(t){return function(){return this.as(t)}}var Pn=Cn("ms"),En=Cn("s"),Ln=Cn("m"),Rn=Cn("h"),An=Cn("d"),Wn=Cn("w"),In=Cn("M"),Nn=Cn("Q"),Fn=Cn("y");function Hn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Vn=Hn("milliseconds"),jn=Hn("seconds"),Gn=Hn("minutes"),Un=Hn("hours"),zn=Hn("days"),Bn=Hn("months"),Zn=Hn("years");var qn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Qn(t){return(0<t)-(t<0)||+t}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,i=$n(this._days),r=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var s=b(r/12),a=r%=12,o=i,u=e,h=t,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var c=d<0?"-":"",f=Qn(this._months)!==Qn(d)?"-":"",m=Qn(this._days)!==Qn(d)?"-":"",p=Qn(this._milliseconds)!==Qn(d)?"-":"";return c+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(o?m+o+"D":"")+(u||h||l?"T":"")+(u?p+u+"H":"")+(h?p+h+"M":"")+(l?p+l+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),t.milliseconds=kn(t.milliseconds),t.seconds=kn(t.seconds),t.minutes=kn(t.minutes),t.hours=kn(t.hours),t.months=kn(t.months),t.years=kn(t.years),this},Kn.add=function(t,e){return xn(this,t,e,1)},Kn.subtract=function(t,e){return xn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+On(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Yn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=Pn,Kn.asSeconds=En,Kn.asMinutes=Ln,Kn.asHours=Rn,Kn.asDays=An,Kn.asWeeks=Wn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,i,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=s&&0<=a&&0<=o||s<=0&&a<=0&&o<=0||(s+=864e5*Tn(Yn(o)+a),o=a=0),u.milliseconds=s%1e3,t=b(s/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),r=b(On(a)),o+=r,a-=Tn(Yn(r)),i=b(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},Kn.clone=function(){return Xe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=Vn,Kn.seconds=jn,Kn.minutes=Gn,Kn.hours=Un,Kn.days=zn,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var i=Xe(t).abs(),r=qn(i.as("s")),s=qn(i.as("m")),a=qn(i.as("h")),o=qn(i.as("d")),u=qn(i.as("M")),h=qn(i.as("y")),l=r<=Xn.ss&&["s",r]||r<Xn.s&&["ss",r]||s<=1&&["m"]||s<Xn.m&&["mm",s]||a<=1&&["h"]||a<Xn.h&&["hh",a]||o<=1&&["d"]||o<Xn.d&&["dd",o]||u<=1&&["M"]||u<Xn.M&&["MM",u]||h<=1&&["y"]||["yy",h];return l[2]=e,l[3]=0<+t,l[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,l)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Jn,Kn.toString=Jn,Kn.toJSON=Jn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Kn.lang=sn,G("X",0,0,"unix"),G("x",0,0,"valueOf"),lt("x",st),lt("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),mt("x",function(t,e,n){n._d=new Date(S(t))}),h.version="2.24.0",function(t){e=t}(Le),h.fn=_n,h.min=function(){return We("isBefore",[].slice.call(arguments,0))},h.max=function(){return We("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=f,h.unix=function(t){return Le(1e3*t)},h.months=function(t,e){return Dn(t,e,"months")},h.isDate=l,h.locale=fe,h.invalid=y,h.duration=Xe,h.isMoment=w,h.weekdays=function(t,e,n){return Mn(t,e,n,"weekdays")},h.parseZone=function(){return Le.apply(null,arguments).parseZone()},h.localeData=pe,h.isDuration=Fe,h.monthsShort=function(t,e){return Dn(t,e,"monthsShort")},h.weekdaysMin=function(t,e,n){return Mn(t,e,n,"weekdaysMin")},h.defineLocale=me,h.updateLocale=function(t,e){if(null!=e){var n,i,r=ue;null!=(i=ce(t))&&(r=i._config),e=Y(r,e),(n=new C(e)).parentLocale=he[t],he[t]=n,fe(t)}else null!=he[t]&&(null!=he[t].parentLocale?he[t]=he[t].parentLocale:null!=he[t]&&delete he[t]);return he[t]},h.locales=function(){return k(he)},h.weekdaysShort=function(t,e,n){return Mn(t,e,n,"weekdaysShort")},h.normalizeUnits=L,h.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(qn=t,!0):qn},h.relativeTimeThreshold=function(t,e){return void 0!==Xn[t]&&(void 0===e?Xn[t]:(Xn[t]=e,"s"===t&&(Xn.ss=e-1),!0))},h.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"},h.prototype=_n,h.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"},h}()}),rn="undefined"!=typeof window&&window.moment||nn,sn=bt(function(t,e){var l;t.exports=(l=null,function i(r,t){var s=t||{preventDefault:!1};if(r.Manager){var a=r,e=function(t,e){var n=Object.create(s);return e&&a.assign(n,e),i(new a(t,n),n)};return a.assign(e,a),e.Manager=function(t,e){var n=Object.create(s);return e&&a.assign(n,e),i(new a.Manager(t,n),n)},e}var o=Object.create(r),n=r.element;function u(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()});for(var i=t.firstTarget=l;i&&!e;){var r=i.hammer;if(r)for(var s,a=0;a<r.length;a++)if(s=r[a]._handlers[t.type])for(var o=0;o<s.length&&!e;o++)s[o](t);i=i.parentNode}}return n.hammer||(n.hammer=[]),n.hammer.push(o),r.on("hammer.input",function(t){!0!==s.preventDefault&&s.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(l=t.target)}),o._handlers={},o.on=function(t,n){return u(t).forEach(function(t){var e=o._handlers[t];e||(o._handlers[t]=e=[],r.on(t,h)),e.push(n)}),o},o.off=function(t,n){return u(t).forEach(function(t){var e=o._handlers[t];e&&(0<(e=n?e.filter(function(t){return t!==n}):[]).length?o._handlers[t]=e:(r.off(t,h),delete o._handlers[t]))}),o},o.emit=function(t,e){l=e.target,r.emit(t,e)},o.destroy=function(){var t=r.element.hammer,e=t.indexOf(o);-1!==e&&t.splice(e,1),t.length||delete r.element.hammer,o._handlers={},r.destroy()},o})}),an=bt(function(Ut){!function(s,r,t,d){var a,o=["","webkit","Moz","MS","ms","o"],e=r.createElement("div"),n="function",u=Math.round,c=Math.abs,f=Date.now;function h(t,e,n){return setTimeout(g(t,n),e)}function i(t,e,n){return!!Array.isArray(t)&&(l(t,n[e],n),!0)}function l(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==d)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function m(i,t,e){var r="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=s.console&&(s.console.warn||s.console.log);return n&&n.call(s.console,r,e),i.apply(this,arguments)}}a="function"!=typeof Object.assign?function(t){if(t===d||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==d&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var p=m(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===d)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),y=m(function(t,e){return p(t,e,!0)},"merge","Use `assign`.");function v(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&a(i,n)}function g(t,e){return function(){return t.apply(e,arguments)}}function _(t,e){return typeof t==n?t.apply(e&&e[0]||d,e):t}function w(t,e){return t===d?e:t}function b(e,t,n){l(k(t),function(t){e.addEventListener(t,n,!1)})}function S(e,t,n){l(k(t),function(t){e.removeEventListener(t,n,!1)})}function D(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function M(t,e){return-1<t.indexOf(e)}function k(t){return t.trim().split(/\s+/g)}function x(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function T(t){return Array.prototype.slice.call(t,0)}function O(t,n,e){for(var i=[],r=[],s=0;s<t.length;){var a=n?t[s][n]:t[s];x(r,a)<0&&i.push(t[s]),r[s]=a,s++}return e&&(i=n?i.sort(function(t,e){return t[n]>e[n]}):i.sort()),i}function Y(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<o.length;){if((i=(n=o[s])?n+r:e)in t)return i;s++}return d}var C=1;function P(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||s}var E="ontouchstart"in s,L=Y(s,"PointerEvent")!==d,R=E&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),A="touch",W=25,I=1,N=4,F=8,H=1,V=2,j=4,G=8,U=16,z=V|j,B=G|U,Z=z|B,q=["x","y"],X=["clientX","clientY"];function $(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){_(e.options.enable,[e])&&n.handler(t)},this.init()}function Q(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=e&I&&i-r==0,a=e&(N|F)&&i-r==0;n.isFirst=!!s,n.isFinal=!!a,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=J(e));1<r&&!n.firstMultiple?n.firstMultiple=J(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,o=a?a.center:s.center,u=e.center=K(i);e.timeStamp=f(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=it(o,u),e.distance=nt(o,u),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};e.eventType!==I&&s.eventType!==N||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=et(e.deltaX,e.deltaY);var h=tt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=c(h.x)>c(h.y)?h.x:h.y,e.scale=a?function(t,e){return nt(e[0],e[1],X)/nt(t[0],t[1],X)}(a.pointers,i):1,e.rotation=a?function(t,e){return it(e[1],e[0],X)+it(t[1],t[0],X)}(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,a=t.lastInterval||e,o=e.timeStamp-a.timeStamp;if(e.eventType!=F&&(W<o||a.velocity===d)){var u=e.deltaX-a.deltaX,h=e.deltaY-a.deltaY,l=tt(o,u,h);i=l.x,r=l.y,n=c(l.x)>c(l.y)?l.x:l.y,s=et(u,h),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var l=t.element;D(e.srcEvent.target,l)&&(l=e.srcEvent.target);e.target=l}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function J(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:u(t.pointers[n].clientX),clientY:u(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:u(n/e),y:u(i/e)}}function tt(t,e,n){return{x:e/t||0,y:n/t||0}}function et(t,e){return t===e?H:c(t)>=c(e)?t<0?V:j:e<0?G:U}function nt(t,e,n){var i=e[(n=n||q)[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function it(t,e,n){var i=e[(n=n||q)[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(P(this.element),this.evWin,this.domHandler)}};var rt={mousedown:I,mousemove:2,mouseup:N},st="mousedown",at="mousemove mouseup";function ot(){this.evEl=st,this.evWin=at,this.pressed=!1,$.apply(this,arguments)}v(ot,$,{handler:function(t){var e=rt[t.type];e&I&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=N),this.pressed&&(e&N&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ut={pointerdown:I,pointermove:2,pointerup:N,pointercancel:F,pointerout:F},ht={2:A,3:"pen",4:"mouse",5:"kinect"},lt="pointerdown",dt="pointermove pointerup pointercancel";function ct(){this.evEl=lt,this.evWin=dt,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}s.MSPointerEvent&&!s.PointerEvent&&(lt="MSPointerDown",dt="MSPointerMove MSPointerUp MSPointerCancel"),v(ct,$,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=ut[i],s=ht[t.pointerType]||t.pointerType,a=s==A,o=x(e,t.pointerId,"pointerId");r&I&&(0===t.button||a)?o<0&&(e.push(t),o=e.length-1):r&(N|F)&&(n=!0),o<0||(e[o]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(o,1))}});var ft={touchstart:I,touchmove:2,touchend:N,touchcancel:F};function mt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,$.apply(this,arguments)}v(mt,$,{handler:function(t){var e=ft[t.type];if(e===I&&(this.started=!0),this.started){var n=function(t,e){var n=T(t.touches),i=T(t.changedTouches);e&(N|F)&&(n=O(n.concat(i),"identifier",!0));return[n,i]}.call(this,t,e);e&(N|F)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:A,srcEvent:t})}}});var pt={touchstart:I,touchmove:2,touchend:N,touchcancel:F},yt="touchstart touchmove touchend touchcancel";function vt(){this.evTarget=yt,this.targetIds={},$.apply(this,arguments)}v(vt,$,{handler:function(t){var e=pt[t.type],n=function(t,e){var n=T(t.touches),i=this.targetIds;if(e&(2|I)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,a=T(t.changedTouches),o=[],u=this.target;if(s=n.filter(function(t){return D(t.target,u)}),e===I)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;r=0;for(;r<a.length;)i[a[r].identifier]&&o.push(a[r]),e&(N|F)&&delete i[a[r].identifier],r++;return o.length?[O(s.concat(o),"identifier",!0),o]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:A,srcEvent:t})}});var gt=2500;function _t(){$.apply(this,arguments);var t=g(this.handler,this);this.touch=new vt(this.manager,t),this.mouse=new ot(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function wt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);-1<t&&i.splice(t,1)},gt)}}v(_t,$,{handler:function(t,e,n){var i=n.pointerType==A,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&I?(this.primaryTouch=e.changedPointers[0].identifier,wt.call(this,e)):t&(N|F)&&wt.call(this,e)}).call(this,e,n);else if(r&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),a=Math.abs(n-r.y);if(s<=25&&a<=25)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=Y(e.style,"touchAction"),St=bt!==d,Dt="manipulation",Mt="none",kt="pan-x",xt="pan-y",Tt=function(){if(!St)return!1;var e={},n=s.CSS&&s.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!n||s.CSS.supports("touch-action",t)}),e}();function Ot(t,e){this.manager=t,this.set(e)}Ot.prototype={set:function(t){"compute"==t&&(t=this.compute()),St&&this.manager.element.style&&Tt[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return l(this.manager.recognizers,function(t){_(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(M(t,Mt))return Mt;var e=M(t,kt),n=M(t,xt);if(e&&n)return Mt;if(e||n)return e?kt:xt;if(M(t,Dt))return Dt;return"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=M(i,Mt)&&!Tt.none,s=M(i,xt)&&!Tt[xt],a=M(i,kt)&&!Tt[kt];if(r){var o=1===t.pointers.length,u=t.distance<2,h=t.deltaTime<250;if(o&&u&&h)return}if(!a||!s)return r||s&&n&z||a&&n&B?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Yt=1;function Ct(t){this.options=a({},this.defaults,t||{}),this.id=C++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Yt,this.simultaneous={},this.requireFail=[]}function Pt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Et(t){return t==U?"down":t==G?"up":t==V?"left":t==j?"right":""}function Lt(t,e){var n=e.manager;return n?n.get(t):t}function Rt(){Ct.apply(this,arguments)}function At(){Rt.apply(this,arguments),this.pX=null,this.pY=null}function Wt(){Rt.apply(this,arguments)}function It(){Ct.apply(this,arguments),this._timer=null,this._input=null}function Nt(){Rt.apply(this,arguments)}function Ft(){Rt.apply(this,arguments)}function Ht(){Ct.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Vt(t,e){return(e=e||{}).recognizers=w(e.recognizers,Vt.defaults.preset),new jt(t,e)}Ct.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(i(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Lt(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return i(t,"dropRecognizeWith",this)||(t=Lt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(i(t,"requireFailure",this))return this;var e=this.requireFail;return-1===x(e,t=Lt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(i(t,"dropRequireFailure",this))return this;t=Lt(t,this);var e=x(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){var n=this,t=this.state;function i(t){n.manager.emit(t,e)}t<8&&i(n.options.event+Pt(t)),i(n.options.event),e.additionalEvent&&i(e.additionalEvent),8<=t&&i(n.options.event+Pt(t))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Yt)))return!1;t++}return!0},recognize:function(t){var e=a({},t);if(!_(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Yt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},v(Rt,Ct,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(n&F||!r)?16|e:i||r?n&N?8|e:2&e?4|e:2:32}}),v(At,Rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var t=this.options.direction,e=[];return t&z&&e.push(xt),t&B&&e.push(kt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,a=t.deltaY;return r&e.direction||(i=e.direction&z?(r=0===s?H:s<0?V:j,n=s!=this.pX,Math.abs(t.deltaX)):(r=0===a?H:a<0?G:U,n=a!=this.pY,Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Rt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(Wt,Rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),v(It,Ct,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(N|F)&&!r)this.reset();else if(t.eventType&I)this.reset(),this._timer=h(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&N)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&N?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),v(Nt,Rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Mt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(Ft,Rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:z|B,pointers:1},getTouchAction:function(){return At.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(z|B)?e=t.overallVelocity:n&z?e=t.overallVelocityX:n&B&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(e)>this.options.velocity&&t.eventType&N},emit:function(t){var e=Et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(Ht,Ct,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Dt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&I&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=N)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||nt(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=h(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=h(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Vt.VERSION="2.0.7",Vt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Nt,{enable:!1}],[Wt,{enable:!1},["rotate"]],[Ft,{direction:z}],[At,{direction:z},["swipe"]],[Ht],[Ht,{event:"doubletap",taps:2},["tap"]],[It]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function jt(t,e){this.options=a({},Vt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(L?ct:R?vt:E?_t:ot))(t,Q)}(this),this.touchAction=new Ot(this,this.options.touchAction),Gt(this,!0),l(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Gt(n,i){var r,s=n.element;s.style&&(l(n.options.cssProps,function(t,e){r=Y(s.style,e),i?(n.oldCssProps[r]=s.style[r],s.style[r]=t):s.style[r]=n.oldCssProps[r]||""}),i||(n.oldCssProps={}))}jt.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof Ct)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(i(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(i(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=x(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==d&&e!==d){var n=this.handlers;return l(k(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==d){var n=this.handlers;return l(k(t),function(t){e?n[t]&&n[t].splice(x(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=r.createEvent("Event");n.initEvent(t,!0,!0),(n.gesture=e).target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Gt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(Vt,{INPUT_START:I,INPUT_MOVE:2,INPUT_END:N,INPUT_CANCEL:F,STATE_POSSIBLE:Yt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:H,DIRECTION_LEFT:V,DIRECTION_RIGHT:j,DIRECTION_UP:G,DIRECTION_DOWN:U,DIRECTION_HORIZONTAL:z,DIRECTION_VERTICAL:B,DIRECTION_ALL:Z,Manager:jt,Input:$,TouchAction:Ot,TouchInput:vt,MouseInput:ot,PointerEventInput:ct,TouchMouseInput:_t,SingleTouchInput:mt,Recognizer:Ct,AttrRecognizer:Rt,Tap:Ht,Pan:At,Swipe:Ft,Pinch:Wt,Rotate:Nt,Press:It,on:b,off:S,each:l,merge:y,extend:p,assign:a,inherit:v,bindFn:g,prefixed:Y}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=Vt,"function"==typeof d&&d.amd?d(function(){return Vt}):Ut.exports?Ut.exports=Vt:s.Hammer=Vt}(window,document)}),on=bt(function(t){if("undefined"!=typeof window){var e=sn,n=window.Hammer||an;t.exports=e(n,{preventDefault:"mouse"})}else t.exports=function(){return function(){function e(){}return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}()}}),un=bt(function(t,e){t.exports=function(t){var e,r=t&&t.preventDefault||!1,n=t&&t.container||window,i={},a={keydown:{},keyup:{}},o={};for(e=97;e<=122;e++)o[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)o[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)o[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)o["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)o["num"+e]={code:96+e,shift:!1};function s(t){h(t,"keydown")}function u(t){h(t,"keyup")}o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var h=function(t,e){if(void 0!==a[e][t.keyCode]){for(var n=a[e][t.keyCode],i=0;i<n.length;i++)void 0===n[i].shift?n[i].fn(t):1==n[i].shift&&1==t.shiftKey?n[i].fn(t):0==n[i].shift&&0==t.shiftKey&&n[i].fn(t);1==r&&t.preventDefault()}};return i.bind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===o[t])throw new Error("unsupported key: "+t);void 0===a[n][o[t].code]&&(a[n][o[t].code]=[]),a[n][o[t].code].push({fn:e,shift:o[t].shift})},i.bindAll=function(t,e){for(var n in void 0===e&&(e="keydown"),o)o.hasOwnProperty(n)&&i.bind(n,t,e)},i.getKey=function(t){for(var e in o)if(o.hasOwnProperty(e)){if(1==t.shiftKey&&1==o[e].shift&&t.keyCode==o[e].code)return e;if(0==t.shiftKey&&0==o[e].shift&&t.keyCode==o[e].code)return e;if(t.keyCode==o[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},i.unbind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===o[t])throw new Error("unsupported key: "+t);if(void 0!==e){var i=[],r=a[n][o[t].code];if(void 0!==r)for(var s=0;s<r.length;s++)r[s].fn==e&&r[s].shift==o[t].shift||i.push(a[n][o[t].code][s]);a[n][o[t].code]=i}else a[n][o[t].code]=[]},i.reset=function(){a={keydown:{},keyup:{}}},i.destroy=function(){a={keydown:{},keyup:{}},n.removeEventListener("keydown",s,!0),n.removeEventListener("keyup",u,!0)},n.addEventListener("keydown",s,!0),n.addEventListener("keyup",u,!0),i}}),hn=ie,ln=Dt,dn=Ne.DataSet,cn=Ne.DataView,fn=Ne.Queue,mn=en,pn={Camera:de,Filter:Ve,Point2d:ne,Point3d:ee,Slider:se,StepNumber:oe},yn=rn,vn=on,gn=un,_n={util:hn,DOMutil:ln,DataSet:dn,DataView:cn,Queue:fn,Graph3d:mn,graph3d:pn,moment:yn,Hammer:vn,keycharm:gn};t.DOMutil=ln,t.DataSet=dn,t.DataView=cn,t.Graph3d=mn,t.Hammer=vn,t.Queue=fn,t.default=_n,t.graph3d=pn,t.keycharm=gn,t.moment=yn,t.util=hn,Object.defineProperty(t,"__esModule",{value:!0})});