react-time-range-select
Version:
A Time range selector for React, powered with hooks
1 lines • 281 kB
JavaScript
module.exports=function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(n,s,function(t){return e[t]}.bind(null,s));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=128)}([function(e,t,a){(function(e){e.exports=function(){"use strict";var t,n;function s(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e){return void 0===e}function _(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var a,n=[];for(a=0;a<e.length;++a)n.push(t(e[a],a));return n}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var a in t)m(t,a)&&(e[a]=t[a]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,a,n){return gt(e,t,a,n,!0).utc()}function h(e){return null==e._pf&&(e._pf={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}),e._pf}function M(e){if(null==e._isValid){var t=h(e),a=n.call(t.parsedDateParts,(function(e){return null!=e})),s=!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&&a);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function L(e){var t=c(NaN);return null!=e?l(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),a=t.length>>>0,n=0;n<a;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var Y=s.momentProperties=[];function y(e,t){var a,n,s;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=h(t)),d(t._locale)||(e._locale=t._locale),Y.length>0)for(a=0;a<Y.length;a++)d(s=t[n=Y[a]])||(e[n]=s);return e}var f=!1;function p(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===f&&(f=!0,s.updateOffset(this),f=!1)}function k(e){return e instanceof p||null!=e&&null!=e._isAMomentObject}function D(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,a=0;return 0!==t&&isFinite(t)&&(a=D(t)),a}function g(e,t,a){var n,s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(n=0;n<s;n++)(a&&e[n]!==t[n]||!a&&T(e[n])!==T(t[n]))&&i++;return i+r}function w(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function v(e,t){var a=!0;return l((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),a){for(var n,r=[],i=0;i<arguments.length;i++){if(n="","object"==typeof arguments[i]){for(var d in n+="\n["+i+"] ",arguments[0])n+=d+": "+arguments[0][d]+", ";n=n.slice(0,-2)}else n=arguments[i];r.push(n)}w(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return t.apply(this,arguments)}),t)}var b,S={};function H(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function j(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var a,n=l({},e);for(a in t)m(t,a)&&(i(e[a])&&i(t[a])?(n[a]={},l(n[a],e[a]),l(n[a],t[a])):null!=t[a]?n[a]=t[a]:delete n[a]);for(a in e)m(e,a)&&!m(t,a)&&i(e[a])&&(n[a]=l({},n[a]));return n}function O(e){null!=e&&this.set(e)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,b=Object.keys?Object.keys:function(e){var t,a=[];for(t in e)m(e,t)&&a.push(t);return a};var P={};function W(e,t){var a=e.toLowerCase();P[a]=P[a+"s"]=P[t]=e}function E(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function A(e){var t,a,n={};for(a in e)m(e,a)&&(t=E(a))&&(n[t]=e[a]);return n}var F={};function z(e,t){F[e]=t}function J(e,t,a){var n=""+Math.abs(e),s=t-n.length;return(e>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var I=/(\[[^\[]*\])|(\\)?([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,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C={},R={};function U(e,t,a,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(R[e]=s),t&&(R[t[0]]=function(){return J(s.apply(this,arguments),t[1],t[2])}),a&&(R[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=V(t,e.localeData()),C[t]=C[t]||function(e){var t,a,n,s=e.match(I);for(t=0,a=s.length;t<a;t++)R[s[t]]?s[t]=R[s[t]]:s[t]=(n=s[t]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(t){var n,r="";for(n=0;n<a;n++)r+=j(s[n])?s[n].call(t,e):s[n];return r}}(t),C[t](e)):e.localeData().invalidDate()}function V(e,t){var a=5;function n(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;a>=0&&N.test(e);)e=e.replace(N,n),N.lastIndex=0,a-=1;return e}var B=/\d/,q=/\d\d/,K=/\d{3}/,$=/\d{4}/,Z=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ae=/\d{1,4}/,ne=/[+-]?\d{1,6}/,se=/\d+/,re=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,_e=/[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,oe={};function ue(e,t,a){oe[e]=j(t)?t:function(e,n){return e&&a?a:t}}function me(e,t){return m(oe,e)?oe[e](t._strict,t._locale):new RegExp(le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,a,n,s){return t||a||n||s}))))}function le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ce={};function he(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),_(t)&&(n=function(e,a){a[t]=T(e)}),a=0;a<e.length;a++)ce[e[a]]=n}function Me(e,t){he(e,(function(e,a,n,s){n._w=n._w||{},t(e,n._w,n,s)}))}function Le(e,t,a){null!=t&&m(ce,e)&&ce[e](t,a._a,a,e)}function Ye(e){return ye(e)?366:365}function ye(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),W("year","y"),z("year",1),ue("Y",re),ue("YY",Q,q),ue("YYYY",ae,$),ue("YYYYY",ne,Z),ue("YYYYYY",ne,Z),he(["YYYYY","YYYYYY"],0),he("YYYY",(function(e,t){t[0]=2===e.length?s.parseTwoDigitYear(e):T(e)})),he("YY",(function(e,t){t[0]=s.parseTwoDigitYear(e)})),he("Y",(function(e,t){t[0]=parseInt(e,10)})),s.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var fe,pe=ke("FullYear",!0);function ke(e,t){return function(a){return null!=a?(Te(this,e,a),s.updateOffset(this,t),this):De(this,e)}}function De(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Te(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&ye(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),ge(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function ge(e,t){if(isNaN(e)||isNaN(t))return NaN;var a,n=(t%(a=12)+a)%a;return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}fe=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),W("month","M"),z("month",8),ue("M",Q),ue("MM",Q,q),ue("MMM",(function(e,t){return t.monthsShortRegex(e)})),ue("MMMM",(function(e,t){return t.monthsRegex(e)})),he(["M","MM"],(function(e,t){t[1]=T(e)-1})),he(["MMM","MMMM"],(function(e,t,a,n){var s=a._locale.monthsParse(e,n,a._strict);null!=s?t[1]=s:h(a).invalidMonth=e}));var we=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ve="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),be="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Se(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(s=fe.call(this._shortMonthsParse,i))?s:null:-1!==(s=fe.call(this._longMonthsParse,i))?s:null:"MMM"===t?-1!==(s=fe.call(this._shortMonthsParse,i))?s:-1!==(s=fe.call(this._longMonthsParse,i))?s:null:-1!==(s=fe.call(this._longMonthsParse,i))?s:-1!==(s=fe.call(this._shortMonthsParse,i))?s:null}function He(e,t){var a;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=T(t);else if(!_(t=e.localeData().monthsParse(t)))return e;return a=Math.min(e.date(),ge(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,a),e}function je(e){return null!=e?(He(this,e),s.updateOffset(this,!0),this):De(this,"Month")}var xe=_e,Oe=_e;function Pe(){function e(e,t){return t.length-e.length}var t,a,n=[],s=[],r=[];for(t=0;t<12;t++)a=c([2e3,t]),n.push(this.monthsShort(a,"")),s.push(this.months(a,"")),r.push(this.months(a,"")),r.push(this.monthsShort(a,""));for(n.sort(e),s.sort(e),r.sort(e),t=0;t<12;t++)n[t]=le(n[t]),s[t]=le(s[t]);for(t=0;t<24;t++)r[t]=le(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function We(e,t,a,n,s,r,i){var d;return e<100&&e>=0?(d=new Date(e+400,t,a,n,s,r,i),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,a,n,s,r,i),d}function Ee(e){var t;if(e<100&&e>=0){var a=Array.prototype.slice.call(arguments);a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ae(e,t,a){var n=7+t-a;return-(7+Ee(e,0,n).getUTCDay()-t)%7+n-1}function Fe(e,t,a,n,s){var r,i,d=1+7*(t-1)+(7+a-n)%7+Ae(e,n,s);return d<=0?i=Ye(r=e-1)+d:d>Ye(e)?(r=e+1,i=d-Ye(e)):(r=e,i=d),{year:r,dayOfYear:i}}function ze(e,t,a){var n,s,r=Ae(e.year(),t,a),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?n=i+Je(s=e.year()-1,t,a):i>Je(e.year(),t,a)?(n=i-Je(e.year(),t,a),s=e.year()+1):(s=e.year(),n=i),{week:n,year:s}}function Je(e,t,a){var n=Ae(e,t,a),s=Ae(e+1,t,a);return(Ye(e)-n+s)/7}function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),z("week",5),z("isoWeek",5),ue("w",Q),ue("ww",Q,q),ue("W",Q),ue("WW",Q,q),Me(["w","ww","W","WW"],(function(e,t,a,n){t[n.substr(0,1)]=T(e)})),U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),Me(["dd","ddd","dddd"],(function(e,t,a,n){var s=a._locale.weekdaysParse(e,n,a._strict);null!=s?t.d=s:h(a).invalidWeekday=e})),Me(["d","e","E"],(function(e,t,a,n){t[n]=T(e)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ce="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Re="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ue(e,t,a){var n,s,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(s=fe.call(this._weekdaysParse,i))?s:null:"ddd"===t?-1!==(s=fe.call(this._shortWeekdaysParse,i))?s:null:-1!==(s=fe.call(this._minWeekdaysParse,i))?s:null:"dddd"===t?-1!==(s=fe.call(this._weekdaysParse,i))?s:-1!==(s=fe.call(this._shortWeekdaysParse,i))?s:-1!==(s=fe.call(this._minWeekdaysParse,i))?s:null:"ddd"===t?-1!==(s=fe.call(this._shortWeekdaysParse,i))?s:-1!==(s=fe.call(this._weekdaysParse,i))?s:-1!==(s=fe.call(this._minWeekdaysParse,i))?s:null:-1!==(s=fe.call(this._minWeekdaysParse,i))?s:-1!==(s=fe.call(this._weekdaysParse,i))?s:-1!==(s=fe.call(this._shortWeekdaysParse,i))?s:null}var Ge=_e,Ve=_e,Be=_e;function qe(){function e(e,t){return t.length-e.length}var t,a,n,s,r,i=[],d=[],_=[],o=[];for(t=0;t<7;t++)a=c([2e3,1]).day(t),n=this.weekdaysMin(a,""),s=this.weekdaysShort(a,""),r=this.weekdays(a,""),i.push(n),d.push(s),_.push(r),o.push(n),o.push(s),o.push(r);for(i.sort(e),d.sort(e),_.sort(e),o.sort(e),t=0;t<7;t++)d[t]=le(d[t]),_[t]=le(_[t]),o[t]=le(o[t]);this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function $e(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Ke),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+Ke.apply(this)+J(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Ke.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+J(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)})),$e("a",!0),$e("A",!1),W("hour","h"),z("hour",13),ue("a",Ze),ue("A",Ze),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,q),ue("hh",Q,q),ue("kk",Q,q),ue("hmm",X),ue("hmmss",ee),ue("Hmm",X),ue("Hmmss",ee),he(["H","HH"],3),he(["k","kk"],(function(e,t,a){var n=T(e);t[3]=24===n?0:n})),he(["a","A"],(function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e})),he(["h","hh"],(function(e,t,a){t[3]=T(e),h(a).bigHour=!0})),he("hmm",(function(e,t,a){var n=e.length-2;t[3]=T(e.substr(0,n)),t[4]=T(e.substr(n)),h(a).bigHour=!0})),he("hmmss",(function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=T(e.substr(0,n)),t[4]=T(e.substr(n,2)),t[5]=T(e.substr(s)),h(a).bigHour=!0})),he("Hmm",(function(e,t,a){var n=e.length-2;t[3]=T(e.substr(0,n)),t[4]=T(e.substr(n))})),he("Hmmss",(function(e,t,a){var n=e.length-4,s=e.length-2;t[3]=T(e.substr(0,n)),t[4]=T(e.substr(n,2)),t[5]=T(e.substr(s))}));var Qe,Xe=ke("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ve,monthsShort:be,week:{dow:0,doy:6},weekdays:Ne,weekdaysMin:Re,weekdaysShort:Ce,meridiemParse:/[ap]\.?m?\.?/i},tt={},at={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function st(t){var n=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{n=Qe._abbr,a(135)("./"+t),rt(n)}catch(e){}return tt[t]}function rt(e,t){var a;return e&&((a=d(t)?dt(e):it(e,t))?Qe=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function it(e,t){if(null!==t){var a,n=et;if(t.abbr=e,null!=tt[e])H("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])n=tt[t.parentLocale]._config;else{if(null==(a=st(t.parentLocale)))return at[t.parentLocale]||(at[t.parentLocale]=[]),at[t.parentLocale].push({name:e,config:t}),null;n=a._config}return tt[e]=new O(x(n,t)),at[e]&&at[e].forEach((function(e){it(e.name,e.config)})),rt(e),tt[e]}return delete tt[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!r(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,a,n,s,r=0;r<e.length;){for(t=(s=nt(e[r]).split("-")).length,a=(a=nt(e[r+1]))?a.split("-"):null;t>0;){if(n=st(s.slice(0,t).join("-")))return n;if(a&&a.length>=t&&g(s,a,!0)>=t-1)break;t--}r++}return Qe}(e)}function _t(e){var t,a=e._a;return a&&-2===h(e).overflow&&(t=a[1]<0||a[1]>11?1:a[2]<1||a[2]>ge(a[0],a[1])?2:a[3]<0||a[3]>24||24===a[3]&&(0!==a[4]||0!==a[5]||0!==a[6])?3:a[4]<0||a[4]>59?4:a[5]<0||a[5]>59?5:a[6]<0||a[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}function ot(e,t,a){return null!=e?e:null!=t?t:a}function ut(e){var t,a,n,r,i,d=[];if(!e._d){for(n=function(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,a,n,s,r,i,d,_;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,i=4,a=ot(t.GG,e._a[0],ze(wt(),1,4).year),n=ot(t.W,1),((s=ot(t.E,1))<1||s>7)&&(_=!0);else{r=e._locale._week.dow,i=e._locale._week.doy;var o=ze(wt(),r,i);a=ot(t.gg,e._a[0],o.year),n=ot(t.w,o.week),null!=t.d?((s=t.d)<0||s>6)&&(_=!0):null!=t.e?(s=t.e+r,(t.e<0||t.e>6)&&(_=!0)):s=r}n<1||n>Je(a,r,i)?h(e)._overflowWeeks=!0:null!=_?h(e)._overflowWeekday=!0:(d=Fe(a,n,s,r,i),e._a[0]=d.year,e._dayOfYear=d.dayOfYear)}(e),null!=e._dayOfYear&&(i=ot(e._a[0],n[0]),(e._dayOfYear>Ye(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),a=Ee(i,0,e._dayOfYear),e._a[1]=a.getUTCMonth(),e._a[2]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ee:We).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(h(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\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)?)?$/,ct=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["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}/]],Mt=[["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/]],Lt=/^\/?Date\((\-?\d+)/i;function Yt(e){var t,a,n,s,r,i,d=e._i,_=mt.exec(d)||lt.exec(d);if(_){for(h(e).iso=!0,t=0,a=ht.length;t<a;t++)if(ht[t][1].exec(_[1])){s=ht[t][0],n=!1!==ht[t][2];break}if(null==s)return void(e._isValid=!1);if(_[3]){for(t=0,a=Mt.length;t<a;t++)if(Mt[t][1].exec(_[3])){r=(_[2]||" ")+Mt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(_[4]){if(!ct.exec(_[4]))return void(e._isValid=!1);i="Z"}e._f=s+(r||"")+(i||""),Dt(e)}else e._isValid=!1}var yt=/^(?:(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}))$/;function ft(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var pt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,a,n,s,r,i,d,_=yt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(_){var o=(t=_[4],a=_[3],n=_[2],s=_[5],r=_[6],i=_[7],d=[ft(t),be.indexOf(a),parseInt(n,10),parseInt(s,10),parseInt(r,10)],i&&d.push(parseInt(i,10)),d);if(!function(e,t,a){return!e||Ce.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(a).weekdayMismatch=!0,a._isValid=!1,!1)}(_[1],o,e))return;e._a=o,e._tzm=function(e,t,a){if(e)return pt[e];if(t)return 0;var n=parseInt(a,10),s=n%100;return(n-s)/100*60+s}(_[8],_[9],_[10]),e._d=Ee.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Dt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],h(e).empty=!0;var t,a,n,r,i,d=""+e._i,_=d.length,o=0;for(n=V(e._f,e._locale).match(I)||[],t=0;t<n.length;t++)r=n[t],(a=(d.match(me(r,e))||[])[0])&&((i=d.substr(0,d.indexOf(a))).length>0&&h(e).unusedInput.push(i),d=d.slice(d.indexOf(a)+a.length),o+=a.length),R[r]?(a?h(e).empty=!1:h(e).unusedTokens.push(r),Le(r,a,e)):e._strict&&!a&&h(e).unusedTokens.push(r);h(e).charsLeftOver=_-o,d.length>0&&h(e).unusedInput.push(d),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,a){var n;return null==a?t:null!=e.meridiemHour?e.meridiemHour(t,a):null!=e.isPM?((n=e.isPM(a))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ut(e),_t(e)}else kt(e);else Yt(e)}function Tt(e){var t=e._i,a=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===a&&""===t?L({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new p(_t(t)):(o(t)?e._d=t:r(a)?function(e){var t,a,n,s,r;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)r=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Dt(t),M(t)&&(r+=h(t).charsLeftOver,r+=10*h(t).unusedTokens.length,h(t).score=r,(null==n||r<n)&&(n=r,a=t));l(e,a||t)}(e):a?Dt(e):function(e){var t=e._i;d(t)?e._d=new Date(s.now()):o(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Lt.exec(e._i);null===t?(Yt(e),!1===e._isValid&&(delete e._isValid,kt(e),!1===e._isValid&&(delete e._isValid,s.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=u(t.slice(0),(function(e){return parseInt(e,10)})),ut(e)):i(t)?function(e){if(!e._d){var t=A(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)})),ut(e)}}(e):_(t)?e._d=new Date(t):s.createFromInputFallback(e)}(e),M(e)||(e._d=null),e))}function gt(e,t,a,n,s){var d,_={};return!0!==a&&!1!==a||(n=a,a=void 0),(i(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||r(e)&&0===e.length)&&(e=void 0),_._isAMomentObject=!0,_._useUTC=_._isUTC=s,_._l=a,_._i=e,_._f=t,_._strict=n,(d=new p(_t(Tt(_))))._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function wt(e,t,a,n){return gt(e,t,a,n,!1)}s.createFromInputFallback=v("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":""))})),s.ISO_8601=function(){},s.RFC_2822=function(){};var vt=v("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:L()})),bt=v("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:L()}));function St(e,t){var a,n;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return wt();for(a=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](a)||(a=t[n]);return a}var Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function jt(e){var t=A(e),a=t.year||0,n=t.quarter||0,s=t.month||0,r=t.week||t.isoWeek||0,i=t.day||0,d=t.hour||0,_=t.minute||0,o=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===fe.call(Ht,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var a=!1,n=0;n<Ht.length;++n)if(e[Ht[n]]){if(a)return!1;parseFloat(e[Ht[n]])!==T(e[Ht[n]])&&(a=!0)}return!0}(t),this._milliseconds=+u+1e3*o+6e4*_+1e3*d*60*60,this._days=+i+7*r,this._months=+s+3*n+12*a,this._data={},this._locale=dt(),this._bubble()}function xt(e){return e instanceof jt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){U(e,0,0,(function(){var e=this.utcOffset(),a="+";return e<0&&(e=-e,a="-"),a+J(~~(e/60),2)+t+J(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),ue("Z",de),ue("ZZ",de),he(["Z","ZZ"],(function(e,t,a){a._useUTC=!0,a._tzm=Et(de,e)}));var Wt=/([\+\-]|\d\d)/gi;function Et(e,t){var a=(t||"").match(e);if(null===a)return null;var n=((a[a.length-1]||[])+"").match(Wt)||["-",0,0],s=60*n[1]+T(n[2]);return 0===s?0:"+"===n[0]?s:-s}function At(e,t){var a,n;return t._isUTC?(a=t.clone(),n=(k(e)||o(e)?e.valueOf():wt(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),s.updateOffset(a,!1),a):wt(e).local()}function Ft(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Jt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,It=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nt(e,t){var a,n,s,r,i,d,o=e,u=null;return xt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:_(e)?(o={},t?o[t]=e:o.milliseconds=e):(u=Jt.exec(e))?(a="-"===u[1]?-1:1,o={y:0,d:T(u[2])*a,h:T(u[3])*a,m:T(u[4])*a,s:T(u[5])*a,ms:T(Ot(1e3*u[6]))*a}):(u=It.exec(e))?(a="-"===u[1]?-1:1,o={y:Ct(u[2],a),M:Ct(u[3],a),w:Ct(u[4],a),d:Ct(u[5],a),h:Ct(u[6],a),m:Ct(u[7],a),s:Ct(u[8],a)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=wt(o.from),i=wt(o.to),s=r.isValid()&&i.isValid()?(i=At(i,r),r.isBefore(i)?d=Rt(r,i):((d=Rt(i,r)).milliseconds=-d.milliseconds,d.months=-d.months),d):{milliseconds:0,months:0},(o={}).ms=s.milliseconds,o.M=s.months),n=new jt(o),xt(e)&&m(e,"_locale")&&(n._locale=e._locale),n}function Ct(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function Rt(e,t){var a={};return a.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Ut(e,t){return function(a,n){var s;return null===n||isNaN(+n)||(H(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=a,a=n,n=s),Gt(this,Nt(a="string"==typeof a?+a:a,n),e),this}}function Gt(e,t,a,n){var r=t._milliseconds,i=Ot(t._days),d=Ot(t._months);e.isValid()&&(n=null==n||n,d&&He(e,De(e,"Month")+d*a),i&&Te(e,"Date",De(e,"Date")+i*a),r&&e._d.setTime(e._d.valueOf()+r*a),n&&s.updateOffset(e,i||d))}Nt.fn=jt.prototype,Nt.invalid=function(){return Nt(NaN)};var Vt=Ut(1,"add"),Bt=Ut(-1,"subtract");function qt(e,t){var a=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(a,"months");return-(a+(t-n<0?(t-n)/(n-e.clone().add(a-1,"months")):(t-n)/(e.clone().add(a+1,"months")-n)))||0}function Kt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $t=v("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function Zt(){return this._locale}function Qt(e,t){return(e%t+t)%t}function Xt(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-126227808e5:new Date(e,t,a).valueOf()}function ea(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-126227808e5:Date.UTC(e,t,a)}function ta(e,t){U(0,[e,e.length],0,t)}function aa(e,t,a,n,s){var r;return null==e?ze(this,n,s).year:(t>(r=Je(e,n,s))&&(t=r),na.call(this,e,t,a,n,s))}function na(e,t,a,n,s){var r=Fe(e,t,a,n,s),i=Ee(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ta("gggg","weekYear"),ta("ggggg","weekYear"),ta("GGGG","isoWeekYear"),ta("GGGGG","isoWeekYear"),W("weekYear","gg"),W("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),ue("G",re),ue("g",re),ue("GG",Q,q),ue("gg",Q,q),ue("GGGG",ae,$),ue("gggg",ae,$),ue("GGGGG",ne,Z),ue("ggggg",ne,Z),Me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,a,n){t[n.substr(0,2)]=T(e)})),Me(["gg","GG"],(function(e,t,a,n){t[n]=s.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),W("quarter","Q"),z("quarter",7),ue("Q",B),he("Q",(function(e,t){t[1]=3*(T(e)-1)})),U("D",["DD",2],"Do","date"),W("date","D"),z("date",9),ue("D",Q),ue("DD",Q,q),ue("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),he(["D","DD"],2),he("Do",(function(e,t){t[2]=T(e.match(Q)[0])}));var sa=ke("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),W("dayOfYear","DDD"),z("dayOfYear",4),ue("DDD",te),ue("DDDD",K),he(["DDD","DDDD"],(function(e,t,a){a._dayOfYear=T(e)})),U("m",["mm",2],0,"minute"),W("minute","m"),z("minute",14),ue("m",Q),ue("mm",Q,q),he(["m","mm"],4);var ra=ke("Minutes",!1);U("s",["ss",2],0,"second"),W("second","s"),z("second",15),ue("s",Q),ue("ss",Q,q),he(["s","ss"],5);var ia,da=ke("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),W("millisecond","ms"),z("millisecond",16),ue("S",te,B),ue("SS",te,q),ue("SSS",te,K),ia="SSSS";ia.length<=9;ia+="S")ue(ia,se);function _a(e,t){t[6]=T(1e3*("0."+e))}for(ia="S";ia.length<=9;ia+="S")he(ia,_a);var oa=ke("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ua=p.prototype;function ma(e){return e}ua.add=Vt,ua.calendar=function(e,t){var a=e||wt(),n=At(a,this).startOf("day"),r=s.calendarFormat(this,n)||"sameElse",i=t&&(j(t[r])?t[r].call(this,a):t[r]);return this.format(i||this.localeData().calendar(r,this,wt(a)))},ua.clone=function(){return new p(this)},ua.diff=function(e,t,a){var n,s,r;if(!this.isValid())return NaN;if(!(n=At(e,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=E(t)){case"year":r=qt(this,n)/12;break;case"month":r=qt(this,n);break;case"quarter":r=qt(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-s)/864e5;break;case"week":r=(this-n-s)/6048e5;break;default:r=this-n}return a?r:D(r)},ua.endOf=function(e){var t;if(void 0===(e=E(e))||"millisecond"===e||!this.isValid())return this;var a=this._isUTC?ea:Xt;switch(e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Qt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Qt(t,1e3)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},ua.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},ua.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||wt(e).isValid())?Nt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ua.fromNow=function(e){return this.from(wt(),e)},ua.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||wt(e).isValid())?Nt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ua.toNow=function(e){return this.to(wt(),e)},ua.get=function(e){return j(this[e=E(e)])?this[e]():this},ua.invalidAt=function(){return h(this).overflow},ua.isAfter=function(e,t){var a=k(e)?e:wt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=E(t)||"millisecond")?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf())},ua.isBefore=function(e,t){var a=k(e)?e:wt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=E(t)||"millisecond")?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf())},ua.isBetween=function(e,t,a,n){var s=k(e)?e:wt(e),r=k(t)?t:wt(t);return!!(this.isValid()&&s.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(s,a):!this.isBefore(s,a))&&(")"===n[1]?this.isBefore(r,a):!this.isAfter(r,a))},ua.isSame=function(e,t){var a,n=k(e)?e:wt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=E(t)||"millisecond")?this.valueOf()===n.valueOf():(a=n.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf()))},ua.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ua.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ua.isValid=function(){return M(this)},ua.lang=$t,ua.locale=Kt,ua.localeData=Zt,ua.max=bt,ua.min=vt,ua.parsingFlags=function(){return l({},h(this))},ua.set=function(e,t){if("object"==typeof e)for(var a=function(e){var t=[];for(var a in e)t.push({unit:a,priority:F[a]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=A(e)),n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit]);else if(j(this[e=E(e)]))return this[e](t);return this},ua.startOf=function(e){var t;if(void 0===(e=E(e))||"millisecond"===e||!this.isValid())return this;var a=this._isUTC?ea:Xt;switch(e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Qt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Qt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Qt(t,1e3)}return this._d.setTime(t),s.updateOffset(this,!0),this},ua.subtract=Bt,ua.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ua.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ua.toDate=function(){return new Date(this.valueOf())},ua.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?G(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(a,"Z")):G(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ua.inspect=function(){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 a="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=t+'[")]';return this.format(a+n+"-MM-DD[T]HH:mm:ss.SSS"+s)},ua.toJSON=function(){return this.isValid()?this.toISOString():null},ua.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ua.unix=function(){return Math.floor(this.valueOf()/1e3)},ua.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ua.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ua.year=pe,ua.isLeapYear=function(){return ye(this.year())},ua.weekYear=function(e){return aa.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ua.isoWeekYear=function(e){return aa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ua.quarter=ua.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ua.month=je,ua.daysInMonth=function(){return ge(this.year(),this.month())},ua.week=ua.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ua.isoWeek=ua.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ua.weeksInYear=function(){var e=this.localeData()._week;return Je(this.year(),e.dow,e.doy)},ua.isoWeeksInYear=function(){return Je(this.year(),1,4)},ua.date=sa,ua.day=ua.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ua.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ua.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ua.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ua.hour=ua.hours=Xe,ua.minute=ua.minutes=ra,ua.second=ua.seconds=da,ua.millisecond=ua.milliseconds=oa,ua.utcOffset=function(e,t,a){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Et(de,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(n=Ft(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?Gt(this,Nt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ft(this)},ua.utc=function(e){return this.utcOffset(0,e)},ua.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},ua.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Et(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ua.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?wt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ua.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ua.isLocal=function(){return!!this.isValid()&&!this._isUTC},ua.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ua.isUtc=zt,ua.isUTC=zt,ua.zoneAbbr=function(){return this._isUTC?"UTC":""},ua.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ua.dates=v("dates accessor is deprecated. Use date instead.",sa),ua.months=v("months accessor is deprecated. Use month instead",je),ua.years=v("years accessor is deprecated. Use year instead",pe),ua.zone=v("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),ua.isDSTShifted=v("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Tt(e))._a){var t=e._isUTC?c(e._a):wt(e._a);this._isDSTShifted=this.isValid()&&g(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var la=O.prototype;function ca(e,t,a,n){var s=dt(),r=c().set(n,t);return s[a](r,e)}function ha(e,t,a){if(_(e)&&(t=e,e=void 0),e=e||"",null!=t)return ca(e,t,a,"month");var n,s=[];for(n=0;n<12;n++)s[n]=ca(e,n,a,"month");return s}function Ma(e,t,a,n){"boolean"==typeof e?(_(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,_(t)&&(a=t,t=void 0),t=t||"");var s,r=dt(),i=e?r._week.dow:0;if(null!=a)return ca(t,(a+i)%7,n,"day");var d=[];for(s=0;s<7;s++)d[s]=ca(t,(s+i)%7,n,"day");return d}la.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return j(n)?n.call(t,a):n},la.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},la.invalidDate=function(){return this._invalidDate},la.ordinal=function(e){return this._ordinal.replace("%d",e)},la.preparse=ma,la.postformat=ma,la.relativeTime=function(e,t,a,n){var s=this._relativeTime[a];return j(s)?s(e,t,a,n):s.replace(/%d/i,e)},la.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return j(a)?a(t):a.replace(/%s/i,t)},la.set=function(e){var t,a;for(a in e)j(t=e[a])?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},la.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},la.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},la.monthsParse=function(e,t,a){var n,s,r;if(this._monthsParseExact)return Se.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=c([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}},la.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},la.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},la.week=function(e){return ze(e,this._week.dow,this._week.doy).week},la.firstDayOfYear=function(){return this._week.doy},la.firstDayOfWeek=function(){return this._week.dow},la.weekdays=function(e,t){var a=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ie(a,this._week.dow):e?a[e.day()]:a},la.weekdaysMin=function(e){return!0===e?Ie(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},la.weekdaysShort=function(e){return!0===e?Ie(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},la.weekdaysParse=function(e,t,a){var n,s,r;if(this._weekdaysParseExact)return Ue.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=c([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}},la.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},la.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},la.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},la.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},la.meridiem=function(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"},rt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===T(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=v("moment.lang is deprecated. Use moment.locale instead.",rt),s.langData=v("moment.langData is deprecated. Use moment.localeData instead.",dt);var La=Math.abs;function Ya(e,t,a,n){var s=Nt(t,a);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function ya(e){return e<0?Math.floor(e):Math.ceil(e)}function fa(e){return 4800*e/146097}function pa(e){return 146097*e/4800}function ka(e){return function(){return this.as(e)}}var Da=ka("ms"),Ta=ka("s"),ga=ka("m"),wa=ka("h"),va=ka("d"),ba=ka("w"),Sa=ka("M"),Ha=ka("Q"),ja=ka("y");function xa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Oa=xa("milliseconds"),Pa=xa("seconds"),Wa=xa("minutes"),Ea=xa("hours"),Aa=xa("days"),Fa=xa("months"),za=xa("years"),Ja=Math.round,Ia={ss:44,s:45,m:45,h:22,d:26,M:11};function Na(e,t,a,n,s){return s.relativeTime(t||1,!!a,e,n)}var Ca=Math.abs;function Ra(e){return(e>0)-(e<0)||+e}function Ua(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a=Ca(this._milliseconds)/1e3,n=Ca(this._days),s=Ca(this._months);e=D(a/60),t=D(e/60),a%=60,e%=60;var r=D(s/12),i=s%=12,d=n,_=t,o=e,u=a?a.toFixed(3).replace(/\.?0+$/,""):"",m=this.asSeconds();if(!m)return"P0D";var l=m<0?"-":"",c=Ra(this._months)!==Ra(m)?"-":"",h=Ra(this._days)!==Ra(m)?"-":"",M=Ra(this._milliseconds)!==Ra(m)?"-":"";return l+"P"+(r?c+r+"Y":"")+(i?c+i+"M":"")+(d?h+d+"D":"")+(_||o||u?"T":"")+(_?M+_+"H":"")+(o?M+o+"M":"")+(u?M+u+"S":"")}var Ga=jt.prototype;return Ga.isValid=function(){return this._isValid},Ga.abs=function(){var e=this._data;return this._milliseconds=La(this._milliseconds),this._days=La(this._days),this._months=La(this._months),e.milliseconds=La(e.milliseconds),e.seconds=La(e.seconds),e.minutes=La(e.minutes),e.hours=La(e.hours),e.mont