1577 lines
66 KiB
TypeScript
1577 lines
66 KiB
TypeScript
/* Metro module 4885; source: modules/cache/CacheStore.tsx; dependencies: [57, 6, 7, 15, 17, 18, 5, 4257, 1226, 1934, 3969, 661, 3, 587, 1931, 4886, 4900, 14, 20, 1930, 4901, 4902, 4903, 4904, 4905, 5226, 5247, 566, 694, 1929, 5233, 5240, 5238, 5230, 1870, 5248, 477, 1355, 5250, 1926, 2] */
|
|
function _fun42843(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6, offset: 0x01143c7a, size: 621 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const closure = LOGOUT_42847;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
|
const env0_9 = importDefault(5) /* metro dependency 5 */;
|
|
const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */;
|
|
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
|
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
|
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
|
let value = require(661) /* metro dependency 661: Constants */;
|
|
const env0_14 = value.MAX_MESSAGES_PER_CHANNEL;
|
|
const env0_15 = value.CACHE_STORE_KEY;
|
|
const env0_16 = value.CACHE_STORE_LAZY_KEY;
|
|
const env0_17 = value.CACHE_STORE_CHANNELS_LAZY_KEY;
|
|
value = importDefault(3) /* metro dependency 3: Logger */;
|
|
value = new value('CacheStore');
|
|
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
|
_fun42905(Store).displayName = 'CacheStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: function() {
|
|
env0_23 = true;
|
|
env0_24 = true;
|
|
return false;
|
|
}, LOGOUT: closure, CONNECTION_CLOSED: function() {
|
|
env0_23 = false;
|
|
env0_24 = true;
|
|
return false;
|
|
}, CACHE_LOADED: function() {
|
|
env0_22 = true;
|
|
}, CACHE_LOADED_LAZY: function() {
|
|
env0_22 = true;
|
|
env0_20 = 'cache-loaded';
|
|
}, CACHE_LOADED_LAZY_NO_CACHE: function() {
|
|
env0_20 = 'no-cache';
|
|
}, CLEAR_CACHES: closure, WRITE_CACHES: WRITE_CACHES});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/cache/CacheStore.tsx');
|
|
exports.default = value;
|
|
exports.ENABLE_CACHE_STORE = true;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_42844() { // fn#42844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:328, offset: 0x01143ee7, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_42844_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function CLEAR_CACHES_42847(a0) { // fn#42847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:596, offset: 0x01143f45, size: 194 bytes, params: 2, frame: 17
|
|
env0_18.log('Clearing cache store');
|
|
const Date = global.Date;
|
|
env0_21 = Date.now();
|
|
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
|
Storage.remove(CACHE_STORE_KEY);
|
|
Storage.remove(CACHE_STORE_LAZY_KEY);
|
|
Storage.remove(CACHE_STORE_CHANNELS_LAZY_KEY);
|
|
if (a0.type === 'CLEAR_CACHES' && a0.preventWritingCachesAgainThisSession) {
|
|
}
|
|
}
|
|
|
|
function _loadChannelHistory() { // fn#42848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:835, offset: 0x01144007, size: 48 bytes, params: 1, frame: 14
|
|
return env0_9(_fun42850).apply(this, arguments);
|
|
}
|
|
|
|
function _loadEarlyCache() { // fn#42851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:1476, offset: 0x01144216, size: 48 bytes, params: 1, frame: 14
|
|
return env0_9(_fun42853).apply(this, arguments);
|
|
}
|
|
|
|
function _loadInitialGuilds() { // fn#42871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:4712, offset: 0x01144bd4, size: 48 bytes, params: 1, frame: 14
|
|
return env0_9(_fun42873).apply(this, arguments);
|
|
}
|
|
|
|
function _loadInitialGuildChannels() { // fn#42877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5285, offset: 0x01144e03, size: 48 bytes, params: 1, frame: 14
|
|
return env0_9(_fun42879).apply(this, arguments);
|
|
}
|
|
|
|
function _loadLateLazyCache() { // fn#42881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5815, offset: 0x01144fb3, size: 48 bytes, params: 1, frame: 14
|
|
return env0_9(_fun42883).apply(this, arguments);
|
|
}
|
|
|
|
function resumeFluxAndSocket(a0) { // fn#42902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:9645, offset: 0x01145bc4, size: 125 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = GatewayConnectionStore.getSocket();
|
|
const env0_2 = false;
|
|
const Emitter = (importDefault(566) /* metro dependency 566: flux */).Emitter;
|
|
Emitter.batched(_fun42903);
|
|
if (!env0_2) {
|
|
(importDefault(14) /* metro dependency 14: TTITracker */).loadLazyCache.recordEnd();
|
|
}
|
|
}
|
|
|
|
function _fun42905(a0) { // fn#42905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:10305, offset: 0x01145db9, size: 205 bytes, params: 2, frame: 17
|
|
const closure = CacheStoreClass;
|
|
env0_8(closure, a0);
|
|
const binding = env0_5;
|
|
const items2 = [{key: 'initialize', value: function() {
|
|
this.waitFor(AuthenticationStore, GatewayConnectionStore, SelectedChannelStore, SelectedGuildStore);
|
|
}}];
|
|
items2[1] = {key: 'hasCache', value: value_42908};
|
|
items2[2] = {key: 'getLazyCacheStatus', value: value_42909};
|
|
items2[3] = {key: 'lastWriteTime', get: get_42910};
|
|
items2[4] = {key: 'canWriteCaches', value: value_42911};
|
|
const env0_0 = env0_9(_fun42913);
|
|
items2[5] = {key: 'loadCacheAsync', value: value_42920};
|
|
return binding(closure, items2);
|
|
}
|
|
|
|
function WRITE_CACHES() { // fn#42926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:12651, offset: 0x0114630c, size: 156 bytes, params: 1, frame: 16
|
|
env0_18.verbose('Writing cache now');
|
|
const Date = global.Date;
|
|
env0_21 = Date.now();
|
|
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
|
Storage.remove(CACHE_STORE_KEY);
|
|
Storage.remove(CACHE_STORE_CHANNELS_LAZY_KEY);
|
|
Storage.remove(CACHE_STORE_LAZY_KEY);
|
|
}
|
|
|
|
function* _fun42850(a0, a1, a2) { // fn#42850, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:896, offset: 0x01144040, size: 470 bytes, params: 4, frame: 30
|
|
var value3;
|
|
var binding;
|
|
var verbose;
|
|
var object2;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var messages;
|
|
var binding2;
|
|
var value8;
|
|
var recordChannelFetchedLocal;
|
|
var INITIAL_MESSAGE_FETCH_KEY;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
let performance = global.performance;
|
|
value = performance.now();
|
|
if (a0 == null) {
|
|
value3 = environment.__proto__.__proto__;
|
|
} else if (a2 != null) {
|
|
value4 = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
value5 = binding(env2_2[15]);
|
|
yield value5.startupLoad(a0, a1, a2, env2_14);
|
|
value6 = undefined;
|
|
if (false) {
|
|
return value6;
|
|
}
|
|
binding = env2_18;
|
|
verbose = binding.verbose;
|
|
messages = value6.messages;
|
|
Reflect.apply(verbose, binding,
|
|
['loaded ' + messages.length + ' messages (guild: ' + a1 + ', channel: ' + a2 + ').']);
|
|
object2 = {guildId: a1, channelId: a2};
|
|
object2.users = value6.users;
|
|
object2.members = value6.members;
|
|
messages = value6.messages;
|
|
object2.messages = messages;
|
|
binding = env2_1;
|
|
binding2 = env2_2;
|
|
value8 = binding(binding2[16]);
|
|
recordChannelFetchedLocal = value8.recordChannelFetchedLocal;
|
|
binding = env2_0;
|
|
INITIAL_MESSAGE_FETCH_KEY = binding(binding2[16]).INITIAL_MESSAGE_FETCH_KEY;
|
|
binding = env2_14;
|
|
messages = value6.messages;
|
|
Reflect.apply(recordChannelFetchedLocal, value8, [a2, INITIAL_MESSAGE_FETCH_KEY, null, null, binding,
|
|
messages]);
|
|
performance = global.performance;
|
|
value = performance.now() - value;
|
|
return [value, object2];
|
|
}
|
|
env2_18.verbose('skipped loaded messages (channel: ' + a2 + ', database: ' + a0 + ').');
|
|
performance = global.performance;
|
|
value = performance.now() - value;
|
|
return [value, {'guildId': null, 'channelId': null, users: [], members: [], messages: []}];
|
|
}
|
|
|
|
function* _fun42853(a0, a1, a2) { // fn#42853, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:1529, offset: 0x0114424f, size: 1520 bytes, params: 4, frame: 90
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
value = undefined;
|
|
let binding = env2_18;
|
|
let verbose = binding.verbose;
|
|
Reflect.apply(verbose, binding, ['loading early cache']);
|
|
env2_10.getSocket().connect();
|
|
const guildId3 = env2_13.getGuildId();
|
|
const value6 = null;
|
|
const r48 = value6 != guildId3 ? guildId3 : value6;
|
|
const channelId2 = env2_12.getChannelId();
|
|
const r47 = value6 != channelId2 ? channelId2 : value6;
|
|
let performance = global.performance;
|
|
const value8 = performance.now();
|
|
binding = env2_1;
|
|
const binding2 = env2_2;
|
|
const value9 = binding(binding2[17]).loadCachedMessages.measureAsyncWithoutNesting(_fun42854);
|
|
const value10 = binding(binding2[17]).fetchGuildCache.measureAsync(_fun42856);
|
|
const value11 = binding(binding2[17]).fetchGuildCache.measureAsync(_fun42858);
|
|
const r14 = value6 != a0 ? env2_1(env2_2[18]).timeAsync('💾', 'cache: private_channels',
|
|
_fun42860) : global.Promise.resolve([]);
|
|
const r13 = value6 == a0 ? global.Promise.resolve({}) : env2_1(env2_2[18]).timeAsync('💾', 'cache: user_settings',
|
|
_fun42861);
|
|
let r11 = value6 == a0 ? global.Promise.resolve([]) : env2_1(env2_2[18]).timeAsync('💾', 'cache: read_states',
|
|
_fun42862);
|
|
const r9 = value6 == a0 ? global.Promise.resolve([]) : env2_1(env2_2[18]).timeAsync('💾',
|
|
'cache: user_guild_settings', _fun42863);
|
|
binding = env2_1;
|
|
const binding3 = env2_2;
|
|
binding(binding3[23])('AllCacheStores', _fun42864);
|
|
binding(binding3[23])('MobileAppDatabaseManager', _fun42865);
|
|
let Promise = global.Promise;
|
|
yield Promise.all([value9, value10, value11, r14, r13, r11, r9]);
|
|
const value26 = undefined;
|
|
if (false) {
|
|
return value26;
|
|
}
|
|
const value28 = env2_3(value26, 7);
|
|
const value29 = env2_3(value28[0], 2);
|
|
const property = value29[0];
|
|
const property2 = value29[1];
|
|
const property3 = value28[1];
|
|
const property4 = value28[2];
|
|
const property5 = value28[3];
|
|
const property6 = value28[4];
|
|
const property7 = value28[5];
|
|
const property8 = value28[6];
|
|
performance = global.performance;
|
|
env2_18.verbose('cache loaded in ' + (performance.now() - value8) + 'ms (channel_history ' + property + 'ms)');
|
|
if (value6 == property2) {
|
|
binding = env2_1;
|
|
binding(env2_2[26])('database:history_cache_null');
|
|
binding = env2_18;
|
|
binding.verbose('finished without dispatching CACHE_LOADED');
|
|
return [false, value6, 0];
|
|
}
|
|
let Object = global.Object;
|
|
const fromEntries = Object.fromEntries;
|
|
const members = property2.members;
|
|
const env0_12 = Reflect.apply(fromEntries, Object, [members.map(function(a0) {
|
|
var userId = a0.userId;
|
|
return [userId, a0];
|
|
})]);
|
|
let guildId = property4.guildId;
|
|
r11 = value6 != guildId && value6 != property4.channels;
|
|
guildId = property4.guildId;
|
|
Promise = global.Promise;
|
|
const value33 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun42867);
|
|
yield promise instanceof Object ? promise : value33;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_18;
|
|
verbose = binding.verbose;
|
|
const JSON = global.JSON;
|
|
const value37 = JSON.stringify(a2);
|
|
const value38 = value6 != a0;
|
|
const name = value6 == a0 ? value : a0.name;
|
|
const length2 = property5.length;
|
|
const guildId2 = property2.guildId;
|
|
const channelId = property2.channelId;
|
|
const length3 = property2.messages.length;
|
|
const length4 = property2.members.length;
|
|
const users = property2.users;
|
|
const length5 = users.length;
|
|
const channels = property4.channels;
|
|
const length = value6 == channels ? value : channels.length;
|
|
Object = global.Object;
|
|
Reflect.apply(verbose, binding,
|
|
['early_cache_summary: (\n ok: true\n meta:\n auth_user_id: ' + a1 + '\n selected_guild: ' + r48 + '\n selected_channel: ' + r47 + '\n navigation_state: ' + value37 + '\n database: ' + value38 + '\n name: ' + name + '\n data:\n database:\n private_channels: ' + length2 + '\n channel_history:\n guild: ' + guildId2 + '\n channel: ' + channelId + '\n messages: ' + length3 + '\n members: ' + length4 + '\n users: ' + length5 + '\n initial_guild:\n id: ' + guildId + '\n channels: ' + length + '\n user_settings: ' + Object.keys(property6).length + '\n read_states: ' + property7.length + '\n user_guild_settings: ' + property8.length + '\n )']);
|
|
env2_1(env2_2[17]).setEarlyCacheInfo({guilds: property3.length});
|
|
env2_18.verbose('finished dispatching CACHE_LOADED');
|
|
return [true, r11 && value6 != guildId ? guildId : value6, property5.length];
|
|
}
|
|
|
|
function* _fun42873(a0, a1) { // fn#42873, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:4771, offset: 0x01144c0d, size: 348 bytes, params: 3, frame: 18
|
|
var environment;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
if (a0 == null) {
|
|
return [];
|
|
}
|
|
const page = a1.page;
|
|
env2_25 = page === 'private-channels' || page === 'guild-channels' || page === 'other' && a1.guildId === '@me' || env2_25;
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_25) {
|
|
value = env2_0(env2_2[29]);
|
|
yield value.tryLoadAsync(_fun42874);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value ?? [];
|
|
}
|
|
const value3 = env2_1(env2_2[31]);
|
|
const getCommittedVersions = value3.getCommittedVersions;
|
|
yield Reflect.apply(getCommittedVersions, value3, []);
|
|
const value4 = undefined;
|
|
if (false) {
|
|
return value4;
|
|
}
|
|
const r7 = value4.initial_guild_id ?? a1.guildId;
|
|
if (r7 == null) {
|
|
return [];
|
|
}
|
|
if (r7 === '@me') {
|
|
return [];
|
|
}
|
|
value = env2_0(env2_2[29]);
|
|
yield value.tryLoadAsync(_fun42876);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value != null ? [value] : [];
|
|
}
|
|
|
|
function* _fun42879(a0, a1) { // fn#42879, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5358, offset: 0x01144e3c, size: 325 bytes, params: 3, frame: 23
|
|
var environment;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
if (a0 == null) {
|
|
return global.Promise.resolve({'channels': null, 'guildId': null});
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const value3 = env2_1(env2_2[31]);
|
|
const getCommittedVersions = value3.getCommittedVersions;
|
|
yield Reflect.apply(getCommittedVersions, value3, []);
|
|
const value4 = undefined;
|
|
if (false) {
|
|
return value4;
|
|
}
|
|
const initial_guild_id = value4.initial_guild_id;
|
|
const r9 = initial_guild_id == null && a1.page === 'guild-channels' ? a1.guildId : initial_guild_id;
|
|
if (a0 == null) {
|
|
env2_18.verbose('skipped loading initial guild (guild: ' + r9 + ', database: ' + a0 + ')');
|
|
return global.Promise.resolve({'channels': null, 'guildId': null});
|
|
}
|
|
if (r9 == null) {
|
|
env2_18.verbose('skipped loading initial guild (guild: ' + r9 + ', database: ' + a0 + ')');
|
|
return global.Promise.resolve({'channels': null, 'guildId': null});
|
|
}
|
|
value = env2_0(env2_2[29]);
|
|
yield value.tryLoadAsync(_fun42880);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return {channels: value, guildId: r9};
|
|
}
|
|
|
|
function* _fun42883(a0, a1, a2, a3) { // fn#42883, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5874, offset: 0x01144fec, size: 465 bytes, params: 5, frame: 24
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
value = undefined;
|
|
var env0_8;
|
|
let binding = env2_18;
|
|
let verbose = binding.verbose;
|
|
Reflect.apply(verbose, binding, ['loading late lazy cache']);
|
|
const fetchLazyCache = env2_1(env2_2[17]).fetchLazyCache;
|
|
yield fetchLazyCache.measureAsync(_fun42884);
|
|
const value4 = undefined;
|
|
if (false) {
|
|
return value4;
|
|
}
|
|
const value6 = env2_3(value4, 3);
|
|
const value7 = 0;
|
|
const env0_4 = value6[value7];
|
|
const env0_5 = value6[1];
|
|
const env0_6 = value6[2];
|
|
const fetchStaleChannels = env2_1(env2_2[17]).fetchStaleChannels;
|
|
yield fetchStaleChannels.measureAsync(_fun42891);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const DelayLoadLateLazyCacheHoldoutExperiment = env2_0(env2_2[34]).DelayLoadLateLazyCacheHoldoutExperiment;
|
|
const cachedEnabled = DelayLoadLateLazyCacheHoldoutExperiment.getCachedEnabled();
|
|
verbose = env2_18.verbose;
|
|
if (cachedEnabled) {
|
|
Reflect.apply(verbose, binding, ['loadLateLazyCache: not yielding to react']);
|
|
binding = env2_1;
|
|
binding(env2_2[17]).loadLazyCache.recordStart();
|
|
binding = env2_10;
|
|
env0_8 = binding.getSocket();
|
|
binding = env2_32;
|
|
binding(_fun42896);
|
|
} else {
|
|
Reflect.apply(verbose, binding, ['loadLateLazyCache: yielding to react']);
|
|
binding = env2_0;
|
|
var binding2 = env2_2;
|
|
var value11 = binding(binding2[35]);
|
|
var waitSafelyForPostTTI = value11.waitSafelyForPostTTI;
|
|
var value12 = binding(binding2[36]);
|
|
yield Reflect.apply(waitSafelyForPostTTI, value11, [value12.isIOS() ? value7 : value]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
env2_1(env2_2[17]).loadLazyCache.recordStart();
|
|
env0_8 = env2_10.getSocket();
|
|
env2_32(_fun42896);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function _fun42903() { // fn#42903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:9728, offset: 0x01145c41, size: 325 bytes, params: 1, frame: 16
|
|
var environment;
|
|
var binding;
|
|
var dispatcher;
|
|
var hasStuffToDispatchNow;
|
|
var hasStuffToDispatchNow2;
|
|
var verbose;
|
|
var unpauseDispatchQueue;
|
|
var property;
|
|
var defaultImport;
|
|
var loadLazyCache;
|
|
var processFirstQueuedDispatch;
|
|
var Set;
|
|
var prototype;
|
|
var set;
|
|
var setTimeout;
|
|
var closure;
|
|
var error;
|
|
let value = environment;
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding();
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env0_1;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatcher = binding.dispatcher;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
hasStuffToDispatchNow = dispatcher.hasStuffToDispatchNow;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
hasStuffToDispatchNow2 = Reflect.apply(hasStuffToDispatchNow, dispatcher, []);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
if (hasStuffToDispatchNow2) {
|
|
try {
|
|
env0_2 = true;
|
|
property = dependencyMap[17];
|
|
defaultImport = importDefault(property);
|
|
loadLazyCache = defaultImport.loadLazyCache;
|
|
loadLazyCache.recordEnd();
|
|
binding = env1_18;
|
|
binding.verbose('Processing First Queued Dispatch');
|
|
binding = env0_1;
|
|
dispatcher = binding.dispatcher;
|
|
processFirstQueuedDispatch = dispatcher.processFirstQueuedDispatch;
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set(['READY', 'INITIAL_GUILD']);
|
|
value = set instanceof Object ? set : value;
|
|
Reflect.apply(processFirstQueuedDispatch, dispatcher, [value]);
|
|
setTimeout = global.setTimeout;
|
|
closure = _fun42904;
|
|
setTimeout(closure, 100);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
}
|
|
} else {
|
|
try {
|
|
binding = env1_18;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
verbose = binding.verbose;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(verbose, binding, ['Unpausing Dispatch Queue']);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env0_1;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatcher = binding.dispatcher;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
unpauseDispatchQueue = dispatcher.unpauseDispatchQueue;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(unpauseDispatchQueue, dispatcher, []);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
binding = env1_18;
|
|
binding.warn('Lazy cache has encountered error', error);
|
|
value = importDefault(dependencyMap[28]);
|
|
value.dispatch({type: 'RESET_SOCKET', args: {error: error, action: 'LazyCache'}});
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
function CacheStoreClass() { // fn#42906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:10317, offset: 0x01145e86, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_4(this, CacheStoreClass);
|
|
const value3 = env1_7(CacheStoreClass);
|
|
return env1_6(this, _isNativeReflectConstruct_42844() ? global.Reflect.construct(value3, arguments,
|
|
env1_7(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_42911(a0) { // fn#42911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:10818, offset: 0x01145f1e, size: 145 bytes, params: 2, frame: 14
|
|
var r3;
|
|
var r1;
|
|
var r0;
|
|
const value = environment.__proto__;
|
|
const authenticationUtilsModule = require(1355) /* metro dependency 1355: AuthenticationUtils */;
|
|
if (authenticationUtilsModule.isAuthenticated()) {
|
|
if (env1_19) {
|
|
env1_18.log('Not writing cache because caches cleared');
|
|
r1 = false;
|
|
} else {
|
|
r3 = !a0 && !env1_24;
|
|
if (r3) {
|
|
env1_18.log('Not writing cache because never connected');
|
|
r1 = false;
|
|
} else {
|
|
r1 = !r3;
|
|
}
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
env1_18.log('Not writing cache because not authenticated');
|
|
r0 = false;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function* _fun42913(a0, a1) { // fn#42913, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:11082, offset: 0x01145fb8, size: 573 bytes, params: 3, frame: 27
|
|
var environment;
|
|
var r5;
|
|
var getId;
|
|
var value8;
|
|
var binding3;
|
|
var property;
|
|
var value9;
|
|
var carefullyOpenDatabase;
|
|
var value10;
|
|
var value11;
|
|
var loadMiniCache;
|
|
var measureAsync;
|
|
var closure;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var property2;
|
|
var property3;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var error;
|
|
var error2;
|
|
var stack;
|
|
var binding4;
|
|
var dispatch;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
var env0_1;
|
|
var env0_2;
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var binding2 = env2_2;
|
|
var value4 = binding(binding2[38]).callOnce(a1);
|
|
binding = env2_1;
|
|
var value5 = binding(binding2[17]);
|
|
value5.setInitialPage(a0.page);
|
|
var guildId = a0.guildId;
|
|
var value6 = binding(binding2[17]);
|
|
var setInitialGuildId = value6.setInitialGuildId;
|
|
var value7 = null;
|
|
reducibleJoin3: while (true) {
|
|
if (value7 != guildId) {
|
|
if (guildId === '@me') {
|
|
r5 = value7;
|
|
break reducibleJoin3;
|
|
}
|
|
r5 = guildId;
|
|
break reducibleJoin3;
|
|
}
|
|
r5 = value7;
|
|
break reducibleJoin3;
|
|
}
|
|
Reflect.apply(setInitialGuildId, value6, [r5]);
|
|
if (env2_20 !== 'initializing') {
|
|
env2_1(env2_2[26])('cache:lazy_cache_not_initializing');
|
|
value4();
|
|
global.setTimeout(_fun42914, 0);
|
|
} else {
|
|
reducibleJoin5: while (true) {
|
|
reduciblePort55: while (true) {
|
|
exceptionLanding54: while (true) {
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
binding = env2_18;
|
|
error2 = binding.error;
|
|
stack = error.stack;
|
|
Reflect.apply(error2, binding, ['clearing cache. exception encountered while loading cache.', error,
|
|
stack]);
|
|
binding = env2_1;
|
|
binding4 = env2_2;
|
|
value = binding(binding4[26]);
|
|
value('cache:exception', error);
|
|
value4();
|
|
value = binding(binding4[28]);
|
|
dispatch = value.dispatch;
|
|
Reflect.apply(dispatch, value, [{type: 'RESET_SOCKET', args: {error: error,
|
|
action: 'loadCacheAsync'}}]);
|
|
break reduciblePort55;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
getId = binding.getId;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(getId, binding, []);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
env0_1 = value8;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = binding3[39];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
carefullyOpenDatabase = value9.carefullyOpenDatabase;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(carefullyOpenDatabase, value9, [value8]);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
env0_2 = value10;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = binding3[17];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
loadMiniCache = value11.loadMiniCache;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
measureAsync = loadMiniCache.measureAsync;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
closure = _fun42915;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(measureAsync, loadMiniCache, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
yield value12;
|
|
try {
|
|
value13 = undefined;
|
|
value14 = false;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
if (value14) {
|
|
return value13;
|
|
}
|
|
try {
|
|
binding = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value15 = binding(value13, 3);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = value15[0];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property2 = value15[1];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property3 = value15[2];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value4();
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
if (property) {
|
|
try {
|
|
closure = loadLateLazyCache;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value19 = closure(value10, value8, property2, property3);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
yield value19;
|
|
try {
|
|
value20 = undefined;
|
|
value21 = false;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (value21) {
|
|
return value20;
|
|
}
|
|
break reducibleJoin55;
|
|
}
|
|
} else {
|
|
try {
|
|
closure = dontLoadLateLazyCache;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value16 = closure();
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
yield value16;
|
|
try {
|
|
value17 = undefined;
|
|
value18 = false;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (value18) {
|
|
return value17;
|
|
}
|
|
break reducibleJoin55;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun42854() { // fn#42854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:1773, offset: 0x0114483f, size: 33 bytes, params: 1, frame: 15
|
|
return loadChannelHistory(env0_0, env0_3, env0_4);
|
|
}
|
|
|
|
function _fun42856() { // fn#42856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:1907, offset: 0x0114487e, size: 28 bytes, params: 1, frame: 13
|
|
return loadInitialGuilds(env0_0, importDefault);
|
|
}
|
|
|
|
function _fun42858() { // fn#42858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2037, offset: 0x011448b8, size: 28 bytes, params: 1, frame: 13
|
|
return loadInitialGuildChannels(env0_0, importDefault);
|
|
}
|
|
|
|
function _fun42860() { // fn#42860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2203, offset: 0x011448f2, size: 48 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_2[19]).getAsync(env0_0, null);
|
|
}
|
|
|
|
function _fun42861() { // fn#42861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2335, offset: 0x01144922, size: 45 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_2[20]).getAll(env0_0);
|
|
}
|
|
|
|
function _fun42862() { // fn#42862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2438, offset: 0x0114494f, size: 45 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_2[21]).getAll(env0_0);
|
|
}
|
|
|
|
function _fun42863() { // fn#42863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2549, offset: 0x0114497c, size: 45 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_2[22]).getAll(env0_0);
|
|
}
|
|
|
|
function _fun42864() { // fn#42864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2601, offset: 0x011449a9, size: 27 bytes, params: 1, frame: 11
|
|
return env3_0(env3_2[24]);
|
|
}
|
|
|
|
function _fun42865() { // fn#42865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2653, offset: 0x011449c4, size: 27 bytes, params: 1, frame: 11
|
|
return env3_0(env3_2[25]);
|
|
}
|
|
|
|
function _fun42867(a0, a1) { // fn#42867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:3127, offset: 0x011449f5, size: 65 bytes, params: 3, frame: 12
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const Emitter = env3_1(env3_2[27]).Emitter;
|
|
return Emitter.batched(_fun42868);
|
|
}
|
|
|
|
function _fun42874() { // fn#42874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:4972, offset: 0x01144d69, size: 57 bytes, params: 1, frame: 15
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_2[18]).timeAsync('💾', 'cache: guilds', _fun42875);
|
|
}
|
|
|
|
function _fun42876() { // fn#42876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5205, offset: 0x01144dcf, size: 52 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_2[30]).getOneAsync(env0_0, env0_1);
|
|
}
|
|
|
|
function _fun42880() { // fn#42880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5749, offset: 0x01144f81, size: 50 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return env3_1(env3_2[19]).getAsync(env0_0, env0_1);
|
|
}
|
|
|
|
function _fun42884() { // fn#42884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5980, offset: 0x011451bd, size: 130 bytes, params: 1, frame: 19
|
|
var environment;
|
|
const Promise = global.Promise;
|
|
const all = Promise.all;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
const binding = env3_0;
|
|
const binding2 = env3_2;
|
|
value = Reflect.apply(binding(binding2[29]).tryLoadAsync, value, [_fun42885]);
|
|
const items2 = [value];
|
|
value = binding(binding2[29]);
|
|
items2[1] = value.tryLoadAsync(_fun42887);
|
|
value = binding(binding2[29]);
|
|
items2[2] = value.tryLoadAsync(_fun42889);
|
|
return Reflect.apply(all, Promise, [items2]);
|
|
}
|
|
|
|
function _fun42891() { // fn#42891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6511, offset: 0x011453fe, size: 111 bytes, params: 1, frame: 12
|
|
var environment;
|
|
var r0;
|
|
var value;
|
|
if (env0_0 == null) {
|
|
r0 = global.Promise.resolve([]);
|
|
} else if (env0_6 == null) {
|
|
r0 = global.Promise.resolve([]);
|
|
} else if (env0_6.stale.length > 0) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_0(env3_2[29]);
|
|
value = value.tryLoadAsync(_fun42892);
|
|
r0 = value;
|
|
} else {
|
|
r0 = global.Promise.resolve([]);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun42896() { // fn#42896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:7117, offset: 0x01145568, size: 1358 bytes, params: 1, frame: 72
|
|
var environment;
|
|
var r35;
|
|
var name;
|
|
var length;
|
|
var value3;
|
|
var binding;
|
|
var object2;
|
|
var channels;
|
|
var binding2;
|
|
var value4;
|
|
var verbose;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var stale;
|
|
var binding3;
|
|
var value11;
|
|
var binding4;
|
|
var length3;
|
|
var length4;
|
|
var value13;
|
|
var binding5;
|
|
var log;
|
|
var binding7;
|
|
var binding9;
|
|
var binding10;
|
|
var binding11;
|
|
let performance = global.performance;
|
|
let value = performance.now();
|
|
if (env0_4 === false) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_1;
|
|
binding11 = env3_2;
|
|
value = binding(binding11[26]);
|
|
value('database:not_ok');
|
|
value = binding(binding11[28]);
|
|
value.dispatch({'type': 'CLEAR_CACHES', 'reason': 'database:not_ok'});
|
|
value = binding(binding11[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
if (env0_5 == null) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
binding(binding9[26])('database:load_failed');
|
|
binding10 = env3_18;
|
|
log = binding10.log;
|
|
value = env0_0 != null;
|
|
Reflect.apply(log, binding10,
|
|
["couldn't load database item (\n database: " + value + '\n basic_channels: ' + (env0_6 != null) + '\n guild_channels: ' + (env0_7 != null) + '\n guilds: ' + (env0_5 != null) + '\n )']);
|
|
value = binding(binding9[28]);
|
|
value.dispatch({'type': 'CLEAR_CACHES', 'reason': 'database:load_failed'});
|
|
value = binding(binding9[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
if (env0_6 == null) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
binding(binding9[26])('database:load_failed');
|
|
binding10 = env3_18;
|
|
log = binding10.log;
|
|
value = env0_0 != null;
|
|
Reflect.apply(log, binding10,
|
|
["couldn't load database item (\n database: " + value + '\n basic_channels: ' + (env0_6 != null) + '\n guild_channels: ' + (env0_7 != null) + '\n guilds: ' + (env0_5 != null) + '\n )']);
|
|
value = binding(binding9[28]);
|
|
value.dispatch({'type': 'CLEAR_CACHES', 'reason': 'database:load_failed'});
|
|
value = binding(binding9[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
if (env0_7 == null) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_1;
|
|
binding9 = env3_2;
|
|
binding(binding9[26])('database:load_failed');
|
|
binding10 = env3_18;
|
|
log = binding10.log;
|
|
value = env0_0 != null;
|
|
Reflect.apply(log, binding10,
|
|
["couldn't load database item (\n database: " + value + '\n basic_channels: ' + (env0_6 != null) + '\n guild_channels: ' + (env0_7 != null) + '\n guilds: ' + (env0_5 != null) + '\n )']);
|
|
value = binding(binding9[28]);
|
|
value.dispatch({'type': 'CLEAR_CACHES', 'reason': 'database:load_failed'});
|
|
value = binding(binding9[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
if (env0_4 != null) {
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
if (env3_23) {
|
|
binding = env3_1;
|
|
binding5 = env3_2;
|
|
value = binding(binding5[26]);
|
|
value('already_connected');
|
|
env3_18.log('Skipping lazy cache; already connected.');
|
|
value = binding(binding5[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
binding = env0_8;
|
|
binding.addAnalytics({hadCacheAtStartup: true});
|
|
object2 = {type: 'CACHE_LOADED_LAZY', guilds: env0_5, guildChannels: env0_7};
|
|
channels = env0_6.channels;
|
|
object2.basicGuildChannels = channels;
|
|
object2.initialGuildId = importDefault;
|
|
var env0_0 = object2;
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value4 = undefined;
|
|
binding(binding2[17]).deserializeCache.measure(_fun42897);
|
|
binding(binding2[17]).dispatchLazyCache.measure(_fun42898);
|
|
binding = env3_18;
|
|
verbose = binding.verbose;
|
|
performance = global.performance;
|
|
value = performance.now() - value;
|
|
Reflect.apply(verbose, binding, ['late lazy cache loaded (ok: true, took: ' + value + 'ms)']);
|
|
binding = env0_8;
|
|
binding.addAnalytics({usedCacheAtStartup: true});
|
|
binding = env0_7;
|
|
value = binding.reduce(function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var item3;
|
|
var value3;
|
|
var iterator = a1[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var item2 = Reflect.apply(iterator2, iterator, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
var value = undefined;
|
|
var value2 = item2 === value;
|
|
if (value2) {
|
|
r0 = value;
|
|
r1 = item2;
|
|
r2 = value2;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
if (value3) {
|
|
r0 = value;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
} else {
|
|
r0 = item;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
}
|
|
}
|
|
if (!r2) {
|
|
r1.return();
|
|
}
|
|
return a0 + r0.length;
|
|
}, 0);
|
|
length = env0_7.length;
|
|
value5 = env0_6.all.reduce(_fun42900, 0);
|
|
channels = env0_6.channels;
|
|
value6 = channels.reduce(_fun42901, 0);
|
|
value7 = value5 - value6;
|
|
stale = env0_6.stale;
|
|
r35 = stale.length === 0 ? '' : ' · ' + env0_6.stale.join(', ');
|
|
binding = env3_18;
|
|
verbose = binding.verbose;
|
|
binding3 = env0_0;
|
|
value11 = binding3 != null;
|
|
binding4 = env0_4;
|
|
name = binding3 == null ? value4 : env0_0.name;
|
|
length3 = env0_5.length;
|
|
channels = env0_6.channels;
|
|
length4 = channels.length;
|
|
stale = env0_6.stale;
|
|
Reflect.apply(verbose, binding,
|
|
['lazy_cache_summary: (\n ok: true\n meta:\n auth_user_id: ' + require + '\n initial_guild: ' + importDefault + '\n database: ' + value11 + '\n ok: ' + binding4 + '\n name: ' + name + '\n data:\n database:\n guilds: ' + length3 + '\n basic_channels:\n total: ' + value5 + ' (' + length4 + ' guilds)\n stale: ' + value7 + ' (' + stale.length + ' guilds' + r35 + ')\n unstale: ' + value6 + '\n full_channels (guilds_with_stale_basic_channels):\n total: ' + value + ' (' + env0_7.length + ' guilds)\n )']);
|
|
binding = env3_1;
|
|
value13 = binding(env3_2[17]);
|
|
} else {
|
|
if (env0_5.length > 0) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_1;
|
|
binding7 = env3_2;
|
|
binding(binding7[26])('database:versionless');
|
|
env3_18.log('kv_cache was not ok (null version with values)');
|
|
value = binding(binding7[28]);
|
|
value.dispatch({'type': 'CLEAR_CACHES', 'reason': 'database:versionless'});
|
|
value = binding(binding7[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
if (env0_6.all.length > 0) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_1;
|
|
binding7 = env3_2;
|
|
binding(binding7[26])('database:versionless');
|
|
env3_18.log('kv_cache was not ok (null version with values)');
|
|
value = binding(binding7[28]);
|
|
value.dispatch({'type': 'CLEAR_CACHES', 'reason': 'database:versionless'});
|
|
value = binding(binding7[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
if (env3_23) {
|
|
binding = env3_1;
|
|
binding5 = env3_2;
|
|
value = binding(binding5[26]);
|
|
value('already_connected');
|
|
env3_18.log('Skipping lazy cache; already connected.');
|
|
value = binding(binding5[28]);
|
|
value.dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
return undefined;
|
|
}
|
|
env0_8.addAnalytics({hadCacheAtStartup: true});
|
|
object2 = {type: 'CACHE_LOADED_LAZY', guilds: env0_5, guildChannels: env0_7};
|
|
object2.basicGuildChannels = env0_6.channels;
|
|
object2.initialGuildId = importDefault;
|
|
var env0_0 = object2;
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value4 = undefined;
|
|
binding(binding2[17]).deserializeCache.measure(_fun42897);
|
|
binding(binding2[17]).dispatchLazyCache.measure(_fun42898);
|
|
binding = env3_18;
|
|
verbose = binding.verbose;
|
|
performance = global.performance;
|
|
value = performance.now() - value;
|
|
Reflect.apply(verbose, binding, ['late lazy cache loaded (ok: true, took: ' + value + 'ms)']);
|
|
env0_8.addAnalytics({usedCacheAtStartup: true});
|
|
value = env0_7.reduce(function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var item3;
|
|
var value3;
|
|
var iterator = a1[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var item2 = Reflect.apply(iterator2, iterator, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
var value = undefined;
|
|
var value2 = item2 === value;
|
|
if (value2) {
|
|
r0 = value;
|
|
r1 = item2;
|
|
r2 = value2;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
if (value3) {
|
|
r0 = value;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
} else {
|
|
r0 = item;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
}
|
|
}
|
|
if (!r2) {
|
|
r1.return();
|
|
}
|
|
return a0 + r0.length;
|
|
}, 0);
|
|
length = env0_7.length;
|
|
value5 = env0_6.all.reduce(function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var item3;
|
|
var value3;
|
|
var iterator = a1[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var item2 = Reflect.apply(iterator2, iterator, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
var value = undefined;
|
|
var value2 = item2 === value;
|
|
if (value2) {
|
|
r0 = value;
|
|
r1 = item2;
|
|
r2 = value2;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
if (value3) {
|
|
r0 = value;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
} else {
|
|
r0 = item;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
}
|
|
}
|
|
if (!r2) {
|
|
r1.return();
|
|
}
|
|
return a0 + r0.length;
|
|
}, 0);
|
|
value6 = env0_6.channels.reduce(function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var item3;
|
|
var value3;
|
|
var iterator = a1[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var item2 = Reflect.apply(iterator2, iterator, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
var value = undefined;
|
|
var value2 = item2 === value;
|
|
if (value2) {
|
|
r0 = value;
|
|
r1 = item2;
|
|
r2 = value2;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
if (value3) {
|
|
r0 = value;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
} else {
|
|
r0 = item;
|
|
r1 = item3;
|
|
r2 = value3;
|
|
}
|
|
}
|
|
if (!r2) {
|
|
r1.return();
|
|
}
|
|
return a0 + r0.length;
|
|
}, 0);
|
|
value7 = value5 - value6;
|
|
r35 = env0_6.stale.length === 0 ? '' : ' · ' + env0_6.stale.join(', ');
|
|
binding = env3_18;
|
|
verbose = binding.verbose;
|
|
binding3 = env0_0;
|
|
Reflect.apply(verbose, binding,
|
|
['lazy_cache_summary: (\n ok: true\n meta:\n auth_user_id: ' + require + '\n initial_guild: ' + importDefault + '\n database: ' + (binding3 != null) + '\n ok: ' + env0_4 + '\n name: ' + (binding3 == null ? value4 : env0_0.name) + '\n data:\n database:\n guilds: ' + env0_5.length + '\n basic_channels:\n total: ' + value5 + ' (' + env0_6.channels.length + ' guilds)\n stale: ' + value7 + ' (' + env0_6.stale.length + ' guilds' + r35 + ')\n unstale: ' + value6 + '\n full_channels (guilds_with_stale_basic_channels):\n total: ' + value + ' (' + env0_7.length + ' guilds)\n )']);
|
|
value13 = env3_1(env3_2[17]);
|
|
}
|
|
value13.setLazyCacheInfo({guilds: env0_5.length, privateChannels: importAll, basicChannels: value5,
|
|
basicChannelsStale: value7, fullChannels: value, fullChannelGuilds: length});
|
|
return value4;
|
|
}
|
|
|
|
function _fun42904() { // fn#42904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:10042, offset: 0x01145d86, size: 51 bytes, params: 1, frame: 11
|
|
env2_18.verbose('Unpausing Dispatch Queue');
|
|
env1_1.dispatcher.unpauseDispatchQueue();
|
|
}
|
|
|
|
function _fun42914() { // fn#42914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:11322, offset: 0x011461f5, size: 55 bytes, params: 1, frame: 12
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_10.getSocket();
|
|
return value == null || value.dispatcher == null ? undefined : value.dispatcher.unpauseDispatchQueue();
|
|
}
|
|
|
|
function _fun42915() { // fn#42915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:11526, offset: 0x0114622c, size: 33 bytes, params: 1, frame: 15
|
|
return loadEarlyCache(env0_2, env0_1, env0_0);
|
|
}
|
|
|
|
function dontLoadLateLazyCache() { // fn#42918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:11753, offset: 0x0114626b, size: 40 bytes, params: 1, frame: 11
|
|
env3_32(_fun42919);
|
|
const Promise = global.Promise;
|
|
return Promise.resolve();
|
|
}
|
|
|
|
function loadChannelHistory() { // fn#42855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:1777, offset: 0x01144860, size: 30 bytes, params: 1, frame: 13
|
|
return env4_27.apply(this, arguments);
|
|
}
|
|
|
|
function loadInitialGuilds() { // fn#42857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:1911, offset: 0x0114489a, size: 30 bytes, params: 1, frame: 13
|
|
return env4_29.apply(this, arguments);
|
|
}
|
|
|
|
function loadInitialGuildChannels() { // fn#42859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:2041, offset: 0x011448d4, size: 30 bytes, params: 1, frame: 13
|
|
return env4_30.apply(this, arguments);
|
|
}
|
|
|
|
function _fun42868() { // fn#42868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:3160, offset: 0x01144a36, size: 90 bytes, params: 1, frame: 20
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
const binding = env4_1;
|
|
const binding2 = env4_2;
|
|
binding(binding2[18]).time('💾', 'Dispatch Mini Cache', _fun42869);
|
|
binding(binding2[18]).time('💾', 'socket.processFirstQueuedDispatch()', _fun42870);
|
|
}
|
|
|
|
function _fun42875() { // fn#42875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:5019, offset: 0x01144da2, size: 45 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
return env4_1(env4_2[30]).getAsync(env1_0);
|
|
}
|
|
|
|
function _fun42885() { // fn#42885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6020, offset: 0x0114523f, size: 92 bytes, params: 1, frame: 16
|
|
var environment;
|
|
var r0;
|
|
let value = environment.__proto__;
|
|
if (env1_0 != null) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
value = env4_1(env4_2[18]);
|
|
value = value.timeAsync('💾', 'cache: cache_version', _fun42886);
|
|
r0 = value;
|
|
} else {
|
|
r0 = global.Promise.resolve(true);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun42887() { // fn#42887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6153, offset: 0x011452c8, size: 101 bytes, params: 1, frame: 15
|
|
var environment;
|
|
var r0;
|
|
let value = environment.__proto__;
|
|
if (env1_0 == null) {
|
|
r0 = global.Promise.resolve([]);
|
|
} else {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
if (env4_25) {
|
|
r0 = global.Promise.resolve([]);
|
|
} else {
|
|
value = env4_1(env4_2[18]);
|
|
value = value.timeAsync('💾', 'cache: lazy guilds', _fun42888);
|
|
r0 = value;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun42889() { // fn#42889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6288, offset: 0x0114535a, size: 119 bytes, params: 1, frame: 16
|
|
var environment;
|
|
var r0;
|
|
let value = environment.__proto__;
|
|
if (env1_0 != null) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
value = env4_1(env4_2[18]);
|
|
value = value.timeAsync('💾', 'cache: basic_channels', _fun42890);
|
|
r0 = value;
|
|
} else {
|
|
r0 = global.Promise.resolve({all: [], stale: [], channels: []});
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun42892() { // fn#42892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6573, offset: 0x0114546d, size: 34 bytes, params: 1, frame: 13
|
|
return loadGuildChannels(env1_0, env1_6.stale);
|
|
}
|
|
|
|
function _fun42897() { // fn#42897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:8303, offset: 0x01145ab6, size: 157 bytes, params: 1, frame: 13
|
|
var value;
|
|
const binding = env0_0;
|
|
if (binding.channels != null) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
value = env4_1(env4_2[14]);
|
|
value(binding.channels);
|
|
}
|
|
if (binding.privateChannels != null) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
value = env4_1(env4_2[14]);
|
|
value(binding.privateChannels);
|
|
}
|
|
if (binding.guildChannels != null) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
value = env4_0(env4_2[14]);
|
|
value.deserializeChannelEntries(binding.guildChannels);
|
|
}
|
|
}
|
|
|
|
function _fun42898() { // fn#42898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:8546, offset: 0x01145b53, size: 44 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
return env4_1(env4_2[28]).dispatch(env0_0);
|
|
}
|
|
|
|
function _fun42919() { // fn#42919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:11814, offset: 0x01146293, size: 47 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
return env4_1(env4_2[28]).dispatch({type: 'CACHE_LOADED_LAZY_NO_CACHE'});
|
|
}
|
|
|
|
function _fun42869() { // fn#42869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:3209, offset: 0x01144a90, size: 260 bytes, params: 1, frame: 18
|
|
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
const dispatch = env5_1(env5_2[28]).dispatch;
|
|
const object2 = {type: 'CACHE_LOADED'};
|
|
object2.guilds = env2_6;
|
|
object2.privateChannels = env2_8;
|
|
object2.initialGuildChannels = env2_7.channels ?? [];
|
|
const users = env2_5.users;
|
|
const items2 = [];
|
|
arraySpread(items2, users, 0, undefined);
|
|
object2.users = items2;
|
|
object2.messages = env2_5.channelId == null ? {} : {[env2_5.channelId]: env2_5.messages};
|
|
object2.guildMembers = env2_5.guildId == null ? {} : {[env2_5.guildId]: env2_12};
|
|
object2.userSettings = env2_9;
|
|
object2.userGuildSettings = env2_11;
|
|
object2.readStates = env2_10;
|
|
value = Reflect.apply(dispatch, value, [object2]);
|
|
return value.then(env1_0, require);
|
|
}
|
|
|
|
function _fun42870() { // fn#42870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:3587, offset: 0x01144b94, size: 64 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__.__proto__;
|
|
const dispatcher = env2_2.dispatcher;
|
|
const processFirstQueuedDispatch = dispatcher.processFirstQueuedDispatch;
|
|
const Set = global.Set;
|
|
return Reflect.apply(processFirstQueuedDispatch, dispatcher, [new Set(['INITIAL_GUILD'])]);
|
|
}
|
|
|
|
function _fun42886() { // fn#42886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6082, offset: 0x0114529b, size: 45 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
return env5_1(env5_2[32]).okAsync(env2_0);
|
|
}
|
|
|
|
function _fun42888() { // fn#42888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6236, offset: 0x0114532d, size: 45 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
return env5_1(env5_2[30]).getAsync(env2_0);
|
|
}
|
|
|
|
function _fun42890() { // fn#42890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6351, offset: 0x011453d1, size: 45 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
return env5_1(env5_2[33]).getAsync(env2_0);
|
|
}
|
|
|
|
function loadGuildChannels(a0, a1) { // fn#42893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6577, offset: 0x0114548f, size: 123 bytes, params: 3, frame: 22
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
const binding = env5_18;
|
|
binding.verbose('loading stale guild channels (count: ' + a1.length + ', ids: ' + a1.join(', ') + ')');
|
|
const Promise = global.Promise;
|
|
return Promise.all(a1.map(_fun42894));
|
|
}
|
|
|
|
function _fun42894(a0) { // fn#42894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6720, offset: 0x0114550a, size: 70 bytes, params: 2, frame: 14
|
|
var environment;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
value = env6_1(env6_2[19]);
|
|
value = value.getAsync(env0_0, a0);
|
|
return value.then(_fun42895);
|
|
}
|
|
|
|
function _fun42895(a0) { // fn#42895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5063:6752, offset: 0x01145550, size: 24 bytes, params: 2, frame: 2
|
|
return [env0_0, a0];
|
|
}
|
|
|