/* Metro module 9258; source: modules/rtc/TransientKeyStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun72331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:6, offset: 0x01d42b13, size: 319 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Map = global.Map; let map = new Map(); const Store = (Flux).Store; _fun72335(Store).displayName = 'TransientKeyStore'; map = new map(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: CONNECTION_OPEN_72339, SECURE_FRAMES_TRANSIENT_KEY_CREATE: SECURE_FRAMES_TRANSIENT_KEY_CREATE_72340, SECURE_FRAMES_TRANSIENT_KEY_DELETE: SECURE_FRAMES_TRANSIENT_KEY_DELETE}); (FileImportTrackerModule).fileFinishedImporting('modules/rtc/TransientKeyStore.tsx'); exports.default = map; function _isNativeReflectConstruct_72332() { // fn#72332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:154, offset: 0x01d42c52, size: 98 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_72332_isNativeReflectConstruct = function() { return !!result; })(); } function _fun72335(a0) { // fn#72335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:367, offset: 0x01d42cb4, size: 97 bytes, params: 2, frame: 16 const TransientKeyStore2 = TransientKeyStore; Inherits(TransientKeyStore2, a0); return CreateClass(TransientKeyStore2, [{key: 'getUsers', value: value_72337}, {key: 'isKeyVerified', value: value_72338}]); function TransientKeyStore() { // fn#72336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:379, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_0(this, TransientKeyStore); const value3 = env1_3(TransientKeyStore); return env1_2(this, _isNativeReflectConstruct_72332() ? global.Reflect.construct(value3, arguments, env1_3(this).constructor) : value3.apply(this, arguments)); } function value_72337() { // fn#72337, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1 return env1_5; } function value_72338(a0, a1) { // fn#72338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:729, offset: 0x01d42d15, size: 97 bytes, params: 3, frame: 13 var r1; var property; var value3; let value = environment.__proto__; value = env1_5.get(a0); if (a1 == null) { return false; } if (value == null) { return false; } let length = value.length; if (length !== a1.length) { return false; } length = a1.length; const value2 = 0; if (value2 < length) { r1 = value2; loopExit4: while (true) { property = a1[r1]; if (property !== value[r1]) { return false; } value3 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; length = a1.length; if (value3 < length) { r1 = value3; continue; } break loopExit4; } } return true; } } function CONNECTION_OPEN_72339() { // fn#72339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:961, offset: 0x01d42d76, size: 21 bytes, params: 1, frame: 9 env0_5.clear(); } function SECURE_FRAMES_TRANSIENT_KEY_CREATE_72340({userId, key}) { // fn#72340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:1039, offset: 0x01d42d8b, size: 63 bytes, params: 2, frame: 13 const Uint8Array = global.Uint8Array; env0_5.set(userId, new Uint8Array(key)); } function SECURE_FRAMES_TRANSIENT_KEY_DELETE({userId}) { // fn#72341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9443:1174, offset: 0x01d42dca, size: 27 bytes, params: 2, frame: 11 return env0_5.delete(userId); } } global.__d(_fun72331, 9258, [6, 7, 15, 17, 18, 566, 694, 2]) /* metro module 9258, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;