UNPKG

@mehdiraized/noa_jalali_datepicker

Version:

A modern, Persian (Jalali) date picker for React applications. This date picker supports both light and dark themes, providing a sleek and user-friendly interface for selecting dates.

1 lines 85.9 kB
import e,{useState as t,useRef as n,useEffect as r}from"react";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function s(e,t){return e(t={exports:{}},t.exports),t.exports}var i=s((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function s(e){t=e}function i(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 u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,n,r){return qn(e,t,n,r,!0).utc()}function y(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=y()),e._pf}function Y(e){var t=null,r=!1,a=e._d&&!isNaN(e._d.getTime());return a&&(t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?a:(e._isValid=a,e._isValid)}function p(e){var t=_(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var M=r.momentProperties=[],v=!1;function D(e,t){var n,r,a,s=M.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)c(a=t[r=M[n]])||(e[r]=a);return e}function w(e){D(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function j(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,s,i,o=[],l=arguments.length;for(s=0;s<l;s++){if(a="","object"==typeof arguments[s]){for(i in a+="\n["+s+"] ",arguments[0])u(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[s];o.push(a)}j(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var b,O={};function x(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),O[e]||(j(t),O[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e){var t,n;for(n in e)u(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var n,r=m({},e);for(n in t)u(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&o(e[n])&&(r[n]=m({},r[n]));return r}function W(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,b=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r}function F(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},E={};function G(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(E[e]=a),t&&(E[t[0]]=function(){return F(a.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function A(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function I(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)E[r[t]]?r[t]=E[r[t]]:r[t]=A(r[t]);return function(t){var a,s="";for(a=0;a<n;a++)s+=T(r[a])?r[a].call(t,e):r[a];return s}}function V(e,t){return e.isValid()?(t=Z(t,e.localeData()),U[t]=U[t]||I(t),U[t](e)):e.localeData().invalidDate()}function Z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(H.lastIndex=0;n>=0&&H.test(e);)e=e.replace(H,r),H.lastIndex=0,n-=1;return e}var z={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"};function J(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var B="Invalid date";function q(){return this._invalidDate}var $="%d",Q=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var a=this._relativeTime[n];return T(a)?a(e,t,n,r):a.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)u(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var se={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ie(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:se[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var oe,ue=/\d/,le=/\d\d/,ce=/\d{3}/,de=/\d{4}/,he=/[+-]?\d{6}/,fe=/\d\d?/,me=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ge=/\d{1,4}/,Ye=/[+-]?\d{1,6}/,pe=/\d+/,Me=/[+-]?\d+/,ve=/Z|[+-]\d\d:?\d\d/gi,De=/Z|[+-]\d\d(?::?\d\d)?/gi,we=/[+-]?\d+(\.\d{1,3})?/,ke=/[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,je=/^[1-9]\d?/,Se=/^([1-9]\d|\d)/;function be(e,t,n){oe[e]=T(t)?t:function(e,r){return e&&n?n:t}}function Oe(e,t){return u(oe,e)?oe[e](t._strict,t._locale):new RegExp(xe(e))}function xe(e){return Te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function Te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ne(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ne(t)),n}oe={};var We={};function Le(e,t){var n,r,a=t;for("string"==typeof e&&(e=[e]),d(t)&&(a=function(e,n){n[t]=Ce(e)}),r=e.length,n=0;n<r;n++)We[e[n]]=a}function Pe(e,t){Le(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function Fe(e,t,n){null!=t&&u(We,e)&&We[e](t,n._a,n,e)}function Re(e){return e%4==0&&e%100!=0||e%400==0}var He=0,Ue=1,Ee=2,Ge=3,Ae=4,Ie=5,Ve=6,Ze=7,ze=8;function Je(e){return Re(e)?366:365}G("Y",0,0,(function(){var e=this.year();return e<=9999?F(e,4):"+"+e})),G(0,["YY",2],0,(function(){return this.year()%100})),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),be("Y",Me),be("YY",fe,le),be("YYYY",ge,de),be("YYYYY",Ye,he),be("YYYYYY",Ye,he),Le(["YYYYY","YYYYYY"],He),Le("YYYY",(function(e,t){t[He]=2===e.length?r.parseTwoDigitYear(e):Ce(e)})),Le("YY",(function(e,t){t[He]=r.parseTwoDigitYear(e)})),Le("Y",(function(e,t){t[He]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Ce(e)+(Ce(e)>68?1900:2e3)};var Be,qe=Qe("FullYear",!0);function $e(){return Re(this.year())}function Qe(e,t){return function(n){return null!=n?(Ke(this,e,n),r.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ke(e,t,n){var r,a,s,i,o;if(e.isValid()&&!isNaN(n)){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}s=n,i=e.month(),o=29!==(o=e.date())||1!==i||Re(s)?o:28,a?r.setUTCFullYear(s,i,o):r.setFullYear(s,i,o)}}function et(e){return T(this[e=re(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=ie(e=ae(e)),a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(T(this[e=re(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?Re(e)?29:28:31-n%7%2}Be=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},G("M",["MM",2],"Mo",(function(){return this.month()+1})),G("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),G("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),be("M",fe,je),be("MM",fe,le),be("MMM",(function(e,t){return t.monthsShortRegex(e)})),be("MMMM",(function(e,t){return t.monthsRegex(e)})),Le(["M","MM"],(function(e,t){t[Ue]=Ce(e)-1})),Le(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[Ue]=a:g(n).invalidMonth=e}));var at="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),st="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=ke,ut=ke;function lt(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ct(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,n){var r,a,s,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=_([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Be.call(this._shortMonthsParse,i))?a:null:-1!==(a=Be.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=Be.call(this._shortMonthsParse,i))||-1!==(a=Be.call(this._longMonthsParse,i))?a:null:-1!==(a=Be.call(this._longMonthsParse,i))||-1!==(a=Be.call(this._shortMonthsParse,i))?a:null}function ht(e,t,n){var r,a,s;if(this._monthsParseExact)return dt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=_([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]||(s="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(s.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 ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Ce(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,rt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function mt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Xe(this,"Month")}function _t(){return rt(this.year(),this.month())}function yt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ut),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Yt(){function e(e,t){return t.length-e.length}var t,n,r,a,s=[],i=[],o=[];for(t=0;t<12;t++)n=_([2e3,t]),r=Te(this.monthsShort(n,"")),a=Te(this.months(n,"")),s.push(r),i.push(a),o.push(a),o.push(r);s.sort(e),i.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function pt(e,t,n,r,a,s,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,a,s,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,a,s,i),o}function Mt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function vt(e,t,n){var r=7+t-n;return-(7+Mt(e,0,r).getUTCDay()-t)%7+r-1}function Dt(e,t,n,r,a){var s,i,o=1+7*(t-1)+(7+n-r)%7+vt(e,r,a);return o<=0?i=Je(s=e-1)+o:o>Je(e)?(s=e+1,i=o-Je(e)):(s=e,i=o),{year:s,dayOfYear:i}}function wt(e,t,n){var r,a,s=vt(e.year(),t,n),i=Math.floor((e.dayOfYear()-s-1)/7)+1;return i<1?r=i+kt(a=e.year()-1,t,n):i>kt(e.year(),t,n)?(r=i-kt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function kt(e,t,n){var r=vt(e,t,n),a=vt(e+1,t,n);return(Je(e)-r+a)/7}function jt(e){return wt(e,this._week.dow,this._week.doy).week}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),be("w",fe,je),be("ww",fe,le),be("W",fe,je),be("WW",fe,le),Pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Ce(e)}));var St={dow:0,doy:6};function bt(){return this._week.dow}function Ot(){return this._week.doy}function xt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Tt(e){var t=wt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Nt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wt(e,t){return e.slice(t,7).concat(e.slice(0,t))}G("d",0,"do","day"),G("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),G("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),G("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),be("d",fe),be("e",fe),be("E",fe),be("dd",(function(e,t){return t.weekdaysMinRegex(e)})),be("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),be("dddd",(function(e,t){return t.weekdaysRegex(e)})),Pe(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:g(n).invalidWeekday=e})),Pe(["d","e","E"],(function(e,t,n,r){t[r]=Ce(e)}));var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=ke,Ht=ke,Ut=ke;function Et(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Wt(n,this._week.dow):e?n[e.day()]:n}function Gt(e){return!0===e?Wt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function At(e){return!0===e?Wt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function It(e,t,n){var r,a,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Be.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Be.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Be.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=Be.call(this._weekdaysParse,i))||-1!==(a=Be.call(this._shortWeekdaysParse,i))||-1!==(a=Be.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Be.call(this._shortWeekdaysParse,i))||-1!==(a=Be.call(this._weekdaysParse,i))||-1!==(a=Be.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Be.call(this._minWeekdaysParse,i))||-1!==(a=Be.call(this._weekdaysParse,i))||-1!==(a=Be.call(this._shortWeekdaysParse,i))?a:null}function Vt(e,t,n){var r,a,s;if(this._weekdaysParseExact)return It.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=_([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]||(s="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(s.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 Zt(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Nt(e,this.localeData()),this.add(e-t,"d")):t}function zt(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 Jt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Bt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ht),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $t(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ut),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,a,s,i=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=Te(this.weekdaysMin(n,"")),a=Te(this.weekdaysShort(n,"")),s=Te(this.weekdays(n,"")),i.push(r),o.push(a),u.push(s),l.push(r),l.push(a),l.push(s);i.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Kt(){return this.hours()||24}function en(e,t){G(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Xt),G("k",["kk",2],0,Kt),G("hmm",0,0,(function(){return""+Xt.apply(this)+F(this.minutes(),2)})),G("hmmss",0,0,(function(){return""+Xt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),G("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),G("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),en("a",!0),en("A",!1),be("a",tn),be("A",tn),be("H",fe,Se),be("h",fe,je),be("k",fe,je),be("HH",fe,le),be("hh",fe,le),be("kk",fe,le),be("hmm",me),be("hmmss",_e),be("Hmm",me),be("Hmmss",_e),Le(["H","HH"],Ge),Le(["k","kk"],(function(e,t,n){var r=Ce(e);t[Ge]=24===r?0:r})),Le(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Le(["h","hh"],(function(e,t,n){t[Ge]=Ce(e),g(n).bigHour=!0})),Le("hmm",(function(e,t,n){var r=e.length-2;t[Ge]=Ce(e.substr(0,r)),t[Ae]=Ce(e.substr(r)),g(n).bigHour=!0})),Le("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ge]=Ce(e.substr(0,r)),t[Ae]=Ce(e.substr(r,2)),t[Ie]=Ce(e.substr(a)),g(n).bigHour=!0})),Le("Hmm",(function(e,t,n){var r=e.length-2;t[Ge]=Ce(e.substr(0,r)),t[Ae]=Ce(e.substr(r))})),Le("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ge]=Ce(e.substr(0,r)),t[Ae]=Ce(e.substr(r,2)),t[Ie]=Ce(e.substr(a))}));var rn=/[ap]\.?m?\.?/i,an=Qe("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,un={calendar:L,longDateFormat:z,invalidDate:B,ordinal:$,dayOfMonthOrdinalParse:Q,relativeTime:K,months:at,monthsShort:st,week:St,weekdays:Lt,weekdaysMin:Ft,weekdaysShort:Pt,meridiemParse:rn},ln={},cn={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,a,s=0;s<e.length;){for(t=(a=hn(e[s]).split("-")).length,n=(n=hn(e[s+1]))?n.split("-"):null;t>0;){if(r=_n(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(a,n)>=t-1)break;t--}s++}return on}function mn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function _n(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&mn(t))try{n=on._abbr,a(),yn(n)}catch(e){ln[t]=null}return ln[t]}function yn(e,t){var n;return e&&((n=c(t)?pn(e):gn(e,t))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function gn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])x("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=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=_n(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new W(C(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),yn(e),ln[e]}return delete ln[e],null}function Yn(e,t){if(null!=t){var n,r,a=un;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(C(ln[e]._config,t)):(null!=(r=_n(e))&&(a=r._config),t=C(a,t),null==r&&(t.abbr=e),(n=new W(t)).parentLocale=ln[e],ln[e]=n),yn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===yn()&&yn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function pn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!i(e)){if(t=_n(e))return t;e=[e]}return fn(e)}function Mn(){return b(ln)}function vn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ue]<0||n[Ue]>11?Ue:n[Ee]<1||n[Ee]>rt(n[He],n[Ue])?Ee:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ae]||0!==n[Ie]||0!==n[Ve])?Ge:n[Ae]<0||n[Ae]>59?Ae:n[Ie]<0||n[Ie]>59?Ie:n[Ve]<0||n[Ve]>999?Ve:-1,g(e)._overflowDayOfYear&&(t<He||t>Ee)&&(t=Ee),g(e)._overflowWeeks&&-1===t&&(t=Ze),g(e)._overflowWeekday&&-1===t&&(t=ze),g(e).overflow=t),e}var Dn=/^\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)?)?$/,wn=/^\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)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,jn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["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/]],bn=/^\/?Date\((-?\d+)/i,On=/^(?:(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}))$/,xn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e){var t,n,r,a,s,i,o=e._i,u=Dn.exec(o)||wn.exec(o),l=jn.length,c=Sn.length;if(u){for(g(e).iso=!0,t=0,n=l;t<n;t++)if(jn[t][1].exec(u[1])){a=jn[t][0],r=!1!==jn[t][2];break}if(null==a)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(Sn[t][1].exec(u[3])){s=(u[2]||" ")+Sn[t][0];break}if(null==s)return void(e._isValid=!1)}if(!r&&null!=s)return void(e._isValid=!1);if(u[4]){if(!kn.exec(u[4]))return void(e._isValid=!1);i="Z"}e._f=a+(s||"")+(i||""),An(e)}else e._isValid=!1}function Nn(e,t,n,r,a,s){var i=[Cn(e),st.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return s&&i.push(parseInt(s,10)),i}function Cn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Wn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ln(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return xn[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function Fn(e){var t,n=On.exec(Wn(e._i));if(n){if(t=Nn(n[4],n[3],n[2],n[5],n[6],n[7]),!Ln(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=Mt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=bn.exec(e._i);null===t?(Tn(e),!1===e._isValid&&(delete e._isValid,Fn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Hn(e,t,n){return null!=e?e:null!=t?t:n}function Un(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function En(e){var t,n,r,a,s,i=[];if(!e._d){for(r=Un(e),e._w&&null==e._a[Ee]&&null==e._a[Ue]&&Gn(e),null!=e._dayOfYear&&(s=Hn(e._a[He],r[He]),(e._dayOfYear>Je(s)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Mt(s,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[Ee]=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[Ge]&&0===e._a[Ae]&&0===e._a[Ie]&&0===e._a[Ve]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Mt:pt).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[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(g(e).weekdayMismatch=!0)}}function Gn(e){var t,n,r,a,s,i,o,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,i=4,n=Hn(t.GG,e._a[He],wt($n(),1,4).year),r=Hn(t.W,1),((a=Hn(t.E,1))<1||a>7)&&(u=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,l=wt($n(),s,i),n=Hn(t.gg,e._a[He],l.year),r=Hn(t.w,l.week),null!=t.d?((a=t.d)<0||a>6)&&(u=!0):null!=t.e?(a=t.e+s,(t.e<0||t.e>6)&&(u=!0)):a=s),r<1||r>kt(n,s,i)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Dt(n,r,a,s,i),e._a[He]=o.year,e._dayOfYear=o.dayOfYear)}function An(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,a,s,i,o,u,l=""+e._i,c=l.length,d=0;for(u=(a=Z(e._f,e._locale).match(R)||[]).length,t=0;t<u;t++)s=a[t],(n=(l.match(Oe(s,e))||[])[0])&&((i=l.substr(0,l.indexOf(n))).length>0&&g(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),d+=n.length),E[s]?(n?g(e).empty=!1:g(e).unusedTokens.push(s),Fe(s,n,e)):e._strict&&!n&&g(e).unusedTokens.push(s);g(e).charsLeftOver=c-d,l.length>0&&g(e).unusedInput.push(l),e._a[Ge]<=12&&!0===g(e).bigHour&&e._a[Ge]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Ge]=In(e._locale,e._a[Ge],e._meridiem),null!==(o=g(e).era)&&(e._a[He]=e._locale.erasConvertYear(o,e._a[He])),En(e),vn(e)}else Fn(e);else Tn(e)}function In(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Vn(e){var t,n,r,a,s,i,o=!1,u=e._f.length;if(0===u)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<u;a++)s=0,i=!1,t=D({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],An(t),Y(t)&&(i=!0),s+=g(t).charsLeftOver,s+=10*g(t).unusedTokens.length,g(t).score=s,o?s<r&&(r=s,n=t):(null==r||s<r||i)&&(r=s,n=t,i&&(o=!0));m(e,n||t)}function Zn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),En(e)}}function zn(e){var t=new w(vn(Jn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Jn(e){var t=e._i,n=e._f;return e._locale=e._locale||pn(e._l),null===t||void 0===n&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(vn(t)):(h(t)?e._d=t:i(n)?Vn(e):n?An(e):Bn(e),Y(e)||(e._d=null),e))}function Bn(e){var t=e._i;c(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Rn(e):i(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),En(e)):o(t)?Zn(e):d(t)?e._d=new Date(t):r.createFromInputFallback(e)}function qn(e,t,n,r,a){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=e,s._f=t,s._strict=r,zn(s)}function $n(e,t,n,r){return qn(e,t,n,r,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=$n.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()})),Xn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=$n.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}));function Kn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return $n();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Kn("isBefore",[].slice.call(arguments,0))}function tr(){return Kn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e){var t,n,r=!1,a=rr.length;for(t in e)if(u(e,t)&&(-1===Be.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==Ce(e[rr[n]])&&(r=!0)}return!0}function sr(){return this._isValid}function ir(){return xr(NaN)}function or(e){var t=ae(e),n=t.year||0,r=t.quarter||0,a=t.month||0,s=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*o*60*60,this._days=+i+7*s,this._months=+a+3*r+12*n,this._data={},this._locale=pn(),this._bubble()}function ur(e){return e instanceof or}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,a=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&Ce(e[r])!==Ce(t[r]))&&i++;return i+s}function dr(e,t){G(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)}))}dr("Z",":"),dr("ZZ",""),be("Z",De),be("ZZ",De),Le(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(De,e)}));var hr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(hr)||["-",0,0])[1]+Ce(n[2]))?0:"+"===n[0]?r:-r}function mr(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(k(e)||h(e)?e.valueOf():$n(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):$n(e).local()}function _r(e){return-Math.round(e._d.getTimezoneOffset())}function yr(e,t,n){var a,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(De,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=_r(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),s!==e&&(!t||this._changeInProgress?Lr(this,xr(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:_r(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Yr(e){return this.utcOffset(0,e)}function pr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(_r(this),"m")),this}function Mr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(ve,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function vr(e){return!!this.isValid()&&(e=e?$n(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return D(t,this),(t=Jn(t))._a?(e=t._isUTC?_(t._a):$n(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function jr(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var br=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xr(e,t){var n,r,a,s=e,i=null;return ur(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(i=br.exec(e))?(n="-"===i[1]?-1:1,s={y:0,d:Ce(i[Ee])*n,h:Ce(i[Ge])*n,m:Ce(i[Ae])*n,s:Ce(i[Ie])*n,ms:Ce(lr(1e3*i[Ve]))*n}):(i=Or.exec(e))?(n="-"===i[1]?-1:1,s={y:Tr(i[2],n),M:Tr(i[3],n),w:Tr(i[4],n),d:Tr(i[5],n),h:Tr(i[6],n),m:Tr(i[7],n),s:Tr(i[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(a=Cr($n(s.from),$n(s.to)),(s={}).ms=a.milliseconds,s.M=a.months),r=new or(s),ur(e)&&u(e,"_locale")&&(r._locale=e._locale),ur(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Tr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Nr(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 Cr(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Nr(e,t):((n=Nr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wr(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(x(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."),a=n,n=r,r=a),Lr(this,xr(n,r),e),this}}function Lr(e,t,n,a){var s=t._milliseconds,i=lr(t._days),o=lr(t._months);e.isValid()&&(a=null==a||a,o&&ft(e,Xe(e,"Month")+o*n),i&&Ke(e,"Date",Xe(e,"Date")+i*n),s&&e._d.setTime(e._d.valueOf()+s*n),a&&r.updateOffset(e,i||o))}xr.fn=or.prototype,xr.invalid=ir;var Pr=Wr(1,"add"),Fr=Wr(-1,"subtract");function Rr(e){return"string"==typeof e||e instanceof String}function Hr(e){return k(e)||h(e)||Rr(e)||d(e)||Er(e)||Ur(e)||null==e}function Ur(e){var t,n,r=o(e)&&!l(e),a=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i=s.length;for(t=0;t<i;t+=1)n=s[t],a=a||u(e,n);return r&&a}function Er(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Rr(e)})).length),t&&n}function Gr(e){var t,n,r=o(e)&&!l(e),a=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)n=s[t],a=a||u(e,n);return r&&a}function Ar(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 Ir(e,t){1===arguments.length&&(arguments[0]?Hr(arguments[0])?(e=arguments[0],t=void 0):Gr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||$n(),a=mr(n,this).startOf("day"),s=r.calendarFormat(this,a)||"sameElse",i=t&&(T(t[s])?t[s].call(this,n):t[s]);return this.format(i||this.localeData().calendar(s,this,$n(n)))}function Vr(){return new w(this)}function Zr(e,t){var n=k(e)?e:$n(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function zr(e,t){var n=k(e)?e:$n(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Jr(e,t,n,r){var a=k(e)?e:$n(e),s=k(t)?t:$n(t);return!!(this.isValid()&&a.isValid()&&s.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(s,n):!this.isAfter(s,n))}function Br(e,t){var n,r=k(e)?e:$n(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function qr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $r(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,a,s;if(!this.isValid())return NaN;if(!(r=mr(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":s=Xr(this,r)/12;break;case"month":s=Xr(this,r);break;case"quarter":s=Xr(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-a)/864e5;break;case"week":s=(this-r-a)/6048e5;break;default:s=this-r}return n?s:Ne(s)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Kr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid())return null;var t=!0!==e,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"):T(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 ta(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",s="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=s+'[")]',this.format(e+t+n+r)}function na(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function ra(e,t){return this.isValid()&&(k(e)&&e.isValid()||$n(e).isValid())?xr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(e){return this.from($n(),e)}function sa(e,t){return this.isValid()&&(k(e)&&e.isValid()||$n(e).isValid())?xr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ia(e){return this.to($n(),e)}function oa(e){var t;return void 0===e?this._locale._abbr:(null!=(t=pn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ua=S("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 la(){return this._locale}var ca=1e3,da=60*ca,ha=60*da,fa=3506328*ha;function ma(e,t){return(e%t+t)%t}function _a(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fa:new Date(e,t,n).valueOf()}function ya(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fa:Date.UTC(e,t,n)}function ga(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ya:_a,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ma(t+(this._isUTC?0:this.utcOffset()*da),ha);break;case"minute":t=this._d.valueOf(),t-=ma(t,da);break;case"second":t=this._d.valueOf(),t-=ma(t,ca)}return this._d.setTime(t),r.updateOffset(this,!0),this}function Ya(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ya:_a,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ha-ma(t+(this._isUTC?0:this.utcOffset()*da),ha)-1;break;case"minute":t=this._d.valueOf(),t+=da-ma(t,da)-1;break;case"second":t=this._d.valueOf(),t+=ca-ma(t,ca)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function pa(){return this._d.valueOf()-6e4*(this._offset||0)}function Ma(){return Math.floor(this.valueOf()/1e3)}function va(){return new Date(this.valueOf())}function Da(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wa(){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 ka(){return this.isValid()?this.toISOString():null}function ja(){return Y(this)}function Sa(){return m({},g(this))}function ba(){return g(this).overflow}function Oa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xa(e,t){var n,a,s,i=this._eras||pn("en")._eras;for(n=0,a=i.length;n<a;++n)switch("string"==typeof i[n].since&&(s=r(i[n].since).startOf("day"),i[n].since=s.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":s=r(i[n].until).startOf("day").valueOf(),i[n].until=s.valueOf()}return i}function Ta(e,t,n){var r,a,s,i,o,u=this.eras();for(e=e.toUpperCase(),r=0,a=u.length;r<a;++r)if(s=u[r].name.toUpperCase(),i=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return u[r];break;case"NNNN":if(s===e)return u[r];break;case"NNNNN":if(o===e)return u[r]}else if([s,i,o].indexOf(e)>=0)return u[r]}function Na(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ca(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Wa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function La(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Pa(){var e,t,n,a,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,a=this.clone().startOf("day").valueOf(),s[e].since<=a&&a<=s[e].until||s[e].until<=a&&a<=s[e].since)return(this.year()-r(s[e].since).year())*n+s[e].offset;return this.year()}function Fa(e){return u(this,"_erasNameRegex")||Ia.call(this),e?this._erasNameRegex:this._erasRegex}function Ra(e){return u(this,"_erasAbbrRegex")||Ia.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ha(e){return u(this,"_erasNarrowRegex")||Ia.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ua(e,t){return t.erasAbbrRegex(e)}function Ea(e,t){return t.erasNameRegex(e)}function Ga(e,t){return t.erasNarrowRegex(e)}function Aa(e,t){return t._eraYearOrdinalRegex||pe}function Ia(){var e,t,n,r,a,s=[],i=[],o=[],u=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=Te(l[e].name),r=Te(l[e].abbr),a=Te(l[e].narrow),i.push(n),s.push(r),o.push(a),u.push(n),u.push(r),u.push(a);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Va(e,t){G(0,[e,e.length],0,t)}function Za(e){return Qa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function za(e){return Qa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ja(){return kt(this.year(),1,4)}function Ba(){return kt(this.isoWeekYear(),1,4)}function qa(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function $a(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function Qa(e,t,n,r,a){var s;return null==e?wt(this,r,a).year:(t>(s=kt(e,r,a))&&(t=s),Xa.call(this,e,t,n,r,a))}function Xa(e,t,n,r,a){var s=Dt(e,t,n,r,a),i=Mt(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function Ka(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}G("N",0,0,"eraAbbr"),G("NN",0,0,"eraAbbr"),G("NNN",0,0,"eraAbbr"),G("NNNN",0,0,"eraName"),G("NNNNN",0,0,"eraNarrow"),G("y",["y",1],"yo","eraYear"),G("y",["yy",2],0,"eraYear"),G("y",["yyy",3],0,"eraYea