/* Metro module 354; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 355, 44, 39, 38, 348, 357] */ 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 Module00038 from './module-00038.js'; /* Metro dependency 38 */ import Module00039 from './module-00039.js'; /* Metro dependency 39 */ import Module00044 from './module-00044.js'; /* Metro dependency 44 */ import Module00102 from './module-00102.js'; /* Metro dependency 102 */ function _fun5224(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:6, offset: 0x00cd7c2e, size: 232 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_8 = RegExp('[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?', 'g'); exports.default = _fun5233(importDefault(357) /* metro dependency 357 */); function _isNativeReflectConstruct_5225() { // fn#5225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:168, offset: 0x00cd7d16, 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_5225_isNativeReflectConstruct = function() { return !!result; })(); } function _superPropGet_5228(a0, a1, a2, a3) { // fn#5228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:387, offset: 0x00cd7d74, size: 99 bytes, params: 5, frame: 18 let value = a0; const env0_0 = a2; value = Module00017(1 & 3 ? value.prototype : value); value = Module00102(value, a1, a2); return 2 & 3 ? typeof value !== 'function' ? value : _fun5229 : value; function _fun5229(a0) { // fn#5229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:486, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13 return env0_1.apply(importDefault, a0); } } function createNumericInterpolation(a0) { // fn#5230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:521, offset: 0x00cd7dd7, size: 174 bytes, params: 2, frame: 14 var linear; var extrapolate; const env0_0 = a0.outputRange; const env0_1 = a0.inputRange; if (!a0.easing) { linear = (importDefault(355) /* metro dependency 355 */).linear; } let extrapolateLeft = a0.extrapolateLeft; if (extrapolateLeft !== undefined) { extrapolateLeft = a0.extrapolateLeft; } else { extrapolate = a0.extrapolate; extrapolate = extrapolate !== undefined ? a0.extrapolate : extrapolate; } let extrapolateRight = a0.extrapolateRight; if (extrapolateRight !== undefined) { extrapolateRight = a0.extrapolateRight; } else { extrapolate = a0.extrapolate; if (extrapolate !== undefined) { extrapolate = a0.extrapolate; } } return _fun5231; function _fun5231(a0) { // fn#5231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:836, offset: 0x00cd7e85, size: 362 bytes, params: 2, frame: 21 var r6; var r2; var r11; var r9; var r5; var r0; var value5; let value = a0; (Module00044)(typeof value === 'number', 'Cannot interpolation an input which is not a number'); const inputRangeBinding = inputRange; let length = inputRangeBinding.length; const value4 = 1; if (value4 < length - value4) { if (inputRangeBinding[value4] >= value) { r2 = value4; } else { r6 = value4; while (true) { value5 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; length = inputRangeBinding.length; if (!(value5 < length - value4)) { r2 = value5; break; } if (inputRangeBinding[value5] >= value) { r2 = value5; break; } r6 = value5; continue; } } } else { r2 = value4; } const value6 = r2 - value4; const property = inputRangeBinding[value6]; const value7 = value6 + value4; const property2 = inputRangeBinding[value7]; const outputRangeBinding = outputRange; const property3 = outputRangeBinding[value6]; const property4 = outputRangeBinding[value7]; if (value < property) { if (CreateClass === 'identity') { r0 = value; } else { r11 = CreateClass !== 'clamp' ? value : property; if (r11 > property2) { if (PossibleConstructorReturn === 'identity') { r0 = r11; } else { r9 = PossibleConstructorReturn !== 'clamp' ? r11 : property2; if (property3 === property4) { r0 = property3; } else if (property === property2) { r0 = value <= property ? property3 : property4; } else { if (property === -Infinity) { r6 = -r9; } else if (property2 === Infinity) { r6 = r9 - property; } else { value = r9 - property; value /= property2 - property; r6 = value; } value = ClassCallCheck(r6); if (property3 === -Infinity) { value = -value; r5 = value; } else if (property4 === Infinity) { value += property3; r5 = value; } else { value = value * (property4 - property3) + property3; r5 = value; } r0 = r5; } } } else { r9 = r11; if (property3 === property4) { r0 = property3; } else if (property === property2) { r0 = value <= property ? property3 : property4; } else { if (property === -Infinity) { r6 = -r9; } else if (property2 === Infinity) { r6 = r9 - property; } else { value = r9 - property; value /= property2 - property; r6 = value; } value = ClassCallCheck(r6); if (property3 === -Infinity) { value = -value; r5 = value; } else if (property4 === Infinity) { value += property3; r5 = value; } else { value = value * (property4 - property3) + property3; r5 = value; } r0 = r5; } } } } else { r11 = value; if (r11 > property2) { if (PossibleConstructorReturn === 'identity') { r0 = r11; } else { r9 = PossibleConstructorReturn !== 'clamp' ? r11 : property2; if (property3 === property4) { r0 = property3; } else if (property === property2) { r0 = value <= property ? property3 : property4; } else { if (property === -Infinity) { r6 = -r9; } else if (property2 === Infinity) { r6 = r9 - property; } else { value = r9 - property; value /= property2 - property; r6 = value; } value = ClassCallCheck(r6); if (property3 === -Infinity) { value = -value; r5 = value; } else if (property4 === Infinity) { value += property3; r5 = value; } else { value = value * (property4 - property3) + property3; r5 = value; } r0 = r5; } } } else { r9 = r11; if (property3 === property4) { r0 = property3; } else if (property === property2) { r0 = value <= property ? property3 : property4; } else { if (property === -Infinity) { r6 = -r9; } else if (property2 === Infinity) { r6 = r9 - property; } else { value = r9 - property; value /= property2 - property; r6 = value; } value = ClassCallCheck(r6); if (property3 === -Infinity) { value = -value; r5 = value; } else if (property4 === Infinity) { value += property3; r5 = value; } else { value = value * (property4 - property3) + property3; r5 = value; } r0 = r5; } } } return r0; } } function mapStringToNumericComponents(a0) { // fn#5232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:1408, offset: 0x00cd7fef, size: 426 bytes, params: 2, frame: 25 var r5; var r10; var r6; var r2; var index; var push; var substring; var parseFloat; var length; var value7; var value8; const value2 = (Module00039)(a0); (importDefault(44) /* metro dependency 44 */)(value2 == null || typeof value2 !== 'object', 'PlatformColors are not supported'); if (typeof value2 === 'number') { r2 = value2 || 0; return {isColor: true, components: [(4278190080 & r2) >>> 24, (16711680 & r2) >>> 16, (65280 & r2) >>> 8, (255 & r2) / 255]}; } const items2 = []; let binding = env0_8; const value5 = binding.exec(a0); const value6 = 0; if (value5 != null) { r5 = value6; r10 = value5; while (true) { index = r10.index; if (index > r5) { push = items2.push; substring = a0.substring; Reflect.apply(push, items2, [Reflect.apply(substring, a0, [r5, r10.index])]); } push = items2.push; parseFloat = global.parseFloat; Reflect.apply(push, items2, [parseFloat(r10[value6])]); index = r10.index; length = r10[value6].length; value7 = index + length; binding = env0_8; value8 = binding.exec(a0); if (value8 != null) { r5 = value7; r10 = value8; continue; } r6 = value7; break; } } else { r6 = value6; } (importDefault(44) /* metro dependency 44 */)(items2.length > value6, 'outputRange must contain color or value with numeric component'); if (r6 < a0.length) { items2.push(a0.substring(r6, a0.length)); } return {isColor: false, components: items2}; } function _fun5233(a0) { // fn#5233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:1963, offset: 0x00cd8199, size: 206 bytes, params: 2, frame: 16 const AnimatedInterpolation2 = AnimatedInterpolation; Inherits(AnimatedInterpolation2, a0); return CreateClass(AnimatedInterpolation2, [{key: '_getInterpolation', value: value_5235}, {key: '__makeNative', value: value_5246}, {key: '__getValue', value: function() { var value = this._parent.__getValue(); importDefault(dependencyMap[7])(typeof value === 'number', 'Cannot interpolate an input which is not a number.'); return this._getInterpolation()(value); }}, {key: 'interpolate', value: value_5248}, {key: '__attach', value: value_5249}, {key: '__detach', value: value_5250}, {key: '__getNativeConfig', value: value_5251}]); function AnimatedInterpolation(a0, a1) { // fn#5234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:1975, offset: 0x00cd8267, size: 130 bytes, params: 3, frame: 20 let value = environment.__proto__; env1_2(this, AnimatedInterpolation); const items2 = [a1]; const value3 = env1_5(AnimatedInterpolation); value = env1_4(this, _isNativeReflectConstruct_5225() ? global.Reflect.construct(value3, items2, env1_5(this).constructor) : value3.apply(this, items2)); value._parent = a0; value._config = a1; return value; } function value_5235() { // fn#5235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:2336, offset: 0x00cd82e9, size: 100 bytes, params: 1, frame: 12 var environment; var _config; var value; if (!this._interpolation) { _config = this._config; if (_config.outputRange) { if (typeof _config.outputRange[0] === 'string') { this._interpolation = createStringInterpolation(_config); } else { value = environment.__proto__; this._interpolation = createNumericInterpolation(_config); } } else { value = environment.__proto__; this._interpolation = createNumericInterpolation(_config); } } return this._interpolation; function createStringInterpolation(a0) { // fn#5236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:2478, owner: value_5235.createStringInterpolation, offset: 0x00cd834d, size: 163 bytes, params: 2, frame: 16 var environment; const env0_0 = a0; let value = environment.__proto__.__proto__; const defaultImport = Module00044; let outputRange = a0.outputRange; defaultImport(outputRange.length >= 2, 'Bad output range'); outputRange = a0.outputRange; const isColor = outputRange.map(mapStringToNumericComponents)[0].isColor; value = value.map(_fun5237); const env0_4 = value[0].map(_fun5239); return isColor ? _fun5241 : _fun5243; function _fun5237({components}) { // fn#5237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:2647, offset: 0x00cd83f0, size: 43 bytes, params: 2, frame: 11 return isColor ? components : components.filter(function(a0) { return typeof a0 === 'number'; }); } function _fun5239(a0, a1) { // fn#5239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:2757, offset: 0x00cd842b, size: 80 bytes, params: 3, frame: 18 var environment; const env0_0 = a1; const value = environment.__proto__.__proto__.__proto__; const createNumericInterpolationBinding = createNumericInterpolation; const Object = global.Object; const assign = Object.assign; const binding = env0_0; const object = {}; object.outputRange = CreateClass.map(function(a0) { return a0[require]; }); return createNumericInterpolationBinding(Reflect.apply(assign, Object, [{}, binding, object])); } function _fun5241(a0) { // fn#5241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:2886, offset: 0x00cd847b, size: 104 bytes, params: 2, frame: 23 const env0_0 = a0; const value = env0_4.map(_fun5242); return 'rgba(' + value[0] + ', ' + value[1] + ', ' + value[2] + ', ' + value[3] + ')'; function _fun5242(a0, a1) { // fn#5242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:2911, offset: 0x00cd84e3, size: 81 bytes, params: 3, frame: 13 var r0; var Math; let value = a0(env0_0); if (a1 < 3) { value = global.Math.round(value); r0 = value; } else { Math = global.Math; value = Math.round(1000 * value) / 1000; r0 = value; } return r0; } } function _fun5243(a0) { // fn#5243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3036, offset: 0x00cd8534, size: 86 bytes, params: 2, frame: 13 const env0_0 = a0; return env0_4.map(_fun5244)[0].components.map(_fun5245).join(''); function _fun5244(a0) { // fn#5244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3061, offset: 0x00c44018, size: 19 bytes, params: 2, frame: 11 return a0(env0_0); } function _fun5245(a0) { // fn#5245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3120, offset: 0x00cd858a, size: 41 bytes, params: 2, frame: 5 const value = a0; return typeof value !== 'number' ? value : env0_1[typeof ClassCallCheck === 'bigint' ? ClassCallCheck : +ClassCallCheck]; } } } } function value_5246(a0) { // fn#5246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3288, offset: 0x00cd85b3, size: 70 bytes, params: 2, frame: 18 this._parent.__makeNative(a0); const value = environment.__proto__; _superPropGet_5228(AnimatedInterpolation, '__makeNative', this, 3)([a0]); } function value_5248(a0) { // fn#5248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3630, offset: 0x00cd864d, size: 35 bytes, params: 2, frame: 13 const value = Object.create(AnimatedInterpolation.prototype, {constructor: {value: AnimatedInterpolation}}); const animatedInterpolation = new AnimatedInterpolation(this, a0); return animatedInterpolation instanceof Object ? animatedInterpolation : value; } function value_5249() { // fn#5249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3719, offset: 0x00cd8670, size: 63 bytes, params: 1, frame: 17 this._parent.__addChild(this); const value = environment.__proto__; _superPropGet_5228(AnimatedInterpolation, '__attach', this, 3)([]); } function value_5250() { // fn#5250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3852, offset: 0x00cd86af, size: 63 bytes, params: 1, frame: 17 this._parent.__removeChild(this); const value = environment.__proto__; _superPropGet_5228(AnimatedInterpolation, '__detach', this, 3)([]); } function value_5251() { // fn#5251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:3997, offset: 0x00cd86ee, size: 196 bytes, params: 1, frame: 14 const outputRange = this._config.outputRange; const env0_0 = null; const r3 = typeof outputRange[0] !== 'string' ? outputRange : outputRange.map(_fun5252); const object = {}; object.inputRange = this._config.inputRange; object.outputRange = r3; object.outputType = env0_0; let r1 = this._config.extrapolateLeft || this._config.extrapolate; r1 = !r1 ? 'extend' : r1; object.extrapolateLeft = r1; r1 = this._config.extrapolateRight || this._config.extrapolate; r1 = !r1 ? 'extend' : r1; object.extrapolateRight = r1; object.type = 'interpolation'; object.debugID = this.__getDebugID(); return object; function _fun5252(a0) { // fn#5252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:395:4103, offset: 0x00cd87b2, size: 93 bytes, params: 2, frame: 14 var r0; let value = environment.__proto__.__proto__; const value2 = (Module00038)(a0); if (typeof value2 === 'number') { r0 = value2; } else { value = importDefault(348) /* metro dependency 348 */; value = value.transformDataType(a0); r0 = value; } return r0; } } } } global.__d(_fun5224, 354, [6, 7, 15, 17, 102, 18, 355, 44, 39, 38, 348, 357]) /* metro module 354, dependencies: [6, 7, 15, 17, 102, 18, 355, 44, 39, 38, 348, 357] */;