214 lines
12 KiB
JavaScript
214 lines
12 KiB
JavaScript
/* Metro module 154; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 99, 100, 155, 151, 156] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Module00099 from './module-00099.js'; /* Metro dependency 99 */
|
|
import Module00100 from './module-00100.js'; /* Metro dependency 100 */
|
|
import Module00102 from './module-00102.js'; /* Metro dependency 102 */
|
|
import * as PerformanceEntryModule from './module-00155-PerformanceEntry.js'; /* Metro dependency 155 */
|
|
|
|
function _fun2397(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:6, offset: 0x00c7ff79, size: 298 bytes, params: 8, frame: 19
|
|
const env0_1 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = Module00100;
|
|
const env0_12 = value('processingStart');
|
|
const env0_13 = value('processingEnd');
|
|
const env0_14 = value('interactionId');
|
|
const PerformanceEntry = (PerformanceEntryModule).PerformanceEntry;
|
|
value = _fun2403(PerformanceEntry);
|
|
const value2 = _fun2411();
|
|
exports.PerformanceEventTiming = value;
|
|
exports.EventCounts = value2;
|
|
function _isNativeReflectConstruct_2398() { // fn#2398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:179, offset: 0x00c800a3, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_2398_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function getCachedEventCounts() { // fn#2401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1733, offset: 0x00c80101, size: 292 bytes, params: 1, frame: 16
|
|
var r1;
|
|
var Map;
|
|
var map;
|
|
var value6;
|
|
if (env0_11) {
|
|
return env0_11;
|
|
}
|
|
if (importDefault(151) /* metro dependency 151 */) {
|
|
if ((importDefault(151) /* metro dependency 151 */) == null) {
|
|
(require(156) /* metro dependency 156 */).warnNoNativePerformance();
|
|
Map = global.Map;
|
|
value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
|
map = new Map();
|
|
return map instanceof Object ? map : value6;
|
|
}
|
|
if ((importDefault(151) /* metro dependency 151 */).getEventCounts) {
|
|
Map = global.Map;
|
|
r1 = (importDefault(151) /* metro dependency 151 */).getEventCounts?.();
|
|
r1 = r1 ?? [];
|
|
map = new Map();
|
|
env0_0.queueMicrotask(function() {
|
|
env1_11 = null;
|
|
});
|
|
return map;
|
|
}
|
|
}
|
|
(require(156) /* metro dependency 156 */).warnNoNativePerformance();
|
|
Map = global.Map;
|
|
value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
|
map = new Map();
|
|
return map instanceof Object ? map : value6;
|
|
}
|
|
|
|
function _fun2403(a0) { // fn#2403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:471, offset: 0x00c80232, size: 137 bytes, params: 2, frame: 16
|
|
const PerformanceEventTiming2 = PerformanceEventTiming;
|
|
Inherits(PerformanceEventTiming2, a0);
|
|
return CreateClass(PerformanceEventTiming2, [{key: 'processingStart', get: get_2405}, {key: 'processingEnd',
|
|
get: get_2406}, {key: 'interactionId', get: get_2407}, {key: 'toJSON', value: value_2408}]);
|
|
function PerformanceEventTiming({name, startTime, duration, processingStart, processingEnd, interactionId}) { // fn#2404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:483, offset: 0x00c802bb, size: 388 bytes, params: 2, frame: 24
|
|
const value = environment.__proto__;
|
|
let binding = env1_4;
|
|
binding(this, PerformanceEventTiming);
|
|
const items2 = [{name: name, entryType: 'event', startTime: startTime ?? 0, duration: duration ?? 0}];
|
|
const value4 = env1_7(PerformanceEventTiming);
|
|
const value7 = env1_6(this, _isNativeReflectConstruct_2398() ? global.Reflect.construct(value4, items2,
|
|
env1_7(this).constructor) : value4.apply(this, items2));
|
|
let Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
binding = env1_12;
|
|
Reflect.apply(defineProperty, Object, [value7, binding, {writable: true, value: undefined}]);
|
|
Object = global.Object;
|
|
Object.defineProperty(value7, env1_13, {writable: true, value: undefined});
|
|
Object = global.Object;
|
|
Object.defineProperty(value7, env1_14, {writable: true, value: undefined});
|
|
env1_10(value7, binding)[binding] = processingStart ?? 0;
|
|
binding = env1_10;
|
|
const binding4 = env1_13;
|
|
binding(value7, binding4)[binding4] = processingEnd ?? 0;
|
|
binding = env1_10;
|
|
const binding5 = env1_14;
|
|
binding(value7, binding5)[binding5] = interactionId ?? 0;
|
|
return value7;
|
|
}
|
|
|
|
function get_2405() { // fn#2405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1213, offset: 0x00c8043f, size: 28 bytes, params: 1, frame: 13
|
|
const binding = env1_10;
|
|
const binding2 = env1_12;
|
|
return binding(this, binding2)[binding2];
|
|
}
|
|
|
|
function get_2406() { // fn#2406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1275, offset: 0x00c8045b, size: 28 bytes, params: 1, frame: 13
|
|
const binding = env1_10;
|
|
const binding2 = env1_13;
|
|
return binding(this, binding2)[binding2];
|
|
}
|
|
|
|
function get_2407() { // fn#2407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1337, offset: 0x00c80477, size: 28 bytes, params: 1, frame: 13
|
|
const binding = env1_10;
|
|
const binding2 = env1_14;
|
|
return binding(this, binding2)[binding2];
|
|
}
|
|
|
|
function value_2408() { // fn#2408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1394, offset: 0x00c80493, size: 134 bytes, params: 1, frame: 21
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
let value = value_2408_superPropGet(PerformanceEventTiming, 'toJSON', this, 3);
|
|
value = value([]);
|
|
const object = {};
|
|
const binding = env1_10;
|
|
const binding2 = env1_12;
|
|
object.processingStart = binding(this, binding2)[binding2];
|
|
const binding3 = env1_13;
|
|
object.processingEnd = binding(this, binding3)[binding3];
|
|
const binding4 = env1_14;
|
|
object.interactionId = binding(this, binding4)[binding4];
|
|
return Reflect.apply(assign, Object, [{}, value, object]);
|
|
function value_2408_superPropGet(a0, a1, a2, a3) { // fn#2409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1436, owner: value_2408._superPropGet, offset: 0x00c80519, size: 100 bytes, params: 5, frame: 18
|
|
let value = a0;
|
|
const env0_0 = a2;
|
|
const binding = env2_8;
|
|
value = env2_7(1 & 3 ? value.prototype : value);
|
|
value = binding(value, 'toJSON', a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun2410 : value;
|
|
function _fun2410(a0) { // fn#2410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:1535, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
|
|
return env0_1.apply(importDefault, a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun2411() { // fn#2411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2039, offset: 0x00c8057d, size: 193 bytes, params: 1, frame: 15
|
|
return CreateClass(EventCounts, [{key: 'size', get: function() {
|
|
return getCachedEventCounts().size;
|
|
}}, {key: 'entries', value: value_2414}, {key: 'forEach', value: value_2415}, {key: 'get', value: value_2416},
|
|
{key: 'has', value: value_2417}, {key: 'keys', value: value_2418}, {key: 'values', value: value_2419}]);
|
|
function EventCounts() { // fn#2412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2060, offset: 0x00c8063e, size: 27 bytes, params: 1, frame: 13
|
|
env1_4(this, EventCounts);
|
|
}
|
|
|
|
function value_2414() { // fn#2414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2195, offset: 0x00c8066d, size: 25 bytes, params: 1, frame: 9
|
|
const value = environment.__proto__;
|
|
return getCachedEventCounts().entries();
|
|
}
|
|
|
|
function value_2415(a0) { // fn#2415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2277, offset: 0x00c80686, size: 28 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__;
|
|
return getCachedEventCounts().forEach(a0);
|
|
}
|
|
|
|
function value_2416(a0) { // fn#2416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2357, offset: 0x00c806a2, size: 28 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__;
|
|
return getCachedEventCounts().get(a0);
|
|
}
|
|
|
|
function value_2417(a0) { // fn#2417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2429, offset: 0x00c806be, size: 28 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__;
|
|
return getCachedEventCounts().has(a0);
|
|
}
|
|
|
|
function value_2418() { // fn#2418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2502, offset: 0x00c806da, size: 24 bytes, params: 1, frame: 9
|
|
const value = environment.__proto__;
|
|
return getCachedEventCounts().keys();
|
|
}
|
|
|
|
function value_2419() { // fn#2419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:179:2577, offset: 0x00c806f2, size: 24 bytes, params: 1, frame: 9
|
|
const value = environment.__proto__;
|
|
return getCachedEventCounts().values();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun2397, 154, [6, 7, 15, 17, 102, 18, 99, 100, 155, 151,
|
|
156]) /* metro module 154, dependencies: [6, 7, 15, 17, 102, 18, 99, 100, 155, 151, 156] */;
|