1470 lines
70 KiB
JavaScript
1470 lines
70 KiB
JavaScript
/* Metro module 7424; source: unknown; dependencies: [57, 6, 7, 7416, 7397, 7369, 7423, 7380, 7376, 7392, 7393, 7425, 7412, 7413, 7396, 7418, 7405, 7426, 7409, 7427, 7374] */
|
|
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 Module07369Module from './module-07369.js'; /* Metro dependency 7369 */
|
|
import * as moduleValue22 from './module-07376.js'; /* Metro dependency 7376 */
|
|
import * as moduleValue23 from './module-07380.js'; /* Metro dependency 7380 */
|
|
import * as Module07393Module from './module-07393.js'; /* Metro dependency 7393 */
|
|
import * as DEBUG_BUILDModule from './module-07397-DEBUG_BUILD.js'; /* Metro dependency 7397 */
|
|
import * as Module07425Module from './module-07425.js'; /* Metro dependency 7425 */
|
|
import * as SentryErrorModule from './module-07426-SentryError.js'; /* Metro dependency 7426 */
|
|
|
|
function _fun59852(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:6, offset: 0x016f4a3d, size: 135 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const isErrorEvent_59853 = function(a0) {
|
|
return a0.type === undefined;
|
|
};
|
|
const isTransactionEvent_59854 = function(a0) {
|
|
return a0.type === 'transaction';
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.BaseClient = _fun59855();
|
|
function _fun59855() { // fn#59855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:185, offset: 0x016f4ac4, size: 747 bytes, params: 1, frame: 15
|
|
return CreateClassModule(BaseClient, [{key: 'captureException', value: value_59859}, {key: 'captureMessage',
|
|
value: value_59861}, {key: 'captureEvent', value: value_59863}, {key: 'captureSession', value: value_59864},
|
|
{key: 'getDsn', value: function() {
|
|
return this._dsn;
|
|
}}, {key: 'getOptions', value: function() {
|
|
return this._options;
|
|
}}, {key: 'getSdkMetadata', value: function() {
|
|
return this._options._metadata;
|
|
}}, {key: 'getTransport', value: function() {
|
|
return this._transport;
|
|
}}, {key: 'flush', value: value_59869}, {key: 'close', value: function(a0) {
|
|
var env0_0 = this;
|
|
return this.flush(a0).then(_fun59873);
|
|
}}, {key: 'getEventProcessors', value: function() {
|
|
return this._eventProcessors;
|
|
}}, {key: 'addEventProcessor', value: function(a0) {
|
|
this._eventProcessors.push(a0);
|
|
}}, {key: 'init', value: function() {
|
|
if (this._isEnabled() || this._options.integrations.some(_fun59877)) {
|
|
this._setupIntegrations();
|
|
}
|
|
}}, {key: 'getIntegrationByName', value: function(a0) {
|
|
return this._integrations[a0];
|
|
}}, {key: 'addIntegration', value: value_59879}, {key: 'sendEvent', value: value_59880}, {key: 'sendSession',
|
|
value: value_59882}, {key: 'recordDroppedEvent', value: value_59883}, {key: 'on', value: function(a0, a1) {
|
|
var r2;
|
|
var env0_0 = a1;
|
|
var _hooks = this._hooks;
|
|
r2 = this._hooks[a0] || [];
|
|
_hooks[a0] = r2;
|
|
var env0_1 = r2;
|
|
r2.push(a1);
|
|
return _fun59885;
|
|
}}, {key: 'emit', value: function(a0) {
|
|
var r2;
|
|
var value4;
|
|
var value8;
|
|
var value9;
|
|
var value = arguments.length;
|
|
var property = global.Array;
|
|
var value2 = 1;
|
|
reducibleJoin2: while (true) {
|
|
if (value > value2) {
|
|
value4 = value - value2;
|
|
r2 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
r2 = 0;
|
|
break reducibleJoin2;
|
|
}
|
|
var value6 = new property();
|
|
var env0_0 = value6;
|
|
if (value2 < value) {
|
|
r2 = value2;
|
|
reducibleLoop3: while (true) {
|
|
value8 = r2 - value2;
|
|
value6[value8] = arguments[r2];
|
|
value9 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value9 < value) {
|
|
r2 = value9;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
property = this._hooks[a0];
|
|
reducibleJoin6: while (true) {
|
|
if (property) {
|
|
property.forEach(_fun59887);
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
}}, {key: 'sendEnvelope', value: value_59888}, {key: '_setupIntegrations', value: value_59890},
|
|
{key: '_updateSessionFromEvent', value: value_59891}, {key: '_isClientDoneProcessing', value: value_59892},
|
|
{key: '_isEnabled', value: function() {
|
|
return this.getOptions().enabled !== false && this._transport !== undefined;
|
|
}}, {key: '_prepareEvent', value: value_59896}, {key: '_captureEvent', value: function(a0) {
|
|
var value = undefined;
|
|
return this._processEvent(a0, arguments.length > 1 && value !== arguments[1] ? arguments[1] : {},
|
|
arguments.length > 2 ? arguments[2] : value).then(_fun59899, _fun59900);
|
|
}}, {key: '_processEvent', value: value_59901}, {key: '_process', value: function(a0) {
|
|
var env0_0 = this;
|
|
var _numProcessing = this._numProcessing;
|
|
this._numProcessing = typeof _numProcessing === 'bigint' ? _numProcessing + 1n : +_numProcessing + 1;
|
|
a0.then(_fun59909, _fun59910);
|
|
}}, {key: '_clearOutcomes', value: function() {
|
|
var _outcomes = this._outcomes;
|
|
this._outcomes = {};
|
|
var Object = global.Object;
|
|
return Object.entries(_outcomes).map(_fun59912);
|
|
}}, {key: '_flushOutcomes', value: value_59913}]);
|
|
function BaseClient(a0) { // fn#59856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:219, offset: 0x016f4daf, size: 439 bytes, params: 2, frame: 22
|
|
var environment;
|
|
var moduleValue;
|
|
var moduleValue2;
|
|
var getEnvelopeEndpointWithUrlEncodedAuth;
|
|
var tunnel;
|
|
var value4;
|
|
var transport;
|
|
var Object;
|
|
var assign;
|
|
var object;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_3;
|
|
const value3 = undefined;
|
|
binding(this, BaseClient);
|
|
this._options = a0;
|
|
this._integrations = {};
|
|
this._numProcessing = 0;
|
|
this._outcomes = {};
|
|
this._hooks = {};
|
|
this._eventProcessors = [];
|
|
if (a0.dsn) {
|
|
moduleValue = require(7416) /* metro dependency 7416 */;
|
|
this._dsn = moduleValue.makeDsn(a0.dsn);
|
|
} else if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
(require(7369) /* metro dependency 7369 */).logger.warn('No DSN provided, client will not send events.');
|
|
}
|
|
let _dsn = this._dsn;
|
|
if (_dsn) {
|
|
moduleValue2 = require(7423) /* metro dependency 7423 */;
|
|
getEnvelopeEndpointWithUrlEncodedAuth = moduleValue2.getEnvelopeEndpointWithUrlEncodedAuth;
|
|
_dsn = this._dsn;
|
|
tunnel = a0.tunnel;
|
|
value4 = Reflect.apply(getEnvelopeEndpointWithUrlEncodedAuth, moduleValue2, [_dsn, tunnel,
|
|
a0._metadata ? a0._metadata.sdk : value3]);
|
|
transport = a0.transport;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object = {};
|
|
tunnel = this._options.tunnel;
|
|
object.tunnel = tunnel;
|
|
object.recordDroppedEvent = this.recordDroppedEvent.bind(this);
|
|
this._transport = Reflect.apply(transport, a0, [Reflect.apply(assign, Object, [object, a0.transportOptions,
|
|
{url: value4}])]);
|
|
}
|
|
if (['enableTracing', 'tracesSampleRate', 'tracesSampler'].find(_fun59857)) {
|
|
(require(7369) /* metro dependency 7369 */).consoleSandbox(_fun59858);
|
|
}
|
|
return value3;
|
|
function _fun59857(a0) { // fn#59857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:849, offset: 0x016f4f66, size: 33 bytes, params: 2, frame: 4
|
|
return a0 in env0_0 && env0_0[a0] == null;
|
|
}
|
|
|
|
function _fun59858() { // fn#59858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:917, offset: 0x016f4f87, size: 58 bytes, params: 1, frame: 15
|
|
const console = global.console;
|
|
console.warn('[Sentry] Deprecation warning: `' + env0_1 + '` is set to undefined, which leads to tracing being enabled. In v9, a value of `undefined` will result in tracing being disabled.');
|
|
}
|
|
|
|
}
|
|
|
|
function value_59859(a0, a1, a2) { // fn#59859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:1149, offset: 0x016f4fc1, size: 230 bytes, params: 4, frame: 19
|
|
var environment;
|
|
const env0_0 = a2;
|
|
let value = environment.__proto__;
|
|
const value2 = (moduleValue23).uuid4();
|
|
if (moduleValue23.checkOrSetAlreadyCaught(a0)) {
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
(require(7369) /* metro dependency 7369 */).logger.log("Not capturing exception because it's already been captured.");
|
|
}
|
|
return value2;
|
|
}
|
|
const Object = global.Object;
|
|
value = Object.assign({event_id: value2}, a1);
|
|
const _process = this._process;
|
|
const value3 = this.eventFromException(a0, value);
|
|
Reflect.apply(_process, this, [value3.then(_fun59860)]);
|
|
return value.event_id;
|
|
function _fun59860(a0) { // fn#59860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:1393, offset: 0x016f50a7, size: 33 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
return binding._captureEvent(a0, Module00057Module, importDefault);
|
|
}
|
|
|
|
}
|
|
|
|
function value_59861(a0, a1, a2, a3) { // fn#59861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:1480, offset: 0x016f50c8, size: 222 bytes, params: 5, frame: 23
|
|
var r5;
|
|
let value = a0;
|
|
const env0_0 = a3;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object = {};
|
|
object.event_id = (require(7380) /* metro dependency 7380 */).uuid4();
|
|
const value3 = Reflect.apply(assign, Object, [object, a2]);
|
|
const r6 = moduleValue22.isParameterizedString(value) ? value : global.String(value);
|
|
if (moduleValue22.isPrimitive(value)) {
|
|
r5 = this.eventFromMessage(r6, a1, value3);
|
|
} else {
|
|
value = this.eventFromException(value, value3);
|
|
r5 = value;
|
|
}
|
|
this._process(r5.then(_fun59862));
|
|
return value3.event_id;
|
|
function _fun59862(a0) { // fn#59862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:1729, offset: 0x016f50a7, size: 33 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
return binding._captureEvent(a0, Module00057Module, importAll);
|
|
}
|
|
|
|
}
|
|
|
|
function value_59863(a0, a1, a2) { // fn#59863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:1814, offset: 0x016f51a6, size: 251 bytes, params: 4, frame: 21
|
|
var moduleValue2;
|
|
var Object;
|
|
var value4;
|
|
const value = a2;
|
|
const value3 = (require(7380) /* metro dependency 7380 */).uuid4();
|
|
if (a1) {
|
|
if (a1.originalException) {
|
|
moduleValue2 = require(7380) /* metro dependency 7380 */;
|
|
if (moduleValue2.checkOrSetAlreadyCaught(a1.originalException)) {
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
(require(7369) /* metro dependency 7369 */).logger.log("Not capturing exception because it's already been captured.");
|
|
}
|
|
return value3;
|
|
}
|
|
Object = global.Object;
|
|
value4 = Object.assign({event_id: value3}, a1);
|
|
this._process(this._captureEvent(a0, value4,
|
|
(a0.sdkProcessingMetadata || ({})).capturedSpanScope || value));
|
|
return value4.event_id;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
value4 = Object.assign({event_id: value3}, a1);
|
|
this._process(this._captureEvent(a0, value4, (a0.sdkProcessingMetadata || ({})).capturedSpanScope || value));
|
|
return value4.event_id;
|
|
}
|
|
|
|
function value_59864(a0) { // fn#59864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:2175, offset: 0x016f52a1, size: 162 bytes, params: 2, frame: 14
|
|
var value;
|
|
if (typeof a0.release !== 'string') {
|
|
value = environment.__proto__;
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
(require(7369) /* metro dependency 7369 */).logger.warn('Discarded session because of missing or non-string release');
|
|
}
|
|
} else {
|
|
this.sendSession(a0);
|
|
value = environment.__proto__;
|
|
value = require(7392) /* metro dependency 7392 */;
|
|
value.updateSession(a0, {init: false});
|
|
}
|
|
}
|
|
|
|
function value_59869(a0) { // fn#59869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:2698, offset: 0x016f5343, size: 108 bytes, params: 2, frame: 14
|
|
var environment;
|
|
var r0;
|
|
var value;
|
|
const env0_0 = a0;
|
|
if (this._transport) {
|
|
this.emit('flush');
|
|
value = this._isClientDoneProcessing(a0);
|
|
value = value.then(_fun59870);
|
|
r0 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = require(7393) /* metro dependency 7393 */;
|
|
value = value.resolvedSyncPromise(true);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun59870(a0) { // fn#59870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:2805, offset: 0x016f53af, size: 48 bytes, params: 2, frame: 12
|
|
return _transport.flush(a0).then(_fun59871);
|
|
function _fun59871(a0) { // fn#59871, offset: 0x016f53df, size: 18 bytes, params: 2, frame: 3
|
|
return env0_0 && a0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_59872(a0) { // fn#59872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:2926, offset: 0x016f53f1, size: 40 bytes, params: 2, frame: 12
|
|
return this.flush(a0).then(_fun59873);
|
|
function _fun59873(a0) { // fn#59873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:2982, offset: 0x016f5419, size: 45 bytes, params: 2, frame: 11
|
|
const binding = env0_0;
|
|
binding.getOptions().enabled = false;
|
|
binding.emit('close');
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_59876() { // fn#59876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:3254, offset: 0x016f5446, size: 63 bytes, params: 1, frame: 13
|
|
if (this._isEnabled() || this._options.integrations.some(function({name}) {
|
|
return name.startsWith('Spotlight');
|
|
})) {
|
|
this._setupIntegrations();
|
|
}
|
|
}
|
|
|
|
function value_59879(a0) { // fn#59879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:3532, offset: 0x016f5485, size: 107 bytes, params: 2, frame: 19
|
|
const property = this._integrations[a0.name];
|
|
const value = environment.__proto__;
|
|
Module07425Module.setupIntegration(this, a0, this._integrations);
|
|
if (!property) {
|
|
Module07425Module.afterSetupIntegrations(this, [a0]);
|
|
}
|
|
}
|
|
|
|
function value_59880(a0) { // fn#59880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:3715, offset: 0x016f54f0, size: 264 bytes, params: 2, frame: 25
|
|
var environment;
|
|
var r3;
|
|
var value;
|
|
var property;
|
|
var moduleValue2;
|
|
var addItemToEnvelope;
|
|
var moduleValue3;
|
|
var createAttachmentEnvelopeItem;
|
|
var attachmentEnvelopeItem;
|
|
var value2;
|
|
var error;
|
|
var sendEnvelope;
|
|
var then;
|
|
const env0_0 = a0;
|
|
reducibleJoin4: while (true) {
|
|
reducibleJoin2: while (true) {
|
|
if (arguments.length > 1) {
|
|
if (arguments[1] !== undefined) {
|
|
value = arguments[1];
|
|
r3 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
r3 = {};
|
|
break reducibleJoin4;
|
|
}
|
|
this.emit('beforeSendEvent', a0, r3);
|
|
value = environment.__proto__;
|
|
const moduleValue = require(dependencyMap[12]);
|
|
const eventEnvelope = moduleValue.createEventEnvelope(a0, this._dsn, this._options._metadata, this._options.tunnel);
|
|
const attachments = r3.attachments;
|
|
reducibleJoin6: while (true) {
|
|
if (attachments) {
|
|
r3 = attachments;
|
|
break reducibleJoin6;
|
|
}
|
|
r3 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
const iterator = r3[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r2 = eventEnvelope;
|
|
let r5 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r5, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
reducibleJoin8: while (true) {
|
|
if (item2 === undefined) {
|
|
sendEnvelope = this.sendEnvelope;
|
|
value = Reflect.apply(sendEnvelope, this, [r2]);
|
|
reducibleJoin22: while (true) {
|
|
if (value) {
|
|
then = value.then;
|
|
Reflect.apply(then, value, [_fun59881, null]);
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
return undefined;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleLoop8: while (true) {
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[13];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue2 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
addItemToEnvelope = moduleValue2.addItemToEnvelope;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[13];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue3 = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
createAttachmentEnvelopeItem = moduleValue3.createAttachmentEnvelopeItem;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
attachmentEnvelopeItem = Reflect.apply(createAttachmentEnvelopeItem, moduleValue3, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(addItemToEnvelope, moduleValue2, [r2, attachmentEnvelopeItem]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = value2;
|
|
r5 = item2;
|
|
item2 = Reflect.apply(iterator2, r5, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop8;
|
|
}
|
|
continue reducibleLoop8;
|
|
}
|
|
value = this.sendEnvelope(r2);
|
|
reducibleJoin22: while (true) {
|
|
if (value) {
|
|
then = value.then;
|
|
Reflect.apply(then, value, [_fun59881, null]);
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
function _fun59881(a0) { // fn#59881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4076, offset: 0x00d6b275, size: 35 bytes, params: 2, frame: 15
|
|
return env0_1.emit('afterSendEvent', env0_0, a0);
|
|
}
|
|
|
|
}
|
|
|
|
function value_59882(a0) { // fn#59882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4159, offset: 0x016f55f8, size: 87 bytes, params: 2, frame: 19
|
|
let value = environment.__proto__;
|
|
value = Reflect.apply((require(7412) /* metro dependency 7412 */).createSessionEnvelope, value, [a0, this._dsn,
|
|
this._options._metadata, this._options.tunnel]);
|
|
this.sendEnvelope(value);
|
|
}
|
|
|
|
function value_59883(a0, a1, a2) { // fn#59883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4333, offset: 0x016f564f, size: 249 bytes, params: 4, frame: 20
|
|
var r3;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var logger;
|
|
let value = a2;
|
|
if (this._options.sendClientReports) {
|
|
value2 = 1;
|
|
r3 = typeof value !== 'number' ? value2 : value;
|
|
value = '';
|
|
value3 = value + a0 + ':' + a1;
|
|
value4 = environment.__proto__;
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
logger = (require(7369) /* metro dependency 7369 */).logger;
|
|
logger.log('Recording outcome: "' + value3 + '"' + (r3 > value2 ? ' (' + r3 + ' times)' : value));
|
|
}
|
|
this._outcomes[value3] = (this._outcomes[value3] || 0) + r3;
|
|
}
|
|
}
|
|
|
|
function value_59884(a0, a1) { // fn#59884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4603, offset: 0x016f5748, size: 63 bytes, params: 3, frame: 14
|
|
const env0_0 = a1;
|
|
const _hooks = this._hooks;
|
|
const r2 = this._hooks[a0] || [];
|
|
_hooks[a0] = r2;
|
|
r2.push(a1);
|
|
return _fun59885;
|
|
function _fun59885() { // fn#59885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4677, offset: 0x016f5787, size: 55 bytes, params: 1, frame: 13
|
|
const value2 = env0_1.indexOf(require);
|
|
if (value2 > -1) {
|
|
env0_1.splice(value2, 1);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function value_59886(a0) { // fn#59886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4748, offset: 0x016f57be, size: 125 bytes, params: 2, frame: 17
|
|
var r2;
|
|
var value4;
|
|
var value7;
|
|
var value8;
|
|
var forEach;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const value2 = 1;
|
|
reducibleJoin2: while (true) {
|
|
if (length > value2) {
|
|
value4 = length - value2;
|
|
r2 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
r2 = 0;
|
|
break reducibleJoin2;
|
|
}
|
|
const value5 = Object.create(Array.prototype, {constructor: {value: Array}});
|
|
const array = new Array();
|
|
if (value2 < length) {
|
|
r2 = value2;
|
|
reducibleLoop3: while (true) {
|
|
value7 = r2 - value2;
|
|
(array instanceof Object ? array : value5)[value7] = arguments[r2];
|
|
value8 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value8 < length) {
|
|
r2 = value8;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
const property = this._hooks[a0];
|
|
reducibleJoin6: while (true) {
|
|
if (property) {
|
|
forEach = property.forEach;
|
|
Reflect.apply(forEach, property, [_fun59887]);
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
function _fun59887(a0) { // fn#59887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4882, offset: 0x00ce172e, size: 25 bytes, params: 2, frame: 13
|
|
return a0.apply(undefined, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function value_59888(a0) { // fn#59888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:4950, offset: 0x016f583b, size: 196 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var r0;
|
|
var value;
|
|
const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD;
|
|
const logger = (Module07369Module).logger;
|
|
this.emit('beforeEnvelope', a0);
|
|
if (this._isEnabled()) {
|
|
if (this._transport) {
|
|
value = this._transport.send(a0);
|
|
value = value.then(null, function(a0) {
|
|
if (require(dependencyMap[4]).DEBUG_BUILD) {
|
|
require(dependencyMap[5]).logger.error('Error while sending envelope:', a0);
|
|
}
|
|
return a0;
|
|
});
|
|
r0 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (DEBUG_BUILD) {
|
|
logger.error('Transport disabled');
|
|
}
|
|
value = require(7393) /* metro dependency 7393 */;
|
|
value = value.resolvedSyncPromise({});
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (DEBUG_BUILD) {
|
|
logger.error('Transport disabled');
|
|
}
|
|
value = require(7393) /* metro dependency 7393 */;
|
|
value = value.resolvedSyncPromise({});
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_59890() { // fn#59890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:5316, offset: 0x016f5951, size: 81 bytes, params: 1, frame: 17
|
|
const integrations = this._options.integrations;
|
|
let value = environment.__proto__;
|
|
value = require(7425) /* metro dependency 7425 */;
|
|
this._integrations = value.setupIntegrations(this, integrations);
|
|
(require(7425) /* metro dependency 7425 */).afterSetupIntegrations(this, integrations);
|
|
}
|
|
|
|
function value_59891(a0, a1) { // fn#59891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:5512, offset: 0x016f59a2, size: 286 bytes, params: 3, frame: 24
|
|
var r1;
|
|
var r4;
|
|
var r11;
|
|
var r12;
|
|
var r7;
|
|
var level;
|
|
var value;
|
|
var exception;
|
|
var values;
|
|
var value2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value3;
|
|
var mechanism;
|
|
var handled;
|
|
var value4;
|
|
var error;
|
|
var status;
|
|
var errors;
|
|
var value5;
|
|
var updateSession;
|
|
var Object;
|
|
var assign;
|
|
var Number;
|
|
var value6;
|
|
var captureSession;
|
|
exceptionSkip12: while (true) {
|
|
exceptionLanding12: while (true) {
|
|
level = a1.level;
|
|
value = level === 'fatal';
|
|
exception = a1.exception;
|
|
if (exception) {
|
|
exception = a1.exception;
|
|
values = exception.values;
|
|
r1 = values;
|
|
} else {
|
|
r1 = exception;
|
|
}
|
|
value2 = false;
|
|
if (r1) {
|
|
iterator = r1[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r4 = iterator;
|
|
loopExit4: while (true) {
|
|
item2 = Reflect.apply(iterator2, r4, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
value3 = true;
|
|
if (item2 === undefined) {
|
|
r11 = value3;
|
|
r12 = value;
|
|
break loopExit4;
|
|
}
|
|
try {
|
|
mechanism = item.mechanism;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
if (mechanism) {
|
|
try {
|
|
handled = mechanism.handled;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
value4 = value2 === handled;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
if (value4) {
|
|
item2.return();
|
|
r11 = value3;
|
|
r12 = value3;
|
|
break loopExit4;
|
|
}
|
|
r4 = item2;
|
|
continue;
|
|
}
|
|
r4 = item2;
|
|
continue;
|
|
}
|
|
} else {
|
|
r11 = value2;
|
|
r12 = value;
|
|
}
|
|
status = a0.status;
|
|
value = status === 'ok';
|
|
if (value) {
|
|
errors = a0.errors;
|
|
value5 = errors === 0;
|
|
r1 = value5;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
if (!r1) {
|
|
if (value) {
|
|
r4 = r12;
|
|
continue;
|
|
}
|
|
r4 = value;
|
|
continue;
|
|
r1 = r4;
|
|
}
|
|
if (r1) {
|
|
value = environment.__proto__;
|
|
value = require(7392) /* metro dependency 7392 */;
|
|
updateSession = value.updateSession;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
if (!r12) {
|
|
r7 = r12;
|
|
continue;
|
|
}
|
|
errors = a0.errors;
|
|
if (errors) {
|
|
r1 = errors;
|
|
continue;
|
|
}
|
|
Number = global.Number;
|
|
if (r11) {
|
|
continue;
|
|
}
|
|
r11 = r12;
|
|
continue;
|
|
value6 = Number(r11);
|
|
r1 = value6;
|
|
Reflect.apply(updateSession, value, [a0, Reflect.apply(assign, Object, [{}, {status: 'crashed'},
|
|
{errors: r1}])]);
|
|
captureSession = this.captureSession;
|
|
Reflect.apply(captureSession, this, [a0]);
|
|
}
|
|
return undefined;
|
|
break exceptionSkip12;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip12;
|
|
}
|
|
}
|
|
|
|
function value_59892(a0) { // fn#59892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:5900, offset: 0x016f5ac0, size: 74 bytes, params: 2, frame: 12
|
|
var environment;
|
|
let env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
const SyncPromise = (Module07393Module).SyncPromise;
|
|
value = Object.create(SyncPromise.prototype, {constructor: {value: SyncPromise}});
|
|
const syncPromise = new SyncPromise(function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = 0;
|
|
var env0_2 = global.setInterval(_fun59894, 1);
|
|
});
|
|
return syncPromise instanceof Object ? syncPromise : value;
|
|
function _fun59893(a0) { // fn#59893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:5981, offset: 0x016f5b0a, size: 45 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_2 = global.setInterval(_fun59894, 1);
|
|
function _fun59894() { // fn#59894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:6016, offset: 0x016f5b37, size: 128 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
if (env1_1._numProcessing == 0) {
|
|
global.clearInterval(env0_2);
|
|
env0_0(true);
|
|
} else {
|
|
env0_1 += 1;
|
|
if (env1_0 && env0_1 >= env1_0) {
|
|
global.clearInterval(env0_2);
|
|
env0_0(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_59896(a0, a1) { // fn#59896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:6261, offset: 0x016f5bb7, size: 325 bytes, params: 3, frame: 25
|
|
var environment;
|
|
var r5;
|
|
var r4;
|
|
var event_id;
|
|
var value;
|
|
var setLastEventId;
|
|
if (arguments.length > 2) {
|
|
if (arguments[2] !== undefined) {
|
|
r5 = arguments[2];
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getCurrentScope();
|
|
r5 = value;
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getCurrentScope();
|
|
r5 = value;
|
|
}
|
|
if (arguments.length > 3) {
|
|
if (arguments[3] !== undefined) {
|
|
r4 = arguments[3];
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getIsolationScope();
|
|
r4 = value;
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
value = value.getIsolationScope();
|
|
r4 = value;
|
|
}
|
|
value = this.getOptions();
|
|
const Object = global.Object;
|
|
const value2 = Object.keys(this._integrations);
|
|
if (!a1.integrations && value2.length > 0) {
|
|
a1.integrations = value2;
|
|
}
|
|
this.emit('preprocessEvent', a0, a1);
|
|
if (!a0.type) {
|
|
setLastEventId = r4.setLastEventId;
|
|
event_id = a0.event_id;
|
|
event_id = !event_id ? a1.event_id : event_id;
|
|
Reflect.apply(setLastEventId, r4, [event_id]);
|
|
}
|
|
value = (require(7418) /* metro dependency 7418 */).prepareEvent(value, a0, a1, r5, this, r4);
|
|
return value.then(_fun59897);
|
|
function _fun59897(a0) { // fn#59897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:6704, offset: 0x016f5cfc, size: 165 bytes, params: 2, frame: 21
|
|
if (a0 !== null) {
|
|
var Object = global.Object;
|
|
var assign = Object.assign;
|
|
var object = {};
|
|
var value = environment.__proto__.__proto__;
|
|
value = require(7396) /* metro dependency 7396 */;
|
|
object.trace = value.getTraceContextFromScope(env0_1);
|
|
a0.contexts = Reflect.apply(assign, Object, [object, a0.contexts]);
|
|
value = require(7405) /* metro dependency 7405 */;
|
|
value = value.getDynamicSamplingContextFromScope(env0_0, env0_1);
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
a0.sdkProcessingMetadata = Reflect.apply(assign, Object, [{dynamicSamplingContext: value},
|
|
a0.sdkProcessingMetadata]);
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_59898(a0) { // fn#59898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:7005, offset: 0x016f5da1, size: 93 bytes, params: 2, frame: 17
|
|
let value = undefined;
|
|
value = this._processEvent(a0, arguments.length > 1 && value !== arguments[1] ? arguments[1] : {},
|
|
arguments.length > 2 ? arguments[2] : value);
|
|
return value.then(function(a0) {
|
|
return a0.event_id;
|
|
}, _fun59900);
|
|
function _fun59900(a0) { // fn#59900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:7208, offset: 0x016f5dfe, size: 169 bytes, params: 2, frame: 14
|
|
const logger = (Module07369Module).logger;
|
|
if ((require(7397) /* metro dependency 7397 */).DEBUG_BUILD) {
|
|
if (a0 instanceof (require(7426) /* metro dependency 7426 */).SentryError) {
|
|
if (a0.logLevel === 'log') {
|
|
logger.log(a0.message);
|
|
} else {
|
|
logger.warn(a0);
|
|
}
|
|
} else {
|
|
logger.warn(a0);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function value_59901(a0, a1, a2) { // fn#59901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:7382, offset: 0x016f5ea7, size: 426 bytes, params: 4, frame: 26
|
|
var environment;
|
|
var r3;
|
|
var Math;
|
|
var rejectedSyncPromise;
|
|
var SentryError;
|
|
var value4;
|
|
var value5;
|
|
var sentryError;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const sampleRate = this.getOptions().sampleRate;
|
|
value = environment.__proto__;
|
|
const isTransactionEvent_59854Binding = isTransactionEvent_59854;
|
|
const value2 = undefined;
|
|
const env0_5 = isTransactionEvent_59854Binding(a0);
|
|
const isErrorEvent_598532 = isErrorEvent_59853(a0);
|
|
let type = a0.type;
|
|
type = !type ? 'error' : type;
|
|
const env0_6 = 'before send for type `' + type + '`';
|
|
const r11 = value2 === sampleRate ? value2 : (require(7409) /* metro dependency 7409 */).parseSampleRate(sampleRate);
|
|
if (isErrorEvent_598532) {
|
|
if (typeof r11 !== 'number') {
|
|
value = 'replay';
|
|
r3 = type === 'replay_event' ? value : type;
|
|
r3 = a0.sdkProcessingMetadata || ({});
|
|
value = this._prepareEvent(a0, a1, a2, r3.capturedSpanIsolationScope);
|
|
value = value.then(_fun59902);
|
|
value = value.then(_fun59906);
|
|
return value.then(null, _fun59907);
|
|
}
|
|
Math = global.Math;
|
|
if (Math.random() > r11) {
|
|
this.recordDroppedEvent('sample_rate', 'error', a0);
|
|
value = require(7393) /* metro dependency 7393 */;
|
|
rejectedSyncPromise = value.rejectedSyncPromise;
|
|
SentryError = (require(7426) /* metro dependency 7426 */).SentryError;
|
|
value4 = "Discarding event because it's not included in the random sample (sampling rate = " + sampleRate + ')';
|
|
value5 = Object.create(SentryError.prototype, {constructor: {value: SentryError}});
|
|
sentryError = new SentryError(value4, 'log');
|
|
return Reflect.apply(rejectedSyncPromise, value, [sentryError instanceof Object ? sentryError : value5]);
|
|
}
|
|
value = 'replay';
|
|
r3 = type === 'replay_event' ? value : type;
|
|
r3 = a0.sdkProcessingMetadata || ({});
|
|
value = this._prepareEvent(a0, a1, a2, r3.capturedSpanIsolationScope);
|
|
} else {
|
|
r3 = type === 'replay_event' ? 'replay' : type;
|
|
value = this._prepareEvent(a0, a1, a2, (a0.sdkProcessingMetadata || ({})).capturedSpanIsolationScope);
|
|
}
|
|
value = value.then(_fun59902);
|
|
value = value.then(_fun59906);
|
|
return value.then(null, _fun59907);
|
|
function _fun59902(a0) { // fn#59902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:7986, offset: 0x016f6051, size: 480 bytes, params: 2, frame: 30
|
|
var environment;
|
|
var r9;
|
|
var r3;
|
|
var __sentry__;
|
|
var binding;
|
|
var binding2;
|
|
var beforeSend;
|
|
var beforeSendTransaction;
|
|
var beforeSendSpan;
|
|
var value3;
|
|
var spans;
|
|
var items2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value4;
|
|
var property;
|
|
var moduleValue;
|
|
var showSpanDropWarning;
|
|
var recordDroppedEvent;
|
|
var push;
|
|
var error;
|
|
var length;
|
|
var Object;
|
|
var assign;
|
|
var sdkProcessingMetadata;
|
|
let value = a0;
|
|
if (value === null) {
|
|
binding = ClassCallCheckModule;
|
|
binding.recordDroppedEvent('event_processor', env0_7, env0_0);
|
|
value = environment.__proto__.__proto__;
|
|
throw new require(dependencyMap[17]).SentryError('An event processor returned `null`, will not send event.',
|
|
'log');
|
|
}
|
|
let data = require.data;
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (data) {
|
|
data = require.data;
|
|
__sentry__ = data.__sentry__;
|
|
if (__sentry__ === true) {
|
|
return value;
|
|
}
|
|
binding = ClassCallCheckModule;
|
|
binding2 = CreateClassModule;
|
|
beforeSend = binding2.beforeSend;
|
|
beforeSendTransaction = binding2.beforeSendTransaction;
|
|
beforeSendSpan = binding2.beforeSendSpan;
|
|
value3 = environment.__proto__.__proto__;
|
|
if (isErrorEvent_59853(value)) {
|
|
if (beforeSend) {
|
|
value = beforeSend(value, require);
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
if (isTransactionEvent_59854(value)) {
|
|
spans = value.spans;
|
|
reducibleJoin29: while (true) {
|
|
if (spans) {
|
|
if (beforeSendSpan) {
|
|
items2 = [];
|
|
spans = value.spans;
|
|
iterator = spans[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r9 = iterator;
|
|
item2 = Reflect.apply(iterator2, r9, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r9;
|
|
if (item2 === undefined) {
|
|
value.spans = items2;
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
if (beforeSendTransaction) {
|
|
spans = value.spans;
|
|
reducibleJoin32: while (true) {
|
|
if (spans) {
|
|
spans = value.spans;
|
|
length = spans.length;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
sdkProcessingMetadata = value.sdkProcessingMetadata;
|
|
value.sdkProcessingMetadata = Reflect.apply(assign, Object, [{}, sdkProcessingMetadata,
|
|
{spanCountBeforeProcessing: length}]);
|
|
break reducibleJoin32;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
value = beforeSendTransaction(value, require);
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
binding = ClassCallCheckModule;
|
|
binding2 = CreateClassModule;
|
|
beforeSend = binding2.beforeSend;
|
|
beforeSendTransaction = binding2.beforeSendTransaction;
|
|
beforeSendSpan = binding2.beforeSendSpan;
|
|
value3 = environment.__proto__.__proto__;
|
|
if (isErrorEvent_59853(value)) {
|
|
if (beforeSend) {
|
|
value = beforeSend(value, require);
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
if (isTransactionEvent_59854(value)) {
|
|
spans = value.spans;
|
|
reducibleJoin29: while (true) {
|
|
if (spans) {
|
|
if (beforeSendSpan) {
|
|
items2 = [];
|
|
spans = value.spans;
|
|
iterator = spans[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r9 = iterator;
|
|
item2 = Reflect.apply(iterator2, r9, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r9;
|
|
if (item2 === undefined) {
|
|
value.spans = items2;
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
if (beforeSendTransaction) {
|
|
spans = value.spans;
|
|
reducibleJoin32: while (true) {
|
|
if (spans) {
|
|
spans = value.spans;
|
|
length = spans.length;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
sdkProcessingMetadata = value.sdkProcessingMetadata;
|
|
value.sdkProcessingMetadata = Reflect.apply(assign, Object, [{}, sdkProcessingMetadata,
|
|
{spanCountBeforeProcessing: length}]);
|
|
break reducibleJoin32;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
value = beforeSendTransaction(value, require);
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
binding = env0_6;
|
|
return _validateBeforeSendResult_59903(r3, binding);
|
|
}
|
|
reducibleLoop10: while (true) {
|
|
try {
|
|
value4 = beforeSendSpan(item);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value4) {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value4]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r9 = item2;
|
|
} else {
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[20];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
showSpanDropWarning = moduleValue.showSpanDropWarning;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(showSpanDropWarning, moduleValue, []);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
recordDroppedEvent = binding.recordDroppedEvent;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(recordDroppedEvent, binding, ['before_send', 'span']);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r9 = item2;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r9, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r9;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop10;
|
|
}
|
|
continue reducibleLoop10;
|
|
}
|
|
value.spans = items2;
|
|
reducibleJoin34: while (true) {
|
|
if (beforeSendTransaction) {
|
|
spans = value.spans;
|
|
reducibleJoin32: while (true) {
|
|
if (spans) {
|
|
spans = value.spans;
|
|
length = spans.length;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
sdkProcessingMetadata = value.sdkProcessingMetadata;
|
|
value.sdkProcessingMetadata = Reflect.apply(assign, Object, [{}, sdkProcessingMetadata,
|
|
{spanCountBeforeProcessing: length}]);
|
|
break reducibleJoin32;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
value = beforeSendTransaction(value, require);
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
return _validateBeforeSendResult_59903(r3, env0_6);
|
|
function _validateBeforeSendResult_59903(a0, a1) { // fn#59903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:8694, offset: 0x016f6231, size: 197 bytes, params: 3, frame: 17
|
|
const env0_0 = a1;
|
|
const value = '' + a1 + ' must return `null` or a valid event.';
|
|
if (moduleValue22.isThenable(a0)) {
|
|
return a0.then(_fun59904, _fun59905);
|
|
}
|
|
if (moduleValue22.isPlainObject(a0)) {
|
|
return a0;
|
|
}
|
|
if (a0 === null) {
|
|
return a0;
|
|
}
|
|
const SentryError = (SentryErrorModule).SentryError;
|
|
const value3 = Object.create(SentryError.prototype, {constructor: {value: SentryError}});
|
|
const sentryError = new SentryError(value);
|
|
throw sentryError instanceof Object ? sentryError : value3;
|
|
function _fun59904(a0) { // fn#59904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:8826, offset: 0x016f62f6, size: 105 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
if (moduleValue22.isPlainObject(a0)) {
|
|
return a0;
|
|
}
|
|
if (a0 === null) {
|
|
return a0;
|
|
}
|
|
const SentryError = (SentryErrorModule).SentryError;
|
|
throw new SentryError(env0_1);
|
|
}
|
|
|
|
function _fun59905(a0) { // fn#59905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:8924, offset: 0x016f635f, size: 93 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
const SentryError = (SentryErrorModule).SentryError;
|
|
value = '' + require + ' rejected with ' + a0;
|
|
const value2 = Object.create(SentryError.prototype, {constructor: {value: SentryError}});
|
|
const sentryError = new SentryError(value);
|
|
throw sentryError instanceof Object ? sentryError : value2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun59906(a0) { // fn#59906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:9096, offset: 0x016f63bc, size: 437 bytes, params: 2, frame: 17
|
|
var binding;
|
|
var spans;
|
|
var value5;
|
|
var value6;
|
|
var Object;
|
|
var value8;
|
|
var SentryError;
|
|
if (a0 === null) {
|
|
binding = ClassCallCheckModule;
|
|
binding.recordDroppedEvent('before_send', env0_7, env0_0);
|
|
if (env0_5) {
|
|
ClassCallCheckModule.recordDroppedEvent('before_send', 'span', 1 + (env0_0.spans || []).length);
|
|
}
|
|
value8 = environment.__proto__.__proto__;
|
|
SentryError = (require(7426) /* metro dependency 7426 */).SentryError;
|
|
binding = env0_6;
|
|
throw new SentryError('' + binding + ' returned `null`, will not send event.', 'log');
|
|
}
|
|
let r4 = importDefault && importDefault.getSession();
|
|
if (!env0_5 && r4) {
|
|
ClassCallCheckModule._updateSessionFromEvent(r4, a0);
|
|
}
|
|
if (env0_5) {
|
|
r4 = a0.sdkProcessingMetadata && a0.sdkProcessingMetadata.spanCountBeforeProcessing;
|
|
r4 = !r4 ? 0 : r4;
|
|
spans = a0.spans;
|
|
value5 = 0;
|
|
value6 = r4 - (spans ? a0.spans.length : value5);
|
|
if (value6 > value5) {
|
|
ClassCallCheckModule.recordDroppedEvent('before_send', 'span', value6);
|
|
}
|
|
}
|
|
const transaction_info = a0.transaction_info;
|
|
if (env0_5) {
|
|
if (transaction_info) {
|
|
if (a0.transaction !== env0_0.transaction) {
|
|
Object = global.Object;
|
|
a0.transaction_info = Object.assign({}, transaction_info, {source: 'custom'});
|
|
}
|
|
}
|
|
}
|
|
ClassCallCheckModule.sendEvent(a0, require);
|
|
return a0;
|
|
}
|
|
|
|
function _fun59907(a0) { // fn#59907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:9720, offset: 0x016f6571, size: 151 bytes, params: 2, frame: 18
|
|
let value = environment.__proto__.__proto__;
|
|
const SentryError = (SentryErrorModule).SentryError;
|
|
if (a0 instanceof SentryError) {
|
|
throw a0;
|
|
}
|
|
ClassCallCheckModule.captureException(a0, {data: {__sentry__: true}, originalException: a0});
|
|
value = 'Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ' + a0;
|
|
const value3 = Object.create(SentryError.prototype, {constructor: {value: SentryError}});
|
|
const sentryError = new SentryError(value);
|
|
throw sentryError instanceof Object ? sentryError : value3;
|
|
}
|
|
|
|
}
|
|
|
|
function value_59908(a0) { // fn#59908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:10032, offset: 0x016f6608, size: 52 bytes, params: 2, frame: 13
|
|
const _numProcessing = this._numProcessing;
|
|
this._numProcessing = typeof _numProcessing === 'bigint' ? _numProcessing + 1n : +_numProcessing + 1;
|
|
a0.then(_fun59909, _fun59910);
|
|
function _fun59909(a0) { // fn#59909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:10094, offset: 0x016f663c, size: 27 bytes, params: 2, frame: 2
|
|
const binding = env0_0;
|
|
const _numProcessing = binding._numProcessing;
|
|
binding._numProcessing = typeof _numProcessing === 'bigint' ? _numProcessing - 1n : +_numProcessing - 1;
|
|
return a0;
|
|
}
|
|
|
|
function _fun59910(a0) { // fn#59910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:10137, offset: 0x016f663c, size: 27 bytes, params: 2, frame: 2
|
|
const binding = env0_0;
|
|
const _numProcessing = binding._numProcessing;
|
|
binding._numProcessing = typeof _numProcessing === 'bigint' ? _numProcessing - 1n : +_numProcessing - 1;
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_59911() { // fn#59911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:10210, offset: 0x016f6657, size: 55 bytes, params: 1, frame: 11
|
|
const _outcomes = this._outcomes;
|
|
this._outcomes = {};
|
|
const Object = global.Object;
|
|
return Object.entries(_outcomes).map(_fun59912);
|
|
function _fun59912(a0) { // fn#59912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:10305, offset: 0x00d6c62f, size: 80 bytes, params: 2, frame: 18
|
|
let value = environment.__proto__.__proto__;
|
|
const binding = env2_2;
|
|
value = binding(a0, 2);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
value = binding(property.split(':'), 2);
|
|
return {reason: value[0], category: value[1], quantity: property2};
|
|
}
|
|
|
|
}
|
|
|
|
function value_59913() { // fn#59913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:10446, offset: 0x016f668e, size: 408 bytes, params: 1, frame: 18
|
|
var r1;
|
|
const logger = (Module07369Module).logger;
|
|
var moduleValue;
|
|
var createClientReportEnvelope;
|
|
var tunnel;
|
|
let value = environment.__proto__;
|
|
const DEBUG_BUILD = (DEBUG_BUILDModule).DEBUG_BUILD;
|
|
if (DEBUG_BUILD) {
|
|
logger.log('Flushing outcomes...');
|
|
}
|
|
const value2 = this._clearOutcomes();
|
|
if (value2.length !== 0) {
|
|
if (this._dsn) {
|
|
if (DEBUG_BUILD) {
|
|
logger.log('Sending outcomes:', value2);
|
|
}
|
|
moduleValue = require(7427) /* metro dependency 7427 */;
|
|
createClientReportEnvelope = moduleValue.createClientReportEnvelope;
|
|
tunnel = this._options.tunnel;
|
|
if (tunnel) {
|
|
value = require(7416) /* metro dependency 7416 */;
|
|
value = value.dsnToString(this._dsn);
|
|
r1 = value;
|
|
} else {
|
|
r1 = tunnel;
|
|
}
|
|
value = Reflect.apply(createClientReportEnvelope, moduleValue, [value2, r1]);
|
|
this.sendEnvelope(value);
|
|
} else if (DEBUG_BUILD) {
|
|
logger.log('No dsn provided, will not send outcomes');
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
logger.log('No outcomes to send');
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun59877({name}) { // fn#59877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:3323, offset: 0x00d6b0db, size: 27 bytes, params: 2, frame: 11
|
|
return name.startsWith('Spotlight');
|
|
}
|
|
|
|
function _fun59899(a0) { // fn#59899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7602:7175, offset: 0x00d6bca3, size: 11 bytes, params: 2, frame: 1
|
|
return a0.event_id;
|
|
}
|
|
|
|
global.__d(_fun59852, 7424, [57, 6, 7, 7416, 7397, 7369, 7423, 7380, 7376, 7392, 7393, 7425, 7412, 7413, 7396, 7418,
|
|
7405, 7426, 7409, 7427,
|
|
7374]) /* metro module 7424, dependencies: [57, 6, 7, 7416, 7397, 7369, 7423, 7380, 7376, 7392, 7393, 7425, 7412, 7413, 7396, 7418, 7405, 7426, 7409, 7427, 7374] */;
|