/* Metro module 3893; source: unknown; dependencies: [7, 6, 15, 17, 18, 162, 27] */ function _fun32102(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:6, offset: 0x0100c99c, size: 214 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_0 = importDefault(7) /* metro dependency 7 */; const env0_1 = importDefault(6) /* metro dependency 6 */; const env0_2 = importDefault(15) /* metro dependency 15 */; const env0_3 = importDefault(17) /* metro dependency 17 */; const env0_4 = importDefault(18) /* metro dependency 18 */; let value = importDefault(162) /* metro dependency 162 */; const value2 = require(27) /* metro dependency 27 */; const env0_5 = value2.NativeModules; value2.Platform; const Error = global.Error; value = value(Error); exports.ModuleNotFoundError = _fun32107(value); } function _callSuper_32103(a0, a1, a2) { // fn#32103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:197, offset: 0x0100ca72, size: 100 bytes, params: 4, frame: 20 var r0; var Reflect; let value = a2; const value3 = env0_3(a1); const binding = env0_2; if (_isNativeReflectConstruct_32104()) { Reflect = global.Reflect; value = Reflect.construct(value3, value || [], env0_3(a0).constructor); r0 = value; } else { value = value3.apply(a0, value); r0 = value; } return binding(a0, r0); } function _isNativeReflectConstruct_32104() { // fn#32104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:328, offset: 0x0100cad6, size: 94 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_32104_isNativeReflectConstruct = function() { return !!result; })(); } function _fun32107(a0) { // fn#32107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:553, offset: 0x0100cb34, size: 40 bytes, params: 2, frame: 14 const closure = ModuleNotFoundError; env0_4(closure, a0); return env0_0(closure); } function ModuleNotFoundError(a0) { // fn#32108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:565, offset: 0x0100cb5c, size: 329 bytes, params: 2, frame: 19 const binding = env1_1; const value3 = undefined; binding(this, ModuleNotFoundError); const NativeUnimoduleProxy = NativeModules.NativeUnimoduleProxy; const ExponentConstants = NativeUnimoduleProxy == null || NativeUnimoduleProxy.modulesConstants == null ? value3 : NativeUnimoduleProxy.modulesConstants.ExponentConstants; const r4 = ExponentConstants != null ? ExponentConstants.appOwnership !== 'expo' ? 'expo' : 'expo-go' : 'react-native'; if (r4 === 'expo-go') { return env1_2(_callSuper_32103(this, ModuleNotFoundError, ['NitroModules are not supported in Expo Go! Use EAS (`expo prebuild`) or eject to a bare workflow instead.'])); } const items2 = []; items2.push('Make sure react-native-nitro-modules/NitroModules is correctly autolinked (run `npx react-native config` to verify)'); items2.push('Make sure you enabled the new architecture (TurboModules) and CodeGen properly generated the "NativeNitroModules"/NitroModules specs. See https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-apps.md'); items2.push('Make sure you are using react-native 0.75.0 or higher.'); items2.push('Make sure you rebuilt the app.'); if (r4 === 'expo') { items2.push('Make sure you ran `expo prebuild`.'); } items2.push('Make sure gradle is synced.'); return _callSuper_32103(this, ModuleNotFoundError, ['Failed to get NitroModules: The native "NitroModules" Turbo/Native-Module could not be found.\n* ' + items2.join('\n* '), {cause: a0}]); }