@revivejs/moment 2.30.2 → 2.30.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +1 -0
  2. package/dist/moment.js +191 -186
  3. package/locale/af.js +3 -0
  4. package/locale/ar-dz.js +7 -0
  5. package/locale/ar-kw.js +3 -0
  6. package/locale/ar-ly.js +3 -0
  7. package/locale/ar-ma.js +4 -0
  8. package/locale/ar-ps.js +3 -0
  9. package/locale/ar-sa.js +3 -0
  10. package/locale/ar-tn.js +3 -0
  11. package/locale/ar.js +5 -0
  12. package/locale/az.js +3 -0
  13. package/locale/be.js +5 -0
  14. package/locale/bg.js +3 -0
  15. package/locale/bm.js +4 -0
  16. package/locale/bn-bd.js +3 -0
  17. package/locale/bn.js +3 -0
  18. package/locale/bo.js +3 -0
  19. package/locale/br.js +3 -0
  20. package/locale/bs.js +5 -0
  21. package/locale/ca.js +3 -0
  22. package/locale/cs.js +3 -0
  23. package/locale/cv.js +3 -0
  24. package/locale/cy.js +4 -0
  25. package/locale/da.js +3 -0
  26. package/locale/de-at.js +6 -0
  27. package/locale/de-ch.js +3 -0
  28. package/locale/de.js +5 -0
  29. package/locale/dv.js +3 -0
  30. package/locale/el.js +3 -0
  31. package/locale/en-au.js +3 -0
  32. package/locale/en-ca.js +3 -0
  33. package/locale/en-gb.js +3 -0
  34. package/locale/en-ie.js +3 -0
  35. package/locale/en-il.js +3 -0
  36. package/locale/en-in.js +3 -0
  37. package/locale/en-nz.js +3 -0
  38. package/locale/en-sg.js +3 -0
  39. package/locale/eo.js +6 -0
  40. package/locale/es-do.js +2 -0
  41. package/locale/es-mx.js +3 -0
  42. package/locale/es-us.js +4 -0
  43. package/locale/es.js +3 -0
  44. package/locale/et.js +4 -0
  45. package/locale/eu.js +3 -0
  46. package/locale/fa.js +3 -0
  47. package/locale/fi.js +3 -0
  48. package/locale/fil.js +4 -0
  49. package/locale/fo.js +4 -0
  50. package/locale/fr-ca.js +3 -0
  51. package/locale/fr-ch.js +3 -0
  52. package/locale/fr.js +3 -0
  53. package/locale/fy.js +3 -0
  54. package/locale/ga.js +3 -0
  55. package/locale/gd.js +3 -0
  56. package/locale/gl.js +3 -0
  57. package/locale/gom-deva.js +3 -0
  58. package/locale/gom-latn.js +3 -0
  59. package/locale/gu.js +3 -0
  60. package/locale/he.js +5 -0
  61. package/locale/hi.js +3 -0
  62. package/locale/hr.js +3 -0
  63. package/locale/hu.js +4 -0
  64. package/locale/hy-am.js +3 -0
  65. package/locale/id.js +4 -0
  66. package/locale/is.js +3 -0
  67. package/locale/it-ch.js +3 -0
  68. package/locale/it.js +5 -0
  69. package/locale/ja.js +3 -0
  70. package/locale/jv.js +4 -0
  71. package/locale/ka.js +3 -0
  72. package/locale/kk.js +3 -0
  73. package/locale/km.js +3 -0
  74. package/locale/kn.js +3 -0
  75. package/locale/ko.js +4 -0
  76. package/locale/ku-kmr.js +3 -0
  77. package/locale/ku.js +3 -0
  78. package/locale/ky.js +3 -0
  79. package/locale/lb.js +4 -0
  80. package/locale/lo.js +3 -0
  81. package/locale/lt.js +3 -0
  82. package/locale/lv.js +4 -0
  83. package/locale/me.js +3 -0
  84. package/locale/mi.js +3 -0
  85. package/locale/mk.js +3 -0
  86. package/locale/ml.js +3 -0
  87. package/locale/mn.js +3 -0
  88. package/locale/mr.js +4 -0
  89. package/locale/ms-my.js +4 -0
  90. package/locale/ms.js +3 -0
  91. package/locale/mt.js +3 -0
  92. package/locale/my.js +5 -0
  93. package/locale/nb.js +5 -0
  94. package/locale/ne.js +3 -0
  95. package/locale/nl-be.js +4 -0
  96. package/locale/nl.js +4 -0
  97. package/locale/nn.js +4 -0
  98. package/locale/oc-lnc.js +3 -0
  99. package/locale/pa-in.js +3 -0
  100. package/locale/pl.js +3 -0
  101. package/locale/pt-br.js +3 -0
  102. package/locale/pt.js +3 -0
  103. package/locale/ro.js +5 -0
  104. package/locale/ru.js +5 -0
  105. package/locale/sd.js +3 -0
  106. package/locale/se.js +3 -0
  107. package/locale/si.js +3 -0
  108. package/locale/sk.js +4 -0
  109. package/locale/sl.js +3 -0
  110. package/locale/sq.js +5 -0
  111. package/locale/sr-cyrl.js +4 -0
  112. package/locale/sr.js +4 -0
  113. package/locale/ss.js +3 -0
  114. package/locale/sv.js +3 -0
  115. package/locale/sw.js +3 -0
  116. package/locale/ta.js +3 -0
  117. package/locale/te.js +3 -0
  118. package/locale/tet.js +5 -0
  119. package/locale/tg.js +3 -0
  120. package/locale/th.js +3 -0
  121. package/locale/tk.js +3 -0
  122. package/locale/tl-ph.js +3 -0
  123. package/locale/tlh.js +3 -0
  124. package/locale/tr.js +4 -0
  125. package/locale/tzl.js +4 -0
  126. package/locale/tzm-latn.js +3 -0
  127. package/locale/tzm.js +3 -0
  128. package/locale/ug-cn.js +3 -0
  129. package/locale/uk.js +4 -0
  130. package/locale/ur.js +4 -0
  131. package/locale/uz-latn.js +3 -0
  132. package/locale/uz.js +3 -0
  133. package/locale/vi.js +4 -0
  134. package/locale/x-pseudo.js +3 -0
  135. package/locale/yo.js +3 -0
  136. package/locale/zh-cn.js +5 -0
  137. package/locale/zh-hk.js +6 -0
  138. package/locale/zh-mo.js +5 -0
  139. package/locale/zh-tw.js +4 -0
  140. package/min/locales.js +1056 -578
  141. package/min/locales.min.js.map +1 -1
  142. package/min/moment-with-locales.js +1266 -783
  143. package/min/moment-with-locales.min.js.map +1 -1
  144. package/min/moment.min.js.map +1 -1
  145. package/min/tests.js +710 -381
  146. package/moment.js +190 -185
  147. package/package.json +5 -3
package/dist/moment.js CHANGED
@@ -148,7 +148,7 @@ if (Array.prototype.some) {
148
148
  };
149
149
  }
150
150
 
151
- function isValid(m) {
151
+ function isValid$2(m) {
152
152
  var flags = null,
153
153
  parsedParts = false,
154
154
  isNowValid = m._d && !isNaN(m._d.getTime());
@@ -184,7 +184,7 @@ function isValid(m) {
184
184
  return m._isValid;
185
185
  }
186
186
 
187
- function createInvalid(flags) {
187
+ function createInvalid$1(flags) {
188
188
  var m = createUTC(NaN);
189
189
  if (flags != null) {
190
190
  extend(getParsingFlags(m), flags);
@@ -345,7 +345,7 @@ function isFunction(input) {
345
345
  );
346
346
  }
347
347
 
348
- function set(config) {
348
+ function set$1(config) {
349
349
  var prop, i;
350
350
  for (i in config) {
351
351
  if (hasOwnProp(config, i)) {
@@ -429,7 +429,7 @@ var defaultCalendar = {
429
429
  sameElse: 'L',
430
430
  };
431
431
 
432
- function calendar(key, mom, now) {
432
+ function calendar$1(key, mom, now) {
433
433
  var output = this._calendar[key] || this._calendar['sameElse'];
434
434
  return isFunction(output) ? output.call(mom, now) : output;
435
435
  }
@@ -612,7 +612,7 @@ var defaultRelativeTime = {
612
612
  yy: '%d years',
613
613
  };
614
614
 
615
- function relativeTime(number, withoutSuffix, string, isFuture) {
615
+ function relativeTime$1(number, withoutSuffix, string, isFuture) {
616
616
  var output = this._relativeTime[string];
617
617
  return isFunction(output)
618
618
  ? output(number, withoutSuffix, string, isFuture)
@@ -916,16 +916,16 @@ function getIsLeapYear() {
916
916
  function makeGetSet(unit, keepTime) {
917
917
  return function (value) {
918
918
  if (value != null) {
919
- set$1(this, unit, value);
919
+ set(this, unit, value);
920
920
  hooks.updateOffset(this, keepTime);
921
921
  return this;
922
922
  } else {
923
- return get(this, unit);
923
+ return get$2(this, unit);
924
924
  }
925
925
  };
926
926
  }
927
927
 
928
- function get(mom, unit) {
928
+ function get$2(mom, unit) {
929
929
  if (!mom.isValid()) {
930
930
  return NaN;
931
931
  }
@@ -955,7 +955,7 @@ function get(mom, unit) {
955
955
  }
956
956
  }
957
957
 
958
- function set$1(mom, unit, value) {
958
+ function set(mom, unit, value) {
959
959
  var d, isUTC, year, month, date;
960
960
 
961
961
  if (!mom.isValid() || isNaN(value)) {
@@ -1025,7 +1025,7 @@ function stringSet(units, value) {
1025
1025
  return this;
1026
1026
  }
1027
1027
 
1028
- function mod(n, x) {
1028
+ function mod$1(n, x) {
1029
1029
  return ((n % x) + x) % x;
1030
1030
  }
1031
1031
 
@@ -1050,7 +1050,7 @@ function daysInMonth(year, month) {
1050
1050
  if (isNaN(year) || isNaN(month)) {
1051
1051
  return NaN;
1052
1052
  }
1053
- var modMonth = mod(month, 12);
1053
+ var modMonth = mod$1(month, 12);
1054
1054
  year += (month - modMonth) / 12;
1055
1055
  return modMonth === 1
1056
1056
  ? isLeapYear(year)
@@ -1138,7 +1138,7 @@ function localeMonthsShort(m, format) {
1138
1138
  ][m.month()];
1139
1139
  }
1140
1140
 
1141
- function handleStrictParse(monthName, format, strict) {
1141
+ function handleStrictParse$1(monthName, format, strict) {
1142
1142
  var i,
1143
1143
  ii,
1144
1144
  mom,
@@ -1189,7 +1189,7 @@ function localeMonthsParse(monthName, format, strict) {
1189
1189
  var i, mom, regex;
1190
1190
 
1191
1191
  if (this._monthsParseExact) {
1192
- return handleStrictParse.call(this, monthName, format, strict);
1192
+ return handleStrictParse$1.call(this, monthName, format, strict);
1193
1193
  }
1194
1194
 
1195
1195
  if (!this._monthsParse) {
@@ -1274,7 +1274,7 @@ function getSetMonth(value) {
1274
1274
  hooks.updateOffset(this, true);
1275
1275
  return this;
1276
1276
  } else {
1277
- return get(this, 'Month');
1277
+ return get$2(this, 'Month');
1278
1278
  }
1279
1279
  }
1280
1280
 
@@ -1632,7 +1632,7 @@ function localeWeekdaysMin(m) {
1632
1632
  : this._weekdaysMin;
1633
1633
  }
1634
1634
 
1635
- function handleStrictParse$1(weekdayName, format, strict) {
1635
+ function handleStrictParse(weekdayName, format, strict) {
1636
1636
  var i,
1637
1637
  ii,
1638
1638
  mom,
@@ -1709,7 +1709,7 @@ function localeWeekdaysParse(weekdayName, format, strict) {
1709
1709
  var i, mom, regex;
1710
1710
 
1711
1711
  if (this._weekdaysParseExact) {
1712
- return handleStrictParse$1.call(this, weekdayName, format, strict);
1712
+ return handleStrictParse.call(this, weekdayName, format, strict);
1713
1713
  }
1714
1714
 
1715
1715
  if (!this._weekdaysParse) {
@@ -1779,7 +1779,7 @@ function getSetDayOfWeek(input) {
1779
1779
  return input != null ? this : NaN;
1780
1780
  }
1781
1781
 
1782
- var day = get(this, 'Day');
1782
+ var day = get$2(this, 'Day');
1783
1783
  if (input != null) {
1784
1784
  input = parseWeekday(input, this.localeData());
1785
1785
  return this.add(input - day, 'd');
@@ -2944,7 +2944,7 @@ function configFromStringAndArray(config) {
2944
2944
  tempConfig._f = config._f[i];
2945
2945
  configFromStringAndFormat(tempConfig);
2946
2946
 
2947
- if (isValid(tempConfig)) {
2947
+ if (isValid$2(tempConfig)) {
2948
2948
  validFormatFound = true;
2949
2949
  }
2950
2950
 
@@ -3014,7 +3014,7 @@ function prepareConfig(config) {
3014
3014
  config._locale = config._locale || getLocale(config._l);
3015
3015
 
3016
3016
  if (input === null || (format === undefined && input === '')) {
3017
- return createInvalid({ nullInput: true });
3017
+ return createInvalid$1({ nullInput: true });
3018
3018
  }
3019
3019
 
3020
3020
  if (typeof input === 'string') {
@@ -3033,7 +3033,7 @@ function prepareConfig(config) {
3033
3033
  configFromInput(config);
3034
3034
  }
3035
3035
 
3036
- if (!isValid(config)) {
3036
+ if (!isValid$2(config)) {
3037
3037
  config._d = null;
3038
3038
  }
3039
3039
 
@@ -3105,7 +3105,7 @@ var prototypeMin = deprecate(
3105
3105
  if (this.isValid() && other.isValid()) {
3106
3106
  return other < this ? this : other;
3107
3107
  } else {
3108
- return createInvalid();
3108
+ return createInvalid$1();
3109
3109
  }
3110
3110
  }
3111
3111
  ),
@@ -3116,7 +3116,7 @@ var prototypeMin = deprecate(
3116
3116
  if (this.isValid() && other.isValid()) {
3117
3117
  return other > this ? this : other;
3118
3118
  } else {
3119
- return createInvalid();
3119
+ return createInvalid$1();
3120
3120
  }
3121
3121
  }
3122
3122
  );
@@ -3207,7 +3207,7 @@ function isValid$1() {
3207
3207
  return this._isValid;
3208
3208
  }
3209
3209
 
3210
- function createInvalid$1() {
3210
+ function createInvalid() {
3211
3211
  return createDuration(NaN);
3212
3212
  }
3213
3213
 
@@ -3397,7 +3397,7 @@ function getSetOffset(input, keepLocalTime, keepMinutes) {
3397
3397
  }
3398
3398
  if (offset !== input) {
3399
3399
  if (!keepLocalTime || this._changeInProgress) {
3400
- addSubtract(
3400
+ addSubtract$1(
3401
3401
  this,
3402
3402
  createDuration(input - offset, 'm'),
3403
3403
  1,
@@ -3590,7 +3590,7 @@ function createDuration(input, key) {
3590
3590
  }
3591
3591
 
3592
3592
  createDuration.fn = Duration.prototype;
3593
- createDuration.invalid = createInvalid$1;
3593
+ createDuration.invalid = createInvalid;
3594
3594
 
3595
3595
  function parseIso(inp, sign) {
3596
3596
  // We'd normally use ~~inp for this, but unfortunately it also
@@ -3654,12 +3654,12 @@ function createAdder(direction, name) {
3654
3654
  }
3655
3655
 
3656
3656
  dur = createDuration(val, period);
3657
- addSubtract(this, dur, direction);
3657
+ addSubtract$1(this, dur, direction);
3658
3658
  return this;
3659
3659
  };
3660
3660
  }
3661
3661
 
3662
- function addSubtract(mom, duration, isAdding, updateOffset) {
3662
+ function addSubtract$1(mom, duration, isAdding, updateOffset) {
3663
3663
  var milliseconds = duration._milliseconds,
3664
3664
  days = absRound(duration._days),
3665
3665
  months = absRound(duration._months);
@@ -3672,10 +3672,10 @@ function addSubtract(mom, duration, isAdding, updateOffset) {
3672
3672
  updateOffset = updateOffset == null ? true : updateOffset;
3673
3673
 
3674
3674
  if (months) {
3675
- setMonth(mom, get(mom, 'Month') + months * isAdding);
3675
+ setMonth(mom, get$2(mom, 'Month') + months * isAdding);
3676
3676
  }
3677
3677
  if (days) {
3678
- set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
3678
+ set(mom, 'Date', get$2(mom, 'Date') + days * isAdding);
3679
3679
  }
3680
3680
  if (milliseconds) {
3681
3681
  mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
@@ -3685,8 +3685,8 @@ function addSubtract(mom, duration, isAdding, updateOffset) {
3685
3685
  }
3686
3686
  }
3687
3687
 
3688
- var add = createAdder(1, 'add'),
3689
- subtract = createAdder(-1, 'subtract');
3688
+ var add$1 = createAdder(1, 'add'),
3689
+ subtract$1 = createAdder(-1, 'subtract');
3690
3690
 
3691
3691
  function isString(input) {
3692
3692
  return typeof input === 'string' || input instanceof String;
@@ -3798,7 +3798,7 @@ function getCalendarFormat(myMoment, now) {
3798
3798
  : 'sameElse';
3799
3799
  }
3800
3800
 
3801
- function calendar$1(time, formats) {
3801
+ function calendar(time, formats) {
3802
3802
  // Support for single parameter, formats only overload to the calendar function
3803
3803
  if (arguments.length === 1) {
3804
3804
  if (!arguments[0]) {
@@ -3828,7 +3828,7 @@ function calendar$1(time, formats) {
3828
3828
  );
3829
3829
  }
3830
3830
 
3831
- function clone() {
3831
+ function clone$1() {
3832
3832
  return new Moment(this);
3833
3833
  }
3834
3834
 
@@ -3984,7 +3984,7 @@ function toString() {
3984
3984
  return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
3985
3985
  }
3986
3986
 
3987
- function toISOString(keepOffset) {
3987
+ function toISOString$1(keepOffset) {
3988
3988
  if (!this.isValid()) {
3989
3989
  return null;
3990
3990
  }
@@ -4124,7 +4124,7 @@ var MS_PER_SECOND = 1000,
4124
4124
  MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
4125
4125
 
4126
4126
  // actual modulo - handles negative numbers (for dates before 1970):
4127
- function mod$1(dividend, divisor) {
4127
+ function mod(dividend, divisor) {
4128
4128
  return ((dividend % divisor) + divisor) % divisor;
4129
4129
  }
4130
4130
 
@@ -4191,18 +4191,18 @@ function startOf(units) {
4191
4191
  break;
4192
4192
  case 'hour':
4193
4193
  time = this._d.valueOf();
4194
- time -= mod$1(
4194
+ time -= mod(
4195
4195
  time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
4196
4196
  MS_PER_HOUR
4197
4197
  );
4198
4198
  break;
4199
4199
  case 'minute':
4200
4200
  time = this._d.valueOf();
4201
- time -= mod$1(time, MS_PER_MINUTE);
4201
+ time -= mod(time, MS_PER_MINUTE);
4202
4202
  break;
4203
4203
  case 'second':
4204
4204
  time = this._d.valueOf();
4205
- time -= mod$1(time, MS_PER_SECOND);
4205
+ time -= mod(time, MS_PER_SECOND);
4206
4206
  break;
4207
4207
  }
4208
4208
 
@@ -4259,7 +4259,7 @@ function endOf(units) {
4259
4259
  time = this._d.valueOf();
4260
4260
  time +=
4261
4261
  MS_PER_HOUR -
4262
- mod$1(
4262
+ mod(
4263
4263
  time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
4264
4264
  MS_PER_HOUR
4265
4265
  ) -
@@ -4267,11 +4267,11 @@ function endOf(units) {
4267
4267
  break;
4268
4268
  case 'minute':
4269
4269
  time = this._d.valueOf();
4270
- time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
4270
+ time += MS_PER_MINUTE - mod(time, MS_PER_MINUTE) - 1;
4271
4271
  break;
4272
4272
  case 'second':
4273
4273
  time = this._d.valueOf();
4274
- time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
4274
+ time += MS_PER_SECOND - mod(time, MS_PER_SECOND) - 1;
4275
4275
  break;
4276
4276
  }
4277
4277
 
@@ -4280,7 +4280,7 @@ function endOf(units) {
4280
4280
  return this;
4281
4281
  }
4282
4282
 
4283
- function valueOf() {
4283
+ function valueOf$1() {
4284
4284
  return this._d.valueOf() - (this._offset || 0) * 60000;
4285
4285
  }
4286
4286
 
@@ -4323,8 +4323,8 @@ function toJSON() {
4323
4323
  return this.isValid() ? this.toISOString() : null;
4324
4324
  }
4325
4325
 
4326
- function isValid$2() {
4327
- return isValid(this);
4326
+ function isValid() {
4327
+ return isValid$2(this);
4328
4328
  }
4329
4329
 
4330
4330
  function parsingFlags() {
@@ -4899,106 +4899,106 @@ function getZoneName() {
4899
4899
  return this._isUTC ? 'Coordinated Universal Time' : '';
4900
4900
  }
4901
4901
 
4902
- var proto = Moment.prototype;
4902
+ var proto$2 = Moment.prototype;
4903
4903
 
4904
- proto.add = add;
4905
- proto.calendar = calendar$1;
4906
- proto.clone = clone;
4907
- proto.diff = diff;
4908
- proto.endOf = endOf;
4909
- proto.format = format;
4910
- proto.from = from;
4911
- proto.fromNow = fromNow;
4912
- proto.to = to;
4913
- proto.toNow = toNow;
4914
- proto.get = stringGet;
4915
- proto.invalidAt = invalidAt;
4916
- proto.isAfter = isAfter;
4917
- proto.isBefore = isBefore;
4918
- proto.isBetween = isBetween;
4919
- proto.isSame = isSame;
4920
- proto.isSameOrAfter = isSameOrAfter;
4921
- proto.isSameOrBefore = isSameOrBefore;
4922
- proto.isValid = isValid$2;
4923
- proto.lang = lang;
4924
- proto.locale = locale;
4925
- proto.localeData = localeData;
4926
- proto.max = prototypeMax;
4927
- proto.min = prototypeMin;
4928
- proto.parsingFlags = parsingFlags;
4929
- proto.set = stringSet;
4930
- proto.startOf = startOf;
4931
- proto.subtract = subtract;
4932
- proto.toArray = toArray;
4933
- proto.toObject = toObject;
4934
- proto.toDate = toDate;
4935
- proto.toISOString = toISOString;
4936
- proto.inspect = inspect;
4904
+ proto$2.add = add$1;
4905
+ proto$2.calendar = calendar;
4906
+ proto$2.clone = clone$1;
4907
+ proto$2.diff = diff;
4908
+ proto$2.endOf = endOf;
4909
+ proto$2.format = format;
4910
+ proto$2.from = from;
4911
+ proto$2.fromNow = fromNow;
4912
+ proto$2.to = to;
4913
+ proto$2.toNow = toNow;
4914
+ proto$2.get = stringGet;
4915
+ proto$2.invalidAt = invalidAt;
4916
+ proto$2.isAfter = isAfter;
4917
+ proto$2.isBefore = isBefore;
4918
+ proto$2.isBetween = isBetween;
4919
+ proto$2.isSame = isSame;
4920
+ proto$2.isSameOrAfter = isSameOrAfter;
4921
+ proto$2.isSameOrBefore = isSameOrBefore;
4922
+ proto$2.isValid = isValid;
4923
+ proto$2.lang = lang;
4924
+ proto$2.locale = locale;
4925
+ proto$2.localeData = localeData;
4926
+ proto$2.max = prototypeMax;
4927
+ proto$2.min = prototypeMin;
4928
+ proto$2.parsingFlags = parsingFlags;
4929
+ proto$2.set = stringSet;
4930
+ proto$2.startOf = startOf;
4931
+ proto$2.subtract = subtract$1;
4932
+ proto$2.toArray = toArray;
4933
+ proto$2.toObject = toObject;
4934
+ proto$2.toDate = toDate;
4935
+ proto$2.toISOString = toISOString$1;
4936
+ proto$2.inspect = inspect;
4937
4937
  if (typeof Symbol !== 'undefined' && Symbol.for != null) {
4938
- proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
4938
+ proto$2[Symbol.for('nodejs.util.inspect.custom')] = function () {
4939
4939
  return 'Moment<' + this.format() + '>';
4940
4940
  };
4941
4941
  }
4942
- proto.toJSON = toJSON;
4943
- proto.toString = toString;
4944
- proto.unix = unix;
4945
- proto.valueOf = valueOf;
4946
- proto.creationData = creationData;
4947
- proto.eraName = getEraName;
4948
- proto.eraNarrow = getEraNarrow;
4949
- proto.eraAbbr = getEraAbbr;
4950
- proto.eraYear = getEraYear;
4951
- proto.year = getSetYear;
4952
- proto.isLeapYear = getIsLeapYear;
4953
- proto.weekYear = getSetWeekYear;
4954
- proto.isoWeekYear = getSetISOWeekYear;
4955
- proto.quarter = proto.quarters = getSetQuarter;
4956
- proto.month = getSetMonth;
4957
- proto.daysInMonth = getDaysInMonth;
4958
- proto.week = proto.weeks = getSetWeek;
4959
- proto.isoWeek = proto.isoWeeks = getSetISOWeek;
4960
- proto.weeksInYear = getWeeksInYear;
4961
- proto.weeksInWeekYear = getWeeksInWeekYear;
4962
- proto.isoWeeksInYear = getISOWeeksInYear;
4963
- proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
4964
- proto.date = getSetDayOfMonth;
4965
- proto.day = proto.days = getSetDayOfWeek;
4966
- proto.weekday = getSetLocaleDayOfWeek;
4967
- proto.isoWeekday = getSetISODayOfWeek;
4968
- proto.dayOfYear = getSetDayOfYear;
4969
- proto.hour = proto.hours = getSetHour;
4970
- proto.minute = proto.minutes = getSetMinute;
4971
- proto.second = proto.seconds = getSetSecond;
4972
- proto.millisecond = proto.milliseconds = getSetMillisecond;
4973
- proto.utcOffset = getSetOffset;
4974
- proto.utc = setOffsetToUTC;
4975
- proto.local = setOffsetToLocal;
4976
- proto.parseZone = setOffsetToParsedOffset;
4977
- proto.hasAlignedHourOffset = hasAlignedHourOffset;
4978
- proto.isDST = isDaylightSavingTime;
4979
- proto.isLocal = isLocal;
4980
- proto.isUtcOffset = isUtcOffset;
4981
- proto.isUtc = isUtc;
4982
- proto.isUTC = isUtc;
4983
- proto.zoneAbbr = getZoneAbbr;
4984
- proto.zoneName = getZoneName;
4985
- proto.dates = deprecate(
4942
+ proto$2.toJSON = toJSON;
4943
+ proto$2.toString = toString;
4944
+ proto$2.unix = unix;
4945
+ proto$2.valueOf = valueOf$1;
4946
+ proto$2.creationData = creationData;
4947
+ proto$2.eraName = getEraName;
4948
+ proto$2.eraNarrow = getEraNarrow;
4949
+ proto$2.eraAbbr = getEraAbbr;
4950
+ proto$2.eraYear = getEraYear;
4951
+ proto$2.year = getSetYear;
4952
+ proto$2.isLeapYear = getIsLeapYear;
4953
+ proto$2.weekYear = getSetWeekYear;
4954
+ proto$2.isoWeekYear = getSetISOWeekYear;
4955
+ proto$2.quarter = proto$2.quarters = getSetQuarter;
4956
+ proto$2.month = getSetMonth;
4957
+ proto$2.daysInMonth = getDaysInMonth;
4958
+ proto$2.week = proto$2.weeks = getSetWeek;
4959
+ proto$2.isoWeek = proto$2.isoWeeks = getSetISOWeek;
4960
+ proto$2.weeksInYear = getWeeksInYear;
4961
+ proto$2.weeksInWeekYear = getWeeksInWeekYear;
4962
+ proto$2.isoWeeksInYear = getISOWeeksInYear;
4963
+ proto$2.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
4964
+ proto$2.date = getSetDayOfMonth;
4965
+ proto$2.day = proto$2.days = getSetDayOfWeek;
4966
+ proto$2.weekday = getSetLocaleDayOfWeek;
4967
+ proto$2.isoWeekday = getSetISODayOfWeek;
4968
+ proto$2.dayOfYear = getSetDayOfYear;
4969
+ proto$2.hour = proto$2.hours = getSetHour;
4970
+ proto$2.minute = proto$2.minutes = getSetMinute;
4971
+ proto$2.second = proto$2.seconds = getSetSecond;
4972
+ proto$2.millisecond = proto$2.milliseconds = getSetMillisecond;
4973
+ proto$2.utcOffset = getSetOffset;
4974
+ proto$2.utc = setOffsetToUTC;
4975
+ proto$2.local = setOffsetToLocal;
4976
+ proto$2.parseZone = setOffsetToParsedOffset;
4977
+ proto$2.hasAlignedHourOffset = hasAlignedHourOffset;
4978
+ proto$2.isDST = isDaylightSavingTime;
4979
+ proto$2.isLocal = isLocal;
4980
+ proto$2.isUtcOffset = isUtcOffset;
4981
+ proto$2.isUtc = isUtc;
4982
+ proto$2.isUTC = isUtc;
4983
+ proto$2.zoneAbbr = getZoneAbbr;
4984
+ proto$2.zoneName = getZoneName;
4985
+ proto$2.dates = deprecate(
4986
4986
  'dates accessor is deprecated. Use date instead.',
4987
4987
  getSetDayOfMonth
4988
4988
  );
4989
- proto.months = deprecate(
4989
+ proto$2.months = deprecate(
4990
4990
  'months accessor is deprecated. Use month instead',
4991
4991
  getSetMonth
4992
4992
  );
4993
- proto.years = deprecate(
4993
+ proto$2.years = deprecate(
4994
4994
  'years accessor is deprecated. Use year instead',
4995
4995
  getSetYear
4996
4996
  );
4997
- proto.zone = deprecate(
4997
+ proto$2.zone = deprecate(
4998
4998
  'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
4999
4999
  getSetZone
5000
5000
  );
5001
- proto.isDSTShifted = deprecate(
5001
+ proto$2.isDSTShifted = deprecate(
5002
5002
  'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
5003
5003
  isDaylightSavingTimeShifted
5004
5004
  );
@@ -5017,15 +5017,15 @@ function preParsePostFormat(string) {
5017
5017
 
5018
5018
  var proto$1 = Locale.prototype;
5019
5019
 
5020
- proto$1.calendar = calendar;
5020
+ proto$1.calendar = calendar$1;
5021
5021
  proto$1.longDateFormat = longDateFormat;
5022
5022
  proto$1.invalidDate = invalidDate;
5023
5023
  proto$1.ordinal = ordinal;
5024
5024
  proto$1.preparse = preParsePostFormat;
5025
5025
  proto$1.postformat = preParsePostFormat;
5026
- proto$1.relativeTime = relativeTime;
5026
+ proto$1.relativeTime = relativeTime$1;
5027
5027
  proto$1.pastFuture = pastFuture;
5028
- proto$1.set = set;
5028
+ proto$1.set = set$1;
5029
5029
  proto$1.eras = localeEras;
5030
5030
  proto$1.erasParse = localeErasParse;
5031
5031
  proto$1.erasConvertYear = localeErasConvertYear;
@@ -5193,7 +5193,7 @@ hooks.langData = deprecate(
5193
5193
 
5194
5194
  var mathAbs = Math.abs;
5195
5195
 
5196
- function abs() {
5196
+ function abs$1() {
5197
5197
  var data = this._data;
5198
5198
 
5199
5199
  this._milliseconds = mathAbs(this._milliseconds);
@@ -5210,7 +5210,7 @@ function abs() {
5210
5210
  return this;
5211
5211
  }
5212
5212
 
5213
- function addSubtract$1(duration, input, value, direction) {
5213
+ function addSubtract(duration, input, value, direction) {
5214
5214
  var other = createDuration(input, value);
5215
5215
 
5216
5216
  duration._milliseconds += direction * other._milliseconds;
@@ -5221,13 +5221,13 @@ function addSubtract$1(duration, input, value, direction) {
5221
5221
  }
5222
5222
 
5223
5223
  // supports only 2.0-style add(1, 's') or add(duration)
5224
- function add$1(input, value) {
5225
- return addSubtract$1(this, input, value, 1);
5224
+ function add(input, value) {
5225
+ return addSubtract(this, input, value, 1);
5226
5226
  }
5227
5227
 
5228
5228
  // supports only 2.0-style subtract(1, 's') or subtract(duration)
5229
- function subtract$1(input, value) {
5230
- return addSubtract$1(this, input, value, -1);
5229
+ function subtract(input, value) {
5230
+ return addSubtract(this, input, value, -1);
5231
5231
  }
5232
5232
 
5233
5233
  function absCeil(number) {
@@ -5363,13 +5363,13 @@ var asMilliseconds = makeAs('ms'),
5363
5363
  asMonths = makeAs('M'),
5364
5364
  asQuarters = makeAs('Q'),
5365
5365
  asYears = makeAs('y'),
5366
- valueOf$1 = asMilliseconds;
5366
+ valueOf = asMilliseconds;
5367
5367
 
5368
- function clone$1() {
5368
+ function clone() {
5369
5369
  return createDuration(this);
5370
5370
  }
5371
5371
 
5372
- function get$2(units) {
5372
+ function get(units) {
5373
5373
  units = normalizeUnits(units);
5374
5374
  return this.isValid() ? this[units + 's']() : NaN;
5375
5375
  }
@@ -5408,7 +5408,7 @@ function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
5408
5408
  return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
5409
5409
  }
5410
5410
 
5411
- function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
5411
+ function relativeTime(posNegDuration, withoutSuffix, thresholds, locale) {
5412
5412
  var duration = createDuration(posNegDuration).abs(),
5413
5413
  seconds = round(duration.as('s')),
5414
5414
  minutes = round(duration.as('m')),
@@ -5496,7 +5496,7 @@ function humanize(argWithSuffix, argThresholds) {
5496
5496
  }
5497
5497
 
5498
5498
  locale = this.localeData();
5499
- output = relativeTime$1(this, !withSuffix, th, locale);
5499
+ output = relativeTime(this, !withSuffix, th, locale);
5500
5500
 
5501
5501
  if (withSuffix) {
5502
5502
  output = locale.pastFuture(+this, output);
@@ -5505,13 +5505,13 @@ function humanize(argWithSuffix, argThresholds) {
5505
5505
  return locale.postformat(output);
5506
5506
  }
5507
5507
 
5508
- var abs$1 = Math.abs;
5508
+ var abs = Math.abs;
5509
5509
 
5510
5510
  function sign(x) {
5511
5511
  return (x > 0) - (x < 0) || +x;
5512
5512
  }
5513
5513
 
5514
- function toISOString$1() {
5514
+ function toISOString() {
5515
5515
  // for ISO strings we do not use the normal bubbling rules:
5516
5516
  // * milliseconds bubble up until they become hours
5517
5517
  // * days do not bubble at all
@@ -5523,9 +5523,9 @@ function toISOString$1() {
5523
5523
  return this.localeData().invalidDate();
5524
5524
  }
5525
5525
 
5526
- var seconds = abs$1(this._milliseconds) / 1000,
5527
- days = abs$1(this._days),
5528
- months = abs$1(this._months),
5526
+ var seconds = abs(this._milliseconds) / 1000,
5527
+ days = abs(this._days),
5528
+ months = abs(this._months),
5529
5529
  minutes,
5530
5530
  hours,
5531
5531
  years,
@@ -5573,46 +5573,46 @@ function toISOString$1() {
5573
5573
  );
5574
5574
  }
5575
5575
 
5576
- var proto$2 = Duration.prototype;
5576
+ var proto = Duration.prototype;
5577
5577
 
5578
- proto$2.isValid = isValid$1;
5579
- proto$2.abs = abs;
5580
- proto$2.add = add$1;
5581
- proto$2.subtract = subtract$1;
5582
- proto$2.as = as;
5583
- proto$2.asMilliseconds = asMilliseconds;
5584
- proto$2.asSeconds = asSeconds;
5585
- proto$2.asMinutes = asMinutes;
5586
- proto$2.asHours = asHours;
5587
- proto$2.asDays = asDays;
5588
- proto$2.asWeeks = asWeeks;
5589
- proto$2.asMonths = asMonths;
5590
- proto$2.asQuarters = asQuarters;
5591
- proto$2.asYears = asYears;
5592
- proto$2.valueOf = valueOf$1;
5593
- proto$2._bubble = bubble;
5594
- proto$2.clone = clone$1;
5595
- proto$2.get = get$2;
5596
- proto$2.milliseconds = milliseconds;
5597
- proto$2.seconds = seconds;
5598
- proto$2.minutes = minutes;
5599
- proto$2.hours = hours;
5600
- proto$2.days = days;
5601
- proto$2.weeks = weeks;
5602
- proto$2.months = months;
5603
- proto$2.years = years;
5604
- proto$2.humanize = humanize;
5605
- proto$2.toISOString = toISOString$1;
5606
- proto$2.toString = toISOString$1;
5607
- proto$2.toJSON = toISOString$1;
5608
- proto$2.locale = locale;
5609
- proto$2.localeData = localeData;
5578
+ proto.isValid = isValid$1;
5579
+ proto.abs = abs$1;
5580
+ proto.add = add;
5581
+ proto.subtract = subtract;
5582
+ proto.as = as;
5583
+ proto.asMilliseconds = asMilliseconds;
5584
+ proto.asSeconds = asSeconds;
5585
+ proto.asMinutes = asMinutes;
5586
+ proto.asHours = asHours;
5587
+ proto.asDays = asDays;
5588
+ proto.asWeeks = asWeeks;
5589
+ proto.asMonths = asMonths;
5590
+ proto.asQuarters = asQuarters;
5591
+ proto.asYears = asYears;
5592
+ proto.valueOf = valueOf;
5593
+ proto._bubble = bubble;
5594
+ proto.clone = clone;
5595
+ proto.get = get;
5596
+ proto.milliseconds = milliseconds;
5597
+ proto.seconds = seconds;
5598
+ proto.minutes = minutes;
5599
+ proto.hours = hours;
5600
+ proto.days = days;
5601
+ proto.weeks = weeks;
5602
+ proto.months = months;
5603
+ proto.years = years;
5604
+ proto.humanize = humanize;
5605
+ proto.toISOString = toISOString;
5606
+ proto.toString = toISOString;
5607
+ proto.toJSON = toISOString;
5608
+ proto.locale = locale;
5609
+ proto.localeData = localeData;
5610
5610
 
5611
- proto$2.toIsoString = deprecate(
5611
+ proto.toIsoString = deprecate(
5612
5612
  'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
5613
- toISOString$1
5613
+ toISOString
5614
5614
  );
5615
- proto$2.lang = lang;
5615
+ proto.lang = lang;
5616
5616
 
5617
5617
  // FORMATTING
5618
5618
 
@@ -5631,12 +5631,17 @@ addParseToken('x', function (input, array, config) {
5631
5631
  });
5632
5632
 
5633
5633
  //! moment.js
5634
+ //! version : 2.30.1
5635
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
5636
+ //! license : MIT
5637
+ //! momentjs.com
5638
+
5634
5639
 
5635
5640
  hooks.version = '2.30.1';
5636
5641
 
5637
5642
  setHookCallback(createLocal);
5638
5643
 
5639
- hooks.fn = proto;
5644
+ hooks.fn = proto$2;
5640
5645
  hooks.min = min;
5641
5646
  hooks.max = max;
5642
5647
  hooks.now = now;
@@ -5645,7 +5650,7 @@ hooks.unix = createUnix;
5645
5650
  hooks.months = listMonths;
5646
5651
  hooks.isDate = isDate;
5647
5652
  hooks.locale = getSetGlobalLocale;
5648
- hooks.invalid = createInvalid;
5653
+ hooks.invalid = createInvalid$1;
5649
5654
  hooks.duration = createDuration;
5650
5655
  hooks.isMoment = isMoment;
5651
5656
  hooks.weekdays = listWeekdays;
@@ -5662,7 +5667,7 @@ hooks.normalizeUnits = normalizeUnits;
5662
5667
  hooks.relativeTimeRounding = getSetRelativeTimeRounding;
5663
5668
  hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
5664
5669
  hooks.calendarFormat = getCalendarFormat;
5665
- hooks.prototype = proto;
5670
+ hooks.prototype = proto$2;
5666
5671
 
5667
5672
  // currently HTML5 input type only supports 24-hour formats
5668
5673
  hooks.HTML5_FMT = {
@@ -5677,4 +5682,4 @@ hooks.HTML5_FMT = {
5677
5682
  MONTH: 'YYYY-MM', // <input type="month" />
5678
5683
  };
5679
5684
 
5680
- export default hooks;
5685
+ export { hooks as default };