haw-utils
Version:
一个基于业务场景的工具方法库
1 lines • 326 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("hawUtils",[],t):"object"==typeof exports?exports.hawUtils=t():e.hawUtils=t()}(window,(function(){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=139)}([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 _(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 o(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 wt(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){if(null==e._isValid){var t=M(e),a=n.call(t.parsedDateParts,(function(e){return null!=e})),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function L(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 y=s.momentProperties=[],Y=!1;function p(e,t){var a,n,s,r=y.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=M(t)),o(t._locale)||(e._locale=t._locale),r>0)for(a=0;a<r;a++)o(s=t[n=y[a]])||(e[n]=s);return e}function k(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Y&&(Y=!0,s.updateOffset(this),Y=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function g(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(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<o;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];_.push(n)}g(e+"\nArguments: "+Array.prototype.slice.call(_).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)}),t)}var w,v={};function b(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),v[e]||(g(t),v[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,w=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)d(e,t)&&a.push(t);return a};var P=/(\[[^\[]*\])|(\\)?([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,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},A={};function E(e,t,a,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(A[e]=s),t&&(A[t[0]]=function(){return x(s.apply(this,arguments),t[1],t[2])}),a&&(A[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=z(t,e.localeData()),W[t]=W[t]||function(e){var t,a,n,s=e.match(P);for(t=0,a=s.length;t<a;t++)A[s[t]]?s[t]=A[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(O.lastIndex=0;a>=0&&O.test(e);)e=e.replace(O,n),O.lastIndex=0,a-=1;return e}var N={};function J(e,t){var a=e.toLowerCase();N[a]=N[a+"s"]=N[t]=e}function R(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function I(e){var t,a,n={};for(a in e)d(e,a)&&(t=R(a))&&(n[t]=e[a]);return n}var C={};function U(e,t){C[e]=t}function G(e){return e%4==0&&e%100!=0||e%400==0}function $(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=$(t)),a}function B(e,t){return function(a){return null!=a?(K(this,e,a),s.updateOffset(this,t),this):Z(this,e)}}function Z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&G(e.year())&&1===e.month()&&29===e.date()?(a=V(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),De(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}var q,Q=/\d/,X=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ae=/[+-]?\d{6}/,ne=/\d\d?/,se=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,de=/\d{1,4}/,_e=/[+-]?\d{1,6}/,oe=/\d+/,ue=/[+-]?\d+/,me=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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 he(e,t,a){q[e]=S(t)?t:function(e,n){return e&&a?a:t}}function Me(e,t){return d(q,e)?q[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,a,n,s){return t||a||n||s}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}q={};var Le,ye={};function Ye(e,t){var a,n,s=t;for("string"==typeof e&&(e=[e]),u(t)&&(s=function(e,a){a[t]=V(e)}),n=e.length,a=0;a<n;a++)ye[e[a]]=s}function pe(e,t){Ye(e,(function(e,a,n,s){n._w=n._w||{},t(e,n._w,n,s)}))}function ke(e,t,a){null!=t&&d(ye,e)&&ye[e](t,a._a,a,e)}function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var a,n=(t%(a=12)+a)%a;return e+=(t-n)/12,1===n?G(e)?29:28:31-n%7%2}Le=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},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),J("month","M"),U("month",8),he("M",ne),he("MM",ne,X),he("MMM",(function(e,t){return t.monthsShortRegex(e)})),he("MMMM",(function(e,t){return t.monthsRegex(e)})),Ye(["M","MM"],(function(e,t){t[1]=V(e)-1})),Ye(["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 ge="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("_"),we=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ve=ce,be=ce;function Se(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=Le.call(this._shortMonthsParse,i))?s:null:-1!==(s=Le.call(this._longMonthsParse,i))?s:null:"MMM"===t?-1!==(s=Le.call(this._shortMonthsParse,i))||-1!==(s=Le.call(this._longMonthsParse,i))?s:null:-1!==(s=Le.call(this._longMonthsParse,i))||-1!==(s=Le.call(this._shortMonthsParse,i))?s:null}function He(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=V(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),De(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function je(e){return null!=e?(He(this,e),s.updateOffset(this,!0),this):Z(this,"Month")}function xe(){function e(e,t){return t.length-e.length}var t,a,n=[],s=[],r=[];for(t=0;t<12;t++)a=h([2e3,t]),n.push(this.monthsShort(a,"")),s.push(this.months(a,"")),r.push(this.months(a,"")),r.push(this.monthsShort(a,""));for(n.sort(e),s.sort(e),r.sort(e),t=0;t<12;t++)n[t]=fe(n[t]),s[t]=fe(s[t]);for(t=0;t<24;t++)r[t]=fe(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Pe(e){return G(e)?366:365}E("Y",0,0,(function(){var e=this.year();return e<=9999?x(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),J("year","y"),U("year",1),he("Y",ue),he("YY",ne,X),he("YYYY",de,te),he("YYYYY",_e,ae),he("YYYYYY",_e,ae),Ye(["YYYYY","YYYYYY"],0),Ye("YYYY",(function(e,t){t[0]=2===e.length?s.parseTwoDigitYear(e):V(e)})),Ye("YY",(function(e,t){t[0]=s.parseTwoDigitYear(e)})),Ye("Y",(function(e,t){t[0]=parseInt(e,10)})),s.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var Oe=B("FullYear",!0);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 Ae(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 Ee(e,t,a){var n=7+t-a;return-(7+Ae(e,0,n).getUTCDay()-t)%7+n-1}function Fe(e,t,a,n,s){var r,i,d=1+7*(t-1)+(7+a-n)%7+Ee(e,n,s);return d<=0?i=Pe(r=e-1)+d:d>Pe(e)?(r=e+1,i=d-Pe(e)):(r=e,i=d),{year:r,dayOfYear:i}}function ze(e,t,a){var n,s,r=Ee(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=Ee(e,t,a),s=Ee(e+1,t,a);return(Pe(e)-n+s)/7}function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),J("week","w"),J("isoWeek","W"),U("week",5),U("isoWeek",5),he("w",ne),he("ww",ne,X),he("W",ne),he("WW",ne,X),pe(["w","ww","W","WW"],(function(e,t,a,n){t[n.substr(0,1)]=V(e)})),E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),J("day","d"),J("weekday","e"),J("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),he("d",ne),he("e",ne),he("E",ne),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["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})),pe(["d","e","E"],(function(e,t,a,n){t[n]=V(e)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ce="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=ce,Ge=ce,$e=ce;function Ve(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=Le.call(this._weekdaysParse,i))?s:null:"ddd"===t?-1!==(s=Le.call(this._shortWeekdaysParse,i))?s:null:-1!==(s=Le.call(this._minWeekdaysParse,i))?s:null:"dddd"===t?-1!==(s=Le.call(this._weekdaysParse,i))||-1!==(s=Le.call(this._shortWeekdaysParse,i))||-1!==(s=Le.call(this._minWeekdaysParse,i))?s:null:"ddd"===t?-1!==(s=Le.call(this._shortWeekdaysParse,i))||-1!==(s=Le.call(this._weekdaysParse,i))||-1!==(s=Le.call(this._minWeekdaysParse,i))?s:null:-1!==(s=Le.call(this._minWeekdaysParse,i))||-1!==(s=Le.call(this._weekdaysParse,i))||-1!==(s=Le.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=fe(this.weekdaysMin(a,"")),s=fe(this.weekdaysShort(a,"")),r=fe(this.weekdays(a,"")),i.push(n),d.push(s),_.push(r),o.push(n),o.push(s),o.push(r);i.sort(e),d.sort(e),_.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ze(){return this.hours()%12||12}function Ke(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function qe(e,t){return t._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,Ze),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+Ze.apply(this)+x(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+Ze.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+x(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),J("hour","h"),U("hour",13),he("a",qe),he("A",qe),he("H",ne),he("h",ne),he("k",ne),he("HH",ne,X),he("hh",ne,X),he("kk",ne,X),he("hmm",se),he("hmmss",re),he("Hmm",se),he("Hmmss",re),Ye(["H","HH"],3),Ye(["k","kk"],(function(e,t,a){var n=V(e);t[3]=24===n?0:n})),Ye(["a","A"],(function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e})),Ye(["h","hh"],(function(e,t,a){t[3]=V(e),M(a).bigHour=!0})),Ye("hmm",(function(e,t,a){var n=e.length-2;t[3]=V(e.substr(0,n)),t[4]=V(e.substr(n)),M(a).bigHour=!0})),Ye("hmmss",(function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=V(e.substr(0,n)),t[4]=V(e.substr(n,2)),t[5]=V(e.substr(s)),M(a).bigHour=!0})),Ye("Hmm",(function(e,t,a){var n=e.length-2;t[3]=V(e.substr(0,n)),t[4]=V(e.substr(n))})),Ye("Hmmss",(function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=V(e.substr(0,n)),t[4]=V(e.substr(n,2)),t[5]=V(e.substr(s))}));var Qe,Xe=B("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:ge,monthsShort:Te,week:{dow:0,doy:6},weekdays:Re,weekdaysMin:Ce,weekdaysShort:Ie,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 null!=e.match("^[^/\\\\]*$")}(t))try{n=Qe._abbr,a(170)("./"+t),it(n)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var a;return e&&((a=o(t)?_t(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 _t(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 ot(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]>De(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}))$/,Lt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,a,n,s,r,i,d=e._i,_=ut.exec(d)||mt.exec(d),o=ct.length,u=ht.length;if(_){for(M(e).iso=!0,t=0,a=o;t<a;t++)if(ct[t][1].exec(_[1])){s=ct[t][0],n=!1!==ct[t][2];break}if(null==s)return void(e._isValid=!1);if(_[3]){for(t=0,a=u;t<a;t++)if(ht[t][1].exec(_[3])){r=(_[2]||" ")+ht[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(_[4]){if(!lt.exec(_[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),gt(e)}else e._isValid=!1}function Yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pt(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(o){if(a=o[4],n=o[3],s=o[2],r=o[5],i=o[6],d=o[7],_=[Yt(a),Te.indexOf(n),parseInt(s,10),parseInt(r,10),parseInt(i,10)],d&&_.push(parseInt(d,10)),t=_,!function(e,t,a){return!e||Ie.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(M(a).weekdayMismatch=!0,a._isValid=!1,!1)}(o[1],t,e))return;e._a=t,e._tzm=function(e,t,a){if(e)return Lt[e];if(t)return 0;var n=parseInt(a,10),s=n%100;return(n-s)/100*60+s}(o[8],o[9],o[10]),e._d=Ae.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 Dt(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(vt(),1,4).year),n=kt(t.W,1),((s=kt(t.E,1))<1||s>7)&&(_=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,o=ze(vt(),r,i),a=kt(t.gg,e._a[0],o.year),n=kt(t.w,o.week),null!=t.d?((s=t.d)<0||s>6)&&(_=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(_=!0)):s=r),n<1||n>Ne(a,r,i)?M(e)._overflowWeeks=!0:null!=_?M(e)._overflowWeekday=!0:(d=Fe(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>Pe(i)||0===e._dayOfYear)&&(M(e)._overflowDayOfYear=!0),a=Ae(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?Ae: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 gt(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=o.length,m=0;for(_=(n=z(e._f,e._locale).match(P)||[]).length,t=0;t<_;t++)r=n[t],(a=(o.match(Me(r,e))||[])[0])&&((i=o.substr(0,o.indexOf(a))).length>0&&M(e).unusedInput.push(i),o=o.slice(o.indexOf(a)+a.length),m+=a.length),A[r]?(a?M(e).empty=!1:M(e).unusedTokens.push(r),ke(r,a,e)):e._strict&&!a&&M(e).unusedTokens.push(r);M(e).charsLeftOver=u-m,o.length>0&&M(e).unusedInput.push(o),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])),Dt(e),ot(e)}else pt(e);else yt(e)}function Tt(e){var t=e._i,a=e._f;return e._locale=e._locale||_t(e._l),null===t||void 0===a&&""===t?L({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new k(ot(t)):(m(t)?e._d=t:r(a)?function(e){var t,a,n,s,r,i,d=!1,_=e._f.length;if(0===_)return M(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<_;s++)r=0,i=!1,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],gt(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?gt(e):function(e){var t=e._i;o(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?(yt(e),!1===e._isValid&&(delete e._isValid,pt(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)})),Dt(e)):i(t)?function(e){if(!e._d){var t=I(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)})),Dt(e)}}(e):u(t)?e._d=new Date(t):s.createFromInputFallback(e)}(e),f(e)||(e._d=null),e))}function wt(e,t,a,n,s){var d,o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==a&&!1!==a||(n=a,a=void 0),(i(e)&&_(e)||r(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=a,o._i=e,o._f=t,o._strict=n,(d=new k(ot(Tt(o))))._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function vt(e,t,a,n){return wt(e,t,a,n,!1)}s.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. 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=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:L()})),St=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:L()}));function Ht(e,t){var a,n;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return vt();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=I(e),a=t.year||0,n=t.quarter||0,s=t.month||0,r=t.week||t.isoWeek||0,i=t.day||0,_=t.hour||0,o=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===Le.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]])!==V(e[jt[a]])&&(n=!0)}return!0}(t),this._milliseconds=+m+1e3*u+6e4*o+1e3*_*60*60,this._days=+i+7*r,this._months=+s+3*n+12*a,this._data={},this._locale=_t(),this._bubble()}function Pt(e){return e instanceof xt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Wt(e,t){E(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",""),he("Z",le),he("ZZ",le),Ye(["Z","ZZ"],(function(e,t,a){a._useUTC=!0,a._tzm=Et(le,e)}));var At=/([\+\-]|\d\d)/gi;function Et(e,t){var a,n,s=(t||"").match(e);return null===s?null:0===(n=60*(a=((s[s.length-1]||[])+"").match(At)||["-",0,0])[1]+V(a[2]))?0:"+"===a[0]?n:-n}function Ft(e,t){var a,n;return t._isUTC?(a=t.clone(),n=(D(e)||m(e)?e.valueOf():vt(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),s.updateOffset(a,!1),a):vt(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 Jt=/^(-|\+)?(?:(\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 It(e,t){var a,n,s,r,i,_,o=e,m=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(m=Jt.exec(e))?(a="-"===m[1]?-1:1,o={y:0,d:V(m[2])*a,h:V(m[3])*a,m:V(m[4])*a,s:V(m[5])*a,ms:V(Ot(1e3*m[6]))*a}):(m=Rt.exec(e))?(a="-"===m[1]?-1:1,o={y:Ct(m[2],a),M:Ct(m[3],a),w:Ct(m[4],a),d:Ct(m[5],a),h:Ct(m[6],a),m:Ct(m[7],a),s:Ct(m[8],a)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=vt(o.from),i=vt(o.to),s=r.isValid()&&i.isValid()?(i=Ft(i,r),r.isBefore(i)?_=Ut(r,i):((_=Ut(i,r)).milliseconds=-_.milliseconds,_.months=-_.months),_):{milliseconds:0,months:0},(o={}).ms=s.milliseconds,o.M=s.months),n=new xt(o),Pt(e)&&d(e,"_locale")&&(n._locale=e._locale),Pt(e)&&d(e,"_isValid")&&(n._isValid=e._isValid),n}function Ct(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Ut(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 Gt(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),$t(this,It(a,n),e),this}}function $t(e,t,a,n){var r=t._milliseconds,i=Ot(t._days),d=Ot(t._months);e.isValid()&&(n=null==n||n,d&&He(e,Z(e,"Month")+d*a),i&&K(e,"Date",Z(e,"Date")+i*a),r&&e._d.setTime(e._d.valueOf()+r*a),n&&s.updateOffset(e,i||d))}It.fn=xt.prototype,It.invalid=function(){return It(NaN)};var Vt=Gt(1,"add"),Bt=Gt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Kt(e){return D(e)||m(e)||Zt(e)||u(e)||function(e){var t=r(e),a=!1;return t&&(a=0===e.filter((function(t){return!u(t)&&Zt(e)})).length),t&&a}(e)||function(e){var t,a,n=i(e)&&!_(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"],o=r.length;for(t=0;t<o;t+=1)a=r[t],s=s||d(e,a);return n&&s}(e)||null==e}function qt(e){var t,a=i(e)&&!_(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=_t(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ea=T("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=this.eras();for(e=0,t=i.length;e<t;++e)n.push(fe(i[e].name)),a.push(fe(i[e].abbr)),s.push(fe(i[e].narrow)),r.push(fe(i[e].name)),r.push(fe(i[e].abbr)),r.push(fe(i[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function da(e,t){E(0,[e,e.length],0,t)}function _a(e,t,a,n,s){var r;return null==e?ze(this,n,s).year:(t>(r=Ne(e,n,s))&&(t=r),oa.call(this,e,t,a,n,s))}function oa(e,t,a,n,s){var r=Fe(e,t,a,n,s),i=Ae(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),he("N",ra),he("NN",ra),he("NNN",ra),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Ye(["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})),he("y",oe),he("yy",oe),he("yyy",oe),he("yyyy",oe),he("yo",(function(e,t){return t._eraYearOrdinalRegex||oe})),Ye(["y","yy","yyy","yyyy"],0),Ye(["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)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),da("gggg","weekYear"),da("ggggg","weekYear"),da("GGGG","isoWeekYear"),da("GGGGG","isoWeekYear"),J("weekYear","gg"),J("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),he("G",ue),he("g",ue),he("GG",ne,X),he("gg",ne,X),he("GGGG",de,te),he("gggg",de,te),he("GGGGG",_e,ae),he("ggggg",_e,ae),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,a,n){t[n.substr(0,2)]=V(e)})),pe(["gg","GG"],(function(e,t,a,n){t[n]=s.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),J("quarter","Q"),U("quarter",7),he("Q",Q),Ye("Q",(function(e,t){t[1]=3*(V(e)-1)})),E("D",["DD",2],"Do","date"),J("date","D"),U("date",9),he("D",ne),he("DD",ne,X),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ye(["D","DD"],2),Ye("Do",(function(e,t){t[2]=V(e.match(ne)[0])}));var ua=B("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),J("dayOfYear","DDD"),U("dayOfYear",4),he("DDD",ie),he("DDDD",ee),Ye(["DDD","DDDD"],(function(e,t,a){a._dayOfYear=V(e)})),E("m",["mm",2],0,"minute"),J("minute","m"),U("minute",14),he("m",ne),he("mm",ne,X),Ye(["m","mm"],4);var ma=B("Minutes",!1);E("s",["ss",2],0,"second"),J("second","s"),U("second",15),he("s",ne),he("ss",ne,X),Ye(["s","ss"],5);var la,ca,ha=B("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),J("millisecond","ms"),U("millisecond",16),he("S",ie,Q),he("SS",ie,X),he("SSS",ie,ee),la="SSSS";la.length<=9;la+="S")he(la,oe);function Ma(e,t){t[6]=V(1e3*("0."+e))}for(la="S";la.length<=9;la+="S")Ye(la,Ma);ca=B("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var fa=k.prototype;function La(e){return e}fa.add=Vt,fa.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||vt(),n=Ft(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,vt(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=Ft(e,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=R(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:$(r)},fa.endOf=function(e){var t,a;if(void 0===(e=R(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=F(this,e);return this.localeData().postformat(t)},fa.from=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||vt(e).isValid())?It({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fa.fromNow=function(e){return this.from(vt(),e)},fa.to=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||vt(e).isValid())?It({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fa.toNow=function(e){return this.to(vt(),e)},fa.get=function(e){return S(this[e=R(e)])?this[e]():this},fa.invalidAt=function(){return M(this).overflow},fa.isAfter=function(e,t){var a=D(e)?e:vt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},fa.isBefore=function(e,t){var a=D(e)?e:vt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},fa.isBetween=function(e,t,a,n){var s=D(e)?e:vt(e),r=D(t)?t:vt(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=D(e)?e:vt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(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:C[t]});return a.sort((function(e,t){return e.priority-t.priority})),a}(e=I(e)),s=n.length;for(a=0;a<s;a++)this[n[a].unit](e[n[a].unit])}else if(S(this[e=R(e)]))return this[e](t);return this},fa.startOf=function(e){var t,a;if(void 0===(e=R(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?F(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",F(a,"Z")):F(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=Oe,fa.isLeapYear=function(){return G(this.year())},fa.weekYear=function(e){return _a.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fa.isoWeekYear=function(e){return _a.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=je,fa.daysInMonth=function(){return De(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=this._isUTC?this._d.getUTCDay():this._d.getDay();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=Et(le,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?$t(this,It(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=Et(me,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fa.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?vt(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=T("dates accessor is deprecated. Use date instead.",ua),fa.months=T("months accessor is deprecated. Use month instead",je),fa.years=T("years accessor is deprecated. Use year instead",Oe),fa.zone=T("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=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=Tt(t))._a?(e=t._isUTC?h(t._a):vt(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&&V(e[n])!==V(t[n]))&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var ya=j.prototype;function Ya(e,t,a,n){var s=_t(),r=h().set(n,t);return s[a](r,e)}function pa(e,t,a){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ya(e,t,a,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Ya(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=_t(),i=e?r._week.dow:0,d=[];if(null!=a)return Ya(t,(a+i)%7,n,"day");for(s=0;s<7;s++)d[s]=Ya(t,(s+i)%7,n,"day");return d}ya.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return S(n)?n.call(t,a):n},ya.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},ya.invalidDate=function(){return this._invalidDate},ya.ordinal=function(e){return this._ordinal.replace("%d",e)},ya.preparse=La,ya.postformat=La,ya.relativeTime=function(e,t,a,n){var s=this._relativeTime[a];return S(s)?s(e,t,a,n):s.replace(/%d/i,e)},ya.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return S(a)?a(t):a.replace(/%s/i,t)},ya.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)},ya.eras=function(e,t){var a,n,r,i=this._eras||_t("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},ya.erasParse=function(e,t,a){var n,s,r,i,d,_=this.eras();for(e=e.toUpperCase(),n=0,s=_.length;n<s;++n)if(r=_[n].name.toUpperCase(),i=_[n].abbr.toUpperCase(),d=_[n].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(i===e)return _[n];break;case"NNNN":if(r===e)return _[n];break;case"NNNNN":if(d===e)return _[n]}else if([r,i,d].indexOf(e)>=0)return _[n]},ya.erasConvertYear=function(e,t){var a=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*a},ya.erasAbbrRegex=function(e){return d(this,"_erasAbbrRegex")||ia.call(this),e?this._erasAbbrRegex:this._erasRegex},ya.erasNameRegex=function(e){return d(this,"_erasNameRegex")||ia.call(this),e?this._erasNameRegex:this._erasRegex},ya.erasNarrowRegex=function(e){return d(this,"_erasNarrowRegex")||ia.call(this),e?this._erasNarrowRegex:this._erasRegex},ya.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},ya.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ya.monthsParse=function(e,t,a){var n,s,r;if(this._monthsParseExact)return Se.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=h([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(r=