decord/source/__polyfill/12xxx/module_12985.js
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

70 lines
1.8 KiB
JavaScript

// Module ID: 12985
// Function ID: 12986
// Dependencies: [12873, 12870, 12983]
// Exports: callFrameToStackFrame, watchdogTimer
// Module 12985
import stackParserFromStackParserOptions from "stackParserFromStackParserOptions" /* 12870 */;
import _mod12873 from "module_12873" /* 12873 */;
require = arg1;
const dependencyMap = arg6;
export const callFrameToStackFrame = function callFrameToStackFrame(location, str, fn) {
let replaced;
if (str) {
replaced = str.replace(/^file:\/\//, "");
}
let sum;
if (location.location.columnNumber) {
sum = location.location.columnNumber + 1;
}
let sum1;
if (location.location.lineNumber) {
sum1 = location.location.lineNumber + 1;
}
const obj2 = { filename: replaced, module: fn(replaced), function: null, colno: null, lineno: null, in_app: null };
const obj = _mod12873;
obj2.function = location.functionName || stackParserFromStackParserOptions.UNKNOWN_FUNCTION;
obj2.colno = sum;
obj2.lineno = sum1;
let filenameIsInAppResult;
if (replaced) {
filenameIsInAppResult = tmp4(12983).filenameIsInApp(replaced);
const tmp4Result = tmp4(12983);
}
obj2.in_app = filenameIsInAppResult;
return obj.dropUndefinedKeys(obj2);
};
export const watchdogTimer = function watchdogTimer(fn, arg1, arg2, arg3) {
closure_0 = arg1;
closure_1 = arg2;
closure_2 = arg3;
const navigation = fn();
c4 = false;
closure_5 = true;
const timerId = setInterval(() => {
const timeMs = navigation.getTimeMs();
let tmp2 = false === c4;
if (tmp2) {
tmp2 = timeMs > closure_0 + closure_1;
}
if (tmp2) {
c4 = true;
if (closure_5) {
closure_2();
}
}
if (timeMs < closure_0 + closure_1) {
c4 = false;
}
}, 20);
return {
poll() {
navigation.reset();
},
enabled(arg0) {
closure_5 = arg0;
}
};
};