cronstrue 3.45.0 → 3.47.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.
- package/dist/cronstrue-i18n.js +342 -890
- package/dist/cronstrue-i18n.min.js +1 -1
- package/dist/cronstrue.js +263 -348
- package/dist/cronstrue.min.js +1 -1
- package/dist/expressionDescriptor.d.ts +17 -9
- package/dist/i18n/allLocales.d.ts +6 -6
- package/dist/i18n/locale.d.ts +4 -4
- package/dist/i18n/locales/af.d.ts +1 -4
- package/dist/i18n/locales/ar.d.ts +0 -4
- package/dist/i18n/locales/az.d.ts +2 -4
- package/dist/i18n/locales/be.d.ts +0 -4
- package/dist/i18n/locales/bg.d.ts +1 -5
- package/dist/i18n/locales/ca.d.ts +0 -4
- package/dist/i18n/locales/cs.d.ts +0 -4
- package/dist/i18n/locales/da.d.ts +0 -4
- package/dist/i18n/locales/de.d.ts +0 -4
- package/dist/i18n/locales/en.d.ts +4 -6
- package/dist/i18n/locales/es.d.ts +0 -4
- package/dist/i18n/locales/fa.d.ts +0 -4
- package/dist/i18n/locales/fi.d.ts +1 -4
- package/dist/i18n/locales/fr.d.ts +0 -4
- package/dist/i18n/locales/he.d.ts +0 -4
- package/dist/i18n/locales/hr.d.ts +0 -4
- package/dist/i18n/locales/hu.d.ts +0 -4
- package/dist/i18n/locales/id.d.ts +0 -4
- package/dist/i18n/locales/it.d.ts +0 -4
- package/dist/i18n/locales/ja.d.ts +0 -4
- package/dist/i18n/locales/ko.d.ts +0 -4
- package/dist/i18n/locales/my.d.ts +0 -4
- package/dist/i18n/locales/nb.d.ts +0 -4
- package/dist/i18n/locales/nl.d.ts +0 -4
- package/dist/i18n/locales/nn.d.ts +0 -4
- package/dist/i18n/locales/pl.d.ts +0 -4
- package/dist/i18n/locales/pt_BR.d.ts +2 -6
- package/dist/i18n/locales/pt_PT.d.ts +0 -4
- package/dist/i18n/locales/ru.d.ts +0 -4
- package/dist/i18n/locales/sk.d.ts +0 -4
- package/dist/i18n/locales/sl.d.ts +0 -4
- package/dist/i18n/locales/sr.d.ts +0 -4
- package/dist/i18n/locales/sv.d.ts +0 -4
- package/dist/i18n/locales/sw.d.ts +0 -4
- package/dist/i18n/locales/tg.d.ts +0 -4
- package/dist/i18n/locales/th.d.ts +0 -4
- package/dist/i18n/locales/tr.d.ts +0 -4
- package/dist/i18n/locales/uk.d.ts +0 -4
- package/dist/i18n/locales/vi.d.ts +0 -4
- package/dist/i18n/locales/zh_CN.d.ts +1 -4
- package/dist/i18n/locales/zh_TW.d.ts +1 -4
- package/locales/af.js +0 -9
- package/locales/af.min.js +1 -1
- package/locales/ar.js +0 -12
- package/locales/ar.min.js +1 -1
- package/locales/az.js +0 -6
- package/locales/az.min.js +1 -1
- package/locales/be.js +0 -12
- package/locales/be.min.js +1 -1
- package/locales/bg.js +67 -64
- package/locales/bg.min.js +1 -1
- package/locales/ca.js +0 -12
- package/locales/ca.min.js +1 -1
- package/locales/cs.js +0 -12
- package/locales/cs.min.js +1 -1
- package/locales/da.js +0 -12
- package/locales/da.min.js +1 -1
- package/locales/de.js +0 -12
- package/locales/de.min.js +1 -1
- package/locales/en.js +7 -13
- package/locales/en.min.js +1 -1
- package/locales/es.js +0 -12
- package/locales/es.min.js +1 -1
- package/locales/fa.js +0 -12
- package/locales/fa.min.js +1 -1
- package/locales/fi.js +0 -9
- package/locales/fi.min.js +1 -1
- package/locales/fr.js +0 -12
- package/locales/fr.min.js +1 -1
- package/locales/he.js +0 -12
- package/locales/he.min.js +1 -1
- package/locales/hr.js +1 -21
- package/locales/hr.min.js +1 -1
- package/locales/hu.js +0 -12
- package/locales/hu.min.js +1 -1
- package/locales/id.js +0 -12
- package/locales/id.min.js +1 -1
- package/locales/it.js +0 -12
- package/locales/it.min.js +1 -1
- package/locales/ja.js +0 -12
- package/locales/ja.min.js +1 -1
- package/locales/ko.js +0 -12
- package/locales/ko.min.js +1 -1
- package/locales/my.js +0 -12
- package/locales/my.min.js +1 -1
- package/locales/nb.js +0 -12
- package/locales/nb.min.js +1 -1
- package/locales/nl.js +0 -12
- package/locales/nl.min.js +1 -1
- package/locales/nn.js +0 -12
- package/locales/nn.min.js +1 -1
- package/locales/pl.js +0 -12
- package/locales/pl.min.js +1 -1
- package/locales/pt_BR.js +6 -18
- package/locales/pt_BR.min.js +1 -1
- package/locales/pt_PT.js +6 -18
- package/locales/pt_PT.min.js +1 -1
- package/locales/ru.js +0 -12
- package/locales/ru.min.js +1 -1
- package/locales/sk.js +0 -12
- package/locales/sk.min.js +1 -1
- package/locales/sl.js +0 -12
- package/locales/sl.min.js +1 -1
- package/locales/sr.js +1 -21
- package/locales/sr.min.js +1 -1
- package/locales/sv.js +0 -12
- package/locales/sv.min.js +1 -1
- package/locales/sw.js +0 -12
- package/locales/sw.min.js +1 -1
- package/locales/tg.js +0 -12
- package/locales/tg.min.js +1 -1
- package/locales/th.js +0 -12
- package/locales/th.min.js +1 -1
- package/locales/tr.js +0 -12
- package/locales/tr.min.js +1 -1
- package/locales/uk.js +0 -12
- package/locales/uk.min.js +1 -1
- package/locales/vi.js +0 -12
- package/locales/vi.min.js +1 -1
- package/locales/zh_CN.js +0 -9
- package/locales/zh_CN.min.js +1 -1
- package/locales/zh_TW.js +0 -9
- package/locales/zh_TW.min.js +1 -1
- package/package.json +10 -11
package/dist/cronstrue-i18n.js
CHANGED
|
@@ -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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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(
|
|
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
|
-
|
|
116
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
|
166
|
-
|
|
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
|
|
183
|
-
var
|
|
177
|
+
var monthDigits = t.replace(/\D/, "");
|
|
178
|
+
var monthDigitsAdjusted = monthDigits;
|
|
184
179
|
if (_this.monthStartIndexZero) {
|
|
185
|
-
|
|
180
|
+
monthDigitsAdjusted = (parseInt(monthDigits) + 1).toString();
|
|
186
181
|
}
|
|
187
|
-
return t.replace(
|
|
182
|
+
return t.replace(monthDigits, monthDigitsAdjusted);
|
|
188
183
|
});
|
|
189
|
-
var
|
|
190
|
-
|
|
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
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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 =
|
|
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
|
-
|
|
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)) ||
|
|
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.
|
|
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
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(s), s);
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(s), s);
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
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
|
-
|
|
454
|
-
|
|
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
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
return _this.i18n.
|
|
484
|
-
|
|
485
|
-
return _this.i18n.atX0();
|
|
486
|
-
|
|
487
|
-
|
|
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,85 @@ 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
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
|
+
var startsWithAnd_1 = this.expressionParts[3] != "*" && !this.options.logicalAndDayFields && dayOfWeekExpression.indexOf(",") == -1;
|
|
486
|
+
var stepSegments = dayOfWeekExpression.split("/");
|
|
487
|
+
var hasStep_1 = stepSegments.length > 1 && parseInt(stepSegments[1]) != 1;
|
|
488
|
+
var andPrefix_1 = this.getAndPrefix();
|
|
489
|
+
description = this.getSegmentDescription(dayOfWeekExpression, {
|
|
490
|
+
all: this.i18n.commaEveryDay(),
|
|
491
|
+
single: function (s, form) {
|
|
492
|
+
var exp = s;
|
|
493
|
+
if (s.indexOf("#") > -1) {
|
|
494
|
+
exp = s.substring(0, s.indexOf("#"));
|
|
548
495
|
}
|
|
549
|
-
|
|
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.split(",")[0].replace("L", ""));
|
|
572
|
-
}
|
|
573
|
-
else {
|
|
574
|
-
var domSpecified = _this.expressionParts[3] != "*";
|
|
575
|
-
if (!domSpecified) {
|
|
576
|
-
format = _this.i18n.commaOnlyOnX0(s);
|
|
496
|
+
else if (s.indexOf("L") > -1) {
|
|
497
|
+
exp = exp.replace("L", "");
|
|
577
498
|
}
|
|
578
|
-
|
|
579
|
-
|
|
499
|
+
var parsedExp = parseInt(exp);
|
|
500
|
+
var description = _this.i18n.daysOfTheWeekInCase
|
|
501
|
+
? _this.i18n.daysOfTheWeekInCase(form)[parsedExp]
|
|
502
|
+
: daysOfWeekNames[parsedExp];
|
|
503
|
+
if (s.indexOf("#") > -1) {
|
|
504
|
+
var dayOfWeekOfMonthNumber = parseInt(s.substring(s.indexOf("#") + 1));
|
|
505
|
+
var dayOfWeekNumber = s.substring(0, s.indexOf("#"));
|
|
506
|
+
var ordinal = ExpressionDescriptor.ordinals[dayOfWeekOfMonthNumber - 1];
|
|
507
|
+
description = _this.i18n[ordinal](dayOfWeekNumber) + " " + description;
|
|
508
|
+
}
|
|
509
|
+
return description;
|
|
510
|
+
},
|
|
511
|
+
increment: function (s) {
|
|
512
|
+
if (parseInt(s) == 1) {
|
|
513
|
+
return "";
|
|
514
|
+
}
|
|
515
|
+
var format = _this.i18n.commaEveryX0DaysOfTheWeek(s);
|
|
516
|
+
return stringUtilities_1.StringUtilities.format(startsWithAnd_1 && andPrefix_1 ? andPrefix_1 + ExpressionDescriptor.removeLeadingComma(format) : format, s);
|
|
517
|
+
},
|
|
518
|
+
range: function (s) {
|
|
519
|
+
var beginFrom = s.substring(0, s.indexOf("-"));
|
|
520
|
+
return startsWithAnd_1 && (!hasStep_1 || !andPrefix_1)
|
|
521
|
+
? _this.i18n.commaAndX0ThroughX1(beginFrom)
|
|
522
|
+
: _this.i18n.commaX0ThroughX1(beginFrom);
|
|
523
|
+
},
|
|
524
|
+
format: function (s) {
|
|
525
|
+
var format = null;
|
|
526
|
+
if (s.indexOf("#") > -1) {
|
|
527
|
+
var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
|
|
528
|
+
var dayOfWeek = s.substring(0, s.indexOf("#"));
|
|
529
|
+
format = _this.i18n.commaOnThe(dayOfWeekOfMonthNumber, dayOfWeek).trim() + _this.i18n.spaceX0OfTheMonth();
|
|
530
|
+
}
|
|
531
|
+
else if (s.indexOf("L") > -1) {
|
|
532
|
+
format = _this.i18n.commaOnTheLastX0OfTheMonth(s.split(",")[0].replace("L", ""));
|
|
580
533
|
}
|
|
581
534
|
else {
|
|
582
|
-
|
|
535
|
+
var domSpecified = _this.expressionParts[3] != "*";
|
|
536
|
+
if (!domSpecified) {
|
|
537
|
+
format = _this.i18n.commaOnlyOnX0(s);
|
|
538
|
+
}
|
|
539
|
+
else if (_this.options.logicalAndDayFields) {
|
|
540
|
+
format = _this.i18n.commaOnlyOnX0(s);
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
format = _this.i18n.commaAndOnX0();
|
|
544
|
+
}
|
|
583
545
|
}
|
|
584
|
-
|
|
585
|
-
|
|
546
|
+
return format;
|
|
547
|
+
},
|
|
586
548
|
});
|
|
587
549
|
}
|
|
588
550
|
return description;
|
|
@@ -590,23 +552,28 @@ var ExpressionDescriptor = (function () {
|
|
|
590
552
|
ExpressionDescriptor.prototype.getMonthDescription = function () {
|
|
591
553
|
var _this = this;
|
|
592
554
|
var monthNames = this.i18n.monthsOfTheYear();
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
return _this.i18n.commaMonthX0ThroughMonthX1() || _this.i18n.commaX0ThroughX1();
|
|
606
|
-
}, function (s) {
|
|
607
|
-
return _this.i18n.commaOnlyInMonthX0 ? _this.i18n.commaOnlyInMonthX0() : _this.i18n.commaOnlyInX0();
|
|
555
|
+
return this.getSegmentDescription(this.expressionParts[4], {
|
|
556
|
+
all: "",
|
|
557
|
+
single: function (s, form) {
|
|
558
|
+
return form && _this.i18n.monthsOfTheYearInCase
|
|
559
|
+
? _this.i18n.monthsOfTheYearInCase(form)[parseInt(s) - 1]
|
|
560
|
+
: monthNames[parseInt(s) - 1];
|
|
561
|
+
},
|
|
562
|
+
increment: function (s) {
|
|
563
|
+
return parseInt(s) == 1 ? "" : stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(s), s);
|
|
564
|
+
},
|
|
565
|
+
range: function () { var _a, _b; return ((_b = (_a = _this.i18n).commaMonthX0ThroughMonthX1) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.i18n.commaX0ThroughX1(); },
|
|
566
|
+
format: function () { return (_this.i18n.commaOnlyInMonthX0 ? _this.i18n.commaOnlyInMonthX0() : _this.i18n.commaOnlyInX0()); },
|
|
608
567
|
});
|
|
609
|
-
|
|
568
|
+
};
|
|
569
|
+
ExpressionDescriptor.prototype.getAndPrefix = function () {
|
|
570
|
+
var plain = this.i18n.commaX0ThroughX1();
|
|
571
|
+
var withAnd = this.i18n.commaAndX0ThroughX1();
|
|
572
|
+
var body = ExpressionDescriptor.removeLeadingComma(plain);
|
|
573
|
+
if (withAnd == plain || withAnd.length <= body.length || withAnd.slice(-body.length) != body) {
|
|
574
|
+
return null;
|
|
575
|
+
}
|
|
576
|
+
return withAnd.slice(0, -body.length);
|
|
610
577
|
};
|
|
611
578
|
ExpressionDescriptor.removeLeadingComma = function (description) {
|
|
612
579
|
return description.replace(/^[,،,、] ?/, "");
|
|
@@ -662,10 +629,12 @@ var ExpressionDescriptor = (function () {
|
|
|
662
629
|
description = stringUtilities_1.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(), dayString);
|
|
663
630
|
}
|
|
664
631
|
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)) ||
|
|
632
|
+
description = stringUtilities_1.StringUtilities.format(((_b = (_a = this.i18n).commaDaysBeforeTheX0OfTheMonth) === null || _b === void 0 ? void 0 : _b.call(_a, offsetDays)) ||
|
|
633
|
+
english.commaDaysBeforeTheX0OfTheMonth(offsetDays), offsetDays, dayString);
|
|
666
634
|
}
|
|
667
635
|
else {
|
|
668
|
-
description = stringUtilities_1.StringUtilities.format(((_d = (_c = this.i18n).commaDaysAfterTheX0OfTheMonth) === null || _d === void 0 ? void 0 : _d.call(_c, offsetDays)) ||
|
|
636
|
+
description = stringUtilities_1.StringUtilities.format(((_d = (_c = this.i18n).commaDaysAfterTheX0OfTheMonth) === null || _d === void 0 ? void 0 : _d.call(_c, offsetDays)) ||
|
|
637
|
+
english.commaDaysAfterTheX0OfTheMonth(offsetDays), offsetDays, dayString);
|
|
669
638
|
}
|
|
670
639
|
break;
|
|
671
640
|
}
|
|
@@ -680,18 +649,14 @@ var ExpressionDescriptor = (function () {
|
|
|
680
649
|
return "";
|
|
681
650
|
}
|
|
682
651
|
else {
|
|
683
|
-
description = this.getSegmentDescription(expression,
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
: _this.i18n.dayX0
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
return s == "
|
|
691
|
-
}, function (s) {
|
|
692
|
-
return _this.i18n.commaBetweenDayX0AndX1OfTheMonth(s);
|
|
693
|
-
}, function (s) {
|
|
694
|
-
return s == "L" ? _this.i18n.commaOnTheLastDayOfTheMonth() : _this.i18n.commaOnDayX0OfTheMonth(s);
|
|
652
|
+
description = this.getSegmentDescription(expression, {
|
|
653
|
+
all: this.i18n.commaEveryDay(),
|
|
654
|
+
single: function (s) {
|
|
655
|
+
return s == "L" ? _this.i18n.lastDay() : _this.i18n.dayX0 ? stringUtilities_1.StringUtilities.format(_this.i18n.dayX0(), s) : s;
|
|
656
|
+
},
|
|
657
|
+
increment: function (s) { return (s == "1" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days(s)); },
|
|
658
|
+
range: function (s) { return _this.i18n.commaBetweenDayX0AndX1OfTheMonth(s); },
|
|
659
|
+
format: function (s) { return (s == "L" ? _this.i18n.commaOnTheLastDayOfTheMonth() : _this.i18n.commaOnDayX0OfTheMonth(s)); },
|
|
695
660
|
});
|
|
696
661
|
}
|
|
697
662
|
break;
|
|
@@ -701,18 +666,16 @@ var ExpressionDescriptor = (function () {
|
|
|
701
666
|
};
|
|
702
667
|
ExpressionDescriptor.prototype.getYearDescription = function () {
|
|
703
668
|
var _this = this;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(s), s);
|
|
708
|
-
|
|
709
|
-
return _this.i18n.
|
|
710
|
-
}, function (s) {
|
|
711
|
-
return _this.i18n.commaOnlyInYearX0 ? _this.i18n.commaOnlyInYearX0() : _this.i18n.commaOnlyInX0();
|
|
669
|
+
return this.getSegmentDescription(this.expressionParts[6], {
|
|
670
|
+
all: "",
|
|
671
|
+
single: function (s) { return (/^\d+$/.test(s) ? new Date(parseInt(s), 1).getFullYear().toString() : s); },
|
|
672
|
+
increment: function (s) { return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(s), s); },
|
|
673
|
+
range: function () { var _a, _b; return ((_b = (_a = _this.i18n).commaYearX0ThroughYearX1) === null || _b === void 0 ? void 0 : _b.call(_a)) || _this.i18n.commaX0ThroughX1(); },
|
|
674
|
+
format: function () { return (_this.i18n.commaOnlyInYearX0 ? _this.i18n.commaOnlyInYearX0() : _this.i18n.commaOnlyInX0()); },
|
|
712
675
|
});
|
|
713
|
-
return description;
|
|
714
676
|
};
|
|
715
|
-
ExpressionDescriptor.prototype.getSegmentDescription = function (expression,
|
|
677
|
+
ExpressionDescriptor.prototype.getSegmentDescription = function (expression, describers) {
|
|
678
|
+
var itemDescribers = __assign(__assign({}, describers), { bounds: undefined });
|
|
716
679
|
var description = null;
|
|
717
680
|
var doesExpressionContainIncrement = expression.indexOf("/") > -1;
|
|
718
681
|
var doesExpressionContainRange = expression.indexOf("-") > -1;
|
|
@@ -721,10 +684,10 @@ var ExpressionDescriptor = (function () {
|
|
|
721
684
|
description = "";
|
|
722
685
|
}
|
|
723
686
|
else if (expression === "*") {
|
|
724
|
-
description =
|
|
687
|
+
description = describers.all;
|
|
725
688
|
}
|
|
726
689
|
else if (!doesExpressionContainIncrement && !doesExpressionContainRange && !doesExpressionContainMultipleValues) {
|
|
727
|
-
description = stringUtilities_1.StringUtilities.format(
|
|
690
|
+
description = stringUtilities_1.StringUtilities.format(describers.format(expression), describers.single(expression));
|
|
728
691
|
}
|
|
729
692
|
else if (doesExpressionContainMultipleValues) {
|
|
730
693
|
var segments = expression.split(",");
|
|
@@ -742,17 +705,17 @@ var ExpressionDescriptor = (function () {
|
|
|
742
705
|
}
|
|
743
706
|
if (segments[i].indexOf("/") > -1 || segments[i].indexOf("-") > -1) {
|
|
744
707
|
var isSegmentRangeWithoutIncrement = segments[i].indexOf("-") > -1 && segments[i].indexOf("/") == -1;
|
|
745
|
-
var currentDescriptionContent = this.getSegmentDescription(segments[i],
|
|
708
|
+
var currentDescriptionContent = this.getSegmentDescription(segments[i], isSegmentRangeWithoutIncrement ? __assign(__assign({}, itemDescribers), { range: this.i18n.commaX0ThroughX1 }) : itemDescribers);
|
|
746
709
|
if (isSegmentRangeWithoutIncrement || i > 0) {
|
|
747
710
|
currentDescriptionContent = ExpressionDescriptor.removeLeadingComma(currentDescriptionContent);
|
|
748
711
|
}
|
|
749
712
|
descriptionContent += currentDescriptionContent;
|
|
750
713
|
}
|
|
751
714
|
else if (!doesExpressionContainIncrement) {
|
|
752
|
-
descriptionContent +=
|
|
715
|
+
descriptionContent += describers.single(segments[i]);
|
|
753
716
|
}
|
|
754
717
|
else {
|
|
755
|
-
var segmentDescription = this.getSegmentDescription(segments[i],
|
|
718
|
+
var segmentDescription = this.getSegmentDescription(segments[i], itemDescribers);
|
|
756
719
|
if (i > 0 && segmentDescription) {
|
|
757
720
|
segmentDescription = ExpressionDescriptor.removeLeadingComma(segmentDescription);
|
|
758
721
|
}
|
|
@@ -760,7 +723,7 @@ var ExpressionDescriptor = (function () {
|
|
|
760
723
|
}
|
|
761
724
|
}
|
|
762
725
|
if (!doesExpressionContainIncrement) {
|
|
763
|
-
description = stringUtilities_1.StringUtilities.format(
|
|
726
|
+
description = stringUtilities_1.StringUtilities.format(describers.format(expression), descriptionContent);
|
|
764
727
|
}
|
|
765
728
|
else {
|
|
766
729
|
description = descriptionContent;
|
|
@@ -768,27 +731,28 @@ var ExpressionDescriptor = (function () {
|
|
|
768
731
|
}
|
|
769
732
|
else if (doesExpressionContainIncrement) {
|
|
770
733
|
var segments = expression.split("/");
|
|
771
|
-
description = stringUtilities_1.StringUtilities.format(
|
|
734
|
+
description = stringUtilities_1.StringUtilities.format(describers.increment(segments[1]), segments[1]);
|
|
772
735
|
if (segments[0].indexOf("-") > -1) {
|
|
773
|
-
var rangeSegmentDescription = this.generateRangeSegmentDescription(segments[0],
|
|
736
|
+
var rangeSegmentDescription = this.generateRangeSegmentDescription(segments[0], describers);
|
|
774
737
|
if (!ExpressionDescriptor.hasLeadingComma(rangeSegmentDescription)) {
|
|
775
738
|
description += ", ";
|
|
776
739
|
}
|
|
777
740
|
description += rangeSegmentDescription;
|
|
778
741
|
}
|
|
779
742
|
else if (segments[0].indexOf("*") == -1) {
|
|
780
|
-
var rangeItemDescription = stringUtilities_1.StringUtilities.format(
|
|
743
|
+
var rangeItemDescription = stringUtilities_1.StringUtilities.format(describers.format(segments[0]), describers.single(segments[0]));
|
|
781
744
|
rangeItemDescription = ExpressionDescriptor.removeLeadingComma(rangeItemDescription);
|
|
782
745
|
description += stringUtilities_1.StringUtilities.format(this.i18n.commaStartingX0(), rangeItemDescription);
|
|
783
746
|
}
|
|
784
|
-
description += this.getWrappingIncrementDescription(expression,
|
|
747
|
+
description += this.getWrappingIncrementDescription(expression, describers);
|
|
785
748
|
}
|
|
786
749
|
else if (doesExpressionContainRange) {
|
|
787
|
-
description = this.generateRangeSegmentDescription(expression,
|
|
750
|
+
description = this.generateRangeSegmentDescription(expression, describers);
|
|
788
751
|
}
|
|
789
752
|
return description;
|
|
790
753
|
};
|
|
791
|
-
ExpressionDescriptor.prototype.getWrappingIncrementDescription = function (expression,
|
|
754
|
+
ExpressionDescriptor.prototype.getWrappingIncrementDescription = function (expression, describers) {
|
|
755
|
+
var range = describers.bounds;
|
|
792
756
|
if (!this.options.verbose || !range) {
|
|
793
757
|
return "";
|
|
794
758
|
}
|
|
@@ -808,37 +772,16 @@ var ExpressionDescriptor = (function () {
|
|
|
808
772
|
if (values.length < 2) {
|
|
809
773
|
return "";
|
|
810
774
|
}
|
|
811
|
-
var valuesDescription = this.getSegmentDescription(values.join(","),
|
|
775
|
+
var valuesDescription = this.getSegmentDescription(values.join(","), __assign(__assign({}, describers), { bounds: undefined }));
|
|
812
776
|
return valuesDescription ? ", ".concat(valuesDescription) : "";
|
|
813
777
|
};
|
|
814
|
-
ExpressionDescriptor.prototype.generateRangeSegmentDescription = function (rangeExpression,
|
|
815
|
-
var description = "";
|
|
778
|
+
ExpressionDescriptor.prototype.generateRangeSegmentDescription = function (rangeExpression, describers) {
|
|
816
779
|
var rangeSegments = rangeExpression.split("-");
|
|
817
|
-
|
|
818
|
-
var rangeSegment2Description = getSingleItemDescription(rangeSegments[1], 2);
|
|
819
|
-
var rangeDescriptionFormat = getRangeDescriptionFormat(rangeExpression);
|
|
820
|
-
description += stringUtilities_1.StringUtilities.format(rangeDescriptionFormat, rangeSegment1Description, rangeSegment2Description);
|
|
821
|
-
return description;
|
|
780
|
+
return stringUtilities_1.StringUtilities.format(describers.range(rangeExpression), describers.single(rangeSegments[0], 1), describers.single(rangeSegments[1], 2));
|
|
822
781
|
};
|
|
823
782
|
ExpressionDescriptor.prototype.formatTime = function (hourExpression, minuteExpression, secondExpression) {
|
|
824
|
-
var
|
|
825
|
-
var
|
|
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
|
-
}
|
|
783
|
+
var hour = parseInt(hourExpression);
|
|
784
|
+
var minute = parseInt(minuteExpression);
|
|
842
785
|
var period = "";
|
|
843
786
|
var setPeriodBeforeTime = false;
|
|
844
787
|
if (!this.options.use24HourTimeFormat) {
|
|
@@ -878,9 +821,11 @@ var ExpressionDescriptor = (function () {
|
|
|
878
821
|
return description;
|
|
879
822
|
};
|
|
880
823
|
ExpressionDescriptor.prototype.getPeriod = function (hour) {
|
|
881
|
-
|
|
824
|
+
var _a, _b, _c, _d;
|
|
825
|
+
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
826
|
};
|
|
883
827
|
ExpressionDescriptor.locales = {};
|
|
828
|
+
ExpressionDescriptor.ordinals = ["first", "second", "third", "fourth", "fifth"];
|
|
884
829
|
return ExpressionDescriptor;
|
|
885
830
|
}());
|
|
886
831
|
exports.ExpressionDescriptor = ExpressionDescriptor;
|
|
@@ -1015,15 +960,6 @@ exports.af = void 0;
|
|
|
1015
960
|
var af = (function () {
|
|
1016
961
|
function af() {
|
|
1017
962
|
}
|
|
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
963
|
af.prototype.commaYearX0ThroughYearX1 = function () {
|
|
1028
964
|
return ", jaar %s na %s";
|
|
1029
965
|
};
|
|
@@ -1209,18 +1145,6 @@ exports.ar = void 0;
|
|
|
1209
1145
|
var ar = (function () {
|
|
1210
1146
|
function ar() {
|
|
1211
1147
|
}
|
|
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
1148
|
ar.prototype.use24HourTimeFormatByDefault = function () {
|
|
1225
1149
|
return true;
|
|
1226
1150
|
};
|
|
@@ -1433,12 +1357,6 @@ var ordinalSuffix = function (value) {
|
|
|
1433
1357
|
var az = (function () {
|
|
1434
1358
|
function az() {
|
|
1435
1359
|
}
|
|
1436
|
-
az.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
1437
|
-
return null;
|
|
1438
|
-
};
|
|
1439
|
-
az.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
1440
|
-
return null;
|
|
1441
|
-
};
|
|
1442
1360
|
az.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
1443
1361
|
return ", %s %s qədər";
|
|
1444
1362
|
};
|
|
@@ -1681,18 +1599,6 @@ exports.be = void 0;
|
|
|
1681
1599
|
var be = (function () {
|
|
1682
1600
|
function be() {
|
|
1683
1601
|
}
|
|
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
1602
|
be.prototype.use24HourTimeFormatByDefault = function () {
|
|
1697
1603
|
return false;
|
|
1698
1604
|
};
|
|
@@ -1880,173 +1786,176 @@ var getPhraseByDayOfWeek = function (str, words) {
|
|
|
1880
1786
|
};
|
|
1881
1787
|
var getNumberEnding = function (str, gender) {
|
|
1882
1788
|
var strAsNumber = str != null ? Number(str) : 1;
|
|
1883
|
-
strAsNumber =
|
|
1884
|
-
|
|
1885
|
-
|
|
1789
|
+
strAsNumber =
|
|
1790
|
+
Math.max(Math.min(strAsNumber < 10 || (strAsNumber > 20 && strAsNumber % 10 !== 0) ? strAsNumber % 10 : 3, 3), 1) -
|
|
1791
|
+
1;
|
|
1792
|
+
var genderIndex = ["м", "ж", "ср"].indexOf(gender);
|
|
1793
|
+
return ["в", "р", "т"][strAsNumber] + ["и", "а", "о"][genderIndex];
|
|
1886
1794
|
};
|
|
1887
1795
|
var bg = (function () {
|
|
1888
1796
|
function bg() {
|
|
1889
1797
|
}
|
|
1890
|
-
bg.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
1891
|
-
return null;
|
|
1892
|
-
};
|
|
1893
|
-
bg.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
1894
|
-
return null;
|
|
1895
|
-
};
|
|
1896
|
-
bg.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
1897
|
-
return null;
|
|
1898
|
-
};
|
|
1899
|
-
bg.prototype.commaYearX0ThroughYearX1 = function () {
|
|
1900
|
-
return null;
|
|
1901
|
-
};
|
|
1902
1798
|
bg.prototype.use24HourTimeFormatByDefault = function () {
|
|
1903
1799
|
return true;
|
|
1904
1800
|
};
|
|
1905
1801
|
bg.prototype.everyMinute = function () {
|
|
1906
|
-
return
|
|
1802
|
+
return "всяка минута";
|
|
1907
1803
|
};
|
|
1908
1804
|
bg.prototype.everyHour = function () {
|
|
1909
|
-
return
|
|
1805
|
+
return "всеки час";
|
|
1910
1806
|
};
|
|
1911
1807
|
bg.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
|
|
1912
|
-
return
|
|
1808
|
+
return "Възникна грешка при генериране на описанието на израза. Проверете синтаксиса на cron израза.";
|
|
1913
1809
|
};
|
|
1914
1810
|
bg.prototype.atSpace = function () {
|
|
1915
|
-
return
|
|
1811
|
+
return "В ";
|
|
1916
1812
|
};
|
|
1917
1813
|
bg.prototype.everyMinuteBetweenX0AndX1 = function () {
|
|
1918
|
-
return
|
|
1814
|
+
return "Всяка минута от %s до %s";
|
|
1919
1815
|
};
|
|
1920
1816
|
bg.prototype.at = function () {
|
|
1921
|
-
return
|
|
1817
|
+
return "В";
|
|
1922
1818
|
};
|
|
1923
1819
|
bg.prototype.spaceAnd = function () {
|
|
1924
|
-
return
|
|
1820
|
+
return " и";
|
|
1925
1821
|
};
|
|
1926
1822
|
bg.prototype.everySecond = function () {
|
|
1927
|
-
return
|
|
1823
|
+
return "всяка секунда";
|
|
1928
1824
|
};
|
|
1929
1825
|
bg.prototype.everyX0Seconds = function (s) {
|
|
1930
|
-
return
|
|
1826
|
+
return "всеки %s секунди";
|
|
1931
1827
|
};
|
|
1932
1828
|
bg.prototype.secondsX0ThroughX1PastTheMinute = function () {
|
|
1933
|
-
return
|
|
1829
|
+
return "секунди от %s до %s";
|
|
1934
1830
|
};
|
|
1935
1831
|
bg.prototype.atX0SecondsPastTheMinute = function (s) {
|
|
1936
|
-
return "%s-".concat(getNumberEnding(s,
|
|
1832
|
+
return "%s-".concat(getNumberEnding(s, "ж"), " \u0441\u0435\u043A\u0443\u043D\u0434\u0430");
|
|
1937
1833
|
};
|
|
1938
1834
|
bg.prototype.everyX0Minutes = function (s) {
|
|
1939
|
-
return
|
|
1835
|
+
return "всеки %s минути";
|
|
1940
1836
|
};
|
|
1941
1837
|
bg.prototype.minutesX0ThroughX1PastTheHour = function () {
|
|
1942
|
-
return
|
|
1838
|
+
return "минути от %s до %s";
|
|
1943
1839
|
};
|
|
1944
1840
|
bg.prototype.atX0MinutesPastTheHour = function (s) {
|
|
1945
|
-
return "%s-".concat(getNumberEnding(s,
|
|
1841
|
+
return "%s-".concat(getNumberEnding(s, "ж"), " \u043C\u0438\u043D\u0443\u0442a");
|
|
1946
1842
|
};
|
|
1947
1843
|
bg.prototype.everyX0Hours = function (s) {
|
|
1948
|
-
return
|
|
1844
|
+
return "всеки %s часа";
|
|
1949
1845
|
};
|
|
1950
1846
|
bg.prototype.betweenX0AndX1 = function () {
|
|
1951
|
-
return
|
|
1847
|
+
return "от %s до %s";
|
|
1952
1848
|
};
|
|
1953
1849
|
bg.prototype.atX0 = function () {
|
|
1954
|
-
return
|
|
1850
|
+
return "в %s";
|
|
1955
1851
|
};
|
|
1956
1852
|
bg.prototype.commaEveryDay = function () {
|
|
1957
|
-
return
|
|
1853
|
+
return ", всеки ден";
|
|
1958
1854
|
};
|
|
1959
1855
|
bg.prototype.commaEveryX0DaysOfTheWeek = function (s) {
|
|
1960
|
-
return getPhraseByPlural(s, [
|
|
1856
|
+
return getPhraseByPlural(s, [", всеки %s ден от седмицата", ", всеки %s дена от седмицата"]);
|
|
1961
1857
|
};
|
|
1962
1858
|
bg.prototype.commaX0ThroughX1 = function (s) {
|
|
1963
|
-
return
|
|
1859
|
+
return ", от %s до %s";
|
|
1964
1860
|
};
|
|
1965
1861
|
bg.prototype.commaAndX0ThroughX1 = function (s) {
|
|
1966
|
-
return
|
|
1862
|
+
return " и от %s до %s";
|
|
1967
1863
|
};
|
|
1968
1864
|
bg.prototype.first = function (s) {
|
|
1969
|
-
return getPhraseByDayOfWeek(s, [
|
|
1865
|
+
return getPhraseByDayOfWeek(s, ["первият", "первата"]);
|
|
1970
1866
|
};
|
|
1971
1867
|
bg.prototype.second = function (s) {
|
|
1972
|
-
return getPhraseByDayOfWeek(s, [
|
|
1868
|
+
return getPhraseByDayOfWeek(s, ["вторият", "втората"]);
|
|
1973
1869
|
};
|
|
1974
1870
|
bg.prototype.third = function (s) {
|
|
1975
|
-
return getPhraseByDayOfWeek(s, [
|
|
1871
|
+
return getPhraseByDayOfWeek(s, ["третият", "третата"]);
|
|
1976
1872
|
};
|
|
1977
1873
|
bg.prototype.fourth = function (s) {
|
|
1978
|
-
return getPhraseByDayOfWeek(s, [
|
|
1874
|
+
return getPhraseByDayOfWeek(s, ["четвертият", "четвертата"]);
|
|
1979
1875
|
};
|
|
1980
1876
|
bg.prototype.fifth = function (s) {
|
|
1981
|
-
return getPhraseByDayOfWeek(s, [
|
|
1877
|
+
return getPhraseByDayOfWeek(s, ["петият", "петата"]);
|
|
1982
1878
|
};
|
|
1983
1879
|
bg.prototype.commaOnThe = function (s) {
|
|
1984
|
-
return
|
|
1880
|
+
return ", ";
|
|
1985
1881
|
};
|
|
1986
1882
|
bg.prototype.spaceX0OfTheMonth = function () {
|
|
1987
|
-
return
|
|
1883
|
+
return " %s на месеца";
|
|
1988
1884
|
};
|
|
1989
1885
|
bg.prototype.lastDay = function () {
|
|
1990
|
-
return
|
|
1886
|
+
return "последният ден";
|
|
1991
1887
|
};
|
|
1992
1888
|
bg.prototype.commaOnTheLastX0OfTheMonth = function (s) {
|
|
1993
|
-
return getPhraseByDayOfWeek(s, [
|
|
1889
|
+
return getPhraseByDayOfWeek(s, [", в последният %s от месеца", ", в последната %s отмесеца"]);
|
|
1994
1890
|
};
|
|
1995
1891
|
bg.prototype.commaOnlyOnX0 = function (s) {
|
|
1996
|
-
return
|
|
1892
|
+
return ", %s";
|
|
1997
1893
|
};
|
|
1998
1894
|
bg.prototype.commaAndOnX0 = function () {
|
|
1999
|
-
return
|
|
1895
|
+
return " и %s";
|
|
2000
1896
|
};
|
|
2001
1897
|
bg.prototype.commaEveryX0Months = function (s) {
|
|
2002
|
-
return
|
|
1898
|
+
return " всеки %s месеца";
|
|
2003
1899
|
};
|
|
2004
1900
|
bg.prototype.commaOnlyInMonthX0 = function () {
|
|
2005
|
-
return
|
|
1901
|
+
return ", %s";
|
|
2006
1902
|
};
|
|
2007
1903
|
bg.prototype.commaOnlyInX0 = function () {
|
|
2008
|
-
return
|
|
1904
|
+
return ", в %s";
|
|
2009
1905
|
};
|
|
2010
1906
|
bg.prototype.commaOnTheLastDayOfTheMonth = function () {
|
|
2011
|
-
return
|
|
1907
|
+
return ", в последният ден на месеца";
|
|
2012
1908
|
};
|
|
2013
1909
|
bg.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
|
|
2014
|
-
return
|
|
1910
|
+
return ", в последния делничен ден от месеца";
|
|
2015
1911
|
};
|
|
2016
1912
|
bg.prototype.commaDaysBeforeTheLastDayOfTheMonth = function (s) {
|
|
2017
|
-
return getPhraseByPlural(s, [
|
|
1913
|
+
return getPhraseByPlural(s, [", %s ден преди края на месеца", ", %s дена преди края на месеца"]);
|
|
2018
1914
|
};
|
|
2019
1915
|
bg.prototype.firstWeekday = function () {
|
|
2020
|
-
return
|
|
1916
|
+
return "първият делничен ден";
|
|
2021
1917
|
};
|
|
2022
1918
|
bg.prototype.weekdayNearestDayX0 = function () {
|
|
2023
|
-
return
|
|
1919
|
+
return "най-близкият делничен ден до %s число";
|
|
2024
1920
|
};
|
|
2025
1921
|
bg.prototype.commaOnTheX0OfTheMonth = function () {
|
|
2026
|
-
return
|
|
1922
|
+
return ", на %s число от месеца";
|
|
2027
1923
|
};
|
|
2028
1924
|
bg.prototype.commaEveryX0Days = function (s) {
|
|
2029
|
-
return getPhraseByPlural(s, [
|
|
1925
|
+
return getPhraseByPlural(s, [", всеки %s ден", ", всеки %s дена"]);
|
|
2030
1926
|
};
|
|
2031
1927
|
bg.prototype.commaBetweenDayX0AndX1OfTheMonth = function (s) {
|
|
2032
1928
|
var _a;
|
|
2033
|
-
var values = (_a = s === null || s === void 0 ? void 0 : s.split(
|
|
2034
|
-
return ", \u043E\u0442 %s-".concat(getNumberEnding(values[0],
|
|
1929
|
+
var values = (_a = s === null || s === void 0 ? void 0 : s.split("-")) !== null && _a !== void 0 ? _a : [];
|
|
1930
|
+
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");
|
|
2035
1931
|
};
|
|
2036
1932
|
bg.prototype.commaOnDayX0OfTheMonth = function (s) {
|
|
2037
|
-
return ", \u043D\u0430 %s-".concat(getNumberEnding(s,
|
|
1933
|
+
return ", \u043D\u0430 %s-".concat(getNumberEnding(s, "ср"), " \u0447\u0438\u0441\u043B\u043E \u043E\u0442 \u043C\u0435\u0441\u0435\u0446\u0430");
|
|
2038
1934
|
};
|
|
2039
1935
|
bg.prototype.commaEveryX0Years = function (s) {
|
|
2040
|
-
return getPhraseByPlural(s, [
|
|
1936
|
+
return getPhraseByPlural(s, [", всяка %s година", ", всеки %s години"]);
|
|
2041
1937
|
};
|
|
2042
1938
|
bg.prototype.commaStartingX0 = function () {
|
|
2043
|
-
return
|
|
1939
|
+
return ", започвайки %s";
|
|
2044
1940
|
};
|
|
2045
1941
|
bg.prototype.daysOfTheWeek = function () {
|
|
2046
|
-
return [
|
|
1942
|
+
return ["неделя", "понеделник", "вторник", "сряда", "четвъртък", "петък", "събота"];
|
|
2047
1943
|
};
|
|
2048
1944
|
bg.prototype.monthsOfTheYear = function () {
|
|
2049
|
-
return [
|
|
1945
|
+
return [
|
|
1946
|
+
"януари",
|
|
1947
|
+
"февруари",
|
|
1948
|
+
"март",
|
|
1949
|
+
"април",
|
|
1950
|
+
"май",
|
|
1951
|
+
"юни",
|
|
1952
|
+
"юли",
|
|
1953
|
+
"август",
|
|
1954
|
+
"септевмври",
|
|
1955
|
+
"октомври",
|
|
1956
|
+
"ноември",
|
|
1957
|
+
"декември",
|
|
1958
|
+
];
|
|
2050
1959
|
};
|
|
2051
1960
|
bg.prototype.atReboot = function () {
|
|
2052
1961
|
return "Изпълнение веднъж, при стартиране";
|
|
@@ -2070,18 +1979,6 @@ exports.ca = void 0;
|
|
|
2070
1979
|
var ca = (function () {
|
|
2071
1980
|
function ca() {
|
|
2072
1981
|
}
|
|
2073
|
-
ca.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
2074
|
-
return null;
|
|
2075
|
-
};
|
|
2076
|
-
ca.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
2077
|
-
return null;
|
|
2078
|
-
};
|
|
2079
|
-
ca.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
2080
|
-
return null;
|
|
2081
|
-
};
|
|
2082
|
-
ca.prototype.commaYearX0ThroughYearX1 = function () {
|
|
2083
|
-
return null;
|
|
2084
|
-
};
|
|
2085
1982
|
ca.prototype.use24HourTimeFormatByDefault = function () {
|
|
2086
1983
|
return true;
|
|
2087
1984
|
};
|
|
@@ -2261,18 +2158,6 @@ exports.cs = void 0;
|
|
|
2261
2158
|
var cs = (function () {
|
|
2262
2159
|
function cs() {
|
|
2263
2160
|
}
|
|
2264
|
-
cs.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
2265
|
-
return null;
|
|
2266
|
-
};
|
|
2267
|
-
cs.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
2268
|
-
return null;
|
|
2269
|
-
};
|
|
2270
|
-
cs.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
2271
|
-
return null;
|
|
2272
|
-
};
|
|
2273
|
-
cs.prototype.commaYearX0ThroughYearX1 = function () {
|
|
2274
|
-
return null;
|
|
2275
|
-
};
|
|
2276
2161
|
cs.prototype.use24HourTimeFormatByDefault = function () {
|
|
2277
2162
|
return true;
|
|
2278
2163
|
};
|
|
@@ -2587,18 +2472,6 @@ var da = (function () {
|
|
|
2587
2472
|
da.prototype.weekdayNearestDayX0 = function () {
|
|
2588
2473
|
return "hverdag nærmest dag %s";
|
|
2589
2474
|
};
|
|
2590
|
-
da.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
2591
|
-
return null;
|
|
2592
|
-
};
|
|
2593
|
-
da.prototype.commaYearX0ThroughYearX1 = function () {
|
|
2594
|
-
return null;
|
|
2595
|
-
};
|
|
2596
|
-
da.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
2597
|
-
return null;
|
|
2598
|
-
};
|
|
2599
|
-
da.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
2600
|
-
return null;
|
|
2601
|
-
};
|
|
2602
2475
|
da.prototype.commaStartingX0 = function () {
|
|
2603
2476
|
return ", startende %s";
|
|
2604
2477
|
};
|
|
@@ -2643,18 +2516,6 @@ exports.de = void 0;
|
|
|
2643
2516
|
var de = (function () {
|
|
2644
2517
|
function de() {
|
|
2645
2518
|
}
|
|
2646
|
-
de.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
2647
|
-
return null;
|
|
2648
|
-
};
|
|
2649
|
-
de.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
2650
|
-
return null;
|
|
2651
|
-
};
|
|
2652
|
-
de.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
2653
|
-
return null;
|
|
2654
|
-
};
|
|
2655
|
-
de.prototype.commaYearX0ThroughYearX1 = function () {
|
|
2656
|
-
return null;
|
|
2657
|
-
};
|
|
2658
2519
|
de.prototype.use24HourTimeFormatByDefault = function () {
|
|
2659
2520
|
return true;
|
|
2660
2521
|
};
|
|
@@ -2835,18 +2696,6 @@ var isOne = function (s) { return Number(s) === 1; };
|
|
|
2835
2696
|
var en = (function () {
|
|
2836
2697
|
function en() {
|
|
2837
2698
|
}
|
|
2838
|
-
en.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
2839
|
-
return null;
|
|
2840
|
-
};
|
|
2841
|
-
en.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
2842
|
-
return null;
|
|
2843
|
-
};
|
|
2844
|
-
en.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
2845
|
-
return null;
|
|
2846
|
-
};
|
|
2847
|
-
en.prototype.commaYearX0ThroughYearX1 = function () {
|
|
2848
|
-
return null;
|
|
2849
|
-
};
|
|
2850
2699
|
en.prototype.use24HourTimeFormatByDefault = function () {
|
|
2851
2700
|
return false;
|
|
2852
2701
|
};
|
|
@@ -2911,7 +2760,7 @@ var en = (function () {
|
|
|
2911
2760
|
return ", %s through %s";
|
|
2912
2761
|
};
|
|
2913
2762
|
en.prototype.commaAndX0ThroughX1 = function () {
|
|
2914
|
-
return ", %s through %s";
|
|
2763
|
+
return ", and %s through %s";
|
|
2915
2764
|
};
|
|
2916
2765
|
en.prototype.first = function () {
|
|
2917
2766
|
return "first";
|
|
@@ -3013,6 +2862,12 @@ var en = (function () {
|
|
|
3013
2862
|
"December",
|
|
3014
2863
|
];
|
|
3015
2864
|
};
|
|
2865
|
+
en.prototype.am = function () {
|
|
2866
|
+
return "AM";
|
|
2867
|
+
};
|
|
2868
|
+
en.prototype.pm = function () {
|
|
2869
|
+
return "PM";
|
|
2870
|
+
};
|
|
3016
2871
|
en.prototype.atReboot = function () {
|
|
3017
2872
|
return "Run once, at startup";
|
|
3018
2873
|
};
|
|
@@ -3035,18 +2890,6 @@ exports.es = void 0;
|
|
|
3035
2890
|
var es = (function () {
|
|
3036
2891
|
function es() {
|
|
3037
2892
|
}
|
|
3038
|
-
es.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
3039
|
-
return null;
|
|
3040
|
-
};
|
|
3041
|
-
es.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
3042
|
-
return null;
|
|
3043
|
-
};
|
|
3044
|
-
es.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
3045
|
-
return null;
|
|
3046
|
-
};
|
|
3047
|
-
es.prototype.commaYearX0ThroughYearX1 = function () {
|
|
3048
|
-
return null;
|
|
3049
|
-
};
|
|
3050
2893
|
es.prototype.use24HourTimeFormatByDefault = function () {
|
|
3051
2894
|
return true;
|
|
3052
2895
|
};
|
|
@@ -3226,18 +3069,6 @@ exports.fa = void 0;
|
|
|
3226
3069
|
var fa = (function () {
|
|
3227
3070
|
function fa() {
|
|
3228
3071
|
}
|
|
3229
|
-
fa.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
3230
|
-
return null;
|
|
3231
|
-
};
|
|
3232
|
-
fa.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
3233
|
-
return null;
|
|
3234
|
-
};
|
|
3235
|
-
fa.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
3236
|
-
return null;
|
|
3237
|
-
};
|
|
3238
|
-
fa.prototype.commaYearX0ThroughYearX1 = function () {
|
|
3239
|
-
return null;
|
|
3240
|
-
};
|
|
3241
3072
|
fa.prototype.use24HourTimeFormatByDefault = function () {
|
|
3242
3073
|
return true;
|
|
3243
3074
|
};
|
|
@@ -3554,15 +3385,6 @@ var fi = (function () {
|
|
|
3554
3385
|
fi.prototype.weekdayNearestDayX0 = function () {
|
|
3555
3386
|
return "viikonpäivä lähintä %s päivää";
|
|
3556
3387
|
};
|
|
3557
|
-
fi.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
3558
|
-
return null;
|
|
3559
|
-
};
|
|
3560
|
-
fi.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
3561
|
-
return null;
|
|
3562
|
-
};
|
|
3563
|
-
fi.prototype.commaYearX0ThroughYearX1 = function () {
|
|
3564
|
-
return null;
|
|
3565
|
-
};
|
|
3566
3388
|
fi.prototype.lastDay = function () {
|
|
3567
3389
|
return "viimeinen päivä";
|
|
3568
3390
|
};
|
|
@@ -3615,18 +3437,6 @@ var fr = (function () {
|
|
|
3615
3437
|
"de le": "du",
|
|
3616
3438
|
};
|
|
3617
3439
|
};
|
|
3618
|
-
fr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
3619
|
-
return null;
|
|
3620
|
-
};
|
|
3621
|
-
fr.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
3622
|
-
return null;
|
|
3623
|
-
};
|
|
3624
|
-
fr.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
3625
|
-
return null;
|
|
3626
|
-
};
|
|
3627
|
-
fr.prototype.commaYearX0ThroughYearX1 = function () {
|
|
3628
|
-
return null;
|
|
3629
|
-
};
|
|
3630
3440
|
fr.prototype.use24HourTimeFormatByDefault = function () {
|
|
3631
3441
|
return true;
|
|
3632
3442
|
};
|
|
@@ -3812,18 +3622,6 @@ exports.he = void 0;
|
|
|
3812
3622
|
var he = (function () {
|
|
3813
3623
|
function he() {
|
|
3814
3624
|
}
|
|
3815
|
-
he.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
3816
|
-
return null;
|
|
3817
|
-
};
|
|
3818
|
-
he.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
3819
|
-
return null;
|
|
3820
|
-
};
|
|
3821
|
-
he.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
3822
|
-
return null;
|
|
3823
|
-
};
|
|
3824
|
-
he.prototype.commaYearX0ThroughYearX1 = function () {
|
|
3825
|
-
return null;
|
|
3826
|
-
};
|
|
3827
3625
|
he.prototype.use24HourTimeFormatByDefault = function () {
|
|
3828
3626
|
return true;
|
|
3829
3627
|
};
|
|
@@ -4125,31 +3923,11 @@ var hr = (function () {
|
|
|
4125
3923
|
hr.prototype.weekdayNearestDayX0 = function () {
|
|
4126
3924
|
return "radni dan najbliži %s. danu";
|
|
4127
3925
|
};
|
|
4128
|
-
hr.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
4129
|
-
return null;
|
|
4130
|
-
};
|
|
4131
|
-
hr.prototype.commaYearX0ThroughYearX1 = function () {
|
|
4132
|
-
return null;
|
|
4133
|
-
};
|
|
4134
|
-
hr.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
4135
|
-
return null;
|
|
4136
|
-
};
|
|
4137
|
-
hr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
4138
|
-
return null;
|
|
4139
|
-
};
|
|
4140
3926
|
hr.prototype.commaStartingX0 = function () {
|
|
4141
3927
|
return ", počevši od %s";
|
|
4142
3928
|
};
|
|
4143
3929
|
hr.prototype.daysOfTheWeek = function () {
|
|
4144
|
-
return [
|
|
4145
|
-
"Nedjelja",
|
|
4146
|
-
"Ponedjeljak",
|
|
4147
|
-
"Utorak",
|
|
4148
|
-
"Srijeda",
|
|
4149
|
-
"Četvrtak",
|
|
4150
|
-
"Petak",
|
|
4151
|
-
"Subota",
|
|
4152
|
-
];
|
|
3930
|
+
return ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"];
|
|
4153
3931
|
};
|
|
4154
3932
|
hr.prototype.monthsOfTheYear = function () {
|
|
4155
3933
|
return [
|
|
@@ -4189,18 +3967,6 @@ exports.hu = void 0;
|
|
|
4189
3967
|
var hu = (function () {
|
|
4190
3968
|
function hu() {
|
|
4191
3969
|
}
|
|
4192
|
-
hu.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
4193
|
-
return null;
|
|
4194
|
-
};
|
|
4195
|
-
hu.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
4196
|
-
return null;
|
|
4197
|
-
};
|
|
4198
|
-
hu.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
4199
|
-
return null;
|
|
4200
|
-
};
|
|
4201
|
-
hu.prototype.commaYearX0ThroughYearX1 = function () {
|
|
4202
|
-
return null;
|
|
4203
|
-
};
|
|
4204
3970
|
hu.prototype.use24HourTimeFormatByDefault = function () {
|
|
4205
3971
|
return true;
|
|
4206
3972
|
};
|
|
@@ -4383,18 +4149,6 @@ exports.id = void 0;
|
|
|
4383
4149
|
var id = (function () {
|
|
4384
4150
|
function id() {
|
|
4385
4151
|
}
|
|
4386
|
-
id.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
4387
|
-
return null;
|
|
4388
|
-
};
|
|
4389
|
-
id.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
4390
|
-
return null;
|
|
4391
|
-
};
|
|
4392
|
-
id.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
4393
|
-
return null;
|
|
4394
|
-
};
|
|
4395
|
-
id.prototype.commaYearX0ThroughYearX1 = function () {
|
|
4396
|
-
return null;
|
|
4397
|
-
};
|
|
4398
4152
|
id.prototype.use24HourTimeFormatByDefault = function () {
|
|
4399
4153
|
return true;
|
|
4400
4154
|
};
|
|
@@ -4577,18 +4331,6 @@ exports.it = void 0;
|
|
|
4577
4331
|
var it = (function () {
|
|
4578
4332
|
function it() {
|
|
4579
4333
|
}
|
|
4580
|
-
it.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
4581
|
-
return null;
|
|
4582
|
-
};
|
|
4583
|
-
it.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
4584
|
-
return null;
|
|
4585
|
-
};
|
|
4586
|
-
it.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
4587
|
-
return null;
|
|
4588
|
-
};
|
|
4589
|
-
it.prototype.commaYearX0ThroughYearX1 = function () {
|
|
4590
|
-
return null;
|
|
4591
|
-
};
|
|
4592
4334
|
it.prototype.use24HourTimeFormatByDefault = function () {
|
|
4593
4335
|
return true;
|
|
4594
4336
|
};
|
|
@@ -4915,18 +4657,6 @@ var ja = (function () {
|
|
|
4915
4657
|
ja.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
|
|
4916
4658
|
return "月の最終日の %s 日前";
|
|
4917
4659
|
};
|
|
4918
|
-
ja.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
4919
|
-
return null;
|
|
4920
|
-
};
|
|
4921
|
-
ja.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
4922
|
-
return null;
|
|
4923
|
-
};
|
|
4924
|
-
ja.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
4925
|
-
return null;
|
|
4926
|
-
};
|
|
4927
|
-
ja.prototype.commaYearX0ThroughYearX1 = function () {
|
|
4928
|
-
return null;
|
|
4929
|
-
};
|
|
4930
4660
|
ja.prototype.lastDay = function () {
|
|
4931
4661
|
return "最終日";
|
|
4932
4662
|
};
|
|
@@ -4970,18 +4700,6 @@ var ko = (function () {
|
|
|
4970
4700
|
ko.prototype.am = function () {
|
|
4971
4701
|
return "오전";
|
|
4972
4702
|
};
|
|
4973
|
-
ko.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
4974
|
-
return null;
|
|
4975
|
-
};
|
|
4976
|
-
ko.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
4977
|
-
return null;
|
|
4978
|
-
};
|
|
4979
|
-
ko.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
4980
|
-
return null;
|
|
4981
|
-
};
|
|
4982
|
-
ko.prototype.commaYearX0ThroughYearX1 = function () {
|
|
4983
|
-
return null;
|
|
4984
|
-
};
|
|
4985
4703
|
ko.prototype.use24HourTimeFormatByDefault = function () {
|
|
4986
4704
|
return false;
|
|
4987
4705
|
};
|
|
@@ -5154,18 +4872,6 @@ exports.my = void 0;
|
|
|
5154
4872
|
var my = (function () {
|
|
5155
4873
|
function my() {
|
|
5156
4874
|
}
|
|
5157
|
-
my.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
5158
|
-
return null;
|
|
5159
|
-
};
|
|
5160
|
-
my.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
5161
|
-
return null;
|
|
5162
|
-
};
|
|
5163
|
-
my.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
5164
|
-
return null;
|
|
5165
|
-
};
|
|
5166
|
-
my.prototype.commaYearX0ThroughYearX1 = function () {
|
|
5167
|
-
return null;
|
|
5168
|
-
};
|
|
5169
4875
|
my.prototype.use24HourTimeFormatByDefault = function () {
|
|
5170
4876
|
return false;
|
|
5171
4877
|
};
|
|
@@ -5348,18 +5054,6 @@ exports.nb = void 0;
|
|
|
5348
5054
|
var nb = (function () {
|
|
5349
5055
|
function nb() {
|
|
5350
5056
|
}
|
|
5351
|
-
nb.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
5352
|
-
return null;
|
|
5353
|
-
};
|
|
5354
|
-
nb.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
5355
|
-
return null;
|
|
5356
|
-
};
|
|
5357
|
-
nb.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
5358
|
-
return null;
|
|
5359
|
-
};
|
|
5360
|
-
nb.prototype.commaYearX0ThroughYearX1 = function () {
|
|
5361
|
-
return null;
|
|
5362
|
-
};
|
|
5363
5057
|
nb.prototype.use24HourTimeFormatByDefault = function () {
|
|
5364
5058
|
return true;
|
|
5365
5059
|
};
|
|
@@ -5539,18 +5233,6 @@ exports.nl = void 0;
|
|
|
5539
5233
|
var nl = (function () {
|
|
5540
5234
|
function nl() {
|
|
5541
5235
|
}
|
|
5542
|
-
nl.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
5543
|
-
return null;
|
|
5544
|
-
};
|
|
5545
|
-
nl.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
5546
|
-
return null;
|
|
5547
|
-
};
|
|
5548
|
-
nl.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
5549
|
-
return null;
|
|
5550
|
-
};
|
|
5551
|
-
nl.prototype.commaYearX0ThroughYearX1 = function () {
|
|
5552
|
-
return null;
|
|
5553
|
-
};
|
|
5554
5236
|
nl.prototype.use24HourTimeFormatByDefault = function () {
|
|
5555
5237
|
return true;
|
|
5556
5238
|
};
|
|
@@ -5730,18 +5412,6 @@ exports.nn = void 0;
|
|
|
5730
5412
|
var nn = (function () {
|
|
5731
5413
|
function nn() {
|
|
5732
5414
|
}
|
|
5733
|
-
nn.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
5734
|
-
return null;
|
|
5735
|
-
};
|
|
5736
|
-
nn.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
5737
|
-
return null;
|
|
5738
|
-
};
|
|
5739
|
-
nn.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
5740
|
-
return null;
|
|
5741
|
-
};
|
|
5742
|
-
nn.prototype.commaYearX0ThroughYearX1 = function () {
|
|
5743
|
-
return null;
|
|
5744
|
-
};
|
|
5745
5415
|
nn.prototype.use24HourTimeFormatByDefault = function () {
|
|
5746
5416
|
return true;
|
|
5747
5417
|
};
|
|
@@ -5921,18 +5591,6 @@ exports.pl = void 0;
|
|
|
5921
5591
|
var pl = (function () {
|
|
5922
5592
|
function pl() {
|
|
5923
5593
|
}
|
|
5924
|
-
pl.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
5925
|
-
return null;
|
|
5926
|
-
};
|
|
5927
|
-
pl.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
5928
|
-
return null;
|
|
5929
|
-
};
|
|
5930
|
-
pl.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
5931
|
-
return null;
|
|
5932
|
-
};
|
|
5933
|
-
pl.prototype.commaYearX0ThroughYearX1 = function () {
|
|
5934
|
-
return null;
|
|
5935
|
-
};
|
|
5936
5594
|
pl.prototype.use24HourTimeFormatByDefault = function () {
|
|
5937
5595
|
return true;
|
|
5938
5596
|
};
|
|
@@ -6112,18 +5770,6 @@ exports.pt_BR = void 0;
|
|
|
6112
5770
|
var pt_BR = (function () {
|
|
6113
5771
|
function pt_BR() {
|
|
6114
5772
|
}
|
|
6115
|
-
pt_BR.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
6116
|
-
return null;
|
|
6117
|
-
};
|
|
6118
|
-
pt_BR.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
6119
|
-
return null;
|
|
6120
|
-
};
|
|
6121
|
-
pt_BR.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
6122
|
-
return null;
|
|
6123
|
-
};
|
|
6124
|
-
pt_BR.prototype.commaYearX0ThroughYearX1 = function () {
|
|
6125
|
-
return null;
|
|
6126
|
-
};
|
|
6127
5773
|
pt_BR.prototype.use24HourTimeFormatByDefault = function () {
|
|
6128
5774
|
return true;
|
|
6129
5775
|
};
|
|
@@ -6176,7 +5822,7 @@ var pt_BR = (function () {
|
|
|
6176
5822
|
return ", e de %s";
|
|
6177
5823
|
};
|
|
6178
5824
|
pt_BR.prototype.commaOnThe = function (s, day) {
|
|
6179
|
-
return day ===
|
|
5825
|
+
return day === "6" || day === "0" ? ", no" : ", na ";
|
|
6180
5826
|
};
|
|
6181
5827
|
pt_BR.prototype.commaOnTheLastDayOfTheMonth = function () {
|
|
6182
5828
|
return ", no último dia do mês";
|
|
@@ -6221,22 +5867,22 @@ var pt_BR = (function () {
|
|
|
6221
5867
|
return "a cada %s segundos";
|
|
6222
5868
|
};
|
|
6223
5869
|
pt_BR.prototype.fifth = function (s) {
|
|
6224
|
-
return s ===
|
|
5870
|
+
return s === "6" || s === "0" ? "quinto" : "quinta";
|
|
6225
5871
|
};
|
|
6226
5872
|
pt_BR.prototype.first = function (s) {
|
|
6227
|
-
return s ===
|
|
5873
|
+
return s === "6" || s === "0" ? "primeiro" : "primeira";
|
|
6228
5874
|
};
|
|
6229
5875
|
pt_BR.prototype.firstWeekday = function () {
|
|
6230
5876
|
return "primeiro dia da semana";
|
|
6231
5877
|
};
|
|
6232
5878
|
pt_BR.prototype.fourth = function (s) {
|
|
6233
|
-
return s ===
|
|
5879
|
+
return s === "6" || s === "0" ? "quarto" : "quarta";
|
|
6234
5880
|
};
|
|
6235
5881
|
pt_BR.prototype.minutesX0ThroughX1PastTheHour = function () {
|
|
6236
5882
|
return "do minuto %s até %s de cada hora";
|
|
6237
5883
|
};
|
|
6238
5884
|
pt_BR.prototype.second = function (s) {
|
|
6239
|
-
return s ===
|
|
5885
|
+
return s === "6" || s === "0" ? "segundo" : "segunda";
|
|
6240
5886
|
};
|
|
6241
5887
|
pt_BR.prototype.secondsX0ThroughX1PastTheMinute = function () {
|
|
6242
5888
|
return "No segundo %s até %s de cada minuto";
|
|
@@ -6251,7 +5897,7 @@ var pt_BR = (function () {
|
|
|
6251
5897
|
return "o último dia";
|
|
6252
5898
|
};
|
|
6253
5899
|
pt_BR.prototype.third = function (s) {
|
|
6254
|
-
return s ===
|
|
5900
|
+
return s === "6" || s === "0" ? "terceiro" : "terceira";
|
|
6255
5901
|
};
|
|
6256
5902
|
pt_BR.prototype.weekdayNearestDayX0 = function () {
|
|
6257
5903
|
return "dia da semana mais próximo do dia %s";
|
|
@@ -6303,18 +5949,6 @@ exports.pt_PT = void 0;
|
|
|
6303
5949
|
var pt_PT = (function () {
|
|
6304
5950
|
function pt_PT() {
|
|
6305
5951
|
}
|
|
6306
|
-
pt_PT.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
6307
|
-
return null;
|
|
6308
|
-
};
|
|
6309
|
-
pt_PT.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
6310
|
-
return null;
|
|
6311
|
-
};
|
|
6312
|
-
pt_PT.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
6313
|
-
return null;
|
|
6314
|
-
};
|
|
6315
|
-
pt_PT.prototype.commaYearX0ThroughYearX1 = function () {
|
|
6316
|
-
return null;
|
|
6317
|
-
};
|
|
6318
5952
|
pt_PT.prototype.use24HourTimeFormatByDefault = function () {
|
|
6319
5953
|
return true;
|
|
6320
5954
|
};
|
|
@@ -6367,7 +6001,7 @@ var pt_PT = (function () {
|
|
|
6367
6001
|
return ", e de %s";
|
|
6368
6002
|
};
|
|
6369
6003
|
pt_PT.prototype.commaOnThe = function (s, day) {
|
|
6370
|
-
return day ===
|
|
6004
|
+
return day === "6" || day === "0" ? ", no" : ", na ";
|
|
6371
6005
|
};
|
|
6372
6006
|
pt_PT.prototype.commaOnTheLastDayOfTheMonth = function () {
|
|
6373
6007
|
return ", no último dia do mês";
|
|
@@ -6412,22 +6046,22 @@ var pt_PT = (function () {
|
|
|
6412
6046
|
return "a cada %s segundos";
|
|
6413
6047
|
};
|
|
6414
6048
|
pt_PT.prototype.fifth = function (s) {
|
|
6415
|
-
return s ===
|
|
6049
|
+
return s === "6" || s === "0" ? "quinto" : "quinta";
|
|
6416
6050
|
};
|
|
6417
6051
|
pt_PT.prototype.first = function (s) {
|
|
6418
|
-
return s ===
|
|
6052
|
+
return s === "6" || s === "0" ? "primeiro" : "primeira";
|
|
6419
6053
|
};
|
|
6420
6054
|
pt_PT.prototype.firstWeekday = function () {
|
|
6421
6055
|
return "primeiro dia da semana";
|
|
6422
6056
|
};
|
|
6423
6057
|
pt_PT.prototype.fourth = function (s) {
|
|
6424
|
-
return s ===
|
|
6058
|
+
return s === "6" || s === "0" ? "quarto" : "quarta";
|
|
6425
6059
|
};
|
|
6426
6060
|
pt_PT.prototype.minutesX0ThroughX1PastTheHour = function () {
|
|
6427
6061
|
return "do minuto %s até %s de cada hora";
|
|
6428
6062
|
};
|
|
6429
6063
|
pt_PT.prototype.second = function (s) {
|
|
6430
|
-
return s ===
|
|
6064
|
+
return s === "6" || s === "0" ? "segundo" : "segunda";
|
|
6431
6065
|
};
|
|
6432
6066
|
pt_PT.prototype.secondsX0ThroughX1PastTheMinute = function () {
|
|
6433
6067
|
return "No segundo %s até %s de cada minuto";
|
|
@@ -6442,7 +6076,7 @@ var pt_PT = (function () {
|
|
|
6442
6076
|
return "o último dia";
|
|
6443
6077
|
};
|
|
6444
6078
|
pt_PT.prototype.third = function (s) {
|
|
6445
|
-
return s ===
|
|
6079
|
+
return s === "6" || s === "0" ? "terceiro" : "terceira";
|
|
6446
6080
|
};
|
|
6447
6081
|
pt_PT.prototype.weekdayNearestDayX0 = function () {
|
|
6448
6082
|
return "dia da semana mais próximo do dia %s";
|
|
@@ -6704,18 +6338,6 @@ var getPhraseByDayOfWeek = function (str, words) {
|
|
|
6704
6338
|
var ru = (function () {
|
|
6705
6339
|
function ru() {
|
|
6706
6340
|
}
|
|
6707
|
-
ru.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
6708
|
-
return null;
|
|
6709
|
-
};
|
|
6710
|
-
ru.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
6711
|
-
return null;
|
|
6712
|
-
};
|
|
6713
|
-
ru.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
6714
|
-
return null;
|
|
6715
|
-
};
|
|
6716
|
-
ru.prototype.commaYearX0ThroughYearX1 = function () {
|
|
6717
|
-
return null;
|
|
6718
|
-
};
|
|
6719
6341
|
ru.prototype.use24HourTimeFormatByDefault = function () {
|
|
6720
6342
|
return true;
|
|
6721
6343
|
};
|
|
@@ -6926,18 +6548,6 @@ exports.sk = void 0;
|
|
|
6926
6548
|
var sk = (function () {
|
|
6927
6549
|
function sk() {
|
|
6928
6550
|
}
|
|
6929
|
-
sk.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
6930
|
-
return null;
|
|
6931
|
-
};
|
|
6932
|
-
sk.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
6933
|
-
return null;
|
|
6934
|
-
};
|
|
6935
|
-
sk.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
6936
|
-
return null;
|
|
6937
|
-
};
|
|
6938
|
-
sk.prototype.commaYearX0ThroughYearX1 = function () {
|
|
6939
|
-
return null;
|
|
6940
|
-
};
|
|
6941
6551
|
sk.prototype.use24HourTimeFormatByDefault = function () {
|
|
6942
6552
|
return true;
|
|
6943
6553
|
};
|
|
@@ -7252,18 +6862,6 @@ var sl = (function () {
|
|
|
7252
6862
|
sl.prototype.weekdayNearestDayX0 = function () {
|
|
7253
6863
|
return "delovni dan, najbližji %s. dnevu";
|
|
7254
6864
|
};
|
|
7255
|
-
sl.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
7256
|
-
return null;
|
|
7257
|
-
};
|
|
7258
|
-
sl.prototype.commaYearX0ThroughYearX1 = function () {
|
|
7259
|
-
return null;
|
|
7260
|
-
};
|
|
7261
|
-
sl.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
7262
|
-
return null;
|
|
7263
|
-
};
|
|
7264
|
-
sl.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
7265
|
-
return null;
|
|
7266
|
-
};
|
|
7267
6865
|
sl.prototype.commaStartingX0 = function () {
|
|
7268
6866
|
return ", začenši %s";
|
|
7269
6867
|
};
|
|
@@ -7443,31 +7041,11 @@ var sr = (function () {
|
|
|
7443
7041
|
sr.prototype.weekdayNearestDayX0 = function () {
|
|
7444
7042
|
return "radni dan najbliži %s. danu";
|
|
7445
7043
|
};
|
|
7446
|
-
sr.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
7447
|
-
return null;
|
|
7448
|
-
};
|
|
7449
|
-
sr.prototype.commaYearX0ThroughYearX1 = function () {
|
|
7450
|
-
return null;
|
|
7451
|
-
};
|
|
7452
|
-
sr.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
7453
|
-
return null;
|
|
7454
|
-
};
|
|
7455
|
-
sr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
7456
|
-
return null;
|
|
7457
|
-
};
|
|
7458
7044
|
sr.prototype.commaStartingX0 = function () {
|
|
7459
7045
|
return ", počevši od %s";
|
|
7460
7046
|
};
|
|
7461
7047
|
sr.prototype.daysOfTheWeek = function () {
|
|
7462
|
-
return [
|
|
7463
|
-
"Nedelja",
|
|
7464
|
-
"Ponedeljak",
|
|
7465
|
-
"Utorak",
|
|
7466
|
-
"Sreda",
|
|
7467
|
-
"Četvrtak",
|
|
7468
|
-
"Petak",
|
|
7469
|
-
"Subota",
|
|
7470
|
-
];
|
|
7048
|
+
return ["Nedelja", "Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"];
|
|
7471
7049
|
};
|
|
7472
7050
|
sr.prototype.monthsOfTheYear = function () {
|
|
7473
7051
|
return [
|
|
@@ -7507,18 +7085,6 @@ exports.sv = void 0;
|
|
|
7507
7085
|
var sv = (function () {
|
|
7508
7086
|
function sv() {
|
|
7509
7087
|
}
|
|
7510
|
-
sv.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
7511
|
-
return null;
|
|
7512
|
-
};
|
|
7513
|
-
sv.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
7514
|
-
return null;
|
|
7515
|
-
};
|
|
7516
|
-
sv.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
7517
|
-
return null;
|
|
7518
|
-
};
|
|
7519
|
-
sv.prototype.commaYearX0ThroughYearX1 = function () {
|
|
7520
|
-
return null;
|
|
7521
|
-
};
|
|
7522
7088
|
sv.prototype.use24HourTimeFormatByDefault = function () {
|
|
7523
7089
|
return true;
|
|
7524
7090
|
};
|
|
@@ -7698,18 +7264,6 @@ exports.sw = void 0;
|
|
|
7698
7264
|
var sw = (function () {
|
|
7699
7265
|
function sw() {
|
|
7700
7266
|
}
|
|
7701
|
-
sw.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
7702
|
-
return null;
|
|
7703
|
-
};
|
|
7704
|
-
sw.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
7705
|
-
return null;
|
|
7706
|
-
};
|
|
7707
|
-
sw.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
7708
|
-
return null;
|
|
7709
|
-
};
|
|
7710
|
-
sw.prototype.commaYearX0ThroughYearX1 = function () {
|
|
7711
|
-
return null;
|
|
7712
|
-
};
|
|
7713
7267
|
sw.prototype.use24HourTimeFormatByDefault = function () {
|
|
7714
7268
|
return true;
|
|
7715
7269
|
};
|
|
@@ -7927,18 +7481,6 @@ var monthsIzafa = [
|
|
|
7927
7481
|
var tg = (function () {
|
|
7928
7482
|
function tg() {
|
|
7929
7483
|
}
|
|
7930
|
-
tg.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
7931
|
-
return null;
|
|
7932
|
-
};
|
|
7933
|
-
tg.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
7934
|
-
return null;
|
|
7935
|
-
};
|
|
7936
|
-
tg.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
7937
|
-
return null;
|
|
7938
|
-
};
|
|
7939
|
-
tg.prototype.commaYearX0ThroughYearX1 = function () {
|
|
7940
|
-
return null;
|
|
7941
|
-
};
|
|
7942
7484
|
tg.prototype.use24HourTimeFormatByDefault = function () {
|
|
7943
7485
|
return true;
|
|
7944
7486
|
};
|
|
@@ -8114,18 +7656,6 @@ exports.th = void 0;
|
|
|
8114
7656
|
var th = (function () {
|
|
8115
7657
|
function th() {
|
|
8116
7658
|
}
|
|
8117
|
-
th.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
8118
|
-
return null;
|
|
8119
|
-
};
|
|
8120
|
-
th.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
8121
|
-
return null;
|
|
8122
|
-
};
|
|
8123
|
-
th.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
8124
|
-
return null;
|
|
8125
|
-
};
|
|
8126
|
-
th.prototype.commaYearX0ThroughYearX1 = function () {
|
|
8127
|
-
return null;
|
|
8128
|
-
};
|
|
8129
7659
|
th.prototype.use24HourTimeFormatByDefault = function () {
|
|
8130
7660
|
return false;
|
|
8131
7661
|
};
|
|
@@ -8308,18 +7838,6 @@ exports.tr = void 0;
|
|
|
8308
7838
|
var tr = (function () {
|
|
8309
7839
|
function tr() {
|
|
8310
7840
|
}
|
|
8311
|
-
tr.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
8312
|
-
return null;
|
|
8313
|
-
};
|
|
8314
|
-
tr.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
8315
|
-
return null;
|
|
8316
|
-
};
|
|
8317
|
-
tr.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
8318
|
-
return null;
|
|
8319
|
-
};
|
|
8320
|
-
tr.prototype.commaYearX0ThroughYearX1 = function () {
|
|
8321
|
-
return null;
|
|
8322
|
-
};
|
|
8323
7841
|
tr.prototype.use24HourTimeFormatByDefault = function () {
|
|
8324
7842
|
return true;
|
|
8325
7843
|
};
|
|
@@ -8499,18 +8017,6 @@ exports.uk = void 0;
|
|
|
8499
8017
|
var uk = (function () {
|
|
8500
8018
|
function uk() {
|
|
8501
8019
|
}
|
|
8502
|
-
uk.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
8503
|
-
return null;
|
|
8504
|
-
};
|
|
8505
|
-
uk.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
8506
|
-
return null;
|
|
8507
|
-
};
|
|
8508
|
-
uk.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
8509
|
-
return null;
|
|
8510
|
-
};
|
|
8511
|
-
uk.prototype.commaYearX0ThroughYearX1 = function () {
|
|
8512
|
-
return null;
|
|
8513
|
-
};
|
|
8514
8020
|
uk.prototype.use24HourTimeFormatByDefault = function () {
|
|
8515
8021
|
return true;
|
|
8516
8022
|
};
|
|
@@ -8690,18 +8196,6 @@ exports.vi = void 0;
|
|
|
8690
8196
|
var vi = (function () {
|
|
8691
8197
|
function vi() {
|
|
8692
8198
|
}
|
|
8693
|
-
vi.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
8694
|
-
return null;
|
|
8695
|
-
};
|
|
8696
|
-
vi.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
8697
|
-
return null;
|
|
8698
|
-
};
|
|
8699
|
-
vi.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
8700
|
-
return null;
|
|
8701
|
-
};
|
|
8702
|
-
vi.prototype.commaYearX0ThroughYearX1 = function () {
|
|
8703
|
-
return null;
|
|
8704
|
-
};
|
|
8705
8199
|
vi.prototype.use24HourTimeFormatByDefault = function () {
|
|
8706
8200
|
return true;
|
|
8707
8201
|
};
|
|
@@ -8893,15 +8387,6 @@ var zh_CN = (function () {
|
|
|
8893
8387
|
zh_CN.prototype.am = function () {
|
|
8894
8388
|
return "上午";
|
|
8895
8389
|
};
|
|
8896
|
-
zh_CN.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
8897
|
-
return null;
|
|
8898
|
-
};
|
|
8899
|
-
zh_CN.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
8900
|
-
return null;
|
|
8901
|
-
};
|
|
8902
|
-
zh_CN.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
8903
|
-
return null;
|
|
8904
|
-
};
|
|
8905
8390
|
zh_CN.prototype.commaYearX0ThroughYearX1 = function () {
|
|
8906
8391
|
return ", 从%s年至%s年";
|
|
8907
8392
|
};
|
|
@@ -9080,15 +8565,6 @@ exports.zh_TW = void 0;
|
|
|
9080
8565
|
var zh_TW = (function () {
|
|
9081
8566
|
function zh_TW() {
|
|
9082
8567
|
}
|
|
9083
|
-
zh_TW.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
9084
|
-
return null;
|
|
9085
|
-
};
|
|
9086
|
-
zh_TW.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
9087
|
-
return null;
|
|
9088
|
-
};
|
|
9089
|
-
zh_TW.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
9090
|
-
return null;
|
|
9091
|
-
};
|
|
9092
8568
|
zh_TW.prototype.commaYearX0ThroughYearX1 = function () {
|
|
9093
8569
|
return ", 從 %s 年至 %s 年";
|
|
9094
8570
|
};
|
|
@@ -9279,73 +8755,49 @@ function rangeValues(part) {
|
|
|
9279
8755
|
}
|
|
9280
8756
|
return values;
|
|
9281
8757
|
}
|
|
8758
|
+
function assertInRange(parse, min, max, message) {
|
|
8759
|
+
for (var _i = 0, _a = parse.split(","); _i < _a.length; _i++) {
|
|
8760
|
+
var part = _a[_i];
|
|
8761
|
+
for (var _b = 0, _c = rangeValues(part); _b < _c.length; _b++) {
|
|
8762
|
+
var value = _c[_b];
|
|
8763
|
+
assert(value >= min && value <= max, message);
|
|
8764
|
+
}
|
|
8765
|
+
}
|
|
8766
|
+
}
|
|
9282
8767
|
var RangeValidator = (function () {
|
|
9283
8768
|
function RangeValidator() {
|
|
9284
8769
|
}
|
|
9285
8770
|
RangeValidator.stepRange = function (parse) {
|
|
9286
|
-
var
|
|
9287
|
-
|
|
9288
|
-
var step =
|
|
9289
|
-
assert(step === undefined || !/^0+$/.test(step),
|
|
8771
|
+
for (var _i = 0, _a = parse.split(","); _i < _a.length; _i++) {
|
|
8772
|
+
var part = _a[_i];
|
|
8773
|
+
var step = part.split("/")[1];
|
|
8774
|
+
assert(step === undefined || !/^0+$/.test(step), "step value must be greater than 0");
|
|
9290
8775
|
}
|
|
9291
8776
|
};
|
|
9292
8777
|
RangeValidator.secondRange = function (parse) {
|
|
9293
|
-
|
|
9294
|
-
for (var i = 0; i < parsed.length; i++) {
|
|
9295
|
-
for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
|
|
9296
|
-
var second = _a[_i];
|
|
9297
|
-
assert(second >= 0 && second <= 59, 'seconds part must be >= 0 and <= 59');
|
|
9298
|
-
}
|
|
9299
|
-
}
|
|
8778
|
+
assertInRange(parse, 0, 59, "seconds part must be >= 0 and <= 59");
|
|
9300
8779
|
};
|
|
9301
8780
|
RangeValidator.minuteRange = function (parse) {
|
|
9302
|
-
|
|
9303
|
-
for (var i = 0; i < parsed.length; i++) {
|
|
9304
|
-
for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
|
|
9305
|
-
var minute = _a[_i];
|
|
9306
|
-
assert(minute >= 0 && minute <= 59, 'minutes part must be >= 0 and <= 59');
|
|
9307
|
-
}
|
|
9308
|
-
}
|
|
8781
|
+
assertInRange(parse, 0, 59, "minutes part must be >= 0 and <= 59");
|
|
9309
8782
|
};
|
|
9310
8783
|
RangeValidator.hourRange = function (parse) {
|
|
9311
|
-
|
|
9312
|
-
for (var i = 0; i < parsed.length; i++) {
|
|
9313
|
-
for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
|
|
9314
|
-
var hour = _a[_i];
|
|
9315
|
-
assert(hour >= 0 && hour <= 23, 'hours part must be >= 0 and <= 23');
|
|
9316
|
-
}
|
|
9317
|
-
}
|
|
8784
|
+
assertInRange(parse, 0, 23, "hours part must be >= 0 and <= 23");
|
|
9318
8785
|
};
|
|
9319
8786
|
RangeValidator.dayOfMonthRange = function (parse) {
|
|
9320
|
-
|
|
9321
|
-
for (var i = 0; i < parsed.length; i++) {
|
|
9322
|
-
for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
|
|
9323
|
-
var dayOfMonth = _a[_i];
|
|
9324
|
-
assert(dayOfMonth >= 1 && dayOfMonth <= 31, 'DOM part must be >= 1 and <= 31');
|
|
9325
|
-
}
|
|
9326
|
-
}
|
|
8787
|
+
assertInRange(parse, 1, 31, "DOM part must be >= 1 and <= 31");
|
|
9327
8788
|
};
|
|
9328
8789
|
RangeValidator.monthRange = function (parse, monthStartIndexZero) {
|
|
9329
|
-
|
|
9330
|
-
for (var i = 0; i < parsed.length; i++) {
|
|
9331
|
-
for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
|
|
9332
|
-
var month = _a[_i];
|
|
9333
|
-
assert(month >= 1 && month <= 12, monthStartIndexZero ? 'month part must be >= 0 and <= 11' : 'month part must be >= 1 and <= 12');
|
|
9334
|
-
}
|
|
9335
|
-
}
|
|
8790
|
+
assertInRange(parse, 1, 12, monthStartIndexZero ? "month part must be >= 0 and <= 11" : "month part must be >= 1 and <= 12");
|
|
9336
8791
|
};
|
|
9337
8792
|
RangeValidator.dayOfWeekRange = function (parse, dayOfWeekStartIndexZero) {
|
|
9338
|
-
var
|
|
9339
|
-
|
|
9340
|
-
if (
|
|
9341
|
-
var nthString =
|
|
9342
|
-
assert(/^[1-5]$/.test(nthString),
|
|
9343
|
-
}
|
|
9344
|
-
for (var _i = 0, _a = rangeValues(parsed[i]); _i < _a.length; _i++) {
|
|
9345
|
-
var dayOfWeek = _a[_i];
|
|
9346
|
-
assert(dayOfWeek >= 0 && dayOfWeek <= 6, dayOfWeekStartIndexZero ? 'DOW part must be >= 0 and <= 6' : 'DOW part must be >= 1 and <= 7');
|
|
8793
|
+
for (var _i = 0, _a = parse.split(","); _i < _a.length; _i++) {
|
|
8794
|
+
var part = _a[_i];
|
|
8795
|
+
if (part.indexOf("#") > -1) {
|
|
8796
|
+
var nthString = part.substring(part.indexOf("#") + 1);
|
|
8797
|
+
assert(/^[1-5]$/.test(nthString), "DOW nth weekday must be >= 1 and <= 5");
|
|
9347
8798
|
}
|
|
9348
8799
|
}
|
|
8800
|
+
assertInRange(parse, 0, 6, dayOfWeekStartIndexZero ? "DOW part must be >= 0 and <= 6" : "DOW part must be >= 1 and <= 7");
|
|
9349
8801
|
};
|
|
9350
8802
|
return RangeValidator;
|
|
9351
8803
|
}());
|