decord/source/13392_LookupMatcher.js
2026-08-05 07:35:12 +00:00

26 lines
807 B
JavaScript

// Module ID: 13392
// Function ID: 13393
// Name: LookupMatcher
// Dependencies: [13393, 13396]
// Module 13392 (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(13393) /* isMatched */.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
const BestAvailableLocaleResult = require(13396) /* 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;
};