190 lines
7.8 KiB
JavaScript
190 lines
7.8 KiB
JavaScript
/* Metro module 976; source: unknown; dependencies: [975] */
|
|
function _fun10255(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:6, offset: 0x00d84452, size: 176 bytes, params: 8, frame: 7
|
|
let env0_0 = require;
|
|
const closure = function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_3 = _fun10257;
|
|
var env0_4 = _fun10260;
|
|
this._invoke = _fun10261;
|
|
if (typeof a0.return !== 'function') {
|
|
this.return = undefined;
|
|
}
|
|
};
|
|
const prototype = closure.prototype;
|
|
const Symbol = global.Symbol;
|
|
let r4 = typeof Symbol === 'function' && global.Symbol.asyncIterator;
|
|
r4 = !r4 ? '@@asyncIterator' : r4;
|
|
prototype[r4] = function() {
|
|
return this;
|
|
};
|
|
closure.prototype.next = function(a0) {
|
|
return this._invoke('next', a0);
|
|
};
|
|
closure.prototype.throw = function(a0) {
|
|
return this._invoke('throw', a0);
|
|
};
|
|
closure.prototype.return = function(a0) {
|
|
return this._invoke('return', a0);
|
|
};
|
|
module.exports = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun10268;
|
|
};
|
|
module.exports.__esModule = true;
|
|
module.exports.default = module.exports;
|
|
function AsyncGenerator(a0) { // fn#10256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:33, offset: 0x00d84502, size: 69 bytes, params: 2, frame: 4
|
|
let env0_0 = a0;
|
|
this._invoke = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun10262);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
if (typeof a0.return !== 'function') {
|
|
this.return = undefined;
|
|
}
|
|
function resume(a0, a1) { // fn#10257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:68, owner: AsyncGenerator.resume, offset: 0x00d84547, size: 156 bytes, params: 3, frame: 16
|
|
var environment;
|
|
var r2;
|
|
var value;
|
|
var binding;
|
|
var property;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var moduleValue;
|
|
var value5;
|
|
var Promise;
|
|
var resolve;
|
|
var v;
|
|
var value6;
|
|
var closure;
|
|
var closure2;
|
|
var error;
|
|
try {
|
|
value = environment;
|
|
binding = a0;
|
|
value2 = binding[a0](a1);
|
|
var env0_1 = value2;
|
|
value3 = value2.value;
|
|
var env0_2 = value3;
|
|
value4 = environment.__proto__;
|
|
property = dependencyMap[0];
|
|
moduleValue = require(property);
|
|
value5 = value3 instanceof moduleValue;
|
|
var result = value5;
|
|
Promise = global.Promise;
|
|
resolve = Promise.resolve;
|
|
if (value5) {
|
|
v = value3.v;
|
|
r2 = v;
|
|
} else {
|
|
r2 = value3;
|
|
}
|
|
value6 = Reflect.apply(resolve, Promise, [r2]);
|
|
closure = _fun10258;
|
|
closure2 = function(a0) {
|
|
resume('throw', a0);
|
|
};
|
|
value6.then(closure, closure2);
|
|
} catch (error) {
|
|
settle('throw', error);
|
|
}
|
|
function _fun10258(a0) { // fn#10258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:172, offset: 0x00d845e3, size: 130 bytes, params: 2, frame: 15
|
|
var r2;
|
|
var r5;
|
|
var value4;
|
|
var value5;
|
|
var done;
|
|
var value6;
|
|
var value8;
|
|
var settleBinding;
|
|
var value11;
|
|
const value2 = a0;
|
|
if (result) {
|
|
value4 = 'next';
|
|
value5 = 'return';
|
|
r2 = value5 !== env0_0 ? value4 : value5;
|
|
if (value.k) {
|
|
done = value2.done;
|
|
if (done) {
|
|
value11 = environment.__proto__;
|
|
resume(r2, value2);
|
|
return undefined;
|
|
}
|
|
value6 = environment.__proto__;
|
|
r5 = env1_0[r2](value2).value;
|
|
value8 = environment.__proto__;
|
|
settleBinding = settle;
|
|
done = env0_1.done;
|
|
settleBinding(done ? 'return' : 'normal', r5);
|
|
return undefined;
|
|
}
|
|
value11 = environment.__proto__;
|
|
resume(r2, value2);
|
|
} else {
|
|
settle(env0_1.done ? 'return' : 'normal', value2);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function settle(a0, a1) { // fn#10260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:375, owner: AsyncGenerator.settle, offset: 0x00d8467d, size: 164 bytes, params: 3, frame: 14
|
|
if (a0 === 'return') {
|
|
next2.resolve({value: a1, done: true});
|
|
} else if (a0 === 'throw') {
|
|
next2.reject(a1);
|
|
} else {
|
|
next2.resolve({value: a1, done: false});
|
|
}
|
|
const next = next2.next;
|
|
next2 = next;
|
|
if (next) {
|
|
resume(next2.key, next2.arg);
|
|
}
|
|
}
|
|
|
|
function _invoke(a0, a1) { // fn#10261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:572, owner: this._invoke, offset: 0x00d84721, size: 51 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun10262);
|
|
return promise instanceof Object ? promise : value;
|
|
function _fun10262(a0, a1) { // fn#10262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:606, offset: 0x00d84754, size: 101 bytes, params: 3, frame: 15
|
|
const object = {};
|
|
object.key = env0_0;
|
|
object.arg = require;
|
|
object.resolve = a0;
|
|
object.reject = a1;
|
|
object.next = null;
|
|
if (env1_2) {
|
|
env1_2.next = object;
|
|
} else {
|
|
resume(env0_0, require);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function exports_10267(a0) { // fn#10267, offset: 0x00d847fe, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun10268;
|
|
function _fun10268() { // fn#10268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1103:1147, offset: 0x00d8480e, size: 56 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
value = env0_0.apply(this, arguments);
|
|
const value2 = Object.create(AsyncGenerator.prototype, {constructor: {value: AsyncGenerator}});
|
|
const asyncGenerator = new AsyncGenerator(value);
|
|
return asyncGenerator instanceof Object ? asyncGenerator : value2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun10255, 976, [975]) /* metro module 976, dependencies: [975] */;
|