280 lines
14 KiB
JavaScript
280 lines
14 KiB
JavaScript
/* Metro module 455; source: unknown; dependencies: [] */
|
|
function _fun6070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:6, offset: 0x00ced743, size: 134 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = {centroidDimension: centroidDimension,
|
|
currentCentroidXOfTouchesChangedAfter: currentCentroidXOfTouchesChangedAfter,
|
|
currentCentroidYOfTouchesChangedAfter: currentCentroidYOfTouchesChangedAfter,
|
|
previousCentroidXOfTouchesChangedAfter: previousCentroidXOfTouchesChangedAfter,
|
|
previousCentroidYOfTouchesChangedAfter: previousCentroidYOfTouchesChangedAfter,
|
|
currentCentroidX: currentCentroidX, currentCentroidY: currentCentroidY, noCentroid: -1};
|
|
function centroidDimension(a0, a1, a2, a3) { // fn#6071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:118, offset: 0x00ced7c9, size: 325 bytes, params: 5, frame: 18
|
|
var r5;
|
|
var r4;
|
|
var r9;
|
|
var r10;
|
|
var r16;
|
|
var r3;
|
|
var r13;
|
|
var r14;
|
|
var r6;
|
|
var r1;
|
|
var r2;
|
|
var touchBank2;
|
|
var indexOfSingleActiveTouch;
|
|
var property;
|
|
var length;
|
|
var value3;
|
|
var touchActive;
|
|
var currentTimeStamp;
|
|
var currentPageY;
|
|
var previousPageX;
|
|
var previousPageY;
|
|
var currentPageX;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
const touchBank = a0.touchBank;
|
|
const numberActiveTouches = a0.numberActiveTouches;
|
|
let value = null;
|
|
const value2 = 1;
|
|
reducibleJoin2: while (true) {
|
|
if (value2 !== numberActiveTouches) {
|
|
r5 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
touchBank2 = a0.touchBank;
|
|
indexOfSingleActiveTouch = a0.indexOfSingleActiveTouch;
|
|
property = touchBank2[indexOfSingleActiveTouch];
|
|
r5 = property;
|
|
break reducibleJoin2;
|
|
}
|
|
if (value !== r5) {
|
|
touchActive = r5.touchActive;
|
|
reducibleJoin23: while (true) {
|
|
if (touchActive) {
|
|
currentTimeStamp = r5.currentTimeStamp;
|
|
value = currentTimeStamp > a1;
|
|
r3 = value;
|
|
break reducibleJoin23;
|
|
}
|
|
r3 = touchActive;
|
|
break reducibleJoin23;
|
|
}
|
|
value = 0;
|
|
reducibleJoin37: while (true) {
|
|
if (r3) {
|
|
reducibleJoin36: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (a3) {
|
|
if (a2) {
|
|
currentPageX = r5.currentPageX;
|
|
r3 = currentPageX;
|
|
break reducibleJoin36;
|
|
}
|
|
if (a3) {
|
|
if (!a2) {
|
|
currentPageY = r5.currentPageY;
|
|
r3 = currentPageY;
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin32: while (true) {
|
|
if (a3) {
|
|
break reducibleJoin32;
|
|
}
|
|
if (a2) {
|
|
previousPageX = r5.previousPageX;
|
|
r6 = previousPageX;
|
|
break reducibleJoin33;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
previousPageY = r5.previousPageY;
|
|
r6 = previousPageY;
|
|
break reducibleJoin33;
|
|
}
|
|
r3 = r6;
|
|
break reducibleJoin34;
|
|
}
|
|
if (a3) {
|
|
if (!a2) {
|
|
currentPageY = r5.currentPageY;
|
|
r3 = currentPageY;
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin32: while (true) {
|
|
if (a3) {
|
|
break reducibleJoin32;
|
|
}
|
|
if (a2) {
|
|
previousPageX = r5.previousPageX;
|
|
r6 = previousPageX;
|
|
break reducibleJoin33;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
previousPageY = r5.previousPageY;
|
|
r6 = previousPageY;
|
|
break reducibleJoin33;
|
|
}
|
|
r3 = r6;
|
|
break reducibleJoin34;
|
|
}
|
|
break reducibleJoin36;
|
|
}
|
|
value += r3;
|
|
r1 = value2;
|
|
r2 = value;
|
|
break reducibleJoin37;
|
|
}
|
|
r1 = value;
|
|
r2 = value;
|
|
break reducibleJoin37;
|
|
}
|
|
} else {
|
|
length = touchBank.length;
|
|
value3 = 0;
|
|
if (value3 < length) {
|
|
r4 = value3;
|
|
r9 = value3;
|
|
r10 = value3;
|
|
reducibleLoop4: while (true) {
|
|
property = touchBank[r4];
|
|
reducibleJoin20: while (true) {
|
|
if (value == property) {
|
|
r13 = r9;
|
|
r14 = r10;
|
|
break reducibleJoin20;
|
|
}
|
|
touchActive = property.touchActive;
|
|
if (touchActive) {
|
|
currentTimeStamp = property.currentTimeStamp;
|
|
if (currentTimeStamp >= a1) {
|
|
reducibleJoin19: while (true) {
|
|
reducibleJoin17: while (true) {
|
|
if (a3) {
|
|
if (a2) {
|
|
currentPageX = property.currentPageX;
|
|
r3 = currentPageX;
|
|
break reducibleJoin19;
|
|
}
|
|
if (a3) {
|
|
if (!a2) {
|
|
currentPageY = property.currentPageY;
|
|
r3 = currentPageY;
|
|
break reducibleJoin17;
|
|
}
|
|
}
|
|
reducibleJoin16: while (true) {
|
|
reducibleJoin15: while (true) {
|
|
if (a3) {
|
|
break reducibleJoin15;
|
|
}
|
|
if (a2) {
|
|
previousPageX = property.previousPageX;
|
|
r16 = previousPageX;
|
|
break reducibleJoin16;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
previousPageY = property.previousPageY;
|
|
r16 = previousPageY;
|
|
break reducibleJoin16;
|
|
}
|
|
r3 = r16;
|
|
break reducibleJoin17;
|
|
}
|
|
if (a3) {
|
|
if (!a2) {
|
|
currentPageY = property.currentPageY;
|
|
r3 = currentPageY;
|
|
break reducibleJoin17;
|
|
}
|
|
}
|
|
reducibleJoin16: while (true) {
|
|
reducibleJoin15: while (true) {
|
|
if (a3) {
|
|
break reducibleJoin15;
|
|
}
|
|
if (a2) {
|
|
previousPageX = property.previousPageX;
|
|
r16 = previousPageX;
|
|
break reducibleJoin16;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
previousPageY = property.previousPageY;
|
|
r16 = previousPageY;
|
|
break reducibleJoin16;
|
|
}
|
|
r3 = r16;
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
value4 = r10 + r3;
|
|
value5 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
r13 = value5;
|
|
r14 = value4;
|
|
break reducibleJoin20;
|
|
}
|
|
r13 = r9;
|
|
r14 = r10;
|
|
break reducibleJoin20;
|
|
}
|
|
r13 = r9;
|
|
r14 = r10;
|
|
break reducibleJoin20;
|
|
}
|
|
value6 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = touchBank.length;
|
|
if (value6 < length) {
|
|
r4 = value6;
|
|
r9 = r13;
|
|
r10 = r14;
|
|
continue reducibleLoop4;
|
|
}
|
|
r1 = r13;
|
|
r2 = r14;
|
|
break reducibleLoop4;
|
|
}
|
|
} else {
|
|
r1 = value3;
|
|
r2 = value3;
|
|
}
|
|
}
|
|
return r1 > 0 ? r2 / r1 : env0_0.noCentroid;
|
|
}
|
|
|
|
function currentCentroidXOfTouchesChangedAfter(a0, a1) { // fn#6072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:638, offset: 0x00ced90e, size: 32 bytes, params: 3, frame: 16
|
|
return env0_0.centroidDimension(a0, a1, true, true);
|
|
}
|
|
|
|
function currentCentroidYOfTouchesChangedAfter(a0, a1) { // fn#6073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:767, offset: 0x00ced92e, size: 32 bytes, params: 3, frame: 17
|
|
return env0_0.centroidDimension(a0, a1, false, true);
|
|
}
|
|
|
|
function previousCentroidXOfTouchesChangedAfter(a0, a1) { // fn#6074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:897, offset: 0x00ced94e, size: 32 bytes, params: 3, frame: 17
|
|
return env0_0.centroidDimension(a0, a1, true, false);
|
|
}
|
|
|
|
function previousCentroidYOfTouchesChangedAfter(a0, a1) { // fn#6075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:1028, offset: 0x00ced96e, size: 32 bytes, params: 3, frame: 16
|
|
return env0_0.centroidDimension(a0, a1, false, false);
|
|
}
|
|
|
|
function currentCentroidX(a0) { // fn#6076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:1137, offset: 0x00ced98e, size: 31 bytes, params: 2, frame: 16
|
|
return env0_0.centroidDimension(a0, 0, true, true);
|
|
}
|
|
|
|
function currentCentroidY(a0) { // fn#6077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:496:1222, offset: 0x00ced9ad, size: 31 bytes, params: 2, frame: 17
|
|
return env0_0.centroidDimension(a0, 0, false, true);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun6070, 455, []) /* metro module 455 */;
|