/* 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] */ 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 = importDefault(5) /* metro dependency 5 */; const env0_4 = (require(15577) /* metro dependency 15577: NativeAppStartup */).applicationReady; const experimentStore = importDefault(4107) /* metro dependency 4107: ExperimentStore */; const env0_6 = (require(4255) /* metro dependency 4255: PostConnectionCallbackStore */).addPostConnectionCallback; const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; let value4 = new (importDefault(3) /* metro dependency 3: Logger */)('TTITestAction'); const object2 = {}; object2['setup-test'] = closure; object2.ping = function() { var JSON = global.JSON; importDefault(dependencyMap[8]).logToDevice(JSON.stringify({type: 'pong'})); }; object2['reset-component-profiler'] = function() { require(dependencyMap[9]).resetComponentProfiler(); sendReply('success', 'reset-component-profiler'); }; object2['pause-component-profiler'] = function() { require(dependencyMap[9]).pauseComponentProfiler(); sendReply('success', 'pause-component-profiler'); }; object2['resume-component-profiler'] = function() { require(dependencyMap[9]).resumeComponentProfiler(); sendReply('success', 'resume-component-profiler'); }; object2['dump-component-profiler-stats'] = _fun125682; object2['dump-jank-stats'] = _fun125683; object2['set-jank-multiplier'] = function(a0) { if (importDefault(dependencyMap[10]) != null) { importDefault(dependencyMap[10]).setJankHeuristicMultiplier(a0.multiplier); } sendReply('success', 'set-jank-multiplier'); }; object2['start-jank-stats'] = function() { if (importDefault(dependencyMap[10]) != null) { importDefault(dependencyMap[10]).startTracking(); } sendReply('success', 'start-jank-stats'); }; object2['flux-dispatch'] = function(a0) { importDefault(dependencyMap[11]).dispatch(a0.action); sendReply('success', 'flux-dispatch'); }; object2['get-token'] = function() { var sendReplyBinding = sendReply; var object = {}; object.token = AuthenticationStore.getToken(); sendReplyBinding('success', 'get-token', object); }; object2['get-resource-usage'] = _fun125688; const env0_10 = value(_fun125690); object2.backchannel = backchannel; module.exports = _fun125694(); (require(2) /* metro dependency 2 */).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 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; (importDefault(4014) /* metro dependency 4014: 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 object2; 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; } } object2 = {}; value10 = _createForOfIteratorHelperLoose_125644(value3); value11 = value10(); done = value11.done; if (!done) { r3 = value11; reducibleLoop7: while (true) { value12 = r3.value; object2[value12] = value[value12]; value13 = value10(); done = value13.done; if (done) { break reducibleLoop7; } r3 = value13; continue reducibleLoop7; } } return object2; } 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); } 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 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 _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 object2 = {}; object2.stats = (require(11222) /* metro dependency 11222: ComponentProfiler */).dumpStats(); sendReplyBinding('success', 'dump-component-profiler-stats', object2); } 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 object2 = {}; object2.cumulativeCPU = (importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).getCumulativeCPUUsage(); object2.currentMemoryUsage = (importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).getCurrentMemoryUsageKB(); sendReplyBinding('success', 'get-resource-usage', object2); } 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 object2; var resetComponentProfiler; var resumeComponentProfiler; var pauseComponentProfiler; var dumpStats; var binding3; var object5; var startRecordingAnalyticsEvents; var stopRecordingAnalyticsEvents; var getAnalyticsEventsRecording; var clearAnalyticsEventsRecording; var constructor; var object7; 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}; object2 = {}; resetComponentProfiler = binding(binding2[9]).resetComponentProfiler; object2.resetComponentProfiler = resetComponentProfiler; resumeComponentProfiler = binding(binding2[9]).resumeComponentProfiler; object2.resumeComponentProfiler = resumeComponentProfiler; pauseComponentProfiler = binding(binding2[9]).pauseComponentProfiler; object2.pauseComponentProfiler = pauseComponentProfiler; dumpStats = binding(binding2[9]).dumpStats; object2.dumpStats = dumpStats; object.ComponentProfiler = object2; binding3 = env1_1; object.Dispatcher = binding3(binding2[11]); object.ExperimentStore = env1_5; object.NativeJankStats = binding3(binding2[10]); object.ProcessUtils = binding3(binding2[12]); object5 = {}; startRecordingAnalyticsEvents = binding(binding2[14]).startRecordingAnalyticsEvents; object5.startRecordingAnalyticsEvents = startRecordingAnalyticsEvents; stopRecordingAnalyticsEvents = binding(binding2[14]).stopRecordingAnalyticsEvents; object5.stopRecordingAnalyticsEvents = stopRecordingAnalyticsEvents; getAnalyticsEventsRecording = binding(binding2[14]).getAnalyticsEventsRecording; object5.getAnalyticsEventsRecording = getAnalyticsEventsRecording; clearAnalyticsEventsRecording = binding(binding2[14]).clearAnalyticsEventsRecording; object5.clearAnalyticsEventsRecording = clearAnalyticsEventsRecording; object.AnalyticsUtils = object5; object.TTITestAction = {apiLogin: env1_20, setupTTITest: env1_18}; binding = env1_3; constructor = binding(_fun125692).constructor; object7 = {}; 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 { object7.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, [object7]), 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(object7), 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 { object7.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, [object7]), 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(object7); 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 _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; } 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 object2; 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 { object2 = {}; } catch (error) { if (r1) { throw error; } binding = env2_15; message = error.message; binding('error', message); return undefined; } try { object2.login = email; } catch (error) { if (r1) { throw error; } binding = env2_15; message = error.message; binding('error', message); return undefined; } try { object2.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, [object2]); } 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 { object2 = {}; } catch (error) { if (r1) { throw error; } binding = env2_15; message = error.message; binding('error', message); return undefined; } try { object2.login = email; } catch (error) { if (r1) { throw error; } binding = env2_15; message = error.message; binding('error', message); return undefined; } try { object2.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, [object2]); } 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* _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 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* _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 object2 = {}; copyDataProperties(object2, textDecoder, undefined); const user = textDecoder.user; object2['user'] = user == null ? undefined : 'redacted'; Reflect.apply(log, binding, ['Received TTI Test Action', object2]); yield env2_4.promise; if (false) { return undefined; } env2_12[textDecoder.type](textDecoder); const Promise = global.Promise; return Promise.resolve(); } 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 closure = 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]; closure(property, _fun125657); value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1; length = items2.length; if (!(value < length)) { break; } } } closure('LOGIN_SUCCESS', _fun125658); } 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 _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 closure = _loop_125672; const items = ['LOGIN_FAILURE', 'PASSWORDLESS_FAILURE', 'LOGIN_ACCOUNT_SCHEDULED_FOR_DELETION', 'LOGIN_ACCOUNT_DISABLED', 'LOGIN_PHONE_IP_AUTHORIZATION_REQUIRED']; let length = items.length; let value = 0; if (value < length) { for (r3 = value; true; r3 = value) { closure(items[r3]); value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; length = items.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 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 _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 _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 _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 _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 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 _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); }