/* Metro module 223; source: unknown; dependencies: [6, 7, 15, 17, 18, 201, 224, 206, 199, 200] */ import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from './module-00017.js'; /* Metro dependency 17 */ import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */ import Module00200 from './module-00200.js'; /* Metro dependency 200 */ import * as Module00199Module from './module-00199.js'; /* Metro dependency 199 */ function _fun3081(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:6, offset: 0x00c909b5, size: 196 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = Module00200; value = _fun3085(value); value.EMPTY = 0; value.LOADING = 1; value.DONE = 2; exports.default = value; function _isNativeReflectConstruct_3082() { // fn#3082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:148, offset: 0x00c90a79, 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_3082_isNativeReflectConstruct = function() { return !!result; })(); } function _fun3085(a0) { // fn#3085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:373, offset: 0x00c90ad7, size: 448 bytes, params: 2, frame: 16 const FileReader2 = FileReader; Inherits(FileReader2, a0); return CreateClass(FileReader2, [{key: '_reset', value: function() { this._readyState = 0; this._error = null; this._result = null; }}, {key: '_setReadyState', value: value_3088}, {key: 'readAsArrayBuffer', value: value_3089}, {key: 'readAsDataURL', value: value_3092}, {key: 'readAsText', value: value_3095}, {key: 'abort', value: function() { this._aborted = true; if (this._readyState !== 0 && this._readyState !== 2) { this._reset(); this._setReadyState(2); } this._reset(); }}, {key: 'readyState', get: function() { return this._readyState; }}, {key: 'error', get: function() { return this._error; }}, {key: 'result', get: function() { return this._result; }}, {key: 'onabort', get: get_3102, set: set_3103}, {key: 'onerror', get: get_3104, set: set_3105}, {key: 'onload', get: get_3106, set: set_3107}, {key: 'onloadstart', get: get_3108, set: set_3109}, {key: 'onloadend', get: get_3110, set: set_3111}, {key: 'onprogress', get: get_3112, set: set_3113}]); function FileReader() { // fn#3086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:385, offset: 0x00c90c97, size: 152 bytes, params: 1, frame: 19 let value = environment.__proto__; env1_3(this, FileReader); const value3 = env1_6(FileReader); value = env1_5(this, _isNativeReflectConstruct_3082() ? global.Reflect.construct(value3, [], env1_6(this).constructor) : value3.apply(this, undefined)); value.EMPTY = 0; value.LOADING = 1; value.DONE = 2; value._aborted = false; value._reset(); return value; } function value_3088(a0) { // fn#3088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:807, offset: 0x00c90d4c, size: 286 bytes, params: 2, frame: 17 var _error; var defaultImport2; var value5; var defaultImport22; var defaultImport23; var defaultImport3; var value10; var defaultImport32; this._readyState = a0; let dispatchEvent = this.dispatchEvent; let value = environment.__proto__; const defaultImport = importDefault(201) /* metro dependency 201 */; const value2 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}}); const defaultImport4 = new defaultImport('readystatechange'); Reflect.apply(dispatchEvent, this, [defaultImport4 instanceof Object ? defaultImport4 : value2]); if (a0 === 2) { if (this._aborted) { dispatchEvent = this.dispatchEvent; defaultImport3 = defaultImport; value10 = Object.create(defaultImport3.prototype, {constructor: {value: defaultImport3}}); defaultImport32 = new defaultImport3('abort'); Reflect.apply(dispatchEvent, this, [defaultImport32 instanceof Object ? defaultImport32 : value10]); } else { _error = this._error; dispatchEvent = this.dispatchEvent; defaultImport2 = importDefault(201) /* metro dependency 201 */; value5 = Object.create(defaultImport2.prototype, {constructor: {value: defaultImport2}}); if (_error) { defaultImport23 = new defaultImport2('error'); Reflect.apply(dispatchEvent, this, [defaultImport23 instanceof Object ? defaultImport23 : value5]); } else { defaultImport22 = new defaultImport2('load'); Reflect.apply(dispatchEvent, this, [defaultImport22 instanceof Object ? defaultImport22 : value5]); } } dispatchEvent = this.dispatchEvent; value = importDefault(201) /* metro dependency 201 */; value = new value('loadend'); Reflect.apply(dispatchEvent, this, [value]); } } function value_3089(a0) { // fn#3089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:1143, offset: 0x00c90e6a, size: 126 bytes, params: 2, frame: 14 var environment; this._aborted = false; if (a0 == null) { throw new global.TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'"); } let value = environment.__proto__; value = Reflect.apply((importDefault(224) /* metro dependency 224 */).readAsDataURL, value, [a0.data]); value.then(_fun3090, _fun3091); function _fun3090(a0) { // fn#3090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:1360, offset: 0x00c90ee8, size: 110 bytes, params: 2, frame: 13 var property; var value3; var value4; var binding; if (!env0_0._aborted) { property = a0.split(',')[1]; value3 = environment.__proto__.__proto__; value4 = (require(206) /* metro dependency 206 */).toByteArray(property); binding = env0_0; binding._result = value4.buffer; binding._setReadyState(2); } } function _fun3091(a0) { // fn#3091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:1478, offset: 0x00c90f56, size: 47 bytes, params: 2, frame: 11 var binding; if (!env0_0._aborted) { binding = env0_0; binding._error = a0; binding._setReadyState(2); } } } function value_3092(a0) { // fn#3092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:1567, offset: 0x00c90f85, size: 126 bytes, params: 2, frame: 14 var environment; this._aborted = false; if (a0 == null) { throw new global.TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'"); } let value = environment.__proto__; value = Reflect.apply((importDefault(224) /* metro dependency 224 */).readAsDataURL, value, [a0.data]); value.then(_fun3093, _fun3094); function _fun3093(a0) { // fn#3093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:1776, offset: 0x00c91003, size: 47 bytes, params: 2, frame: 11 var binding; if (!env0_0._aborted) { binding = env0_0; binding._result = a0; binding._setReadyState(2); } } function _fun3094(a0) { // fn#3094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:1837, offset: 0x00c90f56, size: 47 bytes, params: 2, frame: 11 var binding; if (!env0_0._aborted) { binding = env0_0; binding._error = a0; binding._setReadyState(2); } } } function value_3095(a0) { // fn#3095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:1923, offset: 0x00c91032, size: 166 bytes, params: 2, frame: 18 var environment; let value = 'UTF-8'; const r5 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value; this._aborted = false; if (a0 == null) { throw new global.TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'"); } value = environment.__proto__; value = Reflect.apply((importDefault(224) /* metro dependency 224 */).readAsText, value, [a0.data, r5]); value.then(_fun3096, _fun3097); function _fun3096(a0) { // fn#3096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:2190, offset: 0x00c91003, size: 47 bytes, params: 2, frame: 11 var binding; if (!env0_0._aborted) { binding = env0_0; binding._result = a0; binding._setReadyState(2); } } function _fun3097(a0) { // fn#3097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:2251, offset: 0x00c90f56, size: 47 bytes, params: 2, frame: 11 var binding; if (!env0_0._aborted) { binding = env0_0; binding._error = a0; binding._setReadyState(2); } } } function get_3102() { // fn#3102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:2655, offset: 0x00c87fa8, size: 46 bytes, params: 1, frame: 13 const value = environment.__proto__; return (Module00199Module).getEventHandlerAttribute(this, 'abort'); } function set_3103(a0) { // fn#3103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:2729, offset: 0x00c87fd6, size: 50 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00199Module).setEventHandlerAttribute(this, 'abort', a0); } function get_3104() { // fn#3104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:2815, offset: 0x00c87f48, size: 46 bytes, params: 1, frame: 13 const value = environment.__proto__; return (Module00199Module).getEventHandlerAttribute(this, 'error'); } function set_3105(a0) { // fn#3105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:2889, offset: 0x00c87f76, size: 50 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00199Module).setEventHandlerAttribute(this, 'error', a0); } function get_3106() { // fn#3106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:2974, offset: 0x00c87dc4, size: 46 bytes, params: 1, frame: 13 const value = environment.__proto__; return (Module00199Module).getEventHandlerAttribute(this, 'load'); } function set_3107(a0) { // fn#3107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:3047, offset: 0x00c87df2, size: 50 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00199Module).setEventHandlerAttribute(this, 'load', a0); } function get_3108() { // fn#3108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:3136, offset: 0x00c87e24, size: 48 bytes, params: 1, frame: 13 const value = environment.__proto__; return (Module00199Module).getEventHandlerAttribute(this, 'loadstart'); } function set_3109(a0) { // fn#3109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:3214, offset: 0x00c87e54, size: 52 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00199Module).setEventHandlerAttribute(this, 'loadstart', a0); } function get_3110() { // fn#3110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:3306, offset: 0x00c88008, size: 48 bytes, params: 1, frame: 13 const value = environment.__proto__; return (Module00199Module).getEventHandlerAttribute(this, 'loadend'); } function set_3111(a0) { // fn#3111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:3382, offset: 0x00c88038, size: 52 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00199Module).setEventHandlerAttribute(this, 'loadend', a0); } function get_3112() { // fn#3112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:3473, offset: 0x00c87e88, size: 46 bytes, params: 1, frame: 13 const value = environment.__proto__; return (Module00199Module).getEventHandlerAttribute(this, 'progress'); } function set_3113(a0) { // fn#3113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:248:3550, offset: 0x00c87eb6, size: 50 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00199Module).setEventHandlerAttribute(this, 'progress', a0); } } } global.__d(_fun3081, 223, [6, 7, 15, 17, 18, 201, 224, 206, 199, 200]) /* metro module 223, dependencies: [6, 7, 15, 17, 18, 201, 224, 206, 199, 200] */;