/* Metro module 7454; source: unknown; dependencies: [7369, 7370, 7455, 7396, 7425, 7456, 7380, 7378, 7417] */ import * as Module07370Module from './module-07370.js'; /* Metro dependency 7370 */ import * as Module07380Module from './module-07380.js'; /* Metro dependency 7380 */ import * as Module07396Module from './module-07396.js'; /* Metro dependency 7396 */ function _fun60126(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7632:6, offset: 0x016fc629, size: 89 bytes, params: 8, frame: 18 let env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.captureConsoleIntegration = (require(7425) /* metro dependency 7425 */).defineIntegration(function() { var r0; r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var env0_0 = r0.levels || require(dependencyMap[0]).CONSOLE_LEVELS; var env0_1 = !!r0.handled; return {name: 'CaptureConsole', setup: _fun60128}; }); function _captureConsoleIntegration_60127() { // fn#60127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7632:112, offset: 0x016fc682, size: 110 bytes, params: 1, frame: 15 var CONSOLE_LEVELS; const r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; if (!r0.levels) { CONSOLE_LEVELS = (require(7369) /* metro dependency 7369 */).CONSOLE_LEVELS; } const result = !!r0.handled; return {name: 'CaptureConsole', setup: setup_60128}; function _captureConsoleIntegration_60127Setup(a0) { // fn#60128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7632:298, owner: _captureConsoleIntegration_60127.setup, offset: 0x016fc6f0, size: 89 bytes, params: 2, frame: 13 var environment; const env0_0 = a0; const value = environment.__proto__; const GLOBAL_OBJ = (Module07370Module).GLOBAL_OBJ; if ('console' in GLOBAL_OBJ) { (require(7455) /* metro dependency 7455 */).addConsoleInstrumentationHandler(_fun60129); } function _fun60129({args, level}) { // fn#60129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7632:390, offset: 0x016fc749, size: 107 bytes, params: 2, frame: 16 var environment; var r1; let value = environment.__proto__.__proto__; value = require(7396) /* metro dependency 7396 */; value = value.getClient(); value = value === env0_0; if (value) { value = environment.__proto__; value = env1_0.includes(level); r1 = value; } else { r1 = value; } if (r1) { value = environment.__proto__; consoleHandler_60130(args, level, result); } function consoleHandler_60130(a0, a1, a2) { // fn#60130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7632:465, offset: 0x016fc7b4, size: 112 bytes, params: 4, frame: 17 var environment; const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; const object = {}; const value = environment.__proto__.__proto__.__proto__; object.level = (require(7456) /* metro dependency 7456 */).severityLevelFromString(a1); object.extra = {arguments: a0}; (Module07396Module).withScope(_fun60131); function _fun60131(a0) { // fn#60131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7632:584, offset: 0x016fc824, size: 353 bytes, params: 2, frame: 19 var environment; var value2; var moduleValue; var safeJoin; var binding; var value6; var setExtra; var value8; var value9; a0.addEventProcessor(_fun60132); if (require !== 'assert') { value8 = env0_0.find(function(a0) { return a0 instanceof global.Error; }); value9 = environment.__proto__.__proto__.__proto__.__proto__; if (value8) { (require(7417) /* metro dependency 7417 */).captureException(value8, env0_3); } else { (require(7417) /* metro dependency 7417 */).captureMessage((require(7378) /* metro dependency 7378 */).safeJoin(env0_0, ' '), env0_3); } } else if (!env0_0[0]) { value2 = environment.__proto__.__proto__.__proto__.__proto__; moduleValue = require(7378) /* metro dependency 7378 */; safeJoin = moduleValue.safeJoin; binding = env0_0; value6 = 'Assertion failed: ' + (Reflect.apply(safeJoin, moduleValue, [binding.slice(1), ' ']) || 'console.assert'); setExtra = a0.setExtra; binding = env0_0; Reflect.apply(setExtra, a0, ['arguments', binding.slice(1)]); (require(7417) /* metro dependency 7417 */).captureMessage(value6, env0_3); } function _fun60132(a0) { // fn#60132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7632:620, offset: 0x016fc985, size: 70 bytes, params: 2, frame: 15 a0.logger = 'console'; const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; (Module07380Module).addExceptionMechanism(a0, {handled: importDefault, type: 'console'}); return a0; } } } } } } } global.__d(_fun60126, 7454, [7369, 7370, 7455, 7396, 7425, 7456, 7380, 7378, 7417]) /* metro module 7454, dependencies: [7369, 7370, 7455, 7396, 7425, 7456, 7380, 7378, 7417] */;