decord/source/13173_LookupMatcher.js
2026-07-23 10:11:24 +00:00

26 lines
808 B
JavaScript

// Module ID: 13173
// Function ID: 101509
// Name: LookupMatcher
// Dependencies: [13174, 13177]
// Module 13173 (LookupMatcher)
const require = arg1;
const dependencyMap = arg6;
arg5.LookupMatcher = function LookupMatcher(arg0, arg1, arg2) {
const obj = { locale: "" };
let num = 0;
if (0 < arg1.length) {
const replaced = str.replace(require(13174) /* isMatched */.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
const BestAvailableLocaleResult = require(13177) /* BestAvailableLocale */.BestAvailableLocale(arg0, replaced);
while (!BestAvailableLocaleResult) {
num = num + 1;
}
obj.locale = BestAvailableLocaleResult;
if (arg1[num] !== replaced) {
obj.extension = str.slice(replaced.length, str.length);
}
return obj;
}
obj.locale = arg2();
return obj;
};