decord/source/1056_updateEstimate.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1056
// Function ID: 1057
2026-07-20 16:05:17 +00:00
// Name: updateEstimate
2026-07-29 08:29:29 +00:00
// Dependencies: [1046]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 1056 (updateEstimate)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
2026-07-23 10:11:24 +00:00
let c3 = 0;
const Infinity = Infinity;
let c5 = 0;
2026-07-20 16:05:17 +00:00
function updateEstimate(arr) {
const item = arr.forEach((interactionId) => {
if (interactionId.interactionId) {
const _Math = Math;
2026-07-29 08:29:29 +00:00
closure_4 = Math.min(closure_4, interactionId.interactionId);
2026-07-20 16:05:17 +00:00
const _Math2 = Math;
2026-07-29 08:29:29 +00:00
bound = Math.max(bound, interactionId.interactionId);
2026-07-20 16:05:17 +00:00
let num = 0;
if (bound) {
2026-07-29 08:29:29 +00:00
num = (bound - closure_4) / 7 + 1;
2026-07-20 16:05:17 +00:00
}
}
});
}
2026-07-29 08:29:29 +00:00
arg5.getInteractionCount = () => {
2026-07-20 16:05:17 +00:00
if (closure_2) {
2026-07-23 10:11:24 +00:00
let tmp2 = c3;
2026-07-20 16:05:17 +00:00
} else {
const _performance = performance;
tmp2 = performance.interactionCount || 0;
}
return tmp2;
};
2026-07-29 08:29:29 +00:00
arg5.initInteractionCountPolyfill = () => {
2026-07-20 16:05:17 +00:00
if (!tmp) {
2026-07-29 08:29:29 +00:00
let closure_2 = require(1046) /* observe */.observe("event", updateEstimate, { type: "event", buffered: true, durationThreshold: 0 });
const obj = require(1046) /* observe */;
2026-07-20 16:05:17 +00:00
}
};