114 lines
6.0 KiB
JavaScript
114 lines
6.0 KiB
JavaScript
/* Metro module 6949; source: unknown; dependencies: [4391, 598, 6950] */
|
|
import * as Module06950Module from './module-06950.js'; /* Metro dependency 6950 */
|
|
|
|
function _fun55273(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:6, offset: 0x0137a705, size: 66 bytes, params: 8, frame: 3
|
|
const env0_0 = require;
|
|
let Math = global.Math;
|
|
const env0_2 = Math.max;
|
|
Math = global.Math;
|
|
const env0_3 = Math.min;
|
|
module.exports = exports_55274;
|
|
function exports_55274(a0, a1, a2) { // fn#55274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:66, offset: 0x0137a747, size: 329 bytes, params: 4, frame: 20
|
|
var r2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const exports_55274Debounced2 = exports_55274Debounced;
|
|
let value = 0;
|
|
var env0_9;
|
|
const value2 = true;
|
|
if (typeof a0 !== 'function') {
|
|
throw new global.TypeError('Expected a function');
|
|
}
|
|
if ((require(598) /* metro dependency 598 */)(a2)) {
|
|
env0_9 = !!a2.leading;
|
|
if ('maxWait' in a2) {
|
|
value = max(require(dependencyMap[value])(a2.maxWait) || value, require(dependencyMap[value])(a1) || value);
|
|
}
|
|
r2 = 'trailing' in a2 ? !!a2.trailing : value2;
|
|
}
|
|
exports_55274Debounced2.cancel = cancel_55280;
|
|
exports_55274Debounced2.flush = flush_55281;
|
|
return exports_55274Debounced2;
|
|
function exports_55274InvokeFunc(a0) { // fn#55275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:193, owner: exports_55274.invokeFunc, offset: 0x00c47ad0, size: 49 bytes, params: 2, frame: 14
|
|
const binding = env0_2;
|
|
const binding2 = env0_3;
|
|
env0_8 = a0;
|
|
return env0_0.apply(binding2, binding);
|
|
}
|
|
|
|
function exports_55274ShouldInvoke(a0) { // fn#55276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:265, owner: exports_55274.shouldInvoke, offset: 0x00d0c35a, size: 75 bytes, params: 2, frame: 5
|
|
const value2 = a0 - env0_7;
|
|
let r0 = env0_7 === undefined || value2 >= require;
|
|
r0 = !r0 ? value2 < 0 : r0;
|
|
r0 = !r0 ? env0_10 && a0 - env0_8 >= env0_4 : r0;
|
|
return r0;
|
|
}
|
|
|
|
function exports_55274TimerExpired() { // fn#55277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:340, owner: exports_55274.timerExpired, offset: 0x00d0c3a5, size: 131 bytes, params: 1, frame: 19
|
|
const value = environment.__proto__;
|
|
const value2 = (Module06950Module)();
|
|
if (exports_55274ShouldInvoke(value2)) {
|
|
return exports_55274TrailingEdge(value2);
|
|
}
|
|
const setTimeout = global.setTimeout;
|
|
const exports_55274TimerExpiredBinding = exports_55274TimerExpired;
|
|
const value4 = require - (value2 - env0_7);
|
|
env0_6 = setTimeout(exports_55274TimerExpiredBinding, env0_10 ? min(value4, env0_4 - (value2 - env0_8)) : value4);
|
|
}
|
|
|
|
function exports_55274TrailingEdge(a0) { // fn#55278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:517, owner: exports_55274.trailingEdge, offset: 0x00c47bbb, size: 51 bytes, params: 2, frame: 12
|
|
return env0_11 && env0_2 ? exports_55274InvokeFunc(a0) : env0_5;
|
|
}
|
|
|
|
function exports_55274Debounced() { // fn#55279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:592, owner: exports_55274.debounced, offset: 0x00d0c428, size: 231 bytes, params: 1, frame: 15
|
|
var binding;
|
|
let value = environment.__proto__;
|
|
value = (require(6950) /* metro dependency 6950 */)();
|
|
const value3 = exports_55274ShouldInvoke(value);
|
|
env0_2 = arguments;
|
|
env0_7 = value;
|
|
if (value3) {
|
|
if (env0_6 === undefined) {
|
|
binding = env0_7;
|
|
env0_6 = global.setTimeout(exports_55274TimerExpired, require);
|
|
return env0_9 ? exports_55274InvokeFunc(binding) : env0_5;
|
|
}
|
|
if (env0_10) {
|
|
global.clearTimeout(env0_6);
|
|
env0_6 = global.setTimeout(exports_55274TimerExpired, require);
|
|
return exports_55274InvokeFunc(env0_7);
|
|
}
|
|
}
|
|
if (env0_6 === undefined) {
|
|
env0_6 = global.setTimeout(exports_55274TimerExpired, require);
|
|
}
|
|
return env0_5;
|
|
}
|
|
|
|
function exports_55274Cancel() { // fn#55280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:1055, owner: exports_55274.cancel, offset: 0x00d0c50f, size: 54 bytes, params: 1, frame: 12
|
|
if (env0_6 !== undefined) {
|
|
global.clearTimeout(env0_6);
|
|
}
|
|
}
|
|
|
|
function exports_55274Flush() { // fn#55281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7127:1137, owner: exports_55274.flush, offset: 0x00d0c545, size: 57 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var exports_55274TrailingEdgeBinding;
|
|
var value;
|
|
if (env0_6 === undefined) {
|
|
r0 = env0_5;
|
|
} else {
|
|
exports_55274TrailingEdgeBinding = exports_55274TrailingEdge;
|
|
value = environment.__proto__;
|
|
value = exports_55274TrailingEdgeBinding((require(6950) /* metro dependency 6950 */)());
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun55273, 6949, [4391, 598, 6950]) /* metro module 6949, dependencies: [4391, 598, 6950] */;
|