364 lines
17 KiB
JavaScript
364 lines
17 KiB
JavaScript
/* Metro module 1123; source: unknown; dependencies: [1009, 826] */
|
|
function _fun12541(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:6, offset: 0x00dce24f, size: 102 bytes, params: 8, frame: 17
|
|
var closure;
|
|
let value = this;
|
|
let env0_0 = require;
|
|
const createProcessEvent = function() {
|
|
var env0_0 = this;
|
|
var env0_1 = false;
|
|
var env0_2 = null;
|
|
return _fun12543;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
if (!(value && value.__awaiter)) {
|
|
closure = function(a0, a1, a2, a3) {
|
|
var r2;
|
|
var value = a2;
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = value;
|
|
var env0_3 = a3;
|
|
r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
var value2 = new r2(_fun12547);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
}
|
|
exports.modulesLoaderIntegration = function() {
|
|
var object = {name: 'ModulesLoader', setupOnce: _fun12554};
|
|
object.processEvent = createProcessEvent();
|
|
return object;
|
|
};
|
|
function createProcessEvent() { // fn#12542, offset: 0x00dce2b5, size: 28 bytes, params: 1, frame: 2
|
|
return _fun12543;
|
|
function _fun12543(a0) { // fn#12543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:533, offset: 0x00dce2d1, size: 40 bytes, params: 2, frame: 15
|
|
return env1_2(a0, undefined, undefined, _fun12545);
|
|
function* _fun12545() { // fn#12545, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:571, offset: 0x00dce302, size: 237 bytes, params: 1, frame: 17
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var NATIVE;
|
|
var fetchModules;
|
|
var modules;
|
|
var value5;
|
|
var value6;
|
|
var error;
|
|
var debug;
|
|
var value7;
|
|
var Object;
|
|
var assign;
|
|
var Object2;
|
|
var assign2;
|
|
var binding3;
|
|
var modules2;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
if (dependencyMap) {
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
binding.modules = Reflect.apply(assign, Object, [Object2.assign({}, env2_2), binding.modules]);
|
|
}
|
|
value = environment.__proto__;
|
|
} else {
|
|
try {
|
|
binding = env3_0;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
try {
|
|
binding2 = env3_1;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
try {
|
|
property = binding2[0];
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
try {
|
|
NATIVE = value4.NATIVE;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
try {
|
|
fetchModules = NATIVE.fetchModules;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
try {
|
|
modules = Reflect.apply(fetchModules, NATIVE, []);
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
yield modules;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
env2_1 = true;
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
assign2 = Object2.assign;
|
|
binding3 = env2_2;
|
|
value = Reflect.apply(assign2, Object2, [{}, binding3]);
|
|
modules2 = binding.modules;
|
|
binding.modules = Reflect.apply(assign, Object, [value, modules2]);
|
|
}
|
|
value = environment.__proto__;
|
|
return env1_0;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
env2_2 = value5;
|
|
} catch (error) {
|
|
binding = env3_0;
|
|
debug = binding(env3_1[1]).debug;
|
|
debug.log('Failed to get modules from native: ' + error);
|
|
}
|
|
if (env2_2) {
|
|
value7 = environment.__proto__;
|
|
binding = env1_0;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
binding.modules = Reflect.apply(assign, Object, [Object2.assign({}, env2_2), binding.modules]);
|
|
}
|
|
value = environment.__proto__;
|
|
}
|
|
return env1_0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12546(a0, a1, a2, a3) { // fn#12546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:122, offset: 0x00dce3ef, size: 75 bytes, params: 5, frame: 12
|
|
let value = a2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_3 = a3;
|
|
let r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
r2 = new r2(_fun12547);
|
|
return r2 instanceof Object ? r2 : value;
|
|
function _fun12547(a0, a1) { // fn#12547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:168, offset: 0x00dce43a, size: 98 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const step_125502 = step_12550;
|
|
const value2 = importAll.apply(env0_0, require || []);
|
|
step_125502(value2.next());
|
|
function fulfilled_12548(a0) { // fn#12548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:182, offset: 0x00d57fb9, size: 56 bytes, params: 2, frame: 12
|
|
var value;
|
|
var step_12550Binding;
|
|
var value2;
|
|
var next;
|
|
var value3;
|
|
var error;
|
|
try {
|
|
value = environment;
|
|
step_12550Binding = step_12550;
|
|
value2 = environment.__proto__;
|
|
next = importAll.next;
|
|
value3 = Reflect.apply(next, importAll, [a0]);
|
|
step_12550Binding(value3);
|
|
} catch (error) {
|
|
require(error);
|
|
}
|
|
}
|
|
|
|
function rejected_12549(a0) { // fn#12549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:239, offset: 0x00d57ff1, size: 57 bytes, params: 2, frame: 12
|
|
var value;
|
|
var step_12550Binding;
|
|
var value2;
|
|
var value3;
|
|
var error;
|
|
try {
|
|
value = environment;
|
|
step_12550Binding = step_12550;
|
|
value2 = environment.__proto__;
|
|
value3 = importAll.throw(a0);
|
|
step_12550Binding(value3);
|
|
} catch (error) {
|
|
require(error);
|
|
}
|
|
}
|
|
|
|
function step_12550(a0) { // fn#12550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:296, offset: 0x00dce49c, size: 77 bytes, params: 2, frame: 14
|
|
var value;
|
|
if (a0.done) {
|
|
env0_0(a0.value);
|
|
} else {
|
|
value = a0.value;
|
|
value = step_12550Adopt(value);
|
|
value.then(fulfilled_12548, rejected_12549);
|
|
}
|
|
function step_12550Adopt(a0) { // fn#12551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:331, owner: step_12550.adopt, offset: 0x00dce4e9, size: 54 bytes, params: 2, frame: 12
|
|
const value = a0;
|
|
return value instanceof env2_2 ? value : new env2_2(_fun12552);
|
|
function _fun12552(a0) { // fn#12552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:380, offset: 0x00cd9b0e, size: 19 bytes, params: 2, frame: 11
|
|
a0(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function modulesLoaderIntegration() { // fn#12553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1250:808, offset: 0x00dce51f, size: 44 bytes, params: 1, frame: 10
|
|
const object = {name: 'ModulesLoader', setupOnce: function() {
|
|
}};
|
|
object.processEvent = createProcessEvent();
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
function modulesLoaderIntegrationSetupOnce() { // fn#12554, owner: modulesLoaderIntegration.setupOnce, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
global.__d(_fun12541, 1123, [1009, 826]) /* metro module 1123, dependencies: [1009, 826] */;
|