Files
discord-decomp/sources/by-id/module-04244.jsx
T
2026-07-27 16:20:00 +03:00

551 lines
20 KiB
React

/* Metro module 4244; source: unknown; dependencies: [10] */
function _fun35223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4415:6, offset: 0x0106c9ce, size: 67 bytes, params: 8, frame: 3
const env0_0 = require;
module.exports = exports_35224;
module.exports.__esModule = true;
module.exports.default = module.exports;
}
function exports_35224() { // fn#35224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4415:36, offset: 0x0106ca11, size: 917 bytes, params: 1, frame: 36
var r6;
var error;
let closure = function(a0, a1, a2) {
var Object = global.Object;
Object.defineProperty(a0, a1, {'value': null, 'enumerable': true, 'configurable': true, 'writable': true,
value: a2});
return a0[a1];
};
var env0_11;
const closure2 = wrap_35226;
const exports_35224TryCatch = function(a0, a1, a2) {
var object;
var value;
var error;
try {
object = {type: 'normal'};
value = a0.call(a1, a2);
object.arg = value;
} catch (error) {
return {type: 'throw', arg: error};
}
return object;
};
const closure3 = function() {
};
const closure4 = function() {
};
const closure5 = function() {
};
const closure6 = function(a0) {
var env0_0 = a0;
['next', 'throw', 'return'].forEach(_fun35232);
};
const closure7 = AsyncIterator_35234;
const exports_35224PushTryEntry = function(a0) {
var object = {tryLoc: a0[0]};
if (1 in a0) {
object.catchLoc = a0[1];
}
if (2 in a0) {
object.finallyLoc = a0[2];
object.afterLoc = a0[3];
}
this.tryEntries.push(object);
};
const exports_35224ResetTryEntry = function(a0) {
var r0;
r0 = a0.completion || ({});
r0.type = 'normal';
delete r0.arg;
a0.completion = r0;
};
const closure8 = function(a0) {
this.tryEntries = [{tryLoc: 'root'}];
a0.forEach(exports_35224PushTryEntry, this);
this.reset(true);
};
const closure9 = values_35249;
const binding = env0_1;
binding.exports = exports_35251;
binding.exports.__esModule = true;
binding.exports.default = binding.exports;
const object2 = {};
let Object = global.Object;
const prototype = Object.prototype;
const hasOwnProperty = prototype.hasOwnProperty;
Object = global.Object;
const r23 = Object.defineProperty || (function(a0, a1, a2) {
a0[a1] = a2.value;
});
const Symbol = global.Symbol;
const r24 = typeof Symbol === 'function' ? global.Symbol : {};
let iterator = r24.iterator;
iterator = !iterator ? '@@iterator' : iterator;
let asyncIterator = r24.asyncIterator;
asyncIterator = !asyncIterator ? '@@asyncIterator' : asyncIterator;
const r232 = r24.toStringTag || '@@toStringTag';
try {
closure({}, '');
r6 = closure;
} catch (error) {
closure = function(a0, a1, a2) {
a0[a1] = a2;
return a2;
};
env0_11 = closure;
r6 = closure;
}
object2.wrap = closure2;
const env0_9 = {};
const object3 = {};
r6(object3, iterator, function() {
return this;
});
Object = global.Object;
const getPrototypeOf = Object.getPrototypeOf;
const r19 = getPrototypeOf && getPrototypeOf(getPrototypeOf(closure9([])));
const r7 = r19 && r19 !== prototype && hasOwnProperty.call(r19, iterator) ? r19 : object3;
Object = global.Object;
let value = Object.create(r7);
closure3.prototype = value;
closure5.prototype = value;
closure4.prototype = closure5;
r23(value, 'constructor', {value: closure5, configurable: true});
r23(closure5, 'constructor', {value: closure4, configurable: true});
closure4.displayName = r6(closure5, r232, 'GeneratorFunction');
object2.isGeneratorFunction = isGeneratorFunction_35255;
object2.mark = mark_35256;
object2.awrap = function(a0) {
return {__await: a0};
};
closure6(closure7.prototype);
r6(closure7.prototype, asyncIterator, function() {
return this;
});
object2.AsyncIterator = closure7;
object2.async = async_35259;
closure6(value);
r6(value, r232, 'Generator');
r6(value, iterator, function() {
return this;
});
r6(value, 'toString', function() {
return '[object Generator]';
});
object2.keys = function(a0) {
var propertyName;
var value = (0, global.Object)(a0);
var env0_0 = value;
var items = [];
var env0_1 = items;
for (propertyName in value) {
items.push(propertyName);
}
items.reverse();
var closure = _fun35264;
var env0_2 = closure;
return closure;
};
object2.values = closure9;
closure8.prototype = {constructor: closure8, reset: reset_35265, stop: function() {
this.done = true;
var completion = this.tryEntries[0].completion;
if (completion.type === 'throw') {
throw completion.arg;
}
return this.rval;
}, dispatchException: dispatchException_35267, abrupt: abrupt_35269, complete: complete_35270, finish: finish_35271,
catch: exports_35224_catch, delegateYield: delegateYield_35273};
return object2;
}
function exports_35224DefineIteratorMethods(a0) { // fn#35231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:1368, owner: exports_35224.defineIteratorMethods, offset: 0x0106cda6, size: 38 bytes, params: 2, frame: 11
const env0_0 = a0;
['next', 'throw', 'return'].forEach(_fun35232);
}
function exports_35224AsyncIterator(a0, a1) { // fn#35234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:1504, owner: exports_35224.AsyncIterator, offset: 0x0106cdf3, size: 61 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
env0_2(this, '_invoke', {value: value_35240});
}
function exports_35224MakeInvokeMethod(a0, a1, a2) { // fn#35243, owner: exports_35224.makeInvokeMethod, offset: 0x0106cf7b, size: 41 bytes, params: 4, frame: 2
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return _fun35244;
}
function exports_35224Values(a0) { // fn#35249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:3734, owner: exports_35224.values, offset: 0x0106d19a, size: 194 bytes, params: 2, frame: 14
var environment;
var value;
var property;
var closure;
var TypeError;
const env0_0 = a0;
if (a0) {
property = a0[iterator];
if (property) {
return property.call(a0);
}
if (typeof a0.next === 'function') {
return a0;
}
if (global.isNaN(a0.length)) {
TypeError = global.TypeError;
value = environment.__proto__;
value = require(10) /* metro dependency 10 */;
value = value.default(a0);
value += ' is not iterable';
throw new TypeError();
}
closure = next_35250;
var next_35250 = closure;
} else {
if (a0 !== '') {
TypeError = global.TypeError;
value = environment.__proto__;
value = require(10) /* metro dependency 10 */;
value = value.default(a0);
value += ' is not iterable';
throw new TypeError();
}
property = a0[iterator];
if (property) {
return property.call(a0);
}
if (typeof a0.next === 'function') {
return a0;
}
if (global.isNaN(a0.length)) {
TypeError = global.TypeError;
value = environment.__proto__;
value = require(10) /* metro dependency 10 */;
value = value.default(a0);
value += ' is not iterable';
throw new TypeError();
}
closure = next_35250;
}
closure.next = closure;
return closure;
}
function exports_35224Async(a0, a1, a2, a3, a4) { // fn#35259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:4931, owner: exports_35224.async, offset: 0x0106d25c, size: 125 bytes, params: 6, frame: 21
var r0;
let value = a4;
const asyncIterator_35234 = new AsyncIterator_35234(wrap_35226(a0, a1, a2, a3),
value !== undefined ? value : global.Promise);
const binding = asyncIterator_35234;
if (binding.isGeneratorFunction(a1)) {
r0 = asyncIterator_35234;
} else {
value = asyncIterator_35234.next();
value = value.then(_fun35260);
r0 = value;
}
return r0;
}
function exports_35224Keys(a0) { // fn#35263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:5268, owner: exports_35224.keys, offset: 0x0106d2d9, size: 88 bytes, params: 2, frame: 17
var propertyName;
const Object = global.Object;
const value = Object(a0);
const items2 = [];
for (propertyName in value) {
items2.push(propertyName);
}
items2.reverse();
return keysNext;
}
function exports_35224DispatchException(a0) { // fn#35267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:5924, owner: exports_35224.dispatchException, offset: 0x0106d331, size: 360 bytes, params: 2, frame: 27
var r11;
var property;
var completion;
var tryLoc;
var prev;
var hasOwnPropertyBinding;
var call;
var value3;
var finallyLoc;
var catchLoc;
const env0_0 = a0;
const closure = dispatchExceptionHandle_35268;
if (this.done) {
throw a0;
}
let tryEntries = this.tryEntries;
let value = tryEntries.length - 1;
if (value >= 0) {
r11 = value;
reducibleLoop2: while (true) {
tryEntries = this.tryEntries;
property = tryEntries[r11];
completion = property.completion;
var env0_2 = completion;
tryLoc = property.tryLoc;
if (tryLoc === 'root') {
return closure('end');
}
tryLoc = property.tryLoc;
prev = this.prev;
if (tryLoc <= prev) {
hasOwnPropertyBinding = hasOwnProperty;
call = hasOwnPropertyBinding.call;
value = Reflect.apply(call, hasOwnPropertyBinding, [property, 'catchLoc']);
hasOwnPropertyBinding = hasOwnProperty;
call = hasOwnPropertyBinding.call;
value3 = Reflect.apply(call, hasOwnPropertyBinding, [property, 'finallyLoc']);
reducibleJoin15: while (true) {
reducibleJoin6: while (true) {
if (value) {
if (value3) {
prev = this.prev;
catchLoc = property.catchLoc;
if (prev < catchLoc) {
return closure(property.catchLoc, true);
}
prev = this.prev;
finallyLoc = property.finallyLoc;
if (prev < finallyLoc) {
return closure(property.finallyLoc);
}
break reducibleJoin15;
}
break reducibleJoin6;
}
break reducibleJoin6;
}
if (value) {
prev = this.prev;
catchLoc = property.catchLoc;
if (prev < catchLoc) {
return closure(property.catchLoc, true);
}
break reducibleJoin15;
}
if (!value3) {
throw global.Error('try statement without catch or finally');
}
prev = this.prev;
finallyLoc = property.finallyLoc;
if (prev < finallyLoc) {
return closure(property.finallyLoc);
}
break reducibleJoin15;
}
}
value = typeof r11 === 'bigint' ? r11 - 1n : +r11 - 1;
if (!(value >= 0)) {
return undefined;
}
r11 = value;
continue reducibleLoop2;
}
}
}
function exports_35224_catch(a0) { // fn#35272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:7391, owner: exports_35224._catch, offset: 0x0106d499, size: 123 bytes, params: 2, frame: 14
var r1;
var arg;
var property;
var tryLoc;
var completion;
var type;
var value2;
let tryEntries = this.tryEntries;
let value = tryEntries.length - 1;
if (value >= 0) {
r1 = value;
loopExit1: while (true) {
tryEntries = this.tryEntries;
property = tryEntries[r1];
tryLoc = property.tryLoc;
if (tryLoc === a0) {
completion = property.completion;
type = completion.type;
if (type !== 'throw') {
arg = undefined;
continue;
}
arg = completion.arg;
value2 = environment;
exports_35224ResetTryEntry(property);
return arg;
}
value = typeof r1 === 'bigint' ? r1 - 1n : +r1 - 1;
if (value >= 0) {
r1 = value;
continue;
}
break loopExit1;
}
}
const Error = global.Error;
throw Error('illegal catch attempt');
}
function _fun35232(a0) { // fn#35232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:1437, offset: 0x0106cdcc, size: 39 bytes, params: 2, frame: 15
env1_11(a0, a0, _fun35233);
}
function AsyncIteratorInvoke_35235(a0, a1, a2, a3) { // fn#35235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:1532, owner: exports_35224.AsyncIterator.invoke, offset: 0x0106ce30, size: 235 bytes, params: 5, frame: 19
var environment;
var r0;
var value4;
var value5;
var hasOwnPropertyBinding;
const env0_0 = a2;
const env0_1 = a3;
let value = environment.__proto__;
const exports_35224TryCatchBinding = exports_35224TryCatch;
const binding = env0_0;
const value3 = exports_35224TryCatchBinding(binding[a0], binding, a1);
if (value3.type !== 'throw') {
value4 = value3.arg.value;
if (value4) {
value5 = environment.__proto__.__proto__;
if ((require(10) /* metro dependency 10 */).default(value4) != 'object') {
value = require.resolve(value4);
value = value.then(function(a0) {
arg.value = a0;
importDefault(arg);
}, _fun35239);
r0 = value;
} else {
hasOwnPropertyBinding = hasOwnProperty;
if (hasOwnPropertyBinding.call(value4, '__await')) {
value = require.resolve(value4.__await);
value = value.then(_fun35236, _fun35237);
r0 = value;
} else {
value = require.resolve(value4);
value = value.then(_fun35238, _fun35239);
r0 = value;
}
}
} else {
value = require.resolve(value4);
value = value.then(_fun35238, _fun35239);
r0 = value;
}
return r0;
}
a3(value3.arg);
}
function AsyncIteratorValue_35240(a0, a1) { // fn#35240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:1919, owner: exports_35224.AsyncIterator.value, offset: 0x0106cf1b, size: 60 bytes, params: 3, frame: 14
const env0_0 = a0;
const env0_1 = a1;
const closure = valueCallInvokeWithMethodAndArg_35241;
return env0_2 ? env0_2.then(closure, closure) : closure();
}
function _fun35244(a0, a1) { // fn#35244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:2177, offset: 0x0106cfa4, size: 502 bytes, params: 3, frame: 27
var r3;
var delegate;
var value3;
var method;
var abrupt;
var arg;
var dispatchException;
var exports_35224TryCatchBinding;
var value4;
var type;
var done;
let binding = env0_3;
if (binding === env1_7) {
throw global.Error('Generator is already running');
}
if (env0_3 === env1_8) {
if (a0 === 'throw') {
throw a1;
}
return {value: undefined, done: true};
}
importDefault.method = a0;
importDefault.arg = a1;
reducibleLoop3: while (true) {
delegate = importDefault.delegate;
if (delegate) {
value3 = exports_35224MaybeInvokeDelegate(delegate, importDefault);
reducibleJoin5: while (true) {
if (value3) {
if (value3 !== env1_9) {
return value3;
}
continue reducibleLoop3;
}
break reducibleJoin5;
}
}
method = importDefault.method;
if (method === 'next') {
arg = importDefault.arg;
importDefault._sent = arg;
importDefault.sent = arg;
} else {
method = importDefault.method;
if (method === 'throw') {
if (env0_3 === env1_5) {
env0_3 = env1_8;
throw importDefault.arg;
}
dispatchException = importDefault.dispatchException;
Reflect.apply(dispatchException, importDefault, [importDefault.arg]);
} else {
method = importDefault.method;
reducibleJoin13: while (true) {
if (method !== 'return') {
break reducibleJoin13;
}
abrupt = importDefault.abrupt;
arg = importDefault.arg;
Reflect.apply(abrupt, importDefault, ['return', arg]);
break reducibleJoin13;
}
}
}
env0_3 = env1_7;
exports_35224TryCatchBinding = exports_35224TryCatch;
binding = env0_0;
value4 = exports_35224TryCatchBinding(binding, require, importDefault);
type = value4.type;
if (type === 'normal') {
done = importDefault.done;
if (done) {
binding = env1_8;
r3 = binding;
} else {
binding = env1_6;
r3 = binding;
}
env0_3 = r3;
if (value4.arg !== env1_9) {
return {value: value4.arg, done: importDefault.done};
}
continue reducibleLoop3;
}
type = value4.type;
if (type !== 'throw') {
continue reducibleLoop3;
}
env0_3 = env1_8;
importDefault.method = 'throw';
arg = value4.arg;
importDefault.arg = arg;
continue reducibleLoop3;
}
}
function valueCallInvokeWithMethodAndArg_35241() { // fn#35241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4416:1939, owner: exports_35224.AsyncIterator.value.callInvokeWithMethodAndArg, offset: 0x0106cf57, size: 36 bytes, params: 1, frame: 11
var environment;
let value = environment.__proto__;
value = Object.create(require.prototype, {constructor: {value: require}});
const require2 = new require(_fun35242);
return require2 instanceof Object ? require2 : value;
}