decord/source/8001_pickNotNil.js
2026-08-25 06:04:03 +00:00

44 lines
1.4 KiB
JavaScript

// Module ID: 8001
// Function ID: 8002
// Name: pickNotNil
// Dependencies: [4761]
// Module 8001 (pickNotNil)
const module = arg2;
const dependencyMap = arg6;
arg5.pickNotNil = function pickNotNil(obj) {
obj = {};
for (const key10006 in arg0) {
let tmp3 = key10006;
let _Object = Object;
let call = hasOwnProperty.call;
if (typeof call === "unknown") {
let hasOwnPropertyResult = hasOwnProperty(key10006);
} else {
hasOwnPropertyResult = call(arg0, key10006);
}
if (!hasOwnPropertyResult) {
continue;
} else {
let tmp2 = arg0[key10006];
if (null == tmp2) {
continue;
} else {
obj[key10006] = tmp2;
continue;
}
continue;
}
continue;
}
return obj;
};
arg5.idPattern = /#([^)]+)'?\)?$/;
arg5.getRandomNumber = () => {
const random = Math.random();
const random1 = Math.random();
return Math.floor(random * Math.floor(random1 * Date.now()));
};
arg5.warnUnimplementedFilter = () => {
module(4761)(true, "Some of the used filters are not yet supported on native platforms. Please check the USAGE.md for more info. Not implemented filters:\n", JSON.stringify(["FeComponentTransfer", "FeConvolveMatrix", "FeDiffuseLighting", "FeDisplacementMap", "FeFuncA", "FeFuncB", "FeFuncG", "FeFuncR", "FeImage", "FeMorphology", "FePointLight", "FeSpecularLighting", "FeSpotLight", "FeTile", "FeTurbulence"], null, 2));
};