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

38 lines
947 B
JavaScript

// Module ID: 13779
// Function ID: 13780
// Dependencies: [13780, 13791, 13793, 13796, 13799, 13800]
// Module 13779
import withoutSetter from "withoutSetter" /* 13780 */;
import all from "all" /* 13791 */;
let closure_3 = withoutSetter("toPrimitive");
export default (arg0, arg1) => {
if (all(arg0)) {
if (!tmp(13793)(arg0)) {
let str = arg1;
const tmp4 = tmp(13796)(arg0, closure_3);
if (tmp4) {
if (undefined === str) {
str = "default";
}
const tmp5 = tmp(13799)(tmp4, arg0, str);
if (tmp(13791)(tmp5)) {
if (!tmp(13793)(tmp5)) {
const tmp9 = new TypeError("Can't convert object to primitive value");
throw tmp9;
}
}
return tmp5;
} else {
let str2 = str;
if (undefined === str) {
str2 = "number";
}
return tmp(13800)(arg0, str2);
}
}
}
return arg0;
};