UNPKG

@holokit/charts

Version:
1 lines 367 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("d3"),require("react"),require("moment-timezone"),require("prop-types")):"function"==typeof define&&define.amd?define(["d3","react","moment-timezone","prop-types"],t):"object"==typeof exports?exports.Icons=t(require("d3"),require("react"),require("moment-timezone"),require("prop-types")):(e.Hologram=e.Hologram||{},e.Hologram.Icons=t(e.d3,e.react,e["moment-timezone"],e["prop-types"]))}(window,(function(e,t,a,n){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(n,s,function(t){return e[t]}.bind(null,s));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="./",a(a.s=343)}([function(e,t,a){(function(e){e.exports=function(){"use strict";var t,n;function s(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(d(e,t))return!1;return!0}function _(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function m(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var a,n=[],s=e.length;for(a=0;a<s;++a)n.push(t(e[a],a));return n}function c(e,t){for(var a in t)d(t,a)&&(e[a]=t[a]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,a,n){return vt(e,t,a,n,!0).utc()}function M(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){var t=null,a=!1,s=e._d&&!isNaN(e._d.getTime());return s&&(t=M(e),a=n.call(t.parsedDateParts,(function(e){return null!=e})),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a),e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid)}function y(e){var t=h(NaN);return null!=e?c(M(t),e):M(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,a=Object(this),n=a.length>>>0;for(t=0;t<n;t++)if(t in a&&e.call(this,a[t],t,a))return!0;return!1};var L=s.momentProperties=[],p=!1;function Y(e,t){var a,n,s,r=L.length;if(_(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),_(t._i)||(e._i=t._i),_(t._f)||(e._f=t._f),_(t._l)||(e._l=t._l),_(t._strict)||(e._strict=t._strict),_(t._tzm)||(e._tzm=t._tzm),_(t._isUTC)||(e._isUTC=t._isUTC),_(t._offset)||(e._offset=t._offset),_(t._pf)||(e._pf=M(t)),_(t._locale)||(e._locale=t._locale),r>0)for(a=0;a<r;a++)_(s=t[n=L[a]])||(e[n]=s);return e}function k(e){Y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===p&&(p=!0,s.updateOffset(this),p=!1)}function g(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function D(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,t){var a=!0;return c((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),a){var n,r,i,o=[],_=arguments.length;for(r=0;r<_;r++){if(n="","object"==typeof arguments[r]){for(i in n+="\n["+r+"] ",arguments[0])d(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[r];o.push(n)}D(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)}),t)}var v,T={};function b(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),T[e]||(D(t),T[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function H(e,t){var a,n=c({},e);for(a in t)d(t,a)&&(i(e[a])&&i(t[a])?(n[a]={},c(n[a],e[a]),c(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)d(e,a)&&!d(t,a)&&i(e[a])&&(n[a]=c({},n[a]));return n}function j(e){null!=e&&this.set(e)}function x(e,t,a){var n=""+Math.abs(e),s=t-n.length;return(e>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,v=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)d(e,t)&&a.push(t);return a};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},F={};function A(e,t,a,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(F[e]=s),t&&(F[t[0]]=function(){return x(s.apply(this,arguments),t[1],t[2])}),a&&(F[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function E(e,t){return e.isValid()?(t=z(t,e.localeData()),W[t]=W[t]||function(e){var t,a,n,s=e.match(O);for(t=0,a=s.length;t<a;t++)F[s[t]]?s[t]=F[s[t]]:s[t]=(n=s[t]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(t){var n,r="";for(n=0;n<a;n++)r+=S(s[n])?s[n].call(t,e):s[n];return r}}(t),W[t](e)):e.localeData().invalidDate()}function z(e,t){var a=5;function n(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;a>=0&&P.test(e);)e=e.replace(P,n),P.lastIndex=0,a-=1;return e}var N={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function C(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function R(e){var t,a,n={};for(a in e)d(e,a)&&(t=C(a))&&(n[t]=e[a]);return n}var J,I={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},V=/\d/,U=/\d\d/,G=/\d{3}/,q=/\d{4}/,B=/[+-]?\d{6}/,$=/\d\d?/,K=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,X=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ae=/[+-]?\d+/,ne=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[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,ie=/^[1-9]\d?/,de=/^([1-9]\d|\d)/;function oe(e,t,a){J[e]=S(t)?t:function(e,n){return e&&a?a:t}}function _e(e,t){return d(J,e)?J[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,a,n,s){return t||a||n||s}))))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function me(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function le(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=me(t)),a}J={};var ce={};function he(e,t){var a,n,s=t;for("string"==typeof e&&(e=[e]),u(t)&&(s=function(e,a){a[t]=le(e)}),n=e.length,a=0;a<n;a++)ce[e[a]]=s}function Me(e,t){he(e,(function(e,a,n,s){n._w=n._w||{},t(e,n._w,n,s)}))}function fe(e,t,a){null!=t&&d(ce,e)&&ce[e](t,a._a,a,e)}function ye(e){return e%4==0&&e%100!=0||e%400==0}function Le(e){return ye(e)?366:365}A("Y",0,0,(function(){var e=this.year();return e<=9999?x(e,4):"+"+e})),A(0,["YY",2],0,(function(){return this.year()%100})),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),oe("Y",ae),oe("YY",$,U),oe("YYYY",X,q),oe("YYYYY",ee,B),oe("YYYYYY",ee,B),he(["YYYYY","YYYYYY"],0),he("YYYY",(function(e,t){t[0]=2===e.length?s.parseTwoDigitYear(e):le(e)})),he("YY",(function(e,t){t[0]=s.parseTwoDigitYear(e)})),he("Y",(function(e,t){t[0]=parseInt(e,10)})),s.parseTwoDigitYear=function(e){return le(e)+(le(e)>68?1900:2e3)};var pe,Ye=ke("FullYear",!0);function ke(e,t){return function(a){return null!=a?(De(this,e,a),s.updateOffset(this,t),this):ge(this,e)}}function ge(e,t){if(!e.isValid())return NaN;var a=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return n?a.getUTCSeconds():a.getSeconds();case"Minutes":return n?a.getUTCMinutes():a.getMinutes();case"Hours":return n?a.getUTCHours():a.getHours();case"Date":return n?a.getUTCDate():a.getDate();case"Day":return n?a.getUTCDay():a.getDay();case"Month":return n?a.getUTCMonth():a.getMonth();case"FullYear":return n?a.getUTCFullYear():a.getFullYear();default:return NaN}}function De(e,t,a){var n,s,r,i,d;if(e.isValid()&&!isNaN(a)){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(a):n.setMilliseconds(a));case"Seconds":return void(s?n.setUTCSeconds(a):n.setSeconds(a));case"Minutes":return void(s?n.setUTCMinutes(a):n.setMinutes(a));case"Hours":return void(s?n.setUTCHours(a):n.setHours(a));case"Date":return void(s?n.setUTCDate(a):n.setDate(a));case"FullYear":break;default:return}r=a,i=e.month(),d=29!==(d=e.date())||1!==i||ye(r)?d:28,s?n.setUTCFullYear(r,i,d):n.setFullYear(r,i,d)}}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var a,n=(t%(a=12)+a)%a;return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}pe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},A("M",["MM",2],"Mo",(function(){return this.month()+1})),A("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),A("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),oe("M",$,ie),oe("MM",$,U),oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),oe("MMMM",(function(e,t){return t.monthsRegex(e)})),he(["M","MM"],(function(e,t){t[1]=le(e)-1})),he(["MMM","MMMM"],(function(e,t,a,n){var s=a._locale.monthsParse(e,n,a._strict);null!=s?t[1]=s:M(a).invalidMonth=e}));var ve="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Te="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),be=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=re,He=re;function je(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(s=pe.call(this._shortMonthsParse,i))?s:null:-1!==(s=pe.call(this._longMonthsParse,i))?s:null:"MMM"===t?-1!==(s=pe.call(this._shortMonthsParse,i))||-1!==(s=pe.call(this._longMonthsParse,i))?s:null:-1!==(s=pe.call(this._longMonthsParse,i))||-1!==(s=pe.call(this._shortMonthsParse,i))?s:null}function xe(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=le(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var a=t,n=e.date();return n=n<29?n:Math.min(n,we(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,n):e._d.setMonth(a,n),e}function Oe(e){return null!=e?(xe(this,e),s.updateOffset(this,!0),this):ge(this,"Month")}function Pe(){function e(e,t){return t.length-e.length}var t,a,n,s,r=[],i=[],d=[];for(t=0;t<12;t++)a=h([2e3,t]),n=ue(this.monthsShort(a,"")),s=ue(this.months(a,"")),r.push(n),i.push(s),d.push(s),d.push(n);r.sort(e),i.sort(e),d.sort(e),this._monthsRegex=new RegExp("^("+d.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function We(e,t,a,n,s,r,i){var d;return e<100&&e>=0?(d=new Date(e+400,t,a,n,s,r,i),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,a,n,s,r,i),d}function Fe(e){var t,a;return e<100&&e>=0?((a=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ae(e,t,a){var n=7+t-a;return-(7+Fe(e,0,n).getUTCDay()-t)%7+n-1}function Ee(e,t,a,n,s){var r,i,d=1+7*(t-1)+(7+a-n)%7+Ae(e,n,s);return d<=0?i=Le(r=e-1)+d:d>Le(e)?(r=e+1,i=d-Le(e)):(r=e,i=d),{year:r,dayOfYear:i}}function ze(e,t,a){var n,s,r=Ae(e.year(),t,a),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?n=i+Ne(s=e.year()-1,t,a):i>Ne(e.year(),t,a)?(n=i-Ne(e.year(),t,a),s=e.year()+1):(s=e.year(),n=i),{week:n,year:s}}function Ne(e,t,a){var n=Ae(e,t,a),s=Ae(e+1,t,a);return(Le(e)-n+s)/7}function Ce(e,t){return e.slice(t,7).concat(e.slice(0,t))}A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),oe("w",$,ie),oe("ww",$,U),oe("W",$,ie),oe("WW",$,U),Me(["w","ww","W","WW"],(function(e,t,a,n){t[n.substr(0,1)]=le(e)})),A("d",0,"do","day"),A("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),A("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),A("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),oe("d",$),oe("e",$),oe("E",$),oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Me(["dd","ddd","dddd"],(function(e,t,a,n){var s=a._locale.weekdaysParse(e,n,a._strict);null!=s?t.d=s:M(a).invalidWeekday=e})),Me(["d","e","E"],(function(e,t,a,n){t[n]=le(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=re,Ue=re,Ge=re;function qe(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(s=pe.call(this._weekdaysParse,i))?s:null:"ddd"===t?-1!==(s=pe.call(this._shortWeekdaysParse,i))?s:null:-1!==(s=pe.call(this._minWeekdaysParse,i))?s:null:"dddd"===t?-1!==(s=pe.call(this._weekdaysParse,i))||-1!==(s=pe.call(this._shortWeekdaysParse,i))||-1!==(s=pe.call(this._minWeekdaysParse,i))?s:null:"ddd"===t?-1!==(s=pe.call(this._shortWeekdaysParse,i))||-1!==(s=pe.call(this._weekdaysParse,i))||-1!==(s=pe.call(this._minWeekdaysParse,i))?s:null:-1!==(s=pe.call(this._minWeekdaysParse,i))||-1!==(s=pe.call(this._weekdaysParse,i))||-1!==(s=pe.call(this._shortWeekdaysParse,i))?s:null}function Be(){function e(e,t){return t.length-e.length}var t,a,n,s,r,i=[],d=[],o=[],_=[];for(t=0;t<7;t++)a=h([2e3,1]).day(t),n=ue(this.weekdaysMin(a,"")),s=ue(this.weekdaysShort(a,"")),r=ue(this.weekdays(a,"")),i.push(n),d.push(s),o.push(r),_.push(n),_.push(s),_.push(r);i.sort(e),d.sort(e),o.sort(e),_.sort(e),this._weekdaysRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ke(e,t){A(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}A("H",["HH",2],0,"hour"),A("h",["hh",2],0,$e),A("k",["kk",2],0,(function(){return this.hours()||24})),A("hmm",0,0,(function(){return""+$e.apply(this)+x(this.minutes(),2)})),A("hmmss",0,0,(function(){return""+$e.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)})),A("Hmm",0,0,(function(){return""+this.hours()+x(this.minutes(),2)})),A("Hmmss",0,0,(function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),oe("a",Ze),oe("A",Ze),oe("H",$,de),oe("h",$,ie),oe("k",$,ie),oe("HH",$,U),oe("hh",$,U),oe("kk",$,U),oe("hmm",K),oe("hmmss",Z),oe("Hmm",K),oe("Hmmss",Z),he(["H","HH"],3),he(["k","kk"],(function(e,t,a){var n=le(e);t[3]=24===n?0:n})),he(["a","A"],(function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e})),he(["h","hh"],(function(e,t,a){t[3]=le(e),M(a).bigHour=!0})),he("hmm",(function(e,t,a){var n=e.length-2;t[3]=le(e.substr(0,n)),t[4]=le(e.substr(n)),M(a).bigHour=!0})),he("hmmss",(function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=le(e.substr(0,n)),t[4]=le(e.substr(n,2)),t[5]=le(e.substr(s)),M(a).bigHour=!0})),he("Hmm",(function(e,t,a){var n=e.length-2;t[3]=le(e.substr(0,n)),t[4]=le(e.substr(n))})),he("Hmmss",(function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=le(e.substr(0,n)),t[4]=le(e.substr(n,2)),t[5]=le(e.substr(s))}));var Qe,Xe=ke("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ve,monthsShort:Te,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Ie,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},tt={},at={};function nt(e,t){var a,n=Math.min(e.length,t.length);for(a=0;a<n;a+=1)if(e[a]!==t[a])return a;return n}function st(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var n=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{n=Qe._abbr,a(340)("./"+t),it(n)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var a;return e&&((a=_(t)?ot(e):dt(e,t))?Qe=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function dt(e,t){if(null!==t){var a,n=et;if(t.abbr=e,null!=tt[e])b("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."),n=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])n=tt[t.parentLocale]._config;else{if(null==(a=rt(t.parentLocale)))return at[t.parentLocale]||(at[t.parentLocale]=[]),at[t.parentLocale].push({name:e,config:t}),null;n=a._config}return tt[e]=new j(H(n,t)),at[e]&&at[e].forEach((function(e){dt(e.name,e.config)})),it(e),tt[e]}return delete tt[e],null}function ot(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!r(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,a,n,s,r=0;r<e.length;){for(t=(s=st(e[r]).split("-")).length,a=(a=st(e[r+1]))?a.split("-"):null;t>0;){if(n=rt(s.slice(0,t).join("-")))return n;if(a&&a.length>=t&&nt(s,a)>=t-1)break;t--}r++}return Qe}(e)}function _t(e){var t,a=e._a;return a&&-2===M(e).overflow&&(t=a[1]<0||a[1]>11?1:a[2]<1||a[2]>we(a[0],a[1])?2:a[3]<0||a[3]>24||24===a[3]&&(0!==a[4]||0!==a[5]||0!==a[6])?3:a[4]<0||a[4]>59?4:a[5]<0||a[5]>59?5:a[6]<0||a[6]>999?6:-1,M(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),M(e)._overflowWeeks&&-1===t&&(t=7),M(e)._overflowWeekday&&-1===t&&(t=8),M(e).overflow=t),e}var ut=/^\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)?)?$/,mt=/^\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)?)?$/,lt=/Z|[+-]\d\d(?::?\d\d)?/,ct=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["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/]],Mt=/^\/?Date\((-?\d+)/i,ft=/^(?:(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}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Lt(e){var t,a,n,s,r,i,d=e._i,o=ut.exec(d)||mt.exec(d),_=ct.length,u=ht.length;if(o){for(M(e).iso=!0,t=0,a=_;t<a;t++)if(ct[t][1].exec(o[1])){s=ct[t][0],n=!1!==ct[t][2];break}if(null==s)return void(e._isValid=!1);if(o[3]){for(t=0,a=u;t<a;t++)if(ht[t][1].exec(o[3])){r=(o[2]||" ")+ht[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(o[4]){if(!lt.exec(o[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),Dt(e)}else e._isValid=!1}function pt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Yt(e){var t,a,n,s,r,i,d,o,_=ft.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(_){if(a=_[4],n=_[3],s=_[2],r=_[5],i=_[6],d=_[7],o=[pt(a),Te.indexOf(n),parseInt(s,10),parseInt(r,10),parseInt(i,10)],d&&o.push(parseInt(d,10)),t=o,!function(e,t,a){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(M(a).weekdayMismatch=!0,a._isValid=!1,!1)}(_[1],t,e))return;e._a=t,e._tzm=function(e,t,a){if(e)return yt[e];if(t)return 0;var n=parseInt(a,10),s=n%100;return(n-s)/100*60+s}(_[8],_[9],_[10]),e._d=Fe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function kt(e,t,a){return null!=e?e:null!=t?t:a}function gt(e){var t,a,n,r,i,d=[];if(!e._d){for(n=function(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,a,n,s,r,i,d,o,_;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,i=4,a=kt(t.GG,e._a[0],ze(Tt(),1,4).year),n=kt(t.W,1),((s=kt(t.E,1))<1||s>7)&&(o=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,_=ze(Tt(),r,i),a=kt(t.gg,e._a[0],_.year),n=kt(t.w,_.week),null!=t.d?((s=t.d)<0||s>6)&&(o=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(o=!0)):s=r),n<1||n>Ne(a,r,i)?M(e)._overflowWeeks=!0:null!=o?M(e)._overflowWeekday=!0:(d=Ee(a,n,s,r,i),e._a[0]=d.year,e._dayOfYear=d.dayOfYear)}(e),null!=e._dayOfYear&&(i=kt(e._a[0],n[0]),(e._dayOfYear>Le(i)||0===e._dayOfYear)&&(M(e)._overflowDayOfYear=!0),a=Fe(i,0,e._dayOfYear),e._a[1]=a.getUTCMonth(),e._a[2]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Fe:We).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(M(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],M(e).empty=!0;var t,a,n,r,i,d,o,_=""+e._i,u=_.length,m=0;for(o=(n=z(e._f,e._locale).match(O)||[]).length,t=0;t<o;t++)r=n[t],(a=(_.match(_e(r,e))||[])[0])&&((i=_.substr(0,_.indexOf(a))).length>0&&M(e).unusedInput.push(i),_=_.slice(_.indexOf(a)+a.length),m+=a.length),F[r]?(a?M(e).empty=!1:M(e).unusedTokens.push(r),fe(r,a,e)):e._strict&&!a&&M(e).unusedTokens.push(r);M(e).charsLeftOver=u-m,_.length>0&&M(e).unusedInput.push(_),e._a[3]<=12&&!0===M(e).bigHour&&e._a[3]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[3]=function(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?((n=e.isPM(a))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(d=M(e).era)&&(e._a[0]=e._locale.erasConvertYear(d,e._a[0])),gt(e),_t(e)}else Yt(e);else Lt(e)}function wt(e){var t=e._i,a=e._f;return e._locale=e._locale||ot(e._l),null===t||void 0===a&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new k(_t(t)):(m(t)?e._d=t:r(a)?function(e){var t,a,n,s,r,i,d=!1,o=e._f.length;if(0===o)return M(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<o;s++)r=0,i=!1,t=Y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Dt(t),f(t)&&(i=!0),r+=M(t).charsLeftOver,r+=10*M(t).unusedTokens.length,M(t).score=r,d?r<n&&(n=r,a=t):(null==n||r<n||i)&&(n=r,a=t,i&&(d=!0));c(e,a||t)}(e):a?Dt(e):function(e){var t=e._i;_(t)?e._d=new Date(s.now()):m(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Mt.exec(e._i);null===t?(Lt(e),!1===e._isValid&&(delete e._isValid,Yt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:s.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=l(t.slice(0),(function(e){return parseInt(e,10)})),gt(e)):i(t)?function(e){if(!e._d){var t=R(e._i),a=void 0===t.day?t.date:t.day;e._a=l([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),gt(e)}}(e):u(t)?e._d=new Date(t):s.createFromInputFallback(e)}(e),f(e)||(e._d=null),e))}function vt(e,t,a,n,s){var d,_={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==a&&!1!==a||(n=a,a=void 0),(i(e)&&o(e)||r(e)&&0===e.length)&&(e=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=s,_._l=a,_._i=e,_._f=t,_._strict=n,(d=new k(_t(wt(_))))._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function Tt(e,t,a,n){return vt(e,t,a,n,!1)}s.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),s.ISO_8601=function(){},s.RFC_2822=function(){};var bt=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),St=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Ht(e,t){var a,n;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Tt();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}var jt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xt(e){var t=R(e),a=t.year||0,n=t.quarter||0,s=t.month||0,r=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,_=t.minute||0,u=t.second||0,m=t.millisecond||0;this._isValid=function(e){var t,a,n=!1,s=jt.length;for(t in e)if(d(e,t)&&(-1===pe.call(jt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(a=0;a<s;++a)if(e[jt[a]]){if(n)return!1;parseFloat(e[jt[a]])!==le(e[jt[a]])&&(n=!0)}return!0}(t),this._milliseconds=+m+1e3*u+6e4*_+1e3*o*60*60,this._days=+i+7*r,this._months=+s+3*n+12*a,this._data={},this._locale=ot(),this._bubble()}function Ot(e){return e instanceof xt}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Wt(e,t){A(e,0,0,(function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+x(~~(e/60),2)+t+x(~~e%60,2)}))}Wt("Z",":"),Wt("ZZ",""),oe("Z",se),oe("ZZ",se),he(["Z","ZZ"],(function(e,t,a){a._useUTC=!0,a._tzm=At(se,e)}));var Ft=/([\+\-]|\d\d)/gi;function At(e,t){var a,n,s=(t||"").match(e);return null===s?null:0===(n=60*(a=((s[s.length-1]||[])+"").match(Ft)||["-",0,0])[1]+le(a[2]))?0:"+"===a[0]?n:-n}function Et(e,t){var a,n;return t._isUTC?(a=t.clone(),n=(g(e)||m(e)?e.valueOf():Tt(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),s.updateOffset(a,!1),a):Tt(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Nt(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Ct=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var a,n,s,r,i,o,_=e,m=null;return Ot(e)?_={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(_={},t?_[t]=+e:_.milliseconds=+e):(m=Ct.exec(e))?(a="-"===m[1]?-1:1,_={y:0,d:le(m[2])*a,h:le(m[3])*a,m:le(m[4])*a,s:le(m[5])*a,ms:le(Pt(1e3*m[6]))*a}):(m=Rt.exec(e))?(a="-"===m[1]?-1:1,_={y:It(m[2],a),M:It(m[3],a),w:It(m[4],a),d:It(m[5],a),h:It(m[6],a),m:It(m[7],a),s:It(m[8],a)}):null==_?_={}:"object"==typeof _&&("from"in _||"to"in _)&&(r=Tt(_.from),i=Tt(_.to),s=r.isValid()&&i.isValid()?(i=Et(i,r),r.isBefore(i)?o=Vt(r,i):((o=Vt(i,r)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(_={}).ms=s.milliseconds,_.M=s.months),n=new xt(_),Ot(e)&&d(e,"_locale")&&(n._locale=e._locale),Ot(e)&&d(e,"_isValid")&&(n._isValid=e._isValid),n}function It(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Vt(e,t){var a={};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Ut(e,t){return function(a,n){var s;return null===n||isNaN(+n)||(b(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=a,a=n,n=s),Gt(this,Jt(a,n),e),this}}function Gt(e,t,a,n){var r=t._milliseconds,i=Pt(t._days),d=Pt(t._months);e.isValid()&&(n=null==n||n,d&&xe(e,ge(e,"Month")+d*a),i&&De(e,"Date",ge(e,"Date")+i*a),r&&e._d.setTime(e._d.valueOf()+r*a),n&&s.updateOffset(e,i||d))}Jt.fn=xt.prototype,Jt.invalid=function(){return Jt(NaN)};var qt=Ut(1,"add"),Bt=Ut(-1,"subtract");function $t(e){return"string"==typeof e||e instanceof String}function Kt(e){return g(e)||m(e)||$t(e)||u(e)||function(e){var t=r(e),a=!1;return t&&(a=0===e.filter((function(t){return!u(t)&&$t(e)})).length),t&&a}(e)||function(e){var t,a,n=i(e)&&!o(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],_=r.length;for(t=0;t<_;t+=1)a=r[t],s=s||d(e,a);return n&&s}(e)||null==e}function Zt(e){var t,a=i(e)&&!o(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)n=n||d(e,s[t]);return a&&n}function Qt(e,t){if(e.date()<t.date())return-Qt(t,e);var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,"months");return-(a+(t-n<0?(t-n)/(n-e.clone().add(a-1,"months")):(t-n)/(e.clone().add(a+1,"months")-n)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ot(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ea=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ta(){return this._locale}function aa(e,t){return(e%t+t)%t}function na(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-126227808e5:new Date(e,t,a).valueOf()}function sa(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-126227808e5:Date.UTC(e,t,a)}function ra(e,t){return t.erasAbbrRegex(e)}function ia(){var e,t,a,n,s,r=[],i=[],d=[],o=[],_=this.eras();for(e=0,t=_.length;e<t;++e)a=ue(_[e].name),n=ue(_[e].abbr),s=ue(_[e].narrow),i.push(a),r.push(n),d.push(s),o.push(a),o.push(n),o.push(s);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+d.join("|")+")","i")}function da(e,t){A(0,[e,e.length],0,t)}function oa(e,t,a,n,s){var r;return null==e?ze(this,n,s).year:(t>(r=Ne(e,n,s))&&(t=r),_a.call(this,e,t,a,n,s))}function _a(e,t,a,n,s){var r=Ee(e,t,a,n,s),i=Fe(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}A("N",0,0,"eraAbbr"),A("NN",0,0,"eraAbbr"),A("NNN",0,0,"eraAbbr"),A("NNNN",0,0,"eraName"),A("NNNNN",0,0,"eraNarrow"),A("y",["y",1],"yo","eraYear"),A("y",["yy",2],0,"eraYear"),A("y",["yyy",3],0,"eraYear"),A("y",["yyyy",4],0,"eraYear"),oe("N",ra),oe("NN",ra),oe("NNN",ra),oe("NNNN",(function(e,t){return t.erasNameRegex(e)})),oe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),he(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,a,n){var s=a._locale.erasParse(e,n,a._strict);s?M(a).era=s:M(a).invalidEra=e})),oe("y",te),oe("yy",te),oe("yyy",te),oe("yyyy",te),oe("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),he(["y","yy","yyy","yyyy"],0),he(["yo"],(function(e,t,a,n){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[0]=a._locale.eraYearOrdinalParse(e,s):t[0]=parseInt(e,10)})),A(0,["gg",2],0,(function(){return this.weekYear()%100})),A(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),da("gggg","weekYear"),da("ggggg","weekYear"),da("GGGG","isoWeekYear"),da("GGGGG","isoWeekYear"),oe("G",ae),oe("g",ae),oe("GG",$,U),oe("gg",$,U),oe("GGGG",X,q),oe("gggg",X,q),oe("GGGGG",ee,B),oe("ggggg",ee,B),Me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,a,n){t[n.substr(0,2)]=le(e)})),Me(["gg","GG"],(function(e,t,a,n){t[n]=s.parseTwoDigitYear(e)})),A("Q",0,"Qo","quarter"),oe("Q",V),he("Q",(function(e,t){t[1]=3*(le(e)-1)})),A("D",["DD",2],"Do","date"),oe("D",$,ie),oe("DD",$,U),oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),he(["D","DD"],2),he("Do",(function(e,t){t[2]=le(e.match($)[0])}));var ua=ke("Date",!0);A("DDD",["DDDD",3],"DDDo","dayOfYear"),oe("DDD",Q),oe("DDDD",G),he(["DDD","DDDD"],(function(e,t,a){a._dayOfYear=le(e)})),A("m",["mm",2],0,"minute"),oe("m",$,de),oe("mm",$,U),he(["m","mm"],4);var ma=ke("Minutes",!1);A("s",["ss",2],0,"second"),oe("s",$,de),oe("ss",$,U),he(["s","ss"],5);var la,ca,ha=ke("Seconds",!1);for(A("S",0,0,(function(){return~~(this.millisecond()/100)})),A(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),A(0,["SSS",3],0,"millisecond"),A(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),A(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),A(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),A(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),A(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),A(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),oe("S",Q,V),oe("SS",Q,U),oe("SSS",Q,G),la="SSSS";la.length<=9;la+="S")oe(la,te);function Ma(e,t){t[6]=le(1e3*("0."+e))}for(la="S";la.length<=9;la+="S")he(la,Ma);ca=ke("Milliseconds",!1),A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");var fa=k.prototype;function ya(e){return e}fa.add=qt,fa.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||Tt(),n=Et(a,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",i=t&&(S(t[r])?t[r].call(this,a):t[r]);return this.format(i||this.localeData().calendar(r,this,Tt(a)))},fa.clone=function(){return new k(this)},fa.diff=function(e,t,a){var n,s,r;if(!this.isValid())return NaN;if(!(n=Et(e,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=C(t)){case"year":r=Qt(this,n)/12;break;case"month":r=Qt(this,n);break;case"quarter":r=Qt(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return a?r:me(r)},fa.endOf=function(e){var t,a;if(void 0===(e=C(e))||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?sa:na,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-aa(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-aa(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-aa(t,1e3)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},fa.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=E(this,e);return this.localeData().postformat(t)},fa.from=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fa.fromNow=function(e){return this.from(Tt(),e)},fa.to=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fa.toNow=function(e){return this.to(Tt(),e)},fa.get=function(e){return S(this[e=C(e)])?this[e]():this},fa.invalidAt=function(){return M(this).overflow},fa.isAfter=function(e,t){var a=g(e)?e:Tt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=C(t)||"millisecond")?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},fa.isBefore=function(e,t){var a=g(e)?e:Tt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=C(t)||"millisecond")?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},fa.isBetween=function(e,t,a,n){var s=g(e)?e:Tt(e),r=g(t)?t:Tt(t);return!!(this.isValid()&&s.isValid()&&r.isValid())&&(("("===(n=n||"()")[0]?this.isAfter(s,a):!this.isBefore(s,a))&&(")"===n[1]?this.isBefore(r,a):!this.isAfter(r,a)))},fa.isSame=function(e,t){var a,n=g(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=C(t)||"millisecond")?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},fa.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},fa.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},fa.isValid=function(){return f(this)},fa.lang=ea,fa.locale=Xt,fa.localeData=ta,fa.max=St,fa.min=bt,fa.parsingFlags=function(){return c({},M(this))},fa.set=function(e,t){if("object"==typeof e){var a,n=function(e){var t,a=[];for(t in e)d(e,t)&&a.push({unit:t,priority:I[t]});return a.sort((function(e,t){return e.priority-t.priority})),a}(e=R(e)),s=n.length;for(a=0;a<s;a++)this[n[a].unit](e[n[a].unit])}else if(S(this[e=C(e)]))return this[e](t);return this},fa.startOf=function(e){var t,a;if(void 0===(e=C(e))||"millisecond"===e||!this.isValid())return this;switch(a=this._isUTC?sa:na,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=aa(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=aa(t,6e4);break;case"second":t=this._d.valueOf(),t-=aa(t,1e3)}return this._d.setTime(t),s.updateOffset(this,!0),this},fa.subtract=Bt,fa.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},fa.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},fa.toDate=function(){return new Date(this.valueOf())},fa.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?E(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",E(a,"Z")):E(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fa.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,a,n="moment",s="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=s+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+a)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(fa[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),fa.toJSON=function(){return this.isValid()?this.toISOString():null},fa.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fa.unix=function(){return Math.floor(this.valueOf()/1e3)},fa.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fa.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fa.eraName=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].name;if(n[e].until<=a&&a<=n[e].since)return n[e].name}return""},fa.eraNarrow=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].narrow;if(n[e].until<=a&&a<=n[e].since)return n[e].narrow}return""},fa.eraAbbr=function(){var e,t,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until)return n[e].abbr;if(n[e].until<=a&&a<=n[e].since)return n[e].abbr}return""},fa.eraYear=function(){var e,t,a,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(a=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-s(r[e].since).year())*a+r[e].offset;return this.year()},fa.year=Ye,fa.isLeapYear=function(){return ye(this.year())},fa.weekYear=function(e){return oa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},fa.isoWeekYear=function(e){return oa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fa.quarter=fa.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fa.month=Oe,fa.daysInMonth=function(){return we(this.year(),this.month())},fa.week=fa.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fa.isoWeek=fa.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fa.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},fa.weeksInWeekYear=function(){var e=this.localeData()._week;return Ne(this.weekYear(),e.dow,e.doy)},fa.isoWeeksInYear=function(){return Ne(this.year(),1,4)},fa.isoWeeksInISOWeekYear=function(){return Ne(this.isoWeekYear(),1,4)},fa.date=ua,fa.day=fa.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=ge(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fa.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fa.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fa.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fa.hour=fa.hours=Xe,fa.minute=fa.minutes=ma,fa.second=fa.seconds=ha,fa.millisecond=fa.milliseconds=ca,fa.utcOffset=function(e,t,a){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=At(se,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(n=zt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?Gt(this,Jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:zt(this)},fa.utc=function(e){return this.utcOffset(0,e)},fa.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},fa.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=At(ne,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fa.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fa.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fa.isLocal=function(){return!!this.isValid()&&!this._isUTC},fa.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fa.isUtc=Nt,fa.isUTC=Nt,fa.zoneAbbr=function(){return this._isUTC?"UTC":""},fa.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fa.dates=w("dates accessor is deprecated. Use date instead.",ua),fa.months=w("months accessor is deprecated. Use month instead",Oe),fa.years=w("years accessor is deprecated. Use year instead",Ye),fa.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),fa.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!_(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Y(t,this),(t=wt(t))._a?(e=t._isUTC?h(t._a):Tt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,a){var n,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(n=0;n<s;n++)(a&&e[n]!==t[n]||!a&&le(e[n])!==le(t[n]))&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var La=j.prototype;function pa(e,t,a,n){var s=ot(),r=h().set(n,t);return s[a](r,e)}function Ya(e,t,a){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return pa(e,t,a,"month");var n,s=[];for(n=0;n<12;n++)s[n]=pa(e,n,a,"month");return s}function ka(e,t,a,n){"boolean"==typeof e?(u(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,u(t)&&(a=t,t=void 0),t=t||"");var s,r=ot(),i=e?r._week.dow:0,d=[];if(null!=a)return pa(t,(a+i)%7,n,"day");for(s=0;s<7;s++)d[s]=pa(t,(s+i)%7,n,"day");return d}La.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return S(n)?n.call(t,a):n},La.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(O).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},La.invalidDate=function(){return this._invalidDate},La.ordinal=function(e){return this._ordinal.replace("%d",e)},La.preparse=ya,La.postformat=ya,La.relativeTime=function(e,t,a,n){var s=this._relativeTime[a];return S(s)?s(e,t,a,n):s.replace(/%d/i,e)},La.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return S(a)?a(t):a.replace(/%s/i,t)},La.set=function(e){var t,a;for(a in e)d(e,a)&&(S(t=e[a])?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},La.eras=function(e,t){var a,n,r,i=this._eras||ot("en")._eras;for(a=0,n=i.length;a<n;++a){switch(typeof i[a].since){case"string":r=s(i[a].since).startOf("day"),i[a].since=r.valueOf()}switch(typeof i[a].until){case"undefined":i[a].until=1/0;break;case"string":r=s(i[a].until).startOf("day").valueOf(),i[a].until=r.valueOf()}}return i},La.erasParse=function(e,t,a){var n,s,r,i,d,o=this.eras();for(e=e.toUpperCase(),n=0,s=o.length;n<s;++n)if(r=o[n].name.toUpperCase(),i=o[n].abbr.toUpperCase(),d=o[n].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(i===e)return o[n];break;case"NNNN":if(r===e)return o[n];break;case"NNNNN":if(d===e)return o[n]}else if([r,i,d].indexOf(e)>=0)return o[n]},La.erasConvertYear