/* Metro module 999; source: unknown; dependencies: [842] */ function _fun10474(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1126:6, offset: 0x00d8ed31, size: 117 bytes, params: 8, frame: 19 let env0_0 = require; const filenameIsInApp2 = filenameIsInApp; const closure2 = function(a0) { var env0_0 = a0; var env0_1 = RegExp('^\\s*[-]{4,}$', ''); var env0_2 = RegExp('at (?:async )?(?:(.+?)\\s+\\()?(?:(.+):(\\d+):(\\d+)?|([^)]+))\\)?', ''); var env0_3 = RegExp('at (?:async )?(.+?) \\(data:(.*?),', ''); return _fun10477; }; const _parseIntOrUndefined = function(a0) { return (0, global.parseInt)(a0 || '', 10) || undefined; }; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports.filenameIsInApp = filenameIsInApp2; exports.node = closure2; exports.nodeStackLineParser = nodeStackLineParser; function node(a0) { // fn#10476, offset: 0x00d8ee5c, size: 70 bytes, params: 2, frame: 2 const env0_0 = a0; const env0_1 = RegExp('^\\s*[-]{4,}$', ''); const env0_2 = RegExp('at (?:async )?(?:(.+?)\\s+\\()?(?:(.+):(\\d+):(\\d+)?|([^)]+))\\)?', ''); const env0_3 = RegExp('at (?:async )?(.+?) \\(data:(.*?),', ''); return _fun10477; function _fun10477(a0) { // fn#10477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1126:424, offset: 0x00d8eea2, size: 595 bytes, params: 2, frame: 27 var r0; var r11; var r3; var r4; var r7; var r1; var r6; var r10; var object; var value5; var property; var value6; var value8; var value9; var value10; var value11; var value12; var value15; var value16; var value17; var _parseIntOrUndefinedBinding; var filenameIsInAppBinding; const value2 = a0.match(env0_3); if (value2) { return {filename: '', function: value2[1]}; } const value3 = a0.match(env0_2); if (value3) { value5 = undefined; if (value3[1]) { property = value3[1]; value6 = property.lastIndexOf('.'); r11 = property[value6 - 1] !== '.' ? value6 : typeof value6 === 'bigint' ? value6 - 1n : +value6 - 1; if (r11 > 0) { value8 = property.slice(0, r11); value9 = property.slice(r11 + 1); value10 = value8.indexOf('.Module'); if (value10 > 0) { value11 = property.slice(value10 + 1); value12 = value8.slice(0, value10); r3 = value11; r4 = value9; r7 = value12; } else { r3 = property; r4 = value9; r7 = value8; } } else { r3 = property; r4 = value5; r7 = value5; } r0 = r7; r1 = r4; r6 = r3; } else { r0 = value5; r1 = value5; r6 = value5; } r10 = r1 ? r0 : value5; if (r1 === '') { r6 = value5; r7 = value5; } if (value5 === r6) { r7 = !r7 ? (require(842) /* metro dependency 842 */).UNKNOWN_FUNCTION : r7; r6 = r10 ? '' + r10 + '.' + r7 : r7; } value15 = environment.__proto__; value16 = (require(842) /* metro dependency 842 */).normalizeStackTracePath(value3[2]); value17 = value3[5] === 'native'; r7 = value16 || !value3[5]; r7 = !r7 ? value17 : r7; r1 = r7 ? value16 : value3[5]; object = {}; r7 = r1 ? global.decodeURI(r1) : value5; object.filename = r7; r7 = env0_0 ? env0_0(r1) : value5; object.module = r7; object.function = r6; _parseIntOrUndefinedBinding = _parseIntOrUndefined; object.lineno = _parseIntOrUndefinedBinding(value3[3]); object.colno = _parseIntOrUndefinedBinding(value3[4]); filenameIsInAppBinding = filenameIsInApp; r1 = !r1 ? '' : r1; object.in_app = filenameIsInAppBinding(r1, value17); return object; } return a0.match(env0_1) ? {filename: a0} : undefined; } } function nodeStackLineParser(a0) { // fn#10479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1126:1317, offset: 0x00d8f119, size: 33 bytes, params: 2, frame: 11 return [90, node(a0)]; } } function filenameIsInApp(a0) { // fn#10475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1126:30, offset: 0x00d8eda6, size: 182 bytes, params: 2, frame: 14 var r2; const value = a0; let r0 = arguments.length > 1 && arguments[1] !== undefined && arguments[1]; if (!r0) { r2 = value && !value.startsWith('/'); r2 = r2 && !value.match(RegExp('^[A-Z]:', '')); r2 = r2 && !value.startsWith('.'); r2 = r2 && !value.match(RegExp('^[a-zA-Z]([a-zA-Z0-9.\\-+])*:\\/\\/', '')); r0 = r2; } r0 = !r0 && value !== undefined && !value.includes('node_modules/'); return r0; } global.__d(_fun10474, 999, [842]) /* metro module 999, dependencies: [842] */;