decord/source/__polyfill/14xxx/module_14379.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

75 lines
2.1 KiB
JavaScript

// Module ID: 14379
// Function ID: 14380
// Dependencies: [14328, 14380, 14377, 14337, 14360]
// Module 14379
import _mod14328 from "module_14328" /* 14328 */;
import text from "text" /* 14337 */;
import _mod14360 from "module_14360" /* 14360 */;
import _mod14377 from "module_14377" /* 14377 */;
import _mod14380 from "module_14380" /* 14380 */;
const enumerable = "enumerable";
const configurable = "configurable";
const writable = "writable";
if (_mod14328) {
if (_mod14380) {
defineProperty = function defineProperty(fn, arg1, value) {
_mod14377(fn);
const tmp2 = text(arg1);
_mod14377(value);
let tmp4 = value;
if (typeof fn === "function") {
tmp4 = value;
if ("prototype" === tmp2) {
tmp4 = value;
if ("value" in value) {
tmp4 = value;
if (writable in value) {
tmp4 = value;
if (!value[tmp5]) {
const tmp7 = getOwnPropertyDescriptor(fn, tmp2);
let tmp8 = tmp7;
if (tmp7) {
tmp8 = tmp7[tmp5];
}
tmp4 = value;
if (tmp8) {
fn[tmp2] = value.value;
const obj = { configurable: configurable in value ? value[configurable] : tmp7[configurable], enumerable: enumerable in value ? value[enumerable] : tmp7[enumerable], writable: false };
}
}
}
}
}
}
return defineProperty(fn, tmp2, tmp4);
};
}
let defineProperty2 = defineProperty;
} else {
defineProperty2 = function defineProperty(arg0, arg1, value) {
_mod14377(arg0);
const tmp2 = text(arg1);
_mod14377(value);
if (!_mod14360) {
if (!("get" in value)) {
if (!("set" in value)) {
if ("value" in value) {
arg0[tmp2] = value.value;
}
return arg0;
}
}
const tmp8 = new TypeError("Accessors not supported");
throw tmp8;
} else {
try {
return defineProperty(arg0, tmp2, value);
} catch (err) {
}
}
};
}
export const f = defineProperty2;