cronstrue 3.44.0 → 3.46.0

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 (131) hide show
  1. package/dist/cronstrue-i18n.js +324 -889
  2. package/dist/cronstrue-i18n.min.js +1 -1
  3. package/dist/cronstrue.js +243 -346
  4. package/dist/cronstrue.min.js +1 -1
  5. package/dist/expressionDescriptor.d.ts +16 -9
  6. package/dist/i18n/allLocales.d.ts +6 -6
  7. package/dist/i18n/locale.d.ts +4 -4
  8. package/dist/i18n/locales/af.d.ts +1 -4
  9. package/dist/i18n/locales/ar.d.ts +0 -4
  10. package/dist/i18n/locales/az.d.ts +2 -4
  11. package/dist/i18n/locales/be.d.ts +0 -4
  12. package/dist/i18n/locales/bg.d.ts +1 -5
  13. package/dist/i18n/locales/ca.d.ts +0 -4
  14. package/dist/i18n/locales/cs.d.ts +0 -4
  15. package/dist/i18n/locales/da.d.ts +0 -4
  16. package/dist/i18n/locales/de.d.ts +0 -4
  17. package/dist/i18n/locales/en.d.ts +4 -6
  18. package/dist/i18n/locales/es.d.ts +0 -4
  19. package/dist/i18n/locales/fa.d.ts +0 -4
  20. package/dist/i18n/locales/fi.d.ts +1 -4
  21. package/dist/i18n/locales/fr.d.ts +0 -4
  22. package/dist/i18n/locales/he.d.ts +0 -4
  23. package/dist/i18n/locales/hr.d.ts +0 -4
  24. package/dist/i18n/locales/hu.d.ts +0 -4
  25. package/dist/i18n/locales/id.d.ts +0 -4
  26. package/dist/i18n/locales/it.d.ts +0 -4
  27. package/dist/i18n/locales/ja.d.ts +0 -4
  28. package/dist/i18n/locales/ko.d.ts +0 -4
  29. package/dist/i18n/locales/my.d.ts +0 -4
  30. package/dist/i18n/locales/nb.d.ts +0 -4
  31. package/dist/i18n/locales/nl.d.ts +0 -4
  32. package/dist/i18n/locales/nn.d.ts +0 -4
  33. package/dist/i18n/locales/pl.d.ts +0 -4
  34. package/dist/i18n/locales/pt_BR.d.ts +0 -4
  35. package/dist/i18n/locales/pt_PT.d.ts +0 -4
  36. package/dist/i18n/locales/ru.d.ts +0 -4
  37. package/dist/i18n/locales/sk.d.ts +0 -4
  38. package/dist/i18n/locales/sl.d.ts +0 -4
  39. package/dist/i18n/locales/sr.d.ts +0 -4
  40. package/dist/i18n/locales/sv.d.ts +0 -4
  41. package/dist/i18n/locales/sw.d.ts +0 -4
  42. package/dist/i18n/locales/tg.d.ts +0 -4
  43. package/dist/i18n/locales/th.d.ts +0 -4
  44. package/dist/i18n/locales/tr.d.ts +0 -4
  45. package/dist/i18n/locales/uk.d.ts +0 -4
  46. package/dist/i18n/locales/vi.d.ts +0 -4
  47. package/dist/i18n/locales/zh_CN.d.ts +1 -4
  48. package/dist/i18n/locales/zh_TW.d.ts +1 -4
  49. package/locales/af.js +0 -9
  50. package/locales/af.min.js +1 -1
  51. package/locales/ar.js +0 -12
  52. package/locales/ar.min.js +1 -1
  53. package/locales/az.js +0 -6
  54. package/locales/az.min.js +1 -1
  55. package/locales/be.js +0 -12
  56. package/locales/be.min.js +1 -1
  57. package/locales/bg.js +69 -65
  58. package/locales/bg.min.js +1 -1
  59. package/locales/ca.js +0 -12
  60. package/locales/ca.min.js +1 -1
  61. package/locales/cs.js +0 -12
  62. package/locales/cs.min.js +1 -1
  63. package/locales/da.js +0 -12
  64. package/locales/da.min.js +1 -1
  65. package/locales/de.js +0 -12
  66. package/locales/de.min.js +1 -1
  67. package/locales/en.js +6 -12
  68. package/locales/en.min.js +1 -1
  69. package/locales/es.js +0 -12
  70. package/locales/es.min.js +1 -1
  71. package/locales/fa.js +0 -12
  72. package/locales/fa.min.js +1 -1
  73. package/locales/fi.js +0 -9
  74. package/locales/fi.min.js +1 -1
  75. package/locales/fr.js +0 -12
  76. package/locales/fr.min.js +1 -1
  77. package/locales/he.js +0 -12
  78. package/locales/he.min.js +1 -1
  79. package/locales/hr.js +1 -21
  80. package/locales/hr.min.js +1 -1
  81. package/locales/hu.js +0 -12
  82. package/locales/hu.min.js +1 -1
  83. package/locales/id.js +0 -12
  84. package/locales/id.min.js +1 -1
  85. package/locales/it.js +0 -12
  86. package/locales/it.min.js +1 -1
  87. package/locales/ja.js +0 -12
  88. package/locales/ja.min.js +1 -1
  89. package/locales/ko.js +0 -12
  90. package/locales/ko.min.js +1 -1
  91. package/locales/my.js +0 -12
  92. package/locales/my.min.js +1 -1
  93. package/locales/nb.js +0 -12
  94. package/locales/nb.min.js +1 -1
  95. package/locales/nl.js +0 -12
  96. package/locales/nl.min.js +1 -1
  97. package/locales/nn.js +0 -12
  98. package/locales/nn.min.js +1 -1
  99. package/locales/pl.js +0 -12
  100. package/locales/pl.min.js +1 -1
  101. package/locales/pt_BR.js +6 -18
  102. package/locales/pt_BR.min.js +1 -1
  103. package/locales/pt_PT.js +6 -18
  104. package/locales/pt_PT.min.js +1 -1
  105. package/locales/ru.js +0 -12
  106. package/locales/ru.min.js +1 -1
  107. package/locales/sk.js +0 -12
  108. package/locales/sk.min.js +1 -1
  109. package/locales/sl.js +0 -12
  110. package/locales/sl.min.js +1 -1
  111. package/locales/sr.js +1 -21
  112. package/locales/sr.min.js +1 -1
  113. package/locales/sv.js +0 -12
  114. package/locales/sv.min.js +1 -1
  115. package/locales/sw.js +0 -12
  116. package/locales/sw.min.js +1 -1
  117. package/locales/tg.js +0 -12
  118. package/locales/tg.min.js +1 -1
  119. package/locales/th.js +0 -12
  120. package/locales/th.min.js +1 -1
  121. package/locales/tr.js +0 -12
  122. package/locales/tr.min.js +1 -1
  123. package/locales/uk.js +0 -12
  124. package/locales/uk.min.js +1 -1
  125. package/locales/vi.js +0 -12
  126. package/locales/vi.min.js +1 -1
  127. package/locales/zh_CN.js +0 -9
  128. package/locales/zh_CN.min.js +1 -1
  129. package/locales/zh_TW.js +0 -9
  130. package/locales/zh_TW.min.js +1 -1
  131. package/package.json +10 -11
@@ -19,6 +19,22 @@ return /******/ (() => { // webpackBootstrap
19
19
  Object.defineProperty(exports, "__esModule", ({ value: true }));
20
20
  exports.CronParser = void 0;
21
21
  var rangeValidator_1 = __webpack_require__(9515);
22
+ var DAYS = { SUN: 0, MON: 1, TUE: 2, WED: 3, THU: 4, FRI: 5, SAT: 6 };
23
+ var MONTHS = {
24
+ JAN: 1,
25
+ FEB: 2,
26
+ MAR: 3,
27
+ APR: 4,
28
+ MAY: 5,
29
+ JUN: 6,
30
+ JUL: 7,
31
+ AUG: 8,
32
+ SEP: 9,
33
+ OCT: 10,
34
+ NOV: 11,
35
+ DEC: 12,
36
+ };
37
+ var STEP_RANGE_THROUGH = { 4: "12", 5: "6", 6: "9999" };
22
38
  var CronParser = (function () {
23
39
  function CronParser(expression, dayOfWeekStartIndexZero, monthStartIndexZero) {
24
40
  if (dayOfWeekStartIndexZero === void 0) { dayOfWeekStartIndexZero = true; }
@@ -30,12 +46,12 @@ var CronParser = (function () {
30
46
  CronParser.prototype.parse = function () {
31
47
  var _a;
32
48
  var parsed;
33
- var expression = (_a = this.expression) !== null && _a !== void 0 ? _a : '';
49
+ var expression = (_a = this.expression) !== null && _a !== void 0 ? _a : "";
34
50
  if (expression === "@reboot") {
35
51
  parsed = ["@reboot", "", "", "", "", "", ""];
36
52
  return parsed;
37
53
  }
38
- else if (expression.startsWith('@')) {
54
+ else if (expression.startsWith("@")) {
39
55
  var special = this.parseSpecial(this.expression);
40
56
  parsed = this.extractParts(special);
41
57
  }
@@ -48,18 +64,17 @@ var CronParser = (function () {
48
64
  };
49
65
  CronParser.prototype.parseSpecial = function (expression) {
50
66
  var specialExpressions = {
51
- '@yearly': '0 0 1 JAN *',
52
- '@annually': '0 0 1 JAN *',
53
- '@monthly': '0 0 1 * *',
54
- '@weekly': '0 0 * * SUN',
55
- '@daily': '0 0 * * *',
56
- '@midnight': '0 0 * * *',
57
- '@hourly': '0 * * * *',
58
- '@reboot': '@reboot'
67
+ "@yearly": "0 0 1 JAN *",
68
+ "@annually": "0 0 1 JAN *",
69
+ "@monthly": "0 0 1 * *",
70
+ "@weekly": "0 0 * * SUN",
71
+ "@daily": "0 0 * * *",
72
+ "@midnight": "0 0 * * *",
73
+ "@hourly": "0 * * * *",
59
74
  };
60
75
  var special = specialExpressions[expression];
61
76
  if (!special) {
62
- throw new Error('Unknown special expression.');
77
+ throw new Error("Unknown special expression.");
63
78
  }
64
79
  return special;
65
80
  };
@@ -112,23 +127,15 @@ var CronParser = (function () {
112
127
  expressionParts[3] = expressionParts[3].replace("?", "*");
113
128
  expressionParts[5] = expressionParts[5].replace("?", "*");
114
129
  expressionParts[2] = expressionParts[2].replace("?", "*");
115
- if (expressionParts[0].indexOf("0/") == 0) {
116
- expressionParts[0] = expressionParts[0].replace("0/", "*/");
117
- }
118
- if (expressionParts[1].indexOf("0/") == 0) {
119
- expressionParts[1] = expressionParts[1].replace("0/", "*/");
120
- }
121
- if (expressionParts[2].indexOf("0/") == 0) {
122
- expressionParts[2] = expressionParts[2].replace("0/", "*/");
123
- }
124
- if (expressionParts[3].indexOf("1/") == 0) {
125
- expressionParts[3] = expressionParts[3].replace("1/", "*/");
130
+ var firstValueSteps = { 0: "0/", 1: "0/", 2: "0/", 3: "1/", 6: "1/" };
131
+ if (!this.monthStartIndexZero) {
132
+ firstValueSteps[4] = "1/";
126
133
  }
127
- if (!this.monthStartIndexZero && expressionParts[4].indexOf("1/") == 0) {
128
- expressionParts[4] = expressionParts[4].replace("1/", "*/");
129
- }
130
- if (expressionParts[6].indexOf("1/") == 0) {
131
- expressionParts[6] = expressionParts[6].replace("1/", "*/");
134
+ for (var _i = 0, _a = Object.keys(firstValueSteps).map(Number); _i < _a.length; _i++) {
135
+ var index = _a[_i];
136
+ if (expressionParts[index].indexOf(firstValueSteps[index]) == 0) {
137
+ expressionParts[index] = expressionParts[index].replace(firstValueSteps[index], "*/");
138
+ }
132
139
  }
133
140
  if (this.dayOfWeekStartIndexZero) {
134
141
  expressionParts[5] = expressionParts[5]
@@ -153,55 +160,29 @@ var CronParser = (function () {
153
160
  .split(",")
154
161
  .map(function (item) { return (item == "L" ? "6" : item); })
155
162
  .join(",");
156
- if (expressionParts[3] == "?") {
157
- expressionParts[3] = "*";
158
- }
159
163
  var weekdayOffsetRegex = /^\d{1,2}W[+-]\d{1,2}$/;
160
164
  if (expressionParts[3].indexOf("W") > -1 &&
161
165
  (expressionParts[3].indexOf(",") > -1 || /[-+]/.test(expressionParts[3])) &&
162
166
  !weekdayOffsetRegex.test(expressionParts[3])) {
163
167
  throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");
164
168
  }
165
- var days = {
166
- SUN: 0,
167
- MON: 1,
168
- TUE: 2,
169
- WED: 3,
170
- THU: 4,
171
- FRI: 5,
172
- SAT: 6,
173
- };
174
- for (var day in days) {
175
- expressionParts[5] = expressionParts[5].replace(new RegExp(day, "gi"), days[day].toString());
169
+ for (var day in DAYS) {
170
+ expressionParts[5] = expressionParts[5].replace(new RegExp(day, "gi"), DAYS[day].toString());
176
171
  }
177
172
  expressionParts[5] = expressionParts[5]
178
173
  .split(",")
179
174
  .filter(function (item, index, items) { return item === "" || items.indexOf(item) === index; })
180
175
  .join(",");
181
176
  expressionParts[4] = expressionParts[4].replace(/(^\d{1,2})|([^#/\s\d]\d{1,2})/g, function (t) {
182
- var dowDigits = t.replace(/\D/, "");
183
- var dowDigitsAdjusted = dowDigits;
177
+ var monthDigits = t.replace(/\D/, "");
178
+ var monthDigitsAdjusted = monthDigits;
184
179
  if (_this.monthStartIndexZero) {
185
- dowDigitsAdjusted = (parseInt(dowDigits) + 1).toString();
180
+ monthDigitsAdjusted = (parseInt(monthDigits) + 1).toString();
186
181
  }
187
- return t.replace(dowDigits, dowDigitsAdjusted);
182
+ return t.replace(monthDigits, monthDigitsAdjusted);
188
183
  });
189
- var months = {
190
- JAN: 1,
191
- FEB: 2,
192
- MAR: 3,
193
- APR: 4,
194
- MAY: 5,
195
- JUN: 6,
196
- JUL: 7,
197
- AUG: 8,
198
- SEP: 9,
199
- OCT: 10,
200
- NOV: 11,
201
- DEC: 12,
202
- };
203
- for (var month in months) {
204
- expressionParts[4] = expressionParts[4].replace(new RegExp(month, "gi"), months[month].toString());
184
+ for (var month in MONTHS) {
185
+ expressionParts[4] = expressionParts[4].replace(new RegExp(month, "gi"), MONTHS[month].toString());
205
186
  }
206
187
  if (expressionParts[0] == "0") {
207
188
  expressionParts[0] = "";
@@ -221,26 +202,10 @@ var CronParser = (function () {
221
202
  if (expressionParts[i] == "*/1") {
222
203
  expressionParts[i] = "*";
223
204
  }
224
- if (expressionParts[i].indexOf("/") > -1 && !/^\*|\-|\,/.test(expressionParts[i])) {
225
- var stepRangeThrough = null;
226
- switch (i) {
227
- case 4:
228
- stepRangeThrough = "12";
229
- break;
230
- case 5:
231
- stepRangeThrough = "6";
232
- break;
233
- case 6:
234
- stepRangeThrough = "9999";
235
- break;
236
- default:
237
- stepRangeThrough = null;
238
- break;
239
- }
240
- if (stepRangeThrough !== null) {
241
- var parts = expressionParts[i].split("/");
242
- expressionParts[i] = "".concat(parts[0], "-").concat(stepRangeThrough, "/").concat(parts[1]);
243
- }
205
+ var stepRangeThrough = STEP_RANGE_THROUGH[i];
206
+ if (stepRangeThrough && expressionParts[i].indexOf("/") > -1 && !/^\*|\-|\,/.test(expressionParts[i])) {
207
+ var parts = expressionParts[i].split("/");
208
+ expressionParts[i] = "".concat(parts[0], "-").concat(stepRangeThrough, "/").concat(parts[1]);
244
209
  }
245
210
  }
246
211
  };
@@ -281,15 +246,28 @@ exports.CronParser = CronParser;
281
246
  (__unused_webpack_module, exports, __webpack_require__) {
282
247
 
283
248
 
249
+ var __assign = (this && this.__assign) || function () {
250
+ __assign = Object.assign || function(t) {
251
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
252
+ s = arguments[i];
253
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
254
+ t[p] = s[p];
255
+ }
256
+ return t;
257
+ };
258
+ return __assign.apply(this, arguments);
259
+ };
284
260
  Object.defineProperty(exports, "__esModule", ({ value: true }));
285
261
  exports.ExpressionDescriptor = void 0;
286
262
  var stringUtilities_1 = __webpack_require__(1823);
287
263
  var cronParser_1 = __webpack_require__(6949);
264
+ var en_1 = __webpack_require__(9486);
265
+ var english = new en_1.en();
288
266
  var ExpressionDescriptor = (function () {
289
267
  function ExpressionDescriptor(expression, options) {
290
268
  this.expression = expression;
291
269
  this.options = options;
292
- this.expressionParts = new Array(5);
270
+ this.expressionParts = [];
293
271
  if (!this.options.locale && ExpressionDescriptor.defaultLocale) {
294
272
  this.options.locale = ExpressionDescriptor.defaultLocale;
295
273
  }
@@ -315,11 +293,7 @@ var ExpressionDescriptor = (function () {
315
293
  locale: locale,
316
294
  logicalAndDayFields: logicalAndDayFields,
317
295
  };
318
- if (options.tzOffset) {
319
- console.warn("'tzOffset' option has been deprecated and is no longer supported.");
320
- }
321
- var descripter = new ExpressionDescriptor(expression, options);
322
- return descripter.getFullDescription();
296
+ return new ExpressionDescriptor(expression, options).getFullDescription();
323
297
  };
324
298
  ExpressionDescriptor.initialize = function (localesLoader, defaultLocale) {
325
299
  if (defaultLocale === void 0) { defaultLocale = "en"; }
@@ -334,7 +308,7 @@ var ExpressionDescriptor = (function () {
334
308
  var parser = new cronParser_1.CronParser(this.expression, this.options.dayOfWeekStartIndexZero, this.options.monthStartIndexZero);
335
309
  this.expressionParts = parser.parse();
336
310
  if (this.expressionParts[0] === "@reboot") {
337
- return ((_b = (_a = this.i18n).atReboot) === null || _b === void 0 ? void 0 : _b.call(_a)) || "Run once, at startup";
311
+ return ((_b = (_a = this.i18n).atReboot) === null || _b === void 0 ? void 0 : _b.call(_a)) || english.atReboot();
338
312
  }
339
313
  var timeSegment = this.getTimeOfDayDescription();
340
314
  var dayOfMonthDesc = this.getDayOfMonthDescription();
@@ -343,7 +317,7 @@ var ExpressionDescriptor = (function () {
343
317
  var yearDesc = this.getYearDescription();
344
318
  description += timeSegment + dayOfMonthDesc + dayOfWeekDesc + monthDesc + yearDesc;
345
319
  description = this.transformVerbosity(description, !!this.options.verbose);
346
- description = description.charAt(0).toLocaleUpperCase() + description.substr(1);
320
+ description = description.charAt(0).toLocaleUpperCase() + description.substring(1);
347
321
  }
348
322
  catch (ex) {
349
323
  if (!this.options.throwExceptionOnParseError) {
@@ -414,47 +388,43 @@ var ExpressionDescriptor = (function () {
414
388
  };
415
389
  ExpressionDescriptor.prototype.getSecondsDescription = function () {
416
390
  var _this = this;
417
- var description = this.getSegmentDescription(this.expressionParts[0], this.i18n.everySecond(), function (s) {
418
- return s;
419
- }, function (s) {
420
- return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(s), s);
421
- }, function (s) {
422
- return _this.i18n.secondsX0ThroughX1PastTheMinute();
423
- }, function (s) {
424
- return s == "0"
425
- ? ""
426
- : parseInt(s) < 20
427
- ? _this.i18n.atX0SecondsPastTheMinute(s)
428
- : _this.i18n.atX0SecondsPastTheMinuteGt20() || _this.i18n.atX0SecondsPastTheMinute(s);
429
- }, { min: 0, max: 59 });
430
- return description;
391
+ return this.getSegmentDescription(this.expressionParts[0], {
392
+ all: this.i18n.everySecond(),
393
+ single: function (s) { return s; },
394
+ increment: function (s) { return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(s), s); },
395
+ range: function () { return _this.i18n.secondsX0ThroughX1PastTheMinute(); },
396
+ format: function (s) {
397
+ var _a, _b;
398
+ return s == "0"
399
+ ? ""
400
+ : parseInt(s) < 20
401
+ ? _this.i18n.atX0SecondsPastTheMinute(s)
402
+ : ((_b = (_a = _this.i18n).atX0SecondsPastTheMinuteGt20) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.i18n.atX0SecondsPastTheMinute(s);
403
+ },
404
+ bounds: { min: 0, max: 59 },
405
+ });
431
406
  };
432
407
  ExpressionDescriptor.prototype.getMinutesDescription = function () {
433
408
  var _this = this;
434
409
  var secondsExpression = this.expressionParts[0];
435
410
  var hourExpression = this.expressionParts[2];
436
- var description = this.getSegmentDescription(this.expressionParts[1], this.i18n.everyMinute(), function (s) {
437
- return s;
438
- }, function (s) {
439
- return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(s), s);
440
- }, function (s) {
441
- return _this.i18n.minutesX0ThroughX1PastTheHour();
442
- }, function (s) {
443
- var _a, _b;
444
- try {
411
+ return this.getSegmentDescription(this.expressionParts[1], {
412
+ all: this.i18n.everyMinute(),
413
+ single: function (s) { return s; },
414
+ increment: function (s) { return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(s), s); },
415
+ range: function () { return _this.i18n.minutesX0ThroughX1PastTheHour(); },
416
+ format: function (s) {
417
+ var _a, _b, _c, _d;
445
418
  return s == "0" && hourExpression.indexOf("/") == -1 && secondsExpression == ""
446
419
  ? _this.i18n.everyHour()
447
420
  : s == "0"
448
421
  ? ((_b = (_a = _this.i18n).onTheHour) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.i18n.atX0MinutesPastTheHour(s)
449
422
  : parseInt(s) < 20
450
423
  ? _this.i18n.atX0MinutesPastTheHour(s)
451
- : _this.i18n.atX0MinutesPastTheHourGt20() || _this.i18n.atX0MinutesPastTheHour(s);
452
- }
453
- catch (e) {
454
- return _this.i18n.atX0MinutesPastTheHour(s);
455
- }
456
- }, { min: 0, max: 59 });
457
- return description;
424
+ : ((_d = (_c = _this.i18n).atX0MinutesPastTheHourGt20) === null || _d === void 0 ? void 0 : _d.call(_c)) || _this.i18n.atX0MinutesPastTheHour(s);
425
+ },
426
+ bounds: { min: 0, max: 59 },
427
+ });
458
428
  };
459
429
  ExpressionDescriptor.prototype.getHoursDescription = function () {
460
430
  var _this = this;
@@ -472,23 +442,22 @@ var ExpressionDescriptor = (function () {
472
442
  hourIndex += rangeParts.length;
473
443
  });
474
444
  var evaluationIndex = 0;
475
- var description = this.getSegmentDescription(expression, this.i18n.everyHour(), function (s) {
476
- var match = rangeEndValues.find(function (r) { return r.value === s && r.index === evaluationIndex; });
477
- var isRangeEndWithNonZeroMinute = match && _this.expressionParts[1] !== "0";
478
- evaluationIndex++;
479
- return isRangeEndWithNonZeroMinute ? _this.formatTime(s, "59", "") : _this.formatTime(s, "0", "");
480
- }, function (s) {
481
- return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Hours(s), s);
482
- }, function (s) {
483
- return _this.i18n.betweenX0AndX1();
484
- }, function (s) {
485
- return _this.i18n.atX0();
486
- }, { min: 0, max: 23 });
487
- return description;
445
+ return this.getSegmentDescription(expression, {
446
+ all: this.i18n.everyHour(),
447
+ single: function (s) {
448
+ var match = rangeEndValues.find(function (r) { return r.value === s && r.index === evaluationIndex; });
449
+ var isRangeEndWithNonZeroMinute = match && _this.expressionParts[1] !== "0";
450
+ evaluationIndex++;
451
+ return isRangeEndWithNonZeroMinute ? _this.formatTime(s, "59", "") : _this.formatTime(s, "0", "");
452
+ },
453
+ increment: function (s) { return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Hours(s), s); },
454
+ range: function () { return _this.i18n.betweenX0AndX1(); },
455
+ format: function () { return _this.i18n.atX0(); },
456
+ bounds: { min: 0, max: 23 },
457
+ });
488
458
  };
489
459
  ExpressionDescriptor.prototype.getDayOfWeekDescription = function (dayOfWeekExpression) {
490
460
  var _this = this;
491
- var _a, _b, _c, _d;
492
461
  if (dayOfWeekExpression === void 0) { dayOfWeekExpression = this.expressionParts[5]; }
493
462
  var daysOfWeekNames = this.i18n.daysOfTheWeek();
494
463
  var description = null;
@@ -497,92 +466,76 @@ var ExpressionDescriptor = (function () {
497
466
  }
498
467
  else {
499
468
  var dayOfWeekItems = dayOfWeekExpression.split(",");
469
+ var describeSeparately = function (items, otherItems) {
470
+ var _a, _b;
471
+ return ((_a = _this.getDayOfWeekDescription(items.join(","))) !== null && _a !== void 0 ? _a : "") +
472
+ "".concat(_this.i18n.spaceAnd(), " ") +
473
+ ExpressionDescriptor.removeLeadingComma((_b = _this.getDayOfWeekDescription(otherItems.join(","))) !== null && _b !== void 0 ? _b : "");
474
+ };
500
475
  var nthOrLastItems = dayOfWeekItems.filter(function (s) { return /[#L]/.test(s); });
501
476
  var plainItems = dayOfWeekItems.filter(function (s) { return !/[#L]/.test(s); });
502
477
  if (plainItems.length > 0 && nthOrLastItems.some(function (s) { return s.indexOf("#") > -1; })) {
503
- var nthOrLastDescription = (_a = this.getDayOfWeekDescription(nthOrLastItems.join(","))) !== null && _a !== void 0 ? _a : "";
504
- return (((_b = this.getDayOfWeekDescription(plainItems.join(","))) !== null && _b !== void 0 ? _b : "") +
505
- "".concat(this.i18n.spaceAnd(), " ") +
506
- ExpressionDescriptor.removeLeadingComma(nthOrLastDescription));
478
+ return describeSeparately(plainItems, nthOrLastItems);
507
479
  }
508
480
  var lastItems = dayOfWeekItems.filter(function (s) { return s.indexOf("L") > -1; });
509
481
  var otherItems = dayOfWeekItems.filter(function (s) { return s.indexOf("L") === -1; });
510
482
  if (lastItems.length > 0 && otherItems.length > 0) {
511
- var lastDescription = (_c = this.getDayOfWeekDescription(lastItems.join(","))) !== null && _c !== void 0 ? _c : "";
512
- return (((_d = this.getDayOfWeekDescription(otherItems.join(","))) !== null && _d !== void 0 ? _d : "") +
513
- "".concat(this.i18n.spaceAnd(), " ") +
514
- ExpressionDescriptor.removeLeadingComma(lastDescription));
483
+ return describeSeparately(otherItems, lastItems);
515
484
  }
516
- description = this.getSegmentDescription(dayOfWeekExpression, this.i18n.commaEveryDay(), function (s, form) {
517
- var exp = s;
518
- if (s.indexOf("#") > -1) {
519
- exp = s.substring(0, s.indexOf("#"));
520
- }
521
- else if (s.indexOf("L") > -1) {
522
- exp = exp.replace("L", "");
523
- }
524
- var parsedExp = parseInt(exp);
525
- var description = _this.i18n.daysOfTheWeekInCase
526
- ? _this.i18n.daysOfTheWeekInCase(form)[parsedExp]
527
- : daysOfWeekNames[parsedExp];
528
- if (s.indexOf("#") > -1) {
529
- var dayOfWeekOfMonthDescription = null;
530
- var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
531
- var dayOfWeekNumber = s.substring(0, s.indexOf("#"));
532
- switch (dayOfWeekOfMonthNumber) {
533
- case "1":
534
- dayOfWeekOfMonthDescription = _this.i18n.first(dayOfWeekNumber);
535
- break;
536
- case "2":
537
- dayOfWeekOfMonthDescription = _this.i18n.second(dayOfWeekNumber);
538
- break;
539
- case "3":
540
- dayOfWeekOfMonthDescription = _this.i18n.third(dayOfWeekNumber);
541
- break;
542
- case "4":
543
- dayOfWeekOfMonthDescription = _this.i18n.fourth(dayOfWeekNumber);
544
- break;
545
- case "5":
546
- dayOfWeekOfMonthDescription = _this.i18n.fifth(dayOfWeekNumber);
547
- break;
485
+ description = this.getSegmentDescription(dayOfWeekExpression, {
486
+ all: this.i18n.commaEveryDay(),
487
+ single: function (s, form) {
488
+ var exp = s;
489
+ if (s.indexOf("#") > -1) {
490
+ exp = s.substring(0, s.indexOf("#"));
548
491
  }
549
- description = dayOfWeekOfMonthDescription + " " + description;
550
- }
551
- return description;
552
- }, function (s) {
553
- if (parseInt(s) == 1) {
554
- return "";
555
- }
556
- else {
557
- return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);
558
- }
559
- }, function (s) {
560
- var beginFrom = s.substring(0, s.indexOf("-"));
561
- var domSpecified = _this.expressionParts[3] != "*";
562
- return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);
563
- }, function (s) {
564
- var format = null;
565
- if (s.indexOf("#") > -1) {
566
- var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
567
- var dayOfWeek = s.substring(0, s.indexOf("#"));
568
- format = _this.i18n.commaOnThe(dayOfWeekOfMonthNumber, dayOfWeek).trim() + _this.i18n.spaceX0OfTheMonth();
569
- }
570
- else if (s.indexOf("L") > -1) {
571
- format = _this.i18n.commaOnTheLastX0OfTheMonth(s.replace("L", ""));
572
- }
573
- else {
492
+ else if (s.indexOf("L") > -1) {
493
+ exp = exp.replace("L", "");
494
+ }
495
+ var parsedExp = parseInt(exp);
496
+ var description = _this.i18n.daysOfTheWeekInCase
497
+ ? _this.i18n.daysOfTheWeekInCase(form)[parsedExp]
498
+ : daysOfWeekNames[parsedExp];
499
+ if (s.indexOf("#") > -1) {
500
+ var dayOfWeekOfMonthNumber = parseInt(s.substring(s.indexOf("#") + 1));
501
+ var dayOfWeekNumber = s.substring(0, s.indexOf("#"));
502
+ var ordinal = ExpressionDescriptor.ordinals[dayOfWeekOfMonthNumber - 1];
503
+ description = _this.i18n[ordinal](dayOfWeekNumber) + " " + description;
504
+ }
505
+ return description;
506
+ },
507
+ increment: function (s) {
508
+ return parseInt(s) == 1 ? "" : stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);
509
+ },
510
+ range: function (s) {
511
+ var beginFrom = s.substring(0, s.indexOf("-"));
574
512
  var domSpecified = _this.expressionParts[3] != "*";
575
- if (!domSpecified) {
576
- format = _this.i18n.commaOnlyOnX0(s);
513
+ return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);
514
+ },
515
+ format: function (s) {
516
+ var format = null;
517
+ if (s.indexOf("#") > -1) {
518
+ var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
519
+ var dayOfWeek = s.substring(0, s.indexOf("#"));
520
+ format = _this.i18n.commaOnThe(dayOfWeekOfMonthNumber, dayOfWeek).trim() + _this.i18n.spaceX0OfTheMonth();
577
521
  }
578
- else if (_this.options.logicalAndDayFields) {
579
- format = _this.i18n.commaOnlyOnX0(s);
522
+ else if (s.indexOf("L") > -1) {
523
+ format = _this.i18n.commaOnTheLastX0OfTheMonth(s.split(",")[0].replace("L", ""));
580
524
  }
581
525
  else {
582
- format = _this.i18n.commaAndOnX0();
526
+ var domSpecified = _this.expressionParts[3] != "*";
527
+ if (!domSpecified) {
528
+ format = _this.i18n.commaOnlyOnX0(s);
529
+ }
530
+ else if (_this.options.logicalAndDayFields) {
531
+ format = _this.i18n.commaOnlyOnX0(s);
532
+ }
533
+ else {
534
+ format = _this.i18n.commaAndOnX0();
535
+ }
583
536
  }
584
- }
585
- return format;
537
+ return format;
538
+ },
586
539
  });
587
540
  }
588
541
  return description;
@@ -590,23 +543,19 @@ var ExpressionDescriptor = (function () {
590
543
  ExpressionDescriptor.prototype.getMonthDescription = function () {
591
544
  var _this = this;
592
545
  var monthNames = this.i18n.monthsOfTheYear();
593
- var description = this.getSegmentDescription(this.expressionParts[4], "", function (s, form) {
594
- return form && _this.i18n.monthsOfTheYearInCase
595
- ? _this.i18n.monthsOfTheYearInCase(form)[parseInt(s) - 1]
596
- : monthNames[parseInt(s) - 1];
597
- }, function (s) {
598
- if (parseInt(s) == 1) {
599
- return "";
600
- }
601
- else {
602
- return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(s), s);
603
- }
604
- }, function (s) {
605
- return _this.i18n.commaMonthX0ThroughMonthX1() || _this.i18n.commaX0ThroughX1();
606
- }, function (s) {
607
- return _this.i18n.commaOnlyInMonthX0 ? _this.i18n.commaOnlyInMonthX0() : _this.i18n.commaOnlyInX0();
546
+ return this.getSegmentDescription(this.expressionParts[4], {
547
+ all: "",
548
+ single: function (s, form) {
549
+ return form && _this.i18n.monthsOfTheYearInCase
550
+ ? _this.i18n.monthsOfTheYearInCase(form)[parseInt(s) - 1]
551
+ : monthNames[parseInt(s) - 1];
552
+ },
553
+ increment: function (s) {
554
+ return parseInt(s) == 1 ? "" : stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(s), s);
555
+ },
556
+ range: function () { var _a, _b; return ((_b = (_a = _this.i18n).commaMonthX0ThroughMonthX1) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.i18n.commaX0ThroughX1(); },
557
+ format: function () { return (_this.i18n.commaOnlyInMonthX0 ? _this.i18n.commaOnlyInMonthX0() : _this.i18n.commaOnlyInX0()); },
608
558
  });
609
- return description;
610
559
  };
611
560
  ExpressionDescriptor.removeLeadingComma = function (description) {
612
561
  return description.replace(/^[,،,、] ?/, "");
@@ -662,10 +611,12 @@ var ExpressionDescriptor = (function () {
662
611
  description = stringUtilities_1.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(), dayString);
663
612
  }
664
613
  else if (weekDayNumberMatches[3] == "-") {
665
- description = stringUtilities_1.StringUtilities.format(((_b = (_a = this.i18n).commaDaysBeforeTheX0OfTheMonth) === null || _b === void 0 ? void 0 : _b.call(_a, offsetDays)) || ", %s days before the %s of the month", offsetDays, dayString);
614
+ description = stringUtilities_1.StringUtilities.format(((_b = (_a = this.i18n).commaDaysBeforeTheX0OfTheMonth) === null || _b === void 0 ? void 0 : _b.call(_a, offsetDays)) ||
615
+ english.commaDaysBeforeTheX0OfTheMonth(offsetDays), offsetDays, dayString);
666
616
  }
667
617
  else {
668
- description = stringUtilities_1.StringUtilities.format(((_d = (_c = this.i18n).commaDaysAfterTheX0OfTheMonth) === null || _d === void 0 ? void 0 : _d.call(_c, offsetDays)) || ", %s days after the %s of the month", offsetDays, dayString);
618
+ description = stringUtilities_1.StringUtilities.format(((_d = (_c = this.i18n).commaDaysAfterTheX0OfTheMonth) === null || _d === void 0 ? void 0 : _d.call(_c, offsetDays)) ||
619
+ english.commaDaysAfterTheX0OfTheMonth(offsetDays), offsetDays, dayString);
669
620
  }
670
621
  break;
671
622
  }
@@ -680,18 +631,14 @@ var ExpressionDescriptor = (function () {
680
631
  return "";
681
632
  }
682
633
  else {
683
- description = this.getSegmentDescription(expression, this.i18n.commaEveryDay(), function (s) {
684
- return s == "L"
685
- ? _this.i18n.lastDay()
686
- : _this.i18n.dayX0
687
- ? stringUtilities_1.StringUtilities.format(_this.i18n.dayX0(), s)
688
- : s;
689
- }, function (s) {
690
- return s == "1" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days(s);
691
- }, function (s) {
692
- return _this.i18n.commaBetweenDayX0AndX1OfTheMonth(s);
693
- }, function (s) {
694
- return s == "L" ? _this.i18n.commaOnTheLastDayOfTheMonth() : _this.i18n.commaOnDayX0OfTheMonth(s);
634
+ description = this.getSegmentDescription(expression, {
635
+ all: this.i18n.commaEveryDay(),
636
+ single: function (s) {
637
+ return s == "L" ? _this.i18n.lastDay() : _this.i18n.dayX0 ? stringUtilities_1.StringUtilities.format(_this.i18n.dayX0(), s) : s;
638
+ },
639
+ increment: function (s) { return (s == "1" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days(s)); },
640
+ range: function (s) { return _this.i18n.commaBetweenDayX0AndX1OfTheMonth(s); },
641
+ format: function (s) { return (s == "L" ? _this.i18n.commaOnTheLastDayOfTheMonth() : _this.i18n.commaOnDayX0OfTheMonth(s)); },
695
642
  });
696
643
  }
697
644
  break;
@@ -701,18 +648,16 @@ var ExpressionDescriptor = (function () {
701
648
  };
702
649
  ExpressionDescriptor.prototype.getYearDescription = function () {
703
650
  var _this = this;
704
- var description = this.getSegmentDescription(this.expressionParts[6], "", function (s) {
705
- return /^\d+$/.test(s) ? new Date(parseInt(s), 1).getFullYear().toString() : s;
706
- }, function (s) {
707
- return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(s), s);
708
- }, function (s) {
709
- return _this.i18n.commaYearX0ThroughYearX1() || _this.i18n.commaX0ThroughX1();
710
- }, function (s) {
711
- return _this.i18n.commaOnlyInYearX0 ? _this.i18n.commaOnlyInYearX0() : _this.i18n.commaOnlyInX0();
651
+ return this.getSegmentDescription(this.expressionParts[6], {
652
+ all: "",
653
+ single: function (s) { return (/^\d+$/.test(s) ? new Date(parseInt(s), 1).getFullYear().toString() : s); },
654
+ increment: function (s) { return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(s), s); },
655
+ range: function () { var _a, _b; return ((_b = (_a = _this.i18n).commaYearX0ThroughYearX1) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.i18n.commaX0ThroughX1(); },
656
+ format: function () { return (_this.i18n.commaOnlyInYearX0 ? _this.i18n.commaOnlyInYearX0() : _this.i18n.commaOnlyInX0()); },
712
657
  });
713
- return description;
714
658
  };
715
- ExpressionDescriptor.prototype.getSegmentDescription = function (expression, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat, range) {
659
+ ExpressionDescriptor.prototype.getSegmentDescription = function (expression, describers) {
660
+ var itemDescribers = __assign(__assign({}, describers), { bounds: undefined });
716
661
  var description = null;
717
662
  var doesExpressionContainIncrement = expression.indexOf("/") > -1;
718
663
  var doesExpressionContainRange = expression.indexOf("-") > -1;
@@ -721,10 +666,10 @@ var ExpressionDescriptor = (function () {
721
666
  description = "";
722
667
  }
723
668
  else if (expression === "*") {
724
- description = allDescription;
669
+ description = describers.all;
725
670
  }
726
671
  else if (!doesExpressionContainIncrement && !doesExpressionContainRange && !doesExpressionContainMultipleValues) {
727
- description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), getSingleItemDescription(expression));
672
+ description = stringUtilities_1.StringUtilities.format(describers.format(expression), describers.single(expression));
728
673
  }
729
674
  else if (doesExpressionContainMultipleValues) {
730
675
  var segments = expression.split(",");
@@ -742,17 +687,17 @@ var ExpressionDescriptor = (function () {
742
687
  }
743
688
  if (segments[i].indexOf("/") > -1 || segments[i].indexOf("-") > -1) {
744
689
  var isSegmentRangeWithoutIncrement = segments[i].indexOf("-") > -1 && segments[i].indexOf("/") == -1;
745
- var currentDescriptionContent = this.getSegmentDescription(segments[i], allDescription, getSingleItemDescription, getIncrementDescriptionFormat, isSegmentRangeWithoutIncrement ? this.i18n.commaX0ThroughX1 : getRangeDescriptionFormat, getDescriptionFormat);
690
+ var currentDescriptionContent = this.getSegmentDescription(segments[i], isSegmentRangeWithoutIncrement ? __assign(__assign({}, itemDescribers), { range: this.i18n.commaX0ThroughX1 }) : itemDescribers);
746
691
  if (isSegmentRangeWithoutIncrement || i > 0) {
747
692
  currentDescriptionContent = ExpressionDescriptor.removeLeadingComma(currentDescriptionContent);
748
693
  }
749
694
  descriptionContent += currentDescriptionContent;
750
695
  }
751
696
  else if (!doesExpressionContainIncrement) {
752
- descriptionContent += getSingleItemDescription(segments[i]);
697
+ descriptionContent += describers.single(segments[i]);
753
698
  }
754
699
  else {
755
- var segmentDescription = this.getSegmentDescription(segments[i], allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat);
700
+ var segmentDescription = this.getSegmentDescription(segments[i], itemDescribers);
756
701
  if (i > 0 && segmentDescription) {
757
702
  segmentDescription = ExpressionDescriptor.removeLeadingComma(segmentDescription);
758
703
  }
@@ -760,7 +705,7 @@ var ExpressionDescriptor = (function () {
760
705
  }
761
706
  }
762
707
  if (!doesExpressionContainIncrement) {
763
- description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), descriptionContent);
708
+ description = stringUtilities_1.StringUtilities.format(describers.format(expression), descriptionContent);
764
709
  }
765
710
  else {
766
711
  description = descriptionContent;
@@ -768,27 +713,28 @@ var ExpressionDescriptor = (function () {
768
713
  }
769
714
  else if (doesExpressionContainIncrement) {
770
715
  var segments = expression.split("/");
771
- description = stringUtilities_1.StringUtilities.format(getIncrementDescriptionFormat(segments[1]), segments[1]);
716
+ description = stringUtilities_1.StringUtilities.format(describers.increment(segments[1]), segments[1]);
772
717
  if (segments[0].indexOf("-") > -1) {
773
- var rangeSegmentDescription = this.generateRangeSegmentDescription(segments[0], getRangeDescriptionFormat, getSingleItemDescription);
718
+ var rangeSegmentDescription = this.generateRangeSegmentDescription(segments[0], describers);
774
719
  if (!ExpressionDescriptor.hasLeadingComma(rangeSegmentDescription)) {
775
720
  description += ", ";
776
721
  }
777
722
  description += rangeSegmentDescription;
778
723
  }
779
724
  else if (segments[0].indexOf("*") == -1) {
780
- var rangeItemDescription = stringUtilities_1.StringUtilities.format(getDescriptionFormat(segments[0]), getSingleItemDescription(segments[0]));
725
+ var rangeItemDescription = stringUtilities_1.StringUtilities.format(describers.format(segments[0]), describers.single(segments[0]));
781
726
  rangeItemDescription = ExpressionDescriptor.removeLeadingComma(rangeItemDescription);
782
727
  description += stringUtilities_1.StringUtilities.format(this.i18n.commaStartingX0(), rangeItemDescription);
783
728
  }
784
- description += this.getWrappingIncrementDescription(expression, range, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat);
729
+ description += this.getWrappingIncrementDescription(expression, describers);
785
730
  }
786
731
  else if (doesExpressionContainRange) {
787
- description = this.generateRangeSegmentDescription(expression, getRangeDescriptionFormat, getSingleItemDescription);
732
+ description = this.generateRangeSegmentDescription(expression, describers);
788
733
  }
789
734
  return description;
790
735
  };
791
- ExpressionDescriptor.prototype.getWrappingIncrementDescription = function (expression, range, allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat) {
736
+ ExpressionDescriptor.prototype.getWrappingIncrementDescription = function (expression, describers) {
737
+ var range = describers.bounds;
792
738
  if (!this.options.verbose || !range) {
793
739
  return "";
794
740
  }
@@ -808,37 +754,16 @@ var ExpressionDescriptor = (function () {
808
754
  if (values.length < 2) {
809
755
  return "";
810
756
  }
811
- var valuesDescription = this.getSegmentDescription(values.join(","), allDescription, getSingleItemDescription, getIncrementDescriptionFormat, getRangeDescriptionFormat, getDescriptionFormat);
757
+ var valuesDescription = this.getSegmentDescription(values.join(","), __assign(__assign({}, describers), { bounds: undefined }));
812
758
  return valuesDescription ? ", ".concat(valuesDescription) : "";
813
759
  };
814
- ExpressionDescriptor.prototype.generateRangeSegmentDescription = function (rangeExpression, getRangeDescriptionFormat, getSingleItemDescription) {
815
- var description = "";
760
+ ExpressionDescriptor.prototype.generateRangeSegmentDescription = function (rangeExpression, describers) {
816
761
  var rangeSegments = rangeExpression.split("-");
817
- var rangeSegment1Description = getSingleItemDescription(rangeSegments[0], 1);
818
- var rangeSegment2Description = getSingleItemDescription(rangeSegments[1], 2);
819
- var rangeDescriptionFormat = getRangeDescriptionFormat(rangeExpression);
820
- description += stringUtilities_1.StringUtilities.format(rangeDescriptionFormat, rangeSegment1Description, rangeSegment2Description);
821
- return description;
762
+ return stringUtilities_1.StringUtilities.format(describers.range(rangeExpression), describers.single(rangeSegments[0], 1), describers.single(rangeSegments[1], 2));
822
763
  };
823
764
  ExpressionDescriptor.prototype.formatTime = function (hourExpression, minuteExpression, secondExpression) {
824
- var hourOffset = 0;
825
- var minuteOffset = 0;
826
- var hour = parseInt(hourExpression) + hourOffset;
827
- var minute = parseInt(minuteExpression) + minuteOffset;
828
- if (minute >= 60) {
829
- minute -= 60;
830
- hour += 1;
831
- }
832
- else if (minute < 0) {
833
- minute += 60;
834
- hour -= 1;
835
- }
836
- if (hour >= 24) {
837
- hour = hour - 24;
838
- }
839
- else if (hour < 0) {
840
- hour = 24 + hour;
841
- }
765
+ var hour = parseInt(hourExpression);
766
+ var minute = parseInt(minuteExpression);
842
767
  var period = "";
843
768
  var setPeriodBeforeTime = false;
844
769
  if (!this.options.use24HourTimeFormat) {
@@ -878,9 +803,11 @@ var ExpressionDescriptor = (function () {
878
803
  return description;
879
804
  };
880
805
  ExpressionDescriptor.prototype.getPeriod = function (hour) {
881
- return hour >= 12 ? (this.i18n.pm && this.i18n.pm()) || "PM" : (this.i18n.am && this.i18n.am()) || "AM";
806
+ var _a, _b, _c, _d;
807
+ return hour >= 12 ? ((_b = (_a = this.i18n).pm) === null || _b === void 0 ? void 0 : _b.call(_a)) || english.pm() : ((_d = (_c = this.i18n).am) === null || _d === void 0 ? void 0 : _d.call(_c)) || english.am();
882
808
  };
883
809
  ExpressionDescriptor.locales = {};
810
+ ExpressionDescriptor.ordinals = ["first", "second", "third", "fourth", "fifth"];
884
811
  return ExpressionDescriptor;
885
812
  }());
886
813
  exports.ExpressionDescriptor = ExpressionDescriptor;
@@ -1015,15 +942,6 @@ exports.af = void 0;
1015
942
  var af = (function () {
1016
943
  function af() {
1017
944
  }
1018
- af.prototype.atX0SecondsPastTheMinuteGt20 = function () {
1019
- return null;
1020
- };
1021
- af.prototype.atX0MinutesPastTheHourGt20 = function () {
1022
- return null;
1023
- };
1024
- af.prototype.commaMonthX0ThroughMonthX1 = function () {
1025
- return null;
1026
- };
1027
945
  af.prototype.commaYearX0ThroughYearX1 = function () {
1028
946
  return ", jaar %s na %s";
1029
947
  };
@@ -1209,18 +1127,6 @@ exports.ar = void 0;
1209
1127
  var ar = (function () {
1210
1128
  function ar() {
1211
1129
  }
1212
- ar.prototype.atX0SecondsPastTheMinuteGt20 = function () {
1213
- return null;
1214
- };
1215
- ar.prototype.atX0MinutesPastTheHourGt20 = function () {
1216
- return null;
1217
- };
1218
- ar.prototype.commaMonthX0ThroughMonthX1 = function () {
1219
- return null;
1220
- };
1221
- ar.prototype.commaYearX0ThroughYearX1 = function () {
1222
- return null;
1223
- };
1224
1130
  ar.prototype.use24HourTimeFormatByDefault = function () {
1225
1131
  return true;
1226
1132
  };
@@ -1433,12 +1339,6 @@ var ordinalSuffix = function (value) {
1433
1339
  var az = (function () {
1434
1340
  function az() {
1435
1341
  }
1436
- az.prototype.atX0SecondsPastTheMinuteGt20 = function () {
1437
- return null;
1438
- };
1439
- az.prototype.atX0MinutesPastTheHourGt20 = function () {
1440
- return null;
1441
- };
1442
1342
  az.prototype.commaMonthX0ThroughMonthX1 = function () {
1443
1343
  return ", %s %s qədər";
1444
1344
  };
@@ -1681,18 +1581,6 @@ exports.be = void 0;
1681
1581
  var be = (function () {
1682
1582
  function be() {
1683
1583
  }
1684
- be.prototype.atX0SecondsPastTheMinuteGt20 = function () {
1685
- return null;
1686
- };
1687
- be.prototype.atX0MinutesPastTheHourGt20 = function () {
1688
- return null;
1689
- };
1690
- be.prototype.commaMonthX0ThroughMonthX1 = function () {
1691
- return null;
1692
- };
1693
- be.prototype.commaYearX0ThroughYearX1 = function () {
1694
- return null;
1695
- };
1696
1584
  be.prototype.use24HourTimeFormatByDefault = function () {
1697
1585
  return false;
1698
1586
  };
@@ -1874,178 +1762,182 @@ var getPhraseByPlural = function (str, words) {
1874
1762
  return strAsNumber < 2 ? words[0] : words[1];
1875
1763
  };
1876
1764
  var getPhraseByDayOfWeek = function (str, words) {
1765
+ var _a;
1877
1766
  var strAsNumber = str != null ? Number(str) : 0;
1878
- return words[[1, 0, 0, 1, 0, 0, 1][strAsNumber]];
1767
+ return words[(_a = [1, 0, 0, 1, 0, 0, 1][strAsNumber]) !== null && _a !== void 0 ? _a : 0];
1879
1768
  };
1880
1769
  var getNumberEnding = function (str, gender) {
1881
1770
  var strAsNumber = str != null ? Number(str) : 1;
1882
- strAsNumber = Math.max(Math.min(strAsNumber < 10 || (strAsNumber > 20 && strAsNumber % 10 !== 0) ? strAsNumber % 10 : 3, 3), 1) - 1;
1883
- var genderIndex = ['м', 'ж', 'ср'].indexOf(gender);
1884
- return ['в', 'р', 'т'][strAsNumber] + ['и', 'а', 'о'][genderIndex];
1771
+ strAsNumber =
1772
+ Math.max(Math.min(strAsNumber < 10 || (strAsNumber > 20 && strAsNumber % 10 !== 0) ? strAsNumber % 10 : 3, 3), 1) -
1773
+ 1;
1774
+ var genderIndex = ["м", "ж", "ср"].indexOf(gender);
1775
+ return ["в", "р", "т"][strAsNumber] + ["и", "а", "о"][genderIndex];
1885
1776
  };
1886
1777
  var bg = (function () {
1887
1778
  function bg() {
1888
1779
  }
1889
- bg.prototype.atX0SecondsPastTheMinuteGt20 = function () {
1890
- return null;
1891
- };
1892
- bg.prototype.atX0MinutesPastTheHourGt20 = function () {
1893
- return null;
1894
- };
1895
- bg.prototype.commaMonthX0ThroughMonthX1 = function () {
1896
- return null;
1897
- };
1898
- bg.prototype.commaYearX0ThroughYearX1 = function () {
1899
- return null;
1900
- };
1901
1780
  bg.prototype.use24HourTimeFormatByDefault = function () {
1902
1781
  return true;
1903
1782
  };
1904
1783
  bg.prototype.everyMinute = function () {
1905
- return 'всяка минута';
1784
+ return "всяка минута";
1906
1785
  };
1907
1786
  bg.prototype.everyHour = function () {
1908
- return 'всеки час';
1787
+ return "всеки час";
1909
1788
  };
1910
1789
  bg.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
1911
- return 'Възникна грешка при генериране на описанието на израза. Проверете синтаксиса на cron израза.';
1790
+ return "Възникна грешка при генериране на описанието на израза. Проверете синтаксиса на cron израза.";
1912
1791
  };
1913
1792
  bg.prototype.atSpace = function () {
1914
- return 'В ';
1793
+ return "В ";
1915
1794
  };
1916
1795
  bg.prototype.everyMinuteBetweenX0AndX1 = function () {
1917
- return 'Всяка минута от %s до %s';
1796
+ return "Всяка минута от %s до %s";
1918
1797
  };
1919
1798
  bg.prototype.at = function () {
1920
- return 'В';
1799
+ return "В";
1921
1800
  };
1922
1801
  bg.prototype.spaceAnd = function () {
1923
- return ' и';
1802
+ return " и";
1924
1803
  };
1925
1804
  bg.prototype.everySecond = function () {
1926
- return 'всяка секунда';
1805
+ return "всяка секунда";
1927
1806
  };
1928
1807
  bg.prototype.everyX0Seconds = function (s) {
1929
- return 'всеки %s секунди';
1808
+ return "всеки %s секунди";
1930
1809
  };
1931
1810
  bg.prototype.secondsX0ThroughX1PastTheMinute = function () {
1932
- return 'секунди от %s до %s';
1811
+ return "секунди от %s до %s";
1933
1812
  };
1934
1813
  bg.prototype.atX0SecondsPastTheMinute = function (s) {
1935
- return "%s-".concat(getNumberEnding(s, 'ж'), " \u0441\u0435\u043A\u0443\u043D\u0434\u0430");
1814
+ return "%s-".concat(getNumberEnding(s, "ж"), " \u0441\u0435\u043A\u0443\u043D\u0434\u0430");
1936
1815
  };
1937
1816
  bg.prototype.everyX0Minutes = function (s) {
1938
- return 'всеки %s минути';
1817
+ return "всеки %s минути";
1939
1818
  };
1940
1819
  bg.prototype.minutesX0ThroughX1PastTheHour = function () {
1941
- return 'минути от %s до %s';
1820
+ return "минути от %s до %s";
1942
1821
  };
1943
1822
  bg.prototype.atX0MinutesPastTheHour = function (s) {
1944
- return "%s-".concat(getNumberEnding(s, 'ж'), " \u043C\u0438\u043D\u0443\u0442a");
1823
+ return "%s-".concat(getNumberEnding(s, "ж"), " \u043C\u0438\u043D\u0443\u0442a");
1945
1824
  };
1946
1825
  bg.prototype.everyX0Hours = function (s) {
1947
- return 'всеки %s часа';
1826
+ return "всеки %s часа";
1948
1827
  };
1949
1828
  bg.prototype.betweenX0AndX1 = function () {
1950
- return 'от %s до %s';
1829
+ return "от %s до %s";
1951
1830
  };
1952
1831
  bg.prototype.atX0 = function () {
1953
- return 'в %s';
1832
+ return "в %s";
1954
1833
  };
1955
1834
  bg.prototype.commaEveryDay = function () {
1956
- return ', всеки ден';
1835
+ return ", всеки ден";
1957
1836
  };
1958
1837
  bg.prototype.commaEveryX0DaysOfTheWeek = function (s) {
1959
- return getPhraseByPlural(s, [', всеки %s ден от седмицата', ', всеки %s дена от седмицата']);
1838
+ return getPhraseByPlural(s, [", всеки %s ден от седмицата", ", всеки %s дена от седмицата"]);
1960
1839
  };
1961
1840
  bg.prototype.commaX0ThroughX1 = function (s) {
1962
- return ', от %s до %s';
1841
+ return ", от %s до %s";
1963
1842
  };
1964
1843
  bg.prototype.commaAndX0ThroughX1 = function (s) {
1965
- return ' и от %s до %s';
1844
+ return " и от %s до %s";
1966
1845
  };
1967
1846
  bg.prototype.first = function (s) {
1968
- return getPhraseByDayOfWeek(s, ['первият', 'первата']);
1847
+ return getPhraseByDayOfWeek(s, ["первият", "первата"]);
1969
1848
  };
1970
1849
  bg.prototype.second = function (s) {
1971
- return getPhraseByDayOfWeek(s, ['вторият', 'втората']);
1850
+ return getPhraseByDayOfWeek(s, ["вторият", "втората"]);
1972
1851
  };
1973
1852
  bg.prototype.third = function (s) {
1974
- return getPhraseByDayOfWeek(s, ['третият', 'третата']);
1853
+ return getPhraseByDayOfWeek(s, ["третият", "третата"]);
1975
1854
  };
1976
1855
  bg.prototype.fourth = function (s) {
1977
- return getPhraseByDayOfWeek(s, ['четвертият', 'четвертата']);
1856
+ return getPhraseByDayOfWeek(s, ["четвертият", "четвертата"]);
1978
1857
  };
1979
1858
  bg.prototype.fifth = function (s) {
1980
- return getPhraseByDayOfWeek(s, ['петият', 'петата']);
1859
+ return getPhraseByDayOfWeek(s, ["петият", "петата"]);
1981
1860
  };
1982
1861
  bg.prototype.commaOnThe = function (s) {
1983
- return ', ';
1862
+ return ", ";
1984
1863
  };
1985
1864
  bg.prototype.spaceX0OfTheMonth = function () {
1986
- return ' %s на месеца';
1865
+ return " %s на месеца";
1987
1866
  };
1988
1867
  bg.prototype.lastDay = function () {
1989
- return 'последният ден';
1868
+ return "последният ден";
1990
1869
  };
1991
1870
  bg.prototype.commaOnTheLastX0OfTheMonth = function (s) {
1992
- return getPhraseByDayOfWeek(s, [', в последният %s от месеца', ', в последната %s отмесеца']);
1871
+ return getPhraseByDayOfWeek(s, [", в последният %s от месеца", ", в последната %s отмесеца"]);
1993
1872
  };
1994
1873
  bg.prototype.commaOnlyOnX0 = function (s) {
1995
- return ', %s';
1874
+ return ", %s";
1996
1875
  };
1997
1876
  bg.prototype.commaAndOnX0 = function () {
1998
- return ' и %s';
1877
+ return " и %s";
1999
1878
  };
2000
1879
  bg.prototype.commaEveryX0Months = function (s) {
2001
- return ' всеки %s месеца';
1880
+ return " всеки %s месеца";
2002
1881
  };
2003
1882
  bg.prototype.commaOnlyInMonthX0 = function () {
2004
- return ', %s';
1883
+ return ", %s";
2005
1884
  };
2006
1885
  bg.prototype.commaOnlyInX0 = function () {
2007
- return ', в %s';
1886
+ return ", в %s";
2008
1887
  };
2009
1888
  bg.prototype.commaOnTheLastDayOfTheMonth = function () {
2010
- return ', в последният ден на месеца';
1889
+ return ", в последният ден на месеца";
2011
1890
  };
2012
1891
  bg.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
2013
- return ', в последния делничен ден от месеца';
1892
+ return ", в последния делничен ден от месеца";
2014
1893
  };
2015
1894
  bg.prototype.commaDaysBeforeTheLastDayOfTheMonth = function (s) {
2016
- return getPhraseByPlural(s, [', %s ден преди края на месеца', ', %s дена преди края на месеца']);
1895
+ return getPhraseByPlural(s, [", %s ден преди края на месеца", ", %s дена преди края на месеца"]);
2017
1896
  };
2018
1897
  bg.prototype.firstWeekday = function () {
2019
- return 'първият делничен ден';
1898
+ return "първият делничен ден";
2020
1899
  };
2021
1900
  bg.prototype.weekdayNearestDayX0 = function () {
2022
- return 'най-близкият делничен ден до %s число';
1901
+ return "най-близкият делничен ден до %s число";
2023
1902
  };
2024
1903
  bg.prototype.commaOnTheX0OfTheMonth = function () {
2025
- return ', на %s число от месеца';
1904
+ return ", на %s число от месеца";
2026
1905
  };
2027
1906
  bg.prototype.commaEveryX0Days = function (s) {
2028
- return getPhraseByPlural(s, [', всеки %s ден', ', всеки %s дена']);
1907
+ return getPhraseByPlural(s, [", всеки %s ден", ", всеки %s дена"]);
2029
1908
  };
2030
1909
  bg.prototype.commaBetweenDayX0AndX1OfTheMonth = function (s) {
2031
1910
  var _a;
2032
- var values = (_a = s === null || s === void 0 ? void 0 : s.split('-')) !== null && _a !== void 0 ? _a : [];
2033
- return ", \u043E\u0442 %s-".concat(getNumberEnding(values[0], 'ср'), " \u0434\u043E %s-").concat(getNumberEnding(values[1], 'ср'), " \u0447\u0438\u0441\u043B\u043E \u043D\u0430 \u043C\u0435\u0441\u0435\u0446\u0430");
1911
+ var values = (_a = s === null || s === void 0 ? void 0 : s.split("-")) !== null && _a !== void 0 ? _a : [];
1912
+ return ", \u043E\u0442 %s-".concat(getNumberEnding(values[0], "ср"), " \u0434\u043E %s-").concat(getNumberEnding(values[1], "ср"), " \u0447\u0438\u0441\u043B\u043E \u043D\u0430 \u043C\u0435\u0441\u0435\u0446\u0430");
2034
1913
  };
2035
1914
  bg.prototype.commaOnDayX0OfTheMonth = function (s) {
2036
- return ", \u043D\u0430 %s-".concat(getNumberEnding(s, 'ср'), " \u0447\u0438\u0441\u043B\u043E \u043E\u0442 \u043C\u0435\u0441\u0435\u0446\u0430");
1915
+ return ", \u043D\u0430 %s-".concat(getNumberEnding(s, "ср"), " \u0447\u0438\u0441\u043B\u043E \u043E\u0442 \u043C\u0435\u0441\u0435\u0446\u0430");
2037
1916
  };
2038
1917
  bg.prototype.commaEveryX0Years = function (s) {
2039
- return getPhraseByPlural(s, [', всяка %s година', ', всеки %s години']);
1918
+ return getPhraseByPlural(s, [", всяка %s година", ", всеки %s години"]);
2040
1919
  };
2041
1920
  bg.prototype.commaStartingX0 = function () {
2042
- return ', започвайки %s';
1921
+ return ", започвайки %s";
2043
1922
  };
2044
1923
  bg.prototype.daysOfTheWeek = function () {
2045
- return ['неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', 'петък', 'събота'];
1924
+ return ["неделя", "понеделник", "вторник", "сряда", "четвъртък", "петък", "събота"];
2046
1925
  };
2047
1926
  bg.prototype.monthsOfTheYear = function () {
2048
- return ['януари', 'февруари', 'март', 'април', 'май', 'юни', 'юли', 'август', 'септевмври', 'октомври', 'ноември', 'декември'];
1927
+ return [
1928
+ "януари",
1929
+ "февруари",
1930
+ "март",
1931
+ "април",
1932
+ "май",
1933
+ "юни",
1934
+ "юли",
1935
+ "август",
1936
+ "септевмври",
1937
+ "октомври",
1938
+ "ноември",
1939
+ "декември",
1940
+ ];
2049
1941
  };
2050
1942
  bg.prototype.atReboot = function () {
2051
1943
  return "Изпълнение веднъж, при стартиране";
@@ -2069,18 +1961,6 @@ exports.ca = void 0;
2069
1961
  var ca = (function () {
2070
1962
  function ca() {
2071
1963
  }
2072
- ca.prototype.atX0SecondsPastTheMinuteGt20 = function () {
2073
- return null;
2074
- };
2075
- ca.prototype.atX0MinutesPastTheHourGt20 = function () {
2076
- return null;
2077
- };
2078
- ca.prototype.commaMonthX0ThroughMonthX1 = function () {
2079
- return null;
2080
- };
2081
- ca.prototype.commaYearX0ThroughYearX1 = function () {
2082
- return null;
2083
- };
2084
1964
  ca.prototype.use24HourTimeFormatByDefault = function () {
2085
1965
  return true;
2086
1966
  };
@@ -2260,18 +2140,6 @@ exports.cs = void 0;
2260
2140
  var cs = (function () {
2261
2141
  function cs() {
2262
2142
  }
2263
- cs.prototype.atX0SecondsPastTheMinuteGt20 = function () {
2264
- return null;
2265
- };
2266
- cs.prototype.atX0MinutesPastTheHourGt20 = function () {
2267
- return null;
2268
- };
2269
- cs.prototype.commaMonthX0ThroughMonthX1 = function () {
2270
- return null;
2271
- };
2272
- cs.prototype.commaYearX0ThroughYearX1 = function () {
2273
- return null;
2274
- };
2275
2143
  cs.prototype.use24HourTimeFormatByDefault = function () {
2276
2144
  return true;
2277
2145
  };
@@ -2586,18 +2454,6 @@ var da = (function () {
2586
2454
  da.prototype.weekdayNearestDayX0 = function () {
2587
2455
  return "hverdag nærmest dag %s";
2588
2456
  };
2589
- da.prototype.commaMonthX0ThroughMonthX1 = function () {
2590
- return null;
2591
- };
2592
- da.prototype.commaYearX0ThroughYearX1 = function () {
2593
- return null;
2594
- };
2595
- da.prototype.atX0MinutesPastTheHourGt20 = function () {
2596
- return null;
2597
- };
2598
- da.prototype.atX0SecondsPastTheMinuteGt20 = function () {
2599
- return null;
2600
- };
2601
2457
  da.prototype.commaStartingX0 = function () {
2602
2458
  return ", startende %s";
2603
2459
  };
@@ -2642,18 +2498,6 @@ exports.de = void 0;
2642
2498
  var de = (function () {
2643
2499
  function de() {
2644
2500
  }
2645
- de.prototype.atX0SecondsPastTheMinuteGt20 = function () {
2646
- return null;
2647
- };
2648
- de.prototype.atX0MinutesPastTheHourGt20 = function () {
2649
- return null;
2650
- };
2651
- de.prototype.commaMonthX0ThroughMonthX1 = function () {
2652
- return null;
2653
- };
2654
- de.prototype.commaYearX0ThroughYearX1 = function () {
2655
- return null;
2656
- };
2657
2501
  de.prototype.use24HourTimeFormatByDefault = function () {
2658
2502
  return true;
2659
2503
  };
@@ -2834,18 +2678,6 @@ var isOne = function (s) { return Number(s) === 1; };
2834
2678
  var en = (function () {
2835
2679
  function en() {
2836
2680
  }
2837
- en.prototype.atX0SecondsPastTheMinuteGt20 = function () {
2838
- return null;
2839
- };
2840
- en.prototype.atX0MinutesPastTheHourGt20 = function () {
2841
- return null;
2842
- };
2843
- en.prototype.commaMonthX0ThroughMonthX1 = function () {
2844
- return null;
2845
- };
2846
- en.prototype.commaYearX0ThroughYearX1 = function () {
2847
- return null;
2848
- };
2849
2681
  en.prototype.use24HourTimeFormatByDefault = function () {
2850
2682
  return false;
2851
2683
  };
@@ -3012,6 +2844,12 @@ var en = (function () {
3012
2844
  "December",
3013
2845
  ];
3014
2846
  };
2847
+ en.prototype.am = function () {
2848
+ return "AM";
2849
+ };
2850
+ en.prototype.pm = function () {
2851
+ return "PM";
2852
+ };
3015
2853
  en.prototype.atReboot = function () {
3016
2854
  return "Run once, at startup";
3017
2855
  };
@@ -3034,18 +2872,6 @@ exports.es = void 0;
3034
2872
  var es = (function () {
3035
2873
  function es() {
3036
2874
  }
3037
- es.prototype.atX0SecondsPastTheMinuteGt20 = function () {
3038
- return null;
3039
- };
3040
- es.prototype.atX0MinutesPastTheHourGt20 = function () {
3041
- return null;
3042
- };
3043
- es.prototype.commaMonthX0ThroughMonthX1 = function () {
3044
- return null;
3045
- };
3046
- es.prototype.commaYearX0ThroughYearX1 = function () {
3047
- return null;
3048
- };
3049
2875
  es.prototype.use24HourTimeFormatByDefault = function () {
3050
2876
  return true;
3051
2877
  };
@@ -3225,18 +3051,6 @@ exports.fa = void 0;
3225
3051
  var fa = (function () {
3226
3052
  function fa() {
3227
3053
  }
3228
- fa.prototype.atX0SecondsPastTheMinuteGt20 = function () {
3229
- return null;
3230
- };
3231
- fa.prototype.atX0MinutesPastTheHourGt20 = function () {
3232
- return null;
3233
- };
3234
- fa.prototype.commaMonthX0ThroughMonthX1 = function () {
3235
- return null;
3236
- };
3237
- fa.prototype.commaYearX0ThroughYearX1 = function () {
3238
- return null;
3239
- };
3240
3054
  fa.prototype.use24HourTimeFormatByDefault = function () {
3241
3055
  return true;
3242
3056
  };
@@ -3553,15 +3367,6 @@ var fi = (function () {
3553
3367
  fi.prototype.weekdayNearestDayX0 = function () {
3554
3368
  return "viikonpäivä lähintä %s päivää";
3555
3369
  };
3556
- fi.prototype.atX0SecondsPastTheMinuteGt20 = function () {
3557
- return null;
3558
- };
3559
- fi.prototype.commaMonthX0ThroughMonthX1 = function () {
3560
- return null;
3561
- };
3562
- fi.prototype.commaYearX0ThroughYearX1 = function () {
3563
- return null;
3564
- };
3565
3370
  fi.prototype.lastDay = function () {
3566
3371
  return "viimeinen päivä";
3567
3372
  };
@@ -3614,18 +3419,6 @@ var fr = (function () {
3614
3419
  "de le": "du",
3615
3420
  };
3616
3421
  };
3617
- fr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
3618
- return null;
3619
- };
3620
- fr.prototype.atX0MinutesPastTheHourGt20 = function () {
3621
- return null;
3622
- };
3623
- fr.prototype.commaMonthX0ThroughMonthX1 = function () {
3624
- return null;
3625
- };
3626
- fr.prototype.commaYearX0ThroughYearX1 = function () {
3627
- return null;
3628
- };
3629
3422
  fr.prototype.use24HourTimeFormatByDefault = function () {
3630
3423
  return true;
3631
3424
  };
@@ -3811,18 +3604,6 @@ exports.he = void 0;
3811
3604
  var he = (function () {
3812
3605
  function he() {
3813
3606
  }
3814
- he.prototype.atX0SecondsPastTheMinuteGt20 = function () {
3815
- return null;
3816
- };
3817
- he.prototype.atX0MinutesPastTheHourGt20 = function () {
3818
- return null;
3819
- };
3820
- he.prototype.commaMonthX0ThroughMonthX1 = function () {
3821
- return null;
3822
- };
3823
- he.prototype.commaYearX0ThroughYearX1 = function () {
3824
- return null;
3825
- };
3826
3607
  he.prototype.use24HourTimeFormatByDefault = function () {
3827
3608
  return true;
3828
3609
  };
@@ -4124,31 +3905,11 @@ var hr = (function () {
4124
3905
  hr.prototype.weekdayNearestDayX0 = function () {
4125
3906
  return "radni dan najbliži %s. danu";
4126
3907
  };
4127
- hr.prototype.commaMonthX0ThroughMonthX1 = function () {
4128
- return null;
4129
- };
4130
- hr.prototype.commaYearX0ThroughYearX1 = function () {
4131
- return null;
4132
- };
4133
- hr.prototype.atX0MinutesPastTheHourGt20 = function () {
4134
- return null;
4135
- };
4136
- hr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
4137
- return null;
4138
- };
4139
3908
  hr.prototype.commaStartingX0 = function () {
4140
3909
  return ", počevši od %s";
4141
3910
  };
4142
3911
  hr.prototype.daysOfTheWeek = function () {
4143
- return [
4144
- "Nedjelja",
4145
- "Ponedjeljak",
4146
- "Utorak",
4147
- "Srijeda",
4148
- "Četvrtak",
4149
- "Petak",
4150
- "Subota",
4151
- ];
3912
+ return ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"];
4152
3913
  };
4153
3914
  hr.prototype.monthsOfTheYear = function () {
4154
3915
  return [
@@ -4188,18 +3949,6 @@ exports.hu = void 0;
4188
3949
  var hu = (function () {
4189
3950
  function hu() {
4190
3951
  }
4191
- hu.prototype.atX0SecondsPastTheMinuteGt20 = function () {
4192
- return null;
4193
- };
4194
- hu.prototype.atX0MinutesPastTheHourGt20 = function () {
4195
- return null;
4196
- };
4197
- hu.prototype.commaMonthX0ThroughMonthX1 = function () {
4198
- return null;
4199
- };
4200
- hu.prototype.commaYearX0ThroughYearX1 = function () {
4201
- return null;
4202
- };
4203
3952
  hu.prototype.use24HourTimeFormatByDefault = function () {
4204
3953
  return true;
4205
3954
  };
@@ -4382,18 +4131,6 @@ exports.id = void 0;
4382
4131
  var id = (function () {
4383
4132
  function id() {
4384
4133
  }
4385
- id.prototype.atX0SecondsPastTheMinuteGt20 = function () {
4386
- return null;
4387
- };
4388
- id.prototype.atX0MinutesPastTheHourGt20 = function () {
4389
- return null;
4390
- };
4391
- id.prototype.commaMonthX0ThroughMonthX1 = function () {
4392
- return null;
4393
- };
4394
- id.prototype.commaYearX0ThroughYearX1 = function () {
4395
- return null;
4396
- };
4397
4134
  id.prototype.use24HourTimeFormatByDefault = function () {
4398
4135
  return true;
4399
4136
  };
@@ -4576,18 +4313,6 @@ exports.it = void 0;
4576
4313
  var it = (function () {
4577
4314
  function it() {
4578
4315
  }
4579
- it.prototype.atX0SecondsPastTheMinuteGt20 = function () {
4580
- return null;
4581
- };
4582
- it.prototype.atX0MinutesPastTheHourGt20 = function () {
4583
- return null;
4584
- };
4585
- it.prototype.commaMonthX0ThroughMonthX1 = function () {
4586
- return null;
4587
- };
4588
- it.prototype.commaYearX0ThroughYearX1 = function () {
4589
- return null;
4590
- };
4591
4316
  it.prototype.use24HourTimeFormatByDefault = function () {
4592
4317
  return true;
4593
4318
  };
@@ -4914,18 +4639,6 @@ var ja = (function () {
4914
4639
  ja.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
4915
4640
  return "月の最終日の %s 日前";
4916
4641
  };
4917
- ja.prototype.atX0SecondsPastTheMinuteGt20 = function () {
4918
- return null;
4919
- };
4920
- ja.prototype.atX0MinutesPastTheHourGt20 = function () {
4921
- return null;
4922
- };
4923
- ja.prototype.commaMonthX0ThroughMonthX1 = function () {
4924
- return null;
4925
- };
4926
- ja.prototype.commaYearX0ThroughYearX1 = function () {
4927
- return null;
4928
- };
4929
4642
  ja.prototype.lastDay = function () {
4930
4643
  return "最終日";
4931
4644
  };
@@ -4969,18 +4682,6 @@ var ko = (function () {
4969
4682
  ko.prototype.am = function () {
4970
4683
  return "오전";
4971
4684
  };
4972
- ko.prototype.atX0SecondsPastTheMinuteGt20 = function () {
4973
- return null;
4974
- };
4975
- ko.prototype.atX0MinutesPastTheHourGt20 = function () {
4976
- return null;
4977
- };
4978
- ko.prototype.commaMonthX0ThroughMonthX1 = function () {
4979
- return null;
4980
- };
4981
- ko.prototype.commaYearX0ThroughYearX1 = function () {
4982
- return null;
4983
- };
4984
4685
  ko.prototype.use24HourTimeFormatByDefault = function () {
4985
4686
  return false;
4986
4687
  };
@@ -5153,18 +4854,6 @@ exports.my = void 0;
5153
4854
  var my = (function () {
5154
4855
  function my() {
5155
4856
  }
5156
- my.prototype.atX0SecondsPastTheMinuteGt20 = function () {
5157
- return null;
5158
- };
5159
- my.prototype.atX0MinutesPastTheHourGt20 = function () {
5160
- return null;
5161
- };
5162
- my.prototype.commaMonthX0ThroughMonthX1 = function () {
5163
- return null;
5164
- };
5165
- my.prototype.commaYearX0ThroughYearX1 = function () {
5166
- return null;
5167
- };
5168
4857
  my.prototype.use24HourTimeFormatByDefault = function () {
5169
4858
  return false;
5170
4859
  };
@@ -5347,18 +5036,6 @@ exports.nb = void 0;
5347
5036
  var nb = (function () {
5348
5037
  function nb() {
5349
5038
  }
5350
- nb.prototype.atX0SecondsPastTheMinuteGt20 = function () {
5351
- return null;
5352
- };
5353
- nb.prototype.atX0MinutesPastTheHourGt20 = function () {
5354
- return null;
5355
- };
5356
- nb.prototype.commaMonthX0ThroughMonthX1 = function () {
5357
- return null;
5358
- };
5359
- nb.prototype.commaYearX0ThroughYearX1 = function () {
5360
- return null;
5361
- };
5362
5039
  nb.prototype.use24HourTimeFormatByDefault = function () {
5363
5040
  return true;
5364
5041
  };
@@ -5538,18 +5215,6 @@ exports.nl = void 0;
5538
5215
  var nl = (function () {
5539
5216
  function nl() {
5540
5217
  }
5541
- nl.prototype.atX0SecondsPastTheMinuteGt20 = function () {
5542
- return null;
5543
- };
5544
- nl.prototype.atX0MinutesPastTheHourGt20 = function () {
5545
- return null;
5546
- };
5547
- nl.prototype.commaMonthX0ThroughMonthX1 = function () {
5548
- return null;
5549
- };
5550
- nl.prototype.commaYearX0ThroughYearX1 = function () {
5551
- return null;
5552
- };
5553
5218
  nl.prototype.use24HourTimeFormatByDefault = function () {
5554
5219
  return true;
5555
5220
  };
@@ -5729,18 +5394,6 @@ exports.nn = void 0;
5729
5394
  var nn = (function () {
5730
5395
  function nn() {
5731
5396
  }
5732
- nn.prototype.atX0SecondsPastTheMinuteGt20 = function () {
5733
- return null;
5734
- };
5735
- nn.prototype.atX0MinutesPastTheHourGt20 = function () {
5736
- return null;
5737
- };
5738
- nn.prototype.commaMonthX0ThroughMonthX1 = function () {
5739
- return null;
5740
- };
5741
- nn.prototype.commaYearX0ThroughYearX1 = function () {
5742
- return null;
5743
- };
5744
5397
  nn.prototype.use24HourTimeFormatByDefault = function () {
5745
5398
  return true;
5746
5399
  };
@@ -5920,18 +5573,6 @@ exports.pl = void 0;
5920
5573
  var pl = (function () {
5921
5574
  function pl() {
5922
5575
  }
5923
- pl.prototype.atX0SecondsPastTheMinuteGt20 = function () {
5924
- return null;
5925
- };
5926
- pl.prototype.atX0MinutesPastTheHourGt20 = function () {
5927
- return null;
5928
- };
5929
- pl.prototype.commaMonthX0ThroughMonthX1 = function () {
5930
- return null;
5931
- };
5932
- pl.prototype.commaYearX0ThroughYearX1 = function () {
5933
- return null;
5934
- };
5935
5576
  pl.prototype.use24HourTimeFormatByDefault = function () {
5936
5577
  return true;
5937
5578
  };
@@ -6111,18 +5752,6 @@ exports.pt_BR = void 0;
6111
5752
  var pt_BR = (function () {
6112
5753
  function pt_BR() {
6113
5754
  }
6114
- pt_BR.prototype.atX0SecondsPastTheMinuteGt20 = function () {
6115
- return null;
6116
- };
6117
- pt_BR.prototype.atX0MinutesPastTheHourGt20 = function () {
6118
- return null;
6119
- };
6120
- pt_BR.prototype.commaMonthX0ThroughMonthX1 = function () {
6121
- return null;
6122
- };
6123
- pt_BR.prototype.commaYearX0ThroughYearX1 = function () {
6124
- return null;
6125
- };
6126
5755
  pt_BR.prototype.use24HourTimeFormatByDefault = function () {
6127
5756
  return true;
6128
5757
  };
@@ -6175,7 +5804,7 @@ var pt_BR = (function () {
6175
5804
  return ", e de %s";
6176
5805
  };
6177
5806
  pt_BR.prototype.commaOnThe = function (s, day) {
6178
- return day === '6' || day === '0' ? ", no" : ", na ";
5807
+ return day === "6" || day === "0" ? ", no" : ", na ";
6179
5808
  };
6180
5809
  pt_BR.prototype.commaOnTheLastDayOfTheMonth = function () {
6181
5810
  return ", no último dia do mês";
@@ -6220,22 +5849,22 @@ var pt_BR = (function () {
6220
5849
  return "a cada %s segundos";
6221
5850
  };
6222
5851
  pt_BR.prototype.fifth = function (s) {
6223
- return s === '6' || s === '0' ? "quinto" : "quinta";
5852
+ return s === "6" || s === "0" ? "quinto" : "quinta";
6224
5853
  };
6225
5854
  pt_BR.prototype.first = function (s) {
6226
- return s === '6' || s === '0' ? "primeiro" : "primeira";
5855
+ return s === "6" || s === "0" ? "primeiro" : "primeira";
6227
5856
  };
6228
5857
  pt_BR.prototype.firstWeekday = function () {
6229
5858
  return "primeiro dia da semana";
6230
5859
  };
6231
5860
  pt_BR.prototype.fourth = function (s) {
6232
- return s === '6' || s === '0' ? "quarto" : "quarta";
5861
+ return s === "6" || s === "0" ? "quarto" : "quarta";
6233
5862
  };
6234
5863
  pt_BR.prototype.minutesX0ThroughX1PastTheHour = function () {
6235
5864
  return "do minuto %s até %s de cada hora";
6236
5865
  };
6237
5866
  pt_BR.prototype.second = function (s) {
6238
- return s === '6' || s === '0' ? "segundo" : "segunda";
5867
+ return s === "6" || s === "0" ? "segundo" : "segunda";
6239
5868
  };
6240
5869
  pt_BR.prototype.secondsX0ThroughX1PastTheMinute = function () {
6241
5870
  return "No segundo %s até %s de cada minuto";
@@ -6250,7 +5879,7 @@ var pt_BR = (function () {
6250
5879
  return "o último dia";
6251
5880
  };
6252
5881
  pt_BR.prototype.third = function (s) {
6253
- return s === '6' || s === '0' ? "terceiro" : "terceira";
5882
+ return s === "6" || s === "0" ? "terceiro" : "terceira";
6254
5883
  };
6255
5884
  pt_BR.prototype.weekdayNearestDayX0 = function () {
6256
5885
  return "dia da semana mais próximo do dia %s";
@@ -6302,18 +5931,6 @@ exports.pt_PT = void 0;
6302
5931
  var pt_PT = (function () {
6303
5932
  function pt_PT() {
6304
5933
  }
6305
- pt_PT.prototype.atX0SecondsPastTheMinuteGt20 = function () {
6306
- return null;
6307
- };
6308
- pt_PT.prototype.atX0MinutesPastTheHourGt20 = function () {
6309
- return null;
6310
- };
6311
- pt_PT.prototype.commaMonthX0ThroughMonthX1 = function () {
6312
- return null;
6313
- };
6314
- pt_PT.prototype.commaYearX0ThroughYearX1 = function () {
6315
- return null;
6316
- };
6317
5934
  pt_PT.prototype.use24HourTimeFormatByDefault = function () {
6318
5935
  return true;
6319
5936
  };
@@ -6366,7 +5983,7 @@ var pt_PT = (function () {
6366
5983
  return ", e de %s";
6367
5984
  };
6368
5985
  pt_PT.prototype.commaOnThe = function (s, day) {
6369
- return day === '6' || day === '0' ? ", no" : ", na ";
5986
+ return day === "6" || day === "0" ? ", no" : ", na ";
6370
5987
  };
6371
5988
  pt_PT.prototype.commaOnTheLastDayOfTheMonth = function () {
6372
5989
  return ", no último dia do mês";
@@ -6411,22 +6028,22 @@ var pt_PT = (function () {
6411
6028
  return "a cada %s segundos";
6412
6029
  };
6413
6030
  pt_PT.prototype.fifth = function (s) {
6414
- return s === '6' || s === '0' ? "quinto" : "quinta";
6031
+ return s === "6" || s === "0" ? "quinto" : "quinta";
6415
6032
  };
6416
6033
  pt_PT.prototype.first = function (s) {
6417
- return s === '6' || s === '0' ? "primeiro" : "primeira";
6034
+ return s === "6" || s === "0" ? "primeiro" : "primeira";
6418
6035
  };
6419
6036
  pt_PT.prototype.firstWeekday = function () {
6420
6037
  return "primeiro dia da semana";
6421
6038
  };
6422
6039
  pt_PT.prototype.fourth = function (s) {
6423
- return s === '6' || s === '0' ? "quarto" : "quarta";
6040
+ return s === "6" || s === "0" ? "quarto" : "quarta";
6424
6041
  };
6425
6042
  pt_PT.prototype.minutesX0ThroughX1PastTheHour = function () {
6426
6043
  return "do minuto %s até %s de cada hora";
6427
6044
  };
6428
6045
  pt_PT.prototype.second = function (s) {
6429
- return s === '6' || s === '0' ? "segundo" : "segunda";
6046
+ return s === "6" || s === "0" ? "segundo" : "segunda";
6430
6047
  };
6431
6048
  pt_PT.prototype.secondsX0ThroughX1PastTheMinute = function () {
6432
6049
  return "No segundo %s até %s de cada minuto";
@@ -6441,7 +6058,7 @@ var pt_PT = (function () {
6441
6058
  return "o último dia";
6442
6059
  };
6443
6060
  pt_PT.prototype.third = function (s) {
6444
- return s === '6' || s === '0' ? "terceiro" : "terceira";
6061
+ return s === "6" || s === "0" ? "terceiro" : "terceira";
6445
6062
  };
6446
6063
  pt_PT.prototype.weekdayNearestDayX0 = function () {
6447
6064
  return "dia da semana mais próximo do dia %s";
@@ -6703,18 +6320,6 @@ var getPhraseByDayOfWeek = function (str, words) {
6703
6320
  var ru = (function () {
6704
6321
  function ru() {
6705
6322
  }
6706
- ru.prototype.atX0SecondsPastTheMinuteGt20 = function () {
6707
- return null;
6708
- };
6709
- ru.prototype.atX0MinutesPastTheHourGt20 = function () {
6710
- return null;
6711
- };
6712
- ru.prototype.commaMonthX0ThroughMonthX1 = function () {
6713
- return null;
6714
- };
6715
- ru.prototype.commaYearX0ThroughYearX1 = function () {
6716
- return null;
6717
- };
6718
6323
  ru.prototype.use24HourTimeFormatByDefault = function () {
6719
6324
  return true;
6720
6325
  };
@@ -6925,18 +6530,6 @@ exports.sk = void 0;
6925
6530
  var sk = (function () {
6926
6531
  function sk() {
6927
6532
  }
6928
- sk.prototype.atX0SecondsPastTheMinuteGt20 = function () {
6929
- return null;
6930
- };
6931
- sk.prototype.atX0MinutesPastTheHourGt20 = function () {
6932
- return null;
6933
- };
6934
- sk.prototype.commaMonthX0ThroughMonthX1 = function () {
6935
- return null;
6936
- };
6937
- sk.prototype.commaYearX0ThroughYearX1 = function () {
6938
- return null;
6939
- };
6940
6533
  sk.prototype.use24HourTimeFormatByDefault = function () {
6941
6534
  return true;
6942
6535
  };
@@ -7251,18 +6844,6 @@ var sl = (function () {
7251
6844
  sl.prototype.weekdayNearestDayX0 = function () {
7252
6845
  return "delovni dan, najbližji %s. dnevu";
7253
6846
  };
7254
- sl.prototype.commaMonthX0ThroughMonthX1 = function () {
7255
- return null;
7256
- };
7257
- sl.prototype.commaYearX0ThroughYearX1 = function () {
7258
- return null;
7259
- };
7260
- sl.prototype.atX0MinutesPastTheHourGt20 = function () {
7261
- return null;
7262
- };
7263
- sl.prototype.atX0SecondsPastTheMinuteGt20 = function () {
7264
- return null;
7265
- };
7266
6847
  sl.prototype.commaStartingX0 = function () {
7267
6848
  return ", začenši %s";
7268
6849
  };
@@ -7442,31 +7023,11 @@ var sr = (function () {
7442
7023
  sr.prototype.weekdayNearestDayX0 = function () {
7443
7024
  return "radni dan najbliži %s. danu";
7444
7025
  };
7445
- sr.prototype.commaMonthX0ThroughMonthX1 = function () {
7446
- return null;
7447
- };
7448
- sr.prototype.commaYearX0ThroughYearX1 = function () {
7449
- return null;
7450
- };
7451
- sr.prototype.atX0MinutesPastTheHourGt20 = function () {
7452
- return null;
7453
- };
7454
- sr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
7455
- return null;
7456
- };
7457
7026
  sr.prototype.commaStartingX0 = function () {
7458
7027
  return ", počevši od %s";
7459
7028
  };
7460
7029
  sr.prototype.daysOfTheWeek = function () {
7461
- return [
7462
- "Nedelja",
7463
- "Ponedeljak",
7464
- "Utorak",
7465
- "Sreda",
7466
- "Četvrtak",
7467
- "Petak",
7468
- "Subota",
7469
- ];
7030
+ return ["Nedelja", "Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"];
7470
7031
  };
7471
7032
  sr.prototype.monthsOfTheYear = function () {
7472
7033
  return [
@@ -7506,18 +7067,6 @@ exports.sv = void 0;
7506
7067
  var sv = (function () {
7507
7068
  function sv() {
7508
7069
  }
7509
- sv.prototype.atX0SecondsPastTheMinuteGt20 = function () {
7510
- return null;
7511
- };
7512
- sv.prototype.atX0MinutesPastTheHourGt20 = function () {
7513
- return null;
7514
- };
7515
- sv.prototype.commaMonthX0ThroughMonthX1 = function () {
7516
- return null;
7517
- };
7518
- sv.prototype.commaYearX0ThroughYearX1 = function () {
7519
- return null;
7520
- };
7521
7070
  sv.prototype.use24HourTimeFormatByDefault = function () {
7522
7071
  return true;
7523
7072
  };
@@ -7697,18 +7246,6 @@ exports.sw = void 0;
7697
7246
  var sw = (function () {
7698
7247
  function sw() {
7699
7248
  }
7700
- sw.prototype.atX0SecondsPastTheMinuteGt20 = function () {
7701
- return null;
7702
- };
7703
- sw.prototype.atX0MinutesPastTheHourGt20 = function () {
7704
- return null;
7705
- };
7706
- sw.prototype.commaMonthX0ThroughMonthX1 = function () {
7707
- return null;
7708
- };
7709
- sw.prototype.commaYearX0ThroughYearX1 = function () {
7710
- return null;
7711
- };
7712
7249
  sw.prototype.use24HourTimeFormatByDefault = function () {
7713
7250
  return true;
7714
7251
  };
@@ -7926,18 +7463,6 @@ var monthsIzafa = [
7926
7463
  var tg = (function () {
7927
7464
  function tg() {
7928
7465
  }
7929
- tg.prototype.atX0SecondsPastTheMinuteGt20 = function () {
7930
- return null;
7931
- };
7932
- tg.prototype.atX0MinutesPastTheHourGt20 = function () {
7933
- return null;
7934
- };
7935
- tg.prototype.commaMonthX0ThroughMonthX1 = function () {
7936
- return null;
7937
- };
7938
- tg.prototype.commaYearX0ThroughYearX1 = function () {
7939
- return null;
7940
- };
7941
7466
  tg.prototype.use24HourTimeFormatByDefault = function () {
7942
7467
  return true;
7943
7468
  };
@@ -8113,18 +7638,6 @@ exports.th = void 0;
8113
7638
  var th = (function () {
8114
7639
  function th() {
8115
7640
  }
8116
- th.prototype.atX0SecondsPastTheMinuteGt20 = function () {
8117
- return null;
8118
- };
8119
- th.prototype.atX0MinutesPastTheHourGt20 = function () {
8120
- return null;
8121
- };
8122
- th.prototype.commaMonthX0ThroughMonthX1 = function () {
8123
- return null;
8124
- };
8125
- th.prototype.commaYearX0ThroughYearX1 = function () {
8126
- return null;
8127
- };
8128
7641
  th.prototype.use24HourTimeFormatByDefault = function () {
8129
7642
  return false;
8130
7643
  };
@@ -8307,18 +7820,6 @@ exports.tr = void 0;
8307
7820
  var tr = (function () {
8308
7821
  function tr() {
8309
7822
  }
8310
- tr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
8311
- return null;
8312
- };
8313
- tr.prototype.atX0MinutesPastTheHourGt20 = function () {
8314
- return null;
8315
- };
8316
- tr.prototype.commaMonthX0ThroughMonthX1 = function () {
8317
- return null;
8318
- };
8319
- tr.prototype.commaYearX0ThroughYearX1 = function () {
8320
- return null;
8321
- };
8322
7823
  tr.prototype.use24HourTimeFormatByDefault = function () {
8323
7824
  return true;
8324
7825
  };
@@ -8498,18 +7999,6 @@ exports.uk = void 0;
8498
7999
  var uk = (function () {
8499
8000
  function uk() {
8500
8001
  }
8501
- uk.prototype.atX0SecondsPastTheMinuteGt20 = function () {
8502
- return null;
8503
- };
8504
- uk.prototype.atX0MinutesPastTheHourGt20 = function () {
8505
- return null;
8506
- };
8507
- uk.prototype.commaMonthX0ThroughMonthX1 = function () {
8508
- return null;
8509
- };
8510
- uk.prototype.commaYearX0ThroughYearX1 = function () {
8511
- return null;
8512
- };
8513
8002
  uk.prototype.use24HourTimeFormatByDefault = function () {
8514
8003
  return true;
8515
8004
  };
@@ -8689,18 +8178,6 @@ exports.vi = void 0;
8689
8178
  var vi = (function () {
8690
8179
  function vi() {
8691
8180
  }
8692
- vi.prototype.atX0SecondsPastTheMinuteGt20 = function () {
8693
- return null;
8694
- };
8695
- vi.prototype.atX0MinutesPastTheHourGt20 = function () {
8696
- return null;
8697
- };
8698
- vi.prototype.commaMonthX0ThroughMonthX1 = function () {
8699
- return null;
8700
- };
8701
- vi.prototype.commaYearX0ThroughYearX1 = function () {
8702
- return null;
8703
- };
8704
8181
  vi.prototype.use24HourTimeFormatByDefault = function () {
8705
8182
  return true;
8706
8183
  };
@@ -8892,15 +8369,6 @@ var zh_CN = (function () {
8892
8369
  zh_CN.prototype.am = function () {
8893
8370
  return "上午";
8894
8371
  };
8895
- zh_CN.prototype.atX0SecondsPastTheMinuteGt20 = function () {
8896
- return null;
8897
- };
8898
- zh_CN.prototype.atX0MinutesPastTheHourGt20 = function () {
8899
- return null;
8900
- };
8901
- zh_CN.prototype.commaMonthX0ThroughMonthX1 = function () {
8902
- return null;
8903
- };
8904
8372
  zh_CN.prototype.commaYearX0ThroughYearX1 = function () {
8905
8373
  return ", 从%s年至%s年";
8906
8374
  };
@@ -9079,15 +8547,6 @@ exports.zh_TW = void 0;
9079
8547
  var zh_TW = (function () {
9080
8548
  function zh_TW() {
9081
8549
  }
9082
- zh_TW.prototype.atX0SecondsPastTheMinuteGt20 = function () {
9083
- return null;
9084
- };
9085
- zh_TW.prototype.atX0MinutesPastTheHourGt20 = function () {
9086
- return null;
9087
- };
9088
- zh_TW.prototype.commaMonthX0ThroughMonthX1 = function () {
9089
- return null;
9090
- };
9091
8550
  zh_TW.prototype.commaYearX0ThroughYearX1 = function () {
9092
8551
  return ", 從 %s 年至 %s 年";
9093
8552
  };
@@ -9278,73 +8737,49 @@ function rangeValues(part) {
9278
8737
  }
9279
8738
  return values;
9280
8739
  }
8740
+ function assertInRange(parse, min, max, message) {
8741
+ for (var _i = 0, _a = parse.split(","); _i < _a.length; _i++) {
8742
+ var part = _a[_i];
8743
+ for (var _b = 0, _c = rangeValues(part); _b < _c.length; _b++) {
8744
+ var value = _c[_b];
8745
+ assert(value >= min && value <= max, message);
8746
+ }
8747
+ }
8748
+ }
9281
8749
  var RangeValidator = (function () {
9282
8750
  function RangeValidator() {
9283
8751
  }
9284
8752
  RangeValidator.stepRange = function (parse) {
9285
- var parsed = parse.split(',');
9286
- for (var i = 0; i < parsed.length; i++) {
9287
- var step = parsed[i].split('/')[1];
9288
- assert(step === undefined || !/^0+$/.test(step), 'step value must be greater than 0');
8753
+ for (var _i = 0, _a = parse.split(","); _i < _a.length; _i++) {
8754
+ var part = _a[_i];
8755
+ var step = part.split("/")[1];
8756
+ assert(step === undefined || !/^0+$/.test(step), "step value must be greater than 0");
9289
8757
  }
9290
8758
  };
9291
8759
  RangeValidator.secondRange = function (parse) {
9292
- var parsed = parse.split(',');
9293
- for (var i = 0; i < parsed.length; i++) {
9294
- for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
9295
- var second = _a[_i];
9296
- assert(second >= 0 && second <= 59, 'seconds part must be >= 0 and <= 59');
9297
- }
9298
- }
8760
+ assertInRange(parse, 0, 59, "seconds part must be >= 0 and <= 59");
9299
8761
  };
9300
8762
  RangeValidator.minuteRange = function (parse) {
9301
- var parsed = parse.split(',');
9302
- for (var i = 0; i < parsed.length; i++) {
9303
- for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
9304
- var minute = _a[_i];
9305
- assert(minute >= 0 && minute <= 59, 'minutes part must be >= 0 and <= 59');
9306
- }
9307
- }
8763
+ assertInRange(parse, 0, 59, "minutes part must be >= 0 and <= 59");
9308
8764
  };
9309
8765
  RangeValidator.hourRange = function (parse) {
9310
- var parsed = parse.split(',');
9311
- for (var i = 0; i < parsed.length; i++) {
9312
- for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
9313
- var hour = _a[_i];
9314
- assert(hour >= 0 && hour <= 23, 'hours part must be >= 0 and <= 23');
9315
- }
9316
- }
8766
+ assertInRange(parse, 0, 23, "hours part must be >= 0 and <= 23");
9317
8767
  };
9318
8768
  RangeValidator.dayOfMonthRange = function (parse) {
9319
- var parsed = parse.split(',');
9320
- for (var i = 0; i < parsed.length; i++) {
9321
- for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
9322
- var dayOfMonth = _a[_i];
9323
- assert(dayOfMonth >= 1 && dayOfMonth <= 31, 'DOM part must be >= 1 and <= 31');
9324
- }
9325
- }
8769
+ assertInRange(parse, 1, 31, "DOM part must be >= 1 and <= 31");
9326
8770
  };
9327
8771
  RangeValidator.monthRange = function (parse, monthStartIndexZero) {
9328
- var parsed = parse.split(',');
9329
- for (var i = 0; i < parsed.length; i++) {
9330
- for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
9331
- var month = _a[_i];
9332
- assert(month >= 1 && month <= 12, monthStartIndexZero ? 'month part must be >= 0 and <= 11' : 'month part must be >= 1 and <= 12');
9333
- }
9334
- }
8772
+ assertInRange(parse, 1, 12, monthStartIndexZero ? "month part must be >= 0 and <= 11" : "month part must be >= 1 and <= 12");
9335
8773
  };
9336
8774
  RangeValidator.dayOfWeekRange = function (parse, dayOfWeekStartIndexZero) {
9337
- var parsed = parse.split(',');
9338
- for (var i = 0; i < parsed.length; i++) {
9339
- if (parsed[i].indexOf('#') > -1) {
9340
- var nthString = parsed[i].substring(parsed[i].indexOf('#') + 1);
9341
- assert(/^[1-5]$/.test(nthString), 'DOW nth weekday must be >= 1 and <= 5');
9342
- }
9343
- for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
9344
- var dayOfWeek = _a[_i];
9345
- assert(dayOfWeek >= 0 && dayOfWeek <= 6, dayOfWeekStartIndexZero ? 'DOW part must be >= 0 and <= 6' : 'DOW part must be >= 1 and <= 7');
8775
+ for (var _i = 0, _a = parse.split(","); _i < _a.length; _i++) {
8776
+ var part = _a[_i];
8777
+ if (part.indexOf("#") > -1) {
8778
+ var nthString = part.substring(part.indexOf("#") + 1);
8779
+ assert(/^[1-5]$/.test(nthString), "DOW nth weekday must be >= 1 and <= 5");
9346
8780
  }
9347
8781
  }
8782
+ assertInRange(parse, 0, 6, dayOfWeekStartIndexZero ? "DOW part must be >= 0 and <= 6" : "DOW part must be >= 1 and <= 7");
9348
8783
  };
9349
8784
  return RangeValidator;
9350
8785
  }());