decord/source/1032_updateEstimate.js

44 lines
1.2 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1032
2026-07-23 10:11:24 +00:00
// Function ID: 11113
2026-07-20 16:05:17 +00:00
// Name: updateEstimate
2026-07-23 10:11:24 +00:00
// Dependencies: [1022]
2026-07-20 16:05:17 +00:00
// Module 1032 (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-23 10:11:24 +00:00
outer1_4 = Math.min(outer1_4, interactionId.interactionId);
2026-07-20 16:05:17 +00:00
const _Math2 = Math;
2026-07-23 10:11:24 +00:00
const bound = Math.max(outer1_5, interactionId.interactionId);
outer1_5 = bound;
2026-07-20 16:05:17 +00:00
let num = 0;
if (bound) {
2026-07-23 10:11:24 +00:00
num = (outer1_5 - outer1_4) / 7 + 1;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const outer1_3 = num;
2026-07-20 16:05:17 +00:00
}
});
}
arg5.getInteractionCount = function getInteractionCount() {
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;
};
arg5.initInteractionCountPolyfill = function initInteractionCountPolyfill() {
if (!tmp) {
2026-07-23 10:11:24 +00:00
let closure_2 = require(1022) /* observe */.observe("event", updateEstimate, { type: "event", buffered: true, durationThreshold: 0 });
const obj = require(1022) /* observe */;
2026-07-20 16:05:17 +00:00
}
};