decord/source/1934_maybeLoadBundle.js

59 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1934
2026-07-24 07:16:23 +00:00
// Function ID: 21811
2026-07-20 16:05:17 +00:00
// Name: maybeLoadBundle
2026-07-23 10:11:24 +00:00
// Dependencies: [1935]
2026-07-20 16:05:17 +00:00
// Module 1934 (maybeLoadBundle)
2026-07-23 10:11:24 +00:00
import asyncGeneratorStep from "asyncGeneratorStep";
2026-07-20 16:05:17 +00:00
function maybeLoadBundle(arg0, arg1) {
2026-07-23 10:11:24 +00:00
const tmp = global["" + globalThis.__METRO_GLOBAL_PREFIX__ + "__loadBundleAsync"];
if (null != tmp) {
2026-07-20 16:05:17 +00:00
const _String = String;
if (null != arg1) {
2026-07-23 10:11:24 +00:00
const tmp3 = arg1[String(undefined, arg0)];
if (null != tmp3) {
2026-07-20 16:05:17 +00:00
return tmp(tmp3);
}
}
}
}
function asyncRequireImpl(arg0, arg1) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const promise = maybeLoadBundle(arg0, arg1);
2026-07-23 10:11:24 +00:00
function importAll(closure_0) {
return outer1_1.importAll(closure_0);
2026-07-20 16:05:17 +00:00
}
if (null != promise) {
let nextPromise = promise.then(importAll);
} else {
nextPromise = importAll();
}
return nextPromise;
}
function asyncRequire(arg0, arg1, arg2) {
return _asyncRequire(...arguments);
}
async function _asyncRequire(arg0, arg1, arg2, arg3) {
if (obj) {
return obj.resume();
} else {
2026-07-23 10:11:24 +00:00
return outer2_4(arg0, arg1);
2026-07-20 16:05:17 +00:00
}
}
asyncRequire.unstable_importMaybeSync = function unstable_importMaybeSync(arg0, arg1) {
return asyncRequireImpl(arg0, arg1);
};
asyncRequire.prefetch = (arg0, arg1, arg2) => {
const promise = maybeLoadBundle(arg0, arg1);
if (null != promise) {
promise.then(() => {
}, () => {
});
}
};
export default asyncRequire;