7 lines
35 KiB
JavaScript
7 lines
35 KiB
JavaScript
|
//! moment.js
|
||
|
//! version : 2.10.6
|
||
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
|
//! license : MIT
|
||
|
//! momentjs.com
|
||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Pi.apply(null,arguments)}function e(t){Pi=t}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t,e){for(var n in e)s(e,n)&&(t[n]=e[n]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function a(t,e,n,i){return Oe(t,e,n,i,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(t){return null==t._pf&&(t._pf=u()),t._pf}function l(t){if(null==t._isValid){var e=d(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function c(t){var e=a(0/0);return null!=t?o(d(e),t):d(e).userInvalidated=!0,e}function f(t,e){var n,i,r;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=d(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),Hi.length>0)for(n in Hi)i=Hi[n],r=e[i],"undefined"!=typeof r&&(t[i]=r);return t}function h(e){f(this,e),this._d=new Date(null!=e._d?e._d.getTime():0/0),Li===!1&&(Li=!0,t.updateOffset(this),Li=!1)}function m(t){return t instanceof h||null!=t&&null!=t._isAMomentObject}function _(t){return 0>t?Math.ceil(t):Math.floor(t)}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=_(e)),n}function p(t,e,n){var i,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),o=0;for(i=0;r>i;i++)(n&&t[i]!==e[i]||!n&&y(t[i])!==y(e[i]))&&o++;return o+s}function g(){}function D(t){return t?t.toLowerCase().replace("_","-"):t}function v(t){for(var e,n,i,r,s=0;s<t.length;){for(r=D(t[s]).split("-"),e=r.length,n=D(t[s+1]),n=n?n.split("-"):null;e>0;){if(i=M(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&p(r,n,!0)>=e-1)break;e--}s++}return null}function M(t){var e=null;if(!Ii[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=xi._abbr,require("./locale/"+t),Y(e)}catch(n){}return Ii[t]}function Y(t,e){var n;return t&&(n="undefined"==typeof e?S(t):w(t,e),n&&(xi=n)),xi._abbr}function w(t,e){return null!==e?(e.abbr=t,Ii[t]=Ii[t]||new g,Ii[t].set(e),Y(t),Ii[t]):(delete Ii[t],null)}function S(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return xi;if(!n(t)){if(e=M(t))return e;t=[t]}return v(t)}function k(t,e){var n=t.toLowerCase();Ai[n]=Ai[n+"s"]=Ai[e]=t}function T(t){return"string"==typeof t?Ai[t]||Ai[t.toLowerCase()]:void 0}function b(t){var e,n,i={};for(n in t)s(t,n)&&(e=T(n),e&&(i[e]=t[n]));return i}function O(e,n){return function(i){return null!=i?(W(this,e,i),t.updateOffset(this,n),this):U(this,e)}}function U(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function W(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function C(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=T(t),"function"==typeof this[t])return this[t](e);return this}function G(t,e,n){var i=""+Math.abs(t),r=e-i.length,s=t>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function F(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Ei[t]=r),e&&(Ei[e[0]]=function(){return G(r.apply(this,arguments),e[1],e[2])}),n&&(Ei[n]=function(){return this.locale
|
||
|
var Zr=zr,jr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Er={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"},Nr="Invalid date",Vr="%d",qr=/\d{1,2}/,Jr={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"},$r=g.prototype;$r._calendar=jr,$r.calendar=ti,$r._longDateFormat=Er,$r.longDateFormat=ei,$r._invalidDate=Nr,$r.invalidDate=ni,$r._ordinal=Vr,$r.ordinal=ii,$r._ordinalParse=qr,$r.preparse=ri,$r.postformat=ri,$r._relativeTime=Jr,$r.relativeTime=si,$r.pastFuture=oi,$r.set=ai,$r.months=q,$r._months=hr,$r.monthsShort=J,$r._monthsShort=mr,$r.monthsParse=$,$r.week=le,$r._week=Mr,$r.firstDayOfYear=fe,$r.firstDayOfWeek=ce,$r.weekdays=In,$r._weekdays=Cr,$r.weekdaysMin=zn,$r._weekdaysMin=Fr,$r.weekdaysShort=An,$r._weekdaysShort=Gr,$r.weekdaysParse=Zn,$r.isPM=Jn,$r._meridiemParse=Pr,$r.meridiem=$n,Y("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=te("moment.lang is deprecated. Use moment.locale instead.",Y),t.langData=te("moment.langData is deprecated. Use moment.localeData instead.",S);var Rr=Math.abs,Br=ki("ms"),Qr=ki("s"),Xr=ki("m"),Kr=ki("h"),ts=ki("d"),es=ki("w"),ns=ki("M"),is=ki("y"),rs=bi("milliseconds"),ss=bi("seconds"),os=bi("minutes"),as=bi("hours"),us=bi("days"),ds=bi("months"),ls=bi("years"),cs=Math.round,fs={s:45,m:45,h:22,d:26,M:11},hs=Math.abs,ms=Fe.prototype;ms.abs=_i,ms.add=pi,ms.subtract=gi,ms.as=wi,ms.asMilliseconds=Br,ms.asSeconds=Qr,ms.asMinutes=Xr,ms.asHours=Kr,ms.asDays=ts,ms.asWeeks=es,ms.asMonths=ns,ms.asYears=is,ms.valueOf=Si,ms._bubble=vi,ms.get=Ti,ms.milliseconds=rs,ms.seconds=ss,ms.minutes=os,ms.hours=as,ms.days=us,ms.weeks=Oi,ms.months=ds,ms.years=ls,ms.humanize=Gi,ms.toISOString=Fi,ms.toString=Fi,ms.toJSON=Fi,ms.locale=gn,ms.localeData=Dn,ms.toIsoString=te("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fi),ms.lang=Ur,F("X",0,0,"unix"),F("x",0,0,"valueOf"),A("x",tr),A("X",nr),j("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),j("x",function(t,e,n){n._d=new Date(y(t))}),t.version="2.10.6",e(Ue),t.fn=Zr,t.min=Ce,t.max=Ge,t.utc=a,t.unix=Xn,t.months=li,t.isDate=i,t.locale=Y,t.invalid=c,t.duration=Be,t.isMoment=m,t.weekdays=fi,t.parseZone=Kn,t.localeData=S,t.isDuration=Pe,t.monthsShort=ci,t.weekdaysMin=mi,t.defineLocale=w,t.weekdaysShort=hi,t.normalizeUnits=T,t.relativeTimeThreshold=Ci;var _s=t;return _s});
|