106 lines
5.3 KiB
React
106 lines
5.3 KiB
React
/* Metro module 7433; source: unknown; dependencies: [7393, 7426] */
|
|
function _fun59980(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:6, offset: 0x016f872d, size: 66 bytes, params: 8, frame: 16
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.makePromiseBuffer = function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_2 = _fun59982;
|
|
return {$: [], add: _fun59983, drain: _fun59987};
|
|
};
|
|
}
|
|
|
|
function makePromiseBuffer_59981(a0) { // fn#59981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:99, offset: 0x016f876f, size: 54 bytes, params: 2, frame: 3
|
|
const env0_0 = a0;
|
|
return {$: [], add: add_59983, drain: drain};
|
|
}
|
|
|
|
function makePromiseBuffer_59981Remove(a0) { // fn#59982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:138, owner: makePromiseBuffer_59981.remove, offset: 0x016f87a5, size: 67 bytes, params: 2, frame: 13
|
|
const binding = env0_1;
|
|
const splice = binding.splice;
|
|
let value = binding.indexOf(a0);
|
|
value = Reflect.apply(splice, binding, [value, 1]);
|
|
return value[0] || global.Promise.resolve(undefined);
|
|
}
|
|
|
|
function makePromiseBuffer_59981Add(a0) { // fn#59983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:232, owner: makePromiseBuffer_59981.add, offset: 0x016f87e8, size: 202 bytes, params: 2, frame: 17
|
|
var environment;
|
|
var value6;
|
|
if (env0_0 === undefined || env0_1.length < env0_0) {
|
|
value6 = a0();
|
|
if (env0_1.indexOf(value6) === -1) {
|
|
env0_1.push(value6);
|
|
}
|
|
value6.then(_fun59984).then(null, _fun59985);
|
|
return value6;
|
|
}
|
|
let value = environment.__proto__;
|
|
value = require(7393) /* metro dependency 7393 */;
|
|
const rejectedSyncPromise = value.rejectedSyncPromise;
|
|
const SentryError = (require(7426) /* metro dependency 7426 */).SentryError;
|
|
const value4 = Object.create(SentryError.prototype, {constructor: {value: SentryError}});
|
|
const sentryError = new SentryError('Not adding Promise because buffer limit was reached.');
|
|
return Reflect.apply(rejectedSyncPromise, value, [sentryError instanceof Object ? sentryError : value4]);
|
|
}
|
|
|
|
function makePromiseBuffer_59981Drain(a0) { // fn#59987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:582, owner: makePromiseBuffer_59981.drain, offset: 0x016f88f4, size: 66 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
const SyncPromise = (require(7393) /* metro dependency 7393 */).SyncPromise;
|
|
value = Object.create(SyncPromise.prototype, {constructor: {value: SyncPromise}});
|
|
const syncPromise = new SyncPromise(_fun59988);
|
|
return syncPromise instanceof Object ? syncPromise : value;
|
|
}
|
|
|
|
function _fun59984() { // fn#59984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:474, offset: 0x016f88b2, size: 23 bytes, params: 1, frame: 11
|
|
return makePromiseBuffer_59981Remove(env0_0);
|
|
}
|
|
|
|
function _fun59985() { // fn#59985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:516, offset: 0x016f88c9, size: 43 bytes, params: 1, frame: 13
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
return makePromiseBuffer_59981Remove(env0_0).then(null, function() {
|
|
});
|
|
}
|
|
|
|
function _fun59988(a0, a1) { // fn#59988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:633, offset: 0x016f8936, size: 99 bytes, params: 3, frame: 15
|
|
var setTimeout;
|
|
var binding;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (env1_1.length) {
|
|
setTimeout = global.setTimeout;
|
|
binding = env0_0;
|
|
var env0_3 = setTimeout(_fun59989, binding);
|
|
binding = env1_1;
|
|
binding.forEach(_fun59990);
|
|
return undefined;
|
|
}
|
|
return a0(true);
|
|
}
|
|
|
|
function _fun59989() { // fn#59989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:699, offset: 0x016f8999, size: 43 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
if (env1_0 && env1_0 > 0) {
|
|
env0_0(false);
|
|
}
|
|
}
|
|
|
|
function _fun59990(a0) { // fn#59990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:740, offset: 0x016f89c4, size: 65 bytes, params: 2, frame: 14
|
|
var environment;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
value = require(7393) /* metro dependency 7393 */;
|
|
value = value.resolvedSyncPromise(a0);
|
|
value.then(_fun59991, require);
|
|
}
|
|
|
|
function _fun59991() { // fn#59991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7611:789, offset: 0x016f8a05, size: 51 bytes, params: 1, frame: 12
|
|
const lengthBinding = length;
|
|
if (!(typeof lengthBinding === 'bigint' ? lengthBinding - 1n : +lengthBinding - 1)) {
|
|
global.clearTimeout(env1_3);
|
|
env1_0(true);
|
|
}
|
|
}
|
|
|