302 lines
11 KiB
React
302 lines
11 KiB
React
/* Metro module 1756; source: unknown; dependencies: [1635, 1621] */
|
|
function _fun19384(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:6, offset: 0x00ea83f8, size: 222 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const closure = function(a0) {
|
|
var Object = global.Object;
|
|
return Object.values(a0).reduce(_fun19386, '');
|
|
};
|
|
const areWorkletsEqual = function(a0, a1) {
|
|
var r0;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var property = a0.__workletHash;
|
|
if (property === a1.__workletHash) {
|
|
property = global.Object;
|
|
value = property.keys(a0.__closure);
|
|
property = global.Object;
|
|
value2 = property.keys(a1.__closure);
|
|
property = value.length;
|
|
value3 = property === value2.length;
|
|
if (value3) {
|
|
value = value.every(_fun19388);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
return false;
|
|
};
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const closure2 = isAnimated;
|
|
closure2.__closure = {};
|
|
closure2.__workletHash = 4296700641760;
|
|
closure2.__initData = {code: "function isAnimated_Pnpm_utilsTs1(prop){const isAnimated_Pnpm_utilsTs1=this._recur;if(Array.isArray(prop)){return prop.some(isAnimated_Pnpm_utilsTs1);}else if(typeof prop==='object'&&prop!==null){if(prop.onFrame!==undefined){return true;}else{return Object.values(prop).some(isAnimated_Pnpm_utilsTs1);}}return false;}"};
|
|
object = {code: 'function shallowEqual_Pnpm_utilsTs2(a,b){const aKeys=Object.keys(a);const bKeys=Object.keys(b);if(aKeys.length!==bKeys.length){return false;}for(let i=0;i<aKeys.length;i++){if(a[aKeys[i]]!==b[aKeys[i]]){return false;}}return true;}'};
|
|
let value = _fun19390();
|
|
object = {code: 'function validateAnimatedStyles_Pnpm_utilsTs3(styles){if(typeof styles!==\'object\'){throw new ReanimatedError("`useAnimatedStyle` has to return an object, found "+typeof styles+" instead.");}else if(Array.isArray(styles)){throw new ReanimatedError(\'`useAnimatedStyle` has to return an object and cannot return static styles combined with dynamic ones. Please do merging where a component receives props.\');}}'};
|
|
let value2 = _fun19392();
|
|
exports.buildWorkletsHash = closure;
|
|
exports.buildDependencies = buildDependencies;
|
|
exports.areDependenciesEqual = areDependenciesEqual;
|
|
exports.isAnimated = closure2;
|
|
exports.shallowEqual = value;
|
|
exports.validateAnimatedStyles = value2;
|
|
}
|
|
|
|
function buildWorkletsHash(a0) { // fn#19385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:45, offset: 0x00ea84d6, size: 46 bytes, params: 2, frame: 13
|
|
const Object = global.Object;
|
|
return Object.values(a0).reduce(function(a0, {__workletHash}) {
|
|
return a0 + __workletHash.toString();
|
|
}, '');
|
|
}
|
|
|
|
function areWorkletsEqual(a0, a1) { // fn#19387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:163, offset: 0x00ea851e, size: 113 bytes, params: 3, frame: 14
|
|
var r0;
|
|
var Object;
|
|
var keys;
|
|
var __closure;
|
|
var value;
|
|
var value3;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (a0.__workletHash === a1.__workletHash) {
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
__closure = a0.__closure;
|
|
value = Reflect.apply(keys, Object, [__closure]);
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
__closure = a1.__closure;
|
|
value3 = value.length === Reflect.apply(keys, Object, [__closure]).length;
|
|
if (value3) {
|
|
value = value.every(_fun19388);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function isAnimated(a0) { // fn#19389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:798, offset: 0x00ea85c5, size: 121 bytes, params: 2, frame: 14
|
|
var r0;
|
|
var r1;
|
|
var value;
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
r0 = a0.some(isAnimated);
|
|
} else {
|
|
value = typeof a0 === 'object';
|
|
r0 = value && a0 !== null;
|
|
if (r0) {
|
|
value = a0.onFrame !== undefined;
|
|
if (value) {
|
|
r1 = value;
|
|
} else {
|
|
value = global.Object.values(a0);
|
|
value = value.some(isAnimated);
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun19390() { // fn#19390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:1240, offset: 0x00ea863e, size: 46 bytes, params: 1, frame: 2
|
|
const closure = function(a0, a1) {
|
|
var r1;
|
|
var value4;
|
|
var property = global.Object;
|
|
var value = property.keys(a0);
|
|
if (value.length !== global.Object.keys(a1).length) {
|
|
return false;
|
|
}
|
|
var value3 = 0;
|
|
if (value3 < value.length) {
|
|
r1 = value3;
|
|
loopExit2: while (true) {
|
|
property = a0[value[r1]];
|
|
if (property !== a1[value[r1]]) {
|
|
return false;
|
|
}
|
|
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value4 < value.length) {
|
|
r1 = value4;
|
|
continue;
|
|
}
|
|
break loopExit2;
|
|
}
|
|
}
|
|
return true;
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 6945711106539;
|
|
closure.__initData = env0_3;
|
|
return closure;
|
|
}
|
|
|
|
function _fun19392() { // fn#19392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:1918, offset: 0x00ea86dc, size: 46 bytes, params: 1, frame: 2
|
|
const closure = validateAnimatedStyles;
|
|
closure.__closure = {};
|
|
closure.__workletHash = 9250446401049;
|
|
closure.__initData = env0_4;
|
|
return closure;
|
|
}
|
|
|
|
function buildDependencies(a0, a1) { // fn#19394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:2447, offset: 0x00ea87c0, size: 76 bytes, params: 3, frame: 14
|
|
var r0;
|
|
const value = a0;
|
|
const Object = global.Object;
|
|
const value3 = Object.values(a1).filter(function(a0) {
|
|
return a0 !== undefined;
|
|
});
|
|
if (value) {
|
|
value.push(buildWorkletsHash(value3));
|
|
r0 = value;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function areDependenciesEqual(a0, a1) { // fn#19396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:2611, offset: 0x00ea880c, size: 227 bytes, params: 3, frame: 23
|
|
var environment;
|
|
var r2;
|
|
var r0;
|
|
var length;
|
|
var length2;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var property;
|
|
var property2;
|
|
var moduleValue;
|
|
var isWorkletFunction;
|
|
var moduleValue2;
|
|
var value5;
|
|
const Object = global.Object;
|
|
const r8 = typeof Object.is === 'function' ? global.Object.is : function(a0, a1) {
|
|
var r1;
|
|
var r0;
|
|
var value = a0 === a1;
|
|
if (value) {
|
|
value = a0 !== 0;
|
|
if (value) {
|
|
r1 = value;
|
|
} else {
|
|
value = 1 / a0;
|
|
value = value === 1 / a1;
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
r0 = !r0 ? global.Number.isNaN(a0) && global.Number.isNaN(a1) : r0;
|
|
return r0;
|
|
};
|
|
let value = false;
|
|
reducibleJoin12: while (true) {
|
|
if (!a0) {
|
|
r0 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
if (!a1) {
|
|
r0 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
length = a1.length;
|
|
length2 = a0.length;
|
|
if (length !== length2) {
|
|
r0 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
length = a1.length;
|
|
value2 = 0;
|
|
value3 = environment;
|
|
value4 = true;
|
|
if (!(value2 < length)) {
|
|
r0 = value4;
|
|
break reducibleJoin12;
|
|
}
|
|
r2 = value2;
|
|
reducibleLoop7: while (true) {
|
|
property = a0[r2];
|
|
property2 = a1[r2];
|
|
if (!r8(property, property2)) {
|
|
moduleValue = require(dependencyMap[value2]);
|
|
isWorkletFunction = moduleValue.isWorkletFunction;
|
|
reducibleJoin11: while (true) {
|
|
reducibleJoin12: while (true) {
|
|
if (Reflect.apply(isWorkletFunction, moduleValue, [property])) {
|
|
moduleValue2 = require(dependencyMap[value2]);
|
|
isWorkletFunction = moduleValue2.isWorkletFunction;
|
|
if (Reflect.apply(isWorkletFunction, moduleValue2, [property2])) {
|
|
if (areWorkletsEqual(property, property2)) {
|
|
break reducibleJoin11;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
return r0;
|
|
}
|
|
}
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a1.length;
|
|
if (value5 < length) {
|
|
r2 = value5;
|
|
continue reducibleLoop7;
|
|
}
|
|
r0 = value4;
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun19388(a0) { // fn#19388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:327, offset: 0x00ea858f, size: 54 bytes, params: 2, frame: 4
|
|
var r0;
|
|
var property;
|
|
let __closure = require.__closure;
|
|
const value2 = a0 in __closure;
|
|
if (value2) {
|
|
__closure = env0_0.__closure;
|
|
property = __closure[a0];
|
|
__closure = require.__closure;
|
|
r0 = property === __closure[a0];
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function validateAnimatedStyles(a0) { // fn#19393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1883:1935, offset: 0x00ea870a, size: 182 bytes, params: 2, frame: 14
|
|
const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError;
|
|
var value2;
|
|
let value = typeof a0;
|
|
if (value !== 'object') {
|
|
value2 = environment.__proto__;
|
|
value = '`useAnimatedStyle` has to return an object, found ' + value + ' instead.';
|
|
throw new ReanimatedError(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
value = environment.__proto__;
|
|
throw new ReanimatedError('`useAnimatedStyle` has to return an object and cannot return static styles combined with dynamic ones. Please do merging where a component receives props.');
|
|
}
|
|
}
|
|
|