all-in-one-event-calendar/public/js/external_libs/moment.js
2017-03-16 16:59:53 +01:00

7 lines
No EOL
34 KiB
JavaScript

//! moment.js
//! version : 2.9.0
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
timely.define([],function(){function tt(e,t,n){switch(arguments.length){case 2:return e!=null?e:t;case 3:return e!=null?e:t!=null?t:n;default:throw new Error("Implement me")}}function nt(e,t){return s.call(e,t)}function rt(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function it(t){e.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+t)}function st(e,t){var n=!0;return dt(function(){return n&&(it(e),n=!1),t.apply(this,arguments)},t)}function ot(e,t){Y[e]||(it(t),Y[e]=!0)}function ut(e,t){return function(n){return gt(e.call(this,n),t)}}function at(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}function ft(e,t){var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,s;return t-r<0?(i=e.clone().add(n-1,"months"),s=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),s=(t-r)/(i-r)),-(n+s)}function lt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):e.isPM!=null?(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0),t):t}function ct(){}function ht(t,n){n!==!1&&Dt(t),vt(this,t),this._d=new Date(+t._d),et===!1&&(et=!0,e.updateOffset(this),et=!1)}function pt(t){var n=Ct(t),r=n.year||0,i=n.quarter||0,s=n.month||0,o=n.week||0,u=n.day||0,a=n.hour||0,f=n.minute||0,l=n.second||0,c=n.millisecond||0;this._milliseconds=+c+l*1e3+f*6e4+a*36e5,this._days=+u+o*7,this._months=+s+i*3+r*12,this._data={},this._locale=e.localeData(),this._bubble()}function dt(e,t){for(var n in t)nt(t,n)&&(e[n]=t[n]);return nt(t,"toString")&&(e.toString=t.toString),nt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function vt(e,t){var n,r,i;typeof t._isAMomentObject!="undefined"&&(e._isAMomentObject=t._isAMomentObject),typeof t._i!="undefined"&&(e._i=t._i),typeof t._f!="undefined"&&(e._f=t._f),typeof t._l!="undefined"&&(e._l=t._l),typeof t._strict!="undefined"&&(e._strict=t._strict),typeof t._tzm!="undefined"&&(e._tzm=t._tzm),typeof t._isUTC!="undefined"&&(e._isUTC=t._isUTC),typeof t._offset!="undefined"&&(e._offset=t._offset),typeof t._pf!="undefined"&&(e._pf=t._pf),typeof t._locale!="undefined"&&(e._locale=t._locale);if(v.length>0)for(n in v)r=v[n],i=t[r],typeof i!="undefined"&&(e[r]=i);return e}function mt(e){return e<0?Math.ceil(e):Math.floor(e)}function gt(e,t,n){var r=""+Math.abs(e),i=e>=0;while(r.length<t)r="0"+r;return(i?n?"+":"":"-")+r}function yt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t- +e.clone().add(n.months,"M"),n}function bt(e,t){var n;return t=Ft(t,e),e.isBefore(t)?n=yt(e,t):(n=yt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function wt(t,n){return function(r,i){var s,o;return i!==null&&!isNaN(+i)&&(ot(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period)."),o=r,r=i,i=o),r=typeof r=="string"?+r:r,s=e.duration(r,i),Et(this,s,t),this}}function Et(t,n,r,i){var s=n._milliseconds,o=n._days,u=n._months;i=i==null?!0:i,s&&t._d.setTime(+t._d+s*r),o&&mn(t,"Date",vn(t,"Date")+o*r),u&&dn(t,vn(t,"Month")+u*r),i&&e.updateOffset(t,o||u)}function St(e){return Object.prototype.toString.call(e)==="[object Array]"}function xt(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Tt(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&Lt(e[o])!==Lt(t[o]))&&s++;return s+i}function Nt(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=X[e]||V[t]||t}return e}function Ct(e){var t={},n,r;for(r in e)nt(e,r)&&(n=Nt(r),n&&(t[n]=e[r]));return t}function kt(t){var n,r;if(t.indexOf("week")===0)n=7,r="day";else{if(t.indexOf("month")!==0)return;n=12,r="month"}e[t]=function(i,s){var o,u,a=e._locale[t],f=[];typeof i=="number"&&(s=i,i=undefined),u=function(t){var n=e().utc().set(r,t);return a.call(e._locale,n,i||"")};if(s!=null)return u(s);for(o=0;o<n;o++)f.push(u(o));return f}}function Lt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(t>=0?n=Math.floor(t):n=Math.ceil(t)),n}function At(e,t){return(new Date(Date.UTC(e,t+1,0))).getUTCDate()}function Ot(t,n,r){return ln(e([t,11,31+n-r]),n,r).week}function Mt(e){return _t(e)?366:365}function _t(e){return e%4===0&&e%100!==0||e%400===0}function Dt(e){var t;e._a&&e._pf.overflow===-2&&(t=e._a[a]<0||e._a[a]>11?a:e._a[f]<1||e._a[f]>At(e._a[u],e._a[a])?f:e._a[l]<0||e._a[l]>24||e._a[l]===24&&(e._a[c]!==0||e._a[h]!==0||e._a[p]!==0)?l:e._a[c]<0||e._a[c]>59?c:e._a[h]<0||e._a[h]>59?h:e._a[p]<0||e._a[p]>999?p:-1,e._pf._overflowDayOfYear&&(t<u||t>f)&&(t=f),e._pf.overflow=t)}function Pt(e){return e._isValid==null&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&e._pf.charsLeftOver===0&&e._pf.unusedTokens.length===0&&e._pf.bigHour===undefined)),e._isValid}function Ht(e){return e?e.toLowerCase().replace("_","-"):e}function Bt(e){var t=0,n,r,i,s;while(t<e.length){s=Ht(e[t]).split("-"),n=s.length,r=Ht(e[t+1]),r=r?r.split("-"):null;while(n>0){i=jt(s.slice(0,n).join("-"));if(i)return i;if(r&&r.length>=n&&Tt(s,r,!0)>=n-1)break;n--}t++}return null}function jt(t){var n=null;if(!d[t]&&m)try{n=e.locale(),require("./locale/"+t),e.locale(n)}catch(r){}return d[t]}function Ft(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(e.isMoment(t)||xt(t)?+t:+e(t))- +r,r._d.setTime(+r._d+i),e.updateOffset(r,!1),r):e(t).local()}function It(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function qt(e){var t=e.match(w),n,r;for(n=0,r=t.length;n<r;n++)G[t[n]]?t[n]=G[t[n]]:t[n]=It(t[n]);return function(i){var s="";for(n=0;n<r;n++)s+=t[n]instanceof Function?t[n].call(i,e):t[n];return s}}function Rt(e,t){return e.isValid()?(t=Ut(t,e.localeData()),$[t]||($[t]=qt(t)),$[t](e)):e.localeData().invalidDate()}function Ut(e,t){function r(e){return t.longDateFormat(e)||e}var n=5;E.lastIndex=0;while(n>=0&&E.test(e))e=e.replace(E,r),E.lastIndex=0,n-=1;return e}function zt(e,t){var n,r=t._strict;switch(e){case"Q":return _;case"DDDD":return P;case"YYYY":case"GGGG":case"gggg":return r?H:T;case"Y":case"G":case"g":return j;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return r?B:N;case"S":if(r)return _;case"SS":if(r)return D;case"SSS":if(r)return P;case"DDD":return x;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return k;case"a":case"A":return t._locale._meridiemParse;case"x":return O;case"X":return M;case"Z":case"ZZ":return L;case"T":return A;case"SSSS":return C;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return r?D:S;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return S;case"Do":return r?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return n=new RegExp(Yt(Gt(e.replace("\\","")),"i")),n}}function Wt(e){e=e||"";var t=e.match(L)||[],n=t[t.length-1]||[],r=(n+"").match(U)||["-",0,0],i=+(r[1]*60)+Lt(r[2]);return r[0]==="+"?i:-i}function Xt(t,n,r){var i,s=r._a;switch(t){case"Q":n!=null&&(s[a]=(Lt(n)-1)*3);break;case"M":case"MM":n!=null&&(s[a]=Lt(n)-1);break;case"MMM":case"MMMM":i=r._locale.monthsParse(n,t,r._strict),i!=null?s[a]=i:r._pf.invalidMonth=n;break;case"D":case"DD":n!=null&&(s[f]=Lt(n));break;case"Do":n!=null&&(s[f]=Lt(parseInt(n.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":n!=null&&(r._dayOfYear=Lt(n));break;case"YY":s[u]=e.parseTwoDigitYear(n);break;case"YYYY":case"YYYYY":case"YYYYYY":s[u]=Lt(n);break;case"a":case"A":r._meridiem=n;break;case"h":case"hh":r._pf.bigHour=!0;case"H":case"HH":s[l]=Lt(n);break;case"m":case"mm":s[c]=Lt(n);break;case"s":case"ss":s[h]=Lt(n);break;case"S":case"SS":case"SSS":case"SSSS":s[p]=Lt(("0."+n)*1e3);break;case"x":r._d=new Date(Lt(n));break;case"X":r._d=new Date(parseFloat(n)*1e3);break;case"Z":case"ZZ":r._useUTC=!0,r._tzm=Wt(n);break;case"dd":case"ddd":case"dddd":i=r._locale.weekdaysParse(n),i!=null?(r._w=r._w||{},r._w.d=i):r._pf.invalidWeekday=n;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),n&&(r._w=r._w||{},r._w[t]=Lt(n));break;case"gg":case"GG":r._w=r._w||{},r._w[t]=e.parseTwoDigitYear(n)}}function Vt(t){var n,r,i,s,o,a,f;n=t._w,n.GG!=null||n.W!=null||n.E!=null?(o=1,a=4,r=tt(n.GG,t._a[u],ln(e(),1,4).year),i=tt(n.W,1),s=tt(n.E,1)):(o=t._locale._week.dow,a=t._locale._week.doy,r=tt(n.gg,t._a[u],ln(e(),o,a).year),i=tt(n.w,1),n.d!=null?(s=n.d,s<o&&++i):n.e!=null?s=n.e+o:s=o),f=cn(r,i,s,a,o),t._a[u]=f.year,t._dayOfYear=f.dayOfYear}function $t(e){var t,n,r=[],i,s;if(e._d)return;i=Kt(e),e._w&&e._a[f]==null&&e._a[a]==null&&Vt(e),e._dayOfYear&&(s=tt(e._a[u],i[u]),e._dayOfYear>Mt(s)&&(e._pf._overflowDayOfYear=!0),n=on(s,0,e._dayOfYear),e._a[a]=n.getUTCMonth(),e._a[f]=n.getUTCDate());for(t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[l]===24&&e._a[c]===0&&e._a[h]===0&&e._a[p]===0&&(e._nextDay=!0,e._a[l]=0),e._d=(e._useUTC?on:sn).apply(null,r),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[l]=24)}function Jt(e){var t;if(e._d)return;t=Ct(e._i),e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],$t(e)}function Kt(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Qt(t){if(t._f===e.ISO_8601){en(t);return}t._a=[],t._pf.empty=!0;var n=""+t._i,r,i,s,o,u,a=n.length,f=0;s=Ut(t._f,t._locale).match(w)||[];for(r=0;r<s.length;r++)o=s[r],i=(n.match(zt(o,t))||[])[0],i&&(u=n.substr(0,n.indexOf(i)),u.length>0&&t._pf.unusedInput.push(u),n=n.slice(n.indexOf(i)+i.length),f+=i.length),G[o]?(i?t._pf.empty=!1:t._pf.unusedTokens.push(o),Xt(o,i,t)):t._strict&&!i&&t._pf.unusedTokens.push(o);t._pf.charsLeftOver=a-f,n.length>0&&t._pf.unusedInput.push(n),t._pf.bigHour===!0&&t._a[l]<=12&&(t._pf.bigHour=undefined),t._a[l]=lt(t._locale,t._a[l],t._meridiem),$t(t),Dt(t)}function Gt(e){return e.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})}function Yt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Zt(e){var t,n,r,i,s;if(e._f.length===0){e._pf.invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<e._f.length;i++){s=0,t=vt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._pf=rt(),t._f=e._f[i],Qt(t);if(!Pt(t))continue;s+=t._pf.charsLeftOver,s+=t._pf.unusedTokens.length*10,t._pf.score=s;if(r==null||s<r)r=s,n=t}dt(e,n||t)}function en(e){var t,n,r=e._i,i=F.exec(r);if(i){e._pf.iso=!0;for(t=0,n=q.length;t<n;t++)if(q[t][1].exec(r)){e._f=q[t][0]+(i[6]||" ");break}for(t=0,n=R.length;t<n;t++)if(R[t][1].exec(r)){e._f+=R[t][0];break}r.match(L)&&(e._f+="Z"),Qt(e)}else e._isValid=!1}function tn(t){en(t),t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))}function nn(e,t){var n=[],r;for(r=0;r<e.length;++r)n.push(t(e[r],r));return n}function rn(t){var n=t._i,r;n===undefined?t._d=new Date:xt(n)?t._d=new Date(+n):(r=g.exec(n))!==null?t._d=new Date(+r[1]):typeof n=="string"?tn(t):St(n)?(t._a=nn(n.slice(0),function(e){return parseInt(e,10)}),$t(t)):typeof n=="object"?Jt(t):typeof n=="number"?t._d=new Date(n):e.createFromInputFallback(t)}function sn(e,t,n,r,i,s,o){var u=new Date(e,t,n,r,i,s,o);return e<1970&&u.setFullYear(e),u}function on(e){var t=new Date(Date.UTC.apply(null,arguments));return e<1970&&t.setUTCFullYear(e),t}function un(e,t){if(typeof e=="string")if(!isNaN(e))e=parseInt(e,10);else{e=t.weekdaysParse(e);if(typeof e!="number")return null}return e}function an(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function fn(t,n,r){var s=e.duration(t).abs(),o=i(s.as("s")),u=i(s.as("m")),a=i(s.as("h")),f=i(s.as("d")),l=i(s.as("M")),c=i(s.as("y")),h=o<J.s&&["s",o]||u===1&&["m"]||u<J.m&&["mm",u]||a===1&&["h"]||a<J.h&&["hh",a]||f===1&&["d"]||f<J.d&&["dd",f]||l===1&&["M"]||l<J.M&&["MM",l]||c===1&&["y"]||["yy",c];return h[2]=n,h[3]=+t>0,h[4]=r,an.apply({},h)}function ln(t,n,r){var i=r-n,s=r-t.day(),o;return s>i&&(s-=7),s<i-7&&(s+=7),o=e(t).add(s,"d"),{week:Math.ceil(o.dayOfYear()/7),year:o.year()}}function cn(e,t,n,r,i){var s=on(e,0,1).getUTCDay(),o,u;return s=s===0?7:s,n=n!=null?n:i,o=i-s+(s>r?7:0)-(s<i?7:0),u=7*(t-1)+(n-i)+o+1,{year:u>0?e:e-1,dayOfYear:u>0?u:Mt(e-1)+u}}function hn(t){var n=t._i,r=t._f,i;return t._locale=t._locale||e.localeData(t._l),n===null||r===undefined&&n===""?e.invalid({nullInput:!0}):(typeof n=="string"&&(t._i=n=t._locale.preparse(n)),e.isMoment(n)?new ht(n,!0):(r?St(r)?Zt(t):Qt(t):rn(t),i=new ht(t),i._nextDay&&(i.add(1,"d"),i._nextDay=undefined),i))}function pn(t,n){var r,i;n.length===1&&St(n[0])&&(n=n[0]);if(!n.length)return e();r=n[0];for(i=1;i<n.length;++i)n[i][t](r)&&(r=n[i]);return r}function dn(e,t){var n;if(typeof t=="string"){t=e.localeData().monthsParse(t);if(typeof t!="number")return e}return n=Math.min(e.date(),At(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function vn(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function mn(e,t,n){return t==="Month"?dn(e,n):e._d["set"+(e._isUTC?"UTC":"")+t](n)}function gn(t,n){return function(r){return r!=null?(mn(this,t,r),e.updateOffset(this,n),this):vn(this,t)}}function yn(e){return e*400/146097}function bn(e){return e*146097/400}function wn(t){e.duration.fn[t]=function(){return this._data[t]}}var e,t="2.9.0",n=typeof global=="undefined"||typeof window!="undefined"&&window!==global.window?this:global,r,i=Math.round,s=Object.prototype.hasOwnProperty,o,u=0,a=1,f=2,l=3,c=4,h=5,p=6,d={},v=[],m=typeof module!="undefined"&&module&&module.exports,g=/^\/?Date\((\-?\d+)/i,y=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,b=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,w=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,S=/\d\d?/,x=/\d{1,3}/,T=/\d{1,4}/,N=/[+\-]?\d{1,6}/,C=/\d+/,k=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,L=/Z|[\+\-]\d\d:?\d\d/gi,A=/T/i,O=/[\+\-]?\d+/,M=/[\+\-]?\d+(\.\d{1,3})?/,_=/\d/,D=/\d\d/,P=/\d{3}/,H=/\d{4}/,B=/[+-]?\d{6}/,j=/[+-]?\d+/,F=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,I="YYYY-MM-DDTHH:mm:ssZ",q=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],R=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],U=/([\+\-]|\d\d)/gi,z="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),W={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},X={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},V={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},$={},J={s:45,m:45,h:22,d:26,M:11},K="DDD w W M D d".split(" "),Q="M D H h m s w W".split(" "),G={M:function(){return this.month()+1},MMM:function(e){return this.localeData().monthsShort(this,e)},MMMM:function(e){return this.localeData().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.localeData().weekdaysMin(this,e)},ddd:function(e){return this.localeData().weekdaysShort(this,e)},dddd:function(e){return this.localeData().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return gt(this.year()%100,2)},YYYY:function(){return gt(this.year(),4)},YYYYY:function(){return gt(this.year(),5)},YYYYYY:function(){var e=this.year(),t=e>=0?"+":"-";return t+gt(Math.abs(e),6)},gg:function(){return gt(this.weekYear()%100,2)},gggg:function(){return gt(this.weekYear(),4)},ggggg:function(){return gt(this.weekYear(),5)},GG:function(){return gt(this.isoWeekYear()%100,2)},GGGG:function(){return gt(this.isoWeekYear(),4)},GGGGG:function(){return gt(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return Lt(this.milliseconds()/100)},SS:function(){return gt(Lt(this.milliseconds()/10),2)},SSS:function(){return gt(this.milliseconds(),3)},SSSS:function(){return gt(this.milliseconds(),3)},Z:function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+gt(Lt(e/60),2)+":"+gt(Lt(e)%60,2)},ZZ:function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+gt(Lt(e/60),2)+gt(Lt(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Y={},Z=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],et=!1;while(K.length)o=K.pop(),G[o+"o"]=at(G[o],o);while(Q.length)o=Q.pop(),G[o+o]=ut(G[o],2);G.DDDD=ut(G.DDD,3),dt(ct.prototype,{set:function(e){var t,n;for(n in e)t=e[n],typeof t=="function"?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(t,n,r){var i,s,o;this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(i=0;i<12;i++){s=e.utc([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i"));if(r&&n==="MMMM"&&this._longMonthsParse[i].test(t))return i;if(r&&n==="MMM"&&this._shortMonthsParse[i].test(t))return i;if(!r&&this._monthsParse[i].test(t))return i}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(t){var n,r,i;this._weekdaysParse||(this._weekdaysParse=[]);for(n=0;n<7;n++){this._weekdaysParse[n]||(r=e([2e3,1]).day(n),i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i"));if(this._weekdaysParse[n].test(t))return n}},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return(e+"").toLowerCase().charAt(0)==="p"},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(e,t,n){var r=this._calendar[e];return typeof r=="function"?r.apply(t,[n]):r},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,r){var i=this._relativeTime[n];return typeof i=="function"?i(e,t,n,r):i.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return typeof n=="function"?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(e){return e},postformat:function(e){return e},week:function(e){return ln(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),e=function(e,t,n,r){var i;return typeof n=="boolean"&&(r=n,n=undefined),i={},i._isAMomentObject=!0,i._i=e,i._f=t,i._l=n,i._strict=r,i._isUTC=!1,i._pf=rt(),hn(i)},e.suppressDeprecationWarnings=!1,e.createFromInputFallback=st("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.min=function(){var e=[].slice.call(arguments,0);return pn("isBefore",e)},e.max=function(){var e=[].slice.call(arguments,0);return pn("isAfter",e)},e.utc=function(e,t,n,r){var i;return typeof n=="boolean"&&(r=n,n=undefined),i={},i._isAMomentObject=!0,i._useUTC=!0,i._isUTC=!0,i._l=n,i._i=e,i._f=t,i._strict=r,i._pf=rt(),hn(i).utc()},e.unix=function(t){return e(t*1e3)},e.duration=function(t,n){var r=t,i=null,s,o,u,a;return e.isDuration(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:typeof t=="number"?(r={},n?r[n]=t:r.milliseconds=t):(i=y.exec(t))?(s=i[1]==="-"?-1:1,r={y:0,d:Lt(i[f])*s,h:Lt(i[l])*s,m:Lt(i[c])*s,s:Lt(i[h])*s,ms:Lt(i[p])*s}):(i=b.exec(t))?(s=i[1]==="-"?-1:1,u=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*s},r={y:u(i[2]),M:u(i[3]),d:u(i[4]),h:u(i[5]),m:u(i[6]),s:u(i[7]),w:u(i[8])}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=bt(e(r.from),e(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),o=new pt(r),e.isDuration(t)&&nt(t,"_locale")&&(o._locale=t._locale),o},e.version=t,e.defaultFormat=I,e.ISO_8601=function(){},e.momentProperties=v,e.updateOffset=function(){},e.relativeTimeThreshold=function(e,t){return J[e]===undefined?!1:t===undefined?J[e]:(J[e]=t,!0)},e.lang=st("moment.lang is deprecated. Use moment.locale instead.",function(t,n){return e.locale(t,n)}),e.locale=function(t,n){var r;return t&&(typeof n!="undefined"?r=e.defineLocale(t,n):r=e.localeData(t),r&&(e.duration._locale=e._locale=r)),e._locale._abbr},e.defineLocale=function(t,n){return n!==null?(n.abbr=t,d[t]||(d[t]=new ct),d[t].set(n),e.locale(t),d[t]):(delete d[t],null)},e.langData=st("moment.langData is deprecated. Use moment.localeData instead.",function(t){return e.localeData(t)}),e.localeData=function(t){var n;t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr);if(!t)return e._locale;if(!St(t)){n=jt(t);if(n)return n;t=[t]}return Bt(t)},e.isMoment=function(e){return e instanceof ht||e!=null&&nt(e,"_isAMomentObject")},e.isDuration=function(e){return e instanceof pt};for(o=Z.length-1;o>=0;--o)kt(Z[o]);e.normalizeUnits=function(e){return Nt(e)},e.invalid=function(t){var n=e.utc(NaN);return t!=null?dt(n._pf,t):n._pf.userInvalidated=!0,n},e.parseZone=function(){return e.apply(null,arguments).parseZone()},e.parseTwoDigitYear=function(e){return Lt(e)+(Lt(e)>68?1900:2e3)},e.isDate=xt,dt(e.fn=ht.prototype,{clone:function(){return e(this)},valueOf:function(){return+this._d-(this._offset||0)*6e4},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=e(this).utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():Rt(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Rt(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return Pt(this)},isDSTShifted:function(){return this._a?this.isValid()&&Tt(this._a,(this._isUTC?e.utc(this._a):e(this._a)).toArray())>0:!1},parsingFlags:function(){return dt({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.utcOffset(0,e)},local:function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(t){var n=Rt(this,t||e.defaultFormat);return this.localeData().postformat(n)},add:wt(1,"add"),subtract:wt(-1,"subtract"),diff:function(e,t,n){var r=Ft(e,this),i=(r.utcOffset()-this.utcOffset())*6e4,s,o,u,a;return t=Nt(t),t==="year"||t==="month"||t==="quarter"?(u=ft(this,r),t==="quarter"?u/=3:t==="year"&&(u/=12)):(o=this-r,u=t==="second"?o/1e3:t==="minute"?o/6e4:t==="hour"?o/36e5:t==="day"?(o-i)/864e5:t==="week"?(o-i)/6048e5:o),n?u:mt(u)},from:function(t,n){return e.duration({to:this,from:t}).locale(this.locale()).humanize(!n)},fromNow:function(t){return this.from(e(),t)},calendar:function(t){var n=t||e(),r=Ft(n,this).startOf("day"),i=this.diff(r,"days",!0),s=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(s,this,e(n)))},isLeapYear:function(){return _t(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=un(e,this.localeData()),this.add(e-t,"d")):t},month:gn("Month",!0),startOf:function(e){e=Nt(e);switch(e){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return e==="week"?this.weekday(0):e==="isoWeek"&&this.isoWeekday(1),e==="quarter"&&this.month(Math.floor(this.month()/3)*3),this},endOf:function(e){return e=Nt(e),e===undefined||e==="millisecond"?this:this.startOf(e).add(1,e==="isoWeek"?"week":e).subtract(1,"ms")},isAfter:function(t,n){var r;return n=Nt(typeof n!="undefined"?n:"millisecond"),n==="millisecond"?(t=e.isMoment(t)?t:e(t),+this>+t):(r=e.isMoment(t)?+t:+e(t),r<+this.clone().startOf(n))},isBefore:function(t,n){var r;return n=Nt(typeof n!="undefined"?n:"millisecond"),n==="millisecond"?(t=e.isMoment(t)?t:e(t),+this<+t):(r=e.isMoment(t)?+t:+e(t),+this.clone().endOf(n)<r)},isBetween:function(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)},isSame:function(t,n){var r;return n=Nt(n||"millisecond"),n==="millisecond"?(t=e.isMoment(t)?t:e(t),+this===+t):(r=+e(t),+this.clone().startOf(n)<=r&&r<=+this.clone().endOf(n))},min:st("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(t){return t=e.apply(null,arguments),t<this?this:t}),max:st("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=e.apply(null,arguments),t>this?this:t}),zone:st("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),utcOffset:function(t,n){var r=this._offset||0,i;return t!=null?(typeof t=="string"&&(t=Wt(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&n&&(i=this._dateUtcOffset()),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==t&&(!n||this._changeInProgress?Et(this,e.duration(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&this._offset===0},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(Wt(this._i)),this},hasAlignedHourOffset:function(t){return t?t=e(t).utcOffset():t=0,(this.utcOffset()-t)%60===0},daysInMonth:function(){return At(this.year(),this.month())},dayOfYear:function(t){var n=i((e(this).startOf("day")-e(this).startOf("year"))/864e5)+1;return t==null?n:this.add(t-n,"d")},quarter:function(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},weekYear:function(e){var t=ln(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return e==null?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=ln(this,1,4).year;return e==null?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")},isoWeek:function(e){var t=ln(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")},isoWeekday:function(e){return e==null?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return Ot(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return Ot(this.year(),e.dow,e.doy)},get:function(e){return e=Nt(e),this[e]()},set:function(e,t){var n;if(typeof e=="object")for(n in e)this.set(n,e[n]);else e=Nt(e),typeof this[e]=="function"&&this[e](t);return this},locale:function(t){var n;return t===undefined?this._locale._abbr:(n=e.localeData(t),n!=null&&(this._locale=n),this)},lang:st("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===undefined?this.localeData():this.locale(e)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return-Math.round(this._d.getTimezoneOffset()/15)*15}}),e.fn.millisecond=e.fn.milliseconds=gn("Milliseconds",!1),e.fn.second=e.fn.seconds=gn("Seconds",!1),e.fn.minute=e.fn.minutes=gn("Minutes",!1),e.fn.hour=e.fn.hours=gn("Hours",!0),e.fn.date=gn("Date",!0),e.fn.dates=st("dates accessor is deprecated. Use date instead.",gn("Date",!0)),e.fn.year=gn("FullYear",!0),e.fn.years=st("years accessor is deprecated. Use year instead.",gn("FullYear",!0)),e.fn.days=e.fn.day,e.fn.months=e.fn.month,e.fn.weeks=e.fn.week,e.fn.isoWeeks=e.fn.isoWeek,e.fn.quarters=e.fn.quarter,e.fn.toJSON=e.fn.toISOString,e.fn.isUTC=e.fn.isUtc,dt(e.duration.fn=pt.prototype,{_bubble:function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,s,o,u=0;r.milliseconds=e%1e3,i=mt(e/1e3),r.seconds=i%60,s=mt(i/60),r.minutes=s%60,o=mt(s/60),r.hours=o%24,t+=mt(o/24),u=mt(yn(t)),t-=mt(bn(u)),n+=mt(t/30),t%=30,u+=mt(n/12),n%=12,r.days=t,r.months=n,r.years=u},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return mt(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+Lt(this._months/12)*31536e6},humanize:function(e){var t=fn(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(t,n){var r=e.duration(t,n);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(t,n){var r=e.duration(t,n);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(e){return e=Nt(e),this[e.toLowerCase()+"s"]()},as:function(e){var t,n;e=Nt(e);if(e==="month"||e==="year")return t=this._days+this._milliseconds/864e5,n=this._months+yn(t)*12,e==="month"?n:n/12;t=this._days+Math.round(bn(this._months/12));switch(e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return t*24+this._milliseconds/36e5;case"minute":return t*24*60+this._milliseconds/6e4;case"second":return t*24*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(t*24*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:e.fn.lang,locale:e.fn.locale,toIsoString:st("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),r=Math.abs(this.hours()),i=Math.abs(this.minutes()),s=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(r||i||s?"T":"")+(r?r+"H":"")+(i?i+"M":"")+(s?s+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),e.duration.fn.toString=e.duration.fn.toISOString;for(o in W)nt(W,o)&&wn(o.toLowerCase());return e.duration.fn.asMilliseconds=function(){return this.as("ms")},e.duration.fn.asSeconds=function(){return this.as("s")},e.duration.fn.asMinutes=function(){return this.as("m")},e.duration.fn.asHours=function(){return this.as("h")},e.duration.fn.asDays=function(){return this.as("d")},e.duration.fn.asWeeks=function(){return this.as("weeks")},e.duration.fn.asMonths=function(){return this.as("M")},e.duration.fn.asYears=function(){return this.as("y")},e.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Lt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),e});