decord/source/__polyfill/00xxx/module_222.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

79 lines
2 KiB
JavaScript

// Module ID: 222
// Function ID: 223
// Dependencies: [41, 42, 93, 95, 98, 38, 203]
// Module 222
import BlobDefault from "Blob" /* 203 */;
import _classCallCheck from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import c3 from "_possibleConstructorReturn" /* 93 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
const File = arg1;
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
class File {
constructor(arg0, arg1, arg2) {
self = this;
tmp = File;
tmp2 = c2(this, File);
tmp4 = null != global;
tmp3 = closure_0(closure_1[5]);
if (tmp4) {
tmp4 = null != arg1;
}
tmp3Result = tmp3(tmp4, "Failed to construct `File`: Must pass both `parts` and `name` arguments.");
items = [, ];
items[0] = global;
items[1] = importDefault;
tmp6 = closure_4;
obj = closure_4(tmp);
tmp7 = closure_3;
if (hasOwnProperty()) {
tmp9 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items, tmp6(self).constructor);
} else {
constructResult = obj.apply(self, items);
}
tmp7Result = tmp7(self, constructResult);
tmp7Result.data.name = arg1;
return tmp7Result;
}
}
_inherits(File, BlobDefault);
let items = [
{
key: "name",
get() {
File(38)(null != this.data.name, "Files must have a name set.");
return this.data.name;
}
},
{
key: "lastModified",
get() {
return this.data.lastModified || 0;
}
}
];
export default _createClass(File, items);