284 lines
7.5 KiB
JavaScript
284 lines
7.5 KiB
JavaScript
// Module ID: 162
|
|
// Function ID: 163
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 96, 98, 90, 91, 70, 154, 163]
|
|
|
|
// Module 162 (_isNativeReflectConstruct)
|
|
import nullthrowsDefault from "nullthrows" /* 70 */;
|
|
import NativePerformanceCxxDefault from "NativePerformanceCxx" /* 154 */;
|
|
import closure_1 from "_classCallCheck" /* 41 */;
|
|
import importDefaultResult from "_createClass" /* 42 */;
|
|
import closure_2 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_3 from "_getPrototypeOf" /* 95 */;
|
|
import closure_4 from "_get" /* 96 */;
|
|
import closure_5 from "_classPrivateFieldBase" /* 90 */;
|
|
import importDefaultResult2 from "_classPrivateFieldKey" /* 91 */;
|
|
import importDefaultResult1 from "_inherits" /* 98 */;
|
|
|
|
let EventCounts = global;
|
|
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) {
|
|
}
|
|
}
|
|
let closure_8 = nullthrowsDefault(NativePerformanceCxxDefault);
|
|
let closure_9 = importDefaultResult2("processingStart");
|
|
let closure_10 = importDefaultResult2("processingEnd");
|
|
let closure_11 = importDefaultResult2("interactionId");
|
|
class PerformanceEventTiming {
|
|
constructor(arg0) {
|
|
self = this;
|
|
tmp = closure_1(this, EventCounts);
|
|
items = ["event"];
|
|
items[1] = global;
|
|
tmp2 = closure_3;
|
|
obj = closure_3(EventCounts);
|
|
tmp3 = closure_2;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, items);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
tmp7 = closure_9;
|
|
definePropertyResult = Object.defineProperty(tmp3Result, closure_9, { writable: true, value: "a" });
|
|
tmp9 = closure_10;
|
|
definePropertyResult1 = Object.defineProperty(tmp3Result, closure_10, { writable: true, value: "a" });
|
|
tmp11 = closure_11;
|
|
definePropertyResult2 = Object.defineProperty(tmp3Result, closure_11, { writable: true, value: "a" });
|
|
tmp13 = closure_5;
|
|
num = global.processingStart;
|
|
tmp14 = closure_5(tmp3Result, closure_9);
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
tmp14[tmp7] = num;
|
|
num2 = global.processingEnd;
|
|
tmp13Result = tmp13(tmp3Result, tmp9);
|
|
if (num2 == null) {
|
|
num2 = 0;
|
|
}
|
|
tmp13Result[tmp9] = num2;
|
|
num3 = global.interactionId;
|
|
tmp13Result1 = tmp13(tmp3Result, tmp11);
|
|
if (num3 == null) {
|
|
num3 = 0;
|
|
}
|
|
tmp13Result1[tmp11] = num3;
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
EventCounts = PerformanceEventTiming;
|
|
importDefaultResult1(PerformanceEventTiming, require("PerformanceEntry").PerformanceEntry);
|
|
let obj = {
|
|
key: "processingStart",
|
|
get() {
|
|
return callback4(this, closure_9)[closure_9];
|
|
}
|
|
};
|
|
let items = [
|
|
obj,
|
|
{
|
|
key: "processingEnd",
|
|
get() {
|
|
return callback4(this, closure_10)[closure_10];
|
|
}
|
|
},
|
|
{
|
|
key: "interactionId",
|
|
get() {
|
|
return callback4(this, closure_11)[closure_11];
|
|
}
|
|
},
|
|
{
|
|
key: "toJSON",
|
|
value: function toJSON() {
|
|
let self = this;
|
|
self = this;
|
|
const tmp = callback3(callback2(self.prototype), "toJSON", this);
|
|
closure_1 = tmp;
|
|
let fn = tmp;
|
|
if (typeof tmp === "function") {
|
|
fn = (arg0) => callback.apply(self, arg0);
|
|
}
|
|
const obj = {};
|
|
const merged = Object.assign(fn([]));
|
|
obj.processingStart = callback4(self, closure_9)[closure_9];
|
|
obj.processingEnd = callback4(self, closure_10)[closure_10];
|
|
obj.interactionId = callback4(self, closure_11)[closure_11];
|
|
return obj;
|
|
}
|
|
}
|
|
];
|
|
const importDefaultResultResult = importDefaultResult(PerformanceEventTiming, items);
|
|
class PerformanceEventTiming {
|
|
constructor() {
|
|
typeError = new TypeError("Failed to construct 'PerformanceEventTiming': Illegal constructor");
|
|
throw typeError;
|
|
}
|
|
}
|
|
PerformanceEventTiming.prototype = importDefaultResultResult.prototype;
|
|
class EventCounts {
|
|
constructor() {
|
|
tmp = closure_1(this, EventCounts);
|
|
return;
|
|
}
|
|
}
|
|
obj = {
|
|
key: "size",
|
|
get() {
|
|
let tmp = map;
|
|
if (!map) {
|
|
let eventCounts = store.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
tmp = map;
|
|
}
|
|
return tmp.size;
|
|
}
|
|
};
|
|
const items1 = [
|
|
obj,
|
|
{
|
|
key: "entries",
|
|
value: function entries() {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = store.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.entries();
|
|
}
|
|
},
|
|
{
|
|
key: "forEach",
|
|
value: function forEach(arg0) {
|
|
let arr = map;
|
|
if (!map) {
|
|
let eventCounts = store.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
arr = map;
|
|
}
|
|
return arr.forEach(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "get",
|
|
value: function get(arg0) {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = store.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.get(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "has",
|
|
value: function has(arg0) {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = store.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.has(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "keys",
|
|
value: function keys() {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = store.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.keys();
|
|
}
|
|
},
|
|
{
|
|
key: "values",
|
|
value: function values() {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = store.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.values();
|
|
}
|
|
}
|
|
];
|
|
const importDefaultResultResult1 = importDefaultResult(EventCounts, items1);
|
|
class EventCounts {
|
|
constructor() {
|
|
typeError = new TypeError("Failed to construct 'EventCounts': Illegal constructor");
|
|
throw typeError;
|
|
}
|
|
}
|
|
EventCounts.prototype = importDefaultResultResult1.prototype;
|
|
|
|
export const PerformanceEventTiming = importDefaultResultResult;
|
|
export const PerformanceEventTiming_public = PerformanceEventTiming;
|
|
export const EventCounts = importDefaultResultResult1;
|
|
export const EventCounts_public = EventCounts;
|