Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,341 @@
|
||||
/* Metro module 7418; source: unknown; dependencies: [57, 65, 7380, 7383, 7396, 7419, 7420, 7406, 7378, 7421, 7414, 7390] */
|
||||
function _fun59809(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:6, offset: 0x016f3198, size: 167 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = applyClientOptions_59810;
|
||||
const closure2 = applyDebugIds_59811;
|
||||
const closure3 = applyDebugMeta_59814;
|
||||
const env0_2 = require(57) /* metro dependency 57 */;
|
||||
const env0_3 = require(65) /* metro dependency 65 */;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = ['user', 'level', 'extra', 'contexts', 'tags', 'fingerprint', 'requestSession', 'propagationContext'];
|
||||
exports.applyClientOptions = closure;
|
||||
exports.applyDebugIds = closure2;
|
||||
exports.applyDebugMeta = closure3;
|
||||
exports.parseEventHintOrCaptureContext = parseEventHintOrCaptureContext_59818;
|
||||
exports.prepareEvent = prepareEvent_59821;
|
||||
}
|
||||
|
||||
function applyClientOptions_59810(a0, {environment, release, dist, maxValueLength}) { // fn#59810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:56, offset: 0x016f323f, size: 362 bytes, params: 3, frame: 18
|
||||
const r5 = maxValueLength === undefined ? 250 : maxValueLength;
|
||||
let r4 = a0.environment || environment;
|
||||
r4 = !r4 ? (require(7406) /* metro dependency 7406 */).DEFAULT_ENVIRONMENT : r4;
|
||||
a0.environment = r4;
|
||||
if (!a0.release && release) {
|
||||
a0.release = release;
|
||||
}
|
||||
let r3 = !a0.dist && dist;
|
||||
if (r3) {
|
||||
a0.dist = dist;
|
||||
}
|
||||
if (a0.message) {
|
||||
value = require(7378) /* metro dependency 7378 */;
|
||||
a0.message = value.truncate(a0.message, r5);
|
||||
}
|
||||
r3 = a0.exception && a0.exception.values && a0.exception.values[0];
|
||||
if (r3 && r3.value) {
|
||||
value = require(7378) /* metro dependency 7378 */;
|
||||
r3.value = value.truncate(r3.value, r5);
|
||||
}
|
||||
const request = a0.request;
|
||||
if (request && request.url) {
|
||||
value = require(7378) /* metro dependency 7378 */;
|
||||
request.url = value.truncate(request.url, r5);
|
||||
}
|
||||
}
|
||||
|
||||
function applyDebugIds_59811(a0, a1) { // fn#59811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:504, offset: 0x016f33a9, size: 80 bytes, params: 3, frame: 14
|
||||
var exception;
|
||||
var values;
|
||||
var closure;
|
||||
var error;
|
||||
const env0_0 = (require(7421) /* metro dependency 7421 */).getFilenameToDebugIdMap(a1);
|
||||
try {
|
||||
exception = a0.exception;
|
||||
values = exception.values;
|
||||
closure = function(a0) {
|
||||
a0.stacktrace.frames.forEach(_fun59813);
|
||||
};
|
||||
values.forEach(closure);
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
|
||||
function applyDebugMeta_59814(a0) { // fn#59814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:717, offset: 0x016f344b, size: 191 bytes, params: 2, frame: 16
|
||||
var r4;
|
||||
var exception;
|
||||
var values;
|
||||
var closure;
|
||||
var error;
|
||||
var debug_meta;
|
||||
var images;
|
||||
const object2 = {};
|
||||
try {
|
||||
exception = a0.exception;
|
||||
values = exception.values;
|
||||
closure = function(a0) {
|
||||
a0.stacktrace.frames.forEach(_fun59816);
|
||||
};
|
||||
values.forEach(closure);
|
||||
} catch (error) {
|
||||
}
|
||||
const Object = global.Object;
|
||||
if (Object.keys(object2).length !== 0) {
|
||||
debug_meta = a0.debug_meta;
|
||||
r4 = debug_meta || ({});
|
||||
a0.debug_meta = r4;
|
||||
debug_meta = a0.debug_meta;
|
||||
images = a0.debug_meta.images;
|
||||
r4 = images || [];
|
||||
debug_meta.images = r4;
|
||||
debug_meta = a0.debug_meta;
|
||||
images = debug_meta.images;
|
||||
global.Object.entries(object2).forEach(_fun59817);
|
||||
}
|
||||
}
|
||||
|
||||
function parseEventHintOrCaptureContext_59818(a0) { // fn#59818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:1501, offset: 0x016f352e, size: 92 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
const value = a0;
|
||||
if (value) {
|
||||
r0 = value instanceof (require(7390) /* metro dependency 7390 */).Scope || typeof value === 'function';
|
||||
r0 = r0 || ((a0) => {
|
||||
var Object = global.Object;
|
||||
return Object.keys(a0).some(_fun59820);
|
||||
})(value) ? {captureContext: value} : value;
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
|
||||
function prepareEvent_59821(a0, a1, a2, a3, a4, a5) { // fn#59821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:1789, offset: 0x016f35b3, size: 831 bytes, params: 7, frame: 27
|
||||
var r7;
|
||||
var r1;
|
||||
var sdk;
|
||||
var concat;
|
||||
var binding;
|
||||
let value = a3;
|
||||
const normalizeDepth = a0.normalizeDepth;
|
||||
const value2 = 3;
|
||||
let r4 = normalizeDepth === undefined ? value2 : normalizeDepth;
|
||||
const normalizeMaxBreadth = a0.normalizeMaxBreadth;
|
||||
r4 = normalizeMaxBreadth === undefined ? 1000 : normalizeMaxBreadth;
|
||||
const Object = global.Object;
|
||||
const assign = Object.assign;
|
||||
let object = {};
|
||||
let event_id = a1.event_id;
|
||||
event_id = !event_id ? a2.event_id : event_id;
|
||||
object.event_id = event_id || (require(7380) /* metro dependency 7380 */).uuid4();
|
||||
object.timestamp = a1.timestamp || require(dependencyMap[value2]).dateTimestampInSeconds();
|
||||
const value8 = Reflect.apply(assign, Object, [{}, a1, object]);
|
||||
const r15 = a2.integrations || a0.integrations.map(function(a0) {
|
||||
return a0.name;
|
||||
});
|
||||
applyClientOptions_59810(value8, a0);
|
||||
if (r15.length > 0) {
|
||||
sdk = value8.sdk;
|
||||
r7 = sdk || ({});
|
||||
value8.sdk = r7;
|
||||
sdk = value8.sdk;
|
||||
object = [];
|
||||
concat = object.concat;
|
||||
binding = env0_3;
|
||||
r7 = value8.sdk.integrations || [];
|
||||
sdk.integrations = Reflect.apply(concat, object, [binding(r7), env0_3(r15)]);
|
||||
}
|
||||
if (a4) {
|
||||
a4.emit('applyFrameMetadata', a1);
|
||||
}
|
||||
if (a1.type === undefined) {
|
||||
applyDebugIds_59811(value8, a0.stackParser);
|
||||
}
|
||||
const captureContext = a2.captureContext;
|
||||
if (captureContext) {
|
||||
if (value) {
|
||||
value = value.clone();
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = new (require(7390) /* metro dependency 7390 */).Scope();
|
||||
}
|
||||
r1.update(captureContext);
|
||||
r7 = r1;
|
||||
} else {
|
||||
r7 = value;
|
||||
}
|
||||
if (a2.mechanism) {
|
||||
value = require(7380) /* metro dependency 7380 */;
|
||||
value.addExceptionMechanism(value8, a2.mechanism);
|
||||
}
|
||||
const r3 = a4 ? a4.getEventProcessors() : [];
|
||||
value = require(7396) /* metro dependency 7396 */;
|
||||
value = value.getGlobalScope();
|
||||
value = value.getScopeData();
|
||||
if (a5) {
|
||||
(require(7419) /* metro dependency 7419 */).mergeScopeData(value, a5.getScopeData());
|
||||
}
|
||||
if (r7) {
|
||||
(require(7419) /* metro dependency 7419 */).mergeScopeData(value, r7.getScopeData());
|
||||
}
|
||||
object = [];
|
||||
const value15 = object.concat(env0_3(a2.attachments || []), env0_3(value.attachments));
|
||||
if (value15.length) {
|
||||
a2.attachments = value15;
|
||||
}
|
||||
(require(7419) /* metro dependency 7419 */).applyScopeDataToEvent(value8, value);
|
||||
object = [];
|
||||
concat = object.concat;
|
||||
binding = env0_3;
|
||||
value = Reflect.apply(concat, object, [binding(r3), binding(value.eventProcessors)]);
|
||||
value = (require(7420) /* metro dependency 7420 */).notifyEventProcessors(value, value8, a2);
|
||||
return value.then(_fun59823);
|
||||
}
|
||||
|
||||
function _fun59812({stacktrace}) { // fn#59812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:605, offset: 0x016f33f9, size: 36 bytes, params: 2, frame: 11
|
||||
stacktrace.frames.forEach(_fun59813);
|
||||
}
|
||||
|
||||
function _fun59815({stacktrace}) { // fn#59815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:785, offset: 0x016f350a, size: 36 bytes, params: 2, frame: 11
|
||||
stacktrace.frames.forEach(_fun59816);
|
||||
}
|
||||
|
||||
function parseEventHintOrCaptureContext_59818HintIsScopeContext(a0) { // fn#59819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:1652, owner: parseEventHintOrCaptureContext_59818.hintIsScopeContext, offset: 0x016f358a, size: 41 bytes, params: 2, frame: 11
|
||||
const Object = global.Object;
|
||||
return Object.keys(a0).some(_fun59820);
|
||||
}
|
||||
|
||||
function _fun59823(a0) { // fn#59823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:2934, offset: 0x016f38f2, size: 80 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
var r0;
|
||||
var value2;
|
||||
let value = a0;
|
||||
if (value) {
|
||||
value2 = environment.__proto__;
|
||||
applyDebugMeta_59814(value);
|
||||
}
|
||||
if (typeof env0_0 !== 'number') {
|
||||
r0 = value;
|
||||
} else if (env0_0 > 0) {
|
||||
value = normalizeEvent_59824(value, env0_0, env0_1);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun59813(a0) { // fn#59813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:646, offset: 0x016f341d, size: 46 bytes, params: 2, frame: 4
|
||||
if (env1_0 && a0.filename) {
|
||||
a0.debug_id = env1_0[a0.filename];
|
||||
}
|
||||
}
|
||||
|
||||
function normalizeEvent_59824(a0, a1, a2) { // fn#59824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:2998, offset: 0x016f3942, size: 573 bytes, params: 4, frame: 27
|
||||
var environment;
|
||||
var r7;
|
||||
var r5;
|
||||
var r4;
|
||||
var r3;
|
||||
var r2;
|
||||
var Object;
|
||||
var assign;
|
||||
var breadcrumbs;
|
||||
var object2;
|
||||
var user;
|
||||
var value;
|
||||
var normalize;
|
||||
var contexts;
|
||||
var extra;
|
||||
var trace;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var value3;
|
||||
var moduleValue2;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
if (a0) {
|
||||
Object = global.Object;
|
||||
assign = Object.assign;
|
||||
breadcrumbs = a0.breadcrumbs;
|
||||
if (breadcrumbs) {
|
||||
object2 = {};
|
||||
object2.breadcrumbs = a0.breadcrumbs.map(_fun59825);
|
||||
r7 = object2;
|
||||
} else {
|
||||
r7 = breadcrumbs;
|
||||
}
|
||||
user = a0.user;
|
||||
if (user) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(7414) /* metro dependency 7414 */;
|
||||
r5 = {user: value.normalize(a0.user, a1, a2)};
|
||||
} else {
|
||||
r5 = user;
|
||||
}
|
||||
contexts = a0.contexts;
|
||||
if (contexts) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(7414) /* metro dependency 7414 */;
|
||||
r4 = {contexts: value.normalize(a0.contexts, a1, a2)};
|
||||
} else {
|
||||
r4 = contexts;
|
||||
}
|
||||
extra = a0.extra;
|
||||
if (extra) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(7414) /* metro dependency 7414 */;
|
||||
r3 = {extra: value.normalize(a0.extra, a1, a2)};
|
||||
} else {
|
||||
r3 = extra;
|
||||
}
|
||||
value = Reflect.apply(assign, Object, [{}, a0, r7, r5, r4, r3]);
|
||||
contexts = a0.contexts;
|
||||
r3 = contexts && a0.contexts.trace;
|
||||
r3 = r3 && value.contexts;
|
||||
if (r3) {
|
||||
contexts = value.contexts;
|
||||
trace = a0.contexts.trace;
|
||||
contexts.trace = trace;
|
||||
contexts = a0.contexts;
|
||||
trace = contexts.trace;
|
||||
if (trace.data) {
|
||||
contexts = value.contexts;
|
||||
trace = contexts.trace;
|
||||
value2 = environment.__proto__.__proto__;
|
||||
moduleValue = require(7414) /* metro dependency 7414 */;
|
||||
normalize = moduleValue.normalize;
|
||||
contexts = a0.contexts;
|
||||
trace.data = Reflect.apply(normalize, moduleValue, [contexts.trace.data, a1, a2]);
|
||||
}
|
||||
}
|
||||
if (a0.spans) {
|
||||
value.spans = a0.spans.map(_fun59826);
|
||||
}
|
||||
contexts = a0.contexts;
|
||||
r2 = contexts && a0.contexts.flags;
|
||||
r2 = r2 && value.contexts;
|
||||
if (r2) {
|
||||
contexts = value.contexts;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
moduleValue2 = require(7414) /* metro dependency 7414 */;
|
||||
contexts.flags = moduleValue2.normalize(a0.contexts.flags, 3, a2);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun59825(a0) { // fn#59825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7596:3119, offset: 0x016f3b7f, size: 98 bytes, params: 2, frame: 20
|
||||
var r1;
|
||||
var value;
|
||||
const Object = global.Object;
|
||||
const assign = Object.assign;
|
||||
const data = a0.data;
|
||||
if (data) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = require(7414) /* metro dependency 7414 */;
|
||||
r1 = {data: value.normalize(a0.data, require, importDefault)};
|
||||
} else {
|
||||
r1 = data;
|
||||
}
|
||||
return Reflect.apply(assign, Object, [{}, a0, r1]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user