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

156 lines
6.4 KiB
JavaScript

/* Metro module 7496; source: unknown; dependencies: [] */
function _fun60422(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7674:6, offset: 0x01702c06, size: 52 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports._optionalChain = _optionalChain;
function _optionalChain(a0) { // fn#60423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7674:97, offset: 0x01702c3a, size: 179 bytes, params: 2, frame: 25
var r3;
var r4;
var r15;
var r14;
var r1;
var property2;
var value2;
var value3;
var value4;
var value5;
var value6;
var value7;
let property = a0[0];
var env0_1;
let length = a0.length;
const value = 1;
if (value < length) {
r3 = value;
r4 = property;
reducibleLoop1: while (true) {
property = a0[r3];
property2 = a0[r3 + value];
value2 = r3 + 2;
value3 = property === 'optionalAccess';
if (!value3) {
reducibleJoin3: while (true) {
if (property !== 'optionalCall') {
reducibleJoin11: while (true) {
reducibleJoin10: while (true) {
if (property === 'access') {
break reducibleJoin10;
}
if (value3) {
break reducibleJoin10;
}
value4 = property !== 'call';
reducibleJoin8: while (true) {
if (value4) {
value5 = property !== 'optionalCall';
r15 = value5;
break reducibleJoin8;
}
r15 = value4;
break reducibleJoin8;
}
if (r15) {
r14 = r4;
break reducibleJoin11;
}
value6 = property2(_fun60424);
env0_1 = value6;
env0_0 = undefined;
r14 = value6;
break reducibleJoin11;
}
var env0_0 = r4;
value7 = property2(r4);
env0_1 = value7;
r14 = value7;
break reducibleJoin11;
}
length = a0.length;
if (!(value2 < length)) {
return r14;
}
r3 = value2;
r4 = r14;
continue reducibleLoop1;
}
break reducibleJoin3;
}
}
if (r4 == null) {
return undefined;
}
reducibleJoin11: while (true) {
reducibleJoin10: while (true) {
if (property === 'access') {
break reducibleJoin10;
}
if (value3) {
break reducibleJoin10;
}
value4 = property !== 'call';
reducibleJoin8: while (true) {
if (value4) {
value5 = property !== 'optionalCall';
r15 = value5;
break reducibleJoin8;
}
r15 = value4;
break reducibleJoin8;
}
if (r15) {
r14 = r4;
break reducibleJoin11;
}
value6 = property2(_fun60424);
env0_1 = value6;
env0_0 = undefined;
r14 = value6;
break reducibleJoin11;
}
var env0_0 = r4;
value7 = property2(r4);
env0_1 = value7;
r14 = value7;
break reducibleJoin11;
}
length = a0.length;
if (!(value2 < length)) {
return r14;
}
r3 = value2;
r4 = r14;
continue reducibleLoop1;
}
} else {
r1 = property;
}
return r1;
function _fun60424() { // fn#60424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7674:338, offset: 0x01702abc, size: 107 bytes, params: 1, frame: 15
var r0;
var value5;
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value4 = 0;
if (value4 < length) {
for (r0 = value4; true; r0 = value5) {
array[r0] = arguments[r0];
value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (!(value5 < length)) {
break;
}
}
}
const binding = env0_1;
const call = binding.call;
const apply = call.apply;
const items2 = [env0_0];
return Reflect.apply(apply, call, [binding, items2.concat(array)]);
}
}
}
global.__d(_fun60422, 7496, []) /* metro module 7496 */;