/* Metro module 209; source: unknown; dependencies: [6, 7, 101, 44] */ function _fun2938(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:6, offset: 0x00c8ccb7, size: 101 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = importDefault(6) /* metro dependency 6 */; const env0_3 = importDefault(7) /* metro dependency 7 */; exports.default = _fun2939(); } function _fun2939() { // fn#2939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:118, offset: 0x00c8cd1c, size: 124 bytes, params: 1, frame: 15 return env0_3(NativeEventEmitter, [{key: 'addListener', value: value_2941}, {key: 'emit', value: value_2943}, {key: 'removeAllListeners', value: value_2944}, {key: 'listenerCount', value: value_2945}]); } function NativeEventEmitter(a0) { // fn#2940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:139, offset: 0x00c8cd98, size: 159 bytes, params: 2, frame: 16 let value = environment.__proto__; env1_2(this, NativeEventEmitter); value = !!a0; const r4 = a0 ? typeof a0.addListener === 'function' : value; const r3 = a0 ? typeof a0.removeListeners === 'function' : value; if (a0) { if (r4) { if (r3) { this._nativeModule = a0; } else if (a0 != null) { if (!r4) { global.console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'); } if (!r3) { global.console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'); } } } else if (a0 != null) { if (!r4) { global.console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'); } if (!r3) { global.console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'); } } } else if (a0 != null) { if (!r4) { global.console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'); } if (!r3) { global.console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'); } } } function value_2941(a0, a1, a2) { // fn#2941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:607, offset: 0x00c8ce37, size: 97 bytes, params: 4, frame: 16 var environment; const _nativeModule = this._nativeModule; if (_nativeModule != null) { _nativeModule.addListener(a0); } const value = environment.__proto__; const env0_1 = (importDefault(101) /* metro dependency 101 */).addListener(a0, a1, a2); return {remove: remove_2942}; } function value_2943(a0) { // fn#2943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:865, offset: 0x00c8ced7, size: 155 bytes, params: 2, frame: 17 var r1; var value4; var value7; var value8; let value = arguments.length; const Array = global.Array; const value2 = 1; reducibleJoin2: while (true) { if (value > value2) { value4 = value - value2; r1 = value4; break reducibleJoin2; } r1 = 0; break reducibleJoin2; } const array = new Array(); if (value2 < value) { r1 = value2; reducibleLoop3: while (true) { value7 = r1 - value2; array[value7] = arguments[r1]; value8 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; if (value8 < value) { r1 = value8; continue reducibleLoop3; } break reducibleLoop3; } } value = environment.__proto__; const emit = (importDefault(101) /* metro dependency 101 */).emit; const apply = emit.apply; value = importDefault(101) /* metro dependency 101 */; const items2 = [a0]; Reflect.apply(apply, emit, [value, items2.concat(array)]); } function value_2944(a0) { // fn#2944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:1040, offset: 0x00c8cf72, size: 114 bytes, params: 2, frame: 17 const value = environment.__proto__; (importDefault(44) /* metro dependency 44 */)(a0 != null, '`NativeEventEmitter.removeAllListener()` requires a non-null argument.'); const _nativeModule = this._nativeModule; if (_nativeModule != null) { _nativeModule.removeListeners(this.listenerCount(a0)); } (importDefault(101) /* metro dependency 101 */).removeAllListeners(a0); } function value_2945(a0) { // fn#2945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:1297, offset: 0x00c8cfe4, size: 41 bytes, params: 2, frame: 11 const value = environment.__proto__; return (importDefault(101) /* metro dependency 101 */).listenerCount(a0); } function value_2941Remove() { // fn#2942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:234:742, owner: value_2941.remove, offset: 0x00c8ce98, size: 63 bytes, params: 1, frame: 13 var _nativeModule; if (env0_1 != null) { _nativeModule = env0_0._nativeModule; if (_nativeModule != null) { _nativeModule.removeListeners(1); } env0_1.remove(); } }