470 lines
20 KiB
React
470 lines
20 KiB
React
/* Metro module 374; source: unknown; dependencies: [57, 6, 7, 15, 17, 102, 18, 99, 100, 79, 375, 376, 358, 357] */
|
|
function _fun5552(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:6, offset: 0x00cdf877, size: 351 bytes, params: 8, frame: 19
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(102) /* metro dependency 102 */;
|
|
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
|
const env0_10 = importDefault(99) /* metro dependency 99 */;
|
|
let value = importDefault(100) /* metro dependency 100 */;
|
|
const env0_11 = value('originalStyleForWeb');
|
|
const env0_12 = value('nodeKeys');
|
|
const env0_13 = value('nodes');
|
|
const env0_14 = value('style');
|
|
value = importDefault(357) /* metro dependency 357 */;
|
|
value = _fun5558(value);
|
|
Object = global.Object;
|
|
const env0_15 = Object.prototype.hasOwnProperty;
|
|
Object = global.Object;
|
|
const env0_16 = Object.hasOwn ?? (function(a0, a1) {
|
|
return hasOwnProperty.call(a0, a1);
|
|
});
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_5553() { // fn#5553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:195, offset: 0x00cdf9d6, 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_5553_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _superPropGet_5556(a0, a1, a2, a3) { // fn#5556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:414, offset: 0x00cdfa34, size: 99 bytes, params: 5, frame: 18
|
|
let value = a0;
|
|
const env0_0 = a2;
|
|
const binding = env0_8;
|
|
value = env0_7(1 & 3 ? value.prototype : value);
|
|
value = binding(value, a1, a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun5557 : value;
|
|
}
|
|
|
|
function _fun5558(a0) { // fn#5558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:623, offset: 0x00cdfa97, size: 257 bytes, params: 2, frame: 17
|
|
const closure = AnimatedStyle;
|
|
env0_9(closure, a0);
|
|
return env0_5(closure, [{key: '__getValue', value: value_5560}, {key: '__getValueForStyle', value: function(a0) {
|
|
return a0;
|
|
}}, {key: '__replaceAnimatedNodeWithValues', value: value_5562}, {key: '__getAnimatedValue', value: value_5563},
|
|
{key: '__attach', value: value_5564}, {key: '__detach', value: value_5565}, {key: '__makeNative',
|
|
value: value_5566}, {key: '__getNativeConfig', value: value_5567}], [{key: 'from', value: value_5568}]);
|
|
}
|
|
|
|
function AnimatedStyle(a0, a1, a2, a3, a4) { // fn#5559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:635, offset: 0x00cdfb98, size: 294 bytes, params: 6, frame: 21
|
|
const value = environment.__proto__;
|
|
let binding = env1_4;
|
|
binding(this, AnimatedStyle);
|
|
const items = [a4];
|
|
const value3 = env1_7(AnimatedStyle);
|
|
const value6 = env1_6(this, _isNativeReflectConstruct_5553() ? global.Reflect.construct(value3, items,
|
|
env1_7(this).constructor) : value3.apply(this, items));
|
|
let Object = global.Object;
|
|
let defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [value6, env1_11, {writable: true, value: undefined}]);
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
binding = env1_12;
|
|
Reflect.apply(defineProperty, Object, [value6, binding, {writable: true, value: undefined}]);
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
const binding2 = env1_13;
|
|
Reflect.apply(defineProperty, Object, [value6, binding2, {writable: true, value: undefined}]);
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
const binding3 = env1_14;
|
|
Reflect.apply(defineProperty, Object, [value6, binding3, {writable: true, value: undefined}]);
|
|
const binding4 = env1_10;
|
|
binding4(value6, binding)[binding] = a0;
|
|
binding4(value6, binding2)[binding2] = a1;
|
|
binding4(value6, binding3)[binding3] = a2;
|
|
return value6;
|
|
}
|
|
|
|
function value_5560() { // fn#5560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:1183, offset: 0x00cdfcbe, size: 153 bytes, params: 1, frame: 21
|
|
var r3;
|
|
var property;
|
|
var binding3;
|
|
var property2;
|
|
var __getValue;
|
|
var value4;
|
|
const object2 = {};
|
|
const Object = global.Object;
|
|
const keys = Object.keys;
|
|
let binding = env1_10;
|
|
const binding2 = env1_14;
|
|
const value2 = Reflect.apply(keys, Object, [binding(this, binding2)[binding2]]);
|
|
const length = value2.length;
|
|
const value3 = 0;
|
|
if (value3 < length) {
|
|
r3 = value3;
|
|
while (true) {
|
|
property = value2[r3];
|
|
binding = env1_10;
|
|
binding3 = env1_14;
|
|
property2 = binding(this, binding3)[binding3][property];
|
|
if (property2 instanceof (importDefault(358) /* metro dependency 358 */)) {
|
|
__getValue = property2.__getValue;
|
|
object2[property] = Reflect.apply(__getValue, property2, []);
|
|
} else {
|
|
object2[property] = property2;
|
|
}
|
|
value4 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value4 < length) {
|
|
r3 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return this.__getValueForStyle(object2);
|
|
}
|
|
|
|
function value_5562(a0) { // fn#5562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:1503, offset: 0x00cdfd57, size: 258 bytes, params: 2, frame: 27
|
|
var r6;
|
|
var r12;
|
|
var property;
|
|
var binding;
|
|
var binding2;
|
|
var property2;
|
|
var __getValue;
|
|
var __getValueWithStaticObject;
|
|
var __getValueWithStaticTransforms;
|
|
var Array;
|
|
var isArray;
|
|
var property3;
|
|
var value4;
|
|
const Object = global.Object;
|
|
const value = Object.keys(a0);
|
|
const length = value.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r6 = value2;
|
|
reducibleLoop1: while (true) {
|
|
property = value[r6];
|
|
binding = env1_10;
|
|
binding2 = env1_14;
|
|
property2 = binding(this, binding2)[binding2][property];
|
|
reducibleJoin11: while (true) {
|
|
reducibleJoin3: while (true) {
|
|
if (property !== 'transform') {
|
|
break reducibleJoin3;
|
|
}
|
|
if (property2 instanceof (importDefault(376) /* metro dependency 376 */)) {
|
|
__getValueWithStaticTransforms = property2.__getValueWithStaticTransforms;
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [a0[property]])) {
|
|
property3 = a0[property];
|
|
r12 = property3;
|
|
} else {
|
|
r12 = [];
|
|
}
|
|
a0[property] = Reflect.apply(__getValueWithStaticTransforms, property2, [r12]);
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
if (property2 instanceof (importDefault(375) /* metro dependency 375 */)) {
|
|
__getValueWithStaticObject = property2.__getValueWithStaticObject;
|
|
a0[property] = Reflect.apply(__getValueWithStaticObject, property2, [a0[property]]);
|
|
break reducibleJoin11;
|
|
}
|
|
if (property2 instanceof (importDefault(358) /* metro dependency 358 */)) {
|
|
__getValue = property2.__getValue;
|
|
a0[property] = Reflect.apply(__getValue, property2, []);
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
value4 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (value4 < length) {
|
|
r6 = value4;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_5564() { // fn#5564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:2049, offset: 0x00cdfe59, size: 100 bytes, params: 1, frame: 19
|
|
var r2;
|
|
var property2;
|
|
var value3;
|
|
const value = environment.__proto__;
|
|
const binding = env1_10;
|
|
const binding2 = env1_13;
|
|
const property = binding(this, binding2)[binding2];
|
|
const length = property.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
for (r2 = value2; true; r2 = value3) {
|
|
property2 = property[r2];
|
|
property2.__addChild(this);
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value3 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
_superPropGet_5556(AnimatedStyle, '__attach', this, 3)([]);
|
|
}
|
|
|
|
function value_5565() { // fn#5565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:2213, offset: 0x00cdfebd, size: 100 bytes, params: 1, frame: 19
|
|
var r2;
|
|
var property2;
|
|
var value3;
|
|
const value = environment.__proto__;
|
|
const binding = env1_10;
|
|
const binding2 = env1_13;
|
|
const property = binding(this, binding2)[binding2];
|
|
const length = property.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
for (r2 = value2; true; r2 = value3) {
|
|
property2 = property[r2];
|
|
property2.__removeChild(this);
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value3 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
_superPropGet_5556(AnimatedStyle, '__detach', this, 3)([]);
|
|
}
|
|
|
|
function value_5566(a0) { // fn#5566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:2384, offset: 0x00cdff21, size: 107 bytes, params: 2, frame: 20
|
|
var r2;
|
|
var property2;
|
|
var value3;
|
|
const value = environment.__proto__;
|
|
const binding = env1_10;
|
|
const binding2 = env1_13;
|
|
const property = binding(this, binding2)[binding2];
|
|
const length = property.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
for (r2 = value2; true; r2 = value3) {
|
|
property2 = property[r2];
|
|
property2.__makeNative(a0);
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value3 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
_superPropGet_5556(AnimatedStyle, '__makeNative', this, 3)([a0]);
|
|
}
|
|
|
|
function value_5567() { // fn#5567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:2566, offset: 0x00cdff8c, size: 137 bytes, params: 1, frame: 19
|
|
var r0;
|
|
var property3;
|
|
var property4;
|
|
var __getNativeTag;
|
|
var value4;
|
|
const value = this.__getPlatformConfig();
|
|
const object3 = {};
|
|
const binding = env1_10;
|
|
const binding2 = env1_12;
|
|
const property = binding(this, binding2)[binding2];
|
|
const binding3 = env1_13;
|
|
const property2 = binding(this, binding3)[binding3];
|
|
const length = property2.length;
|
|
const value3 = 0;
|
|
if (value3 < length) {
|
|
for (r0 = value3; true; r0 = value4) {
|
|
property3 = property[r0];
|
|
property4 = property2[r0];
|
|
property4.__makeNative(value);
|
|
__getNativeTag = property4.__getNativeTag;
|
|
object3[property3] = Reflect.apply(__getNativeTag, property4, []);
|
|
value4 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (!(value4 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const object4 = {type: 'style', style: object3};
|
|
object4.debugID = this.__getDebugID();
|
|
return object4;
|
|
}
|
|
|
|
function value_5568(a0, a1, a2) { // fn#5568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:415:2830, offset: 0x00ce0015, size: 415 bytes, params: 4, frame: 36
|
|
var r8;
|
|
var r18;
|
|
var r21;
|
|
var r1;
|
|
var property;
|
|
var property2;
|
|
var defaultImport;
|
|
var from;
|
|
var value5;
|
|
var moduleValue;
|
|
var shouldUseAnimatedObjectForTransform;
|
|
var shouldUseAnimatedObjectForTransform2;
|
|
var defaultImport2;
|
|
var value6;
|
|
var defaultImport3;
|
|
var value7;
|
|
var push;
|
|
var value8;
|
|
var prototype;
|
|
var animatedStyle;
|
|
let value = null;
|
|
if (value == a0) {
|
|
return value;
|
|
}
|
|
const items3 = [];
|
|
const items2 = [];
|
|
const object2 = {};
|
|
const Object = global.Object;
|
|
const value2 = Object.keys(a0);
|
|
const length = value2.length;
|
|
const value3 = 0;
|
|
if (value3 < length) {
|
|
r8 = value3;
|
|
reducibleLoop2: while (true) {
|
|
property = value2[r8];
|
|
property2 = a0[property];
|
|
reducibleJoin17: while (true) {
|
|
reducibleJoin14: while (true) {
|
|
if (value == a1) {
|
|
if (value != property2) {
|
|
if (property === 'transform') {
|
|
moduleValue = importAll(79) /* metro dependency 79 */;
|
|
shouldUseAnimatedObjectForTransform = moduleValue.shouldUseAnimatedObjectForTransform;
|
|
shouldUseAnimatedObjectForTransform2 = Reflect.apply(shouldUseAnimatedObjectForTransform,
|
|
|
|
moduleValue,
|
|
[]);
|
|
if (shouldUseAnimatedObjectForTransform2) {
|
|
defaultImport3 = importDefault(375) /* metro dependency 375 */;
|
|
from = defaultImport3.from;
|
|
value7 = Reflect.apply(from, defaultImport3, [property2]);
|
|
r21 = value7;
|
|
} else {
|
|
defaultImport2 = importDefault(376) /* metro dependency 376 */;
|
|
from = defaultImport2.from;
|
|
value6 = Reflect.apply(from, defaultImport2, [property2]);
|
|
r21 = value6;
|
|
}
|
|
r18 = r21;
|
|
break reducibleJoin14;
|
|
}
|
|
}
|
|
reducibleJoin9: while (true) {
|
|
if (property2 instanceof (importDefault(358) /* metro dependency 358 */)) {
|
|
r18 = property2;
|
|
break reducibleJoin9;
|
|
}
|
|
defaultImport = importDefault(375) /* metro dependency 375 */;
|
|
from = defaultImport.from;
|
|
value5 = Reflect.apply(from, defaultImport, [property2]);
|
|
r18 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
if (env1_16(a1, property)) {
|
|
if (value != property2) {
|
|
if (property === 'transform') {
|
|
moduleValue = importAll(79) /* metro dependency 79 */;
|
|
shouldUseAnimatedObjectForTransform = moduleValue.shouldUseAnimatedObjectForTransform;
|
|
shouldUseAnimatedObjectForTransform2 = Reflect.apply(shouldUseAnimatedObjectForTransform,
|
|
|
|
moduleValue,
|
|
[]);
|
|
if (shouldUseAnimatedObjectForTransform2) {
|
|
defaultImport3 = importDefault(375) /* metro dependency 375 */;
|
|
from = defaultImport3.from;
|
|
value7 = Reflect.apply(from, defaultImport3, [property2]);
|
|
r21 = value7;
|
|
} else {
|
|
defaultImport2 = importDefault(376) /* metro dependency 376 */;
|
|
from = defaultImport2.from;
|
|
value6 = Reflect.apply(from, defaultImport2, [property2]);
|
|
r21 = value6;
|
|
}
|
|
r18 = r21;
|
|
break reducibleJoin14;
|
|
}
|
|
}
|
|
reducibleJoin9: while (true) {
|
|
if (property2 instanceof (importDefault(358) /* metro dependency 358 */)) {
|
|
r18 = property2;
|
|
break reducibleJoin9;
|
|
}
|
|
defaultImport = importDefault(375) /* metro dependency 375 */;
|
|
from = defaultImport.from;
|
|
value5 = Reflect.apply(from, defaultImport, [property2]);
|
|
r18 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
object2[property] = property2;
|
|
break reducibleJoin17;
|
|
}
|
|
if (value == r18) {
|
|
object2[property] = property2;
|
|
break reducibleJoin17;
|
|
}
|
|
push = items3.push;
|
|
Reflect.apply(push, items3, [property]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [r18]);
|
|
object2[property] = r18;
|
|
break reducibleJoin17;
|
|
}
|
|
value8 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
if (value8 < length) {
|
|
r8 = value8;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
const value9 = env1_3([items3, items2, object2], 3);
|
|
property = value9[value3];
|
|
const property3 = value9[1];
|
|
reducibleJoin20: while (true) {
|
|
if (value3 === property3.length) {
|
|
r1 = value;
|
|
break reducibleJoin20;
|
|
}
|
|
value = environment;
|
|
prototype = AnimatedStyle.prototype;
|
|
value = Object.create(prototype, {constructor: {value: AnimatedStyle}});
|
|
animatedStyle = new AnimatedStyle(property, property3, value9[2], a2);
|
|
value = animatedStyle instanceof Object ? animatedStyle : value;
|
|
r1 = value;
|
|
break reducibleJoin20;
|
|
}
|
|
return r1;
|
|
}
|
|
|