3748 lines
154 KiB
TypeScript
3748 lines
154 KiB
TypeScript
/* Metro module 16258; source: modules/headless_tasks/android/TTITestAction.tsx; dependencies: [5, 15577, 4107, 4255, 1226, 1379, 1867, 3, 4014, 11222, 15755, 694, 5256, 1582, 683, 5076, 8879, 4601, 13965, 1316, 2] */
|
|
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import NativeTTIManagerModule from '../../../external/discord_common/js/packages/rtn-codegen/js/NativeTTIManagerModule.tsx'; /* Metro dependency 4014 */
|
|
import ExperimentStore from '../../experiments/ExperimentStore.tsx'; /* Metro dependency 4107 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as PostConnectionCallbackStoreModule from '../../gateway/PostConnectionCallbackStore.tsx'; /* Metro dependency 4255 */
|
|
import * as NativeAppStartupModule from '../../app_startup/native/NativeAppStartup.tsx'; /* Metro dependency 15577 */
|
|
|
|
function _fun125643(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:6, offset: 0x025dfc87, size: 543 bytes, params: 8, frame: 17
|
|
let env0_0 = require;
|
|
const _arrayLikeToArray_125646 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const sendReply = function(a0, a1, a2) {
|
|
var JSON = global.JSON;
|
|
var object = {type: 'response', status: a0, message: a1};
|
|
copyDataProperties(object, a2, a1);
|
|
importDefault(dependencyMap[8]).logToDevice(JSON.stringify(object));
|
|
};
|
|
let closure = function() {
|
|
return _setupTTITest.apply(this, arguments);
|
|
};
|
|
const apiLogin = function() {
|
|
return _apiLogin.apply(this, arguments);
|
|
};
|
|
const subscribeOnce = function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = a2;
|
|
var closure = _fun125677;
|
|
var env0_3 = closure;
|
|
return a0.subscribe(a1, closure);
|
|
};
|
|
let value = Module00005;
|
|
let value4 = new (Logger)('TTITestAction');
|
|
let object = {};
|
|
object['setup-test'] = closure;
|
|
object.ping = function() {
|
|
var JSON = global.JSON;
|
|
importDefault(dependencyMap[8]).logToDevice(JSON.stringify({type: 'pong'}));
|
|
};
|
|
object['reset-component-profiler'] = function() {
|
|
require(dependencyMap[9]).resetComponentProfiler();
|
|
sendReply('success', 'reset-component-profiler');
|
|
};
|
|
object['pause-component-profiler'] = function() {
|
|
require(dependencyMap[9]).pauseComponentProfiler();
|
|
sendReply('success', 'pause-component-profiler');
|
|
};
|
|
object['resume-component-profiler'] = function() {
|
|
require(dependencyMap[9]).resumeComponentProfiler();
|
|
sendReply('success', 'resume-component-profiler');
|
|
};
|
|
object['dump-component-profiler-stats'] = _fun125682;
|
|
object['dump-jank-stats'] = _fun125683;
|
|
object['set-jank-multiplier'] = function(a0) {
|
|
if (importDefault(dependencyMap[10]) != null) {
|
|
importDefault(dependencyMap[10]).setJankHeuristicMultiplier(a0.multiplier);
|
|
}
|
|
sendReply('success', 'set-jank-multiplier');
|
|
};
|
|
object['start-jank-stats'] = function() {
|
|
if (importDefault(dependencyMap[10]) != null) {
|
|
importDefault(dependencyMap[10]).startTracking();
|
|
}
|
|
sendReply('success', 'start-jank-stats');
|
|
};
|
|
object['flux-dispatch'] = function(a0) {
|
|
importDefault(dependencyMap[11]).dispatch(a0.action);
|
|
sendReply('success', 'flux-dispatch');
|
|
};
|
|
object['get-token'] = function() {
|
|
var sendReplyBinding = sendReply;
|
|
var object = {};
|
|
object.token = AuthenticationStore.getToken();
|
|
sendReplyBinding('success', 'get-token', object);
|
|
};
|
|
object['get-resource-usage'] = _fun125688;
|
|
const env0_10 = value(_fun125690);
|
|
object.backchannel = backchannel;
|
|
module.exports = _fun125694();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/headless_tasks/android/TTITestAction.tsx');
|
|
function _createForOfIteratorHelperLoose_125644(a0, a1) { // fn#125644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:165, offset: 0x025dfea6, size: 372 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun125645;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_125646(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_125646(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_125646(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun125645;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
function _fun125645() { // fn#125645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:736, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
|
|
return env0_1 >= env0_0.length ? {done: true} : {done: false,
|
|
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
|
|
}
|
|
|
|
}
|
|
|
|
function sendStatus(a0) { // fn#125648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:3827, offset: 0x025e0075, size: 89 bytes, params: 2, frame: 14
|
|
env0_11.log(a0);
|
|
const JSON = global.JSON;
|
|
(NativeTTIManagerModule).logToDevice(JSON.stringify({type: 'status',
|
|
message: a0}));
|
|
}
|
|
|
|
function getErrorDetails(a0) { // fn#125649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:3930, offset: 0x025e00ce, size: 213 bytes, params: 2, frame: 20
|
|
var r1;
|
|
var r8;
|
|
var r3;
|
|
var Set;
|
|
var prototype;
|
|
var value2;
|
|
var set;
|
|
var value3;
|
|
var value4;
|
|
var _createForOfIteratorHelperLoose_125644Binding;
|
|
var Object;
|
|
var getOwnPropertyNames;
|
|
var value5;
|
|
var value6;
|
|
var done;
|
|
var value7;
|
|
var add;
|
|
var value8;
|
|
var getPrototypeOf;
|
|
var value9;
|
|
var object;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
const value = a0;
|
|
if (value != null) {
|
|
reducibleJoin9: while (true) {
|
|
if (typeof value === 'object') {
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value2 = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value3 = set instanceof Object ? set : value2;
|
|
value4 = environment;
|
|
if (value != null) {
|
|
r1 = value;
|
|
reducibleLoop3: while (true) {
|
|
_createForOfIteratorHelperLoose_125644Binding = _createForOfIteratorHelperLoose_125644;
|
|
Object = global.Object;
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value5 = _createForOfIteratorHelperLoose_125644Binding(Reflect.apply(getOwnPropertyNames,
|
|
Object,
|
|
[r1]));
|
|
value6 = value5();
|
|
done = value6.done;
|
|
if (!done) {
|
|
r8 = value6;
|
|
reducibleLoop4: while (true) {
|
|
value7 = r8.value;
|
|
add = value3.add;
|
|
Reflect.apply(add, value3, [value7]);
|
|
value8 = value5();
|
|
done = value8.done;
|
|
if (done) {
|
|
break reducibleLoop4;
|
|
}
|
|
r8 = value8;
|
|
continue reducibleLoop4;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
getPrototypeOf = Object.getPrototypeOf;
|
|
value9 = Reflect.apply(getPrototypeOf, Object, [r1]);
|
|
if (value9 != null) {
|
|
r1 = value9;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
object = {};
|
|
value10 = _createForOfIteratorHelperLoose_125644(value3);
|
|
value11 = value10();
|
|
done = value11.done;
|
|
if (!done) {
|
|
r3 = value11;
|
|
reducibleLoop7: while (true) {
|
|
value12 = r3.value;
|
|
object[value12] = value[value12];
|
|
value13 = value10();
|
|
done = value13.done;
|
|
if (done) {
|
|
break reducibleLoop7;
|
|
}
|
|
r3 = value13;
|
|
continue reducibleLoop7;
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
break reducibleJoin9;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function _setupTTITest() { // fn#125651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:4337, offset: 0x025e01a3, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun125653).apply(this, arguments);
|
|
async function _fun125653(a0) { // fn#125653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:4386, offset: 0x025e01e9, size: 1355 bytes, params: 2, frame: 38
|
|
var environment;
|
|
var r5;
|
|
var r15;
|
|
var binding;
|
|
var getId;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var binding2;
|
|
var property;
|
|
var value9;
|
|
var logout;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var Promise;
|
|
var prototype;
|
|
var closure;
|
|
var promise;
|
|
var value16;
|
|
var binding3;
|
|
var value17;
|
|
var login;
|
|
var object;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value33;
|
|
var value37;
|
|
var value39;
|
|
var value42;
|
|
var channelId;
|
|
var getChannel;
|
|
var value46;
|
|
var transitionToChannel;
|
|
var value47;
|
|
var value51;
|
|
var value54;
|
|
var Error;
|
|
var concat;
|
|
var value58;
|
|
var error;
|
|
var message;
|
|
var value61;
|
|
var value63;
|
|
let value = a1;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
const r1 = value !== undefined ? value : false;
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
let user = a0.user;
|
|
if (user == null) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_16('Waiting for socket connection');
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value29 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125660;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value29);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value33 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = function(a0) {
|
|
return (0, global.setTimeout)(a0, 1000);
|
|
};
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value33);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value37 = a0.invite != null;
|
|
if (value37) {
|
|
binding = env2_9;
|
|
r15 = binding.getGuild(a0.invite.expectedGuildId) == null;
|
|
} else {
|
|
r15 = value37;
|
|
}
|
|
if (r15) {
|
|
if (!r1) {
|
|
env2_16('Inviting to target guild');
|
|
}
|
|
binding = env2_1;
|
|
value39 = binding(env2_2[16]);
|
|
await value39.acceptInvite({inviteKey: a0.invite.code, context: {location: 'tti_tests'},
|
|
skipOnboarding: true});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Invite API call finished');
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value42 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125662;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value42);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
user = a0.user;
|
|
const email = user.email;
|
|
user = a0.user;
|
|
const password = user.password;
|
|
user = a0.user;
|
|
const expectedId = user.expectedId;
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
getId = binding.getId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(getId, binding, []);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value6 = value5 != null;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value6) {
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
getId = binding.getId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(getId, binding, []);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
r5 = value7 !== expectedId;
|
|
} else {
|
|
r5 = value6;
|
|
}
|
|
if (r5) {
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding('Logging out old user');
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[15];
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
logout = value9.logout;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(logout, value9, ['TTI_test']);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
await value10;
|
|
try {
|
|
value11 = undefined;
|
|
value12 = false;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value12) {
|
|
return value11;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
getId = binding.getId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(getId, binding, []);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value14 = value13 === expectedId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value14) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_16('Waiting for socket connection');
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value29 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125660;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value29);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value33 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = function(a0) {
|
|
return (0, global.setTimeout)(a0, 1000);
|
|
};
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value33);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value37 = a0.invite != null;
|
|
if (value37) {
|
|
binding = env2_9;
|
|
r15 = binding.getGuild(a0.invite.expectedGuildId) == null;
|
|
} else {
|
|
r15 = value37;
|
|
}
|
|
if (r15) {
|
|
if (!r1) {
|
|
env2_16('Inviting to target guild');
|
|
}
|
|
binding = env2_1;
|
|
value39 = binding(env2_2[16]);
|
|
await value39.acceptInvite({inviteKey: a0.invite.code, context: {location: 'tti_tests'},
|
|
skipOnboarding: true});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Invite API call finished');
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value42 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125662;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value42);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding('Logging in new user');
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Promise.prototype;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
closure = _fun125654;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
promise = new Promise();
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value16 = promise instanceof Object ? promise : undefined;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[15];
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value17 = binding(property);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
login = value17.login;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.login = email;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.password = password;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value18 = Reflect.apply(login, value17, [object]);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
await value18;
|
|
try {
|
|
value19 = undefined;
|
|
value20 = false;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value20) {
|
|
return value19;
|
|
}
|
|
await value16;
|
|
try {
|
|
value21 = undefined;
|
|
value22 = false;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value22) {
|
|
return value21;
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding('Waiting for socket connection');
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Promise.prototype;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
closure = _fun125659;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
promise = new Promise();
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value24 = promise instanceof Object ? promise : undefined;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
await value24;
|
|
try {
|
|
value25 = undefined;
|
|
value26 = false;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value26) {
|
|
return value25;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
getId = binding.getId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value27 = Reflect.apply(getId, binding, []);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value28 = value27 !== expectedId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (!value28) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_16('Waiting for socket connection');
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value29 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125660;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value29);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value33 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125661;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value33);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value37 = a0.invite != null;
|
|
if (value37) {
|
|
binding = env2_9;
|
|
r15 = binding.getGuild(a0.invite.expectedGuildId) == null;
|
|
} else {
|
|
r15 = value37;
|
|
}
|
|
if (r15) {
|
|
if (!r1) {
|
|
env2_16('Inviting to target guild');
|
|
}
|
|
binding = env2_1;
|
|
value39 = binding(env2_2[16]);
|
|
await value39.acceptInvite({inviteKey: a0.invite.code, context: {location: 'tti_tests'},
|
|
skipOnboarding: true});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Invite API call finished');
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value42 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125662;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value42);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value61 = Reflect.apply(concat, 'Unable to login ', [email, ', expected id ', expectedId,
|
|
' after login but was ',
|
|
value27]);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value63 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
throw value63;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
} else {
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
getId = binding.getId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(getId, binding, []);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value14 = value13 === expectedId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value14) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_16('Waiting for socket connection');
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value29 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125660;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value29);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value33 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125661;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value33);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value37 = a0.invite != null;
|
|
if (value37) {
|
|
binding = env2_9;
|
|
r15 = binding.getGuild(a0.invite.expectedGuildId) == null;
|
|
} else {
|
|
r15 = value37;
|
|
}
|
|
if (r15) {
|
|
if (!r1) {
|
|
env2_16('Inviting to target guild');
|
|
}
|
|
binding = env2_1;
|
|
value39 = binding(env2_2[16]);
|
|
await value39.acceptInvite({inviteKey: a0.invite.code, context: {location: 'tti_tests'},
|
|
skipOnboarding: true});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Invite API call finished');
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value42 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125662;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value42);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding('Logging in new user');
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Promise.prototype;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
closure = _fun125654;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
promise = new Promise();
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value16 = promise instanceof Object ? promise : undefined;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[15];
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value17 = binding(property);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
login = value17.login;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.login = email;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.password = password;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value18 = Reflect.apply(login, value17, [object]);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
await value18;
|
|
try {
|
|
value19 = undefined;
|
|
value20 = false;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value20) {
|
|
return value19;
|
|
}
|
|
await value16;
|
|
try {
|
|
value21 = undefined;
|
|
value22 = false;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value22) {
|
|
return value21;
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding('Waiting for socket connection');
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Promise.prototype;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
closure = _fun125659;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
promise = new Promise();
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value24 = promise instanceof Object ? promise : undefined;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
await value24;
|
|
try {
|
|
value25 = undefined;
|
|
value26 = false;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (value26) {
|
|
return value25;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
getId = binding.getId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value27 = Reflect.apply(getId, binding, []);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value28 = value27 !== expectedId;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
if (!value28) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_16('Waiting for socket connection');
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value29 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125660;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value29);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value33 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125661;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value33);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value37 = a0.invite != null;
|
|
if (value37) {
|
|
binding = env2_9;
|
|
r15 = binding.getGuild(a0.invite.expectedGuildId) == null;
|
|
} else {
|
|
r15 = value37;
|
|
}
|
|
if (r15) {
|
|
if (!r1) {
|
|
env2_16('Inviting to target guild');
|
|
}
|
|
binding = env2_1;
|
|
value39 = binding(env2_2[16]);
|
|
await value39.acceptInvite({inviteKey: a0.invite.code, context: {location: 'tti_tests'},
|
|
skipOnboarding: true});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Invite API call finished');
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value42 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125662;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value42);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
channelId = a0.channelId;
|
|
if (channelId == null) {
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
value51 = env2_0(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
value54 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125665);
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_8;
|
|
getChannel = binding.getChannel;
|
|
channelId = a0.channelId;
|
|
if (Reflect.apply(getChannel, binding, [channelId]) == null) {
|
|
Error = global.Error;
|
|
value58 = 'Unable to switch to channel ' + a0.channelId + ' because it does not exist on the client';
|
|
error = new Error();
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
env2_15('error', error.message);
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Switching to desired channel');
|
|
}
|
|
binding = env2_0;
|
|
value46 = binding(env2_2[17]);
|
|
transitionToChannel = value46.transitionToChannel;
|
|
channelId = a0.channelId;
|
|
Reflect.apply(transitionToChannel, value46, [channelId]);
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value47 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125664;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value47);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Writing caches');
|
|
}
|
|
binding = env2_0;
|
|
value51 = binding(env2_2[18]);
|
|
await value51.writeCaches();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value54 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125665;
|
|
promise = new Promise();
|
|
await (promise instanceof Object ? promise : value54);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!r1) {
|
|
env2_16('Sending reply');
|
|
env2_15('success', 'Setup Complete');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value61 = Reflect.apply(concat, 'Unable to login ', [email, ', expected id ', expectedId,
|
|
' after login but was ',
|
|
value27]);
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value63 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
try {
|
|
throw value63;
|
|
} catch (error) {
|
|
if (r1) {
|
|
throw error;
|
|
}
|
|
binding = env2_15;
|
|
message = error.message;
|
|
binding('error', message);
|
|
return undefined;
|
|
}
|
|
}
|
|
function _fun125654(a0, a1) { // fn#125654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:4656, offset: 0x025e0734, size: 97 bytes, params: 3, frame: 16
|
|
var r4;
|
|
var property;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const subscribeOnce_1256552 = subscribeOnce_125655;
|
|
const items2 = ['LOGIN_MFA_STEP', 'LOGIN_SUSPENDED_USER', 'LOGIN_ACCOUNT_SCHEDULED_FOR_DELETION',
|
|
'LOGIN_ACCOUNT_DISABLED', 'LOGIN_PHONE_IP_AUTHORIZATION_REQUIRED', 'LOGIN_FAILURE'];
|
|
let length = items2.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
for (r4 = value; true; r4 = value) {
|
|
property = items2[r4];
|
|
subscribeOnce_1256552(property, _fun125657);
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = items2.length;
|
|
if (!(value < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
subscribeOnce_1256552('LOGIN_SUCCESS', _fun125658);
|
|
function subscribeOnce_125655(a0, a1) { // fn#125655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:4952, offset: 0x025e0795, size: 66 bytes, params: 3, frame: 15
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
value = env4_1(env4_2[11]);
|
|
value.subscribe(a0, subscribeOnce_125655Handler);
|
|
function subscribeOnce_125655Handler() { // fn#125656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:5002, owner: subscribeOnce_125655.handler, offset: 0x025e07d7, size: 59 bytes, params: 1, frame: 15
|
|
const binding = env0_0;
|
|
require(binding);
|
|
const value3 = env5_1(env5_2[11]);
|
|
value3.unsubscribe(binding, subscribeOnce_125655Handler);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun125657(a0) { // fn#125657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:4876, offset: 0x025e0812, size: 85 bytes, params: 2, frame: 19
|
|
const Error = global.Error;
|
|
let value = environment.__proto__;
|
|
value = 'Unable to login ' + email + ". Login failed with event '" + a0 + "'";
|
|
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error();
|
|
require(error instanceof Object ? error : value2);
|
|
}
|
|
|
|
function _fun125658() { // fn#125658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:5092, offset: 0x00cefeb4, size: 15 bytes, params: 1, frame: 9
|
|
return env0_0();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun125659(a0) { // fn#125659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:5219, offset: 0x02149d0a, size: 19 bytes, params: 2, frame: 11
|
|
return env3_6(a0);
|
|
}
|
|
|
|
function _fun125660(a0) { // fn#125660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:5463, offset: 0x02149d0a, size: 19 bytes, params: 2, frame: 11
|
|
return env3_6(a0);
|
|
}
|
|
|
|
function _fun125662(a0, a1) { // fn#125662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:5783, offset: 0x025e0867, size: 65 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = global.setTimeout(a1, 15000);
|
|
env3_9.addConditionalChangeListener(_fun125663);
|
|
function _fun125663() { // fn#125663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:5848, offset: 0x025e08a8, size: 105 bytes, params: 1, frame: 13
|
|
const binding = env4_9;
|
|
const getGuild = binding.getGuild;
|
|
if (Reflect.apply(getGuild, binding, [env1_0.invite.expectedGuildId]) != null) {
|
|
if (!env1_1) {
|
|
env4_16('Invited guild available in the store');
|
|
}
|
|
global.clearTimeout(env0_1);
|
|
env0_0();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _apiLogin() { // fn#125667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:6600, offset: 0x025e0911, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun125669).apply(this, arguments);
|
|
function* _fun125669(a0, a1, a2, a3) { // fn#125669, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:6641, offset: 0x025e094e, size: 557 bytes, params: 5, frame: 29
|
|
var environment;
|
|
var value5;
|
|
var value8;
|
|
var value10;
|
|
var Promise;
|
|
var prototype;
|
|
var value13;
|
|
var closure;
|
|
var promise;
|
|
var value17;
|
|
var value19;
|
|
var value21;
|
|
var Error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_7;
|
|
const getId = binding.getId;
|
|
if (Reflect.apply(getId, binding, []) !== a3) {
|
|
binding = env2_7;
|
|
if (binding.getId() == null) {
|
|
if (a2 == null) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = env2_7.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
yield global.fetch('https://discord.com/api/users/@me/settings-proto/2', {method: 'HEAD',
|
|
headers: {Authorization: a2}});
|
|
value8 = undefined;
|
|
if (false) {
|
|
return value8;
|
|
}
|
|
if (value8.ok) {
|
|
binding = env2_1;
|
|
value10 = binding(env2_2[15]);
|
|
yield value10.loginToken(a2, false);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125670;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value13;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
if (binding.getId() === a3) {
|
|
return a2;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
value = binding.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
value = binding.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
binding = env2_1;
|
|
value5 = binding(env2_2[15]);
|
|
yield value5.logout('TTI_test');
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (a2 == null) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = env2_7.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
yield global.fetch('https://discord.com/api/users/@me/settings-proto/2', {method: 'HEAD',
|
|
headers: {Authorization: a2}});
|
|
value8 = undefined;
|
|
if (false) {
|
|
return value8;
|
|
}
|
|
if (value8.ok) {
|
|
binding = env2_1;
|
|
value10 = binding(env2_2[15]);
|
|
yield value10.loginToken(a2, false);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125670;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value13;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
if (binding.getId() === a3) {
|
|
return a2;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
value = binding.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
value = binding.getId();
|
|
} else {
|
|
if (a2 != null) {
|
|
return a2;
|
|
}
|
|
var token = env2_7.getToken();
|
|
if (token != null) {
|
|
return token;
|
|
}
|
|
if (env2_7.getId() == null) {
|
|
if (a2 == null) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = env2_7.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
yield global.fetch('https://discord.com/api/users/@me/settings-proto/2', {method: 'HEAD',
|
|
headers: {Authorization: a2}});
|
|
value8 = undefined;
|
|
if (false) {
|
|
return value8;
|
|
}
|
|
if (value8.ok) {
|
|
binding = env2_1;
|
|
value10 = binding(env2_2[15]);
|
|
yield value10.loginToken(a2, false);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125670;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value13;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
if (binding.getId() === a3) {
|
|
return a2;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
value = binding.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
value = binding.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
value5 = env2_1(env2_2[15]);
|
|
yield value5.logout('TTI_test');
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (a2 == null) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = env2_7.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
yield global.fetch('https://discord.com/api/users/@me/settings-proto/2', {method: 'HEAD',
|
|
headers: {Authorization: a2}});
|
|
value8 = undefined;
|
|
if (false) {
|
|
return value8;
|
|
}
|
|
if (value8.ok) {
|
|
binding = env2_1;
|
|
value10 = binding(env2_2[15]);
|
|
yield value10.loginToken(a2, false);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125670;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value13;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
if (binding.getId() === a3) {
|
|
return a2;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value17 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125671;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun125675;
|
|
promise = new Promise();
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_7;
|
|
value = binding.getId();
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
value17 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125671);
|
|
yield promise instanceof Object ? promise : value17;
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
Promise = global.Promise;
|
|
value21 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun125675);
|
|
yield promise instanceof Object ? promise : value21;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = env2_7.getId();
|
|
}
|
|
if (value !== a3) {
|
|
Error = global.Error;
|
|
value = 'Unable to login ' + a0 + ', expected id ' + a3 + ' after login but was ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return value19;
|
|
function _fun125670(a0) { // fn#125670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:6971, offset: 0x02149d0a, size: 19 bytes, params: 2, frame: 11
|
|
return env3_6(a0);
|
|
}
|
|
|
|
function _fun125671(a0, a1) { // fn#125671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7027, offset: 0x025e0b7b, size: 163 bytes, params: 3, frame: 17
|
|
var environment;
|
|
var r3;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const _loop_1256722 = _loop_125672;
|
|
const items2 = ['LOGIN_FAILURE', 'PASSWORDLESS_FAILURE', 'LOGIN_ACCOUNT_SCHEDULED_FOR_DELETION',
|
|
'LOGIN_ACCOUNT_DISABLED', 'LOGIN_PHONE_IP_AUTHORIZATION_REQUIRED'];
|
|
let length = items2.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
for (r3 = value; true; r3 = value) {
|
|
_loop_1256722(items2[r3]);
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = items2.length;
|
|
if (!(value < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
const binding = env3_22;
|
|
const binding2 = env3_1;
|
|
const binding3 = env3_2;
|
|
binding(binding2(binding3[11]), 'LOGIN_SUCCESS', _fun125674);
|
|
binding2(binding3[15]).login({login: env0_0, password: require});
|
|
function _loop_125672(a0) { // fn#125672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7049, offset: 0x025e0c1e, size: 54 bytes, params: 2, frame: 16
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
env4_22(env4_1(env4_2[11]), a0, _fun125673);
|
|
function _fun125673() { // fn#125673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7087, offset: 0x025e0c54, size: 89 bytes, params: 1, frame: 19
|
|
let value = environment.__proto__;
|
|
const Error = global.Error;
|
|
value = environment.__proto__.__proto__;
|
|
value = 'Unable to login ' + env2_0 + ". Login failed with action '" + env0_0 + "'";
|
|
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error(value);
|
|
require(error instanceof Object ? error : value2);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun125674({token}) { // fn#125674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7385, offset: 0x025e0cad, size: 25 bytes, params: 2, frame: 11
|
|
return env0_0(token);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun125675(a0) { // fn#125675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7460, offset: 0x02149d0a, size: 19 bytes, params: 2, frame: 11
|
|
return env3_6(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function subscribeOnce(a0, a1, a2) { // fn#125676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7613, offset: 0x025e0cc6, size: 48 bytes, params: 4, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
return a0.subscribe(a1, subscribeOnceHandler);
|
|
function subscribeOnceHandler(a0) { // fn#125677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7665, owner: subscribeOnce.handler, offset: 0x025e0cf6, size: 43 bytes, params: 2, frame: 14
|
|
const binding = env0_0;
|
|
binding.unsubscribe(require, subscribeOnceHandler);
|
|
return importDefault(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun125682() { // fn#125682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:1592, offset: 0x025e0e11, size: 65 bytes, params: 1, frame: 15
|
|
const sendReplyBinding = sendReply;
|
|
const object = {};
|
|
object.stats = (require(11222) /* metro dependency 11222: ComponentProfiler */).dumpStats();
|
|
sendReplyBinding('success', 'dump-component-profiler-stats', object);
|
|
}
|
|
|
|
function _fun125683() { // fn#125683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:1698, offset: 0x025e0e52, size: 93 bytes, params: 1, frame: 17
|
|
var r1;
|
|
var value;
|
|
const sendReplyBinding = sendReply;
|
|
const value2 = undefined;
|
|
if ((importDefault(15755) /* metro dependency 15755: NativeJankStatsModule */) == null) {
|
|
r1 = value2;
|
|
} else {
|
|
value = importDefault(15755) /* metro dependency 15755: NativeJankStatsModule */;
|
|
value = value.requestReport();
|
|
r1 = value;
|
|
}
|
|
sendReplyBinding('success', 'dump-jank-stats', {report: r1});
|
|
return value2;
|
|
}
|
|
|
|
function _fun125688() { // fn#125688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:2220, offset: 0x025e0fcd, size: 93 bytes, params: 1, frame: 18
|
|
const sendReplyBinding = sendReply;
|
|
const object = {};
|
|
object.cumulativeCPU = (importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).getCumulativeCPUUsage();
|
|
object.currentMemoryUsage = (importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).getCurrentMemoryUsageKB();
|
|
sendReplyBinding('success', 'get-resource-usage', object);
|
|
}
|
|
|
|
function* _fun125690(a0) { // fn#125690, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:2389, offset: 0x025e1035, size: 1166 bytes, params: 2, frame: 30
|
|
var environment;
|
|
var r14;
|
|
var value;
|
|
var value2;
|
|
var reply;
|
|
var source;
|
|
var args;
|
|
var object;
|
|
var binding;
|
|
var binding2;
|
|
var getConstants;
|
|
var object3;
|
|
var resetComponentProfiler;
|
|
var resumeComponentProfiler;
|
|
var pauseComponentProfiler;
|
|
var dumpStats;
|
|
var binding3;
|
|
var object4;
|
|
var startRecordingAnalyticsEvents;
|
|
var stopRecordingAnalyticsEvents;
|
|
var getAnalyticsEventsRecording;
|
|
var clearAnalyticsEventsRecording;
|
|
var constructor;
|
|
var object6;
|
|
var Object;
|
|
var keys;
|
|
var value3;
|
|
var values;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var String;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var fetch;
|
|
var JSON;
|
|
var stringify;
|
|
var value17;
|
|
var ok;
|
|
var status;
|
|
var error;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
exceptionLanding61: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
reply = a0.reply;
|
|
source = a0.source;
|
|
args = a0.args;
|
|
object = {};
|
|
value = environment.__proto__;
|
|
binding = env1_0;
|
|
binding2 = env1_2;
|
|
getConstants = binding(binding2[13]).getConstants;
|
|
object.ClientInfoUtils = {getConstants: getConstants};
|
|
object3 = {};
|
|
resetComponentProfiler = binding(binding2[9]).resetComponentProfiler;
|
|
object3.resetComponentProfiler = resetComponentProfiler;
|
|
resumeComponentProfiler = binding(binding2[9]).resumeComponentProfiler;
|
|
object3.resumeComponentProfiler = resumeComponentProfiler;
|
|
pauseComponentProfiler = binding(binding2[9]).pauseComponentProfiler;
|
|
object3.pauseComponentProfiler = pauseComponentProfiler;
|
|
dumpStats = binding(binding2[9]).dumpStats;
|
|
object3.dumpStats = dumpStats;
|
|
object.ComponentProfiler = object3;
|
|
binding3 = env1_1;
|
|
object.Dispatcher = binding3(binding2[11]);
|
|
object.ExperimentStore = env1_5;
|
|
object.NativeJankStats = binding3(binding2[10]);
|
|
object.ProcessUtils = binding3(binding2[12]);
|
|
object4 = {};
|
|
startRecordingAnalyticsEvents = binding(binding2[14]).startRecordingAnalyticsEvents;
|
|
object4.startRecordingAnalyticsEvents = startRecordingAnalyticsEvents;
|
|
stopRecordingAnalyticsEvents = binding(binding2[14]).stopRecordingAnalyticsEvents;
|
|
object4.stopRecordingAnalyticsEvents = stopRecordingAnalyticsEvents;
|
|
getAnalyticsEventsRecording = binding(binding2[14]).getAnalyticsEventsRecording;
|
|
object4.getAnalyticsEventsRecording = getAnalyticsEventsRecording;
|
|
clearAnalyticsEventsRecording = binding(binding2[14]).clearAnalyticsEventsRecording;
|
|
object4.clearAnalyticsEventsRecording = clearAnalyticsEventsRecording;
|
|
object.AnalyticsUtils = object4;
|
|
object.TTITestAction = {apiLogin: env1_20, setupTTITest: env1_18};
|
|
binding = env1_3;
|
|
constructor = binding(_fun125692).constructor;
|
|
object6 = {};
|
|
reducibleJoin3: while (true) {
|
|
if (args != null) {
|
|
r14 = args;
|
|
break reducibleJoin3;
|
|
}
|
|
r14 = {};
|
|
break reducibleJoin3;
|
|
}
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value3 = Reflect.apply(keys, Object, [object]);
|
|
Object = global.Object;
|
|
values = Object.values;
|
|
value4 = Reflect.apply(values, Object, [object]);
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value5 = Reflect.apply(keys, Object, [r14]);
|
|
Object = global.Object;
|
|
values = Object.values;
|
|
value6 = Reflect.apply(values, Object, [r14]);
|
|
reducibleJoin6: while (true) {
|
|
reduciblePort53: while (true) {
|
|
exceptionLanding43: while (true) {
|
|
try {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
binding = env1_17;
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
value19 = binding(error);
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
object.details = value19;
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
String = global.String;
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
value20 = String(error);
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
object.string = value20;
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
object6.error = object;
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
break reduciblePort53;
|
|
}
|
|
if (typeof reply === 'string') {
|
|
fetch = global.fetch;
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
yield fetch(reply, {method: 'PUT', body: Reflect.apply(stringify, JSON, [object6]),
|
|
headers: {['Content-Type']: 'application/json'}});
|
|
value21 = undefined;
|
|
value22 = false;
|
|
if (value22) {
|
|
return value21;
|
|
}
|
|
ok = value21.ok;
|
|
binding = env1_15;
|
|
if (ok) {
|
|
binding('success', 'Backchannel reply sent');
|
|
} else {
|
|
status = value21.status;
|
|
binding('error', 'Failed to send backchannel reply', {status: status});
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
value7 = arraySpread(object, value3, 0, getAnalyticsEventsRecording);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
object[value7] = 'imports';
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value8 = value7 + 1;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value9 = arraySpread(object, value5, value8, getAnalyticsEventsRecording);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
String = global.String;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value10 = String(source);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
object[value9] = value10;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value9 + 1;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value11 = apply(constructor, object, undefined, getAnalyticsEventsRecording);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value12 = arraySpread(object, value4, 0, getAnalyticsEventsRecording);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
object[value12] = value3;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value13 = value12 + 1;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
arraySpread(object, value6, value13, getAnalyticsEventsRecording);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
try {
|
|
try {
|
|
value14 = apply(value11, object, undefined, getAnalyticsEventsRecording);
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
yield value14;
|
|
try {
|
|
try {
|
|
value15 = undefined;
|
|
value16 = false;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
if (value16) {
|
|
if (typeof reply === 'string') {
|
|
fetch = global.fetch;
|
|
JSON = global.JSON;
|
|
yield fetch(reply, {method: 'PUT', body: JSON.stringify(object6),
|
|
headers: {['Content-Type']: 'application/json'}});
|
|
value17 = undefined;
|
|
if (false) {
|
|
return value17;
|
|
}
|
|
ok = value17.ok;
|
|
binding = env1_15;
|
|
if (ok) {
|
|
binding('success', 'Backchannel reply sent');
|
|
} else {
|
|
binding('error', 'Failed to send backchannel reply', {status: value17.status});
|
|
}
|
|
}
|
|
return value15;
|
|
}
|
|
try {
|
|
try {
|
|
object6.result = value15;
|
|
} catch (error) {
|
|
break exceptionLanding43;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding61;
|
|
}
|
|
if (typeof reply === 'string') {
|
|
fetch = global.fetch;
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
yield fetch(reply, {method: 'PUT', body: Reflect.apply(stringify, JSON, [object6]),
|
|
headers: {['Content-Type']: 'application/json'}});
|
|
value21 = undefined;
|
|
value22 = false;
|
|
if (value22) {
|
|
return value21;
|
|
}
|
|
ok = value21.ok;
|
|
binding = env1_15;
|
|
if (ok) {
|
|
binding('success', 'Backchannel reply sent');
|
|
} else {
|
|
status = value21.status;
|
|
binding('error', 'Failed to send backchannel reply', {status: status});
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
if (typeof reply !== 'string') {
|
|
throw error;
|
|
}
|
|
fetch = global.fetch;
|
|
object = {method: 'PUT'};
|
|
JSON = global.JSON;
|
|
object.body = JSON.stringify(object6);
|
|
object.headers = {['Content-Type']: 'application/json'};
|
|
yield fetch(reply, object);
|
|
const value23 = undefined;
|
|
if (false) {
|
|
return value23;
|
|
}
|
|
ok = value23.ok;
|
|
binding = env1_15;
|
|
if (ok) {
|
|
binding('success', 'Backchannel reply sent');
|
|
throw error;
|
|
}
|
|
binding('error', 'Failed to send backchannel reply', {status: value23.status});
|
|
throw error;
|
|
}
|
|
|
|
function backchannel() { // fn#125693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:3669, offset: 0x00ccfcea, size: 30 bytes, params: 1, frame: 13
|
|
return env0_10.apply(this, arguments);
|
|
}
|
|
|
|
function _fun125694() { // fn#125694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7735, offset: 0x025e14ce, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env0_3(_fun125696);
|
|
return _fun125697;
|
|
function* _fun125696({actionData}) { // fn#125696, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:7755, offset: 0x025e14fd, size: 244 bytes, params: 2, frame: 19
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const TextDecoder = global.TextDecoder;
|
|
let textDecoder = new TextDecoder('utf-8');
|
|
const decode = textDecoder.decode;
|
|
let binding = env2_0;
|
|
const value5 = binding(env2_2[19]);
|
|
textDecoder = Reflect.apply(decode, textDecoder, [value5.base64decode(actionData)]);
|
|
const JSON = global.JSON;
|
|
textDecoder = JSON.parse(textDecoder);
|
|
binding = env2_11;
|
|
const log = binding.log;
|
|
const object = {};
|
|
copyDataProperties(object, textDecoder, undefined);
|
|
const user = textDecoder.user;
|
|
object['user'] = user == null ? undefined : 'redacted';
|
|
Reflect.apply(log, binding, ['Received TTI Test Action', object]);
|
|
yield env2_4.promise;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
env2_12[textDecoder.type](textDecoder);
|
|
const Promise = global.Promise;
|
|
return Promise.resolve();
|
|
}
|
|
|
|
function _fun125697(a0) { // fn#125697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:8001, offset: 0x00c3945f, size: 30 bytes, params: 2, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun125661(a0) { // fn#125661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:5492, offset: 0x011a630b, size: 27 bytes, params: 2, frame: 13
|
|
return global.setTimeout(a0, 1000);
|
|
}
|
|
|
|
function _fun125664(a0) { // fn#125664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:6304, offset: 0x011a630b, size: 27 bytes, params: 2, frame: 13
|
|
return global.setTimeout(a0, 1000);
|
|
}
|
|
|
|
function _fun125665(a0) { // fn#125665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16466:6408, offset: 0x011a630b, size: 27 bytes, params: 2, frame: 13
|
|
return global.setTimeout(a0, 1000);
|
|
}
|
|
|
|
function* _fun125692() { // fn#125692, original name: ?anon_0_, offset: 0x00c861c8, size: 15 bytes, params: 1, frame: 2
|
|
if (false) {
|
|
}
|
|
}
|
|
|
|
global.__d(_fun125643, 16258, [5, 15577, 4107, 4255, 1226, 1379, 1867, 3, 4014, 11222, 15755, 694, 5256, 1582, 683,
|
|
5076, 8879, 4601, 13965, 1316,
|
|
2]) /* metro module 16258, dependencies: [5, 15577, 4107, 4255, 1226, 1379, 1867, 3, 4014, 11222, 15755, 694, 5256, 1582, 683, 5076, 8879, 4601, 13965, 1316, 2] */;
|