121 lines
5.4 KiB
React
121 lines
5.4 KiB
React
/* Metro module 7446; source: unknown; dependencies: [65, 7376, 7378] */
|
|
function _fun60071(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7624:6, offset: 0x016fa9c9, size: 108 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const applyExceptionGroupFieldsForParentException_60074 = function(a0, a1) {
|
|
var property = a0.mechanism;
|
|
a0.mechanism = property || ({'type': 'generic', 'handled': true});
|
|
property = global.Object;
|
|
a0.mechanism = property.assign({}, a0.mechanism, a0.type === 'AggregateError' && ({is_exception_group: true}),
|
|
{exception_id: a1});
|
|
};
|
|
const applyExceptionGroupFieldsForChildException_60075 = function(a0, a1, a2, a3) {
|
|
a0.mechanism = a0.mechanism || ({'type': 'generic', 'handled': true});
|
|
a0.mechanism = global.Object.assign({}, a0.mechanism, {type: 'chained', source: a1, exception_id: a2,
|
|
parent_id: a3});
|
|
};
|
|
const env0_2 = require(65) /* metro dependency 65 */;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.applyAggregateErrorsToEvent = applyAggregateErrorsToEvent_60076;
|
|
}
|
|
|
|
function aggregateExceptionsFromError_60072(a0, a1, a2, a3, a4, a5, a6, a7) { // fn#60072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7624:45, offset: 0x016faa35, size: 303 bytes, params: 9, frame: 32
|
|
var value2;
|
|
var aggregateExceptionsFromError_60072Binding;
|
|
var items2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a4;
|
|
const env0_4 = a6;
|
|
const env0_5 = a7;
|
|
let length = a5.length;
|
|
if (length >= a2 + 1) {
|
|
return a5;
|
|
}
|
|
let env0_6 = env0_2(a5);
|
|
const moduleValue = require(7376) /* metro dependency 7376 */;
|
|
const isInstanceOf = moduleValue.isInstanceOf;
|
|
let property = a3[a4];
|
|
const Error = global.Error;
|
|
if (Reflect.apply(isInstanceOf, moduleValue, [property, Error])) {
|
|
applyExceptionGroupFieldsForParentException_60074(a6, a7);
|
|
value2 = a0(a1, a3[a4]);
|
|
length = env0_6.length;
|
|
applyExceptionGroupFieldsForChildException_60075(value2, a4, length, a7);
|
|
aggregateExceptionsFromError_60072Binding = aggregateExceptionsFromError_60072;
|
|
property = a3[a4];
|
|
items2 = [value2];
|
|
env0_6 = aggregateExceptionsFromError_60072Binding(a0, a1, a2, property, a4, items2.concat(env0_2(env0_6)),
|
|
value2,
|
|
length);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a3.errors)) {
|
|
a3.errors.forEach(_fun60073);
|
|
}
|
|
return env0_6;
|
|
}
|
|
|
|
function applyAggregateErrorsToEvent_60076(a0, a1) { // fn#60076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7624:1182, offset: 0x016fac3a, size: 340 bytes, params: 3, frame: 27
|
|
var r8;
|
|
var values;
|
|
var moduleValue;
|
|
const value = undefined;
|
|
const value2 = 250;
|
|
const r4 = arguments.length > 2 ? value === arguments[2] ? value2 : arguments[2] : value2;
|
|
const r11 = arguments.length > 3 ? arguments[3] : value;
|
|
const r10 = arguments.length > 4 ? arguments[4] : value;
|
|
const r1 = arguments.length > 5 ? arguments[5] : value;
|
|
const r3 = arguments.length > 6 ? arguments[6] : value;
|
|
let exception = r1.exception;
|
|
if (exception) {
|
|
exception = r1.exception;
|
|
values = exception.values;
|
|
if (values) {
|
|
if (r3) {
|
|
moduleValue = require(7376) /* metro dependency 7376 */;
|
|
if (moduleValue.isInstanceOf(r3.originalException, global.Error)) {
|
|
exception = r1.exception;
|
|
values = exception.values;
|
|
if (values.length > 0) {
|
|
exception = r1.exception;
|
|
values = exception.values;
|
|
exception = r1.exception;
|
|
r8 = values[exception.values.length - 1];
|
|
} else {
|
|
r8 = value;
|
|
}
|
|
if (r8) {
|
|
r1.exception.values = ((a0, a1) => {
|
|
var env0_0 = a1;
|
|
return a0.map(_fun60078);
|
|
})(aggregateExceptionsFromError_60072(a0, a1, r10, r3.originalException, r11,
|
|
r1.exception.values,
|
|
r8,
|
|
0),
|
|
r4);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function truncateAggregateExceptions(a0, a1) { // fn#60077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7624:1653, owner: applyAggregateErrorsToEvent_60076.truncateAggregateExceptions, offset: 0x016fad8e, size: 29 bytes, params: 3, frame: 11
|
|
const env0_0 = a1;
|
|
return a0.map(_fun60078);
|
|
}
|
|
|
|
function _fun60078(a0) { // fn#60078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7624:1709, offset: 0x016fadab, size: 68 bytes, params: 2, frame: 14
|
|
let value = a0.value;
|
|
if (value) {
|
|
value = environment.__proto__.__proto__;
|
|
value = require(7378) /* metro dependency 7378 */;
|
|
a0.value = value.truncate(a0.value, require);
|
|
}
|
|
return a0;
|
|
}
|
|
|