UNPKG

ssc-grid

Version:

React grid component for SSC 3.0

7 lines 1.14 MB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.SSCComp=t(require("react"),require("react-dom")):e.SSCComp=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.YearPicker=t.ValidateRefers=t.ValidateInput=t.ValidateFloatInput=t.Tree=t.TextField=t.MonthPicker=t.GridRow=t.Grid=t.Form=t.Dropdown=t.DatePicker2=t.DatePicker=void 0;var a=n(358),o=r(a),i=n(133),s=r(i),u=n(359),l=r(u),d=n(361),f=r(d),c=n(363),p=r(c),h=n(134),m=r(h),_=n(365),y=r(_),v=n(45),g=r(v),b=n(366),M=r(b),D=n(367),E=r(D),L=n(368),w=r(L),C=n(369),k=r(C),A=n(370),x=r(A);t.DatePicker=o.default,t.DatePicker2=s.default,t.Dropdown=l.default,t.Form=f.default,t.Grid=p.default,t.GridRow=m.default,t.MonthPicker=y.default,t.TextField=g.default,t.Tree=M.default,t.ValidateFloatInput=E.default,t.ValidateInput=w.default,t.ValidateRefers=k.default,t.YearPicker=x.default},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(137),o=r(a);t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(375),o=r(a),i=n(374),s=r(i),u=n(48),l=r(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(48),o=r(a);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){var r,a;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=n.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)o.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],a=function(){return n}.apply(t,r),!(void 0!==a&&(e.exports=a)))}()},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){"use strict";function t(){return Fr.apply(null,arguments)}function r(e){Fr=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return kt(e,t,n,r,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=h()),e._pf}function _(e){if(null==e._isValid){var t=m(e),n=Or.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function y(e){var t=p(NaN);return null!=e?c(m(t),e):m(t).userInvalidated=!0,t}function v(e,t){var n,r,a;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=m(t)),s(t._locale)||(e._locale=t._locale),Br.length>0)for(n=0;n<Br.length;n++)r=Br[n],a=t[r],s(a)||(e[r]=a);return e}function g(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Pr===!1&&(Pr=!0,t.updateOffset(this),Pr=!1)}function b(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function M(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=M(t)),n}function E(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&D(e[r])!==D(t[r]))&&i++;return i+o}function L(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,n){var r=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var a,o=[],i=0;i<arguments.length;i++){if(a="","object"==typeof arguments[i]){a+="\n["+i+"] ";for(var s in arguments[0])a+=s+": "+arguments[0][s]+", ";a=a.slice(0,-2)}else a=arguments[i];o.push(a)}L(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function C(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Nr[e]||(L(n),Nr[e]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e){var t,n;for(n in e)t=e[n],k(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n,r=c({},e);for(n in t)f(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},c(r[n],e[n]),c(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&o(e[n])&&(r[n]=c({},r[n]));return r}function T(e){null!=e&&this.set(e)}function S(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r}function Y(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 F(){return this._invalidDate}function O(e){return this._ordinal.replace("%d",e)}function B(e,t,n,r){var a=this._relativeTime[n];return k(a)?a(e,t,n,r):a.replace(/%d/i,e)}function P(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();Ur[n]=Ur[n+"s"]=Ur[t]=e}function j(e){return"string"==typeof e?Ur[e]||Ur[e.toLowerCase()]:void 0}function H(e){var t,n,r={};for(n in e)f(e,n)&&(t=j(n),t&&(r[t]=e[n]));return r}function R(e,t){Vr[e]=t}function I(e){var t=[];for(var n in e)t.push({unit:n,priority:Vr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function W(e,t,n){var r=""+Math.abs(e),a=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}function K(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(Jr[e]=a),t&&(Jr[t[0]]=function(){return W(a.apply(this,arguments),t[1],t[2])}),n&&(Jr[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match($r);for(t=0,n=r.length;t<n;t++)Jr[r[t]]?r[t]=Jr[r[t]]:r[t]=z(r[t]);return function(t){var a,o="";for(a=0;a<n;a++)o+=k(r[a])?r[a].call(t,e):r[a];return o}}function V(e,t){return e.isValid()?(t=$(t,e.localeData()),Gr[t]=Gr[t]||U(t),Gr[t](e)):e.localeData().invalidDate()}function $(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(qr.lastIndex=0;r>=0&&qr.test(e);)e=e.replace(qr,n),qr.lastIndex=0,r-=1;return e}function q(e,t,n){ha[e]=k(t)?t:function(e,r){return e&&n?n:t}}function G(e,t){return f(ha,e)?ha[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=D(e)}),n=0;n<e.length;n++)ma[e[n]]=r}function Q(e,t){X(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function ee(e,t,n){null!=t&&f(ma,e)&&ma[e](t,n._a,n,e)}function te(e){return ne(e)?366:365}function ne(e){return e%4===0&&e%100!==0||e%400===0}function re(){return ne(this.year())}function ae(e,n){return function(r){return null!=r?(ie(this,e,r),t.updateOffset(this,n),this):oe(this,e)}}function oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ie(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ne(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),de(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function se(e){return e=j(e),k(this[e])?this[e]():this}function ue(e,t){if("object"==typeof e){e=H(e);for(var n=I(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=j(e),k(this[e]))return this[e](t);return this}function le(e,t){return(e%t+t)%t}function de(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=le(t,12);return e+=(t-n)/12,1===n?ne(e)?29:28:31-n%7%2}function fe(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ka).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ce(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ka.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pe(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(a=wa.call(this._shortMonthsParse,i),a!==-1?a:null):(a=wa.call(this._longMonthsParse,i),a!==-1?a:null):"MMM"===t?(a=wa.call(this._shortMonthsParse,i),a!==-1?a:(a=wa.call(this._longMonthsParse,i),a!==-1?a:null)):(a=wa.call(this._longMonthsParse,i),a!==-1?a:(a=wa.call(this._shortMonthsParse,i),a!==-1?a:null))}function he(e,t,n){var r,a,o;if(this._monthsParseExact)return pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function me(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=D(t);else if(t=e.localeData().monthsParse(t),!u(t))return e;return n=Math.min(e.date(),de(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function _e(e){return null!=e?(me(this,e),t.updateOffset(this,!0),this):oe(this,"Month")}function ye(){return de(this.year(),this.month())}function ve(e){return this._monthsParseExact?(f(this,"_monthsRegex")||be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Ta),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ge(e){return this._monthsParseExact?(f(this,"_monthsRegex")||be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Sa),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function be(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Z(r[t]),a[t]=Z(a[t]);for(t=0;t<24;t++)o[t]=Z(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Me(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}function De(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ee(e,t,n){var r=7+t-n,a=(7+De(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Le(e,t,n,r,a){var o,i,s=(7+n-r)%7,u=Ee(e,r,a),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,i=te(o)+l):l>te(e)?(o=e+1,i=l-te(e)):(o=e,i=l),{year:o,dayOfYear:i}}function we(e,t,n){var r,a,o=Ee(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?(a=e.year()-1,r=i+Ce(a,t,n)):i>Ce(e.year(),t,n)?(r=i-Ce(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function Ce(e,t,n){var r=Ee(e,t,n),a=Ee(e+1,t,n);return(te(e)-r+a)/7}function ke(e){return we(e,this._week.dow,this._week.doy).week}function Ae(){return this._week.dow}function xe(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Se(e){var t=we(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ye(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Fe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Oe(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Be(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Oe(n,this._week.dow):e?n[e.day()]:n}function Pe(e){return e===!0?Oe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ne(e){return e===!0?Oe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function je(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(a=wa.call(this._weekdaysParse,i),a!==-1?a:null):"ddd"===t?(a=wa.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=wa.call(this._minWeekdaysParse,i),a!==-1?a:null):"dddd"===t?(a=wa.call(this._weekdaysParse,i),a!==-1?a:(a=wa.call(this._shortWeekdaysParse,i),a!==-1?a:(a=wa.call(this._minWeekdaysParse,i),a!==-1?a:null))):"ddd"===t?(a=wa.call(this._shortWeekdaysParse,i),a!==-1?a:(a=wa.call(this._weekdaysParse,i),a!==-1?a:(a=wa.call(this._minWeekdaysParse,i),a!==-1?a:null))):(a=wa.call(this._minWeekdaysParse,i),a!==-1?a:(a=wa.call(this._weekdaysParse,i),a!==-1?a:(a=wa.call(this._shortWeekdaysParse,i),a!==-1?a:null)))}function He(e,t,n){var r,a,o;if(this._weekdaysParseExact)return je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ye(e,this.localeData()),this.add(e-t,"d")):t}function Ie(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 We(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Fe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ke(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Pa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ze(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Na),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ue(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ja),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ve(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),o=this.weekdays(n,""),i.push(r),s.push(a),u.push(o),l.push(r),l.push(a),l.push(o);for(i.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=Z(s[t]),u[t]=Z(u[t]),l[t]=Z(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("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $e(){return this.hours()%12||12}function qe(){return this.hours()||24}function Ge(e,t){K(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}function Ze(e){return"p"===(e+"").toLowerCase().charAt(0)}function Xe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function et(e){for(var t,n,r,a,o=0;o<e.length;){for(a=Qe(e[o]).split("-"),t=a.length,n=Qe(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=tt(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&E(a,n,!0)>=t-1)break;t--}o++}return Ha}function tt(t){var r=null;if(!Ka[t]&&"undefined"!=typeof e&&e&&e.exports)try{r=Ha._abbr;n(504)("./"+t),nt(r)}catch(e){}return Ka[t]}function nt(e,t){var n;return e&&(n=s(t)?ot(e):rt(e,t),n?Ha=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ha._abbr}function rt(e,t){if(null!==t){var n,r=Wa;if(t.abbr=e,null!=Ka[e])C("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."),r=Ka[e]._config;else if(null!=t.parentLocale)if(null!=Ka[t.parentLocale])r=Ka[t.parentLocale]._config;else{if(n=tt(t.parentLocale),null==n)return za[t.parentLocale]||(za[t.parentLocale]=[]),za[t.parentLocale].push({name:e,config:t}),null;r=n._config}return Ka[e]=new T(x(r,t)),za[e]&&za[e].forEach(function(e){rt(e.name,e.config)}),nt(e),Ka[e]}return delete Ka[e],null}function at(e,t){if(null!=t){var n,r,a=Wa;r=tt(e),null!=r&&(a=r._config),t=x(a,t),n=new T(t),n.parentLocale=Ka[e],Ka[e]=n,nt(e)}else null!=Ka[e]&&(null!=Ka[e].parentLocale?Ka[e]=Ka[e].parentLocale:null!=Ka[e]&&delete Ka[e]);return Ka[e]}function ot(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ha;if(!a(e)){if(t=tt(e))return t;e=[e]}return et(e)}function it(){return jr(Ka)}function st(e){var t,n=e._a;return n&&m(e).overflow===-2&&(t=n[ya]<0||n[ya]>11?ya:n[va]<1||n[va]>de(n[_a],n[ya])?va:n[ga]<0||n[ga]>24||24===n[ga]&&(0!==n[ba]||0!==n[Ma]||0!==n[Da])?ga:n[ba]<0||n[ba]>59?ba:n[Ma]<0||n[Ma]>59?Ma:n[Da]<0||n[Da]>999?Da:-1,m(e)._overflowDayOfYear&&(t<_a||t>va)&&(t=va),m(e)._overflowWeeks&&t===-1&&(t=Ea),m(e)._overflowWeekday&&t===-1&&(t=La),m(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function dt(e){var t,n,r,a,o,i=[];if(!e._d){for(r=lt(e),e._w&&null==e._a[va]&&null==e._a[ya]&&ft(e),null!=e._dayOfYear&&(o=ut(e._a[_a],r[_a]),(e._dayOfYear>te(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=De(o,0,e._dayOfYear),e._a[ya]=n.getUTCMonth(),e._a[va]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ga]&&0===e._a[ba]&&0===e._a[Ma]&&0===e._a[Da]&&(e._nextDay=!0,e._a[ga]=0),e._d=(e._useUTC?De:Me).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ga]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function ft(e){var t,n,r,a,o,i,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,i=4,n=ut(t.GG,e._a[_a],we(At(),1,4).year),r=ut(t.W,1),a=ut(t.E,1),(a<1||a>7)&&(u=!0);else{o=e._locale._week.dow,i=e._locale._week.doy;var l=we(At(),o,i);n=ut(t.gg,e._a[_a],l.year),r=ut(t.w,l.week),null!=t.d?(a=t.d,(a<0||a>6)&&(u=!0)):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(u=!0)):a=o}r<1||r>Ce(n,o,i)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(s=Le(n,r,a,o,i),e._a[_a]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){var t,n,r,a,o,i,s=e._i,u=Ua.exec(s)||Va.exec(s);if(u){for(m(e).iso=!0,t=0,n=qa.length;t<n;t++)if(qa[t][1].exec(u[1])){a=qa[t][0],r=qa[t][2]!==!1;break}if(null==a)return void(e._isValid=!1);if(u[3]){for(t=0,n=Ga.length;t<n;t++)if(Ga[t][1].exec(u[3])){o=(u[2]||" ")+Ga[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!$a.exec(u[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),bt(e)}else e._isValid=!1}function pt(e,t,n,r,a,o){var i=[ht(e),xa.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&i.push(parseInt(o,10)),i}function ht(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function mt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _t(e,t,n){if(e){var r=Oa.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function yt(e,t,n){if(e)return Xa[e];if(t)return 0;var r=parseInt(n,10),a=r%100,o=(r-a)/100;return 60*o+a}function vt(e){var t=Za.exec(mt(e._i));if(t){var n=pt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!_t(t[1],n,e))return;e._a=n,e._tzm=yt(t[8],t[9],t[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function gt(e){var n=Ja.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(ct(e),void(e._isValid===!1&&(delete e._isValid,vt(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function bt(e){if(e._f===t.ISO_8601)return void ct(e);if(e._f===t.RFC_2822)return void vt(e);e._a=[],m(e).empty=!0;var n,r,a,o,i,s=""+e._i,u=s.length,l=0;for(a=$(e._f,e._locale).match($r)||[],n=0;n<a.length;n++)o=a[n],r=(s.match(G(o,e))||[])[0],r&&(i=s.substr(0,s.indexOf(r)),i.length>0&&m(e).unusedInput.push(i),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Jr[o]?(r?m(e).empty=!1:m(e).unusedTokens.push(o),ee(o,r,e)):e._strict&&!r&&m(e).unusedTokens.push(o);m(e).charsLeftOver=u-l,s.length>0&&m(e).unusedInput.push(s),e._a[ga]<=12&&m(e).bigHour===!0&&e._a[ga]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[ga]=Mt(e._locale,e._a[ga],e._meridiem),dt(e),st(e)}function Mt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Dt(e){var t,n,r,a,o;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],bt(t),_(t)&&(o+=m(t).charsLeftOver,o+=10*m(t).unusedTokens.length,m(t).score=o,(null==r||o<r)&&(r=o,n=t));c(e,n||t)}function Et(e){if(!e._d){var t=H(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),dt(e)}}function Lt(e){var t=new g(st(wt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||ot(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new g(st(t)):(l(t)?e._d=t:a(n)?Dt(e):n?bt(e):Ct(e),_(e)||(e._d=null),e))}function Ct(e){var n=e._i;s(n)?e._d=new Date(t.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?gt(e):a(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),dt(e)):o(n)?Et(e):u(n)?e._d=new Date(n):t.createFromInputFallback(e)}function kt(e,t,n,r,s){var u={};return n!==!0&&n!==!1||(r=n,n=void 0),(o(e)&&i(e)||a(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,Lt(u)}function At(e,t,n,r){return kt(e,t,n,r,!1)}function xt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Tt(){var e=[].slice.call(arguments,0);return xt("isBefore",e)}function St(){var e=[].slice.call(arguments,0);return xt("isAfter",e)}function Yt(e){for(var t in e)if(wa.call(no,t)===-1||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<no.length;++r)if(e[no[r]]){if(n)return!1;parseFloat(e[no[r]])!==D(e[no[r]])&&(n=!0)}return!0}function Ft(){return this._isValid}function Ot(){return Qt(NaN)}function Bt(e){var t=H(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=Yt(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*s*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=ot(),this._bubble()}function Pt(e){return e instanceof Bt}function Nt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function jt(e,t){K(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+W(~~(e/60),2)+t+W(~~e%60,2)})}function Ht(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],a=(r+"").match(ro)||["-",0,0],o=+(60*a[1])+D(a[2]);return 0===o?0:"+"===a[0]?o:-o}function Rt(e,n){var r,a;return n._isUTC?(r=n.clone(),a=(b(e)||l(e)?e.valueOf():At(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),t.updateOffset(r,!1),r):At(e).local()}function It(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Wt(e,n,r){var a,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=Ht(fa,e),null===e)return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(a=It(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),o!==e&&(!n||this._changeInProgress?an(this,Qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:It(this)}function Kt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function zt(e){return this.utcOffset(0,e)}function Ut(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),"m")),this}function Vt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(da,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function $t(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gt(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=wt(e),e._a){var t=e._isUTC?p(e._a):At(e._a);this._isDSTShifted=this.isValid()&&E(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Jt(){return!!this.isValid()&&!this._isUTC}function Zt(){return!!this.isValid()&&this._isUTC}function Xt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var n,r,a,o=e,i=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(o={},t?o[t]=e:o.milliseconds=e):(i=ao.exec(e))?(n="-"===i[1]?-1:1,o={y:0,d:D(i[va])*n,h:D(i[ga])*n,m:D(i[ba])*n,s:D(i[Ma])*n,ms:D(Nt(1e3*i[Da]))*n}):(i=oo.exec(e))?(n="-"===i[1]?-1:1,o={y:en(i[2],n),M:en(i[3],n),w:en(i[4],n),d:en(i[5],n),h:en(i[6],n),m:en(i[7],n),s:en(i[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=nn(At(o.from),At(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),r=new Bt(o),Pt(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function en(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function tn(e,t){var n={};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 nn(e,t){var n;return e.isValid()&&t.isValid()?(t=Rt(t,e),e.isBefore(t)?n=tn(e,t):(n=tn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rn(e,t){return function(n,r){var a,o;return null===r||isNaN(+r)||(C(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."),o=n,n=r,r=o),n="string"==typeof n?+n:n,a=Qt(n,r),an(this,a,e),this}}function an(e,n,r,a){var o=n._milliseconds,i=Nt(n._days),s=Nt(n._months);e.isValid()&&(a=null==a||a,s&&me(e,oe(e,"Month")+s*r),i&&ie(e,"Date",oe(e,"Date")+i*r),o&&e._d.setTime(e._d.valueOf()+o*r),a&&t.updateOffset(e,i||s))}function on(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 sn(e,n){var r=e||At(),a=Rt(r,this).startOf("day"),o=t.calendarFormat(this,a)||"sameElse",i=n&&(k(n[o])?n[o].call(this,r):n[o]);return this.format(i||this.localeData().calendar(o,this,At(r)))}function un(){return new g(this)}function ln(e,t){var n=b(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&(t=j(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function dn(e,t){var n=b(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&(t=j(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function fn(e,t,n,r){var a=b(e)?e:At(e),o=b(t)?t:At(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))}function cn(e,t){var n,r=b(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&(t=j(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function pn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function hn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function mn(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(r=Rt(e,this),!r.isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=j(t)){case"year":o=_n(this,r)/12;break;case"month":o=_n(this,r);break;case"quarter":o=_n(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:M(o)}function _n(e,t){var n,r,a=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(a,"months");return t-o<0?(n=e.clone().add(a-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(a+1,"months"),r=(t-o)/(n-o)),-(a+r)||0}function yn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vn(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]';return this.format(n+r+a+o)}function bn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=V(this,e);return this.localeData().postformat(n)}function Mn(e,t){return this.isValid()&&(b(e)&&e.isValid()||At(e).isValid())?Qt({ to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Dn(e){return this.from(At(),e)}function En(e,t){return this.isValid()&&(b(e)&&e.isValid()||At(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ln(e){return this.to(At(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=ot(e),null!=t&&(this._locale=t),this)}function Cn(){return this._locale}function kn(e,t){return(e%t+t)%t}function An(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function xn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function Tn(e){var n;if(e=j(e),void 0===e||"millisecond"===e||!this.isValid())return this;var r=this._isUTC?xn:An;switch(e){case"year":n=r(this.year(),0,1);break;case"quarter":n=r(this.year(),this.month()-this.month()%3,1);break;case"month":n=r(this.year(),this.month(),1);break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=r(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=kn(n+(this._isUTC?0:this.utcOffset()*fo),co);break;case"minute":n=this._d.valueOf(),n-=kn(n,fo);break;case"second":n=this._d.valueOf(),n-=kn(n,lo)}return this._d.setTime(n),t.updateOffset(this,!0),this}function Sn(e){var n;if(e=j(e),void 0===e||"millisecond"===e||!this.isValid())return this;var r=this._isUTC?xn:An;switch(e){case"year":n=r(this.year()+1,0,1)-1;break;case"quarter":n=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=r(this.year(),this.month()+1,1)-1;break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=co-kn(n+(this._isUTC?0:this.utcOffset()*fo),co)-1;break;case"minute":n=this._d.valueOf(),n+=fo-kn(n,fo)-1;break;case"second":n=this._d.valueOf(),n+=lo-kn(n,lo)-1}return this._d.setTime(n),t.updateOffset(this,!0),this}function Yn(){return this._d.valueOf()-6e4*(this._offset||0)}function Fn(){return Math.floor(this.valueOf()/1e3)}function On(){return new Date(this.valueOf())}function Bn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Pn(){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 Nn(){return this.isValid()?this.toISOString():null}function jn(){return _(this)}function Hn(){return c({},m(this))}function Rn(){return m(this).overflow}function In(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Wn(e,t){K(0,[e,e.length],0,t)}function Kn(e){return $n.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zn(e){return $n.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Un(){return Ce(this.year(),1,4)}function Vn(){var e=this.localeData()._week;return Ce(this.year(),e.dow,e.doy)}function $n(e,t,n,r,a){var o;return null==e?we(this,r,a).year:(o=Ce(e,r,a),t>o&&(t=o),qn.call(this,e,t,n,r,a))}function qn(e,t,n,r,a){var o=Le(e,t,n,r,a),i=De(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Gn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Jn(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 Zn(e,t){t[Da]=D(1e3*("0."+e))}function Xn(){return this._isUTC?"UTC":""}function Qn(){return this._isUTC?"Coordinated Universal Time":""}function er(e){return At(1e3*e)}function tr(){return At.apply(null,arguments).parseZone()}function nr(e){return e}function rr(e,t,n,r){var a=ot(),o=p().set(r,t);return a[n](o,e)}function ar(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return rr(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=rr(e,r,n,"month");return a}function or(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a=ot(),o=e?a._week.dow:0;if(null!=n)return rr(t,(n+o)%7,r,"day");var i,s=[];for(i=0;i<7;i++)s[i]=rr(t,(i+o)%7,r,"day");return s}function ir(e,t){return ar(e,t,"months")}function sr(e,t){return ar(e,t,"monthsShort")}function ur(e,t,n){return or(e,t,n,"weekdays")}function lr(e,t,n){return or(e,t,n,"weekdaysShort")}function dr(e,t,n){return or(e,t,n,"weekdaysMin")}function fr(){var e=this._data;return this._milliseconds=Mo(this._milliseconds),this._days=Mo(this._days),this._months=Mo(this._months),e.milliseconds=Mo(e.milliseconds),e.seconds=Mo(e.seconds),e.minutes=Mo(e.minutes),e.hours=Mo(e.hours),e.months=Mo(e.months),e.years=Mo(e.years),this}function cr(e,t,n,r){var a=Qt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function pr(e,t){return cr(this,e,t,1)}function hr(e,t){return cr(this,e,t,-1)}function mr(e){return e<0?Math.floor(e):Math.ceil(e)}function _r(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,u=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*mr(vr(s)+i),i=0,s=0),u.milliseconds=o%1e3,e=M(o/1e3),u.seconds=e%60,t=M(e/60),u.minutes=t%60,n=M(t/60),u.hours=n%24,i+=M(n/24),a=M(yr(i)),s+=a,i-=mr(vr(a)),r=M(s/12),s%=12,u.days=i,u.months=s,u.years=r,this}function yr(e){return 4800*e/146097}function vr(e){return 146097*e/4800}function gr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=j(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+yr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function br(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*D(this._months/12):NaN}function Mr(e){return function(){return this.as(e)}}function Dr(){return Qt(this)}function Er(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function Lr(e){return function(){return this.isValid()?this._data[e]:NaN}}function wr(){return M(this.days()/7)}function Cr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function kr(e,t,n){var r=Qt(e).abs(),a=jo(r.as("s")),o=jo(r.as("m")),i=jo(r.as("h")),s=jo(r.as("d")),u=jo(r.as("M")),l=jo(r.as("y")),d=a<=Ho.ss&&["s",a]||a<Ho.s&&["ss",a]||o<=1&&["m"]||o<Ho.m&&["mm",o]||i<=1&&["h"]||i<Ho.h&&["hh",i]||s<=1&&["d"]||s<Ho.d&&["dd",s]||u<=1&&["M"]||u<Ho.M&&["MM",u]||l<=1&&["y"]||["yy",l];return d[2]=t,d[3]=+e>0,d[4]=n,Cr.apply(null,d)}function Ar(e){return void 0===e?jo:"function"==typeof e&&(jo=e,!0)}function xr(e,t){return void 0!==Ho[e]&&(void 0===t?Ho[e]:(Ho[e]=t,"s"===e&&(Ho.ss=t-1),!0))}function Tr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=kr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Sr(e){return(e>0)-(e<0)||+e}function Yr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Ro(this._milliseconds)/1e3,a=Ro(this._days),o=Ro(this._months);e=M(r/60),t=M(e/60),r%=60,e%=60,n=M(o/12),o%=12;var i=n,s=o,u=a,l=t,d=e,f=r?r.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var p=c<0?"-":"",h=Sr(this._months)!==Sr(c)?"-":"",m=Sr(this._days)!==Sr(c)?"-":"",_=Sr(this._milliseconds)!==Sr(c)?"-":"";return p+"P"+(i?h+i+"Y":"")+(s?h+s+"M":"")+(u?m+u+"D":"")+(l||d||f?"T":"")+(l?_+l+"H":"")+(d?_+d+"M":"")+(f?_+f+"S":"")}var Fr,Or;Or=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var Br=t.momentProperties=[],Pr=!1,Nr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var jr;jr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var Hr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Rr={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"},Ir="Invalid date",Wr="%d",Kr=/\d{1,2}/,zr={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ur={},Vr={},$r=/(\[[^\[]*\])|(\\)?([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,qr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gr={},Jr={},Zr=/\d/,Xr=/\d\d/,Qr=/\d{3}/,ea=/\d{4}/,ta=/[+-]?\d{6}/,na=/\d\d?/,ra=/\d\d\d\d?/,aa=/\d\d\d\d\d\d?/,oa=/\d{1,3}/,ia=/\d{1,4}/,sa=/[+-]?\d{1,6}/,ua=/\d+/,la=/[+-]?\d+/,da=/Z|[+-]\d\d:?\d\d/gi,fa=/Z|[+-]\d\d(?::?\d\d)?/gi,ca=/[+-]?\d+(\.\d{1,3})?/,pa=/[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,ha={},ma={},_a=0,ya=1,va=2,ga=3,ba=4,Ma=5,Da=6,Ea=7,La=8;K("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),K(0,["YY",2],0,function(){return this.year()%100}),K(0,["YYYY",4],0,"year"),K(0,["YYYYY",5],0,"year"),K(0,["YYYYYY",6,!0],0,"year"),N("year","y"),R("year",1),q("Y",la),q("YY",na,Xr),q("YYYY",ia,ea),q("YYYYY",sa,ta),q("YYYYYY",sa,ta),X(["YYYYY","YYYYYY"],_a),X("YYYY",function(e,n){n[_a]=2===e.length?t.parseTwoDigitYear(e):D(e)}),X("YY",function(e,n){n[_a]=t.parseTwoDigitYear(e)}),X("Y",function(e,t){t[_a]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return D(e)+(D(e)>68?1900:2e3)};var wa,Ca=ae("FullYear",!0);wa=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},K("M",["MM",2],"Mo",function(){return this.month()+1}),K("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),K("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),R("month",8),q("M",na),q("MM",na,Xr),q("MMM",function(e,t){return t.monthsShortRegex(e)}),q("MMMM",function(e,t){return t.monthsRegex(e)}),X(["M","MM"],function(e,t){t[ya]=D(e)-1}),X(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[ya]=a:m(n).invalidMonth=e});var ka=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Aa="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ta=pa,Sa=pa;K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),R("week",5),R("isoWeek",5),q("w",na),q("ww",na,Xr),q("W",na),q("WW",na,Xr),Q(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=D(e)});var Ya={dow:0,doy:6};K("d",0,"do","day"),K("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),K("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),K("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),q("d",na),q("e",na),q("E",na),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)}),Q(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:m(n).invalidWeekday=e}),Q(["d","e","E"],function(e,t,n,r){t[r]=D(e)});var Fa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Oa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ba="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pa=pa,Na=pa,ja=pa;K("H",["HH",2],0,"hour"),K("h",["hh",2],0,$e),K("k",["kk",2],0,qe),K("hmm",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)}),K("hmmss",0,0,function(){return""+$e.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),K("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),K("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Ge("a",!0),Ge("A",!1),N("hour","h"),R("hour",13),q("a",Je),q("A",Je),q("H",na),q("h",na),q("k",na),q("HH",na,Xr),q("hh",na,Xr),q("kk",na,Xr),q("hmm",ra),q("hmmss",aa),q("Hmm",ra),q("Hmmss",aa),X(["H","HH"],ga),X(["k","kk"],function(e,t,n){var r=D(e);t[ga]=24===r?0:r}),X(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),X(["h","hh"],function(e,t,n){t[ga]=D(e),m(n).bigHour=!0}),X("hmm",function(e,t,n){var r=e.length-2;t[ga]=D(e.substr(0,r)),t[ba]=D(e.substr(r)),m(n).bigHour=!0}),X("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ga]=D(e.substr(0,r)),t[ba]=D(e.substr(r,2)),t[Ma]=D(e.substr(a)),m(n).bigHour=!0}),X("Hmm",function(e,t,n){var r=e.length-2;t[ga]=D(e.substr(0,r)),t[ba]=D(e.substr(r))}),X("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ga]=D(e.substr(0,r)),t[ba]=D(e.substr(r,2)),t[Ma]=D(e.substr(a))});var Ha,Ra=/[ap]\.?m?\.?/i,Ia=ae("Hours",!0),Wa={calendar:Hr,longDateFormat:Rr,invalidDate:Ir,ordinal:Wr,dayOfMonthOrdinalParse:Kr,relativeTime:zr,months:Aa,monthsShort:xa,week:Ya,weekdays:Fa,weekdaysMin:Ba,weekdaysShort:Oa,meridiemParse:Ra},Ka={},za={},Ua=/^\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)?)?$/,Va=/^\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)?)?$/,$a=/Z|[+-]\d\d(?::?\d\d)?/,qa=[["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}/]],Ga=[["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/]],Ja=/^\/?Date\((\-?\d+)/i,Za=/^(?:(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}))$/,Xa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an 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":""))}),t.ISO_86