better-js-logging/angular-logger

View on GitHub
dist/angular-logger.min.js

Summary

Maintainability
A
0 mins
Test Coverage
!function e(t,n,i){function r(a,o){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return r(n?n:e)},d,d.exports,e,t,n,i)}return n[a].exports}for(var s="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){var i=e("better-logging-base").LoggingEnhancer,r=e("sprintf-js"),s=e("moment");r=r&&r.sprintf||window.sprintf&&window.sprintf.sprintf||window.sprintf,s=s||window.moment;var a=window.angular;!function(e,t,n,i){"use strict";t.module("angular-logger",[]).provider("logEnhancer",function(){var t=this;this.datetimePattern="LLL",this.datetimeLocale=window.navigator.userLanguage||window.navigator.language||"en",this.prefixPattern="%s::[%s]> ",this.LEVEL=e.LEVEL,this.logLevels={"*":this.LEVEL.TRACE},this.instanceFactoryFactory=function(n){return function(i){return{trace:e.enhanceLogging(n.$$orig$log.debug,n.LEVEL.TRACE,i,n,t.datetimePattern,t.datetimeLocale,t.prefixPattern),debug:e.enhanceLogging(n.$$orig$log.debug,n.LEVEL.DEBUG,i,n,t.datetimePattern,t.datetimeLocale,t.prefixPattern),log:e.enhanceLogging(n.$$orig$log.log,n.LEVEL.INFO,i,n,t.datetimePattern,t.datetimeLocale,t.prefixPattern),info:e.enhanceLogging(n.$$orig$log.info,n.LEVEL.INFO,i,n,t.datetimePattern,t.datetimeLocale,t.prefixPattern),warn:e.enhanceLogging(n.$$orig$log.warn,n.LEVEL.WARN,i,n,t.datetimePattern,t.datetimeLocale,t.prefixPattern),error:e.enhanceLogging(n.$$orig$log.error,n.LEVEL.ERROR,i,n,t.datetimePattern,t.datetimeLocale,t.prefixPattern)}}},this.$get=function(){return{enhanceAngularLog:function(e){e.LEVEL=t.LEVEL,e.logLevels=t.logLevels,e.getInstance=t.instanceFactoryFactory(e)}}}}).config(["logEnhancerProvider",function(e){e.datetimePattern="LLL",e.datetimeLocale=window.navigator.userLanguage||window.navigator.language||"en",e.prefixPattern="%s::[%s]> ",e.logLevels={"*":e.LEVEL.TRACE}}]).config(["$provide","logEnhancerProvider",function(n,i){n.decorator("$log",["$delegate",function(n){return n.logLevels=i.logLevels,{$$orig$log:t.extend({},n),trace:e.enhanceLogging(n.debug,i.LEVEL.TRACE,"global",n,i.datetimePattern,i.datetimeLocale,i.prefixPattern),debug:e.enhanceLogging(n.debug,i.LEVEL.DEBUG,"global",n,i.datetimePattern,i.datetimeLocale,i.prefixPattern),log:e.enhanceLogging(n.log,i.LEVEL.INFO,"global",n,i.datetimePattern,i.datetimeLocale,i.prefixPattern),info:e.enhanceLogging(n.info,i.LEVEL.INFO,"global",n,i.datetimePattern,i.datetimeLocale,i.prefixPattern),warn:e.enhanceLogging(n.warn,i.LEVEL.WARN,"global",n,i.datetimePattern,i.datetimeLocale,i.prefixPattern),error:e.enhanceLogging(n.error,i.LEVEL.ERROR,"global",n,i.datetimePattern,i.datetimeLocale,i.prefixPattern)}}])}]).run(["$log","logEnhancer",function(e,t){t.enhanceAngularLog(e),n||e.warn('sprintf.js not found: https://github.com/alexei/sprintf.js, using fixed layout pattern "%s::[%s]> "'),i||e.warn("moment.js not found: http://momentjs.com, using non-localized simple Date format")}])}(new i(r,s),a,r,s)},{"better-logging-base":2,moment:3,"sprintf-js":4}],2:[function(e,t,n){!function(){"use strict";var e=function(e,t){var n=this;this.LEVEL={TRACE:4,DEBUG:3,INFO:2,WARN:1,ERROR:0,OFF:-1},this.enhanceLogging=function(i,r,s,a,o,u,l){function d(e,t,i){function r(e,t){if(e){if(void 0!==t.logLevels[e])return t.logLevels[e];if(e.indexOf(".")!==-1)return r(e.substring(0,e.lastIndexOf(".")),t)}return void 0!==t.logLevels["*"]?t.logLevels["*"]:n.LEVEL.TRACE}return t>n.LEVEL.OFF&&t<=r(e,i)}function h(t,i,r,s,a,o){function u(t){var i="undefined"!=typeof e,r=i&&t.length>=2&&"string"==typeof t[0]&&t[0].indexOf("%")!==-1;if(r)try{var s=n.countSprintfHolders(t[0]);s>0&&(t[0]=e.apply(null,t),t.splice(1,s))}catch(a){t.unshift(a)}return t}var l=c(i,r,s,a,o),d=u([].slice.call(t));return[l].concat([].slice.call(d))}function c(i,r,s,a,o){var u="";if("undefined"!=typeof t)u=t().locale(a).format(s);else{var l=new Date,d=(new Date).toTimeString().match(/^([0-9]{2}:[0-9]{2}:[0-9]{2})/)[0];u=l.getDate()+"-"+(l.getMonth()+1)+"-"+l.getFullYear()+" "+d}for(var h in n.LEVEL)if(n.LEVEL[h]===r)break;return h=h.toLowerCase(),"undefined"!=typeof e?e(o,u,i,h):u+"::"+i+"::"+h+"> "}return a.logLevels=a.logLevels||[],function(){if(d(s,r,a)){var e=h(arguments,s,r,o,u,l);return i.apply(null,e),e}return null}},n.countSprintfHolders=function(t){function n(e){return function(){r=Math.max(r,e)}}var i=/\x25\([a-zA-Z0-9_]+\)[b-fijosuxX]/.test(t);if(i)return 1;var r=0;return e(t,n(1),n(2),n(3),n(4),n(5),n(6),n(7),n(8),n(9),n(10)),r}};if("undefined"!=typeof t)t.exports.LoggingEnhancer=e;else if("undefined"!=typeof n)n.LoggingEnhancer=e;else{if("undefined"==typeof window)throw new Error("unable to expose LoggingEnhancer: no module, exports object and no global window detected");window.loggingEnhancer=new e(window.sprintf,window.moment)}}()},{}],3:[function(e,t,n){!function(e,i){"object"==typeof n&&"undefined"!=typeof t?t.exports=i():"function"==typeof define&&define.amd?define(i):e.moment=i()}(this,function(){"use strict";function n(){return _i.apply(null,arguments)}function i(e){_i=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t;for(t in e)return!1;return!0}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,i){return pt(e,t,n,i,!0).utc()}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function f(e){return null==e._pf&&(e._pf=c()),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=gi.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function _(e){var t=h(NaN);return null!=e?d(f(t),e):f(t).userInvalidated=!0,t}function g(e){return void 0===e}function y(e,t){var n,i,r;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=f(t)),g(t._locale)||(e._locale=t._locale),yi.length>0)for(n in yi)i=yi[n],r=t[i],g(r)||(e[i]=r);return e}function p(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),pi===!1&&(pi=!0,n.updateOffset(this),pi=!1)}function w(e){return e instanceof p||null!=e&&null!=e._isAMomentObject}function v(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function S(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&k(e[i])!==k(t[i]))&&a++;return a+s}function M(e){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var i=!0;return d(function(){return null!=n.deprecationHandler&&n.deprecationHandler(null,e),i&&(M(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),i=!1),t.apply(this,arguments)},t)}function Y(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),wi[e]||(M(t),wi[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){var t,n;for(n in e)t=e[n],x(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function b(e,t){var n,i=d({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},d(i[n],e[n]),d(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(i[n]=d({},i[n]));return i}function O(e){null!=e&&this.set(e)}function P(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return x(i)?i.call(t,n):i}function T(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function E(){return this._invalidDate}function W(e){return this._ordinal.replace("%d",e)}function R(e,t,n,i){var r=this._relativeTime[n];return x(r)?r(e,t,n,i):r.replace(/%d/i,e)}function F(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function C(e,t){var n=e.toLowerCase();bi[n]=bi[n+"s"]=bi[t]=e}function U(e){return"string"==typeof e?bi[e]||bi[e.toLowerCase()]:void 0}function V(e){var t,n,i={};for(n in e)l(e,n)&&(t=U(n),t&&(i[t]=e[n]));return i}function H(e,t){Oi[e]=t}function G(e){var t=[];for(var n in e)t.push({unit:n,priority:Oi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function j(e,t){return function(i){return null!=i?(N(this,e,i),n.updateOffset(this,t),this):A(this,e)}}function A(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function N(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function I(e){return e=U(e),x(this[e])?this[e]():this}function $(e,t){if("object"==typeof e){e=V(e);for(var n=G(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=U(e),x(this[e]))return this[e](t);return this}function z(e,t,n){var i=""+Math.abs(e),r=t-i.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function Z(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Wi[e]=r),t&&(Wi[t[0]]=function(){return z(r.apply(this,arguments),t[1],t[2])}),n&&(Wi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,i=e.match(Pi);for(t=0,n=i.length;t<n;t++)Wi[i[t]]?i[t]=Wi[i[t]]:i[t]=q(i[t]);return function(t){var r,s="";for(r=0;r<n;r++)s+=i[r]instanceof Function?i[r].call(t,e):i[r];return s}}function J(e,t){return e.isValid()?(t=X(t,e.localeData()),Ei[t]=Ei[t]||B(t),Ei[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ti.lastIndex=0;i>=0&&Ti.test(e);)e=e.replace(Ti,n),Ti.lastIndex=0,i-=1;return e}function Q(e,t,n){Xi[e]=x(t)?t:function(e,i){return e&&n?n:t}}function K(e,t){return l(Xi,e)?Xi[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=k(e)}),n=0;n<e.length;n++)Qi[e[n]]=i}function ie(e,t){ne(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function re(e,t,n){null!=t&&l(Qi,e)&&Qi[e](t,n._a,n,e)}function se(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t){return r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ur).test(t)?"format":"standalone"][e.month()]}function oe(e,t){return r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ur.test(t)?"format":"standalone"][e.month()]}function ue(e,t,n){var i,r,s,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?(r=ki.call(this._shortMonthsParse,a),r!==-1?r:null):(r=ki.call(this._longMonthsParse,a),r!==-1?r:null):"MMM"===t?(r=ki.call(this._shortMonthsParse,a),r!==-1?r:(r=ki.call(this._longMonthsParse,a),r!==-1?r:null)):(r=ki.call(this._longMonthsParse,a),r!==-1?r:(r=ki.call(this._shortMonthsParse,a),r!==-1?r:null))}function le(e,t,n){var i,r,s;if(this._monthsParseExact)return ue.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function de(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function he(e){return null!=e?(de(this,e),n.updateOffset(this,!0),this):A(this,"Month")}function ce(){return se(this.year(),this.month())}function fe(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_e.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=hr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function me(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_e.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=cr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _e(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),s.sort(e),t=0;t<12;t++)i[t]=te(i[t]),r[t]=te(r[t]);for(t=0;t<24;t++)s[t]=te(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ge(e){return ye(e)?366:365}function ye(e){return e%4===0&&e%100!==0||e%400===0}function pe(){return ye(this.year())}function we(e,t,n,i,r,s,a){var o=new Date(e,t,n,i,r,s,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}function ve(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ke(e,t,n){var i=7+t-n,r=(7+ve(e,0,i).getUTCDay()-t)%7;return-r+i-1}function Se(e,t,n,i,r){var s,a,o=(7+n-i)%7,u=ke(e,i,r),l=1+7*(t-1)+o+u;return l<=0?(s=e-1,a=ge(s)+l):l>ge(e)?(s=e+1,a=l-ge(e)):(s=e,a=l),{year:s,dayOfYear:a}}function Me(e,t,n){var i,r,s=ke(e.year(),t,n),a=Math.floor((e.dayOfYear()-s-1)/7)+1;return a<1?(r=e.year()-1,i=a+De(r,t,n)):a>De(e.year(),t,n)?(i=a-De(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function De(e,t,n){var i=ke(e,t,n),r=ke(e+1,t,n);return(ge(e)-i+r)/7}function Ye(e){return Me(e,this._week.dow,this._week.doy).week}function xe(){return this._week.dow}function Le(){return this._week.doy}function be(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Oe(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Te(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ee(e,t){return r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function We(e){return this._weekdaysShort[e.day()]}function Re(e){return this._weekdaysMin[e.day()]}function Fe(e,t,n){var i,r,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?(r=ki.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=ki.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=ki.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=ki.call(this._weekdaysParse,a),r!==-1?r:(r=ki.call(this._shortWeekdaysParse,a),r!==-1?r:(r=ki.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=ki.call(this._shortWeekdaysParse,a),r!==-1?r:(r=ki.call(this._weekdaysParse,a),r!==-1?r:(r=ki.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=ki.call(this._minWeekdaysParse,a),r!==-1?r:(r=ki.call(this._weekdaysParse,a),r!==-1?r:(r=ki.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function Ce(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Fe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Ue(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pe(e,this.localeData()),this.add(e-t,"d")):t}function Ve(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")}function He(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Te(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ge(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ne.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=pr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function je(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ne.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ae(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ne.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ne(){function e(e,t){return t.length-e.length}var t,n,i,r,s,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),s=this.weekdays(n,""),a.push(i),o.push(r),u.push(s),l.push(i),l.push(r),l.push(s);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=te(o[t]),u[t]=te(u[t]),l[t]=te(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ie(){return this.hours()%12||12}function $e(){return this.hours()||24}function ze(e,t){Z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ze(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Be(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Je(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,n,i,r,s=0;s<e.length;){for(r=Je(e[s]).split("-"),t=r.length,n=Je(e[s+1]),n=n?n.split("-"):null;t>0;){if(i=Qe(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&S(r,n,!0)>=t-1)break;t--}s++}return null}function Qe(n){var i=null;if(!Yr[n]&&"undefined"!=typeof t&&t&&t.exports)try{i=kr._abbr,e("./locale/"+n),Ke(i)}catch(r){}return Yr[n]}function Ke(e,t){var n;return e&&(n=g(t)?nt(e):et(e,t),n&&(kr=n)),kr._abbr}function et(e,t){if(null!==t){var n=Dr;return t.abbr=e,null!=Yr[e]?(Y("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=Yr[e]._config):null!=t.parentLocale&&(null!=Yr[t.parentLocale]?n=Yr[t.parentLocale]._config:Y("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),Yr[e]=new O(b(n,t)),Ke(e),Yr[e]}return delete Yr[e],null}function tt(e,t){if(null!=t){var n,i=Dr;null!=Yr[e]&&(i=Yr[e]._config),t=b(i,t),n=new O(t),n.parentLocale=Yr[e],Yr[e]=n,Ke(e)}else null!=Yr[e]&&(null!=Yr[e].parentLocale?Yr[e]=Yr[e].parentLocale:null!=Yr[e]&&delete Yr[e]);return Yr[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return kr;if(!r(e)){if(t=Qe(e))return t;e=[e]}return Xe(e)}function it(){return vi(Yr)}function rt(e){var t,n=e._a;return n&&f(e).overflow===-2&&(t=n[er]<0||n[er]>11?er:n[tr]<1||n[tr]>se(n[Ki],n[er])?tr:n[nr]<0||n[nr]>24||24===n[nr]&&(0!==n[ir]||0!==n[rr]||0!==n[sr])?nr:n[ir]<0||n[ir]>59?ir:n[rr]<0||n[rr]>59?rr:n[sr]<0||n[sr]>999?sr:-1,f(e)._overflowDayOfYear&&(t<Ki||t>tr)&&(t=tr),f(e)._overflowWeeks&&t===-1&&(t=ar),f(e)._overflowWeekday&&t===-1&&(t=or),f(e).overflow=t),e}function st(e){var t,n,i,r,s,a,o=e._i,u=xr.exec(o)||Lr.exec(o);if(u){for(f(e).iso=!0,t=0,n=Or.length;t<n;t++)if(Or[t][1].exec(u[1])){r=Or[t][0],i=Or[t][2]!==!1;break}if(null==r)return void(e._isValid=!1);if(u[3]){for(t=0,n=Pr.length;t<n;t++)if(Pr[t][1].exec(u[3])){s=(u[2]||" ")+Pr[t][0];break}if(null==s)return void(e._isValid=!1)}if(!i&&null!=s)return void(e._isValid=!1);if(u[4]){if(!br.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=r+(s||"")+(a||""),ht(e)}else e._isValid=!1}function at(e){var t=Tr.exec(e._i);return null!==t?void(e._d=new Date((+t[1]))):(st(e),void(e._isValid===!1&&(delete e._isValid,n.createFromInputFallback(e))))}function ot(e,t,n){return null!=e?e:null!=t?t:n}function ut(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function lt(e){var t,n,i,r,s=[];if(!e._d){for(i=ut(e),e._w&&null==e._a[tr]&&null==e._a[er]&&dt(e),e._dayOfYear&&(r=ot(e._a[Ki],i[Ki]),e._dayOfYear>ge(r)&&(f(e)._overflowDayOfYear=!0),n=ve(r,0,e._dayOfYear),e._a[er]=n.getUTCMonth(),e._a[tr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[nr]&&0===e._a[ir]&&0===e._a[rr]&&0===e._a[sr]&&(e._nextDay=!0,e._a[nr]=0),e._d=(e._useUTC?ve:we).apply(null,s),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[nr]=24)}}function dt(e){var t,n,i,r,s,a,o,u;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(s=1,a=4,n=ot(t.GG,e._a[Ki],Me(wt(),1,4).year),i=ot(t.W,1),r=ot(t.E,1),(r<1||r>7)&&(u=!0)):(s=e._locale._week.dow,a=e._locale._week.doy,n=ot(t.gg,e._a[Ki],Me(wt(),s,a).year),i=ot(t.w,1),null!=t.d?(r=t.d,(r<0||r>6)&&(u=!0)):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(u=!0)):r=s),i<1||i>De(n,s,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(o=Se(n,i,r,s,a),e._a[Ki]=o.year,e._dayOfYear=o.dayOfYear)}function ht(e){if(e._f===n.ISO_8601)return void st(e);e._a=[],f(e).empty=!0;var t,i,r,s,a,o=""+e._i,u=o.length,l=0;for(r=X(e._f,e._locale).match(Pi)||[],t=0;t<r.length;t++)s=r[t],i=(o.match(K(s,e))||[])[0],i&&(a=o.substr(0,o.indexOf(i)),a.length>0&&f(e).unusedInput.push(a),o=o.slice(o.indexOf(i)+i.length),l+=i.length),Wi[s]?(i?f(e).empty=!1:f(e).unusedTokens.push(s),re(s,i,e)):e._strict&&!i&&f(e).unusedTokens.push(s);f(e).charsLeftOver=u-l,o.length>0&&f(e).unusedInput.push(o),e._a[nr]<=12&&f(e).bigHour===!0&&e._a[nr]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[nr]=ct(e._locale,e._a[nr],e._meridiem),lt(e),rt(e)}function ct(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function ft(e){var t,n,i,r,s;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)s=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],ht(t),m(t)&&(s+=f(t).charsLeftOver,s+=10*f(t).unusedTokens.length,f(t).score=s,(null==i||s<i)&&(i=s,n=t));d(e,n||t)}function mt(e){if(!e._d){var t=V(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function _t(e){var t=new p(rt(gt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function gt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new p(rt(t)):(r(n)?ft(e):o(t)?e._d=t:n?ht(e):yt(e),m(e)||(e._d=null),e))}function yt(e){var t=e._i;void 0===t?e._d=new Date(n.now()):o(t)?e._d=new Date(t.valueOf()):"string"==typeof t?at(e):r(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),lt(e)):"object"==typeof t?mt(e):"number"==typeof t?e._d=new Date(t):n.createFromInputFallback(e)}function pt(e,t,n,i,o){var u={};return"boolean"==typeof n&&(i=n,n=void 0),(s(e)&&a(e)||r(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=n,u._i=e,u._f=t,u._strict=i,_t(u)}function wt(e,t,n,i){return pt(e,t,n,i,!1)}function vt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return wt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function kt(){var e=[].slice.call(arguments,0);return vt("isBefore",e)}function St(){var e=[].slice.call(arguments,0);return vt("isAfter",e)}function Mt(e){var t=V(e),n=t.year||0,i=t.quarter||0,r=t.month||0,s=t.week||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._milliseconds=+d+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=nt(),this._bubble()}function Dt(e){return e instanceof Mt}function Yt(e,t){Z(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+z(~~(e/60),2)+t+z(~~e%60,2)})}function xt(e,t){var n=(t||"").match(e)||[],i=n[n.length-1]||[],r=(i+"").match(Fr)||["-",0,0],s=+(60*r[1])+k(r[2]);return"+"===r[0]?s:-s}function Lt(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(w(e)||o(e)?e.valueOf():wt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):wt(e).local()}function bt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ot(e,t){var i,r=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=xt(qi,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(i=bt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?zt(this,Gt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:bt(this):null!=e?this:NaN}function Pt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Tt(e){return this.utcOffset(0,e)}function Et(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(bt(this),"m")),this}function Wt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(xt(Zi,this._i)),this}function Rt(e){return!!this.isValid()&&(e=e?wt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Ft(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ct(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=gt(e),e._a){var t=e._isUTC?h(e._a):wt(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ut(){return!!this.isValid()&&!this._isUTC}function Vt(){return!!this.isValid()&&this._isUTC}function Ht(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Gt(e,t){var n,i,r,s=e,a=null;return Dt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(s={},t?s[t]=e:s.milliseconds=e):(a=Cr.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:k(a[tr])*n,h:k(a[nr])*n,m:k(a[ir])*n,s:k(a[rr])*n,ms:k(a[sr])*n}):(a=Ur.exec(e))?(n="-"===a[1]?-1:1,s={y:jt(a[2],n),M:jt(a[3],n),w:jt(a[4],n),d:jt(a[5],n),h:jt(a[6],n),m:jt(a[7],n),s:jt(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Nt(wt(s.from),wt(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new Mt(s),Dt(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function At(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Nt(e,t){var n;return e.isValid()&&t.isValid()?(t=Lt(t,e),e.isBefore(t)?n=At(e,t):(n=At(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function It(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function $t(e,t){return function(n,i){var r,s;return null===i||isNaN(+i)||(Y(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=n,n=i,i=s),n="string"==typeof n?+n:n,r=Gt(n,i),zt(this,r,e),this}}function zt(e,t,i,r){var s=t._milliseconds,a=It(t._days),o=It(t._months);e.isValid()&&(r=null==r||r,s&&e._d.setTime(e._d.valueOf()+s*i),a&&N(e,"Date",A(e,"Date")+a*i),o&&de(e,A(e,"Month")+o*i),r&&n.updateOffset(e,a||o))}function Zt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function qt(e,t){var i=e||wt(),r=Lt(i,this).startOf("day"),s=n.calendarFormat(this,r)||"sameElse",a=t&&(x(t[s])?t[s].call(this,i):t[s]);return this.format(a||this.localeData().calendar(s,this,wt(i)))}function Bt(){return new p(this)}function Jt(e,t){var n=w(e)?e:wt(e);return!(!this.isValid()||!n.isValid())&&(t=U(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Xt(e,t){var n=w(e)?e:wt(e);return!(!this.isValid()||!n.isValid())&&(t=U(g(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Qt(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Kt(e,t){var n,i=w(e)?e:wt(e);return!(!this.isValid()||!i.isValid())&&(t=U(t||"millisecond"),"millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function en(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function tn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nn(e,t,n){var i,r,s,a;return this.isValid()?(i=Lt(e,this),
i.isValid()?(r=6e4*(i.utcOffset()-this.utcOffset()),t=U(t),"year"===t||"month"===t||"quarter"===t?(a=rn(this,i),"quarter"===t?a/=3:"year"===t&&(a/=12)):(s=this-i,a="second"===t?s/1e3:"minute"===t?s/6e4:"hour"===t?s/36e5:"day"===t?(s-r)/864e5:"week"===t?(s-r)/6048e5:s),n?a:v(a)):NaN):NaN}function rn(e,t){var n,i,r=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(r,"months");return t-s<0?(n=e.clone().add(r-1,"months"),i=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),i=(t-s)/(n-s)),-(r+i)||0}function sn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function an(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?x(Date.prototype.toISOString)?this.toDate().toISOString():J(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):J(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function on(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=J(this,e);return this.localeData().postformat(t)}function un(e,t){return this.isValid()&&(w(e)&&e.isValid()||wt(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ln(e){return this.from(wt(),e)}function dn(e,t){return this.isValid()&&(w(e)&&e.isValid()||wt(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hn(e){return this.to(wt(),e)}function cn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function fn(){return this._locale}function mn(e){switch(e=U(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function _n(e){return e=U(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function gn(){return this._d.valueOf()-6e4*(this._offset||0)}function yn(){return Math.floor(this.valueOf()/1e3)}function pn(){return new Date(this.valueOf())}function wn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function vn(){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()}}function kn(){return this.isValid()?this.toISOString():null}function Sn(){return m(this)}function Mn(){return d({},f(this))}function Dn(){return f(this).overflow}function Yn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xn(e,t){Z(0,[e,e.length],0,t)}function Ln(e){return Tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function bn(e){return Tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function On(){return De(this.year(),1,4)}function Pn(){var e=this.localeData()._week;return De(this.year(),e.dow,e.doy)}function Tn(e,t,n,i,r){var s;return null==e?Me(this,i,r).year:(s=De(e,i,r),t>s&&(t=s),En.call(this,e,t,n,i,r))}function En(e,t,n,i,r){var s=Se(e,t,n,i,r),a=ve(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Wn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Rn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Fn(e,t){t[sr]=k(1e3*("0."+e))}function Cn(){return this._isUTC?"UTC":""}function Un(){return this._isUTC?"Coordinated Universal Time":""}function Vn(e){return wt(1e3*e)}function Hn(){return wt.apply(null,arguments).parseZone()}function Gn(e){return e}function jn(e,t,n,i){var r=nt(),s=h().set(i,t);return r[n](s,e)}function An(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return jn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=jn(e,i,n,"month");return r}function Nn(e,t,n,i){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var r=nt(),s=e?r._week.dow:0;if(null!=n)return jn(t,(n+s)%7,i,"day");var a,o=[];for(a=0;a<7;a++)o[a]=jn(t,(a+s)%7,i,"day");return o}function In(e,t){return An(e,t,"months")}function $n(e,t){return An(e,t,"monthsShort")}function zn(e,t,n){return Nn(e,t,n,"weekdays")}function Zn(e,t,n){return Nn(e,t,n,"weekdaysShort")}function qn(e,t,n){return Nn(e,t,n,"weekdaysMin")}function Bn(){var e=this._data;return this._milliseconds=Br(this._milliseconds),this._days=Br(this._days),this._months=Br(this._months),e.milliseconds=Br(e.milliseconds),e.seconds=Br(e.seconds),e.minutes=Br(e.minutes),e.hours=Br(e.hours),e.months=Br(e.months),e.years=Br(e.years),this}function Jn(e,t,n,i){var r=Gt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Xn(e,t){return Jn(this,e,t,1)}function Qn(e,t){return Jn(this,e,t,-1)}function Kn(e){return e<0?Math.floor(e):Math.ceil(e)}function ei(){var e,t,n,i,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Kn(ni(o)+a),a=0,o=0),u.milliseconds=s%1e3,e=v(s/1e3),u.seconds=e%60,t=v(e/60),u.minutes=t%60,n=v(t/60),u.hours=n%24,a+=v(n/24),r=v(ti(a)),o+=r,a-=Kn(ni(r)),i=v(o/12),o%=12,u.days=a,u.months=o,u.years=i,this}function ti(e){return 4800*e/146097}function ni(e){return 146097*e/4800}function ii(e){var t,n,i=this._milliseconds;if(e=U(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+ti(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ni(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function ri(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12)}function si(e){return function(){return this.as(e)}}function ai(e){return e=U(e),this[e+"s"]()}function oi(e){return function(){return this._data[e]}}function ui(){return v(this.days()/7)}function li(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function di(e,t,n){var i=Gt(e).abs(),r=hs(i.as("s")),s=hs(i.as("m")),a=hs(i.as("h")),o=hs(i.as("d")),u=hs(i.as("M")),l=hs(i.as("y")),d=r<cs.s&&["s",r]||s<=1&&["m"]||s<cs.m&&["mm",s]||a<=1&&["h"]||a<cs.h&&["hh",a]||o<=1&&["d"]||o<cs.d&&["dd",o]||u<=1&&["M"]||u<cs.M&&["MM",u]||l<=1&&["y"]||["yy",l];return d[2]=t,d[3]=+e>0,d[4]=n,li.apply(null,d)}function hi(e){return void 0===e?hs:"function"==typeof e&&(hs=e,!0)}function ci(e,t){return void 0!==cs[e]&&(void 0===t?cs[e]:(cs[e]=t,!0))}function fi(e){var t=this.localeData(),n=di(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function mi(){var e,t,n,i=fs(this._milliseconds)/1e3,r=fs(this._days),s=fs(this._months);e=v(i/60),t=v(e/60),i%=60,e%=60,n=v(s/12),s%=12;var a=n,o=s,u=r,l=t,d=e,h=i,c=this.asSeconds();return c?(c<0?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(u?u+"D":"")+(l||d||h?"T":"")+(l?l+"H":"")+(d?d+"M":"")+(h?h+"S":""):"P0D"}var _i,gi;gi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var yi=n.momentProperties=[],pi=!1,wi={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var vi;vi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var ki,Si={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Mi={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"},Di="Invalid date",Yi="%d",xi=/\d{1,2}/,Li={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},bi={},Oi={},Pi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ti=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ei={},Wi={},Ri=/\d/,Fi=/\d\d/,Ci=/\d{3}/,Ui=/\d{4}/,Vi=/[+-]?\d{6}/,Hi=/\d\d?/,Gi=/\d\d\d\d?/,ji=/\d\d\d\d\d\d?/,Ai=/\d{1,3}/,Ni=/\d{1,4}/,Ii=/[+-]?\d{1,6}/,$i=/\d+/,zi=/[+-]?\d+/,Zi=/Z|[+-]\d\d:?\d\d/gi,qi=/Z|[+-]\d\d(?::?\d\d)?/gi,Bi=/[+-]?\d+(\.\d{1,3})?/,Ji=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Xi={},Qi={},Ki=0,er=1,tr=2,nr=3,ir=4,rr=5,sr=6,ar=7,or=8;ki=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},Z("M",["MM",2],"Mo",function(){return this.month()+1}),Z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),C("month","M"),H("month",8),Q("M",Hi),Q("MM",Hi,Fi),Q("MMM",function(e,t){return t.monthsShortRegex(e)}),Q("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[er]=k(e)-1}),ne(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[er]=r:f(n).invalidMonth=e});var ur=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,lr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hr=Ji,cr=Ji;Z("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),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"),C("year","y"),H("year",1),Q("Y",zi),Q("YY",Hi,Fi),Q("YYYY",Ni,Ui),Q("YYYYY",Ii,Vi),Q("YYYYYY",Ii,Vi),ne(["YYYYY","YYYYYY"],Ki),ne("YYYY",function(e,t){t[Ki]=2===e.length?n.parseTwoDigitYear(e):k(e)}),ne("YY",function(e,t){t[Ki]=n.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[Ki]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var fr=j("FullYear",!0);Z("w",["ww",2],"wo","week"),Z("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),H("week",5),H("isoWeek",5),Q("w",Hi),Q("ww",Hi,Fi),Q("W",Hi),Q("WW",Hi,Fi),ie(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=k(e)});var mr={dow:0,doy:6};Z("d",0,"do","day"),Z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Z("e",0,0,"weekday"),Z("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),Q("d",Hi),Q("e",Hi),Q("E",Hi),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),ie(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e}),ie(["d","e","E"],function(e,t,n,i){t[i]=k(e)});var _r="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),pr=Ji,wr=Ji,vr=Ji;Z("H",["HH",2],0,"hour"),Z("h",["hh",2],0,Ie),Z("k",["kk",2],0,$e),Z("hmm",0,0,function(){return""+Ie.apply(this)+z(this.minutes(),2)}),Z("hmmss",0,0,function(){return""+Ie.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),Z("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),Z("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),ze("a",!0),ze("A",!1),C("hour","h"),H("hour",13),Q("a",Ze),Q("A",Ze),Q("H",Hi),Q("h",Hi),Q("HH",Hi,Fi),Q("hh",Hi,Fi),Q("hmm",Gi),Q("hmmss",ji),Q("Hmm",Gi),Q("Hmmss",ji),ne(["H","HH"],nr),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[nr]=k(e),f(n).bigHour=!0}),ne("hmm",function(e,t,n){var i=e.length-2;t[nr]=k(e.substr(0,i)),t[ir]=k(e.substr(i)),f(n).bigHour=!0}),ne("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[nr]=k(e.substr(0,i)),t[ir]=k(e.substr(i,2)),t[rr]=k(e.substr(r)),f(n).bigHour=!0}),ne("Hmm",function(e,t,n){var i=e.length-2;t[nr]=k(e.substr(0,i)),t[ir]=k(e.substr(i))}),ne("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[nr]=k(e.substr(0,i)),t[ir]=k(e.substr(i,2)),t[rr]=k(e.substr(r))});var kr,Sr=/[ap]\.?m?\.?/i,Mr=j("Hours",!0),Dr={calendar:Si,longDateFormat:Mi,invalidDate:Di,ordinal:Yi,ordinalParse:xi,relativeTime:Li,months:lr,monthsShort:dr,week:mr,weekdays:_r,weekdaysMin:yr,weekdaysShort:gr,meridiemParse:Sr},Yr={},xr=/^\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)?)?/,Lr=/^\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)?)?/,br=/Z|[+-]\d\d(?::?\d\d)?/,Or=[["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}/]],Pr=[["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/]],Tr=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=D("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){};var Er=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=wt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Wr=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=wt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}),Rr=function(){return Date.now?Date.now():+new Date};Yt("Z",":"),Yt("ZZ",""),Q("Z",qi),Q("ZZ",qi),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=xt(qi,e)});var Fr=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Cr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Ur=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Gt.fn=Mt.prototype;var Vr=$t(1,"add"),Hr=$t(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Gr=D("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)});Z(0,["gg",2],0,function(){return this.weekYear()%100}),Z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),xn("gggg","weekYear"),xn("ggggg","weekYear"),xn("GGGG","isoWeekYear"),xn("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),Q("G",zi),Q("g",zi),Q("GG",Hi,Fi),Q("gg",Hi,Fi),Q("GGGG",Ni,Ui),Q("gggg",Ni,Ui),Q("GGGGG",Ii,Vi),Q("ggggg",Ii,Vi),ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=k(e)}),ie(["gg","GG"],function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)}),Z("Q",0,"Qo","quarter"),C("quarter","Q"),H("quarter",7),Q("Q",Ri),ne("Q",function(e,t){t[er]=3*(k(e)-1)}),Z("D",["DD",2],"Do","date"),C("date","D"),H("date",9),Q("D",Hi),Q("DD",Hi,Fi),Q("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ne(["D","DD"],tr),ne("Do",function(e,t){t[tr]=k(e.match(Hi)[0],10)});var jr=j("Date",!0);Z("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),H("dayOfYear",4),Q("DDD",Ai),Q("DDDD",Ci),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),Z("m",["mm",2],0,"minute"),C("minute","m"),H("minute",14),Q("m",Hi),Q("mm",Hi,Fi),ne(["m","mm"],ir);var Ar=j("Minutes",!1);Z("s",["ss",2],0,"second"),C("second","s"),H("second",15),Q("s",Hi),Q("ss",Hi,Fi),ne(["s","ss"],rr);var Nr=j("Seconds",!1);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()}),C("millisecond","ms"),H("millisecond",16),Q("S",Ai,Ri),Q("SS",Ai,Fi),Q("SSS",Ai,Ci);var Ir;for(Ir="SSSS";Ir.length<=9;Ir+="S")Q(Ir,$i);for(Ir="S";Ir.length<=9;Ir+="S")ne(Ir,Fn);var $r=j("Milliseconds",!1);Z("z",0,0,"zoneAbbr"),Z("zz",0,0,"zoneName");var zr=p.prototype;zr.add=Vr,zr.calendar=qt,zr.clone=Bt,zr.diff=nn,zr.endOf=_n,zr.format=on,zr.from=un,zr.fromNow=ln,zr.to=dn,zr.toNow=hn,zr.get=I,zr.invalidAt=Dn,zr.isAfter=Jt,zr.isBefore=Xt,zr.isBetween=Qt,zr.isSame=Kt,zr.isSameOrAfter=en,zr.isSameOrBefore=tn,zr.isValid=Sn,zr.lang=Gr,zr.locale=cn,zr.localeData=fn,zr.max=Wr,zr.min=Er,zr.parsingFlags=Mn,zr.set=$,zr.startOf=mn,zr.subtract=Hr,zr.toArray=wn,zr.toObject=vn,zr.toDate=pn,zr.toISOString=an,zr.toJSON=kn,zr.toString=sn,zr.unix=yn,zr.valueOf=gn,zr.creationData=Yn,zr.year=fr,zr.isLeapYear=pe,zr.weekYear=Ln,zr.isoWeekYear=bn,zr.quarter=zr.quarters=Wn,zr.month=he,zr.daysInMonth=ce,zr.week=zr.weeks=be,zr.isoWeek=zr.isoWeeks=Oe,zr.weeksInYear=Pn,zr.isoWeeksInYear=On,zr.date=jr,zr.day=zr.days=Ue,zr.weekday=Ve,zr.isoWeekday=He,zr.dayOfYear=Rn,zr.hour=zr.hours=Mr,zr.minute=zr.minutes=Ar,zr.second=zr.seconds=Nr,zr.millisecond=zr.milliseconds=$r,zr.utcOffset=Ot,zr.utc=Tt,zr.local=Et,zr.parseZone=Wt,zr.hasAlignedHourOffset=Rt,zr.isDST=Ft,zr.isLocal=Ut,zr.isUtcOffset=Vt,zr.isUtc=Ht,zr.isUTC=Ht,zr.zoneAbbr=Cn,zr.zoneName=Un,zr.dates=D("dates accessor is deprecated. Use date instead.",jr),zr.months=D("months accessor is deprecated. Use month instead",he),zr.years=D("years accessor is deprecated. Use year instead",fr),zr.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pt),zr.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ct);var Zr=zr,qr=O.prototype;qr.calendar=P,qr.longDateFormat=T,qr.invalidDate=E,qr.ordinal=W,qr.preparse=Gn,qr.postformat=Gn,qr.relativeTime=R,qr.pastFuture=F,qr.set=L,qr.months=ae,qr.monthsShort=oe,qr.monthsParse=le,qr.monthsRegex=me,qr.monthsShortRegex=fe,qr.week=Ye,qr.firstDayOfYear=Le,qr.firstDayOfWeek=xe,qr.weekdays=Ee,qr.weekdaysMin=Re,qr.weekdaysShort=We,qr.weekdaysParse=Ce,qr.weekdaysRegex=Ge,qr.weekdaysShortRegex=je,qr.weekdaysMinRegex=Ae,qr.isPM=qe,qr.meridiem=Be,Ke("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",Ke),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",nt);var Br=Math.abs,Jr=si("ms"),Xr=si("s"),Qr=si("m"),Kr=si("h"),es=si("d"),ts=si("w"),ns=si("M"),is=si("y"),rs=oi("milliseconds"),ss=oi("seconds"),as=oi("minutes"),os=oi("hours"),us=oi("days"),ls=oi("months"),ds=oi("years"),hs=Math.round,cs={s:45,m:45,h:22,d:26,M:11},fs=Math.abs,ms=Mt.prototype;ms.abs=Bn,ms.add=Xn,ms.subtract=Qn,ms.as=ii,ms.asMilliseconds=Jr,ms.asSeconds=Xr,ms.asMinutes=Qr,ms.asHours=Kr,ms.asDays=es,ms.asWeeks=ts,ms.asMonths=ns,ms.asYears=is,ms.valueOf=ri,ms._bubble=ei,ms.get=ai,ms.milliseconds=rs,ms.seconds=ss,ms.minutes=as,ms.hours=os,ms.days=us,ms.weeks=ui,ms.months=ls,ms.years=ds,ms.humanize=fi,ms.toISOString=mi,ms.toString=mi,ms.toJSON=mi,ms.locale=cn,ms.localeData=fn,ms.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",mi),ms.lang=Gr,Z("X",0,0,"unix"),Z("x",0,0,"valueOf"),Q("x",zi),Q("X",Bi),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(k(e))}),n.version="2.14.1",i(wt),n.fn=Zr,n.min=kt,n.max=St,n.now=Rr,n.utc=h,n.unix=Vn,n.months=In,n.isDate=o,n.locale=Ke,n.invalid=_,n.duration=Gt,n.isMoment=w,n.weekdays=zn,n.parseZone=Hn,n.localeData=nt,n.isDuration=Dt,n.monthsShort=$n,n.weekdaysMin=qn,n.defineLocale=et,n.updateLocale=tt,n.locales=it,n.weekdaysShort=Zn,n.normalizeUnits=U,n.relativeTimeRounding=hi,n.relativeTimeThreshold=ci,n.calendarFormat=Zt,n.prototype=Zr;var _s=n;return _s})},{}],4:[function(e,t,n){!function(e){function t(){var e=arguments[0],n=t.cache;return n[e]&&n.hasOwnProperty(e)||(n[e]=t.parse(e)),t.format.call(null,n[e],arguments)}function i(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function r(e,t){return Array(t+1).join(e)}var s={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};t.format=function(e,n){var a,o,u,l,d,h,c,f=1,m=e.length,_="",g=[],y=!0,p="";for(o=0;o<m;o++)if(_=i(e[o]),"string"===_)g[g.length]=e[o];else if("array"===_){if(l=e[o],l[2])for(a=n[f],u=0;u<l[2].length;u++){if(!a.hasOwnProperty(l[2][u]))throw new Error(t("[sprintf] property '%s' does not exist",l[2][u]));a=a[l[2][u]]}else a=l[1]?n[l[1]]:n[f++];if("function"==i(a)&&(a=a()),s.not_string.test(l[8])&&s.not_json.test(l[8])&&"number"!=i(a)&&isNaN(a))throw new TypeError(t("[sprintf] expecting number but found %s",i(a)));switch(s.number.test(l[8])&&(y=a>=0),l[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,l[6]?parseInt(l[6]):0);break;case"e":a=l[7]?a.toExponential(l[7]):a.toExponential();break;case"f":a=l[7]?parseFloat(a).toFixed(l[7]):parseFloat(a);break;case"g":a=l[7]?parseFloat(a).toPrecision(l[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&l[7]?a.substring(0,l[7]):a;break;case"u":a>>>=0;break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}s.json.test(l[8])?g[g.length]=a:(!s.number.test(l[8])||y&&!l[3]?p="":(p=y?"+":"-",a=a.toString().replace(s.sign,"")),h=l[4]?"0"===l[4]?"0":l[4].charAt(1):" ",c=l[6]-(p+a).length,d=l[6]&&c>0?r(h,c):"",g[g.length]=l[5]?p+a+d:"0"===h?p+d+a:d+p+a)}return g.join("")},t.cache={},t.parse=function(e){for(var t=e,n=[],i=[],r=0;t;){if(null!==(n=s.text.exec(t)))i[i.length]=n[0];else if(null!==(n=s.modulo.exec(t)))i[i.length]="%";else{if(null===(n=s.placeholder.exec(t)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){r|=1;var a=[],o=n[2],u=[];if(null===(u=s.key.exec(o)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a[a.length]=u[1];""!==(o=o.substring(u[0].length));)if(null!==(u=s.key_access.exec(o)))a[a.length]=u[1];else{if(null===(u=s.index_access.exec(o)))throw new SyntaxError("[sprintf] failed to parse named argument key");a[a.length]=u[1]}n[2]=a}else r|=2;if(3===r)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i[i.length]=n}t=t.substring(n[0].length)}return i};var a=function(e,n,i){return i=(n||[]).slice(0),i.splice(0,0,e),t.apply(null,i)};"undefined"!=typeof n?(n.sprintf=t,n.vsprintf=a):(e.sprintf=t,e.vsprintf=a,"function"==typeof define&&define.amd&&define(function(){return{sprintf:t,vsprintf:a}}))}("undefined"==typeof window?this:window)},{}]},{},[1]);