645 lines
33 KiB
JavaScript
645 lines
33 KiB
JavaScript
/* Metro module 345; source: unknown; dependencies: [346, 362, 363, 364, 365, 366, 367, 368, 358, 369, 370, 378, 379, 347, 377, 354, 380] */
|
|
import Module00346 from './module-00346.js'; /* Metro dependency 346 */
|
|
import FlushValue from './module-00347-flushValue.js'; /* Metro dependency 347 */
|
|
import Module00362 from './module-00362.js'; /* Metro dependency 362 */
|
|
import Module00363 from './module-00363.js'; /* Metro dependency 363 */
|
|
import Module00364 from './module-00364.js'; /* Metro dependency 364 */
|
|
import Module00365 from './module-00365.js'; /* Metro dependency 365 */
|
|
import Module00366 from './module-00366.js'; /* Metro dependency 366 */
|
|
import * as Module00377Module from './module-00377.js'; /* Metro dependency 377 */
|
|
|
|
function _fun5059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:6, offset: 0x00cd4936, size: 426 bytes, params: 8, frame: 24
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const _combineCallbacks = function(a0, a1) {
|
|
var value = a0;
|
|
var env0_0 = value;
|
|
var env0_1 = a1;
|
|
return value && a1.onComplete ? _fun5061 : value || a1.onComplete;
|
|
};
|
|
object = {Value: importDefault(347) /* metro dependency 347 */,
|
|
ValueXY: importDefault(367) /* metro dependency 367 */, Color: importDefault(368) /* metro dependency 368 */,
|
|
Interpolation: importDefault(354) /* metro dependency 354 */,
|
|
Node: importDefault(358) /* metro dependency 358 */, decay: decay, timing: timing, spring: spring,
|
|
add: add_5103, subtract: subtract_5104, divide: divide_5105, multiply: multiply_5106, modulo: modulo,
|
|
diffClamp: diffClamp, delay: delay, sequence: function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = 0;
|
|
return {start: _fun5085, stop: _fun5087, reset: _fun5088, _startNativeLoop: _fun5090,
|
|
_isUsingNativeDriver: _fun5091};
|
|
}, parallel: function(a0, a1) {
|
|
var value = a1;
|
|
var env0_0 = a0;
|
|
var env0_1 = 0;
|
|
var env0_2 = {};
|
|
var env0_3 = !(value && value.stopTogether === false);
|
|
return {start: _fun5093, stop: _fun5096, reset: _fun5098, _startNativeLoop: _fun5100,
|
|
_isUsingNativeDriver: _fun5101};
|
|
}, stagger: stagger, loop: loop, event: event,
|
|
createAnimatedComponent: importDefault(380) /* metro dependency 380 */};
|
|
object.attachNativeEvent = (require(377) /* metro dependency 377 */).attachNativeEventImpl;
|
|
object.forkEvent = forkEvent;
|
|
object.unforkEvent = function(a0, a1) {
|
|
var value = a0;
|
|
if (value && value instanceof require(dependencyMap[14]).AnimatedEvent) {
|
|
value.__removeListener(a1);
|
|
}
|
|
};
|
|
const AnimatedEvent = (require(377) /* metro dependency 377 */).AnimatedEvent;
|
|
object.Event = AnimatedEvent;
|
|
exports.default = object;
|
|
function _combineCallbacks(a0, a1) { // fn#5060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:102, offset: 0x00cd4ae0, size: 46 bytes, params: 3, frame: 4
|
|
const value = a0;
|
|
const env0_1 = a1;
|
|
return value && a1.onComplete ? _fun5061 : value || a1.onComplete;
|
|
function _fun5061() { // fn#5061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:157, offset: 0x00cd4b0e, size: 72 bytes, params: 1, frame: 16
|
|
if (require.onComplete) {
|
|
require.onComplete.apply(require, arguments);
|
|
}
|
|
if (env0_0) {
|
|
env0_0.apply(undefined, arguments);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function maybeVectorAnim(a0, a1, a2) { // fn#5062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:263, offset: 0x00cd4b56, size: 489 bytes, params: 4, frame: 30
|
|
var r10;
|
|
var r19;
|
|
var r8;
|
|
var r15;
|
|
var Object;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var property;
|
|
var r;
|
|
var g;
|
|
var b;
|
|
var a;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value14;
|
|
var value15;
|
|
var propertyName3;
|
|
var x;
|
|
var y;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
if (a0 instanceof (importDefault(367) /* metro dependency 367 */)) {
|
|
Object = global.Object;
|
|
value14 = Object.assign({}, a1);
|
|
Object = global.Object;
|
|
value15 = Object.assign({}, a1);
|
|
for (propertyName in a1) {
|
|
property = a1[propertyName];
|
|
x = property.x;
|
|
y = property.y;
|
|
value16 = x !== undefined;
|
|
if (!value16) {
|
|
r15 = value16;
|
|
continue;
|
|
}
|
|
value17 = y !== undefined;
|
|
r15 = value17;
|
|
if (!r15) {
|
|
r8 = propertyName3;
|
|
continue;
|
|
}
|
|
value14[propertyName] = x;
|
|
value15[propertyName] = y;
|
|
r8 = propertyName3;
|
|
}
|
|
x = a0.x;
|
|
value18 = a2(x, value14);
|
|
y = a0.y;
|
|
return parallel([value18, a2(y, value15)], {stopTogether: false});
|
|
}
|
|
if (a0 instanceof (importDefault(368) /* metro dependency 368 */)) {
|
|
Object = global.Object;
|
|
value2 = Object.assign({}, a1);
|
|
Object = global.Object;
|
|
value3 = Object.assign({}, a1);
|
|
Object = global.Object;
|
|
value4 = Object.assign({}, a1);
|
|
Object = global.Object;
|
|
value5 = Object.assign({}, a1);
|
|
for (propertyName in a1) {
|
|
property = a1[propertyName];
|
|
r = property.r;
|
|
g = property.g;
|
|
b = property.b;
|
|
a = property.a;
|
|
value6 = r !== undefined;
|
|
if (!value6) {
|
|
r19 = value6;
|
|
continue;
|
|
}
|
|
value7 = g !== undefined;
|
|
r19 = value7;
|
|
if (!r19) {
|
|
continue;
|
|
}
|
|
value8 = b !== undefined;
|
|
r19 = value8;
|
|
if (!r19) {
|
|
continue;
|
|
}
|
|
value9 = a !== undefined;
|
|
r19 = value9;
|
|
if (!r19) {
|
|
r10 = propertyName2;
|
|
continue;
|
|
}
|
|
value2[propertyName] = r;
|
|
value3[propertyName] = g;
|
|
value4[propertyName] = b;
|
|
value5[propertyName] = a;
|
|
r10 = propertyName2;
|
|
}
|
|
r = a0.r;
|
|
value10 = a2(r, value2);
|
|
g = a0.g;
|
|
value11 = a2(g, value3);
|
|
b = a0.b;
|
|
value12 = a2(b, value4);
|
|
a = a0.a;
|
|
return parallel([value10, value11, value12, a2(a, value5)], {stopTogether: false});
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function spring(a0, a1) { // fn#5063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:856, offset: 0x00cd4d3f, size: 104 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return maybeVectorAnim(a0, a1, spring) || ({start: start, stop: stop_5066, reset: reset_5067,
|
|
_startNativeLoop: _startNativeLoop, _isUsingNativeDriver: _isUsingNativeDriver});
|
|
function springStart(a0, a1, a2) { // fn#5064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:887, owner: spring.start, offset: 0x00cd4da7, size: 203 bytes, params: 4, frame: 22
|
|
var animate;
|
|
var track;
|
|
let value = environment.__proto__;
|
|
const value2 = _combineCallbacks(a2, a1);
|
|
a0.stopTracking();
|
|
if (a1.toValue instanceof (importDefault(358) /* metro dependency 358 */)) {
|
|
track = a0.track;
|
|
value = importDefault(369) /* metro dependency 369 */;
|
|
value = new value(a0, a1.toValue, importDefault(370) /* metro dependency 370 */, a1, value2);
|
|
Reflect.apply(track, a0, [value]);
|
|
} else {
|
|
animate = a0.animate;
|
|
value = importDefault(370) /* metro dependency 370 */;
|
|
value = new value(a1);
|
|
Reflect.apply(animate, a0, [value, value2]);
|
|
}
|
|
}
|
|
|
|
function springStart_5065(a0) { // fn#5065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1083, owner: spring.start, offset: 0x00cd4e72, size: 29 bytes, params: 2, frame: 15
|
|
springStart(env0_0, require, a0);
|
|
}
|
|
|
|
function springStop() { // fn#5066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1116, owner: spring.stop, offset: 0x00cd4e8f, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.stopAnimation();
|
|
}
|
|
|
|
function springReset() { // fn#5067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1157, owner: spring.reset, offset: 0x00cd4ea4, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.resetAnimation();
|
|
}
|
|
|
|
function spring_startNativeLoop(a0) { // fn#5068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1211, owner: spring._startNativeLoop, offset: 0x00cd4eb9, size: 57 bytes, params: 2, frame: 16
|
|
const Object = global.Object;
|
|
springStart(env0_0, Object.assign({}, require, {iterations: a0}));
|
|
}
|
|
|
|
function spring_isUsingNativeDriver() { // fn#5069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1310, owner: spring._isUsingNativeDriver, offset: 0x00cd4ef2, size: 20 bytes, params: 1, frame: 2
|
|
let useNativeDriver = require.useNativeDriver;
|
|
useNativeDriver = !!useNativeDriver && useNativeDriver;
|
|
return useNativeDriver;
|
|
}
|
|
|
|
}
|
|
|
|
function timing(a0, a1) { // fn#5070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1376, offset: 0x00cd4f06, size: 104 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return maybeVectorAnim(a0, a1, timing) || ({start: start, stop: stop_5073, reset: reset_5074,
|
|
_startNativeLoop: _startNativeLoop, _isUsingNativeDriver: _isUsingNativeDriver});
|
|
function timingStart(a0, a1, a2) { // fn#5071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1407, owner: timing.start, offset: 0x00cd4f6e, size: 203 bytes, params: 4, frame: 22
|
|
var animate;
|
|
var track;
|
|
let value = environment.__proto__;
|
|
const value2 = _combineCallbacks(a2, a1);
|
|
a0.stopTracking();
|
|
if (a1.toValue instanceof (importDefault(358) /* metro dependency 358 */)) {
|
|
track = a0.track;
|
|
value = importDefault(369) /* metro dependency 369 */;
|
|
value = new value(a0, a1.toValue, importDefault(378) /* metro dependency 378 */, a1, value2);
|
|
Reflect.apply(track, a0, [value]);
|
|
} else {
|
|
animate = a0.animate;
|
|
value = importDefault(378) /* metro dependency 378 */;
|
|
value = new value(a1);
|
|
Reflect.apply(animate, a0, [value, value2]);
|
|
}
|
|
}
|
|
|
|
function timingStart_5072(a0, a1) { // fn#5072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1603, owner: timing.start, offset: 0x00cd5039, size: 61 bytes, params: 3, frame: 17
|
|
const timingStartBinding = timingStart;
|
|
const binding = env0_0;
|
|
const Object = global.Object;
|
|
timingStartBinding(binding, Object.assign({}, require, {isLooping: a1}), a0);
|
|
}
|
|
|
|
function timingStop() { // fn#5073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1670, owner: timing.stop, offset: 0x00cd4e8f, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.stopAnimation();
|
|
}
|
|
|
|
function timingReset() { // fn#5074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1711, owner: timing.reset, offset: 0x00cd4ea4, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.resetAnimation();
|
|
}
|
|
|
|
function timing_startNativeLoop(a0) { // fn#5075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1765, owner: timing._startNativeLoop, offset: 0x00cd4eb9, size: 57 bytes, params: 2, frame: 16
|
|
const Object = global.Object;
|
|
timingStart(env0_0, Object.assign({}, require, {iterations: a0}));
|
|
}
|
|
|
|
function timing_isUsingNativeDriver() { // fn#5076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1864, owner: timing._isUsingNativeDriver, offset: 0x00cd4ef2, size: 20 bytes, params: 1, frame: 2
|
|
let useNativeDriver = require.useNativeDriver;
|
|
useNativeDriver = !!useNativeDriver && useNativeDriver;
|
|
return useNativeDriver;
|
|
}
|
|
|
|
}
|
|
|
|
function decay(a0, a1) { // fn#5077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1930, offset: 0x00cd5076, size: 104 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return maybeVectorAnim(a0, a1, decay) || ({start: start, stop: stop_5080, reset: reset_5081,
|
|
_startNativeLoop: _startNativeLoop, _isUsingNativeDriver: _isUsingNativeDriver});
|
|
function decayStart(a0, a1, a2) { // fn#5078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:1960, owner: decay.start, offset: 0x00cd50de, size: 91 bytes, params: 4, frame: 17
|
|
let value = environment.__proto__;
|
|
const value2 = _combineCallbacks(a2, a1);
|
|
a0.stopTracking();
|
|
const animate = a0.animate;
|
|
value = importDefault(379) /* metro dependency 379 */;
|
|
value = new value(a1);
|
|
Reflect.apply(animate, a0, [value, value2]);
|
|
}
|
|
|
|
function decayStart_5079(a0) { // fn#5079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2076, owner: decay.start, offset: 0x00cd4e72, size: 29 bytes, params: 2, frame: 15
|
|
decayStart(env0_0, require, a0);
|
|
}
|
|
|
|
function decayStop() { // fn#5080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2109, owner: decay.stop, offset: 0x00cd4e8f, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.stopAnimation();
|
|
}
|
|
|
|
function decayReset() { // fn#5081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2150, owner: decay.reset, offset: 0x00cd4ea4, size: 21 bytes, params: 1, frame: 9
|
|
env0_0.resetAnimation();
|
|
}
|
|
|
|
function decay_startNativeLoop(a0) { // fn#5082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2204, owner: decay._startNativeLoop, offset: 0x00cd4eb9, size: 57 bytes, params: 2, frame: 16
|
|
const Object = global.Object;
|
|
decayStart(env0_0, Object.assign({}, require, {iterations: a0}));
|
|
}
|
|
|
|
function decay_isUsingNativeDriver() { // fn#5083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2303, owner: decay._isUsingNativeDriver, offset: 0x00cd4ef2, size: 20 bytes, params: 1, frame: 2
|
|
let useNativeDriver = require.useNativeDriver;
|
|
useNativeDriver = !!useNativeDriver && useNativeDriver;
|
|
return useNativeDriver;
|
|
}
|
|
|
|
}
|
|
|
|
function sequence(a0) { // fn#5084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2369, offset: 0x00cd5139, size: 68 bytes, params: 2, frame: 3
|
|
const env0_0 = a0;
|
|
return {start: start, stop: stop_5087, reset: reset_5088, _startNativeLoop: function() {
|
|
var Error = global.Error;
|
|
throw new Error('Loops run using the native driver cannot contain Animated.sequence animations');
|
|
}, _isUsingNativeDriver: function() {
|
|
return false;
|
|
}};
|
|
function sequenceStart(a0, a1) { // fn#5085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2415, owner: sequence.start, offset: 0x00cd517d, size: 91 bytes, params: 3, frame: 15
|
|
const env0_0 = a0;
|
|
if (env0_0.length === 0) {
|
|
if (a0) {
|
|
a0({finished: true});
|
|
}
|
|
} else {
|
|
env0_0[a1].start(onComplete, a1);
|
|
}
|
|
function onComplete(a0) { // fn#5086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2441, owner: sequence.start.onComplete, offset: 0x00cd51d8, size: 131 bytes, params: 2, frame: 15
|
|
var value;
|
|
var binding;
|
|
var value2;
|
|
var property;
|
|
if (a0.finished) {
|
|
value = environment.__proto__;
|
|
binding = env1_1;
|
|
value2 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
env1_1 = value2;
|
|
if (value2 === env1_0.length) {
|
|
env1_1 = 0;
|
|
if (env0_0) {
|
|
env0_0(a0);
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env1_0;
|
|
property = binding[env1_1];
|
|
property.start(onComplete, require);
|
|
} else if (env0_0) {
|
|
env0_0(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function sequenceStop() { // fn#5087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2607, owner: sequence.stop, offset: 0x00cd525b, size: 46 bytes, params: 1, frame: 10
|
|
if (env0_1 < env0_0.length) {
|
|
env0_0[env0_1].stop();
|
|
}
|
|
}
|
|
|
|
function sequenceReset() { // fn#5088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2654, owner: sequence.reset, offset: 0x00cd5289, size: 34 bytes, params: 1, frame: 12
|
|
env0_0.forEach(_fun5089);
|
|
function _fun5089(a0, a1) { // fn#5089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2682, offset: 0x00cd52ab, size: 31 bytes, params: 3, frame: 10
|
|
if (a1 <= env1_1) {
|
|
a0.reset();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function parallel(a0, a1) { // fn#5092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2930, offset: 0x00cd52ee, size: 106 bytes, params: 3, frame: 4
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
const env0_2 = {};
|
|
const result = !(value && value.stopTogether === false);
|
|
return {start: start, stop: stop_5096, reset: reset_5098, _startNativeLoop: function() {
|
|
var Error = global.Error;
|
|
throw new Error('Loops run using the native driver cannot contain Animated.parallel animations');
|
|
}, _isUsingNativeDriver: function() {
|
|
return false;
|
|
}};
|
|
function parallelStart(a0, a1) { // fn#5093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3007, owner: parallel.start, offset: 0x00cd5358, size: 80 bytes, params: 3, frame: 13
|
|
const env0_0 = a0;
|
|
if (a1 !== env0_0.length) {
|
|
env0_0.forEach(_fun5094);
|
|
} else if (a0) {
|
|
a0({finished: true});
|
|
}
|
|
function _fun5094(a0, a1) { // fn#5094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3051, offset: 0x00cd53a8, size: 60 bytes, params: 3, frame: 13
|
|
const env0_0 = a1;
|
|
const cb2 = cb;
|
|
if (a0) {
|
|
a0.start(cb2, require);
|
|
} else {
|
|
cb2({finished: true});
|
|
}
|
|
function cb(a0) { // fn#5095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3071, offset: 0x00cd53e4, size: 115 bytes, params: 2, frame: 13
|
|
let binding = env2_2;
|
|
binding[require] = true;
|
|
binding = env2_1;
|
|
if ((typeof binding === 'bigint' ? binding + 1n : +binding + 1) === env2_0.length) {
|
|
value = environment.__proto__;
|
|
if (env1_0) {
|
|
env1_0(a0);
|
|
}
|
|
} else if (!a0.finished && result) {
|
|
env2_4.stop();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function parallelStop() { // fn#5096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3224, owner: parallel.stop, offset: 0x00cd5457, size: 28 bytes, params: 1, frame: 11
|
|
env0_0.forEach(_fun5097);
|
|
function _fun5097(a0, a1) { // fn#5097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3251, offset: 0x00cd5473, size: 47 bytes, params: 3, frame: 11
|
|
if (!env1_2[a1]) {
|
|
a0.stop();
|
|
}
|
|
env1_2[a1] = true;
|
|
}
|
|
|
|
}
|
|
|
|
function parallelReset() { // fn#5098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3299, owner: parallel.reset, offset: 0x00cd54a2, size: 28 bytes, params: 1, frame: 11
|
|
env0_0.forEach(_fun5099);
|
|
function _fun5099(a0, a1) { // fn#5099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3327, offset: 0x00cd54be, size: 39 bytes, params: 3, frame: 11
|
|
a0.reset();
|
|
env1_2[a1] = false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function delay(a0) { // fn#5102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3586, offset: 0x00cd5509, size: 78 bytes, params: 2, frame: 14
|
|
const timingBinding = timing;
|
|
let value = FlushValue;
|
|
value = new value(0);
|
|
return timingBinding(value, {'toValue': 0, 'delay': null, 'duration': 0, 'useNativeDriver': false, delay: a0});
|
|
}
|
|
|
|
function add_5103(a0, a1) { // fn#5103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3810, offset: 0x00cd5557, size: 52 bytes, params: 3, frame: 13
|
|
let value = Module00346;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(a0, a1);
|
|
return value instanceof Object ? value : value2;
|
|
}
|
|
|
|
function subtract_5104(a0, a1) { // fn#5104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3868, offset: 0x00cd558b, size: 53 bytes, params: 3, frame: 13
|
|
let value = Module00362;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(a0, a1);
|
|
return value instanceof Object ? value : value2;
|
|
}
|
|
|
|
function divide_5105(a0, a1) { // fn#5105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3929, offset: 0x00cd55c0, size: 53 bytes, params: 3, frame: 13
|
|
let value = Module00363;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(a0, a1);
|
|
return value instanceof Object ? value : value2;
|
|
}
|
|
|
|
function multiply_5106(a0, a1) { // fn#5106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3990, offset: 0x00cd55f5, size: 53 bytes, params: 3, frame: 13
|
|
let value = Module00364;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(a0, a1);
|
|
return value instanceof Object ? value : value2;
|
|
}
|
|
|
|
function modulo(a0, a1) { // fn#5107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4051, offset: 0x00cd562a, size: 53 bytes, params: 3, frame: 13
|
|
let value = Module00365;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(a0, a1);
|
|
return value instanceof Object ? value : value2;
|
|
}
|
|
|
|
function diffClamp(a0, a1, a2) { // fn#5108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4113, offset: 0x00cd565f, size: 56 bytes, params: 4, frame: 15
|
|
let value = Module00366;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value(a0, a1, a2);
|
|
return value instanceof Object ? value : value2;
|
|
}
|
|
|
|
function stagger(a0, a1) { // fn#5109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4210, offset: 0x00cd5697, size: 43 bytes, params: 3, frame: 12
|
|
const env0_0 = a0;
|
|
return parallel(a1.map(_fun5110));
|
|
function _fun5110(a0, a1) { // fn#5110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4252, offset: 0x00cd56c2, size: 54 bytes, params: 3, frame: 12
|
|
const value = environment.__proto__;
|
|
return sequence([delay(env0_0 * a1), a0]);
|
|
}
|
|
|
|
}
|
|
|
|
function loop(a0) { // fn#5111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4297, offset: 0x00cd56f8, size: 147 bytes, params: 2, frame: 6
|
|
const env0_0 = a0;
|
|
const r2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
const iterations = r2.iterations;
|
|
const env0_1 = iterations === undefined ? -1 : iterations;
|
|
const resetBeforeIteration = r2.resetBeforeIteration;
|
|
const env0_2 = resetBeforeIteration === undefined || resetBeforeIteration;
|
|
return {start: start, stop: stop_5114, reset: reset_5115, _startNativeLoop: function() {
|
|
var Error = global.Error;
|
|
throw new Error('Loops run using the native driver cannot contain Animated.loop animations');
|
|
}, _isUsingNativeDriver: _isUsingNativeDriver};
|
|
function loopStart(a0) { // fn#5112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4478, owner: loop.start, offset: 0x00cd578b, size: 107 bytes, params: 2, frame: 13
|
|
var binding;
|
|
const env0_0 = a0;
|
|
if (env0_0) {
|
|
if (env0_1 !== 0) {
|
|
binding = env0_0;
|
|
if (binding._isUsingNativeDriver()) {
|
|
env0_0._startNativeLoop(env0_1);
|
|
} else {
|
|
restart();
|
|
}
|
|
} else if (a0) {
|
|
a0({finished: true});
|
|
}
|
|
} else if (a0) {
|
|
a0({finished: true});
|
|
}
|
|
function restart() { // fn#5113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4502, owner: loop.start.restart, offset: 0x00cd57f6, size: 161 bytes, params: 1, frame: 16
|
|
var binding;
|
|
const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {finished: true};
|
|
const value = environment.__proto__;
|
|
if (env1_3) {
|
|
if (env0_0) {
|
|
env0_0(r2);
|
|
}
|
|
} else {
|
|
binding = env1_4;
|
|
if (binding === env1_1) {
|
|
if (env0_0) {
|
|
env0_0(r2);
|
|
}
|
|
} else if (r2.finished === false) {
|
|
if (env0_0) {
|
|
env0_0(r2);
|
|
}
|
|
} else {
|
|
binding = env1_4;
|
|
env1_4 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
if (env1_2) {
|
|
env1_0.reset();
|
|
}
|
|
binding = env1_0;
|
|
binding.start(restart, env1_1 === -1);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function loopStop() { // fn#5114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4754, owner: loop.stop, offset: 0x00cd5897, size: 27 bytes, params: 1, frame: 9
|
|
env0_0.stop();
|
|
}
|
|
|
|
function loopReset() { // fn#5115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4791, owner: loop.reset, offset: 0x00cd58b2, size: 33 bytes, params: 1, frame: 9
|
|
env0_0.reset();
|
|
}
|
|
|
|
function loop_isUsingNativeDriver() { // fn#5117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:4988, owner: loop._isUsingNativeDriver, offset: 0x00cd58f7, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0._isUsingNativeDriver();
|
|
}
|
|
|
|
}
|
|
|
|
function event(a0, a1) { // fn#5118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:5061, offset: 0x00cd590a, size: 81 bytes, params: 3, frame: 13
|
|
var r0;
|
|
const AnimatedEvent = (Module00377Module).AnimatedEvent;
|
|
let animatedEvent = new AnimatedEvent(a0, a1);
|
|
if (animatedEvent.__isNative) {
|
|
r0 = animatedEvent;
|
|
} else {
|
|
animatedEvent = animatedEvent.__getHandler();
|
|
r0 = animatedEvent;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function forkEvent(a0, a1) { // fn#5119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:5259, offset: 0x00cd595b, size: 86 bytes, params: 3, frame: 15
|
|
var r1;
|
|
var r0;
|
|
const value = a0;
|
|
const value2 = a1;
|
|
if (value) {
|
|
if (value instanceof (require(377) /* metro dependency 377 */).AnimatedEvent) {
|
|
value.__addListener(value2);
|
|
r1 = value;
|
|
} else {
|
|
r1 = _fun5120;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
function _fun5120() { // fn#5120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:5356, offset: 0x00cd59b1, size: 61 bytes, params: 1, frame: 15
|
|
if (typeof env0_0 === 'function') {
|
|
env0_0.apply(undefined, arguments);
|
|
}
|
|
require.apply(undefined, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function sequence_startNativeLoop() { // fn#5090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:2737, owner: sequence._startNativeLoop, offset: 0x00cd52ca, size: 36 bytes, params: 1, frame: 11
|
|
const Error = global.Error;
|
|
throw new Error('Loops run using the native driver cannot contain Animated.sequence animations');
|
|
}
|
|
|
|
function sequence_isUsingNativeDriver() { // fn#5091, owner: sequence._isUsingNativeDriver, offset: 0x00c3b9e0, size: 4 bytes, params: 1, frame: 1
|
|
return false;
|
|
}
|
|
|
|
function parallel_startNativeLoop() { // fn#5100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:386:3384, owner: parallel._startNativeLoop, offset: 0x00cd54e5, size: 36 bytes, params: 1, frame: 11
|
|
const Error = global.Error;
|
|
throw new Error('Loops run using the native driver cannot contain Animated.parallel animations');
|
|
}
|
|
|
|
function parallel_isUsingNativeDriver() { // fn#5101, owner: parallel._isUsingNativeDriver, offset: 0x00c3b9e0, size: 4 bytes, params: 1, frame: 1
|
|
return false;
|
|
}
|
|
|
|
global.__d(_fun5059, 345, [346, 362, 363, 364, 365, 366, 367, 368, 358, 369, 370, 378, 379, 347, 377, 354,
|
|
380]) /* metro module 345, dependencies: [346, 362, 363, 364, 365, 366, 367, 368, 358, 369, 370, 378, 379, 347, 377, 354, 380] */;
|