Files
discord-decomp/sources/by-id/module-00160-Performance.js
2026-07-28 01:06:53 +03:00

131 lines
6.5 KiB
JavaScript

/* Metro module 160; source: unknown; dependencies: [6, 7, 15, 17, 18, 99, 100, 155] */
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 * as PerformanceEntryModule from './module-00155-PerformanceEntry.js'; /* Metro dependency 155 */
function _fun2447(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:6, offset: 0x00c80f9c, size: 262 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Module00100;
const env0_6 = value('detail');
const PerformanceEntry = (PerformanceEntryModule).PerformanceEntry;
const value2 = _fun2452(PerformanceEntry);
const env0_7 = value('detail');
value = _fun2455(PerformanceEntry);
exports.PerformanceMark = value2;
exports.PerformanceMeasure = value;
function _callSuper(a0, a1, a2) { // fn#2448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:168, offset: 0x00c810a2, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = Module00017(a1);
if (_isNativeReflectConstruct_2449()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return PossibleConstructorReturn(a0, r0);
}
function _isNativeReflectConstruct_2449() { // fn#2449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:299, offset: 0x00c81106, 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_2449_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun2452(a0) { // fn#2452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:538, offset: 0x00c81164, size: 68 bytes, params: 2, frame: 15
const PerformanceMark2 = PerformanceMark;
Inherits(PerformanceMark2, a0);
return CreateClass(PerformanceMark2, [{key: 'detail', get: get_2454}]);
function PerformanceMark(a0, a1) { // fn#2453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:550, offset: 0x00c811a8, size: 180 bytes, params: 3, frame: 20
var binding2;
const value = environment.__proto__;
let binding = env1_0;
const value3 = undefined;
binding(this, PerformanceMark);
const value5 = _callSuper(this, PerformanceMark, [{name: a0, entryType: 'mark',
startTime: (a1 == null ? value3 : a1.startTime) ?? global.performance.now(), duration: 0}]);
const Object = global.Object;
Object.defineProperty(value5, env1_6, {writable: true, value: value3});
if (a1) {
binding = env1_5;
binding2 = env1_6;
binding(value5, binding2)[binding2] = a1.detail;
}
return value5;
}
function get_2454() { // fn#2454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:905, offset: 0x00c8125c, size: 28 bytes, params: 1, frame: 13
const binding = env1_5;
const binding2 = env1_6;
return binding(this, binding2)[binding2];
}
}
function _fun2455(a0) { // fn#2455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:987, offset: 0x00c81278, size: 68 bytes, params: 2, frame: 15
const PerformanceMeasure2 = PerformanceMeasure;
Inherits(PerformanceMeasure2, a0);
return CreateClass(PerformanceMeasure2, [{key: 'detail', get: get_2457}]);
function PerformanceMeasure(a0, a1) { // fn#2456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:999, offset: 0x00c812bc, size: 151 bytes, params: 3, frame: 19
var binding2;
const value = environment.__proto__;
let binding = env1_0;
binding(this, PerformanceMeasure);
const value3 = _callSuper(this, PerformanceMeasure, [{name: a0, entryType: 'measure', startTime: a1.startTime,
duration: a1.duration}]);
const Object = global.Object;
Object.defineProperty(value3, env1_7, {writable: true, value: undefined});
if (a1) {
binding = env1_5;
binding2 = env1_7;
binding(value3, binding2)[binding2] = a1.detail;
}
return value3;
}
function get_2457() { // fn#2457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:185:1334, offset: 0x00c81353, size: 28 bytes, params: 1, frame: 13
const binding = env1_5;
const binding2 = env1_7;
return binding(this, binding2)[binding2];
}
}
}
global.__d(_fun2447, 160, [6, 7, 15, 17, 18, 99, 100,
155]) /* metro module 160, dependencies: [6, 7, 15, 17, 18, 99, 100, 155] */;