decord/source/13236_match.js

39 lines
989 B
JavaScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13236
// Function ID: 101959
2026-07-20 16:05:17 +00:00
// Name: match
2026-07-27 11:26:19 +00:00
// Dependencies: [13237, 13248, 13249]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 13236 (match)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.LookupSupportedLocales = undefined;
arg5.ResolveLocale = undefined;
arg5.match = function match(arg0, arg1, arg2, algorithm) {
2026-07-23 10:11:24 +00:00
const _require = arg2;
2026-07-27 11:26:19 +00:00
const result = _require(13248).CanonicalizeLocaleList(arg0);
2026-07-20 16:05:17 +00:00
const obj = {};
let str;
if (null != algorithm) {
str = algorithm.algorithm;
}
if (!str) {
str = "best fit";
}
obj.localeMatcher = str;
2026-07-27 11:26:19 +00:00
return _require(13237).ResolveLocale(arg1, result, obj, [], {}, () => closure_0).locale;
2026-07-20 16:05:17 +00:00
};
let obj = {
enumerable: true,
get() {
2026-07-27 11:26:19 +00:00
return require(13249) /* LookupSupportedLocales */.LookupSupportedLocales;
2026-07-20 16:05:17 +00:00
}
};
Object.defineProperty(arg5, "LookupSupportedLocales", obj);
obj = {
enumerable: true,
get() {
2026-07-27 11:26:19 +00:00
return require(13237) /* ResolveLocale */.ResolveLocale;
2026-07-20 16:05:17 +00:00
}
};
Object.defineProperty(arg5, "ResolveLocale", obj);