2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 220
|
2026-07-29 08:29:29 +00:00
|
|
|
// Function ID: 221
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: _isNativeReflectConstruct
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [41, 42, 93, 95, 98, 133]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 220 (_isNativeReflectConstruct)
|
2026-07-29 08:29:29 +00:00
|
|
|
import MessageEvent from "_classCallCheck";
|
2026-07-23 10:11:24 +00:00
|
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn";
|
|
|
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
2026-07-29 08:29:29 +00:00
|
|
|
import importDefaultResult from "_createClass";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
function _isNativeReflectConstruct() {
|
2026-07-29 08:29:29 +00:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
let closure_0 = !callResult;
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
|
|
return closure_0;
|
|
|
|
|
}
|
|
|
|
|
return _isNativeReflectConstruct();
|
|
|
|
|
} catch (err) {
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
class MessageEvent {
|
|
|
|
|
constructor(arg0, arg1) {
|
|
|
|
|
self = this;
|
|
|
|
|
tmp = MessageEvent(this, MessageEvent);
|
|
|
|
|
items = [, ];
|
|
|
|
|
items[0] = global;
|
|
|
|
|
items[1] = arg1;
|
|
|
|
|
tmp2 = __esModule;
|
|
|
|
|
obj = __esModule(MessageEvent);
|
|
|
|
|
tmp3 = __esModule;
|
|
|
|
|
if (_isNativeReflectConstruct()) {
|
|
|
|
|
tmp5 = globalThis;
|
|
|
|
|
_Reflect = Reflect;
|
|
|
|
|
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
|
|
|
|
|
} else {
|
|
|
|
|
constructResult = obj.apply(self, items);
|
|
|
|
|
}
|
|
|
|
|
tmp3Result = tmp3(self, constructResult);
|
|
|
|
|
data = undefined;
|
|
|
|
|
if (arg1 != null) {
|
|
|
|
|
data = arg1.data;
|
|
|
|
|
}
|
|
|
|
|
tmp3Result._data = data;
|
|
|
|
|
str = undefined;
|
|
|
|
|
if (arg1 != null) {
|
|
|
|
|
str = arg1.origin;
|
|
|
|
|
}
|
|
|
|
|
if (str == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
str = "";
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
tmp3Result._origin = String(str);
|
|
|
|
|
str2 = undefined;
|
|
|
|
|
if (arg1 != null) {
|
|
|
|
|
str2 = arg1.lastEventId;
|
|
|
|
|
}
|
|
|
|
|
if (str2 == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
str2 = "";
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp3Result._lastEventId = String(str2);
|
|
|
|
|
return tmp3Result;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
require("_inherits")(MessageEvent, require("Event"));
|
|
|
|
|
let items = [
|
|
|
|
|
{
|
2026-07-20 16:05:17 +00:00
|
|
|
key: "data",
|
|
|
|
|
get() {
|
|
|
|
|
return this._data;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
2026-07-20 16:05:17 +00:00
|
|
|
key: "origin",
|
|
|
|
|
get() {
|
|
|
|
|
return this._origin;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
},
|
|
|
|
|
{
|
2026-07-20 16:05:17 +00:00
|
|
|
key: "lastEventId",
|
|
|
|
|
get() {
|
|
|
|
|
return this._lastEventId;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default importDefaultResult(MessageEvent, items);
|