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