Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
33 lines
946 B
JavaScript
33 lines
946 B
JavaScript
// Module ID: 14307
|
|
// Function ID: 14308
|
|
// Dependencies: [14228, 14308]
|
|
// Exports: getSupportedCalendars
|
|
|
|
// Module 14307
|
|
const require = globalThis.__r;
|
|
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const getSupportedCalendars = function getSupportedCalendars(locale) {
|
|
_require = locale;
|
|
const calendars = require("module_14308").calendars;
|
|
return calendars.filter((item) => (function isSupportedCalendar(item, arg1) {
|
|
let str = arg1;
|
|
if (undefined === arg1) {
|
|
str = "en";
|
|
}
|
|
try {
|
|
const concat = "".concat;
|
|
const combined = "".concat(str, "-u-ca-");
|
|
const memoizedDateTimeFormat = locale(closure_1_1[0]).createMemoizedDateTimeFormat(combined.concat(item));
|
|
if ("gregory" === item) {
|
|
if ("gregory" === memoizedDateTimeFormat.resolvedOptions().calendar) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
} catch (err) {
|
|
}
|
|
})(item, closure_0));
|
|
};
|