/* Metro module 3915; source: unknown; dependencies: [6, 7] */ function _fun32184(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4064:6, offset: 0x0100e1fb, size: 93 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_0 = importDefault(6) /* metro dependency 6 */; const env0_1 = importDefault(7) /* metro dependency 7 */; exports.RiveColor = _fun32185(); } function _fun32185() { // fn#32185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4064:121, offset: 0x0100e258, size: 133 bytes, params: 1, frame: 17 return env0_1(RiveColor, [{key: 'equals', value: function(a0) { var r1; var r0; if (a0) { r1 = this.r === a0.r && this.g === a0.g; r1 = r1 && this.b === a0.b; r1 = r1 && this.a === a0.a; r0 = r1; } else { r0 = !!a0; } return r0; }}, {key: 'toInt', value: function() { var value = 255 & this.a; var value2 = 255 & this.r; var value3 = 255 & this.g; var value4 = 255 & this.b; value <<= 24; value |= value2 << 16; return value | value3 << 8 | value4; }}], [{key: 'fromHexString', value: value_32189}, {key: 'fromInt', value: value_32190}]); } function RiveColor(a0, a1, a2, a3) { // fn#32186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4064:132, offset: 0x0100e2dd, size: 63 bytes, params: 5, frame: 13 env1_0(this, RiveColor); this.r = a0; this.g = a1; this.b = a2; this.a = a3; } function value_32189(a0) { // fn#32189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4064:477, offset: 0x0100e3c1, size: 301 bytes, params: 2, frame: 22 var r2; var riveColor; var parseInt; var slice; var int; var int2; var int3; let value = a0.replace(RegExp('^#', ''), ''); const regexp = RegExp('^[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$', ''); if (regexp.test(value)) { parseInt = global.parseInt; int = parseInt(value.slice(0, 2), 16); parseInt = global.parseInt; slice = value.slice; int2 = parseInt(Reflect.apply(slice, value, [2, 4]), 16); parseInt = global.parseInt; slice = value.slice; int3 = parseInt(Reflect.apply(slice, value, [4, 6]), 16); if (value.length !== 8) { r2 = 255; } else { value = global.parseInt(value.slice(6, 8), 16); r2 = value; } value = Object.create(RiveColor.prototype, {constructor: {value: RiveColor}}); riveColor = new RiveColor(); } else { global.console.warn('Rive invalid hex color: ' + a0); riveColor = new RiveColor(0, 0, 0, 255); } return riveColor instanceof Object ? riveColor : value; } function value_32190(a0) { // fn#32190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4064:844, offset: 0x0100e4ee, size: 72 bytes, params: 2, frame: 18 let value = a0 >> 16; const value2 = a0 >> 8; const value3 = 255 & a0; const value4 = a0 >> 24; const value5 = Object.create(RiveColor.prototype, {constructor: {value: RiveColor}}); value &= 255; const riveColor = new RiveColor(value, value2 & 255, value3, value4 & 255); return riveColor instanceof Object ? riveColor : value5; }