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

1740 lines
113 KiB
JavaScript

/* Metro module 1338; source: unknown; dependencies: [57, 6, 7, 1329, 1325, 1320, 1323] */
import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as Module00057Module from './module-00057.js'; /* Metro dependency 57 */
import * as Module01320Module from './module-01320.js'; /* Metro dependency 1320 */
import * as Module01323Module from './module-01323.js'; /* Metro dependency 1323 */
import * as Module01329Module from './module-01329.js'; /* Metro dependency 1329 */
function _fun15257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:6, offset: 0x00e2a553, size: 123 bytes, params: 8, frame: 17
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.ReflectionBinaryWriter = undefined;
exports.ReflectionBinaryWriter = _fun15258();
function _fun15258() { // fn#15258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:171, offset: 0x00e2a5ce, size: 195 bytes, params: 1, frame: 15
return CreateClassModule(ReflectionBinaryWriter, [{key: 'prepare', value: function() {
if (!this.fields) {
this.fields = (this.info.fields ? this.info.fields.concat() : []).sort(_fun15261);
}
}}, {key: 'write', value: value_15262}, {key: 'mapEntry', value: value_15263}, {key: 'message', value: value_15264},
{key: 'scalar', value: value_15265}, {key: 'packed', value: value_15266}, {key: 'scalarInfo',
value: value_15267}]);
function ReflectionBinaryWriter(a0) { // fn#15259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:192, offset: 0x00e275a3, size: 36 bytes, params: 2, frame: 13
env1_3(this, ReflectionBinaryWriter);
this.info = a0;
}
function value_15260() { // fn#15260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:294, offset: 0x00e2a691, size: 82 bytes, params: 1, frame: 12
var r3;
if (!this.fields) {
r3 = this.info.fields ? this.info.fields.concat() : [];
this.fields = r3.sort(function({no}, a1) {
return no - a1.no;
});
}
}
function value_15262(a0, a1, a2) { // fn#15262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:458, offset: 0x00e2a6f9, size: 963 bytes, params: 4, frame: 49
var r9;
var r23;
var r24;
var r29;
var r30;
var r292;
var r4;
var prepare;
var fields;
var iterator;
var iterator2;
var value;
var value2;
var value3;
var item;
var item2;
var repeat;
var localName;
var oneof;
var property;
var oneofKind;
var value4;
var kind;
var value5;
var value6;
var value7;
var value8;
var moduleValue;
var assert;
var value9;
var value10;
var Object;
var entries;
var value11;
var iterator3;
var item3;
var item4;
var value12;
var binding;
var value13;
var property2;
var mapEntry;
var error;
var message;
var T;
var value14;
var no;
var moduleValue2;
var Array;
var isArray;
var isArray2;
var iterator4;
var item5;
var item6;
var value15;
var value16;
var value17;
var moduleValue3;
var ScalarType;
var INT32;
var value18;
var scalar;
var opt;
var moduleValue4;
var moduleValue5;
var isArray3;
var moduleValue6;
var RepeatType;
var PACKED;
var value19;
var iterator5;
var item7;
var item8;
var value20;
var packed;
var writeUnknownFields;
var UnknownFieldHandler;
var onWrite;
var info;
var typeName;
exceptionSkip157: while (true) {
exceptionLanding157: while (true) {
exceptionSkip149: while (true) {
exceptionLanding149: while (true) {
exceptionSkip86: while (true) {
exceptionLanding86: while (true) {
exceptionSkip51: while (true) {
exceptionLanding51: while (true) {
prepare = this.prepare;
Reflect.apply(prepare, this, []);
fields = this.fields;
iterator = fields[Symbol.iterator]();
iterator2 = iterator.next;
value = true;
value2 = environment.__proto__;
value3 = false;
r9 = iterator;
reducibleLoop1: while (true) {
item2 = Reflect.apply(iterator2, r9, []);
item = item2.value;
item2 = item2.done ? undefined : r9;
if (item2 === undefined) {
break reducibleLoop1;
}
try {
repeat = item.repeat;
} catch (error) {
break exceptionLanding157;
}
try {
localName = item.localName;
} catch (error) {
break exceptionLanding157;
}
try {
oneof = item.oneof;
} catch (error) {
break exceptionLanding157;
}
if (oneof) {
try {
oneof = item.oneof;
} catch (error) {
break exceptionLanding157;
}
try {
property = a0[oneof];
} catch (error) {
break exceptionLanding157;
}
try {
oneofKind = property.oneofKind;
} catch (error) {
break exceptionLanding157;
}
try {
value4 = oneofKind !== localName;
} catch (error) {
break exceptionLanding157;
}
if (value4) {
r9 = item2;
continue reducibleLoop1;
}
try {
property = property[localName];
} catch (error) {
break exceptionLanding157;
}
r23 = property;
r24 = value;
try {
kind = item.kind;
} catch (error) {
break exceptionLanding157;
}
try {
value5 = kind === 'scalar';
} catch (error) {
break exceptionLanding157;
}
if (!value5) {
try {
value6 = kind === 'enum';
} catch (error) {
break exceptionLanding157;
}
reducibleJoin89: while (true) {
if (value6) {
break reducibleJoin89;
}
try {
value7 = kind === 'message';
} catch (error) {
break exceptionLanding157;
}
if (value7) {
if (repeat) {
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue2 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue2.assert;
} catch (error) {
break exceptionLanding157;
}
try {
Array = global.Array;
} catch (error) {
break exceptionLanding157;
}
try {
isArray = Array.isArray;
} catch (error) {
break exceptionLanding157;
}
try {
isArray2 = Reflect.apply(isArray, Array, [r23]);
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(assert, moduleValue2, [isArray2]);
} catch (error) {
break exceptionLanding157;
}
try {
iterator = r23[Symbol.iterator]();
iterator4 = iterator.next;
} catch (error) {
break exceptionLanding157;
}
r30 = iterator;
reducibleLoop75: while (true) {
try {
item6 = Reflect.apply(iterator4, r30, []);
item5 = item6.value;
item6 = item6.done ? undefined : r30;
} catch (error) {
break exceptionLanding157;
}
try {
value15 = item6 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value15) {
r9 = item2;
continue reducibleLoop1;
}
try {
try {
message = this.message;
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
T = item.T;
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
value16 = Reflect.apply(T, item, []);
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
no = item.no;
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
Reflect.apply(message, this, [a1, a2, value16,
no,
item5]);
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
r30 = item6;
continue reducibleLoop75;
}
continue reducibleLoop1;
}
try {
message = this.message;
} catch (error) {
break exceptionLanding157;
}
try {
T = item.T;
} catch (error) {
break exceptionLanding157;
}
try {
value14 = Reflect.apply(T, item, []);
} catch (error) {
break exceptionLanding157;
}
try {
no = item.no;
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(message, this, [a1, a2, value14, no, r23]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
try {
value8 = kind !== 'map';
} catch (error) {
break exceptionLanding157;
}
if (value8) {
r9 = item2;
continue reducibleLoop1;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue.assert;
} catch (error) {
break exceptionLanding157;
}
value9 = typeof r23 === 'object';
reducibleJoin33: while (true) {
if (value9) {
value10 = r23 !== null;
r29 = value10;
break reducibleJoin33;
}
r29 = value9;
break reducibleJoin33;
}
try {
Reflect.apply(assert, moduleValue, [r29]);
} catch (error) {
break exceptionLanding157;
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding157;
}
try {
entries = Object.entries;
} catch (error) {
break exceptionLanding157;
}
try {
value11 = Reflect.apply(entries, Object, [r23]);
} catch (error) {
break exceptionLanding157;
}
try {
iterator = value11[Symbol.iterator]();
iterator3 = iterator.next;
} catch (error) {
break exceptionLanding157;
}
r30 = iterator;
reducibleLoop40: while (true) {
try {
item4 = Reflect.apply(iterator3, r30, []);
item3 = item4.value;
item4 = item4.done ? undefined : r30;
} catch (error) {
break exceptionLanding157;
}
try {
value12 = item4 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value12) {
r9 = item2;
continue reducibleLoop1;
}
try {
try {
binding = env1_2;
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
value13 = binding(item3, 2);
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
property = value13[0];
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
property2 = value13[1];
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
mapEntry = this.mapEntry;
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
Reflect.apply(mapEntry, this, [a1, a2, item, property,
property2]);
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
r30 = item4;
continue reducibleLoop40;
}
continue reducibleLoop1;
}
}
try {
kind = item.kind;
} catch (error) {
break exceptionLanding157;
}
try {
value17 = kind == 'enum';
} catch (error) {
break exceptionLanding157;
}
if (value17) {
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[3];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue3 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
ScalarType = moduleValue3.ScalarType;
} catch (error) {
break exceptionLanding157;
}
try {
INT32 = ScalarType.INT32;
} catch (error) {
break exceptionLanding157;
}
r29 = INT32;
} else {
try {
T = item.T;
} catch (error) {
break exceptionLanding157;
}
r29 = T;
}
if (!repeat) {
try {
value18 = r23 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value18) {
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue4 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue4.assert;
} catch (error) {
break exceptionLanding157;
}
try {
opt = item.opt;
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(assert, moduleValue4, [opt]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
try {
scalar = this.scalar;
} catch (error) {
break exceptionLanding157;
}
try {
no = item.no;
} catch (error) {
break exceptionLanding157;
}
reducibleJoin110: while (true) {
if (r24) {
r292 = r24;
break reducibleJoin110;
}
try {
opt = item.opt;
} catch (error) {
break exceptionLanding157;
}
r292 = opt;
break reducibleJoin110;
}
try {
Reflect.apply(scalar, this, [a1, r29, no, r23, r292]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue5 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue5.assert;
} catch (error) {
break exceptionLanding157;
}
try {
Array = global.Array;
} catch (error) {
break exceptionLanding157;
}
try {
isArray = Array.isArray;
} catch (error) {
break exceptionLanding157;
}
try {
isArray3 = Reflect.apply(isArray, Array, [r23]);
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(assert, moduleValue5, [isArray3]);
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[3];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue6 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
RepeatType = moduleValue6.RepeatType;
} catch (error) {
break exceptionLanding157;
}
try {
PACKED = RepeatType.PACKED;
} catch (error) {
break exceptionLanding157;
}
try {
value19 = repeat == PACKED;
} catch (error) {
break exceptionLanding157;
}
if (value19) {
try {
packed = this.packed;
} catch (error) {
break exceptionLanding157;
}
try {
no = item.no;
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(packed, this, [a1, r29, no, r23]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
try {
iterator = r23[Symbol.iterator]();
iterator5 = iterator.next;
} catch (error) {
break exceptionLanding157;
}
r30 = iterator;
reducibleLoop140: while (true) {
try {
item8 = Reflect.apply(iterator5, r30, []);
item7 = item8.value;
item8 = item8.done ? undefined : r30;
} catch (error) {
break exceptionLanding157;
}
try {
value20 = item8 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value20) {
r9 = item2;
continue reducibleLoop1;
}
try {
try {
scalar = this.scalar;
} catch (error) {
break exceptionLanding149;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
no = item.no;
} catch (error) {
break exceptionLanding149;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
Reflect.apply(scalar, this, [a1, r29, no, item7, value]);
} catch (error) {
break exceptionLanding149;
}
} catch (error) {
break exceptionLanding157;
}
r30 = item8;
continue reducibleLoop140;
}
continue reducibleLoop1;
}
try {
property = a0[localName];
} catch (error) {
break exceptionLanding157;
}
r23 = property;
r24 = value3;
try {
kind = item.kind;
} catch (error) {
break exceptionLanding157;
}
try {
value5 = kind === 'scalar';
} catch (error) {
break exceptionLanding157;
}
if (!value5) {
try {
value6 = kind === 'enum';
} catch (error) {
break exceptionLanding157;
}
reducibleJoin89: while (true) {
if (value6) {
break reducibleJoin89;
}
try {
value7 = kind === 'message';
} catch (error) {
break exceptionLanding157;
}
if (value7) {
if (repeat) {
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue2 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue2.assert;
} catch (error) {
break exceptionLanding157;
}
try {
Array = global.Array;
} catch (error) {
break exceptionLanding157;
}
try {
isArray = Array.isArray;
} catch (error) {
break exceptionLanding157;
}
try {
isArray2 = Reflect.apply(isArray, Array, [r23]);
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(assert, moduleValue2, [isArray2]);
} catch (error) {
break exceptionLanding157;
}
try {
iterator = r23[Symbol.iterator]();
iterator4 = iterator.next;
} catch (error) {
break exceptionLanding157;
}
r30 = iterator;
reducibleLoop75: while (true) {
try {
item6 = Reflect.apply(iterator4, r30, []);
item5 = item6.value;
item6 = item6.done ? undefined : r30;
} catch (error) {
break exceptionLanding157;
}
try {
value15 = item6 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value15) {
r9 = item2;
continue reducibleLoop1;
}
try {
try {
message = this.message;
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
T = item.T;
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
value16 = Reflect.apply(T, item, []);
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
no = item.no;
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
Reflect.apply(message, this, [a1, a2, value16, no,
item5]);
} catch (error) {
break exceptionLanding86;
}
} catch (error) {
break exceptionLanding157;
}
r30 = item6;
continue reducibleLoop75;
}
continue reducibleLoop1;
}
try {
message = this.message;
} catch (error) {
break exceptionLanding157;
}
try {
T = item.T;
} catch (error) {
break exceptionLanding157;
}
try {
value14 = Reflect.apply(T, item, []);
} catch (error) {
break exceptionLanding157;
}
try {
no = item.no;
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(message, this, [a1, a2, value14, no, r23]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
try {
value8 = kind !== 'map';
} catch (error) {
break exceptionLanding157;
}
if (value8) {
r9 = item2;
continue reducibleLoop1;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue.assert;
} catch (error) {
break exceptionLanding157;
}
value9 = typeof r23 === 'object';
reducibleJoin33: while (true) {
if (value9) {
value10 = r23 !== null;
r29 = value10;
break reducibleJoin33;
}
r29 = value9;
break reducibleJoin33;
}
try {
Reflect.apply(assert, moduleValue, [r29]);
} catch (error) {
break exceptionLanding157;
}
try {
Object = global.Object;
} catch (error) {
break exceptionLanding157;
}
try {
entries = Object.entries;
} catch (error) {
break exceptionLanding157;
}
try {
value11 = Reflect.apply(entries, Object, [r23]);
} catch (error) {
break exceptionLanding157;
}
try {
iterator = value11[Symbol.iterator]();
iterator3 = iterator.next;
} catch (error) {
break exceptionLanding157;
}
r30 = iterator;
reducibleLoop40: while (true) {
try {
item4 = Reflect.apply(iterator3, r30, []);
item3 = item4.value;
item4 = item4.done ? undefined : r30;
} catch (error) {
break exceptionLanding157;
}
try {
value12 = item4 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value12) {
r9 = item2;
continue reducibleLoop1;
}
try {
try {
binding = env1_2;
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
value13 = binding(item3, 2);
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
property = value13[0];
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
property2 = value13[1];
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
mapEntry = this.mapEntry;
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
Reflect.apply(mapEntry, this, [a1, a2, item, property,
property2]);
} catch (error) {
break exceptionLanding51;
}
} catch (error) {
break exceptionLanding157;
}
r30 = item4;
continue reducibleLoop40;
}
continue reducibleLoop1;
}
}
try {
kind = item.kind;
} catch (error) {
break exceptionLanding157;
}
try {
value17 = kind == 'enum';
} catch (error) {
break exceptionLanding157;
}
if (value17) {
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[3];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue3 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
ScalarType = moduleValue3.ScalarType;
} catch (error) {
break exceptionLanding157;
}
try {
INT32 = ScalarType.INT32;
} catch (error) {
break exceptionLanding157;
}
r29 = INT32;
} else {
try {
T = item.T;
} catch (error) {
break exceptionLanding157;
}
r29 = T;
}
if (repeat) {
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue5 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue5.assert;
} catch (error) {
break exceptionLanding157;
}
try {
Array = global.Array;
} catch (error) {
break exceptionLanding157;
}
try {
isArray = Array.isArray;
} catch (error) {
break exceptionLanding157;
}
try {
isArray3 = Reflect.apply(isArray, Array, [r23]);
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(assert, moduleValue5, [isArray3]);
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[3];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue6 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
RepeatType = moduleValue6.RepeatType;
} catch (error) {
break exceptionLanding157;
}
try {
PACKED = RepeatType.PACKED;
} catch (error) {
break exceptionLanding157;
}
try {
value19 = repeat == PACKED;
} catch (error) {
break exceptionLanding157;
}
if (value19) {
try {
packed = this.packed;
} catch (error) {
break exceptionLanding157;
}
try {
no = item.no;
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(packed, this, [a1, r29, no, r23]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
try {
iterator = r23[Symbol.iterator]();
iterator5 = iterator.next;
} catch (error) {
break exceptionLanding157;
}
r30 = iterator;
reducibleLoop140: while (true) {
try {
item8 = Reflect.apply(iterator5, r30, []);
item7 = item8.value;
item8 = item8.done ? undefined : r30;
} catch (error) {
break exceptionLanding157;
}
try {
value20 = item8 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value20) {
r9 = item2;
continue reducibleLoop1;
}
try {
try {
scalar = this.scalar;
} catch (error) {
break exceptionLanding149;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
no = item.no;
} catch (error) {
break exceptionLanding149;
}
} catch (error) {
break exceptionLanding157;
}
try {
try {
Reflect.apply(scalar, this, [a1, r29, no, item7, value]);
} catch (error) {
break exceptionLanding149;
}
} catch (error) {
break exceptionLanding157;
}
r30 = item8;
continue reducibleLoop140;
}
continue reducibleLoop1;
}
try {
value18 = r23 === undefined;
} catch (error) {
break exceptionLanding157;
}
if (value18) {
try {
} catch (error) {
break exceptionLanding157;
}
try {
} catch (error) {
break exceptionLanding157;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding157;
}
try {
moduleValue4 = require(property);
} catch (error) {
break exceptionLanding157;
}
try {
assert = moduleValue4.assert;
} catch (error) {
break exceptionLanding157;
}
try {
opt = item.opt;
} catch (error) {
break exceptionLanding157;
}
try {
Reflect.apply(assert, moduleValue4, [opt]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
try {
scalar = this.scalar;
} catch (error) {
break exceptionLanding157;
}
try {
no = item.no;
} catch (error) {
break exceptionLanding157;
}
reducibleJoin110: while (true) {
if (r24) {
r292 = r24;
break reducibleJoin110;
}
try {
opt = item.opt;
} catch (error) {
break exceptionLanding157;
}
r292 = opt;
break reducibleJoin110;
}
try {
Reflect.apply(scalar, this, [a1, r29, no, r23, r292]);
} catch (error) {
break exceptionLanding157;
}
r9 = item2;
continue reducibleLoop1;
}
writeUnknownFields = a2.writeUnknownFields;
reducibleJoin162: while (true) {
if (value3 === writeUnknownFields) {
break reducibleJoin162;
}
reducibleJoin161: while (true) {
if (value !== writeUnknownFields) {
r4 = writeUnknownFields;
break reducibleJoin161;
}
UnknownFieldHandler = require(dependencyMap[5]).UnknownFieldHandler;
onWrite = UnknownFieldHandler.onWrite;
r4 = onWrite;
break reducibleJoin161;
}
info = this.info;
typeName = info.typeName;
r4(typeName, a0, a1);
break reducibleJoin162;
}
return undefined;
break exceptionSkip51;
}
try {
try {
item4.return();
} catch {
}
} catch (error) {
break exceptionLanding157;
}
try {
throw error;
} catch (error) {
break exceptionLanding157;
}
break exceptionSkip51;
}
break exceptionSkip86;
}
try {
try {
item6.return();
} catch {
}
} catch (error) {
break exceptionLanding157;
}
try {
throw error;
} catch (error) {
break exceptionLanding157;
}
break exceptionSkip86;
}
break exceptionSkip149;
}
try {
try {
item8.return();
} catch {
}
} catch (error) {
break exceptionLanding157;
}
try {
throw error;
} catch (error) {
break exceptionLanding157;
}
break exceptionSkip149;
}
break exceptionSkip157;
}
try {
item2.return();
} catch {
}
throw error;
break exceptionSkip157;
}
}
function value_15263(a0, a1, a2, a3, a4) { // fn#15263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:1382, offset: 0x00e2aabc, size: 575 bytes, params: 6, frame: 26
var r11;
var moduleValue;
let value = a3;
const tag = a0.tag;
const no = a2.no;
const WireType = (Module01320Module).WireType;
const LengthDelimited = WireType.LengthDelimited;
Reflect.apply(tag, a0, [no, LengthDelimited]);
a0.fork();
let K = a2.K;
const ScalarType = (Module01329Module).ScalarType;
const INT32 = ScalarType.INT32;
if (INT32 === K) {
value = global.Number.parseInt(value);
r11 = value;
} else if (ScalarType.FIXED32 === K) {
value = global.Number.parseInt(value);
r11 = value;
} else if (ScalarType.UINT32 === K) {
value = global.Number.parseInt(value);
r11 = value;
} else if (ScalarType.SFIXED32 === K) {
value = global.Number.parseInt(value);
r11 = value;
} else if (ScalarType.SINT32 === K) {
value = global.Number.parseInt(value);
r11 = value;
} else if (ScalarType.BOOL !== K) {
r11 = value;
} else {
moduleValue = require(1325) /* metro dependency 1325 */;
moduleValue.assert(value == 'true' || value == 'false');
value = value == 'true';
r11 = value;
}
const scalar = this.scalar;
K = a2.K;
Reflect.apply(scalar, this, [a0, K, 1, r11, true]);
const V = a2.V;
const kind = V.kind;
if (kind === 'scalar') {
this.scalar(a0, a2.V.T, 2, a4, true);
} else if (kind === 'enum') {
this.scalar(a0, ScalarType.INT32, 2, a4, true);
} else if (kind === 'message') {
this.message(a0, a1, a2.V.T(), 2, a4);
}
a0.join();
}
function value_15264(a0, a1, a2, a3, a4) { // fn#15264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:1987, offset: 0x00e2acfb, size: 99 bytes, params: 6, frame: 19
var internalBinaryWrite;
var tag;
var value;
if (a4 !== undefined) {
internalBinaryWrite = a2.internalBinaryWrite;
tag = a0.tag;
value = environment.__proto__;
value = Reflect.apply(tag, a0, [a3, (require(1320) /* metro dependency 1320 */).WireType.LengthDelimited]);
value = value.fork();
Reflect.apply(internalBinaryWrite, a2, [a4, value, a1]);
a0.join();
}
}
function value_15265(a0, a1, a2, a3, a4) { // fn#15265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:2137, offset: 0x00e2ad5e, size: 99 bytes, params: 6, frame: 16
let value = this.scalarInfo(a1, a3);
value = env1_2(value, 3);
if (!(value[2] && !a4)) {
a0.tag(a2, value[0]);
a0[value[1]](a3);
}
}
function value_15266(a0, a1, a2, a3) { // fn#15266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:2267, offset: 0x00e2adc1, size: 260 bytes, params: 5, frame: 21
var r2;
var value;
var moduleValue;
var assert;
const ScalarType = (Module01329Module).ScalarType;
var BYTES;
var value2;
var STRING;
var value3;
var tag;
var WireType;
var LengthDelimited;
var fork;
var scalarInfo;
var value4;
var property;
var join;
let length = a3.length;
reducibleJoin6: while (true) {
if (length) {
value = environment.__proto__;
moduleValue = require(1325) /* metro dependency 1325 */;
assert = moduleValue.assert;
BYTES = ScalarType.BYTES;
value2 = a1 !== BYTES;
reducibleJoin3: while (true) {
if (value2) {
STRING = ScalarType.STRING;
value3 = a1 !== STRING;
r2 = value3;
break reducibleJoin3;
}
r2 = value2;
break reducibleJoin3;
}
Reflect.apply(assert, moduleValue, [r2]);
tag = a0.tag;
WireType = (require(1320) /* metro dependency 1320 */).WireType;
LengthDelimited = WireType.LengthDelimited;
Reflect.apply(tag, a0, [a2, LengthDelimited]);
fork = a0.fork;
Reflect.apply(fork, a0, []);
scalarInfo = this.scalarInfo;
value4 = Reflect.apply(scalarInfo, this, [a1]);
value = env1_2(value4, 2);
property = value[1];
length = a3.length;
value = 0;
if (value < length) {
r2 = value;
reducibleLoop4: while (true) {
a0[property](a3[r2]);
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = a3.length;
if (value < length) {
r2 = value;
continue reducibleLoop4;
}
break reducibleLoop4;
}
}
join = a0.join;
Reflect.apply(join, a0, []);
break reducibleJoin6;
}
break reducibleJoin6;
}
}
function value_15267(a0, a1) { // fn#15267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:2543, offset: 0x00e2aec5, size: 1313 bytes, params: 3, frame: 22
var r10;
var r0;
var r2;
var r3;
var r4;
const PbLong = (Module01323Module).PbLong;
var Bit64;
var Bit32;
var LengthDelimited;
const PbULong = (Module01323Module).PbULong;
var value11;
let value = environment.__proto__;
const value2 = undefined;
const WireType = (Module01320Module).WireType;
const Varint = WireType.Varint;
const value3 = value2 === a1;
const value4 = a1 === 0;
const ScalarType = (Module01329Module).ScalarType;
const INT32 = ScalarType.INT32;
if (INT32 === a0) {
r2 = value4;
r3 = 'int32';
r4 = Varint;
} else if (ScalarType.STRING === a0) {
r0 = value3 || !a1.length;
LengthDelimited = WireType.LengthDelimited;
value = 'string';
r2 = r0;
r3 = value;
r4 = LengthDelimited;
} else if (ScalarType.BOOL === a0) {
value = a1 === false;
value11 = 'bool';
r2 = value;
r3 = value11;
r4 = Varint;
} else if (ScalarType.UINT32 === a0) {
r2 = value4;
r3 = 'uint32';
r4 = Varint;
} else if (ScalarType.DOUBLE === a0) {
Bit64 = WireType.Bit64;
value = 'double';
r2 = value4;
r3 = value;
r4 = Bit64;
} else if (ScalarType.FLOAT === a0) {
Bit32 = WireType.Bit32;
value = 'float';
r2 = value4;
r3 = value;
r4 = Bit32;
} else if (ScalarType.INT64 === a0) {
if (value3) {
r10 = value3;
} else {
value = PbLong.from(a1);
value = value.isZero();
r10 = value;
}
value = 'int64';
r2 = r10;
r3 = value;
r4 = Varint;
} else if (ScalarType.UINT64 === a0) {
if (value3) {
r10 = value3;
} else {
value = PbULong.from(a1);
value = value.isZero();
r10 = value;
}
value = 'uint64';
r2 = r10;
r3 = value;
r4 = Varint;
} else if (ScalarType.FIXED64 === a0) {
r10 = value3 || PbULong.from(a1).isZero();
Bit64 = WireType.Bit64;
value = 'fixed64';
r2 = r10;
r3 = value;
r4 = Bit64;
} else if (ScalarType.BYTES === a0) {
r10 = value3 || !a1.byteLength;
LengthDelimited = WireType.LengthDelimited;
value = 'bytes';
r2 = r10;
r3 = value;
r4 = LengthDelimited;
} else if (ScalarType.FIXED32 === a0) {
Bit32 = WireType.Bit32;
value = 'fixed32';
r2 = value4;
r3 = value;
r4 = Bit32;
} else if (ScalarType.SFIXED32 === a0) {
Bit32 = WireType.Bit32;
value = 'sfixed32';
r2 = value4;
r3 = value;
r4 = Bit32;
} else if (ScalarType.SFIXED64 === a0) {
r10 = value3 || PbLong.from(a1).isZero();
Bit64 = WireType.Bit64;
value = 'sfixed64';
r2 = r10;
r3 = value;
r4 = Bit64;
} else if (ScalarType.SINT32 === a0) {
r2 = value4;
r3 = 'sint32';
r4 = Varint;
} else if (ScalarType.SINT64 !== a0) {
r2 = value4;
r3 = value2;
r4 = Varint;
} else {
if (value3) {
r10 = value3;
} else {
value = PbLong.from(a1);
value = value.isZero();
r10 = value;
}
value = 'sint64';
r2 = r10;
r3 = value;
r4 = Varint;
}
return [r4, r3, value3 || r2];
}
}
}
function _fun15261({no}, {no}) { // fn#15261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1465:402, offset: 0x00e2a6e3, size: 22 bytes, params: 3, frame: 2
return no - no;
}
global.__d(_fun15257, 1338, [57, 6, 7, 1329, 1325, 1320,
1323]) /* metro module 1338, dependencies: [57, 6, 7, 1329, 1325, 1320, 1323] */;