/* Metro module 228; source: unknown; dependencies: [6, 7, 15, 17, 18, 229] */ import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import * as PossibleConstructorReturnModule from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import * as Module00017Module from './module-00017.js'; /* Metro dependency 17 */ import * as InheritsModule from './module-00018-Inherits.js'; /* Metro dependency 18 */ import * as ClassCallCheckModule2 from './module-00229-ClassCallCheck.js'; /* Metro dependency 229 */ function _fun3164(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:6, offset: 0x00c9223c, size: 602 bytes, params: 8, frame: 24 var exports; const env0_0 = require; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const EventTarget = (ClassCallCheckModule2).EventTarget; const value = _fun3169(EventTarget); ClassCallCheckModule2.defineEventAttribute(value.prototype, 'abort'); let WeakMap = global.WeakMap; let weakMap = new WeakMap(); Object = global.Object; Object.defineProperties(value.prototype, {aborted: {enumerable: true}}); let Symbol = global.Symbol; if (typeof Symbol === 'function' && typeof global.Symbol.toStringTag === 'symbol') { Object = global.Object; Object.defineProperty(value.prototype, global.Symbol.toStringTag, {'configurable': true, 'value': 'AbortSignal'}); } const value7 = _fun3172(); WeakMap = global.WeakMap; weakMap = new WeakMap(); Object = global.Object; Object.defineProperties(value7.prototype, {signal: {enumerable: true}, abort: {enumerable: true}}); Symbol = global.Symbol; if (typeof Symbol === 'function' && typeof global.Symbol.toStringTag === 'symbol') { Object = global.Object; Object.defineProperty(value7.prototype, global.Symbol.toStringTag, {'configurable': true, 'value': 'AbortController'}); } exports.AbortController = value7; exports.AbortSignal = value; exports.default = value7; module.exports = value7; exports = module.exports; module.exports.default = value7; exports.AbortController = value7; module.exports.AbortSignal = value; function _isNativeReflectConstruct_3165() { // fn#3165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:98, offset: 0x00c92496, 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_3165_isNativeReflectConstruct = function() { return !!result; })(); } function getSignal(a0) { // fn#3168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1618, offset: 0x00c924f4, size: 79 bytes, params: 2, frame: 12 const value = env0_9.get(a0); if (value == null) { throw new global.TypeError("Expected 'this' to be an 'AbortController' object, but got " + (a0 === null ? 'null' : typeof a0)); } return value; } function _fun3169(a0) { // fn#3169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:373, offset: 0x00c92543, size: 68 bytes, params: 2, frame: 15 const AbortSignal2 = AbortSignal; InheritsModule(AbortSignal2, a0); return CreateClassModule(AbortSignal2, [{key: 'aborted', get: get_3171}]); function AbortSignal() { // fn#3170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:385, offset: 0x00c92587, size: 142 bytes, params: 1, frame: 19 const value = environment.__proto__; env1_2(this, AbortSignal); const value3 = env1_5(AbortSignal); env1_4(this, _isNativeReflectConstruct_3165() ? global.Reflect.construct(value3, [], env1_5(this).constructor) : value3.apply(this, undefined)); const TypeError = global.TypeError; throw new TypeError('AbortSignal cannot be constructed directly'); } function get_3171() { // fn#3171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:702, offset: 0x00c92615, size: 86 bytes, params: 1, frame: 12 let value = environment.__proto__; value = env1_8.get(this); if (typeof value !== 'boolean') { throw new global.TypeError("Expected 'this' to be an 'AbortSignal' object, but got " + (this === null ? 'null' : typeof this)); } return value; } } function _fun3172() { // fn#3172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1198, offset: 0x00c9266b, size: 78 bytes, params: 1, frame: 15 return CreateClassModule(AbortController, [{key: 'signal', get: function() { return getSignal(this); }}, {key: 'abort', value: value_3175}]); function AbortController() { // fn#3173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1219, offset: 0x00c926b9, size: 122 bytes, params: 1, frame: 18 let binding = env1_2; binding(this, AbortController); binding = env1_9; const set = binding.set; const Object = global.Object; const value3 = Object.create(env1_7.prototype); const EventTarget = (ClassCallCheckModule2).EventTarget; EventTarget.call(value3); env1_8.set(value3, false); Reflect.apply(set, binding, [this, value3]); } function value_3175() { // fn#3175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:253:1476, offset: 0x00c92746, size: 77 bytes, params: 1, frame: 14 const signal = getSignal(this); if (env1_8.get(signal) === false) { env1_8.set(signal, true); signal.dispatchEvent({type: 'abort'}); } } } } global.__d(_fun3164, 228, [6, 7, 15, 17, 18, 229]) /* metro module 228, dependencies: [6, 7, 15, 17, 18, 229] */;