2 lines
57 KiB
JavaScript
2 lines
57 KiB
JavaScript
|
!function(b,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):b.moment=a()}(this,function(){"use strict";function d(){return ad.apply(null,arguments)}function aM(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function aN(a){return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function aO(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function aP(a){var b;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(a).length;for(b in a)if(aO(a,b))return!1;return!0}function aQ(a){return void 0===a}function aR(a){return"number"==typeof a||"[object Number]"===Object.prototype.toString.call(a)}function Y(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function aS(b,d){var a,c=[],e=b.length;for(a=0;a<e;++a)c.push(d(b[a],a));return c}function aT(b,a){for(var c in a)aO(a,c)&&(b[c]=a[c]);return aO(a,"toString")&&(b.toString=a.toString),aO(a,"valueOf")&&(b.valueOf=a.valueOf),b}function Z(a,b,c,d){return b8(a,b,c,d,!0).utc()}function aU(a){return null==a._pf&&(a._pf={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}),a._pf}function aV(b){if(null==b._isValid){var a=aU(b),d=bi.call(a.parsedDateParts,function(a){return null!=a}),c=!isNaN(b._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&d);if(b._strict&&(c=c&&0===a.charsLeftOver&&0===a.unusedTokens.length&& void 0===a.bigHour),null!=Object.isFrozen&&Object.isFrozen(b))return c;b._isValid=c}return b._isValid}function $(b){var a=Z(NaN);return null!=b?aT(aU(a),b):aU(a).userInvalidated=!0,a}bi=Array.prototype.some?Array.prototype.some:function(c){var a,b=Object(this),d=b.length>>>0;for(a=0;a<d;a++)if(a in b&&c.call(this,b[a],a,b))return!0;return!1};var n,E,aW=d.momentProperties=[],aX=!1;function aY(b,a){var c,d,e,f=aW.length;if(aQ(a._isAMomentObject)||(b._isAMomentObject=a._isAMomentObject),aQ(a._i)||(b._i=a._i),aQ(a._f)||(b._f=a._f),aQ(a._l)||(b._l=a._l),aQ(a._strict)||(b._strict=a._strict),aQ(a._tzm)||(b._tzm=a._tzm),aQ(a._isUTC)||(b._isUTC=a._isUTC),aQ(a._offset)||(b._offset=a._offset),aQ(a._pf)||(b._pf=aU(a)),aQ(a._locale)||(b._locale=a._locale),f>0)for(c=0;c<f;c++)aQ(e=a[d=aW[c]])||(b[d]=e);return b}function _(a){aY(this,a),this._d=new Date(null!=a._d?a._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===aX&&(aX=!0,d.updateOffset(this),aX=!1)}function aa(a){return a instanceof _||null!=a&&null!=a._isAMomentObject}function aZ(a){!1===d.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function l(b,a){var c=!0;return aT(function(){if(null!=d.deprecationHandler&&d.deprecationHandler(null,b),c){var e,f,g,h=[],i=arguments.length;for(f=0;f<i;f++){if(e="","object"==typeof arguments[f]){for(g in e+="\n["+f+"] ",arguments[0])aO(arguments[0],g)&&(e+=g+": "+arguments[0][g]+", ");e=e.slice(0,-2)}else e=arguments[f];h.push(e)}aZ(b+"\nArguments: "+Array.prototype.slice.call(h).join("")+"\n"+new Error().stack),c=!1}return a.apply(this,arguments)},a)}var a$={};function a_(a,b){null!=d.deprecationHandler&&d.deprecationHandler(a,b),a$[a]||(aZ(b),a$[a]=!0)}function a0(a){return"undefined"!=typeof Function&&a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function a1(d,c){var a,b=aT({},d);for(a in c)aO(c,a)&&(aN(d[a])&&aN(c[a])?(b[a]={},aT(b[a],d[a]),aT(b[a],c[a])):null!=c[a]?b[a]=c[a]:delete b[a]);for(a in d)aO(d,a)&&!aO(c,a)&&aN(d[a])&&(b[a]=aT({},b[a]));return b}function ab(a){null!=a&&this.set(a)}function a2(a,c,d){var b=""+Math.abs(a);return(a>=0?d?"+":"":"-")+Math.pow(10,Math.max(0,c-b.length)).toString().substr(1)+b}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null,bj=Object.keys?Object.keys:function(
|
||
|
d.version="2.29.4",ad=an,d.fn=a,d.min=function(){var a=[].slice.call(arguments,0);return b9("isBefore",a)},d.max=function(){var a=[].slice.call(arguments,0);return b9("isAfter",a)},d.now=function(){return Date.now?Date.now():+new Date},d.utc=Z,d.unix=function(a){return an(1e3*a)},d.months=function(a,b){return cw(a,b,"months")},d.isDate=Y,d.locale=B,d.invalid=$,d.duration=C,d.isMoment=aa,d.weekdays=function(a,b,c){return cx(a,b,c,"weekdays")},d.parseZone=function(){return an.apply(null,arguments).parseZone()},d.localeData=O,d.isDuration=aq,d.monthsShort=function(a,b){return cw(a,b,"monthsShort")},d.weekdaysMin=function(a,b,c){return cx(a,b,c,"weekdaysMin")},d.defineLocale=am,d.updateLocale=function(a,b){if(null!=b){var d,c,e=bM;null!=bN[a]&&null!=bN[a].parentLocale?bN[a].set(a1(bN[a]._config,b)):(null!=(c=bR(a))&&(e=c._config),b=a1(e,b),null==c&&(b.abbr=a),(d=new ab(b)).parentLocale=bN[a],bN[a]=d),B(a)}else null!=bN[a]&&(null!=bN[a].parentLocale?(bN[a]=bN[a].parentLocale,a===B()&&B(a)):null!=bN[a]&&delete bN[a]);return bN[a]},d.locales=function(){return bj(bN)},d.weekdaysShort=function(a,b,c){return cx(a,b,c,"weekdaysShort")},d.normalizeUnits=ac,d.relativeTimeRounding=function(a){return void 0===a?cD:"function"==typeof a&&(cD=a,!0)},d.relativeTimeThreshold=function(a,b){return void 0!==cE[a]&&(void 0===b?cE[a]:(cE[a]=b,"s"===a&&(cE.ss=b-1),!0))},d.calendarFormat=function(b,c){var a=b.diff(c,"days",!0);return a< -6?"sameElse":a< -1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"},d.prototype=a,d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},d})
|