//! moment.js //! version : 2.8.3 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com (function(t){function C(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw Error("Implement me");}}function I(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function W(a){!1===d.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function q(a,b){var c=!0;return x(function(){c&& (W(a),c=!1);return b.apply(this,arguments)},b)}function X(a,b){return function(c){return l(a.call(this,c),b)}}function Ea(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function Y(){}function D(a,b){!1!==b&&Z(a);aa(this,a);this._d=new Date(+a._d)}function J(a){a=ba(a);var b=a.year||0,c=a.quarter||0,e=a.month||0,g=a.week||0,f=a.day||0;this._milliseconds=+(a.millisecond||0)+1E3*(a.second||0)+6E4*(a.minute||0)+36E5*(a.hour||0);this._days=+f+7*g;this._months=+e+3*c+12*b;this._data= {};this._locale=d.localeData();this._bubble()}function x(a,b){for(var c in b)y.call(b,c)&&(a[c]=b[c]);y.call(b,"toString")&&(a.toString=b.toString);y.call(b,"valueOf")&&(a.valueOf=b.valueOf);return a}function aa(a,b){var c,e,d;"undefined"!==typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject);"undefined"!==typeof b._i&&(a._i=b._i);"undefined"!==typeof b._f&&(a._f=b._f);"undefined"!==typeof b._l&&(a._l=b._l);"undefined"!==typeof b._strict&&(a._strict=b._strict);"undefined"!==typeof b._tzm&& (a._tzm=b._tzm);"undefined"!==typeof b._isUTC&&(a._isUTC=b._isUTC);"undefined"!==typeof b._offset&&(a._offset=b._offset);"undefined"!==typeof b._pf&&(a._pf=b._pf);"undefined"!==typeof b._locale&&(a._locale=b._locale);if(0a?Math.ceil(a):Math.floor(a)}function l(a,b,c){for(var e=""+Math.abs(a);e.lengtha._a[1]||11a._a[2]||a._a[2]>L(a._a[0],a._a[1])?2:0>a._a[3]||23a._a[4]||59a._a[5]||59a._a[6]||999b||2a._pf.overflow&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length));return a._isValid}function la(a){return a?a.toLowerCase().replace("_","-"):a}function ma(a){var b=null;if(!A[a]&&na)try{b=d.locale(),require("./locale/"+a),d.locale(b)}catch(c){}return A[a]} function F(a,b){return b._isUTC?d(a).zone(b._offset||0):d(a).local()}function Ka(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function La(a){var b=a.match(oa),c,e;c=0;for(e=b.length;ck?7:0)-(l(M(c)?366:365)&&(a._pf._overflowDayOfYear=!0),c=R(c,0,a._dayOfYear),a._a[1]=c.getUTCMonth(),a._a[2]=c.getUTCDate());for(c=0;3>c&&null==a._a[c];++c)a._a[c]=e[c]=g[c];for(;7>c;c++)a._a[c]=e[c]=null==a._a[c]?2===c?1:0:a._a[c];a._d=(a._useUTC?R:$a).apply(null,e);null!=a._tzm&& a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm)}}function ab(a){var b;a._d||(b=ba(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],Q(a))}function S(a){if(a._f===d.ISO_8601)va(a);else{a._a=[];a._pf.empty=!0;var b=""+a._i,c,e,g,f,h,l=b.length,n=0;g=pa(a._f,a._locale).match(oa)||[];for(c=0;ca._a[3]&&(a._a[3]+=12);!1===a._isPm&&12===a._a[3]&&(a._a[3]=0);Q(a);Z(a)}}function Ya(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,c,e,d,f){return c||e||d||f})}function va(a){var b,c,e= a._i,d=bb.exec(e);if(d){a._pf.iso=!0;b=0;for(c=T.length;ba&&b.setFullYear(a);return b}function R(a){var b=new Date(Date.UTC.apply(null,arguments));1970>a&&b.setUTCFullYear(a);return b}function gb(a,b,c,e,d){return d.relativeTime(b||1,!!c,a,e)}function z(a,b,c){b=c-b;c-=a.day();c>b&&(c-=7);ca&&(a=-a,b="-");return b+l(k(a/60),2)+":"+l(k(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";0>a&&(a=-a,b="-");return b+l(k(a/60),2)+l(k(a)%60,2)},z:function(){return this.zoneAbbr()}, zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},ea={},Da=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Ba.length;)n=Ba.pop(),u[n+"o"]=Ea(u[n],n);for(;Ca.length;)n=Ca.pop(),u[n+n]=X(u[n],2);u.DDDD=X(u.DDD,3);x(Y.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"===typeof b?this[c]=b:this["_"+c]=b},_months:"January February March April May June July August September October November December".split(" "),months:function(a){return this._months[a.month()]}, _monthsShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c;this._monthsParse||(this._monthsParse=[]);for(b=0;12>b;b++)if(this._monthsParse[b]||(c=d.utc([2E3,b]),c="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[b]=new RegExp(c.replace(".",""),"i")),this._monthsParse[b].test(a))return b},_weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdays:function(a){return this._weekdays[a.day()]}, _weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su Mo Tu We Th Fr Sa".split(" "),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c;this._weekdaysParse||(this._weekdaysParse=[]);for(b=0;7>b;b++)if(this._weekdaysParse[b]||(c=d([2E3,1]).day(b),c="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(c.replace(".", ""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b);return b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a, b,c){return 11=c&&ia(f,e,!0)>=c-1)break;c--}b++}a=null}return a};d.isMoment=function(a){return a instanceof D||null!=a&&y.call(a,"_isAMomentObject")};d.isDuration=function(a){return a instanceof J};for(n=Da.length-1;0<=n;--n)Ja(Da[n]);d.normalizeUnits=function(a){return m(a)};d.invalid=function(a){var b=d.utc(NaN);null!=a?x(b._pf,a):b._pf.userInvalidated=!0;return b};d.parseZone=function(){return d.apply(null,arguments).parseZone()};d.parseTwoDigitYear=function(a){return k(a)+(68=a.year()?N(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):N(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){return[this.year(),this.month(),this.date(),this.hours(),this.minutes(),this.seconds(),this.milliseconds()]},isValid:function(){return ka(this)}, isDSTShifted:function(){return this._a?this.isValid()&&0a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse";return this.format(this.localeData().calendar(a,this))},isLeapYear:function(){return M(this.year())},isDST:function(){return this.zone()+a):+this.clone().startOf(b)>+d(a).startOf(b)},isBefore:function(a,b){b=m("undefined"!==typeof b?b:"millisecond");return"millisecond"=== b?(a=d.isMoment(a)?a:d(a),+this<+a):+this.clone().startOf(b)<+d(a).startOf(b)},isSame:function(a,b){b=m(b||"millisecond");return"millisecond"===b?(a=d.isMoment(a)?a:d(a),+this===+a):+this.clone().startOf(b)===+F(a,this).startOf(b)},min:q("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){a=d.apply(null,arguments);return athis?this:a}),zone:function(a,b){var c=this._offset||0,e;if(null!=a)"string"===typeof a&&(a=ua(a)),16>Math.abs(a)&&(a*=60),!this._isUTC&&b&&(e=this._dateTzOffset()),this._offset=a,this._isUTC=!0,null!=e&&this.subtract(e,"m"),c!==a&&(!b||this._changeInProgress?fa(this,d.duration(c-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null));else return this._isUTC?c:this._dateTzOffset();return this}, zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){this._tzm?this.zone(this._tzm):"string"===typeof this._i&&this.zone(this._i);return this},hasAlignedHourOffset:function(a){a=a?d(a).zone():0;return 0===(this.zone()-a)%60},daysInMonth:function(){return L(this.year(),this.month())},dayOfYear:function(a){var b=B((d(this).startOf("day")-d(this).startOf("year"))/864E5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null== a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=z(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=z(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=z(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)% 7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return ja(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return ja(this.year(),a.dow,a.doy)},get:function(a){a=m(a);return this[a]()},set:function(a,b){a=m(a);if("function"===typeof this[a])this[a](b);return this},locale:function(a){if(a===t)return this._locale._abbr;a=d.localeData(a);null!=a&&(this._locale=a);return this},lang:q("moment().lang() is deprecated. Use moment().localeData() instead.", function(a){return a===t?this.localeData():this.locale(a)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}});d.fn.millisecond=d.fn.milliseconds=v("Milliseconds",!1);d.fn.second=d.fn.seconds=v("Seconds",!1);d.fn.minute=d.fn.minutes=v("Minutes",!1);d.fn.hour=d.fn.hours=v("Hours",!0);d.fn.date=v("Date",!0);d.fn.dates=q("dates accessor is deprecated. Use date instead.",v("Date",!0));d.fn.year=v("FullYear",!0);d.fn.years=q("years accessor is deprecated. Use year instead.", v("FullYear",!0));d.fn.days=d.fn.day;d.fn.months=d.fn.month;d.fn.weeks=d.fn.week;d.fn.isoWeeks=d.fn.isoWeek;d.fn.quarters=d.fn.quarter;d.fn.toJSON=d.fn.toISOString;x(d.duration.fn=J.prototype,{_bubble:function(){var a=this._milliseconds,b=this._days,c=this._months,e=this._data,d=0;e.milliseconds=a%1E3;a=r(a/1E3);e.seconds=a%60;a=r(a/60);e.minutes=a%60;a=r(a/60);e.hours=a%24;b+=r(a/24);d=r(400*b/146097);b-=r(146097*d/400);c+=r(b/30);b%=30;d+=r(c/12);e.days=b;e.months=c%12;e.years=d},abs:function(){this._milliseconds= Math.abs(this._milliseconds);this._days=Math.abs(this._days);this._months=Math.abs(this._months);this._data.milliseconds=Math.abs(this._data.milliseconds);this._data.seconds=Math.abs(this._data.seconds);this._data.minutes=Math.abs(this._data.minutes);this._data.hours=Math.abs(this._data.hours);this._data.months=Math.abs(this._data.months);this._data.years=Math.abs(this._data.years);return this},weeks:function(){return r(this.days()/7)},valueOf:function(){return this._milliseconds+864E5*this._days+ this._months%12*2592E6+31536E6*k(this._months/12)},humanize:function(a){var b;b=!a;var c=this.localeData(),e=d.duration(this).abs(),g=B(e.as("s")),f=B(e.as("m")),h=B(e.as("h")),k=B(e.as("d")),l=B(e.as("M")),e=B(e.as("y")),g=gthis.asSeconds()?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||g||f?"T":"")+(d?d+"H":"")+(g?g+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale}});d.duration.fn.toString=d.duration.fn.toISOString;for(n in Aa)y.call(Aa, n)&&hb(n.toLowerCase());d.duration.fn.asMilliseconds=function(){return this.as("ms")};d.duration.fn.asSeconds=function(){return this.as("s")};d.duration.fn.asMinutes=function(){return this.as("m")};d.duration.fn.asHours=function(){return this.as("h")};d.duration.fn.asDays=function(){return this.as("d")};d.duration.fn.asWeeks=function(){return this.as("weeks")};d.duration.fn.asMonths=function(){return this.as("M")};d.duration.fn.asYears=function(){return this.as("y")};d.locale("en",{ordinal:function(a){var b= a%10,b=1===k(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+b}});na?module.exports=d:"function"===typeof define&&define.amd?(define("moment",function(a,b,c){c.config&&c.config()&&!0===c.config().noGlobal&&(V.moment=za);return d}),ya(!0)):ya()}).call(this);