/* Metro module 193; source: unknown; dependencies: [65, 102, 6, 7, 15, 17, 18, 194, 199, 200, 204, 44, 206, 203, 207, 208, 201] */ function _fun2723(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:6, offset: 0x00c87a3a, size: 397 bytes, params: 8, frame: 24 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(65) /* metro dependency 65 */; const env0_4 = importDefault(102) /* metro dependency 102 */; const env0_5 = importDefault(6) /* metro dependency 6 */; const env0_6 = importDefault(7) /* metro dependency 7 */; const env0_7 = importDefault(15) /* metro dependency 15 */; const env0_8 = importDefault(17) /* metro dependency 17 */; const env0_9 = importDefault(18) /* metro dependency 18 */; if ((require(194) /* metro dependency 194 */).default.isAvailable) { (require(194) /* metro dependency 194 */).default.addNetworkingHandler(); } object2 = {'arraybuffer': null, 'blob': null, 'document': false, 'json': true, 'text': true, '': true}; const ArrayBuffer = global.ArrayBuffer; object2.arraybuffer = typeof ArrayBuffer === 'function'; const Blob = global.Blob; object2.blob = typeof Blob === 'function'; const env0_11 = _fun2728(importDefault(200) /* metro dependency 200 */); value = importDefault(200) /* metro dependency 200 */; value = _fun2744(value); value.UNSENT = 0; value.OPENED = 1; value.HEADERS_RECEIVED = 2; value.LOADING = 3; value.DONE = 4; value._interceptor = null; value._profiling = false; exports.default = value; } function _callSuper_2724(a0, a1, a2) { // fn#2724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:170, offset: 0x00c87bc7, size: 100 bytes, params: 4, frame: 20 var r0; var Reflect; let value = a2; const value3 = env0_8(a1); const binding = env0_7; if (_isNativeReflectConstruct_2725()) { Reflect = global.Reflect; value = Reflect.construct(value3, value || [], env0_8(a0).constructor); r0 = value; } else { value = value3.apply(a0, value); r0 = value; } return binding(a0, r0); } function _isNativeReflectConstruct_2725() { // fn#2725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:301, offset: 0x00c87c2b, 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_2725_isNativeReflectConstruct = function() { return !!result; })(); } function _fun2728(a0) { // fn#2728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:710, offset: 0x00c87c89, size: 273 bytes, params: 2, frame: 16 const closure = XMLHttpRequestEventTarget; env0_9(closure, a0); return env0_6(closure, [{key: 'onload', get: get_2730, set: set_2731}, {key: 'onloadstart', get: get_2732, set: set_2733}, {key: 'onprogress', get: get_2734, set: set_2735}, {key: 'ontimeout', get: get_2736, set: set_2737}, {key: 'onerror', get: get_2738, set: set_2739}, {key: 'onabort', get: get_2740, set: set_2741}, {key: 'onloadend', get: get_2742, set: set_2743}]); } function _fun2744(a0) { // fn#2744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:2098, offset: 0x00c8806c, size: 925 bytes, params: 2, frame: 18 const closure = XMLHttpRequest; env0_9(closure, a0); return env0_6(closure, [{key: '_reset', value: function() { this.readyState = this.UNSENT; this.responseHeaders = undefined; this.status = 0; delete this.responseURL; this._requestId = null; this._cachedResponse = undefined; this._hasError = false; this._headers = {}; this._response = ''; this._responseType = ''; this._sent = false; this._lowerCaseResponseHeaders = {}; this._clearSubscriptions(); this._timedOut = false; }}, {key: 'responseType', get: function() { return this._responseType; }, set: set_2748}, {key: 'responseText', get: function() { var property; var value = ''; if (value !== this._responseType) { if (this._responseType !== 'text') { property = global.Error; value = "The 'responseText' property is only available if 'responseType' is set to '' or 'text', but it is '" + this._responseType + "'."; value = new property(value); throw value; } } return this.readyState < 3 ? value : this._response; }}, {key: 'response', get: get_2750}, {key: '__didCreateRequest', value: value_2751}, {key: '__didUploadProgress', value: value_2752}, {key: '__didReceiveResponse', value: value_2753}, {key: '__didReceiveData', value: value_2754}, {key: '__didReceiveIncrementalData', value: value_2755}, {key: '__didReceiveDataProgress', value: value_2756}, {key: '__didCompleteResponse', value: value_2757}, {key: '_clearSubscriptions', value: function() { (this._subscriptions || []).forEach(_fun2759); this._subscriptions = []; }}, {key: 'getAllResponseHeaders', value: value_2760}, {key: 'getResponseHeader', value: function(a0) { var property = this._lowerCaseResponseHeaders; property = property[a0.toLowerCase()]; return property === undefined ? null : property; }}, {key: 'setRequestHeader', value: function(a0, a1) { if (this.readyState !== this.OPENED) { throw new global.Error('Request has not been opened'); } this._headers[a0.toLowerCase()] = (0, global.String)(a1); }}, {key: 'setTrackingName', value: function(a0) { this._trackingName = a0; return this; }}, {key: 'setPerformanceLogger', value: function(a0) { this._performanceLogger = a0; return this; }}, {key: 'open', value: value_2767}, {key: 'send', value: value_2768}, {key: 'abort', value: value_2775}, {key: 'setResponseHeaders', value: function(a0) { var r4; var value = a0; this.responseHeaders = value || null; r4 = value || ({}); var env0_0 = r4; var Object = global.Object; this._lowerCaseResponseHeaders = Object.keys(r4).reduce(_fun2777, {}); }}, {key: 'setReadyState', value: value_2778}, {key: 'addEventListener', value: value_2779}, {key: '_getMeasureURL', value: function() { return this._trackingName ?? this._url ?? 'Unknown URL'; }}, {key: 'onabort', get: get_2783, set: set_2784}, {key: 'onerror', get: get_2785, set: set_2786}, {key: 'onload', get: get_2787, set: set_2788}, {key: 'onloadstart', get: get_2789, set: set_2790}, {key: 'onprogress', get: get_2791, set: set_2792}, {key: 'ontimeout', get: get_2793, set: set_2794}, {key: 'onloadend', get: get_2795, set: set_2796}, {key: 'onreadystatechange', get: get_2797, set: set_2798}], [{key: '__setInterceptor_DO_NOT_USE', value: function(a0) { XMLHttpRequest._interceptor = a0; }}, {key: 'enableProfiling', value: function(a0) { XMLHttpRequest._profiling = a0; }}]); } function XMLHttpRequestEventTarget() { // fn#2729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:722, offset: 0x00c87d9a, size: 42 bytes, params: 1, frame: 16 env1_5(this, XMLHttpRequestEventTarget); return _callSuper_2724(this, XMLHttpRequestEventTarget, arguments); } function get_2736() { // fn#2736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:1445, offset: 0x00c87ee8, size: 46 bytes, params: 1, frame: 13 const value = environment.__proto__; return (require(199) /* metro dependency 199 */).getEventHandlerAttribute(this, 'timeout'); } function set_2737(a0) { // fn#2737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:1522, offset: 0x00c87f16, size: 50 bytes, params: 2, frame: 16 const value = environment.__proto__; (require(199) /* metro dependency 199 */).setEventHandlerAttribute(this, 'timeout', a0); } function XMLHttpRequest() { // fn#2745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:2110, offset: 0x00c88409, size: 240 bytes, params: 1, frame: 15 let binding = env1_5; binding(this, XMLHttpRequest); const value3 = _callSuper_2724(this, XMLHttpRequest); value3.UNSENT = 0; value3.OPENED = 1; value3.HEADERS_RECEIVED = 2; value3.LOADING = 3; value3.DONE = 4; value3.readyState = 0; value3.status = 0; value3.timeout = 0; value3.withCredentials = true; binding = env1_11; const value4 = Object.create(binding.prototype, {constructor: {value: binding}}); const binding2 = new binding(); value3.upload = binding2 instanceof Object ? binding2 : value4; value3._aborted = false; value3._hasError = false; value3._method = null; value3._perfKey = null; value3._response = ''; value3._url = null; value3._timedOut = false; value3._incrementalEvents = false; value3._startTime = null; value3._performanceLogger = (require(204) /* metro dependency 204 */).default; value3._reset(); return value3; } function set_2748(a0) { // fn#2748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:3006, offset: 0x00c88576, size: 275 bytes, params: 2, frame: 19 if (this._sent) { throw new global.Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be set after the request has been sent."); } const value = environment.__proto__; const binding = env1_10; if (binding.hasOwnProperty(a0)) { (require(44) /* metro dependency 44 */)(env1_10[a0] || a0 === 'document', "The provided value '" + a0 + "' is unsupported in this environment."); if (a0 === 'blob') { (require(44) /* metro dependency 44 */)((require(194) /* metro dependency 194 */).default.isAvailable, 'Native module BlobModule is required for blob support'); } this._responseType = a0; } else { global.console.warn("The provided value '" + a0 + "' is not a valid 'responseType'."); } } function get_2750() { // fn#2750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:3807, offset: 0x00c88701, size: 506 bytes, params: 1, frame: 19 var JSON; var parse; var _response; var error; const property = (require(194) /* metro dependency 194 */).default; var Error; const responseType = this.responseType; let value = ''; if (value === responseType) { return this.readyState < 3 || this._hasError ? value : this._response; } if (responseType === 'text') { return this.readyState < 3 || this._hasError ? value : this._response; } if (this.readyState !== 4) { return null; } if (this._cachedResponse === undefined) { if (responseType === 'document') { this._cachedResponse = null; return this._cachedResponse; } if (responseType === 'arraybuffer') { value = environment.__proto__; value = require(206) /* metro dependency 206 */; this._cachedResponse = value.toByteArray(this._response).buffer; return this._cachedResponse; } if (responseType === 'blob') { _response = this._response; if (typeof _response !== 'object') { _response = this._response; if (value !== _response) { Error = global.Error; _response = this._response; value = this._response.trim(); value = 'Invalid response for blob - expecting object, was ' + typeof _response + ': ' + value; throw new Error(value); } value = environment.__proto__; this._cachedResponse = property.createFromParts([]); return this._cachedResponse; } _response = this._response; if (_response) { value = environment.__proto__; this._cachedResponse = property.createFromOptions(this._response); return this._cachedResponse; } _response = this._response; if (value !== _response) { Error = global.Error; _response = this._response; value = this._response.trim(); value = 'Invalid response for blob - expecting object, was ' + typeof _response + ': ' + value; throw new Error(value); } value = environment.__proto__; this._cachedResponse = property.createFromParts([]); return this._cachedResponse; } if (responseType !== 'json') { this._cachedResponse = null; } else { try { JSON = global.JSON; parse = JSON.parse; _response = this._response; value = Reflect.apply(parse, JSON, [_response]); this._cachedResponse = value; } catch (error) { this._cachedResponse = null; } } } return this._cachedResponse; } function value_2751(a0) { // fn#2751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:4685, offset: 0x00c888fb, size: 98 bytes, params: 2, frame: 18 var _url; var _method; var requestSent; this._requestId = a0; let _interceptor = XMLHttpRequest._interceptor; if (_interceptor) { _interceptor = XMLHttpRequest._interceptor; requestSent = _interceptor.requestSent; _url = this._url; _url = !_url ? '' : _url; _method = this._method; _method = !_method ? 'GET' : _method; Reflect.apply(requestSent, _interceptor, [a0, _url, _method, this._headers]); } } function value_2752(a0, a1, a2) { // fn#2752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:4889, offset: 0x00c8895d, size: 131 bytes, params: 4, frame: 16 var value; var moduleValue; var dispatchTrustedEvent; var upload; if (a0 === this._requestId) { value = environment.__proto__; moduleValue = require(203) /* metro dependency 203 */; dispatchTrustedEvent = moduleValue.dispatchTrustedEvent; upload = this.upload; value = importDefault(207) /* metro dependency 207 */; value = new value('progress', {lengthComputable: true, loaded: a1, total: a2}); Reflect.apply(dispatchTrustedEvent, moduleValue, [upload, value]); } } function value_2753(a0, a1, a2, a3) { // fn#2753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:5091, offset: 0x00c889e0, size: 197 bytes, params: 5, frame: 19 var r3; var _performanceLogger; var _interceptor; var responseReceived; const value = a2; const value2 = a3; if (a0 === this._requestId) { if (this._perfKey != null) { _performanceLogger = this._performanceLogger; _performanceLogger.stopTimespan(this._perfKey); } this.status = a1; this.setResponseHeaders(value); this.setReadyState(this.HEADERS_RECEIVED); if (value2) { this.responseURL = value2; } else if (value2 === '') { this.responseURL = value2; } else { delete this.responseURL; } _interceptor = XMLHttpRequest._interceptor; if (_interceptor) { _interceptor = XMLHttpRequest._interceptor; responseReceived = _interceptor.responseReceived; r3 = value2 || this._url; r3 = !r3 ? '' : r3; Reflect.apply(responseReceived, _interceptor, [a0, r3, a1, value || ({})]); } } } function value_2754(a0, a1) { // fn#2754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:5496, offset: 0x00c88aa5, size: 92 bytes, params: 3, frame: 14 if (a0 === this._requestId) { this._response = a1; this._cachedResponse = undefined; this.setReadyState(this.LOADING); if (XMLHttpRequest._interceptor) { XMLHttpRequest._interceptor.dataReceived(a0, a1); } } } function value_2755(a0, a1, a2, a3) { // fn#2755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:5746, offset: 0x00c88b01, size: 185 bytes, params: 5, frame: 18 var performance; if (a0 === this._requestId) { if (this._response) { this._response = this._response + a1; } else { this._response = a1; } if (XMLHttpRequest._profiling) { performance = global.performance; performance.mark('Track:XMLHttpRequest:Incremental Data: ' + this._getMeasureURL()); } if (XMLHttpRequest._interceptor) { XMLHttpRequest._interceptor.dataReceived(a0, a1); } this.setReadyState(this.LOADING); this.__didReceiveDataProgress(a0, a2, a3); } } function value_2756(a0, a1, a2) { // fn#2756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:6159, offset: 0x00c88bba, size: 129 bytes, params: 4, frame: 17 var value; var moduleValue; var dispatchTrustedEvent; if (a0 === this._requestId) { value = environment.__proto__; moduleValue = require(203) /* metro dependency 203 */; dispatchTrustedEvent = moduleValue.dispatchTrustedEvent; value = importDefault(207) /* metro dependency 207 */; value = new value('progress', {lengthComputable: a2 >= 0, loaded: a1, total: a2}); Reflect.apply(dispatchTrustedEvent, moduleValue, [this, value]); } } function value_2757(a0, a1, a2) { // fn#2757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:6362, offset: 0x00c88c3b, size: 297 bytes, params: 4, frame: 19 var _startTime; var performance; var measure; var value3; var object2; var _interceptor; if (a0 === this._requestId) { if (a1) { if (!(this._responseType !== '' && this._responseType !== 'text')) { this._response = a1; } this._hasError = true; if (a2) { this._timedOut = true; } } this._clearSubscriptions(); this._requestId = null; this.setReadyState(this.DONE); if (XMLHttpRequest._profiling) { _startTime = this._startTime; if (_startTime != null) { _startTime = this._startTime; performance = global.performance; measure = performance.measure; value3 = 'Track:XMLHttpRequest:' + this._getMeasureURL(); object2 = {start: _startTime}; object2.end = global.performance.now(); Reflect.apply(measure, performance, [value3, object2]); } } _interceptor = XMLHttpRequest._interceptor; if (a1) { if (_interceptor) { XMLHttpRequest._interceptor.loadingFailed(a0, a1); } } else if (_interceptor) { _interceptor = XMLHttpRequest._interceptor; _interceptor.loadingFinished(a0, this._response.length); } } } function value_2758() { // fn#2758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:7007, offset: 0x00c88d64, size: 47 bytes, params: 1, frame: 12 (this._subscriptions || []).forEach(function(a0) { if (a0) { a0.remove(); } }); this._subscriptions = []; } function value_2760() { // fn#2760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:7162, offset: 0x00c88da7, size: 337 bytes, params: 1, frame: 26 var environment; var property; var toLowerCase; var value2; var get; var value3; var set; var object2; var toUpperCase; var value4; var headerValue; var value5; var value6; var error; var value7; let responseHeaders = this.responseHeaders; if (!responseHeaders) { return null; } responseHeaders = this.responseHeaders; const Map = global.Map; let map = new Map(); const Object = global.Object; const iterator = Object.keys(responseHeaders)[Symbol.iterator](); const iterator2 = iterator.next; let r4 = iterator; let item2 = Reflect.apply(iterator2, r4, []); let item = item2.value; item2 = item2.done ? undefined : r4; reducibleJoin4: while (true) { if (item2 === undefined) { value7 = environment.__proto__; map = env1_3(map.values()); map = map.sort(function(a0, a1) { return a0.upperHeaderName < a1.upperHeaderName ? -1 : a0.upperHeaderName > a1.upperHeaderName ? 1 : 0; }); map = map.map(_fun2762); return map.join('\r\n') + '\r\n'; } break reducibleJoin4; } reducibleLoop4: while (true) { try { property = responseHeaders[item]; } catch (error) { try { item2.return(); } catch { } throw error; } try { toLowerCase = item.toLowerCase; } catch (error) { try { item2.return(); } catch { } throw error; } try { value2 = Reflect.apply(toLowerCase, item, []); } catch (error) { try { item2.return(); } catch { } throw error; } try { get = map.get; } catch (error) { try { item2.return(); } catch { } throw error; } try { value3 = Reflect.apply(get, map, [value2]); } catch (error) { try { item2.return(); } catch { } throw error; } if (value3) { try { headerValue = value3.headerValue; } catch (error) { try { item2.return(); } catch { } throw error; } try { value5 = ', ' + property; } catch (error) { try { item2.return(); } catch { } throw error; } try { value6 = headerValue + value5; } catch (error) { try { item2.return(); } catch { } throw error; } try { value3.headerValue = value6; } catch (error) { try { item2.return(); } catch { } throw error; } try { set = map.set; } catch (error) { try { item2.return(); } catch { } throw error; } try { Reflect.apply(set, map, [value2, value3]); } catch (error) { try { item2.return(); } catch { } throw error; } r4 = item2; } else { try { set = map.set; } catch (error) { try { item2.return(); } catch { } throw error; } try { object2 = {}; } catch (error) { try { item2.return(); } catch { } throw error; } try { object2.lowerHeaderName = value2; } catch (error) { try { item2.return(); } catch { } throw error; } try { toUpperCase = item.toUpperCase; } catch (error) { try { item2.return(); } catch { } throw error; } try { value4 = Reflect.apply(toUpperCase, item, []); } catch (error) { try { item2.return(); } catch { } throw error; } try { object2.upperHeaderName = value4; } catch (error) { try { item2.return(); } catch { } throw error; } try { object2.headerValue = property; } catch (error) { try { item2.return(); } catch { } throw error; } try { Reflect.apply(set, map, [value2, object2]); } catch (error) { try { item2.return(); } catch { } throw error; } r4 = item2; } item2 = Reflect.apply(iterator2, r4, []); item = item2.value; item2 = item2.done ? undefined : r4; if (item2 === undefined) { break reducibleLoop4; } continue reducibleLoop4; } map = env1_3(map.values()); map = map.sort(function(a0, a1) { return a0.upperHeaderName < a1.upperHeaderName ? -1 : a0.upperHeaderName > a1.upperHeaderName ? 1 : 0; }); map = map.map(function(a0) { return a0.lowerHeaderName + ': ' + a0.headerValue; }); return map.join('\r\n') + '\r\n'; } function value_2767(a0, a1, a2) { // fn#2767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:8209, offset: 0x00c88ff8, size: 200 bytes, params: 4, frame: 15 const readyState = this.readyState; const UNSENT = this.UNSENT; if (readyState !== UNSENT) { throw new global.Error('Cannot open, already sending'); } if (a2 === undefined) { if (a1) { this._method = a0.toUpperCase(); this._url = a1; this._aborted = false; this.setReadyState(this.OPENED); return undefined; } throw new global.Error('Cannot load an empty url'); } if (a2) { if (a1) { this._method = a0.toUpperCase(); this._url = a1; this._aborted = false; this.setReadyState(this.OPENED); return undefined; } throw new global.Error('Cannot load an empty url'); } const Error = global.Error; throw new Error('Synchronous http requests are not supported'); } function value_2768(a0) { // fn#2768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:8552, offset: 0x00c890c0, size: 795 bytes, params: 2, frame: 31 var environment; const readyState = this.readyState; const OPENED = this.OPENED; if (readyState !== OPENED) { throw new global.Error('Request has not been opened'); } if (this._sent) { throw new global.Error('Request has already been sent'); } this._sent = true; let r12 = this._incrementalEvents || !!this.onreadystatechange; r12 = !r12 ? !!this.onprogress : r12; let _subscriptions = this._subscriptions; const push = _subscriptions.push; const value = environment.__proto__; const value2 = undefined; const property = (require(208) /* metro dependency 208 */).default; Reflect.apply(push, _subscriptions, [property.addListener('didSendNetworkData', _fun2769)]); _subscriptions = this._subscriptions; _subscriptions.push(property.addListener('didReceiveNetworkResponse', _fun2770)); _subscriptions = this._subscriptions; _subscriptions.push(property.addListener('didReceiveNetworkData', _fun2771)); _subscriptions = this._subscriptions; _subscriptions.push(property.addListener('didReceiveNetworkIncrementalData', _fun2772)); _subscriptions = this._subscriptions; _subscriptions.push(property.addListener('didReceiveNetworkDataProgress', _fun2773)); _subscriptions = this._subscriptions; _subscriptions.push(property.addListener('didCompleteNetworkResponse', _fun2774)); let _responseType = this._responseType; let r11 = _responseType !== 'arraybuffer' ? 'text' : 'base64'; _responseType = this._responseType; const value5 = 'blob'; r11 = value5 === _responseType ? value5 : r11; const r9 = this._trackingName ?? this._url; const String = global.String; this._perfKey = 'network_XMLHttpRequest_' + String(r9); const _performanceLogger = this._performanceLogger; _performanceLogger.startTimespan(this._perfKey); const performance = global.performance; this._startTime = performance.now(); (require(44) /* metro dependency 44 */)(this._method, 'XMLHttpRequest method needs to be defined (%s).', r9); (require(44) /* metro dependency 44 */)(this._url, 'XMLHttpRequest URL needs to be defined (%s).', r9); property.sendRequest(this._method, this._trackingName ?? value2, this._url, this._headers, a0, r11, r12, this.timeout, this.__didCreateRequest.bind(this), this.withCredentials); return value2; } function value_2775() { // fn#2775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:10297, offset: 0x00c894dd, size: 180 bytes, params: 1, frame: 12 var value; var property; this._aborted = true; if (this._requestId) { value = environment.__proto__; property = (require(208) /* metro dependency 208 */).default; property.abortRequest(this._requestId); } const readyState = this.readyState; const UNSENT = this.UNSENT; let r0 = readyState === UNSENT || this.readyState === this.OPENED && !this._sent; r0 = !r0 ? this.readyState === this.DONE : r0; if (!r0) { this._reset(); this.setReadyState(this.DONE); } this._reset(); } function value_2776(a0) { // fn#2776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:10594, offset: 0x00c89591, size: 78 bytes, params: 2, frame: 14 let value = a0; this.responseHeaders = value || null; const r4 = value || ({}); const Object = global.Object; value = Object.keys(r4); this._lowerCaseResponseHeaders = value.reduce(_fun2777, {}); } function value_2778(a0) { // fn#2778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:10802, offset: 0x00c89600, size: 432 bytes, params: 2, frame: 20 var moduleValue2; var defaultImport2; var value5; var defaultImport22; var _timedOut; var moduleValue3; var defaultImport3; var value8; var defaultImport32; var defaultImport33; var moduleValue4; var defaultImport4; var value13; var defaultImport42; var moduleValue5; this.readyState = a0; let value = environment.__proto__; const moduleValue = require(203) /* metro dependency 203 */; let dispatchTrustedEvent = moduleValue.dispatchTrustedEvent; const defaultImport = importDefault(201) /* metro dependency 201 */; const value2 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}}); const defaultImport5 = new defaultImport('readystatechange'); Reflect.apply(dispatchTrustedEvent, moduleValue, [this, defaultImport5 instanceof Object ? defaultImport5 : value2]); const DONE = this.DONE; if (a0 === DONE) { if (this._aborted) { moduleValue4 = moduleValue; dispatchTrustedEvent = moduleValue4.dispatchTrustedEvent; defaultImport4 = importDefault(201) /* metro dependency 201 */; value13 = Object.create(defaultImport4.prototype, {constructor: {value: defaultImport4}}); defaultImport42 = new defaultImport4('abort'); Reflect.apply(dispatchTrustedEvent, moduleValue4, [this, defaultImport42 instanceof Object ? defaultImport42 : value13]); } else if (this._hasError) { _timedOut = this._timedOut; moduleValue3 = require(203) /* metro dependency 203 */; dispatchTrustedEvent = moduleValue3.dispatchTrustedEvent; defaultImport3 = importDefault(201) /* metro dependency 201 */; value8 = Object.create(defaultImport3.prototype, {constructor: {value: defaultImport3}}); if (_timedOut) { defaultImport33 = new defaultImport3('timeout'); Reflect.apply(dispatchTrustedEvent, moduleValue3, [this, defaultImport33 instanceof Object ? defaultImport33 : value8]); } else { defaultImport32 = new defaultImport3('error'); Reflect.apply(dispatchTrustedEvent, moduleValue3, [this, defaultImport32 instanceof Object ? defaultImport32 : value8]); } } else { moduleValue2 = require(203) /* metro dependency 203 */; dispatchTrustedEvent = moduleValue2.dispatchTrustedEvent; defaultImport2 = importDefault(201) /* metro dependency 201 */; value5 = Object.create(defaultImport2.prototype, {constructor: {value: defaultImport2}}); defaultImport22 = new defaultImport2('load'); Reflect.apply(dispatchTrustedEvent, moduleValue2, [this, defaultImport22 instanceof Object ? defaultImport22 : value5]); } moduleValue5 = require(203) /* metro dependency 203 */; dispatchTrustedEvent = moduleValue5.dispatchTrustedEvent; value = importDefault(201) /* metro dependency 201 */; value = new value('loadend'); Reflect.apply(dispatchTrustedEvent, moduleValue5, [this, value]); } } function value_2779(a0, a1) { // fn#2779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:11313, offset: 0x00c897b0, size: 92 bytes, params: 3, frame: 18 if (!(a0 !== 'readystatechange' && a0 !== 'progress')) { this._incrementalEvents = true; } value_2779_superPropGet(XMLHttpRequest, 'addEventListener', this, 3)([a0, a1]); } function get_2797() { // fn#2797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:12931, offset: 0x00c89897, size: 48 bytes, params: 1, frame: 13 const value = environment.__proto__; return (require(199) /* metro dependency 199 */).getEventHandlerAttribute(this, 'readystatechange'); } function set_2798(a0) { // fn#2798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:13017, offset: 0x00c898c7, size: 52 bytes, params: 2, frame: 16 const value = environment.__proto__; (require(199) /* metro dependency 199 */).setEventHandlerAttribute(this, 'readystatechange', a0); } function _fun2762({lowerHeaderName, headerValue}) { // fn#2762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:7585, offset: 0x00c88f34, size: 31 bytes, params: 2, frame: 3 return lowerHeaderName + ': ' + headerValue; } function _fun2769(a0) { // fn#2769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:8890, offset: 0x00c893db, size: 43 bytes, params: 2, frame: 15 const binding = env0_0; return binding.__didUploadProgress.apply(binding, env2_3(a0)); } function _fun2770(a0) { // fn#2770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:9033, offset: 0x00c89406, size: 43 bytes, params: 2, frame: 15 const binding = env0_0; return binding.__didReceiveResponse.apply(binding, env2_3(a0)); } function _fun2771(a0) { // fn#2771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:9173, offset: 0x00c89431, size: 43 bytes, params: 2, frame: 15 const binding = env0_0; return binding.__didReceiveData.apply(binding, env2_3(a0)); } function _fun2772(a0) { // fn#2772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:9320, offset: 0x00c8945c, size: 43 bytes, params: 2, frame: 15 const binding = env0_0; return binding.__didReceiveIncrementalData.apply(binding, env2_3(a0)); } function _fun2773(a0) { // fn#2773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:9475, offset: 0x00c89487, size: 43 bytes, params: 2, frame: 15 const binding = env0_0; return binding.__didReceiveDataProgress.apply(binding, env2_3(a0)); } function _fun2774(a0) { // fn#2774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:9624, offset: 0x00c894b2, size: 43 bytes, params: 2, frame: 15 const binding = env0_0; return binding.__didCompleteResponse.apply(binding, env2_3(a0)); } function _fun2777(a0, a1) { // fn#2777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:10720, offset: 0x00c895df, size: 33 bytes, params: 3, frame: 11 a0[a1.toLowerCase()] = env0_0[a1]; return a0; } function value_2779_superPropGet(a0, a1, a2, a3) { // fn#2780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:218:11413, owner: value_2779._superPropGet, offset: 0x00c8980c, size: 100 bytes, params: 5, frame: 18 let value = a0; const env0_0 = a2; const binding = env2_4; value = env2_8(1 & 3 ? value.prototype : value); value = binding(value, 'addEventListener', a2); return 2 & 3 ? typeof value !== 'function' ? value : _fun2781 : value; }