decord/source/3457_isProtectedDayOfYearToken.js

42 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 3457
2026-07-27 11:26:19 +00:00
// Function ID: 26810
2026-07-20 16:05:17 +00:00
// Name: isProtectedDayOfYearToken
// Dependencies: []
2026-07-25 08:10:48 +00:00
// Module 3457 (isProtectedDayOfYearToken)
2026-07-20 16:05:17 +00:00
arg5.isProtectedDayOfYearToken = function isProtectedDayOfYearToken(arg0) {
return -1 !== closure_0.indexOf(arg0);
};
arg5.isProtectedWeekYearToken = function isProtectedWeekYearToken(arg0) {
return -1 !== closure_1.indexOf(arg0);
};
2026-07-23 10:11:24 +00:00
arg5.throwProtectedError = function throwProtectedError(arg0, closure_1, arg2) {
2026-07-20 16:05:17 +00:00
if ("YYYY" === arg0) {
const _RangeError4 = RangeError;
const concat4 = "Use `yyyy` instead of `YYYY` (in `".concat;
2026-07-23 10:11:24 +00:00
const combined = "Use `yyyy` instead of `YYYY` (in `".concat(closure_1, "`) for formatting years to the input `");
2026-07-20 16:05:17 +00:00
const rangeError = new RangeError(combined.concat(arg2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
throw rangeError;
} else if ("YY" === arg0) {
const _RangeError3 = RangeError;
const concat3 = "Use `yy` instead of `YY` (in `".concat;
2026-07-23 10:11:24 +00:00
const combined1 = "Use `yy` instead of `YY` (in `".concat(closure_1, "`) for formatting years to the input `");
2026-07-20 16:05:17 +00:00
const rangeError1 = new RangeError(combined1.concat(arg2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
throw rangeError1;
} else if ("D" === arg0) {
const _RangeError2 = RangeError;
const concat2 = "Use `d` instead of `D` (in `".concat;
2026-07-23 10:11:24 +00:00
const combined2 = "Use `d` instead of `D` (in `".concat(closure_1, "`) for formatting days of the month to the input `");
2026-07-20 16:05:17 +00:00
const rangeError2 = new RangeError(combined2.concat(arg2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
throw rangeError2;
} else if ("DD" === arg0) {
const _RangeError = RangeError;
const concat = "Use `dd` instead of `DD` (in `".concat;
2026-07-23 10:11:24 +00:00
const combined3 = "Use `dd` instead of `DD` (in `".concat(closure_1, "`) for formatting days of the month to the input `");
2026-07-20 16:05:17 +00:00
const rangeError3 = new RangeError(combined3.concat(arg2, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
throw rangeError3;
}
};
2026-07-23 10:11:24 +00:00
let closure_0 = ["D", "DD"];
let closure_1 = ["YY", "YYYY"];