22913 lines
1.2 MiB
Plaintext
22913 lines
1.2 MiB
Plaintext
/* Metro module 8078; source: unknown; dependencies: [] */
|
|
function _fun64114(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:6, offset: 0x01b9c0f7, size: 152 bytes, params: 8, frame: 25
|
|
var r5;
|
|
var r14;
|
|
var define;
|
|
var amd;
|
|
var value4;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
const value = exports;
|
|
const value2 = this;
|
|
const closure = _fun64115;
|
|
const value3 = typeof value;
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin4: while (true) {
|
|
if (value3 !== 'object') {
|
|
define = global.define;
|
|
if (typeof define !== 'function') {
|
|
break reducibleJoin4;
|
|
}
|
|
define = global.define;
|
|
if (define.amd) {
|
|
global.define([], closure);
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
if (typeof module === 'object') {
|
|
module.exports = closure();
|
|
break reducibleJoin10;
|
|
}
|
|
define = global.define;
|
|
if (typeof define !== 'function') {
|
|
break reducibleJoin4;
|
|
}
|
|
define = global.define;
|
|
amd = define.amd;
|
|
if (amd) {
|
|
define = global.define;
|
|
define([], closure);
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
value4 = closure();
|
|
properties = Object.keys(value4);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties === undefined) {
|
|
break reducibleJoin10;
|
|
}
|
|
r5 = properties2;
|
|
reducibleLoop5: while (true) {
|
|
propertyName = properties[r5];
|
|
propertyName2 = r5 + 1;
|
|
if (propertyName === undefined) {
|
|
break reducibleJoin10;
|
|
}
|
|
r14 = value3 !== 'object' ? value2 : value;
|
|
r14[propertyName] = value4[propertyName];
|
|
r5 = propertyName2;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
function _fun64115() { // fn#64115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:264, offset: 0x01b9c18f, size: 344 bytes, params: 1, frame: 11
|
|
return ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun64117;
|
|
var env0_2 = closure;
|
|
closure.m = a0;
|
|
closure.c = {};
|
|
closure.p = '';
|
|
return closure(0);
|
|
})([function(a0, a1, a2) {
|
|
a0.exports = a2(1);
|
|
}, _fun64119, function(a0, a1, a2) {
|
|
var env0_0 = a1;
|
|
var env0_1 = a2;
|
|
var closure = _fun64155;
|
|
var Buffer = a2(3).Buffer;
|
|
closure.call(a1, Buffer, a2(7));
|
|
}, function(a0, a1, a2) {
|
|
var env0_0 = a1;
|
|
var env0_1 = a2;
|
|
_fun64212.call(a1, global);
|
|
}, _fun64315, function(a0, a1) {
|
|
a1.read = _fun64322;
|
|
a1.write = _fun64323;
|
|
}, function(a0, a1) {
|
|
var env0_0 = ({}).toString;
|
|
a0.exports = global.Array.isArray || _fun64325;
|
|
}, _fun64326, function(a0, a1) {
|
|
}, function(a0, a1, a2) {
|
|
var env0_0 = a1;
|
|
_fun64342.call(a1, a2(7));
|
|
}, function(a0, a1, a2) {
|
|
var env0_0 = a1;
|
|
var env0_1 = a2;
|
|
_fun64361.call(a1, global, a2(7));
|
|
}, function(a0, a1) {
|
|
a0.exports = _fun64405;
|
|
}, function(a0, a1) {
|
|
if (typeof global.Object.create === 'function') {
|
|
a0.exports = _fun64407;
|
|
} else {
|
|
a0.exports = _fun64408;
|
|
}
|
|
}, function(a0, a1, a2) {
|
|
var env0_0 = a1;
|
|
_fun64411.call(a1, a2(3).Buffer);
|
|
}, _fun64418, function(a0, a1, a2) {
|
|
var env0_0 = a1;
|
|
var env0_1 = a2(2);
|
|
a1.create = _fun64465;
|
|
a1.isRef = _fun64468;
|
|
a1.push = _fun64469;
|
|
}, _fun64470, _fun64491, function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a2;
|
|
var closure = _fun64493;
|
|
var Buffer = a2(3).Buffer;
|
|
closure.call(a1, Buffer);
|
|
}, _fun64506, _fun64511, function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a2;
|
|
var closure = _fun64527;
|
|
var Buffer = a2(3).Buffer;
|
|
closure.call(a1, Buffer);
|
|
}, function(a0, a1, a2) {
|
|
var env0_0 = a1;
|
|
var env0_1 = a2;
|
|
_fun64575.call(a1, a2(7));
|
|
}, function(a0, a1, a2) {
|
|
var env0_0 = a2(24);
|
|
a0.exports = ({Uri: {createUriRegex: _fun64591}}).Uri;
|
|
}, function(a0, a1) {
|
|
var object = {rfc3986: {}, generate: _fun64593};
|
|
var env0_0 = object;
|
|
object.generate();
|
|
a0.exports = object.rfc3986;
|
|
}, _fun64594, _fun64596, function(a0, a1, a2) {
|
|
var env0_3 = _fun64619;
|
|
var value = a2(14);
|
|
var env0_0 = value;
|
|
var env0_1 = a2(2);
|
|
var object = {Set: a2(18)};
|
|
var env0_2 = object;
|
|
object.Boolean = _fun64620(value);
|
|
var Boolean = object.Boolean;
|
|
a0.exports = new Boolean();
|
|
}, _fun64627, _fun64637, function(a0, a1, a2) {
|
|
var env0_0 = a2(2);
|
|
var object = {};
|
|
var env0_1 = object;
|
|
var closure = _fun64691;
|
|
object.Topo = closure;
|
|
a0.exports = closure;
|
|
object.Topo.prototype.add = _fun64692;
|
|
object.Topo.prototype.merge = _fun64694;
|
|
object.mergeSort = _fun64695;
|
|
object.Topo.prototype._sort = _fun64696;
|
|
}, _fun64698, function(a0, a1, a2) {
|
|
var env0_2 = _fun64700;
|
|
var value = a2(14);
|
|
var env0_0 = value;
|
|
var env0_1 = a2(2);
|
|
var Lazy = ({Lazy: _fun64701(value)}).Lazy;
|
|
a0.exports = new Lazy();
|
|
}, _fun64705, function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a2;
|
|
var closure = _fun64733;
|
|
var Buffer = a2(3).Buffer;
|
|
closure.call(a1, Buffer);
|
|
}, _fun64745]);
|
|
function _fun64116(a0) { // fn#64116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:282, offset: 0x01b9c2e7, size: 57 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
const __webpack_require__2 = __webpack_require__;
|
|
__webpack_require__2.m = a0;
|
|
__webpack_require__2.c = {};
|
|
__webpack_require__2.p = '';
|
|
return __webpack_require__2(0);
|
|
function __webpack_require__(a0) { // fn#64117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:303, offset: 0x01b9c320, size: 107 bytes, params: 2, frame: 19
|
|
let property = env0_1[a0];
|
|
const binding = env0_1;
|
|
if (property) {
|
|
return binding[a0].exports;
|
|
}
|
|
const object = {exports: {}, id: a0, loaded: false};
|
|
binding[a0] = object;
|
|
property = env0_0[a0];
|
|
property.call(object.exports, object, object.exports, __webpack_require__);
|
|
object.loaded = true;
|
|
return object.exports;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64119(a0, a1, a2) { // fn#64119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:642, offset: 0x01b9c3a3, size: 258 bytes, params: 4, frame: 13
|
|
const env0_0 = a2;
|
|
const Object = global.Object;
|
|
const env0_1 = Object.assign || (function(a0) {
|
|
var r3;
|
|
var r8;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
var value = 1;
|
|
if (value < arguments.length) {
|
|
r3 = value;
|
|
while (true) {
|
|
value = arguments[r3];
|
|
for (propertyName in value) {
|
|
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
|
if (!hasOwnProperty.call(value, propertyName)) {
|
|
r8 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = value[propertyName];
|
|
r8 = propertyName2;
|
|
}
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value < arguments.length) {
|
|
r3 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return a0;
|
|
});
|
|
const env0_2 = a2(2);
|
|
const env0_3 = a2(14);
|
|
const env0_4 = a2(19);
|
|
const env0_5 = a2(16);
|
|
const env0_6 = a2(32);
|
|
const env0_7 = a2(15);
|
|
const object = {alternatives: a2(28), array: a2(33), boolean: a2(27), binary: a2(34), date: a2(20), number: a2(26),
|
|
object: a2(29), string: a2(21)};
|
|
object.root = root;
|
|
a0.exports = object.root();
|
|
function root() { // fn#64122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:1530, offset: 0x01b9c5b7, size: 890 bytes, params: 1, frame: 28
|
|
const binding = env0_3;
|
|
const value2 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding();
|
|
const value5 = (binding2 instanceof Object ? binding2 : value2).clone();
|
|
value5.any = any_64123;
|
|
let closure = alt;
|
|
value5.alt = closure;
|
|
value5.alternatives = closure;
|
|
value5.array = array_64125;
|
|
closure = bool;
|
|
value5.bool = closure;
|
|
value5.boolean = closure;
|
|
value5.binary = binary;
|
|
value5.date = date_64128;
|
|
value5.func = func_64129;
|
|
value5.number = number;
|
|
value5.object = object_64131;
|
|
value5.string = string_64132;
|
|
value5.ref = ref_64133;
|
|
value5.isRef = isRef_64134;
|
|
value5.validate = validate_64135;
|
|
value5.describe = describe_64136;
|
|
value5.compile = compile_64137;
|
|
value5.assert = assert_64138;
|
|
value5.attempt = attempt;
|
|
value5.reach = reach_64140;
|
|
value5.lazy = lazy_64141;
|
|
value5.extend = extend_64142;
|
|
const array = env0_8.array;
|
|
const items5 = array.items;
|
|
const object = env0_8.object;
|
|
const keys = object.keys;
|
|
const object2 = {};
|
|
const object3 = env0_8.object;
|
|
object2.base = object3.type(env0_3, 'Joi object');
|
|
object2.name = env0_8.string.required();
|
|
const value6 = env0_8.object._func();
|
|
object2.coerce = value6.arity(3);
|
|
object2.pre = env0_8.object._func().arity(3);
|
|
object2.language = env0_8.object;
|
|
object2.describe = env0_8.object._func().arity(1);
|
|
const array2 = env0_8.array;
|
|
const items2 = array2.items;
|
|
const object8 = env0_8.object;
|
|
const keys2 = object8.keys;
|
|
const object9 = {};
|
|
object9.name = env0_8.string.required();
|
|
object9.setup = env0_8.object._func().arity(1);
|
|
object9.validate = env0_8.object._func().arity(4);
|
|
const object12 = env0_8.object;
|
|
const items3 = [object12.pattern(RegExp('.*', ''), env0_8.object.type(env0_3, 'Joi object'))];
|
|
const object14 = env0_8.object;
|
|
items3[1] = object14.type(env0_8.object.constructor, 'Joi object');
|
|
object9.params = items3;
|
|
const items4 = [env0_8.string];
|
|
const value13 = env0_8.object._func();
|
|
items4[1] = value13.arity(1);
|
|
object9.description = items4;
|
|
const value14 = Reflect.apply(keys2, object8, [object9]);
|
|
object2.rules = Reflect.apply(items2, array2, [value14.or('setup', 'validate')]);
|
|
value5.extensionsSchema = Reflect.apply(items5, array, [Reflect.apply(keys, object, [object2])]).strict();
|
|
value5.version = importDefault(35).version;
|
|
return value5;
|
|
function rootAny() { // fn#64123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:1578, owner: root.any, offset: 0x01b9c931, size: 45 bytes, params: 1, frame: 13
|
|
env1_2.assert(arguments.length === 0, 'Joi.any() does not allow arguments.');
|
|
return env0_0;
|
|
}
|
|
|
|
function alt() { // fn#64124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:1689, owner: root.alt, offset: 0x01b9c95e, size: 57 bytes, params: 1, frame: 15
|
|
const length = arguments.length;
|
|
const alternatives = env1_8.alternatives;
|
|
return length ? alternatives.try.apply(env1_8.alternatives, arguments) : alternatives;
|
|
}
|
|
|
|
function rootArray() { // fn#64125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:1799, owner: root.array, offset: 0x01b9c997, size: 48 bytes, params: 1, frame: 14
|
|
env1_2.assert(arguments.length === 0, 'Joi.array() does not allow arguments.');
|
|
return env1_8.array;
|
|
}
|
|
|
|
function bool() { // fn#64126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:1914, owner: root.bool, offset: 0x01b9c9c7, size: 48 bytes, params: 1, frame: 14
|
|
env1_2.assert(arguments.length === 0, 'Joi.boolean() does not allow arguments.');
|
|
return env1_8.boolean;
|
|
}
|
|
|
|
function binary() { // fn#64127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2025, owner: root.binary, offset: 0x01b9c9f7, size: 48 bytes, params: 1, frame: 14
|
|
env1_2.assert(arguments.length === 0, 'Joi.binary() does not allow arguments.');
|
|
return env1_8.binary;
|
|
}
|
|
|
|
function rootDate() { // fn#64128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2132, owner: root.date, offset: 0x01b9ca27, size: 48 bytes, params: 1, frame: 14
|
|
env1_2.assert(arguments.length === 0, 'Joi.date() does not allow arguments.');
|
|
return env1_8.date;
|
|
}
|
|
|
|
function rootFunc() { // fn#64129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2235, owner: root.func, offset: 0x01b9ca57, size: 58 bytes, params: 1, frame: 14
|
|
env1_2.assert(arguments.length === 0, 'Joi.func() does not allow arguments.');
|
|
return env1_8.object._func();
|
|
}
|
|
|
|
function number() { // fn#64130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2350, owner: root.number, offset: 0x01b9ca91, size: 48 bytes, params: 1, frame: 14
|
|
env1_2.assert(arguments.length === 0, 'Joi.number() does not allow arguments.');
|
|
return env1_8.number;
|
|
}
|
|
|
|
function rootObject() { // fn#64131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2459, owner: root.object, offset: 0x01b9cac1, size: 56 bytes, params: 1, frame: 15
|
|
const length = arguments.length;
|
|
const object = env1_8.object;
|
|
return length ? object.keys.apply(env1_8.object, arguments) : object;
|
|
}
|
|
|
|
function rootString() { // fn#64132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2553, owner: root.string, offset: 0x01b9caf9, size: 47 bytes, params: 1, frame: 14
|
|
env1_2.assert(arguments.length === 0, 'Joi.string() does not allow arguments.');
|
|
return env1_8.string;
|
|
}
|
|
|
|
function rootRef() { // fn#64133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2659, owner: root.ref, offset: 0x01b9cb28, size: 34 bytes, params: 1, frame: 13
|
|
return env1_7.create.apply(null, arguments);
|
|
}
|
|
|
|
function rootIsRef(a0) { // fn#64134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2717, owner: root.isRef, offset: 0x01b9cb4a, size: 23 bytes, params: 2, frame: 11
|
|
return env1_7.isRef(a0);
|
|
}
|
|
|
|
function rootValidate(a0) { // fn#64135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2759, owner: root.validate, offset: 0x01b9cb61, size: 130 bytes, params: 2, frame: 17
|
|
let value = 1;
|
|
const value2 = arguments[arguments.length - value];
|
|
const r2 = typeof value2 !== 'function' ? null : value2;
|
|
const value5 = arguments.length - (r2 ? value : 0);
|
|
if (value === value5) {
|
|
value = environment;
|
|
return env0_0.validate(a0, r2);
|
|
}
|
|
const r4 = value5 === 3 ? arguments[2] : {};
|
|
value = env0_1.compile(arguments[value]);
|
|
return value._validateWithOptions(a0, r4, r2);
|
|
}
|
|
|
|
function rootDescribe() { // fn#64136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:2995, owner: root.describe, offset: 0x01b9cbe3, size: 50 bytes, params: 1, frame: 13
|
|
return (arguments.length ? env0_1.compile(arguments[0]) : env0_0).describe();
|
|
}
|
|
|
|
function rootCompile(a0) { // fn#64137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:3079, owner: root.compile, offset: 0x01b9cc15, size: 90 bytes, params: 2, frame: 12
|
|
var value;
|
|
var binding;
|
|
var error;
|
|
var hasOwnProperty;
|
|
var message;
|
|
var path;
|
|
try {
|
|
value = environment.__proto__;
|
|
binding = env1_4;
|
|
value = binding.schema(a0);
|
|
} catch (error) {
|
|
hasOwnProperty = error.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, error, ['path'])) {
|
|
message = error.message;
|
|
value = message + '(';
|
|
path = error.path;
|
|
error.message = value + path + ')';
|
|
}
|
|
throw error;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function rootAssert(a0, a1, a2) { // fn#64138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:3205, owner: root.assert, offset: 0x01b9cc6f, size: 33 bytes, params: 4, frame: 15
|
|
env0_1.attempt(a0, a1, a2);
|
|
}
|
|
|
|
function attempt(a0, a1, a2) { // fn#64139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:3249, owner: root.attempt, offset: 0x01b9cc90, size: 113 bytes, params: 4, frame: 14
|
|
const value = env0_1.validate(a0, a1);
|
|
const error = value.error;
|
|
if (error) {
|
|
if (a2) {
|
|
if (a2 instanceof global.Error) {
|
|
throw a2;
|
|
}
|
|
error.message = a2 + ' ' + error.annotate();
|
|
throw error;
|
|
}
|
|
error.message = error.annotate();
|
|
throw error;
|
|
}
|
|
return value.value;
|
|
}
|
|
|
|
function rootReach(a0, a1) { // fn#64140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:3434, owner: root.reach, offset: 0x01b9cd01, size: 209 bytes, params: 3, frame: 17
|
|
var r5;
|
|
var property;
|
|
var length;
|
|
var property2;
|
|
var key;
|
|
let value = a0;
|
|
const binding = env1_2;
|
|
binding.assert(value && value instanceof env1_3, 'you must provide a joi schema');
|
|
env1_2.assert(typeof a1 === 'string', 'path must be a string');
|
|
if (a1 === '') {
|
|
return value;
|
|
}
|
|
const value4 = a1.split('.');
|
|
const children = value._inner.children;
|
|
if (children) {
|
|
value = 0;
|
|
property = value4[value];
|
|
length = children.length;
|
|
if (value < length) {
|
|
r5 = value;
|
|
loopExit5: while (true) {
|
|
property2 = children[r5];
|
|
key = property2.key;
|
|
if (key === property) {
|
|
return this.reach(property2.schema, a1.substr(property.length + 1));
|
|
}
|
|
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = children.length;
|
|
if (value < length) {
|
|
r5 = value;
|
|
continue;
|
|
}
|
|
break loopExit5;
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
function rootLazy(a0) { // fn#64141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:3741, owner: root.lazy, offset: 0x01b9cdd2, size: 22 bytes, params: 2, frame: 11
|
|
return env1_6.set(a0);
|
|
}
|
|
|
|
function rootExtend() { // fn#64142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:3779, owner: root.extend, offset: 0x01b9cde8, size: 179 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var r3;
|
|
let value = environment.__proto__;
|
|
let binding = env1_2;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
const value2 = Reflect.apply(flatten, binding, [slice.call(arguments)]);
|
|
const env0_1 = value2;
|
|
binding = env1_2;
|
|
const assert = binding.assert;
|
|
let length = value2.length;
|
|
Reflect.apply(assert, binding, [length > 0, 'You need to provide at least one extension']);
|
|
this.assert(value2, env0_1.extensionsSchema);
|
|
const Object = global.Object;
|
|
const value4 = Object.create(this);
|
|
const extend_loop2 = extend_loop;
|
|
length = value2.length;
|
|
if (value < length) {
|
|
for (r3 = value; true; r3 = value) {
|
|
extend_loop2(r3);
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value2.length;
|
|
if (!(value < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value4;
|
|
function extend_loop(a0) { // fn#64143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:3984, owner: root.extend._loop, offset: 0x01b9ce9b, size: 258 bytes, params: 2, frame: 16
|
|
var r4;
|
|
var r6;
|
|
var binding;
|
|
var any;
|
|
var value2;
|
|
var prototype;
|
|
var _loop_loop2_641482;
|
|
var length;
|
|
var value5;
|
|
var value6;
|
|
const property = env0_1[a0];
|
|
const property2 = property;
|
|
const base = property.base;
|
|
reducibleJoin2: while (true) {
|
|
if (base) {
|
|
r4 = base;
|
|
break reducibleJoin2;
|
|
}
|
|
binding = property2;
|
|
any = binding.any;
|
|
value2 = Reflect.apply(any, binding, []);
|
|
r4 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
const constructor = r4.clone().constructor;
|
|
const constructor2 = constructor;
|
|
const value4 = ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun64145;
|
|
var env0_1 = closure;
|
|
_inherits_64120(closure, a0) /* class inheritance: closure extends a0 */;
|
|
return closure;
|
|
})(constructor);
|
|
reducibleJoin4: while (true) {
|
|
if (property.coerce) {
|
|
prototype = value4.prototype;
|
|
prototype._coerce = _coerce;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (property.pre) {
|
|
prototype = value4.prototype;
|
|
prototype._base = _base;
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
let rules = property.rules;
|
|
reducibleJoin9: while (true) {
|
|
if (!rules) {
|
|
break reducibleJoin9;
|
|
}
|
|
_loop_loop2_641482 = _loop_loop2_64148;
|
|
rules = property.rules;
|
|
length = rules.length;
|
|
value5 = 0;
|
|
if (!(value5 < length)) {
|
|
break reducibleJoin9;
|
|
}
|
|
r6 = value5;
|
|
reducibleLoop8: while (true) {
|
|
_loop_loop2_641482(r6);
|
|
value6 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
rules = property.rules;
|
|
length = rules.length;
|
|
if (value6 < length) {
|
|
r6 = value6;
|
|
continue reducibleLoop8;
|
|
}
|
|
break reducibleJoin9;
|
|
}
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (property.describe) {
|
|
prototype = value4.prototype;
|
|
prototype.describe = describe_64152;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
const value8 = new value4();
|
|
constructor2[property.name] = _fun64153;
|
|
function _fun64144(a0) { // fn#64144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:4059, offset: 0x01b9cf9d, size: 35 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
const type_641452 = type_64145;
|
|
_inherits_64120(type_641452, a0) /* class inheritance: closure extends a0 */;
|
|
return type_641452;
|
|
function type_64145() { // fn#64145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:4071, offset: 0x01b9cfc0, size: 337 bytes, params: 1, frame: 21
|
|
var r0;
|
|
var binding;
|
|
var value3;
|
|
var value5;
|
|
var name;
|
|
var language;
|
|
var _settings;
|
|
var object;
|
|
var value6;
|
|
var applyToDefaults;
|
|
var binding2;
|
|
var language2;
|
|
let value = this;
|
|
if (value instanceof type_64145) {
|
|
binding = env0_0;
|
|
value3 = binding.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
value = environment.__proto__;
|
|
if (env1_0.base) {
|
|
value5 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
env4_1(r0, env1_1);
|
|
}
|
|
binding = env1_0;
|
|
name = binding.name;
|
|
r0._type = name;
|
|
language = binding.language;
|
|
if (language) {
|
|
_settings = r0._settings;
|
|
r0._settings = _settings || ({language: {}});
|
|
_settings = r0._settings;
|
|
value6 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_2;
|
|
applyToDefaults = binding.applyToDefaults;
|
|
language = r0._settings.language;
|
|
object = {};
|
|
binding2 = env1_0;
|
|
name = binding2.name;
|
|
language2 = binding2.language;
|
|
if (name in object) {
|
|
global.Object.defineProperty(object, name, {'value': null, 'enumerable': true, 'configurable': true,
|
|
'writable': true, value: language2});
|
|
} else {
|
|
object[name] = language2;
|
|
}
|
|
_settings.language = Reflect.apply(applyToDefaults, binding, [language, object]);
|
|
}
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
}
|
|
|
|
function _coerce(a0, a1, a2) { // fn#64146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:4800, owner: root.extend._loop._coerce, offset: 0x01b9d111, size: 172 bytes, params: 4, frame: 19
|
|
var r2;
|
|
var value3;
|
|
let value = a0;
|
|
if (constructor.prototype._coerce) {
|
|
value = constructor.prototype._coerce.call(this, value, a1, a2);
|
|
if (value.errors) {
|
|
return value;
|
|
}
|
|
value = value.value;
|
|
r2 = value;
|
|
value = env0_0.coerce.call(this, r2, a1, a2);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
return value instanceof env3_5.Err ? {value: r2, errors: value} : {value: value};
|
|
}
|
|
r2 = value;
|
|
value = env0_0.coerce.call(this, r2, a1, a2);
|
|
const Err = env3_5.Err;
|
|
return value instanceof Err ? {value: r2, errors: value} : {value: value};
|
|
}
|
|
|
|
function _base(a0, a1, a2) { // fn#64147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:5029, owner: root.extend._loop._base, offset: 0x01b9d1bd, size: 172 bytes, params: 4, frame: 19
|
|
var r2;
|
|
var value3;
|
|
let value = a0;
|
|
if (constructor.prototype._base) {
|
|
value = constructor.prototype._base.call(this, value, a1, a2);
|
|
if (value.errors) {
|
|
return value;
|
|
}
|
|
value = value.value;
|
|
r2 = value;
|
|
value = env0_0.pre.call(this, r2, a1, a2);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
return value instanceof env3_5.Err ? {value: r2, errors: value} : {value: value};
|
|
}
|
|
r2 = value;
|
|
value = env0_0.pre.call(this, r2, a1, a2);
|
|
const Err = env3_5.Err;
|
|
return value instanceof Err ? {value: r2, errors: value} : {value: value};
|
|
}
|
|
|
|
function _loop_loop2_64148(a0) { // fn#64148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:5243, owner: root.extend._loop._loop2, offset: 0x01b9d269, size: 192 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var items;
|
|
var value2;
|
|
var Object;
|
|
var value3;
|
|
var value4;
|
|
const property = env0_0.rules[a0];
|
|
let params = property.params;
|
|
if (params) {
|
|
params = property.params;
|
|
value2 = environment.__proto__.__proto__.__proto__;
|
|
if (params instanceof env3_3) {
|
|
value4 = property.params._inner.children.map(function(a0) {
|
|
return a0.key;
|
|
});
|
|
} else {
|
|
Object = global.Object;
|
|
value3 = Object.keys(property.params);
|
|
}
|
|
} else {
|
|
items = [];
|
|
}
|
|
const r3 = property.params ? env3_4.schema(property.params) : null;
|
|
env0_3.prototype[property.name] = _fun64150;
|
|
function _fun64150() { // fn#64150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:5450, offset: 0x01b9d329, size: 331 bytes, params: 1, frame: 25
|
|
var environment;
|
|
var r4;
|
|
var r9;
|
|
var r0;
|
|
var r8;
|
|
var property;
|
|
var value6;
|
|
var binding;
|
|
var isRef2;
|
|
var value7;
|
|
var value8;
|
|
let value = arguments.length;
|
|
let length = env0_1.length;
|
|
if (value > length) {
|
|
throw new global.Error('Unexpected number of arguments');
|
|
}
|
|
const Array = global.Array;
|
|
value = Array.prototype.slice.call(arguments);
|
|
const object = {};
|
|
const object3 = object;
|
|
length = env0_1.length;
|
|
const value3 = 0;
|
|
const value4 = false;
|
|
if (value3 < length) {
|
|
r4 = value4;
|
|
r9 = value3;
|
|
while (true) {
|
|
property = env0_1[r9];
|
|
object[property] = value[r9];
|
|
value6 = !r4;
|
|
if (r4) {
|
|
r0 = value6;
|
|
} else {
|
|
binding = env4_7;
|
|
isRef2 = binding.isRef(value[r9]);
|
|
r0 = isRef2;
|
|
}
|
|
if (!r0) {
|
|
continue;
|
|
}
|
|
value7 = true;
|
|
r4 = value7;
|
|
value8 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = env0_1.length;
|
|
if (value8 < length) {
|
|
r9 = value8;
|
|
continue;
|
|
}
|
|
r8 = r4;
|
|
break;
|
|
}
|
|
} else {
|
|
r8 = value4;
|
|
}
|
|
if (env0_2) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_2.assert(object, env0_2);
|
|
}
|
|
r0 = object3.validate ? this._test(object3.name, object, validate_64151, {description: object3.description,
|
|
hasRef: r8}) : this.clone();
|
|
if (object3.setup) {
|
|
object3.setup.call(r0, object);
|
|
}
|
|
return r0;
|
|
function validate_64151(a0, a1, a2) { // fn#64151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:5724, offset: 0x01b9d474, size: 46 bytes, params: 4, frame: 19
|
|
return env1_0.validate.call(this, env0_0, a0, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _loopDescribe() { // fn#64152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:5948, owner: root.extend._loop.describe, offset: 0x01b9d4a2, size: 54 bytes, params: 1, frame: 13
|
|
return env0_0.describe.call(this, constructor.prototype.describe.call(this));
|
|
}
|
|
|
|
function _fun64153() { // fn#64153, offset: 0x00d16d26, size: 9 bytes, params: 1, frame: 1
|
|
return env0_4;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64154(a0, a1, a2) { // fn#64154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:6704, offset: 0x01b9d4d8, size: 59 bytes, params: 4, frame: 17
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const closure = _fun64155;
|
|
const call = closure.call;
|
|
const Buffer = a2(3).Buffer;
|
|
Reflect.apply(call, closure, [a1, Buffer, a2(7)]);
|
|
function _fun64155(a0, a1) { // fn#64155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:6721, offset: 0x01b9d513, size: 706 bytes, params: 3, frame: 14
|
|
let env0_0 = a0;
|
|
let env0_1 = a1;
|
|
const Symbol = global.Symbol;
|
|
const env0_2 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64156 : _fun64157;
|
|
const env0_3 = importDefault(8);
|
|
const env0_4 = importDefault(9);
|
|
const defaultImport = importDefault(10);
|
|
const env0_5 = importDefault(13);
|
|
let object = {};
|
|
require.clone = clone_64158;
|
|
require.merge = merge_64159;
|
|
require.applyToDefaults = applyToDefaults;
|
|
require.cloneWithShallow = cloneWithShallow;
|
|
object.store = store;
|
|
object.restore = restore_64163;
|
|
object.reachSet = function(a0, a1, a2) {
|
|
var r2;
|
|
var r5;
|
|
var property;
|
|
var value = a0;
|
|
var value2 = a1.split('.');
|
|
var value3 = 0;
|
|
if (value3 < value2.length) {
|
|
r2 = value3;
|
|
r5 = value;
|
|
while (true) {
|
|
property = value2[r2];
|
|
value = r2 + 1;
|
|
if (value === value2.length) {
|
|
r5[property] = a2;
|
|
}
|
|
property = r5[property];
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value < value2.length) {
|
|
r2 = value;
|
|
r5 = property;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
};
|
|
require.applyToDefaultsWithShallow = applyToDefaultsWithShallow;
|
|
require.deepEqual = deepEqual_64166;
|
|
require.unique = unique;
|
|
require.mapToObject = function(a0, a1) {
|
|
var r3;
|
|
var object;
|
|
var value;
|
|
var property;
|
|
if (a0) {
|
|
object = {};
|
|
value = 0;
|
|
if (value < a0.length) {
|
|
r3 = value;
|
|
while (true) {
|
|
property = a0[r3];
|
|
if (a1) {
|
|
if (property[a1]) {
|
|
object[a0[r3][a1]] = true;
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
object[property] = true;
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value < a0.length) {
|
|
r3 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
return null;
|
|
};
|
|
require.intersect = intersect;
|
|
require.contain = contain;
|
|
require.flatten = function(a0, a1) {
|
|
var r0;
|
|
var r4;
|
|
var Array;
|
|
r0 = a1 || [];
|
|
value = 0;
|
|
if (value < a0.length) {
|
|
r4 = value;
|
|
while (true) {
|
|
Array = global.Array;
|
|
if (Array.isArray(a0[r4])) {
|
|
require.flatten(a0[r4], r0);
|
|
} else {
|
|
r0.push(a0[r4]);
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (value < a0.length) {
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return r0;
|
|
};
|
|
require.reach = reach_64176;
|
|
require.reachTemplate = function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a2;
|
|
return a1.replace(RegExp('{([^}]+)}', 'g'), _fun64178);
|
|
};
|
|
require.formatStack = formatStack;
|
|
require.formatTrace = formatTrace;
|
|
require.callStack = callStack;
|
|
require.displayStack = function(a0) {
|
|
var callStack = require.callStack;
|
|
var value2 = 1;
|
|
return require.formatTrace(Reflect.apply(callStack, require, [a0 === undefined ? value2 : a0 + value2]));
|
|
};
|
|
require.abortThrow = false;
|
|
require.abort = abort_64184;
|
|
require.assert = assert_64185;
|
|
require.Timer = function() {
|
|
this.ts = 0;
|
|
this.reset();
|
|
};
|
|
let Timer = require.Timer;
|
|
Timer.prototype.reset = function() {
|
|
var Date = global.Date;
|
|
this.ts = Date.now();
|
|
};
|
|
Timer = require.Timer;
|
|
Timer.prototype.elapsed = function() {
|
|
var Date = global.Date;
|
|
return Date.now() - this.ts;
|
|
};
|
|
require.Bench = function() {
|
|
this.ts = 0;
|
|
this.reset();
|
|
};
|
|
let Bench = require.Bench;
|
|
Bench.prototype.reset = reset_64191;
|
|
Bench = require.Bench;
|
|
Bench.prototype.elapsed = elapsed_64192;
|
|
Bench = require.Bench;
|
|
Bench.now = now_64193;
|
|
require.escapeRegex = function(a0) {
|
|
return a0.replace(RegExp('[\\^\\$\\.\\*\\+\\-\\?\\=\\!\\:\\|\\\\\\/\\(\\)\\[\\]\\{\\}\\,]', 'g'), '\\$&');
|
|
};
|
|
require.base64urlEncode = base64urlEncode;
|
|
require.base64urlDecode = base64urlDecode;
|
|
require.escapeHeaderAttribute = escapeHeaderAttribute;
|
|
require.escapeHtml = escapeHtml;
|
|
require.escapeJavaScript = escapeJavaScript;
|
|
require.nextTick = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun64201;
|
|
};
|
|
require.once = function(a0) {
|
|
var env0_0 = a0;
|
|
if (a0._hoekOnce) {
|
|
return a0;
|
|
}
|
|
var env0_1 = false;
|
|
var closure = _fun64204;
|
|
closure._hoekOnce = true;
|
|
return closure;
|
|
};
|
|
require.isInteger = function(a0) {
|
|
var r0;
|
|
var value = typeof a0 === 'number';
|
|
if (value) {
|
|
value = (0, global.parseFloat)(a0);
|
|
value = value === (0, global.parseInt)(a0, 10);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
r0 = r0 && !(0, global.isNaN)(a0);
|
|
return r0;
|
|
};
|
|
require.ignore = function() {
|
|
};
|
|
require.inherits = defaultImport.inherits;
|
|
require.format = defaultImport.format;
|
|
require.transform = transform_64207;
|
|
require.uniqueFilename = uniqueFilename;
|
|
require.stringify = function() {
|
|
var property;
|
|
var value;
|
|
var error;
|
|
try {
|
|
property = global.JSON;
|
|
property = property.stringify;
|
|
value = property.apply(null, arguments);
|
|
} catch (error) {
|
|
return '[Cannot display object: ' + error.message + ']';
|
|
}
|
|
return value;
|
|
};
|
|
require.shallow = function(a0) {
|
|
var r2;
|
|
var value3;
|
|
var object = {};
|
|
var property = global.Object;
|
|
var value = property.keys(a0);
|
|
var value2 = 0;
|
|
if (value2 < value.length) {
|
|
for (r2 = value2; true; r2 = value3) {
|
|
property = value[r2];
|
|
object[property] = a0[property];
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value3 < value.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return object;
|
|
};
|
|
function clone_64158(a0, a1) { // fn#64158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:6999, offset: 0x01b9d7d5, size: 493 bytes, params: 3, frame: 23
|
|
var r3;
|
|
var r2;
|
|
var r22;
|
|
var r5;
|
|
var value4;
|
|
var value5;
|
|
var Map;
|
|
var prototype;
|
|
var value6;
|
|
var map;
|
|
var value7;
|
|
var get;
|
|
var value8;
|
|
var Array;
|
|
var isArray;
|
|
var value9;
|
|
var binding;
|
|
var isBuffer;
|
|
var Date;
|
|
var RegExp;
|
|
var Object;
|
|
var getPrototypeOf;
|
|
var value10;
|
|
var isImmutable;
|
|
var value11;
|
|
var create;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var regExp;
|
|
var value15;
|
|
var value16;
|
|
var getTime;
|
|
var value17;
|
|
var value18;
|
|
var date;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var binding2;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var set;
|
|
var getOwnPropertyNames;
|
|
var value26;
|
|
var length;
|
|
var value27;
|
|
var value28;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value29;
|
|
var clone;
|
|
var defineProperty;
|
|
var value30;
|
|
const value = a0;
|
|
const value2 = a1;
|
|
reducibleJoin2: while (true) {
|
|
if (value === undefined) {
|
|
r3 = 'undefined';
|
|
break reducibleJoin2;
|
|
}
|
|
value4 = environment;
|
|
value5 = env0_2(value);
|
|
r3 = value5;
|
|
break reducibleJoin2;
|
|
}
|
|
if (r3 === 'object') {
|
|
reducibleJoin28: while (true) {
|
|
if (value !== null) {
|
|
reducibleJoin6: while (true) {
|
|
if (value2) {
|
|
r2 = value2;
|
|
break reducibleJoin6;
|
|
}
|
|
Map = global.Map;
|
|
prototype = Map.prototype;
|
|
value6 = Object.create(prototype, {constructor: {value: Map}});
|
|
map = new Map();
|
|
value7 = map instanceof Object ? map : value6;
|
|
r2 = value7;
|
|
break reducibleJoin6;
|
|
}
|
|
get = r2.get;
|
|
value8 = Reflect.apply(get, r2, [value]);
|
|
if (value8) {
|
|
return value8;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [value])) {
|
|
value25 = true;
|
|
r22 = [];
|
|
r3 = value25;
|
|
} else {
|
|
value9 = environment;
|
|
binding = env0_0;
|
|
isBuffer = binding.isBuffer;
|
|
if (Reflect.apply(isBuffer, binding, [value])) {
|
|
binding = env0_0;
|
|
prototype = binding.prototype;
|
|
value21 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding(value);
|
|
value23 = binding2 instanceof Object ? binding2 : value21;
|
|
value24 = false;
|
|
r22 = value23;
|
|
r3 = value24;
|
|
} else {
|
|
Date = global.Date;
|
|
if (value instanceof Date) {
|
|
Date = global.Date;
|
|
getTime = value.getTime;
|
|
value17 = Reflect.apply(getTime, value, []);
|
|
prototype = Date.prototype;
|
|
value18 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value19 = date instanceof Object ? date : value18;
|
|
value20 = false;
|
|
r22 = value19;
|
|
r3 = value20;
|
|
} else {
|
|
RegExp = global.RegExp;
|
|
if (value instanceof RegExp) {
|
|
RegExp = global.RegExp;
|
|
prototype = RegExp.prototype;
|
|
value14 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
regExp = new RegExp(value);
|
|
value15 = regExp instanceof Object ? regExp : value14;
|
|
value16 = false;
|
|
r22 = value15;
|
|
r3 = value16;
|
|
} else {
|
|
Object = global.Object;
|
|
getPrototypeOf = Object.getPrototypeOf;
|
|
value10 = Reflect.apply(getPrototypeOf, Object, [value]);
|
|
reducibleJoin18: while (true) {
|
|
reducibleJoin13: while (true) {
|
|
if (value10) {
|
|
isImmutable = value10.isImmutable;
|
|
value11 = false;
|
|
if (isImmutable) {
|
|
r22 = value;
|
|
r3 = value11;
|
|
break reducibleJoin18;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
Object = global.Object;
|
|
create = Object.create;
|
|
value12 = Reflect.apply(create, Object, [value10]);
|
|
value13 = true;
|
|
r22 = value12;
|
|
r3 = value13;
|
|
break reducibleJoin18;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
set = r2.set;
|
|
Reflect.apply(set, r2, [value, r22]);
|
|
reducibleJoin26: while (true) {
|
|
if (!r3) {
|
|
break reducibleJoin26;
|
|
}
|
|
Object = global.Object;
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value26 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value26.length;
|
|
value27 = 0;
|
|
value28 = environment.__proto__;
|
|
if (!(value27 < length)) {
|
|
break reducibleJoin26;
|
|
}
|
|
r5 = value27;
|
|
reducibleLoop20: while (true) {
|
|
property = value26[r5];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value29 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin25: while (true) {
|
|
reducibleJoin23: while (true) {
|
|
if (value29) {
|
|
get = value29.get;
|
|
if (!get) {
|
|
set = value29.set;
|
|
if (!set) {
|
|
break reducibleJoin23;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [r22, property, value29]);
|
|
break reducibleJoin25;
|
|
}
|
|
break reducibleJoin23;
|
|
}
|
|
clone = require.clone;
|
|
r22[property] = Reflect.apply(clone, require, [value[property], r2]);
|
|
break reducibleJoin25;
|
|
}
|
|
value30 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = value26.length;
|
|
if (value30 < length) {
|
|
r5 = value30;
|
|
continue reducibleLoop20;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
}
|
|
return r22;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function merge_64159(a0, a1, a2, a3) { // fn#64159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:7588, offset: 0x01b9d9c2, size: 559 bytes, params: 5, frame: 30
|
|
var r8;
|
|
var r5;
|
|
var r11;
|
|
var r2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var Array;
|
|
var isArray;
|
|
var value12;
|
|
var length;
|
|
var value13;
|
|
var value15;
|
|
var property;
|
|
var property2;
|
|
var value17;
|
|
var value18;
|
|
var binding;
|
|
var isArray2;
|
|
var Date;
|
|
var isBuffer;
|
|
var RegExp;
|
|
var merge;
|
|
var clone;
|
|
var value19;
|
|
var value20;
|
|
var push;
|
|
var value21;
|
|
const value = a0;
|
|
let assert = require.assert;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
value3 = 'undefined';
|
|
reducibleJoin3: while (true) {
|
|
if (value === undefined) {
|
|
r8 = value3;
|
|
break reducibleJoin3;
|
|
}
|
|
value4 = environment;
|
|
value5 = env0_2(value);
|
|
r8 = value5;
|
|
break reducibleJoin3;
|
|
}
|
|
value6 = r8 === 'object';
|
|
r5 = value6;
|
|
break reducibleJoin4;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
Reflect.apply(assert, require, [r5, 'Invalid target value: must be an object']);
|
|
assert = require.assert;
|
|
const value7 = a1 == null;
|
|
reducibleJoin8: while (true) {
|
|
if (value7) {
|
|
r5 = value7;
|
|
break reducibleJoin8;
|
|
}
|
|
value8 = 'undefined';
|
|
reducibleJoin7: while (true) {
|
|
if (a1 === undefined) {
|
|
r8 = value8;
|
|
break reducibleJoin7;
|
|
}
|
|
value9 = environment;
|
|
value10 = env0_2(a1);
|
|
r8 = value10;
|
|
break reducibleJoin7;
|
|
}
|
|
value11 = r8 === 'object';
|
|
r5 = value11;
|
|
break reducibleJoin8;
|
|
}
|
|
Reflect.apply(assert, require, [r5, 'Invalid source value: must be null, undefined, or an object']);
|
|
if (a1) {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [a1])) {
|
|
assert = require.assert;
|
|
Array = global.Array;
|
|
Reflect.apply(assert, require, [Array.isArray(value), 'Cannot merge array onto an object']);
|
|
reducibleJoin31: while (true) {
|
|
if (a3 !== false) {
|
|
break reducibleJoin31;
|
|
}
|
|
value.length = 0;
|
|
break reducibleJoin31;
|
|
}
|
|
length = a1.length;
|
|
value20 = 0;
|
|
if (value20 < length) {
|
|
r2 = value20;
|
|
reducibleLoop32: while (true) {
|
|
push = value.push;
|
|
clone = require.clone;
|
|
Reflect.apply(push, value, [Reflect.apply(clone, require, [a1[r2]])]);
|
|
value21 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a1.length;
|
|
if (value21 < length) {
|
|
r2 = value21;
|
|
continue reducibleLoop32;
|
|
}
|
|
break reducibleLoop32;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
value12 = global.Object.keys(a1);
|
|
length = value12.length;
|
|
value13 = 0;
|
|
value15 = a2 !== false;
|
|
if (value13 < length) {
|
|
r11 = value13;
|
|
reducibleLoop12: while (true) {
|
|
property = value12[r11];
|
|
property2 = a1[property];
|
|
reducibleJoin27: while (true) {
|
|
reducibleJoin17: while (true) {
|
|
if (property2) {
|
|
reducibleJoin15: while (true) {
|
|
if (property2 === undefined) {
|
|
r5 = 'undefined';
|
|
break reducibleJoin15;
|
|
}
|
|
value17 = env0_2(property2);
|
|
r5 = value17;
|
|
break reducibleJoin15;
|
|
}
|
|
if (r5 === 'object') {
|
|
if (value[property]) {
|
|
binding = env0_2;
|
|
if (binding(value[property]) === 'object') {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
isArray2 = Reflect.apply(isArray, Array, [value[property]]);
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (isArray2 === Reflect.apply(isArray, Array, [property2])) {
|
|
Date = global.Date;
|
|
if (!(property2 instanceof Date)) {
|
|
binding = env0_0;
|
|
isBuffer = binding.isBuffer;
|
|
if (!Reflect.apply(isBuffer, binding, [property2])) {
|
|
RegExp = global.RegExp;
|
|
if (!(property2 instanceof RegExp)) {
|
|
merge = require.merge;
|
|
Reflect.apply(merge, require, [value[property], property2, a2,
|
|
a3]);
|
|
break reducibleJoin27;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
clone = require.clone;
|
|
value[property] = Reflect.apply(clone, require, [property2]);
|
|
break reducibleJoin27;
|
|
}
|
|
value18 = property2 != null;
|
|
if (value18) {
|
|
r5 = value18;
|
|
break reducibleJoin17;
|
|
}
|
|
r5 = value15;
|
|
break reducibleJoin17;
|
|
}
|
|
value18 = property2 != null;
|
|
if (value18) {
|
|
r5 = value18;
|
|
break reducibleJoin17;
|
|
}
|
|
r5 = value15;
|
|
break reducibleJoin17;
|
|
}
|
|
if (r5) {
|
|
value[property] = property2;
|
|
break reducibleJoin27;
|
|
}
|
|
break reducibleJoin27;
|
|
}
|
|
value19 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
|
|
length = value12.length;
|
|
if (value19 < length) {
|
|
r11 = value19;
|
|
continue reducibleLoop12;
|
|
}
|
|
break reducibleLoop12;
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function applyToDefaults(a0, a1, a2) { // fn#64160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:8322, offset: 0x01b9dbf1, size: 199 bytes, params: 4, frame: 20
|
|
var r0;
|
|
let value = a0;
|
|
let assert = require.assert;
|
|
Reflect.apply(assert, require, [value && (value === undefined ? 'undefined' : env0_2(value)) === 'object',
|
|
'Invalid defaults value: must be an object']);
|
|
assert = require.assert;
|
|
let r2 = a1 ? a1 === true : !a1;
|
|
r2 = !r2 ? (a1 === undefined ? 'undefined' : env0_2(a1)) === 'object' : r2;
|
|
Reflect.apply(assert, require, [r2, 'Invalid options value: must be true, falsy or an object']);
|
|
if (a1) {
|
|
value = require.clone(value);
|
|
if (a1 === true) {
|
|
r0 = value;
|
|
} else {
|
|
value = require.merge(value, a1, a2 === true, false);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function cloneWithShallow(a0, a1) { // fn#64161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:8650, offset: 0x01b9dcb8, size: 97 bytes, params: 3, frame: 15
|
|
var binding;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
if (a0) {
|
|
if ((a0 === undefined ? 'undefined' : env0_2(a0)) !== 'object') {
|
|
return a0;
|
|
}
|
|
binding = env0_6;
|
|
value2 = binding.store(a0, a1);
|
|
value3 = environment.__proto__;
|
|
value4 = require.clone(a0);
|
|
binding = env0_6;
|
|
binding.restore(value4, a0, value2);
|
|
return value4;
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function store(a0, a1) { // fn#64162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:8788, offset: 0x01b9dd19, size: 89 bytes, params: 3, frame: 20
|
|
var r5;
|
|
var property;
|
|
var binding;
|
|
const object = {};
|
|
let length = a1.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r5 = value;
|
|
while (true) {
|
|
property = a1[r5];
|
|
value = require.reach(a0, property);
|
|
if (value !== undefined) {
|
|
object[property] = value;
|
|
binding = env0_6;
|
|
binding.reachSet(a0, property, undefined);
|
|
}
|
|
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = a1.length;
|
|
if (value < length) {
|
|
r5 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function restore_64163(a0, a1, a2) { // fn#64163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:8925, offset: 0x01b9dd72, size: 106 bytes, params: 4, frame: 20
|
|
var r2;
|
|
var property;
|
|
var binding;
|
|
var value4;
|
|
const Object = global.Object;
|
|
const value = Object.keys(a2);
|
|
let length = value.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
for (r2 = value2; true; r2 = value4) {
|
|
property = value[r2];
|
|
binding = env0_6;
|
|
binding.reachSet(a0, property, a2[property]);
|
|
binding = env0_6;
|
|
binding.reachSet(a1, property, a2[property]);
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = value.length;
|
|
if (!(value4 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function applyToDefaultsWithShallow(a0, a1, a2) { // fn#64165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:9189, offset: 0x01b9de2d, size: 279 bytes, params: 4, frame: 21
|
|
var binding;
|
|
var value15;
|
|
let value = a0;
|
|
const value2 = a2;
|
|
let assert = require.assert;
|
|
Reflect.apply(assert, require, [value && (value === undefined ? 'undefined' : env0_2(value)) === 'object',
|
|
'Invalid defaults value: must be an object']);
|
|
assert = require.assert;
|
|
let r1 = a1 ? a1 === true : !a1;
|
|
r1 = !r1 ? (a1 === undefined ? 'undefined' : env0_2(a1)) === 'object' : r1;
|
|
Reflect.apply(assert, require, [r1, 'Invalid options value: must be true, falsy or an object']);
|
|
require.assert(value2 && global.Array.isArray(value2), 'Invalid keys');
|
|
if (a1) {
|
|
value = require.cloneWithShallow(value, value2);
|
|
if (a1 === true) {
|
|
return value;
|
|
}
|
|
binding = env0_6;
|
|
value15 = binding.store(a1, value2);
|
|
require.merge(value, a1, false, false);
|
|
binding = env0_6;
|
|
binding.restore(value, a1, value15);
|
|
return value;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function deepEqual_64166(a0, a1, a2, a3) { // fn#64166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:9613, offset: 0x01b9df44, size: 891 bytes, params: 5, frame: 26
|
|
var r9;
|
|
var r1;
|
|
var r0;
|
|
var r2;
|
|
var r6;
|
|
var r8;
|
|
var value3;
|
|
var value4;
|
|
var indexOf;
|
|
var push;
|
|
var Array;
|
|
var isArray;
|
|
var binding;
|
|
var isBuffer;
|
|
var Date;
|
|
var RegExp;
|
|
var prototype;
|
|
var Object;
|
|
var getPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var part;
|
|
var length;
|
|
var length2;
|
|
var value5;
|
|
var value6;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value7;
|
|
var get;
|
|
var deepEqual;
|
|
var property2;
|
|
var value8;
|
|
var toString;
|
|
var getTime;
|
|
var length3;
|
|
var length4;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
let value = a2;
|
|
const value2 = a3;
|
|
reducibleJoin2: while (true) {
|
|
if (value) {
|
|
r9 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
r9 = {prototype: true};
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (a0 === undefined) {
|
|
r1 = 'undefined';
|
|
break reducibleJoin4;
|
|
}
|
|
value3 = environment;
|
|
value4 = env0_2(a0);
|
|
r1 = value4;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (a1 === undefined) {
|
|
r0 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
value = environment;
|
|
value = env0_2(a1);
|
|
r0 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
if (r1 !== r0) {
|
|
return false;
|
|
}
|
|
if (r1 === 'object') {
|
|
reducibleJoin62: while (true) {
|
|
if (a0 === null) {
|
|
break reducibleJoin62;
|
|
}
|
|
if (a1 !== null) {
|
|
reducibleJoin12: while (true) {
|
|
if (value2) {
|
|
r2 = value2;
|
|
break reducibleJoin12;
|
|
}
|
|
r2 = [];
|
|
break reducibleJoin12;
|
|
}
|
|
indexOf = r2.indexOf;
|
|
value = Reflect.apply(indexOf, r2, [a0]);
|
|
if (value !== -1) {
|
|
return true;
|
|
}
|
|
push = r2.push;
|
|
Reflect.apply(push, r2, [a0]);
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [a0])) {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [a1])) {
|
|
part = r9.part;
|
|
if (!part) {
|
|
length = a0.length;
|
|
length4 = a1.length;
|
|
reducibleJoin51: while (true) {
|
|
if (length !== length4) {
|
|
return false;
|
|
}
|
|
break reducibleJoin51;
|
|
}
|
|
}
|
|
length = a0.length;
|
|
value = 0;
|
|
value9 = environment.__proto__;
|
|
if (value < length) {
|
|
r1 = value;
|
|
reducibleLoop52: while (true) {
|
|
part = r9.part;
|
|
if (part) {
|
|
break reducibleLoop52;
|
|
}
|
|
deepEqual = require.deepEqual;
|
|
property = a0[r1];
|
|
if (!Reflect.apply(deepEqual, require, [property, a1[r1], r9])) {
|
|
return false;
|
|
}
|
|
value10 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
length = a0.length;
|
|
if (!(value10 < length)) {
|
|
return true;
|
|
}
|
|
r1 = value10;
|
|
continue reducibleLoop52;
|
|
}
|
|
length = a1.length;
|
|
value11 = false;
|
|
if (value < length) {
|
|
r8 = value;
|
|
reducibleLoop58: while (true) {
|
|
deepEqual = require.deepEqual;
|
|
property = a0[r1];
|
|
value = Reflect.apply(deepEqual, require, [property, a1[r8], r9]);
|
|
value12 = true;
|
|
if (value) {
|
|
r0 = value12;
|
|
break reducibleLoop58;
|
|
}
|
|
value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
length = a1.length;
|
|
if (value < length) {
|
|
r8 = value;
|
|
continue reducibleLoop58;
|
|
}
|
|
r0 = value11;
|
|
break reducibleLoop58;
|
|
}
|
|
} else {
|
|
r0 = value11;
|
|
}
|
|
return r0;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
value = environment;
|
|
binding = env0_0;
|
|
isBuffer = binding.isBuffer;
|
|
if (Reflect.apply(isBuffer, binding, [a0])) {
|
|
binding = env0_0;
|
|
isBuffer = binding.isBuffer;
|
|
if (Reflect.apply(isBuffer, binding, [a1])) {
|
|
length = a0.length;
|
|
length3 = a1.length;
|
|
if (length !== length3) {
|
|
return false;
|
|
}
|
|
length = a0.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r2 = value;
|
|
reducibleLoop41: while (true) {
|
|
property = a0[r2];
|
|
if (property !== a1[r2]) {
|
|
return false;
|
|
}
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a0.length;
|
|
if (!(value < length)) {
|
|
return true;
|
|
}
|
|
r2 = value;
|
|
continue reducibleLoop41;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
Date = global.Date;
|
|
if (a0 instanceof Date) {
|
|
Date = global.Date;
|
|
value = a1 instanceof Date;
|
|
reducibleJoin36: while (true) {
|
|
if (value) {
|
|
getTime = a0.getTime;
|
|
value = Reflect.apply(getTime, a0, []);
|
|
getTime = a1.getTime;
|
|
value = value === Reflect.apply(getTime, a1, []);
|
|
r2 = value;
|
|
break reducibleJoin36;
|
|
}
|
|
r2 = value;
|
|
break reducibleJoin36;
|
|
}
|
|
return r2;
|
|
}
|
|
RegExp = global.RegExp;
|
|
if (a0 instanceof RegExp) {
|
|
RegExp = global.RegExp;
|
|
value = a1 instanceof RegExp;
|
|
reducibleJoin33: while (true) {
|
|
if (value) {
|
|
toString = a0.toString;
|
|
value = Reflect.apply(toString, a0, []);
|
|
toString = a1.toString;
|
|
value = value === Reflect.apply(toString, a1, []);
|
|
r2 = value;
|
|
break reducibleJoin33;
|
|
}
|
|
r2 = value;
|
|
break reducibleJoin33;
|
|
}
|
|
return r2;
|
|
}
|
|
prototype = r9.prototype;
|
|
if (prototype) {
|
|
Object = global.Object;
|
|
getPrototypeOf = Object.getPrototypeOf;
|
|
value = Reflect.apply(getPrototypeOf, Object, [a0]);
|
|
Object = global.Object;
|
|
getPrototypeOf = Object.getPrototypeOf;
|
|
reducibleJoin19: while (true) {
|
|
if (value !== Reflect.apply(getPrototypeOf, Object, [a1])) {
|
|
return false;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value = Reflect.apply(getOwnPropertyNames, Object, [a0]);
|
|
part = r9.part;
|
|
if (!part) {
|
|
length = value.length;
|
|
Object = global.Object;
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
length2 = Reflect.apply(getOwnPropertyNames, Object, [a1]).length;
|
|
reducibleJoin22: while (true) {
|
|
if (length !== length2) {
|
|
return false;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
}
|
|
length = value.length;
|
|
value5 = 0;
|
|
value6 = environment.__proto__;
|
|
if (value5 < length) {
|
|
r6 = value5;
|
|
reducibleLoop23: while (true) {
|
|
property = value[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value7 = Reflect.apply(getOwnPropertyDescriptor, Object, [a0, property]);
|
|
get = value7.get;
|
|
deepEqual = require.deepEqual;
|
|
if (get) {
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
reducibleJoin28: while (true) {
|
|
if (!Reflect.apply(deepEqual, require, [value7, Reflect.apply(getOwnPropertyDescriptor,
|
|
Object,
|
|
[a1,
|
|
property]),
|
|
r9,
|
|
r2])) {
|
|
return false;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
} else {
|
|
property2 = a0[property];
|
|
reducibleJoin28: while (true) {
|
|
if (!Reflect.apply(deepEqual, require, [property2, a1[property], r9, r2])) {
|
|
return false;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
}
|
|
value8 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value.length;
|
|
if (!(value8 < length)) {
|
|
return true;
|
|
}
|
|
r6 = value8;
|
|
continue reducibleLoop23;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
}
|
|
if (a0 === a1) {
|
|
value = a0 !== 0;
|
|
reducibleJoin68: while (true) {
|
|
if (value) {
|
|
r1 = value;
|
|
break reducibleJoin68;
|
|
}
|
|
value = 1 / a0;
|
|
value = value === 1 / a1;
|
|
r1 = value;
|
|
break reducibleJoin68;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
value = a0 != a0;
|
|
reducibleJoin65: while (true) {
|
|
if (value) {
|
|
value = a1 != a1;
|
|
r0 = value;
|
|
break reducibleJoin65;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin65;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function unique(a0, a1) { // fn#64167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:10806, offset: 0x01b9e2bf, size: 89 bytes, params: 3, frame: 14
|
|
var Array;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (a1) {
|
|
(() => {
|
|
env0_2 = [];
|
|
var Set = global.Set;
|
|
var value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
var value3 = new Set();
|
|
(value3 instanceof Object ? value3 : value2).forEach(_fun64169);
|
|
})();
|
|
} else {
|
|
Array = global.Array;
|
|
var env0_2 = Array.from(new global.Set(a0));
|
|
}
|
|
return env0_2;
|
|
function _fun64168() { // fn#64168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:10842, offset: 0x01b9e318, size: 68 bytes, params: 1, frame: 12
|
|
env0_2 = [];
|
|
const Set = global.Set;
|
|
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
const set = new Set();
|
|
(set instanceof Object ? set : value2).forEach(_fun64169);
|
|
function _fun64169(a0) { // fn#64169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:10883, offset: 0x01b9e35c, size: 66 bytes, params: 2, frame: 14
|
|
const property = a0[require];
|
|
let binding = env0_0;
|
|
if (!binding.has(property)) {
|
|
binding = env0_0;
|
|
binding.add(property);
|
|
binding = env1_2;
|
|
binding.push(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function intersect(a0, a1, a2) { // fn#64171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:11109, offset: 0x01b9e3eb, size: 162 bytes, params: 4, frame: 17
|
|
var r6;
|
|
var r4;
|
|
var r0;
|
|
var items2;
|
|
var Array;
|
|
var isArray;
|
|
var value2;
|
|
var mapToObject;
|
|
var object;
|
|
var length;
|
|
var push;
|
|
let value = a0;
|
|
if (value) {
|
|
reducibleJoin2: while (true) {
|
|
if (a1) {
|
|
items2 = [];
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
reducibleJoin5: while (true) {
|
|
if (Reflect.apply(isArray, Array, [value])) {
|
|
value2 = environment.__proto__;
|
|
mapToObject = require.mapToObject;
|
|
value = Reflect.apply(mapToObject, require, [value]);
|
|
r6 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
r6 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
object = {};
|
|
length = a1.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r4 = value;
|
|
reducibleLoop6: while (true) {
|
|
if (r6[a1[r4]]) {
|
|
reducibleJoin11: while (true) {
|
|
if (object[a1[r4]]) {
|
|
break reducibleJoin11;
|
|
}
|
|
if (a2) {
|
|
return a1[r4];
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [a1[r4]]);
|
|
object[a1[r4]] = true;
|
|
break reducibleJoin11;
|
|
}
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = a1.length;
|
|
if (value < length) {
|
|
r4 = value;
|
|
continue reducibleLoop6;
|
|
}
|
|
break reducibleLoop6;
|
|
}
|
|
}
|
|
value = null;
|
|
r0 = a2 ? value : items2;
|
|
return r0;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
return [];
|
|
}
|
|
|
|
function contain(a0, a1, a2) { // fn#64172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:11309, offset: 0x01b9e48d, size: 1055 bytes, params: 4, frame: 34
|
|
var environment;
|
|
var r4;
|
|
var r16;
|
|
var r20;
|
|
var r1;
|
|
var r8;
|
|
var r6;
|
|
var r12;
|
|
var r13;
|
|
var r9;
|
|
var r21;
|
|
var r18;
|
|
var r19;
|
|
var r10;
|
|
var r17;
|
|
var r3;
|
|
var r5;
|
|
var r7;
|
|
var r2;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var Array;
|
|
var isArray;
|
|
var Object;
|
|
var keys;
|
|
var value10;
|
|
var items2;
|
|
var concat;
|
|
var value11;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var closure;
|
|
var deepEqual;
|
|
var hasOwnProperty2;
|
|
var hasOwnProperty3;
|
|
var part;
|
|
var value17;
|
|
var value23;
|
|
var value24;
|
|
var property;
|
|
var indexOf;
|
|
var value25;
|
|
var value26;
|
|
var property2;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var value32;
|
|
var escapeRegex;
|
|
var value35;
|
|
var value36;
|
|
var regExp;
|
|
var value38;
|
|
var once;
|
|
var value39;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const value3 = undefined;
|
|
var env0_0;
|
|
const value4 = value3 === a0;
|
|
const value5 = 'undefined';
|
|
reducibleJoin2: while (true) {
|
|
if (value4) {
|
|
r4 = value5;
|
|
break reducibleJoin2;
|
|
}
|
|
value6 = environment;
|
|
value7 = env0_2(a0);
|
|
r4 = value7;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin9: while (true) {
|
|
if (r4 !== 'object') {
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
if (value3 === value) {
|
|
r4 = value5;
|
|
break reducibleJoin5;
|
|
}
|
|
value8 = environment;
|
|
value9 = env0_2(value);
|
|
r4 = value9;
|
|
break reducibleJoin5;
|
|
}
|
|
if (r4 !== 'object') {
|
|
break reducibleJoin9;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [a0])) {
|
|
break reducibleJoin9;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [value])) {
|
|
break reducibleJoin9;
|
|
}
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value10 = Reflect.apply(keys, Object, [value]);
|
|
env0_0 = value10;
|
|
r16 = value10;
|
|
r20 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
items2 = [];
|
|
concat = items2.concat;
|
|
value = Reflect.apply(concat, items2, [value]);
|
|
env0_0 = value;
|
|
value11 = null;
|
|
r16 = value;
|
|
r20 = value11;
|
|
break reducibleJoin10;
|
|
}
|
|
reducibleJoin12: while (true) {
|
|
if (value2) {
|
|
r1 = value2;
|
|
break reducibleJoin12;
|
|
}
|
|
r1 = {};
|
|
break reducibleJoin12;
|
|
}
|
|
value = environment.__proto__;
|
|
let assert = require.assert;
|
|
Reflect.apply(assert, require, [arguments.length >= 2, 'Insufficient arguments']);
|
|
assert = require.assert;
|
|
const value12 = typeof a0 === 'string';
|
|
reducibleJoin16: while (true) {
|
|
if (value12) {
|
|
r4 = value12;
|
|
break reducibleJoin16;
|
|
}
|
|
reducibleJoin15: while (true) {
|
|
if (value4) {
|
|
r8 = value5;
|
|
break reducibleJoin15;
|
|
}
|
|
value13 = environment;
|
|
value14 = env0_2(a0);
|
|
r8 = value14;
|
|
break reducibleJoin15;
|
|
}
|
|
value15 = r8 === 'object';
|
|
r4 = value15;
|
|
break reducibleJoin16;
|
|
}
|
|
Reflect.apply(assert, require, [r4, 'Reference must be string or an object']);
|
|
assert = require.assert;
|
|
let length = r16.length;
|
|
Reflect.apply(assert, require, [length, 'Values array cannot be empty']);
|
|
if (r1.deep) {
|
|
deepEqual = require.deepEqual;
|
|
hasOwnProperty2 = r1.hasOwnProperty('only');
|
|
hasOwnProperty3 = r1.hasOwnProperty('part');
|
|
if (hasOwnProperty2) {
|
|
r8 = r1.only;
|
|
} else {
|
|
reducibleJoin21: while (true) {
|
|
if (hasOwnProperty3) {
|
|
part = r1.part;
|
|
value17 = !part;
|
|
r8 = value17;
|
|
break reducibleJoin21;
|
|
}
|
|
r8 = !!hasOwnProperty3;
|
|
break reducibleJoin21;
|
|
}
|
|
}
|
|
if (hasOwnProperty2) {
|
|
r6 = !r1.only;
|
|
} else {
|
|
reducibleJoin26: while (true) {
|
|
if (hasOwnProperty3) {
|
|
part = r1.part;
|
|
r6 = part;
|
|
break reducibleJoin26;
|
|
}
|
|
r6 = !hasOwnProperty3;
|
|
break reducibleJoin26;
|
|
}
|
|
}
|
|
r12 = {prototype: r8, part: r6};
|
|
r13 = deepEqual;
|
|
} else {
|
|
closure = function(a0, a1) {
|
|
return a0 === a1;
|
|
};
|
|
r12 = value3;
|
|
r13 = closure;
|
|
}
|
|
Array = global.Array;
|
|
const array = new Array(r16.length);
|
|
length = array.length;
|
|
const value22 = 0;
|
|
if (value22 < length) {
|
|
r6 = value22;
|
|
reducibleLoop30: while (true) {
|
|
array[r6] = value22;
|
|
value23 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = array.length;
|
|
if (value23 < length) {
|
|
r6 = value23;
|
|
continue reducibleLoop30;
|
|
}
|
|
break reducibleLoop30;
|
|
}
|
|
}
|
|
if (value12) {
|
|
length = r16.length;
|
|
value32 = '(';
|
|
if (value22 < length) {
|
|
r9 = value22;
|
|
r10 = value32;
|
|
reducibleLoop49: while (true) {
|
|
property = r16[r9];
|
|
assert = require.assert;
|
|
Reflect.apply(assert, require, [typeof property === 'string',
|
|
'Cannot compare string reference to non-string value']);
|
|
r17 = r9 ? '|' : '';
|
|
escapeRegex = require.escapeRegex;
|
|
value35 = r10 + (r17 + Reflect.apply(escapeRegex, require, [property]));
|
|
value36 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = r16.length;
|
|
if (value36 < length) {
|
|
r9 = value36;
|
|
r10 = value35;
|
|
continue reducibleLoop49;
|
|
}
|
|
r6 = value35;
|
|
break reducibleLoop49;
|
|
}
|
|
} else {
|
|
r6 = value32;
|
|
}
|
|
regExp = new global.RegExp(r6 + ')', 'g');
|
|
regExp = !!a0.replace(regExp, _fun64174);
|
|
r3 = regExp;
|
|
} else {
|
|
Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
length = a0.length;
|
|
value = false;
|
|
if (value22 < length) {
|
|
r6 = value22;
|
|
r9 = value;
|
|
reducibleLoop41: while (true) {
|
|
length = r16.length;
|
|
if (value22 < length) {
|
|
r4 = value22;
|
|
reducibleLoop42: while (true) {
|
|
property = r16[r4];
|
|
value28 = r13(property, a0[r6], r12);
|
|
r18 = value28 && r4;
|
|
value29 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = r16.length;
|
|
if (value29 < length) {
|
|
if (value === r18) {
|
|
r4 = value29;
|
|
continue reducibleLoop42;
|
|
}
|
|
r19 = r18;
|
|
break reducibleLoop42;
|
|
}
|
|
r19 = r18;
|
|
break reducibleLoop42;
|
|
}
|
|
} else {
|
|
r19 = value;
|
|
}
|
|
value30 = true;
|
|
reducibleJoin47: while (true) {
|
|
if (value === r19) {
|
|
r18 = value30;
|
|
break reducibleJoin47;
|
|
}
|
|
property = array[r19];
|
|
array[r19] = typeof property === 'bigint' ? property + 1n : +property + 1;
|
|
r18 = r9;
|
|
break reducibleJoin47;
|
|
}
|
|
value31 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = a0.length;
|
|
if (value31 < length) {
|
|
r6 = value31;
|
|
r9 = r18;
|
|
continue reducibleLoop41;
|
|
}
|
|
r3 = r18;
|
|
break reducibleLoop41;
|
|
}
|
|
} else {
|
|
r3 = value;
|
|
}
|
|
} else {
|
|
value = global.Object.getOwnPropertyNames(a0);
|
|
length = value.length;
|
|
value24 = false;
|
|
if (value22 < length) {
|
|
r6 = value22;
|
|
r9 = value24;
|
|
reducibleLoop34: while (true) {
|
|
property = value[r6];
|
|
indexOf = r16.indexOf;
|
|
value25 = Reflect.apply(indexOf, r16, [property]);
|
|
value26 = true;
|
|
if (value25 === -1) {
|
|
r21 = value26;
|
|
} else {
|
|
reducibleJoin39: while (true) {
|
|
reducibleJoin38: while (true) {
|
|
if (r20) {
|
|
property2 = r20[property];
|
|
if (!r13(property2, a0[property], r12)) {
|
|
return value24;
|
|
}
|
|
break reducibleJoin38;
|
|
}
|
|
break reducibleJoin38;
|
|
}
|
|
property = array[value25];
|
|
array[value25] = typeof property === 'bigint' ? property + 1n : +property + 1;
|
|
r21 = r9;
|
|
break reducibleJoin39;
|
|
}
|
|
}
|
|
value27 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value.length;
|
|
if (value27 < length) {
|
|
r6 = value27;
|
|
r9 = r21;
|
|
continue reducibleLoop34;
|
|
}
|
|
r3 = r21;
|
|
break reducibleLoop34;
|
|
}
|
|
} else {
|
|
r3 = value24;
|
|
}
|
|
}
|
|
}
|
|
length = array.length;
|
|
value = false;
|
|
if (value22 < length) {
|
|
r5 = value;
|
|
r7 = value22;
|
|
reducibleLoop53: while (true) {
|
|
reducibleJoin55: while (true) {
|
|
if (r5) {
|
|
break reducibleJoin55;
|
|
}
|
|
value38 = !!array[r7];
|
|
r5 = value38;
|
|
break reducibleJoin55;
|
|
}
|
|
once = r1.once;
|
|
if (once) {
|
|
reducibleJoin57: while (true) {
|
|
if (array[r7] > 1) {
|
|
return value;
|
|
}
|
|
break reducibleJoin57;
|
|
}
|
|
}
|
|
part = r1.part;
|
|
if (!part) {
|
|
reducibleJoin59: while (true) {
|
|
if (!array[r7]) {
|
|
return value;
|
|
}
|
|
break reducibleJoin59;
|
|
}
|
|
}
|
|
value39 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
length = array.length;
|
|
if (value39 < length) {
|
|
r7 = value39;
|
|
continue reducibleLoop53;
|
|
}
|
|
r2 = r5;
|
|
break reducibleLoop53;
|
|
}
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
const only = r1.only;
|
|
value = !only;
|
|
reducibleJoin62: while (true) {
|
|
if (only) {
|
|
value = !r3;
|
|
r1 = value;
|
|
break reducibleJoin62;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin62;
|
|
}
|
|
r1 = r1 && r2;
|
|
return r1;
|
|
function _fun64174(a0, a1) { // fn#64174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:12215, offset: 0x01b9e8ac, size: 42 bytes, params: 3, frame: 12
|
|
const value2 = require.indexOf(a1);
|
|
const binding = env0_1;
|
|
const property = binding[value2];
|
|
binding[value2] = typeof property === 'bigint' ? property + 1n : +property + 1;
|
|
return '';
|
|
}
|
|
|
|
}
|
|
|
|
function reach_64176(a0, a1, a2) { // fn#64176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:12788, offset: 0x01b9e93f, size: 449 bytes, params: 4, frame: 35
|
|
var r3;
|
|
var r2;
|
|
var separator;
|
|
var r14;
|
|
var r15;
|
|
var r5;
|
|
var r8;
|
|
var r4;
|
|
var r1;
|
|
var split;
|
|
var value3;
|
|
var value4;
|
|
var length;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var property;
|
|
var Array;
|
|
var isArray;
|
|
var slice;
|
|
var value8;
|
|
var functions;
|
|
var assert;
|
|
var strict;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
let value = a0;
|
|
const value2 = a2;
|
|
if (a1 !== false) {
|
|
reducibleJoin34: while (true) {
|
|
if (a1 != null) {
|
|
reducibleJoin4: while (true) {
|
|
if (value2) {
|
|
r3 = value2;
|
|
break reducibleJoin4;
|
|
}
|
|
r3 = {};
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (typeof r3 !== 'string') {
|
|
r2 = r3;
|
|
break reducibleJoin6;
|
|
}
|
|
r2 = {separator: r3};
|
|
break reducibleJoin6;
|
|
}
|
|
split = a1.split;
|
|
separator = r2.separator;
|
|
reducibleJoin8: while (true) {
|
|
if (separator) {
|
|
break reducibleJoin8;
|
|
}
|
|
value3 = '.';
|
|
separator = value3;
|
|
break reducibleJoin8;
|
|
}
|
|
value4 = Reflect.apply(split, a1, [separator]);
|
|
length = value4.length;
|
|
value5 = 0;
|
|
value6 = environment;
|
|
value7 = 'undefined';
|
|
if (value5 < length) {
|
|
r14 = value5;
|
|
r15 = value;
|
|
reducibleLoop9: while (true) {
|
|
property = value4[r14];
|
|
value = property[value5] === '-';
|
|
reducibleJoin11: while (true) {
|
|
if (value) {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
value = Reflect.apply(isArray, Array, [r15]);
|
|
r5 = value;
|
|
break reducibleJoin11;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r5) {
|
|
slice = property.slice;
|
|
length = property.length;
|
|
value = Reflect.apply(slice, property, [1, length]);
|
|
length = r15.length;
|
|
value = length - value;
|
|
r8 = value;
|
|
break reducibleJoin13;
|
|
}
|
|
r8 = property;
|
|
break reducibleJoin13;
|
|
}
|
|
if (r15) {
|
|
value = r15 === undefined;
|
|
reducibleJoin16: while (true) {
|
|
if (value) {
|
|
r5 = value7;
|
|
break reducibleJoin16;
|
|
}
|
|
value8 = env0_2(r15);
|
|
r5 = value8;
|
|
break reducibleJoin16;
|
|
}
|
|
if (r5 !== 'object') {
|
|
reducibleJoin18: while (true) {
|
|
if (typeof r15 !== 'function') {
|
|
value = environment.__proto__;
|
|
assert = require.assert;
|
|
strict = r2.strict;
|
|
value9 = !strict;
|
|
reducibleJoin26: while (true) {
|
|
if (strict) {
|
|
value10 = r14 + 1;
|
|
length = value4.length;
|
|
value11 = value10 === length;
|
|
r14 = value11;
|
|
break reducibleJoin26;
|
|
}
|
|
r14 = value9;
|
|
break reducibleJoin26;
|
|
}
|
|
Reflect.apply(assert, require, [r14, 'Missing segment', r8, 'in reach path ',
|
|
a1]);
|
|
assert = require.assert;
|
|
reducibleJoin28: while (true) {
|
|
if (r15 === undefined) {
|
|
r4 = value7;
|
|
break reducibleJoin28;
|
|
}
|
|
value = env0_2(r15);
|
|
r4 = value;
|
|
break reducibleJoin28;
|
|
}
|
|
value = r4 === 'object';
|
|
reducibleJoin30: while (true) {
|
|
if (value) {
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
functions = r2.functions;
|
|
value = functions === true;
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin32;
|
|
}
|
|
value = typeof r15 !== 'function';
|
|
r4 = value;
|
|
break reducibleJoin32;
|
|
}
|
|
Reflect.apply(assert, require, [r4, 'Invalid segment', r8, 'in reach path ',
|
|
a1]);
|
|
property = r2.default;
|
|
r1 = property;
|
|
break reducibleLoop9;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
}
|
|
if (r8 in r15) {
|
|
reducibleJoin21: while (true) {
|
|
if (value) {
|
|
r5 = value7;
|
|
break reducibleJoin21;
|
|
}
|
|
value = env0_2(r15);
|
|
r5 = value;
|
|
break reducibleJoin21;
|
|
}
|
|
if (r5 !== 'object') {
|
|
functions = r2.functions;
|
|
reducibleJoin23: while (true) {
|
|
if (functions === false) {
|
|
value = environment.__proto__;
|
|
assert = require.assert;
|
|
strict = r2.strict;
|
|
value9 = !strict;
|
|
reducibleJoin26: while (true) {
|
|
if (strict) {
|
|
value10 = r14 + 1;
|
|
length = value4.length;
|
|
value11 = value10 === length;
|
|
r14 = value11;
|
|
break reducibleJoin26;
|
|
}
|
|
r14 = value9;
|
|
break reducibleJoin26;
|
|
}
|
|
Reflect.apply(assert, require, [r14, 'Missing segment', r8,
|
|
'in reach path ',
|
|
a1]);
|
|
assert = require.assert;
|
|
reducibleJoin28: while (true) {
|
|
if (r15 === undefined) {
|
|
r4 = value7;
|
|
break reducibleJoin28;
|
|
}
|
|
value = env0_2(r15);
|
|
r4 = value;
|
|
break reducibleJoin28;
|
|
}
|
|
value = r4 === 'object';
|
|
reducibleJoin30: while (true) {
|
|
if (value) {
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
functions = r2.functions;
|
|
value = functions === true;
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin32;
|
|
}
|
|
value = typeof r15 !== 'function';
|
|
r4 = value;
|
|
break reducibleJoin32;
|
|
}
|
|
Reflect.apply(assert, require, [r4, 'Invalid segment', r8, 'in reach path ',
|
|
a1]);
|
|
property = r2.default;
|
|
r1 = property;
|
|
break reducibleLoop9;
|
|
}
|
|
break reducibleJoin23;
|
|
}
|
|
}
|
|
property = r15[r8];
|
|
value = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
|
|
length = value4.length;
|
|
if (value < length) {
|
|
r14 = value;
|
|
r15 = property;
|
|
continue reducibleLoop9;
|
|
}
|
|
r1 = property;
|
|
break reducibleLoop9;
|
|
}
|
|
value = environment.__proto__;
|
|
assert = require.assert;
|
|
strict = r2.strict;
|
|
value9 = !strict;
|
|
reducibleJoin26: while (true) {
|
|
if (strict) {
|
|
value10 = r14 + 1;
|
|
length = value4.length;
|
|
value11 = value10 === length;
|
|
r14 = value11;
|
|
break reducibleJoin26;
|
|
}
|
|
r14 = value9;
|
|
break reducibleJoin26;
|
|
}
|
|
Reflect.apply(assert, require, [r14, 'Missing segment', r8, 'in reach path ', a1]);
|
|
assert = require.assert;
|
|
reducibleJoin28: while (true) {
|
|
if (r15 === undefined) {
|
|
r4 = value7;
|
|
break reducibleJoin28;
|
|
}
|
|
value = env0_2(r15);
|
|
r4 = value;
|
|
break reducibleJoin28;
|
|
}
|
|
value = r4 === 'object';
|
|
reducibleJoin30: while (true) {
|
|
if (value) {
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
functions = r2.functions;
|
|
value = functions === true;
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin32;
|
|
}
|
|
value = typeof r15 !== 'function';
|
|
r4 = value;
|
|
break reducibleJoin32;
|
|
}
|
|
Reflect.apply(assert, require, [r4, 'Invalid segment', r8, 'in reach path ', a1]);
|
|
property = r2.default;
|
|
r1 = property;
|
|
break reducibleLoop9;
|
|
}
|
|
value = environment.__proto__;
|
|
assert = require.assert;
|
|
strict = r2.strict;
|
|
value9 = !strict;
|
|
reducibleJoin26: while (true) {
|
|
if (strict) {
|
|
value10 = r14 + 1;
|
|
length = value4.length;
|
|
value11 = value10 === length;
|
|
r14 = value11;
|
|
break reducibleJoin26;
|
|
}
|
|
r14 = value9;
|
|
break reducibleJoin26;
|
|
}
|
|
Reflect.apply(assert, require, [r14, 'Missing segment', r8, 'in reach path ', a1]);
|
|
assert = require.assert;
|
|
reducibleJoin28: while (true) {
|
|
if (r15 === undefined) {
|
|
r4 = value7;
|
|
break reducibleJoin28;
|
|
}
|
|
value = env0_2(r15);
|
|
r4 = value;
|
|
break reducibleJoin28;
|
|
}
|
|
value = r4 === 'object';
|
|
reducibleJoin30: while (true) {
|
|
if (value) {
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
functions = r2.functions;
|
|
value = functions === true;
|
|
r4 = value;
|
|
break reducibleJoin30;
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin32;
|
|
}
|
|
value = typeof r15 !== 'function';
|
|
r4 = value;
|
|
break reducibleJoin32;
|
|
}
|
|
Reflect.apply(assert, require, [r4, 'Invalid segment', r8, 'in reach path ', a1]);
|
|
property = r2.default;
|
|
r1 = property;
|
|
break reducibleLoop9;
|
|
}
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return r1;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function reachTemplate(a0, a1, a2) { // fn#64177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:13413, offset: 0x01b9eb00, size: 51 bytes, params: 4, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
return a1.replace(RegExp('{([^}]+)}', 'g'), _fun64178);
|
|
function _fun64178(a0, a1) { // fn#64178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:13460, offset: 0x01b9eb33, size: 52 bytes, params: 3, frame: 15
|
|
const value = environment.__proto__.__proto__;
|
|
return require.reach(env0_0, a1, importDefault) ?? '';
|
|
}
|
|
|
|
}
|
|
|
|
function callStack(a0) { // fn#64181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:13855, offset: 0x01b9ec80, size: 114 bytes, params: 2, frame: 15
|
|
var environment;
|
|
let Error = global.Error;
|
|
const prepareStackTrace = Error.prepareStackTrace;
|
|
Error = global.Error;
|
|
Error.prepareStackTrace = function(a0, a1) {
|
|
return a1;
|
|
};
|
|
const object = {};
|
|
Error = global.Error;
|
|
Error.captureStackTrace(object, this);
|
|
const stack = object.stack;
|
|
Error = global.Error;
|
|
Error.prepareStackTrace = prepareStackTrace;
|
|
const value = environment.__proto__;
|
|
return require.formatStack(stack).slice(1 + a0);
|
|
}
|
|
|
|
function abort_64184(a0, a1) { // fn#64184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:14174, offset: 0x01b9ed28, size: 205 bytes, params: 3, frame: 15
|
|
var r2;
|
|
var Error;
|
|
const value = a0;
|
|
const NODE_ENV = require.env.NODE_ENV;
|
|
if (NODE_ENV === 'test') {
|
|
Error = global.Error;
|
|
r2 = value || 'Unknown error';
|
|
throw new Error();
|
|
}
|
|
if (require.abortThrow === true) {
|
|
Error = global.Error;
|
|
r2 = value || 'Unknown error';
|
|
throw new Error();
|
|
}
|
|
global.console.log('ABORT: ' + value + '\n\t' + (a1 ? '' : require.displayStack(1).join('\n\t')));
|
|
require.exit(1);
|
|
}
|
|
|
|
function assert_64185(a0) { // fn#64185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:14371, offset: 0x01b9edf5, size: 184 bytes, params: 2, frame: 16
|
|
var r6;
|
|
var r3;
|
|
var push;
|
|
if (a0) {
|
|
return undefined;
|
|
}
|
|
if (arguments.length === 2) {
|
|
reducibleJoin3: while (true) {
|
|
if (arguments[1] instanceof global.Error) {
|
|
throw arguments[1];
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
const items2 = [];
|
|
let value = 1;
|
|
if (value < arguments.length) {
|
|
r6 = value;
|
|
reducibleLoop4: while (true) {
|
|
reducibleJoin6: while (true) {
|
|
if (arguments[r6] === '') {
|
|
break reducibleJoin6;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [arguments[r6]]);
|
|
break reducibleJoin6;
|
|
}
|
|
value = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (value < arguments.length) {
|
|
r6 = value;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
value = items2.map(_fun64186);
|
|
const Error = global.Error;
|
|
value = value.join(' ');
|
|
reducibleJoin9: while (true) {
|
|
if (value) {
|
|
r3 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
value = 'Unknown error';
|
|
r3 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
throw new Error();
|
|
function _fun64186(a0) { // fn#64186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:14558, offset: 0x01b9eead, size: 62 bytes, params: 2, frame: 12
|
|
var r1;
|
|
var r0;
|
|
var value2;
|
|
let value = a0;
|
|
if (typeof value === 'string') {
|
|
r0 = value;
|
|
} else {
|
|
if (value instanceof global.Error) {
|
|
r1 = value.message;
|
|
} else {
|
|
value2 = environment.__proto__.__proto__;
|
|
value = require.stringify(value);
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function reset_64191() { // fn#64191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:14915, offset: 0x01b9ef42, size: 35 bytes, params: 1, frame: 9
|
|
const value = environment.__proto__;
|
|
const Bench = require.Bench;
|
|
this.ts = Bench.now();
|
|
}
|
|
|
|
function elapsed_64192() { // fn#64192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:14975, offset: 0x01b9ef65, size: 37 bytes, params: 1, frame: 9
|
|
const value = environment.__proto__;
|
|
const Bench = require.Bench;
|
|
return Bench.now() - this.ts;
|
|
}
|
|
|
|
function now_64193() { // fn#64193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:15028, offset: 0x01b9ef8a, size: 58 bytes, params: 1, frame: 10
|
|
const value = require.hrtime();
|
|
return 1000 * value[0] + value[1] / 1000000;
|
|
}
|
|
|
|
function base64urlEncode(a0, a1) { // fn#64195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:15198, offset: 0x01b9efe8, size: 227 bytes, params: 3, frame: 16
|
|
var r3;
|
|
var r2;
|
|
var binding;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
require.assert(typeof value === 'string' || env0_0.isBuffer(value), 'value must be string or buffer');
|
|
if (Reflect.apply(env0_0.isBuffer, binding, [value])) {
|
|
r2 = value;
|
|
} else {
|
|
binding = env0_0;
|
|
r3 = value2 || 'binary';
|
|
value = new binding(value);
|
|
r2 = value;
|
|
}
|
|
value = r2.toString('base64');
|
|
value = value.replace(RegExp('\\+', 'g'), '-');
|
|
value = value.replace(RegExp('\\/', 'g'), '_');
|
|
return value.replace(RegExp('\\=', 'g'), '');
|
|
}
|
|
|
|
function base64urlDecode(a0, a1) { // fn#64196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:15429, offset: 0x01b9f0cb, size: 183 bytes, params: 3, frame: 14
|
|
var Error;
|
|
var error;
|
|
var env0_03;
|
|
let value = a1;
|
|
if (typeof a0 !== 'string') {
|
|
error = new global.Error('Value not a string');
|
|
} else {
|
|
var regexp = RegExp('^[\\w\\-]*$', '');
|
|
if (regexp.test(a0)) {
|
|
env0_03 = new env0_0(a0, 'base64');
|
|
return value === 'buffer' ? env0_03 : env0_03.toString(value || 'binary');
|
|
}
|
|
Error = global.Error;
|
|
value = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
error = new Error('Invalid character');
|
|
}
|
|
return error instanceof Object ? error : value;
|
|
}
|
|
|
|
function escapeHeaderAttribute(a0) { // fn#64197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:15660, offset: 0x01b9f182, size: 130 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
require.assert(RegExp('^[ \\w\\!#\\$%&\'\\(\\)\\*\\+,\\-\\.\\/\\:;<\\=>\\?@\\[\\]\\^`\\{\\|\\}~\\"\\\\]*$',
|
|
'').test(a0), 'Bad attribute value (' + a0 + ')');
|
|
return a0.replace(RegExp('\\\\', 'g'), '\\\\').replace(RegExp('\\"', 'g'), '\\"');
|
|
}
|
|
|
|
function escapeHtml(a0) { // fn#64198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:15848, offset: 0x01b9f204, size: 23 bytes, params: 2, frame: 11
|
|
return env0_5.escapeHtml(a0);
|
|
}
|
|
|
|
function escapeJavaScript(a0) { // fn#64199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:15903, offset: 0x01b9f21b, size: 23 bytes, params: 2, frame: 11
|
|
return env0_5.escapeJavaScript(a0);
|
|
}
|
|
|
|
function nextTick_64200(a0) { // fn#64200, offset: 0x01b9f232, size: 16 bytes, params: 2, frame: 2
|
|
let env0_0 = a0;
|
|
return function() {
|
|
var env0_0 = arguments;
|
|
require.nextTick(_fun64202);
|
|
};
|
|
function _fun64201() { // fn#64201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:15975, offset: 0x01b9f242, size: 37 bytes, params: 1, frame: 12
|
|
const env0_0 = arguments;
|
|
require.nextTick(_fun64202);
|
|
function _fun64202() { // fn#64202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:16014, offset: 0x00fda0e3, size: 31 bytes, params: 1, frame: 13
|
|
env1_0.apply(null, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function once_64203(a0) { // fn#64203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:16053, offset: 0x01b9f267, size: 41 bytes, params: 2, frame: 3
|
|
const env0_0 = a0;
|
|
if (a0._hoekOnce) {
|
|
return a0;
|
|
}
|
|
const wrapped2 = wrapped;
|
|
wrapped2._hoekOnce = true;
|
|
return wrapped2;
|
|
function wrapped() { // fn#64204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:16100, owner: once_64203.wrapped, offset: 0x00fdbd81, size: 44 bytes, params: 1, frame: 14
|
|
if (!env0_1) {
|
|
env0_0.apply(null, arguments);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function transform_64207(a0, a1, a2) { // fn#64207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:16346, offset: 0x01b9f2da, size: 424 bytes, params: 4, frame: 27
|
|
var r9;
|
|
var r2;
|
|
var r11;
|
|
var r14;
|
|
var r13;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var Array;
|
|
var isArray;
|
|
var isArray2;
|
|
var value8;
|
|
var value9;
|
|
var value11;
|
|
var separator;
|
|
var value12;
|
|
var object;
|
|
var length;
|
|
var property;
|
|
var split;
|
|
var value15;
|
|
var shift;
|
|
var value16;
|
|
var property2;
|
|
var value17;
|
|
var reach;
|
|
var value18;
|
|
var value19;
|
|
var push;
|
|
var transform;
|
|
var value20;
|
|
let assert = require.assert;
|
|
const value2 = a0 == null;
|
|
reducibleJoin4: while (true) {
|
|
if (value2) {
|
|
r2 = value2;
|
|
break reducibleJoin4;
|
|
}
|
|
value3 = 'undefined';
|
|
reducibleJoin3: while (true) {
|
|
if (a0 === undefined) {
|
|
r9 = value3;
|
|
break reducibleJoin3;
|
|
}
|
|
value4 = environment;
|
|
value5 = env0_2(a0);
|
|
r9 = value5;
|
|
break reducibleJoin3;
|
|
}
|
|
value6 = r9 === 'object';
|
|
r2 = value6;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r2) {
|
|
break reducibleJoin6;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
isArray2 = Reflect.apply(isArray, Array, [a0]);
|
|
r2 = isArray2;
|
|
break reducibleJoin6;
|
|
}
|
|
Reflect.apply(assert, require, [r2, 'Invalid source object: must be null, undefined, an object, or an array']);
|
|
reducibleJoin8: while (true) {
|
|
if (a2 === undefined) {
|
|
r2 = 'undefined';
|
|
break reducibleJoin8;
|
|
}
|
|
value8 = environment;
|
|
value9 = env0_2(a2);
|
|
r2 = value9;
|
|
break reducibleJoin8;
|
|
}
|
|
const value10 = r2 === 'object';
|
|
reducibleJoin10: while (true) {
|
|
if (value10) {
|
|
value11 = a2 !== null;
|
|
r11 = value11;
|
|
break reducibleJoin10;
|
|
}
|
|
r11 = value10;
|
|
break reducibleJoin10;
|
|
}
|
|
reducibleJoin12: while (true) {
|
|
if (r11) {
|
|
separator = a2.separator;
|
|
r11 = separator;
|
|
break reducibleJoin12;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
reducibleJoin14: while (true) {
|
|
if (r11) {
|
|
break reducibleJoin14;
|
|
}
|
|
value12 = '.';
|
|
r11 = value12;
|
|
break reducibleJoin14;
|
|
}
|
|
Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
object = [];
|
|
length = a0.length;
|
|
value19 = 0;
|
|
if (value19 < length) {
|
|
r2 = value19;
|
|
reducibleLoop23: while (true) {
|
|
push = object.push;
|
|
transform = require.transform;
|
|
Reflect.apply(push, object, [Reflect.apply(transform, require, [a0[r2], a1, a2])]);
|
|
value20 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a0.length;
|
|
if (value20 < length) {
|
|
r2 = value20;
|
|
continue reducibleLoop23;
|
|
}
|
|
break reducibleLoop23;
|
|
}
|
|
}
|
|
} else {
|
|
object = {};
|
|
var Object = global.Object;
|
|
var value13 = Object.keys(a1);
|
|
length = value13.length;
|
|
var value14 = 0;
|
|
if (value14 < length) {
|
|
r9 = value14;
|
|
reducibleLoop16: while (true) {
|
|
property = value13[r9];
|
|
split = property.split;
|
|
value15 = Reflect.apply(split, property, [r11]);
|
|
property = a1[property];
|
|
assert = require.assert;
|
|
Reflect.apply(assert, require, [typeof property === 'string',
|
|
'All mappings must be "." delineated strings']);
|
|
length = value15.length;
|
|
if (length > 1) {
|
|
r14 = object;
|
|
reducibleLoop17: while (true) {
|
|
shift = value15.shift;
|
|
value16 = Reflect.apply(shift, value15, []);
|
|
reducibleJoin19: while (true) {
|
|
if (r14[value16]) {
|
|
break reducibleJoin19;
|
|
}
|
|
r14[value16] = {};
|
|
break reducibleJoin19;
|
|
}
|
|
property2 = r14[value16];
|
|
length = value15.length;
|
|
if (length > 1) {
|
|
r14 = property2;
|
|
continue reducibleLoop17;
|
|
}
|
|
r13 = property2;
|
|
break reducibleLoop17;
|
|
}
|
|
} else {
|
|
r13 = object;
|
|
}
|
|
shift = value15.shift;
|
|
value17 = Reflect.apply(shift, value15, []);
|
|
reach = require.reach;
|
|
r13[value17] = Reflect.apply(reach, require, [a0, property, a2]);
|
|
value18 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = value13.length;
|
|
if (value18 < length) {
|
|
r9 = value18;
|
|
continue reducibleLoop16;
|
|
}
|
|
break reducibleLoop16;
|
|
}
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function uniqueFilename(a0, a1) { // fn#64208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:16959, offset: 0x01b9f482, size: 164 bytes, params: 3, frame: 16
|
|
const value = a1;
|
|
const r2 = value ? value[0] === '.' ? value : '.' + value : '';
|
|
const value3 = env0_4.resolve(a0);
|
|
const Date = global.Date;
|
|
const items2 = [Date.now()];
|
|
items2[1] = require.pid;
|
|
const value5 = env0_3.randomBytes(8);
|
|
items2[2] = value5.toString('hex');
|
|
return env0_4.join(value3, items2.join('-') + r2);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64211(a0, a1, a2) { // fn#64211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:17364, offset: 0x01b9f5a4, size: 38 bytes, params: 4, frame: 13
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
_fun64212.call(a1, global);
|
|
function _fun64212(a0) { // fn#64212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:17381, offset: 0x01b9f5ca, size: 1574 bytes, params: 2, frame: 19
|
|
var r5;
|
|
var prototype;
|
|
var Uint8Array;
|
|
var Object;
|
|
const kMaxLength2 = kMaxLength;
|
|
const Buffer_642152 = Buffer_64215;
|
|
const assertSize_64218 = function(a0) {
|
|
if (typeof a0 !== 'number') {
|
|
throw new global.TypeError('"size" argument must be a number');
|
|
}
|
|
if (a0 < 0) {
|
|
throw new global.RangeError('"size" argument must not be negative');
|
|
}
|
|
};
|
|
const byteLength_642222 = byteLength_64222;
|
|
const swap_64224 = function(a0, a1, a2) {
|
|
var property = a0[a1];
|
|
a0[a1] = a0[a2];
|
|
a0[a2] = property;
|
|
};
|
|
const latin1Write_64231 = function(a0, a1, a2, a3) {
|
|
return asciiWrite_64230(a0, a1, a2, a3);
|
|
};
|
|
const asciiSlice_64236 = function(a0, a1, a2) {
|
|
var r1;
|
|
var r5;
|
|
var r0;
|
|
var value4;
|
|
var value = a1;
|
|
var property = global.Math;
|
|
var value2 = property.min(a0.length, a2);
|
|
var value3 = '';
|
|
if (value < value2) {
|
|
r1 = value3;
|
|
for (r5 = value; true; r5 = value4) {
|
|
property = global.String;
|
|
value = r1 + property.fromCharCode(127 & a0[r5]);
|
|
value4 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (!(value4 < value2)) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
r1 = value;
|
|
}
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
};
|
|
const latin1Slice_64237 = function(a0, a1, a2) {
|
|
var r1;
|
|
var r4;
|
|
var r0;
|
|
var value4;
|
|
var value = a1;
|
|
var property = global.Math;
|
|
var value2 = property.min(a0.length, a2);
|
|
var value3 = '';
|
|
if (value < value2) {
|
|
r1 = value3;
|
|
for (r4 = value; true; r4 = value4) {
|
|
property = global.String;
|
|
value = r1 + property.fromCharCode(a0[r4]);
|
|
value4 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (!(value4 < value2)) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
r1 = value;
|
|
}
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
};
|
|
const hexSlice_64238 = function(a0, a1, a2) {
|
|
var r1;
|
|
var r5;
|
|
var r0;
|
|
var value4;
|
|
var value6;
|
|
var value = a1;
|
|
var value2 = a2;
|
|
var length = a0.length;
|
|
reducibleJoin2: while (true) {
|
|
if (value) {
|
|
value4 = value < 0;
|
|
r1 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
r1 = !value;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r1) {
|
|
value = 0;
|
|
r5 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = !value2;
|
|
reducibleJoin6: while (true) {
|
|
if (value2) {
|
|
value = value2 < 0;
|
|
r1 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (r1) {
|
|
break reducibleJoin8;
|
|
}
|
|
value = value2 > length;
|
|
r1 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
var r4 = r1 ? length : value2;
|
|
value = '';
|
|
if (r5 < r4) {
|
|
r1 = value;
|
|
reducibleLoop10: while (true) {
|
|
value = r1 + toHex_64247(a0[r5]);
|
|
value6 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value6 < r4) {
|
|
r1 = value;
|
|
r5 = value6;
|
|
continue reducibleLoop10;
|
|
}
|
|
r0 = value;
|
|
break reducibleLoop10;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const utf16leSlice_64239 = function(a0, a1, a2) {
|
|
var r2;
|
|
var r7;
|
|
var r0;
|
|
var String;
|
|
var property;
|
|
var value4;
|
|
var value5;
|
|
var value = a0.slice(a1, a2);
|
|
var value2 = 0;
|
|
var value3 = '';
|
|
if (value2 < value.length) {
|
|
r2 = value3;
|
|
for (r7 = value2; true; r7 = value5) {
|
|
String = global.String;
|
|
property = value[r7];
|
|
value4 = r2 + String.fromCharCode(property + 256 * value[r7 + 1]);
|
|
value5 = r7 + 2;
|
|
if (!(value5 < value.length)) {
|
|
r0 = value4;
|
|
break;
|
|
}
|
|
r2 = value4;
|
|
}
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
};
|
|
const checkOffset_64240 = function(a0, a1, a2) {
|
|
if (a0 % 1 !== 0) {
|
|
throw new global.RangeError('offset is not uint');
|
|
}
|
|
if (a0 < 0) {
|
|
throw new global.RangeError('offset is not uint');
|
|
}
|
|
if (a0 + a1 > a2) {
|
|
throw new global.RangeError('Trying to access beyond buffer length');
|
|
}
|
|
};
|
|
const checkIEEE754_64244 = function(a0, a1, a2, a3, a4, a5) {
|
|
if (a2 + a3 > a0.length) {
|
|
throw new global.RangeError('Index out of range');
|
|
}
|
|
if (a2 < 0) {
|
|
throw new global.RangeError('Index out of range');
|
|
}
|
|
};
|
|
const toHex_64247 = function(a0) {
|
|
var r0;
|
|
var value;
|
|
if (a0 < 16) {
|
|
value = a0.toString(16);
|
|
value = '0' + value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = a0.toString(16);
|
|
}
|
|
return r0;
|
|
};
|
|
const blitBuffer_64251 = function(a0, a1, a2, a3) {
|
|
var r2;
|
|
var r0;
|
|
var value3;
|
|
var value = 0;
|
|
if (value < a3) {
|
|
if (value + a2 >= a1.length) {
|
|
r0 = value;
|
|
} else if (value >= a0.length) {
|
|
r0 = value;
|
|
} else {
|
|
r2 = value;
|
|
while (true) {
|
|
value = r2 + a2;
|
|
a1[value] = a0[r2];
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value < a3)) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
value3 = value + a2;
|
|
if (value3 >= a1.length) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
if (value >= a0.length) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
r2 = value;
|
|
continue;
|
|
}
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const env0_0 = importDefault(4);
|
|
const env0_1 = importDefault(5);
|
|
const env0_2 = importDefault(6);
|
|
require.Buffer = Buffer_642152;
|
|
require.SlowBuffer = SlowBuffer_64252;
|
|
require.INSPECT_MAX_BYTES = 50;
|
|
let TYPED_ARRAY_SUPPORT = a0.TYPED_ARRAY_SUPPORT;
|
|
Buffer_642152.TYPED_ARRAY_SUPPORT = TYPED_ARRAY_SUPPORT !== undefined ? a0.TYPED_ARRAY_SUPPORT : typedArraySupport_64253();
|
|
require.kMaxLength = kMaxLength2();
|
|
Buffer_642152.poolSize = 8192;
|
|
Buffer_642152._augment = function(a0) {
|
|
a0.__proto__ = Buffer_64215.prototype;
|
|
return a0;
|
|
};
|
|
Buffer_642152.from = function(a0, a1, a2) {
|
|
return from_64216(null, a0, a1, a2);
|
|
};
|
|
TYPED_ARRAY_SUPPORT = Buffer_642152.TYPED_ARRAY_SUPPORT;
|
|
if (TYPED_ARRAY_SUPPORT) {
|
|
prototype = Buffer_642152.prototype;
|
|
Uint8Array = global.Uint8Array;
|
|
prototype.__proto__ = Uint8Array.prototype;
|
|
Uint8Array = global.Uint8Array;
|
|
Buffer_642152.__proto__ = Uint8Array;
|
|
r5 = typeof global.Symbol !== 'undefined' && global.Symbol.species;
|
|
r5 = r5 && Buffer_642152[global.Symbol.species] === Buffer_642152;
|
|
if (r5) {
|
|
Object = global.Object;
|
|
Object.defineProperty(Buffer_642152, global.Symbol.species, {'value': null, 'configurable': true});
|
|
}
|
|
}
|
|
Buffer_642152.alloc = alloc_64257;
|
|
Buffer_642152.allocUnsafe = function(a0) {
|
|
return allocUnsafe_64219(null, a0);
|
|
};
|
|
Buffer_642152.allocUnsafeSlow = function(a0) {
|
|
return allocUnsafe_64219(null, a0);
|
|
};
|
|
Buffer_642152.isBuffer = function(a0) {
|
|
return !(a0 == null || !a0._isBuffer);
|
|
};
|
|
Buffer_642152.compare = compare_64261;
|
|
Buffer_642152.isEncoding = isEncoding_64262;
|
|
Buffer_642152.concat = concat_64263;
|
|
Buffer_642152.byteLength = byteLength_642222;
|
|
Buffer_642152.prototype._isBuffer = true;
|
|
Buffer_642152.prototype.swap16 = function() {
|
|
var r4;
|
|
var property = this.length;
|
|
var value = 0;
|
|
if (property % 2 !== value) {
|
|
throw new global.RangeError('Buffer size must be a multiple of 16-bits');
|
|
}
|
|
if (value < property) {
|
|
r4 = value;
|
|
reducibleLoop2: while (true) {
|
|
swap_64224(this, r4, r4 + 1);
|
|
value = r4 + 2;
|
|
if (value < property) {
|
|
r4 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
return this;
|
|
};
|
|
Buffer_642152.prototype.swap32 = function() {
|
|
var r6;
|
|
var swap_64224Binding;
|
|
var property = this.length;
|
|
var value = 0;
|
|
if (property % 4 !== value) {
|
|
throw new global.RangeError('Buffer size must be a multiple of 32-bits');
|
|
}
|
|
if (value < property) {
|
|
r6 = value;
|
|
reducibleLoop2: while (true) {
|
|
swap_64224Binding = swap_64224;
|
|
swap_64224Binding(this, r6, r6 + 3);
|
|
value = r6 + 1;
|
|
swap_64224Binding(this, value, r6 + 2);
|
|
value = r6 + 4;
|
|
if (value < property) {
|
|
r6 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
return this;
|
|
};
|
|
Buffer_642152.prototype.swap64 = swap64_64266;
|
|
Buffer_642152.prototype.toString = toString_64267;
|
|
Buffer_642152.prototype.equals = equals_64268;
|
|
Buffer_642152.prototype.inspect = inspect_64269;
|
|
Buffer_642152.prototype.compare = compare_64270;
|
|
Buffer_642152.prototype.includes = function(a0, a1, a2) {
|
|
return this.indexOf(a0, a1, a2) !== -1;
|
|
};
|
|
Buffer_642152.prototype.indexOf = function(a0, a1, a2) {
|
|
return bidirectionalIndexOf_64225(this, a0, a1, a2, true);
|
|
};
|
|
Buffer_642152.prototype.lastIndexOf = function(a0, a1, a2) {
|
|
return bidirectionalIndexOf_64225(this, a0, a1, a2, false);
|
|
};
|
|
Buffer_642152.prototype.write = write_64274;
|
|
Buffer_642152.prototype.toJSON = function() {
|
|
var value = this;
|
|
var slice = global.Array.prototype.slice;
|
|
return {type: 'Buffer', data: slice.call(value._arr || value, 0)};
|
|
};
|
|
Buffer_642152.prototype.slice = slice_64276;
|
|
Buffer_642152.prototype.readUIntLE = readUIntLE_64277;
|
|
Buffer_642152.prototype.readUIntBE = readUIntBE_64278;
|
|
Buffer_642152.prototype.readUInt8 = readUInt8_64279;
|
|
Buffer_642152.prototype.readUInt16LE = readUInt16LE_64280;
|
|
Buffer_642152.prototype.readUInt16BE = readUInt16BE_64281;
|
|
Buffer_642152.prototype.readUInt32LE = readUInt32LE_64282;
|
|
Buffer_642152.prototype.readUInt32BE = readUInt32BE_64283;
|
|
Buffer_642152.prototype.readIntLE = readIntLE_64284;
|
|
Buffer_642152.prototype.readIntBE = readIntBE_64285;
|
|
Buffer_642152.prototype.readInt8 = readInt8_64286;
|
|
Buffer_642152.prototype.readInt16LE = readInt16LE_64287;
|
|
Buffer_642152.prototype.readInt16BE = readInt16BE_64288;
|
|
Buffer_642152.prototype.readInt32LE = readInt32LE_64289;
|
|
Buffer_642152.prototype.readInt32BE = readInt32BE_64290;
|
|
Buffer_642152.prototype.readFloatLE = readFloatLE_64291;
|
|
Buffer_642152.prototype.readFloatBE = readFloatBE_64292;
|
|
Buffer_642152.prototype.readDoubleLE = readDoubleLE_64293;
|
|
Buffer_642152.prototype.readDoubleBE = readDoubleBE_64294;
|
|
Buffer_642152.prototype.writeUIntLE = writeUIntLE_64295;
|
|
Buffer_642152.prototype.writeUIntBE = writeUIntBE_64296;
|
|
Buffer_642152.prototype.writeUInt8 = writeUInt8_64297;
|
|
Buffer_642152.prototype.writeUInt16LE = writeUInt16LE_64298;
|
|
Buffer_642152.prototype.writeUInt16BE = writeUInt16BE_64299;
|
|
Buffer_642152.prototype.writeUInt32LE = writeUInt32LE_64300;
|
|
Buffer_642152.prototype.writeUInt32BE = writeUInt32BE_64301;
|
|
Buffer_642152.prototype.writeIntLE = writeIntLE_64302;
|
|
Buffer_642152.prototype.writeIntBE = writeIntBE_64303;
|
|
Buffer_642152.prototype.writeInt8 = writeInt8_64304;
|
|
Buffer_642152.prototype.writeInt16LE = writeInt16LE_64305;
|
|
Buffer_642152.prototype.writeInt16BE = writeInt16BE_64306;
|
|
Buffer_642152.prototype.writeInt32LE = writeInt32LE_64307;
|
|
Buffer_642152.prototype.writeInt32BE = writeInt32BE_64308;
|
|
Buffer_642152.prototype.writeFloatLE = function(a0, a1, a2) {
|
|
return writeFloat_64245(this, a0, a1, true, a2);
|
|
};
|
|
Buffer_642152.prototype.writeFloatBE = function(a0, a1, a2) {
|
|
return writeFloat_64245(this, a0, a1, false, a2);
|
|
};
|
|
Buffer_642152.prototype.writeDoubleLE = function(a0, a1, a2) {
|
|
return writeDouble_64246(this, a0, a1, true, a2);
|
|
};
|
|
Buffer_642152.prototype.writeDoubleBE = function(a0, a1, a2) {
|
|
return writeDouble_64246(this, a0, a1, false, a2);
|
|
};
|
|
Buffer_642152.prototype.copy = copy_64313;
|
|
Buffer_642152.prototype.fill = fill_64314;
|
|
const env0_4 = RegExp('[^+\\/0-9A-Za-z-_]', 'g');
|
|
function kMaxLength() { // fn#64213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:39, offset: 0x01b9fbf0, size: 30 bytes, params: 1, frame: 2
|
|
const TYPED_ARRAY_SUPPORT = Buffer_64215.TYPED_ARRAY_SUPPORT;
|
|
return TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
}
|
|
|
|
function createBuffer_64214(a0, a1) { // fn#64214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:117, offset: 0x01b9fc0e, size: 164 bytes, params: 3, frame: 13
|
|
var r0;
|
|
var prototype;
|
|
var Uint8Array;
|
|
var uint8Array;
|
|
let value = a0;
|
|
if (kMaxLength() < a1) {
|
|
throw new global.RangeError('Invalid typed array length');
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
Uint8Array = global.Uint8Array;
|
|
prototype = Uint8Array.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Uint8Array}});
|
|
uint8Array = new Uint8Array(a1);
|
|
value = uint8Array instanceof Object ? uint8Array : value;
|
|
prototype = Buffer_64215.prototype;
|
|
value.__proto__ = prototype;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value !== null ? value : new Buffer_64215(a1);
|
|
r0.length = a1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function Buffer_64215(a0, a1, a2) { // fn#64215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:339, offset: 0x01b9fcb2, size: 170 bytes, params: 4, frame: 18
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
if (typeof a0 === 'number') {
|
|
if (typeof a1 === 'string') {
|
|
throw new global.Error('If encoding is specified then the first argument must be a string');
|
|
}
|
|
return allocUnsafe_64219(this, a0);
|
|
}
|
|
return from_64216(this, a0, a1, a2);
|
|
}
|
|
if (this instanceof Buffer_64215) {
|
|
if (typeof a0 === 'number') {
|
|
if (typeof a1 === 'string') {
|
|
throw new global.Error('If encoding is specified then the first argument must be a string');
|
|
}
|
|
return allocUnsafe_64219(this, a0);
|
|
}
|
|
return from_64216(this, a0, a1, a2);
|
|
}
|
|
const value = Object.create(Buffer_64215.prototype, {constructor: {value: Buffer_64215}});
|
|
const buffer_64215 = new Buffer_64215(a0, a1, a2);
|
|
return buffer_64215 instanceof Object ? buffer_64215 : value;
|
|
}
|
|
|
|
function from_64216(a0, a1, a2, a3) { // fn#64216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:625, offset: 0x01b9fd5c, size: 561 bytes, params: 5, frame: 21
|
|
var environment;
|
|
var r2;
|
|
var r5;
|
|
var r3;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var byteLength;
|
|
let value = a2;
|
|
const value2 = a3;
|
|
const value3 = typeof a1;
|
|
if (value3 === 'number') {
|
|
throw new global.TypeError('"value" argument must not be a number');
|
|
}
|
|
let ArrayBuffer = global.ArrayBuffer;
|
|
if (typeof ArrayBuffer === 'undefined') {
|
|
if (value3 === 'string') {
|
|
r2 = typeof value === 'string' && value !== '';
|
|
r5 = r2 ? value : 'utf8';
|
|
if (Buffer_64215.isEncoding(r5)) {
|
|
value6 = byteLength_64222(a1, r5) | 0;
|
|
value = createBuffer_64214(a0, value6);
|
|
value7 = value.write(a1, r5);
|
|
if (value7 === value6) {
|
|
r2 = value;
|
|
} else {
|
|
value = value.slice(0, value7);
|
|
r2 = value;
|
|
}
|
|
return r2;
|
|
}
|
|
throw new global.TypeError('"encoding" must be a valid string encoding');
|
|
}
|
|
value = fromObject(a0, a1);
|
|
return value;
|
|
}
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
if (a1 instanceof ArrayBuffer) {
|
|
a1.byteLength;
|
|
value8 = 0;
|
|
if (value < value8) {
|
|
throw new global.RangeError("'offset' is out of bounds");
|
|
}
|
|
byteLength = a1.byteLength;
|
|
if (byteLength < value) {
|
|
throw new global.RangeError("'offset' is out of bounds");
|
|
}
|
|
byteLength = a1.byteLength;
|
|
r2 = value2 || value8;
|
|
if (byteLength < value + r2) {
|
|
throw new global.RangeError("'length' is out of bounds");
|
|
}
|
|
r3 = value !== undefined ? value2 === undefined ? new global.Uint8Array(a1, value) : new global.Uint8Array(a1,
|
|
value,
|
|
value2) : value2 === undefined ? new global.Uint8Array(a1) : value2 === undefined ? new global.Uint8Array(a1,
|
|
|
|
value) : new global.Uint8Array(a1, value, value2);
|
|
value = environment;
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
r3.__proto__ = Buffer_64215.prototype;
|
|
r2 = r3;
|
|
} else {
|
|
r2 = fromArrayLike_64220(a0, r3);
|
|
}
|
|
return r2;
|
|
}
|
|
if (value3 === 'string') {
|
|
r2 = typeof value === 'string' && value !== '';
|
|
r5 = r2 ? value : 'utf8';
|
|
if (Buffer_64215.isEncoding(r5)) {
|
|
value6 = byteLength_64222(a1, r5) | 0;
|
|
value = createBuffer_64214(a0, value6);
|
|
value7 = value.write(a1, r5);
|
|
if (value7 === value6) {
|
|
r2 = value;
|
|
} else {
|
|
value = value.slice(0, value7);
|
|
r2 = value;
|
|
}
|
|
return r2;
|
|
}
|
|
throw new global.TypeError('"encoding" must be a valid string encoding');
|
|
}
|
|
return fromObject(a0, a1);
|
|
function fromObject(a0, a1) { // fn#64217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:1466, owner: from_64216.fromObject, offset: 0x01b9ff8d, size: 287 bytes, params: 3, frame: 18
|
|
var ArrayBuffer;
|
|
var buffer;
|
|
var length;
|
|
var checked_64221Binding;
|
|
var value2;
|
|
let value = environment.__proto__;
|
|
if (Buffer_64215.isBuffer(a1)) {
|
|
checked_64221Binding = checked_64221;
|
|
length = a1.length;
|
|
value2 = checked_64221Binding(length) | 0;
|
|
value = createBuffer_64214(a0, value2);
|
|
length = value.length;
|
|
if (length !== 0) {
|
|
a1.copy(value, 0, 0, value2);
|
|
}
|
|
return value;
|
|
}
|
|
if (a1) {
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
if (typeof ArrayBuffer === 'undefined') {
|
|
if ('length' in a1) {
|
|
return typeof a1.length !== 'number' || a1.length != a1.length ? createBuffer_64214(a0,
|
|
0) : fromArrayLike_64220(a0,
|
|
a1);
|
|
}
|
|
if (a1.type !== 'Buffer') {
|
|
throw new global.TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');
|
|
}
|
|
if (env1_2(a1.data)) {
|
|
return fromArrayLike_64220(a0, a1.data);
|
|
}
|
|
throw new global.TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');
|
|
}
|
|
buffer = a1.buffer;
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
if (buffer instanceof ArrayBuffer) {
|
|
return typeof a1.length !== 'number' || a1.length != a1.length ? createBuffer_64214(a0,
|
|
0) : fromArrayLike_64220(a0,
|
|
a1);
|
|
}
|
|
if ('length' in a1) {
|
|
return typeof a1.length !== 'number' || a1.length != a1.length ? createBuffer_64214(a0,
|
|
0) : fromArrayLike_64220(a0,
|
|
a1);
|
|
}
|
|
if (a1.type !== 'Buffer') {
|
|
throw new global.TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');
|
|
}
|
|
if (env1_2(a1.data)) {
|
|
return fromArrayLike_64220(a0, a1.data);
|
|
}
|
|
throw new global.TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');
|
|
}
|
|
|
|
}
|
|
|
|
function allocUnsafe_64219(a0, a1) { // fn#64219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:2142, offset: 0x01ba010c, size: 88 bytes, params: 3, frame: 16
|
|
var r4;
|
|
var r1;
|
|
var value3;
|
|
let value = environment;
|
|
assertSize_64218(a1);
|
|
const createBuffer_64214Binding = createBuffer_64214;
|
|
const value2 = 0;
|
|
reducibleJoin2: while (true) {
|
|
if (a1 < value2) {
|
|
r4 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = checked_64221(a1) | 0;
|
|
r4 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
const buffer_64214 = createBuffer_64214Binding(a0, r4);
|
|
const TYPED_ARRAY_SUPPORT = Buffer_64215.TYPED_ARRAY_SUPPORT;
|
|
reducibleJoin5: while (true) {
|
|
if (TYPED_ARRAY_SUPPORT) {
|
|
break reducibleJoin5;
|
|
}
|
|
if (!(value2 < a1)) {
|
|
break reducibleJoin5;
|
|
}
|
|
r1 = value2;
|
|
reducibleLoop4: while (true) {
|
|
buffer_64214[r1] = value2;
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value < a1) {
|
|
r1 = value;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
return buffer_64214;
|
|
}
|
|
|
|
function fromArrayLike_64220(a0, a1) { // fn#64220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:2286, offset: 0x01ba0164, size: 93 bytes, params: 3, frame: 16
|
|
var r1;
|
|
var r4;
|
|
var value2;
|
|
var checked_64221Binding;
|
|
var value3;
|
|
let length = a1.length;
|
|
let value = 0;
|
|
reducibleJoin2: while (true) {
|
|
if (length < value) {
|
|
r1 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
value2 = environment;
|
|
checked_64221Binding = checked_64221;
|
|
length = a1.length;
|
|
value3 = checked_64221Binding(length) | 0;
|
|
r1 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
const buffer_64214 = createBuffer_64214(a0, r1);
|
|
if (value < r1) {
|
|
r4 = value;
|
|
reducibleLoop3: while (true) {
|
|
buffer_64214[r4] = 255 & a1[r4];
|
|
value = r4 + 1;
|
|
if (value < r1) {
|
|
r4 = value;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
return buffer_64214;
|
|
}
|
|
|
|
function checked_64221(a0) { // fn#64221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:2417, offset: 0x01ba01c1, size: 96 bytes, params: 2, frame: 12
|
|
var RangeError;
|
|
var value2;
|
|
var rangeError;
|
|
var value;
|
|
if (a0 >= kMaxLength()) {
|
|
RangeError = global.RangeError;
|
|
value = kMaxLength();
|
|
value = value.toString(16);
|
|
value = 'Attempt to allocate Buffer larger than maximum size: 0x' + value;
|
|
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
|
|
value += ' bytes';
|
|
rangeError = new RangeError();
|
|
value = rangeError instanceof Object ? rangeError : value2;
|
|
throw value;
|
|
}
|
|
return a0 | 0;
|
|
}
|
|
|
|
function byteLength_64222(a0, a1) { // fn#64222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:2582, offset: 0x01ba0221, size: 366 bytes, params: 3, frame: 30
|
|
var r5;
|
|
var isView;
|
|
var toLowerCase;
|
|
var value4;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
if (Buffer_64215.isBuffer(value)) {
|
|
return value.length;
|
|
}
|
|
let ArrayBuffer = global.ArrayBuffer;
|
|
if (typeof ArrayBuffer !== 'undefined') {
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
isView = ArrayBuffer.isView;
|
|
reducibleJoin5: while (true) {
|
|
if (typeof isView === 'function') {
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
isView = ArrayBuffer.isView;
|
|
if (!Reflect.apply(isView, ArrayBuffer, [value])) {
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
reducibleJoin29: while (true) {
|
|
if (value instanceof ArrayBuffer) {
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
return value.byteLength;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (typeof value === 'string') {
|
|
r5 = value;
|
|
break reducibleJoin7;
|
|
}
|
|
value = String(value);
|
|
r5 = value;
|
|
break reducibleJoin7;
|
|
}
|
|
const length = r5.length;
|
|
value = false;
|
|
if (length === 0) {
|
|
return 0;
|
|
}
|
|
let r18 = value;
|
|
let r19 = value2;
|
|
reducibleLoop8: while (true) {
|
|
if (r19 === 'ascii') {
|
|
return length;
|
|
}
|
|
if (r19 === 'latin1') {
|
|
return length;
|
|
}
|
|
if (r19 === 'binary') {
|
|
return length;
|
|
}
|
|
if (r19 === 'utf8') {
|
|
return utf8ToBytes_64248(r5).length;
|
|
}
|
|
if (r19 === 'utf-8') {
|
|
return utf8ToBytes_64248(r5).length;
|
|
}
|
|
if (r19 === undefined) {
|
|
return utf8ToBytes_64248(r5).length;
|
|
}
|
|
if (r19 === 'ucs2') {
|
|
return 2 * length;
|
|
}
|
|
if (r19 === 'ucs-2') {
|
|
return 2 * length;
|
|
}
|
|
if (r19 === 'utf16le') {
|
|
return 2 * length;
|
|
}
|
|
if (r19 === 'utf-16le') {
|
|
return 2 * length;
|
|
}
|
|
if (r19 === 'hex') {
|
|
return length >>> 1;
|
|
}
|
|
if (r19 === 'base64') {
|
|
return base64ToBytes_64249(r5).length;
|
|
}
|
|
if (r18) {
|
|
return utf8ToBytes_64248(r5).length;
|
|
}
|
|
value = String(r19);
|
|
toLowerCase = value.toLowerCase;
|
|
value = Reflect.apply(toLowerCase, value, []);
|
|
value4 = true;
|
|
r18 = value4;
|
|
r19 = value;
|
|
continue reducibleLoop8;
|
|
}
|
|
}
|
|
|
|
function slowToString_64223(a0, a1, a2) { // fn#64223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:3189, offset: 0x01ba038f, size: 405 bytes, params: 4, frame: 19
|
|
var r6;
|
|
var toLowerCase;
|
|
var value12;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
const value3 = a2;
|
|
let r0 = value2 === undefined || value2 < 0;
|
|
const r1 = r0 ? 0 : value2;
|
|
if (r1 > this.length) {
|
|
return '';
|
|
}
|
|
const r2 = value3 === undefined || value3 > this.length ? this.length : value3;
|
|
if (r2 <= 0) {
|
|
return '';
|
|
}
|
|
const value9 = r2 >>> 0;
|
|
const value10 = r1 >>> 0;
|
|
if (value9 <= value10) {
|
|
return '';
|
|
}
|
|
const value11 = false;
|
|
if (value) {
|
|
r0 = value11;
|
|
r6 = value;
|
|
} else {
|
|
value = 'utf8';
|
|
r0 = value11;
|
|
r6 = value;
|
|
}
|
|
loopExit13: while (true) {
|
|
if (r6 === 'hex') {
|
|
value = environment;
|
|
return hexSlice_64238(this, value10, value9);
|
|
}
|
|
if (r6 === 'utf8') {
|
|
value = environment;
|
|
return utf8Slice_64235(this, value10, value9);
|
|
}
|
|
if (r6 === 'utf-8') {
|
|
value = environment;
|
|
return utf8Slice_64235(this, value10, value9);
|
|
}
|
|
if (r6 === 'ascii') {
|
|
value = environment;
|
|
return asciiSlice_64236(this, value10, value9);
|
|
}
|
|
if (r6 === 'latin1') {
|
|
value = environment;
|
|
return latin1Slice_64237(this, value10, value9);
|
|
}
|
|
if (r6 === 'binary') {
|
|
value = environment;
|
|
return latin1Slice_64237(this, value10, value9);
|
|
}
|
|
if (r6 === 'base64') {
|
|
value = environment;
|
|
return base64Slice_64234(this, value10, value9);
|
|
}
|
|
if (r6 === 'ucs2') {
|
|
value = environment;
|
|
return utf16leSlice_64239(this, value10, value9);
|
|
}
|
|
if (r6 === 'ucs-2') {
|
|
value = environment;
|
|
return utf16leSlice_64239(this, value10, value9);
|
|
}
|
|
if (r6 === 'utf16le') {
|
|
value = environment;
|
|
return utf16leSlice_64239(this, value10, value9);
|
|
}
|
|
if (r6 === 'utf-16le') {
|
|
value = environment;
|
|
return utf16leSlice_64239(this, value10, value9);
|
|
}
|
|
if (r0) {
|
|
break loopExit13;
|
|
}
|
|
value = String(r6);
|
|
toLowerCase = value.toLowerCase;
|
|
value = Reflect.apply(toLowerCase, value, []);
|
|
value12 = true;
|
|
r0 = value12;
|
|
r6 = value;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
value = 'Unknown encoding: ' + r6;
|
|
const value13 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
const typeError = new TypeError(value);
|
|
throw typeError instanceof Object ? typeError : value13;
|
|
}
|
|
|
|
function bidirectionalIndexOf_64225(a0, a1, a2, a3, a4) { // fn#64225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:3841, offset: 0x01ba0524, size: 482 bytes, params: 6, frame: 25
|
|
var r0;
|
|
var r5;
|
|
var value5;
|
|
var value6;
|
|
var value12;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const value3 = a3;
|
|
const length = a0.length;
|
|
const value4 = 0;
|
|
if (value4 === length) {
|
|
return -1;
|
|
}
|
|
if (typeof value2 === 'string') {
|
|
r0 = value4;
|
|
r5 = value2;
|
|
} else {
|
|
value5 = 2147483647;
|
|
if (value2 > value5) {
|
|
r0 = value5;
|
|
r5 = value3;
|
|
} else {
|
|
value6 = -2147483648;
|
|
if (value2 < value6) {
|
|
r0 = value6;
|
|
r5 = value3;
|
|
} else {
|
|
r0 = value2;
|
|
r5 = value3;
|
|
}
|
|
}
|
|
}
|
|
const value7 = Number(r0);
|
|
let r2 = global.isNaN(value7) ? a4 ? value4 : a0.length - 1 : value7;
|
|
let r3 = r2 < value4 ? a0.length + r2 : r2;
|
|
if (r3 >= a0.length) {
|
|
if (a4) {
|
|
return -1;
|
|
}
|
|
r3 = a0.length - 1;
|
|
if (typeof value !== 'string') {
|
|
r2 = value;
|
|
} else {
|
|
value = Buffer_64215.from(value, r5);
|
|
r2 = value;
|
|
}
|
|
if (Buffer_64215.isBuffer(r2)) {
|
|
return value4 === r2.length ? -1 : arrayIndexOf_64226(a0, r2, r3, r5, a4);
|
|
}
|
|
if (typeof r2 === 'number') {
|
|
value12 = r2 & 255;
|
|
return Buffer_64215.TYPED_ARRAY_SUPPORT && typeof global.Uint8Array.prototype.indexOf === 'function' ? a4 ? global.Uint8Array.prototype.indexOf.call(a0,
|
|
|
|
|
|
value12, r3) : global.Uint8Array.prototype.lastIndexOf.call(a0, value12, r3) : arrayIndexOf_64226(a0,
|
|
[value12],
|
|
r3, r5, a4);
|
|
}
|
|
throw new global.TypeError('val must be string, number or Buffer');
|
|
}
|
|
if (r3 < value4) {
|
|
if (a4) {
|
|
r3 = value4;
|
|
if (typeof value !== 'string') {
|
|
r2 = value;
|
|
} else {
|
|
value = Buffer_64215.from(value, r5);
|
|
r2 = value;
|
|
}
|
|
if (Buffer_64215.isBuffer(r2)) {
|
|
return value4 === r2.length ? -1 : arrayIndexOf_64226(a0, r2, r3, r5, a4);
|
|
}
|
|
if (typeof r2 === 'number') {
|
|
value12 = r2 & 255;
|
|
return Buffer_64215.TYPED_ARRAY_SUPPORT && typeof global.Uint8Array.prototype.indexOf === 'function' ? a4 ? global.Uint8Array.prototype.indexOf.call(a0,
|
|
|
|
|
|
|
|
value12, r3) : global.Uint8Array.prototype.lastIndexOf.call(a0, value12,
|
|
r3) : arrayIndexOf_64226(a0,
|
|
[value12],
|
|
r3, r5, a4);
|
|
}
|
|
throw new global.TypeError('val must be string, number or Buffer');
|
|
}
|
|
return -1;
|
|
}
|
|
if (typeof value !== 'string') {
|
|
r2 = value;
|
|
} else {
|
|
value = Buffer_64215.from(value, r5);
|
|
r2 = value;
|
|
}
|
|
if (Buffer_64215.isBuffer(r2)) {
|
|
return value4 === r2.length ? -1 : arrayIndexOf_64226(a0, r2, r3, r5, a4);
|
|
}
|
|
if (typeof r2 === 'number') {
|
|
value12 = r2 & 255;
|
|
return Buffer_64215.TYPED_ARRAY_SUPPORT && typeof global.Uint8Array.prototype.indexOf === 'function' ? a4 ? global.Uint8Array.prototype.indexOf.call(a0,
|
|
|
|
value12, r3) : global.Uint8Array.prototype.lastIndexOf.call(a0, value12, r3) : arrayIndexOf_64226(a0,
|
|
[value12],
|
|
r3, r5, a4);
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('val must be string, number or Buffer');
|
|
}
|
|
|
|
function arrayIndexOf_64226(a0, a1, a2, a3, a4) { // fn#64226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:4518, offset: 0x01ba0706, size: 395 bytes, params: 6, frame: 28
|
|
var r1;
|
|
var r5;
|
|
var r6;
|
|
var r7;
|
|
var r13;
|
|
var r16;
|
|
var r14;
|
|
var r2;
|
|
var value4;
|
|
var length3;
|
|
var value5;
|
|
var length4;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
let value = a2;
|
|
const arrayIndexOf_64226Read2 = arrayIndexOf_64226Read;
|
|
const value2 = 1;
|
|
var env0_0;
|
|
const length = a0.length;
|
|
const length2 = a1.length;
|
|
if (a3 === undefined) {
|
|
r1 = value2;
|
|
r5 = length2;
|
|
r6 = length;
|
|
r7 = value;
|
|
} else {
|
|
value4 = global.String(a3).toLowerCase();
|
|
reducibleJoin8: while (true) {
|
|
reducibleJoin30: while (true) {
|
|
if (value4 === 'ucs2') {
|
|
length3 = a0.length;
|
|
value5 = 2;
|
|
if (length3 < value5) {
|
|
break reducibleJoin30;
|
|
}
|
|
if (a1.length < value5) {
|
|
break reducibleJoin30;
|
|
}
|
|
env0_0 = value5;
|
|
value6 = length / value5;
|
|
value7 = length2 / value5;
|
|
value /= value5;
|
|
r1 = value5;
|
|
r5 = value7;
|
|
r6 = value6;
|
|
r7 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
if (value4 !== 'ucs-2') {
|
|
reducibleJoin5: while (true) {
|
|
if (value4 === 'utf16le') {
|
|
break reducibleJoin5;
|
|
}
|
|
if (value4 !== 'utf-16le') {
|
|
r1 = value2;
|
|
r5 = length2;
|
|
r6 = length;
|
|
r7 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
length3 = a0.length;
|
|
value5 = 2;
|
|
if (length3 < value5) {
|
|
break reducibleJoin30;
|
|
}
|
|
length4 = a1.length;
|
|
if (length4 < value5) {
|
|
break reducibleJoin30;
|
|
}
|
|
env0_0 = value5;
|
|
value6 = length / value5;
|
|
value7 = length2 / value5;
|
|
value /= value5;
|
|
r1 = value5;
|
|
r5 = value7;
|
|
r6 = value6;
|
|
r7 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
return -1;
|
|
}
|
|
}
|
|
if (a4) {
|
|
value = -1;
|
|
reducibleJoin28: while (true) {
|
|
if (!(r7 < r6)) {
|
|
break reducibleJoin28;
|
|
}
|
|
r2 = value;
|
|
reducibleLoop19: while (true) {
|
|
value14 = arrayIndexOf_64226Read2(a0, r7);
|
|
value15 = value === r2;
|
|
value16 = 0;
|
|
reducibleJoin21: while (true) {
|
|
if (value15) {
|
|
r13 = value16;
|
|
break reducibleJoin21;
|
|
}
|
|
value17 = r7 - r2;
|
|
r13 = value17;
|
|
break reducibleJoin21;
|
|
}
|
|
if (value14 === arrayIndexOf_64226Read2(a1, r13)) {
|
|
if (value15) {
|
|
r2 = r7;
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
if (r7 - r2 + value2 === r5) {
|
|
return r2 * r1;
|
|
}
|
|
r13 = r2;
|
|
r14 = r7;
|
|
break reducibleJoin27;
|
|
}
|
|
} else {
|
|
reducibleJoin24: while (true) {
|
|
if (value === r2) {
|
|
r14 = r7;
|
|
break reducibleJoin24;
|
|
}
|
|
value18 = r7 - (r7 - r2);
|
|
r14 = value18;
|
|
break reducibleJoin24;
|
|
}
|
|
r13 = value;
|
|
}
|
|
value19 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
|
|
if (value19 < r6) {
|
|
r2 = r13;
|
|
r7 = value19;
|
|
continue reducibleLoop19;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
}
|
|
} else {
|
|
reducibleJoin11: while (true) {
|
|
if (r7 + r5 > r6) {
|
|
value = r6 - r5;
|
|
r13 = value;
|
|
break reducibleJoin11;
|
|
}
|
|
r13 = r7;
|
|
break reducibleJoin11;
|
|
}
|
|
value = 0;
|
|
reducibleJoin28: while (true) {
|
|
if (!(r13 >= value)) {
|
|
break reducibleJoin28;
|
|
}
|
|
reducibleLoop12: while (true) {
|
|
value8 = true;
|
|
if (value < r5) {
|
|
r16 = value;
|
|
reducibleLoop13: while (true) {
|
|
value9 = arrayIndexOf_64226Read2(a0, r13 + r16);
|
|
value10 = arrayIndexOf_64226Read2(a1, r16);
|
|
value11 = false;
|
|
if (value9 !== value10) {
|
|
r14 = value11;
|
|
break reducibleLoop13;
|
|
}
|
|
value12 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
if (value12 < r5) {
|
|
r16 = value12;
|
|
continue reducibleLoop13;
|
|
}
|
|
r14 = value8;
|
|
break reducibleLoop13;
|
|
}
|
|
} else {
|
|
r14 = value8;
|
|
}
|
|
if (r14) {
|
|
return r13;
|
|
}
|
|
value13 = typeof r13 === 'bigint' ? r13 - 1n : +r13 - 1;
|
|
if (value13 >= value) {
|
|
r13 = value13;
|
|
continue reducibleLoop12;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
}
|
|
}
|
|
return -1;
|
|
function arrayIndexOf_64226Read(a0, a1) { // fn#64227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:4736, owner: arrayIndexOf_64226.read, offset: 0x00cf6861, size: 47 bytes, params: 3, frame: 13
|
|
return env0_0 === 1 ? a0[a1] : a0.readUInt16BE(a1 * env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function utf8Write_64229(a0, a1, a2, a3) { // fn#64229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:5315, offset: 0x01ba0963, size: 54 bytes, params: 5, frame: 18
|
|
return blitBuffer_64251(utf8ToBytes_64248(a1, a0.length - a2), a0, a2, a3);
|
|
}
|
|
|
|
function asciiWrite_64230(a0, a1, a2, a3) { // fn#64230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:5394, offset: 0x01ba0999, size: 88 bytes, params: 5, frame: 18
|
|
var r2;
|
|
var push;
|
|
var charCodeAt;
|
|
const blitBuffer_64251Binding = blitBuffer_64251;
|
|
const items2 = [];
|
|
let length = a1.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
for (r2 = value; true; r2 = value) {
|
|
push = items2.push;
|
|
charCodeAt = a1.charCodeAt;
|
|
Reflect.apply(push, items2, [255 & Reflect.apply(charCodeAt, a1, [r2])]);
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a1.length;
|
|
if (!(value < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return blitBuffer_64251Binding(items2, a0, a2, a3);
|
|
}
|
|
|
|
function base64Write_64232(a0, a1, a2, a3) { // fn#64232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:5603, offset: 0x01ba0a0c, size: 38 bytes, params: 5, frame: 17
|
|
return blitBuffer_64251(base64ToBytes_64249(a1), a0, a2, a3);
|
|
}
|
|
|
|
function ucs2Write_64233(a0, a1, a2, a3) { // fn#64233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:5675, offset: 0x01ba0a32, size: 141 bytes, params: 5, frame: 25
|
|
var r0;
|
|
var r7;
|
|
var value3;
|
|
var value4;
|
|
const blitBuffer_64251Binding = blitBuffer_64251;
|
|
let length = a0.length;
|
|
let value = length - a2;
|
|
const items2 = [];
|
|
length = a1.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
value -= 2;
|
|
if (!(value < value2)) {
|
|
r0 = value2;
|
|
r7 = value;
|
|
while (true) {
|
|
value = a1.charCodeAt(r0);
|
|
value3 = value >> 8;
|
|
value %= 256;
|
|
items2.push(value);
|
|
items2.push(value3);
|
|
value = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
length = a1.length;
|
|
if (!(value < length)) {
|
|
break;
|
|
}
|
|
value4 = r7 - 2;
|
|
if (value4 < value2) {
|
|
break;
|
|
}
|
|
r0 = value;
|
|
r7 = value4;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
return blitBuffer_64251Binding(items2, a0, a2, a3);
|
|
}
|
|
|
|
function base64Slice_64234(a0, a1, a2) { // fn#64234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:5885, offset: 0x01ba0abf, size: 75 bytes, params: 4, frame: 15
|
|
return a1 !== 0 ? env0_0.fromByteArray(a0.slice(a1,
|
|
a2)) : a2 === a0.length ? env0_0.fromByteArray(a0) : env0_0.fromByteArray(a0.slice(a1, a2));
|
|
}
|
|
|
|
function utf8Slice_64235(a0, a1, a2) { // fn#64235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:5989, offset: 0x01ba0b0a, size: 891 bytes, params: 4, frame: 61
|
|
var r0;
|
|
var r34;
|
|
var r37;
|
|
var r36;
|
|
var r41;
|
|
var r47;
|
|
var r42;
|
|
var r46;
|
|
var r45;
|
|
var r43;
|
|
var r40;
|
|
var r2;
|
|
var r3;
|
|
var property;
|
|
var property2;
|
|
var property3;
|
|
var property4;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var property5;
|
|
var property6;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var property7;
|
|
var value17;
|
|
var value18;
|
|
var push;
|
|
var value19;
|
|
var value20;
|
|
var String;
|
|
var fromCharCode;
|
|
var apply;
|
|
var slice;
|
|
var value21;
|
|
var value22;
|
|
let value = a1;
|
|
const Math = global.Math;
|
|
const min = Math.min;
|
|
let length = a0.length;
|
|
const value2 = Reflect.apply(min, Math, [length, a2]);
|
|
const items2 = [];
|
|
const value3 = undefined;
|
|
const value4 = 65533;
|
|
const value5 = 1;
|
|
const value6 = null;
|
|
const value7 = 2;
|
|
const value8 = 3;
|
|
const value9 = 4;
|
|
if (value < value2) {
|
|
r0 = value3;
|
|
r34 = value;
|
|
reducibleLoop1: while (true) {
|
|
property = a0[r34];
|
|
reducibleJoin6: while (true) {
|
|
if (property > 239) {
|
|
r41 = value9;
|
|
break reducibleJoin6;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
if (property > 223) {
|
|
r36 = value8;
|
|
break reducibleJoin5;
|
|
}
|
|
r37 = property > 191 ? value7 : value5;
|
|
r36 = r37;
|
|
break reducibleJoin5;
|
|
}
|
|
r41 = r36;
|
|
break reducibleJoin6;
|
|
}
|
|
reducibleJoin33: while (true) {
|
|
if (r34 + r41 <= value2) {
|
|
if (value5 === r41) {
|
|
if (property < 128) {
|
|
r36 = r0;
|
|
r43 = property;
|
|
break reducibleJoin33;
|
|
}
|
|
r36 = r0;
|
|
r43 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
if (value7 === r41) {
|
|
property7 = a0[r34 + value5];
|
|
value = (192 & property7) === 128;
|
|
reducibleJoin31: while (true) {
|
|
if (value) {
|
|
value = 31 & property;
|
|
value17 = 63 & property7;
|
|
value = value << 6 | value17;
|
|
value18 = value > 127;
|
|
r42 = value;
|
|
r45 = value18;
|
|
break reducibleJoin31;
|
|
}
|
|
r42 = r0;
|
|
r45 = value;
|
|
break reducibleJoin31;
|
|
}
|
|
if (r45) {
|
|
r36 = r42;
|
|
r43 = r42;
|
|
break reducibleJoin33;
|
|
}
|
|
r36 = r42;
|
|
r43 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
if (value8 === r41) {
|
|
property5 = a0[r34 + value5];
|
|
property6 = a0[r34 + value7];
|
|
value = (192 & property5) === 128;
|
|
reducibleJoin22: while (true) {
|
|
if (value) {
|
|
value = (192 & property6) === 128;
|
|
r46 = value;
|
|
break reducibleJoin22;
|
|
}
|
|
r46 = value;
|
|
break reducibleJoin22;
|
|
}
|
|
reducibleJoin24: while (true) {
|
|
if (r46) {
|
|
value = 15 & property;
|
|
value14 = 63 & property5;
|
|
value15 = 63 & property6;
|
|
value <<= 12;
|
|
value = value | value14 << 6 | value15;
|
|
value16 = value > 2047;
|
|
r42 = value;
|
|
r46 = value16;
|
|
break reducibleJoin24;
|
|
}
|
|
r42 = r0;
|
|
break reducibleJoin24;
|
|
}
|
|
reducibleJoin28: while (true) {
|
|
if (r46) {
|
|
value = r42 < 55296;
|
|
reducibleJoin27: while (true) {
|
|
if (value) {
|
|
r47 = value;
|
|
break reducibleJoin27;
|
|
}
|
|
value = r42 > 57343;
|
|
r47 = value;
|
|
break reducibleJoin27;
|
|
}
|
|
r46 = r47;
|
|
break reducibleJoin28;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
if (r46) {
|
|
r36 = r42;
|
|
r43 = r42;
|
|
break reducibleJoin33;
|
|
}
|
|
r36 = r42;
|
|
r43 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
if (value9 !== r41) {
|
|
r36 = r0;
|
|
r43 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
property2 = a0[r34 + value5];
|
|
property3 = a0[r34 + value7];
|
|
property4 = a0[r34 + value8];
|
|
value = (192 & property2) === 128;
|
|
reducibleJoin13: while (true) {
|
|
if (value) {
|
|
value = (192 & property3) === 128;
|
|
r47 = value;
|
|
break reducibleJoin13;
|
|
}
|
|
r47 = value;
|
|
break reducibleJoin13;
|
|
}
|
|
reducibleJoin15: while (true) {
|
|
if (r47) {
|
|
value = (192 & property4) === 128;
|
|
r47 = value;
|
|
break reducibleJoin15;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
reducibleJoin17: while (true) {
|
|
if (r47) {
|
|
value = 15 & property;
|
|
value10 = 63 & property2;
|
|
value11 = 63 & property3;
|
|
value12 = 63 & property4;
|
|
value <<= 18;
|
|
value |= value10 << 12;
|
|
value = value | value11 << 6 | value12;
|
|
value13 = value > 65535;
|
|
r42 = value;
|
|
r47 = value13;
|
|
break reducibleJoin17;
|
|
}
|
|
r42 = r0;
|
|
break reducibleJoin17;
|
|
}
|
|
reducibleJoin19: while (true) {
|
|
if (r47) {
|
|
value = r42 < 1114112;
|
|
r47 = value;
|
|
break reducibleJoin19;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
if (r47) {
|
|
r36 = r42;
|
|
r43 = r42;
|
|
break reducibleJoin33;
|
|
}
|
|
r36 = r42;
|
|
r43 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
r36 = r0;
|
|
r43 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
reducibleJoin36: while (true) {
|
|
if (value6 === r43) {
|
|
r40 = value5;
|
|
r42 = value4;
|
|
break reducibleJoin36;
|
|
}
|
|
if (r43 > 65535) {
|
|
value = r43 - 65536;
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value >>> 10 & 1023 | 55296]);
|
|
value = 56320 | 1023 & value;
|
|
r40 = r41;
|
|
r42 = value;
|
|
break reducibleJoin36;
|
|
}
|
|
r40 = r41;
|
|
r42 = r43;
|
|
break reducibleJoin36;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [r42]);
|
|
value = r34 + r40;
|
|
if (value < value2) {
|
|
r0 = r36;
|
|
r34 = value;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
length = items2.length;
|
|
if (length <= env0_3) {
|
|
String = global.String;
|
|
fromCharCode = String.fromCharCode;
|
|
apply = fromCharCode.apply;
|
|
String = global.String;
|
|
r0 = Reflect.apply(apply, fromCharCode, [String, items2]);
|
|
} else {
|
|
value19 = 0;
|
|
value20 = '';
|
|
if (value19 < length) {
|
|
r2 = value20;
|
|
r3 = value19;
|
|
reducibleLoop39: while (true) {
|
|
String = global.String;
|
|
fromCharCode = String.fromCharCode;
|
|
apply = fromCharCode.apply;
|
|
String = global.String;
|
|
slice = items2.slice;
|
|
value21 = r3 + env0_3;
|
|
value22 = r2 + Reflect.apply(apply, fromCharCode, [String, Reflect.apply(slice, items2, [r3,
|
|
value21])]);
|
|
if (value21 < length) {
|
|
r2 = value22;
|
|
r3 = value21;
|
|
continue reducibleLoop39;
|
|
}
|
|
r0 = value22;
|
|
break reducibleLoop39;
|
|
}
|
|
} else {
|
|
r0 = value20;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function checkInt_64241(a0, a1, a2, a3, a4, a5) { // fn#64241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:12678, offset: 0x01ba0eed, size: 172 bytes, params: 7, frame: 13
|
|
if (Buffer_64215.isBuffer(a0)) {
|
|
if (a1 > a4) {
|
|
throw new global.RangeError('"value" argument is out of bounds');
|
|
}
|
|
if (a1 < a5) {
|
|
throw new global.RangeError('"value" argument is out of bounds');
|
|
}
|
|
if (a2 + a3 > a0.length) {
|
|
throw new global.RangeError('Index out of range');
|
|
}
|
|
return undefined;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
}
|
|
|
|
function writeFloat_64245(a0, a1, a2, a3, a4) { // fn#64245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:13346, offset: 0x01ba10af, size: 83 bytes, params: 6, frame: 21
|
|
if (!a4) {
|
|
checkIEEE754_64244(a0, undefined, a2, 4);
|
|
}
|
|
env0_1.write(a0, a1, a2, a3, 23, 4);
|
|
return a2 + 4;
|
|
}
|
|
|
|
function writeDouble_64246(a0, a1, a2, a3, a4) { // fn#64246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:13435, offset: 0x01ba1102, size: 83 bytes, params: 6, frame: 21
|
|
if (!a4) {
|
|
checkIEEE754_64244(a0, undefined, a2, 8);
|
|
}
|
|
env0_1.write(a0, a1, a2, a3, 52, 8);
|
|
return a2 + 8;
|
|
}
|
|
|
|
function base64ToBytes_64249(a0) { // fn#64249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:22051, offset: 0x01ba1181, size: 37 bytes, params: 2, frame: 13
|
|
return env0_0.toByteArray(base64clean(a0));
|
|
function base64clean(a0) { // fn#64250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:22098, owner: base64ToBytes_64249.base64clean, offset: 0x01ba11a6, size: 142 bytes, params: 2, frame: 17
|
|
var r1;
|
|
let r3 = a0.trim ? a0.trim() : a0.replace(RegExp('^\\s+|\\s+$', 'g'), '');
|
|
const replace = r3.replace;
|
|
let value = environment.__proto__;
|
|
value = Reflect.apply(replace, r3, [env1_4, '']);
|
|
let length = value.length;
|
|
if (length < 2) {
|
|
return '';
|
|
}
|
|
length = value.length;
|
|
if (length % 4 === 0) {
|
|
r1 = value;
|
|
} else {
|
|
r3 = value;
|
|
reducibleLoop5: while (true) {
|
|
value = r3 + '=';
|
|
length = value.length;
|
|
if (length % 4 !== 0) {
|
|
r3 = value;
|
|
continue reducibleLoop5;
|
|
}
|
|
r1 = value;
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return r1;
|
|
}
|
|
|
|
}
|
|
|
|
function SlowBuffer_64252(a0) { // fn#64252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:6813, offset: 0x01ba1234, size: 35 bytes, params: 2, frame: 11
|
|
const value = a0;
|
|
return Buffer_64215.alloc(Number(Number(value) == value ? value : 0));
|
|
}
|
|
|
|
function typedArraySupport_64253() { // fn#64253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:6977, offset: 0x01ba1257, size: 155 bytes, params: 1, frame: 15
|
|
var r2;
|
|
var r0;
|
|
var Uint8Array;
|
|
var prototype;
|
|
var value;
|
|
var uint8Array;
|
|
var value2;
|
|
var closure;
|
|
var value3;
|
|
var value4;
|
|
var subarray;
|
|
var value5;
|
|
var byteLength;
|
|
var error;
|
|
try {
|
|
Uint8Array = global.Uint8Array;
|
|
prototype = Uint8Array.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Uint8Array}});
|
|
uint8Array = new Uint8Array(1);
|
|
value = uint8Array instanceof Object ? uint8Array : value;
|
|
Uint8Array = global.Uint8Array;
|
|
prototype = Uint8Array.prototype;
|
|
value2 = Object.create(prototype);
|
|
closure = function() {
|
|
return 42;
|
|
};
|
|
value2.foo = closure;
|
|
value.__proto__ = value2;
|
|
value3 = value.foo();
|
|
value4 = value3 === 42;
|
|
if (value4) {
|
|
subarray = value.subarray;
|
|
value5 = typeof subarray === 'function';
|
|
r2 = value5;
|
|
} else {
|
|
r2 = value4;
|
|
}
|
|
if (r2) {
|
|
value = value.subarray(1, 1);
|
|
byteLength = value.byteLength;
|
|
value = byteLength === 0;
|
|
r0 = value;
|
|
} else {
|
|
r0 = r2;
|
|
}
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function alloc_64257(a0, a1, a2) { // fn#64257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:7651, offset: 0x01ba1323, size: 126 bytes, params: 4, frame: 18
|
|
var r2;
|
|
var r0;
|
|
var value;
|
|
assertSize_64218(a0);
|
|
if (a0 <= 0) {
|
|
r0 = createBuffer_64214(null, a0);
|
|
} else if (a1 !== undefined) {
|
|
if (typeof a2 === 'string') {
|
|
value = createBuffer_64214(null, a0);
|
|
value = value.fill(a1, a2);
|
|
r2 = value;
|
|
} else {
|
|
value = createBuffer_64214(null, a0);
|
|
value = value.fill(a1);
|
|
r2 = value;
|
|
}
|
|
r0 = r2;
|
|
} else {
|
|
r0 = createBuffer_64214(null, a0);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function compare_64261(a0, a1) { // fn#64261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:8064, offset: 0x01ba13d1, size: 203 bytes, params: 3, frame: 21
|
|
var r6;
|
|
var r2;
|
|
var r3;
|
|
var length;
|
|
var length2;
|
|
var value2;
|
|
var property;
|
|
var value3;
|
|
var property2;
|
|
var value;
|
|
if (Buffer_64215.isBuffer(a0)) {
|
|
if (Buffer_64215.isBuffer(a1)) {
|
|
if (a0 === a1) {
|
|
return 0;
|
|
}
|
|
length = a0.length;
|
|
length2 = a1.length;
|
|
value = global.Math.min(length, length2);
|
|
value2 = 0;
|
|
if (value2 < value) {
|
|
r6 = value2;
|
|
loopExit5: while (true) {
|
|
property = a0[r6];
|
|
if (property !== a1[r6]) {
|
|
property = a0[r6];
|
|
property2 = a1[r6];
|
|
r2 = property2;
|
|
r3 = property;
|
|
break loopExit5;
|
|
}
|
|
value3 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (value3 < value) {
|
|
r6 = value3;
|
|
continue;
|
|
}
|
|
r2 = length2;
|
|
r3 = length;
|
|
break loopExit5;
|
|
}
|
|
} else {
|
|
r2 = length2;
|
|
r3 = length;
|
|
}
|
|
value = -1;
|
|
return r3 < r2 ? value : r2 < r3 ? 1 : value2;
|
|
}
|
|
throw new global.TypeError('Arguments must be Buffers');
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Arguments must be Buffers');
|
|
}
|
|
|
|
function concat_64263(a0, a1) { // fn#64263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:8565, offset: 0x01ba149c, size: 264 bytes, params: 3, frame: 19
|
|
var r3;
|
|
var r5;
|
|
var r4;
|
|
var length;
|
|
var value3;
|
|
var value4;
|
|
var property;
|
|
var isBuffer;
|
|
var copy;
|
|
var value5;
|
|
var value6;
|
|
let value = a1;
|
|
if (env0_2(a0)) {
|
|
length = a0.length;
|
|
value3 = 0;
|
|
if (value3 === length) {
|
|
return Buffer_64215.alloc(value3);
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (value !== undefined) {
|
|
r4 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
length = a0.length;
|
|
if (!(value3 < length)) {
|
|
r4 = value3;
|
|
break reducibleJoin6;
|
|
}
|
|
r3 = value3;
|
|
r5 = value3;
|
|
reducibleLoop5: while (true) {
|
|
length = a0[r3].length;
|
|
value = r5 + length;
|
|
value4 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = a0.length;
|
|
if (value4 < length) {
|
|
r3 = value4;
|
|
r5 = value;
|
|
continue reducibleLoop5;
|
|
}
|
|
r4 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
}
|
|
value = Buffer_64215.allocUnsafe(r4);
|
|
length = a0.length;
|
|
if (value3 < length) {
|
|
r4 = value3;
|
|
r5 = value3;
|
|
reducibleLoop7: while (true) {
|
|
property = a0[r5];
|
|
isBuffer = Buffer_64215.isBuffer;
|
|
if (!Reflect.apply(isBuffer, Buffer_64215, [property])) {
|
|
throw new global.TypeError('"list" argument must be an Array of Buffers');
|
|
}
|
|
copy = property.copy;
|
|
Reflect.apply(copy, property, [value, r4]);
|
|
length = property.length;
|
|
value5 = r4 + length;
|
|
value6 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = a0.length;
|
|
if (!(value6 < length)) {
|
|
return value;
|
|
}
|
|
r4 = value5;
|
|
r5 = value6;
|
|
continue reducibleLoop7;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
}
|
|
|
|
function swap64_64266() { // fn#64266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:9430, offset: 0x01ba167f, size: 162 bytes, params: 1, frame: 26
|
|
var r10;
|
|
var swap_64224Binding;
|
|
const length = this.length;
|
|
let value = 0;
|
|
if (length % 8 !== value) {
|
|
throw new global.RangeError('Buffer size must be a multiple of 64-bits');
|
|
}
|
|
if (value < length) {
|
|
r10 = value;
|
|
reducibleLoop2: while (true) {
|
|
swap_64224Binding = swap_64224;
|
|
swap_64224Binding(this, r10, r10 + 7);
|
|
value = r10 + 1;
|
|
swap_64224Binding(this, value, r10 + 6);
|
|
value = r10 + 2;
|
|
swap_64224Binding(this, value, r10 + 5);
|
|
value = r10 + 3;
|
|
swap_64224Binding(this, value, r10 + 4);
|
|
value = r10 + 8;
|
|
if (value < length) {
|
|
r10 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function toString_64267() { // fn#64267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:9676, offset: 0x01ba1721, size: 73 bytes, params: 1, frame: 19
|
|
var r1;
|
|
var r0;
|
|
let value = this.length | 0;
|
|
if (value === 0) {
|
|
r0 = '';
|
|
} else {
|
|
if (arguments.length === 0) {
|
|
value = utf8Slice_64235(this, 0, value);
|
|
r1 = value;
|
|
} else {
|
|
r1 = slowToString_64223.apply(this, arguments);
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function equals_64268(a0) { // fn#64268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:9833, offset: 0x01ba176a, size: 94 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var value2;
|
|
var value;
|
|
if (Buffer_64215.isBuffer(a0)) {
|
|
value2 = this === a0;
|
|
if (value2) {
|
|
r0 = value2;
|
|
} else {
|
|
value = Buffer_64215.compare(this, a0);
|
|
value = value === 0;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Argument must be a Buffer');
|
|
}
|
|
|
|
function inspect_64269() { // fn#64269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:9994, offset: 0x01ba17c8, size: 136 bytes, params: 1, frame: 16
|
|
var r0;
|
|
var r1;
|
|
let value = environment.__proto__;
|
|
const INSPECT_MAX_BYTES = require.INSPECT_MAX_BYTES;
|
|
const length = this.length;
|
|
value = '';
|
|
if (length > 0) {
|
|
value = this.toString('hex', 0, INSPECT_MAX_BYTES);
|
|
value = value.match(RegExp('.{2}', 'g'));
|
|
value = value.join(' ');
|
|
if (this.length > INSPECT_MAX_BYTES) {
|
|
value += ' ... ';
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
r1 = r0;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return '<Buffer ' + r1 + '>';
|
|
}
|
|
|
|
function compare_64270(a0, a1, a2, a3, a4) { // fn#64270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:10191, offset: 0x01ba1850, size: 388 bytes, params: 6, frame: 21
|
|
var r1;
|
|
var length;
|
|
var r2;
|
|
var r3;
|
|
var r4;
|
|
var r6;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var Math;
|
|
var min;
|
|
var value12;
|
|
var slice;
|
|
var value13;
|
|
var value14;
|
|
var property;
|
|
var value15;
|
|
var property2;
|
|
var value16;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const value3 = a3;
|
|
const value4 = a4;
|
|
if (Buffer_64215.isBuffer(a0)) {
|
|
reducibleJoin4: while (true) {
|
|
if (value !== undefined) {
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = 0;
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (value2 !== undefined) {
|
|
r2 = value2;
|
|
break reducibleJoin8;
|
|
}
|
|
value = 0;
|
|
reducibleJoin7: while (true) {
|
|
if (a0) {
|
|
length = a0.length;
|
|
break reducibleJoin7;
|
|
}
|
|
length = value;
|
|
break reducibleJoin7;
|
|
}
|
|
r2 = length;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (value3 !== undefined) {
|
|
r3 = value3;
|
|
break reducibleJoin10;
|
|
}
|
|
value = 0;
|
|
r3 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
reducibleJoin12: while (true) {
|
|
if (value4 !== undefined) {
|
|
r4 = value4;
|
|
break reducibleJoin12;
|
|
}
|
|
length = this.length;
|
|
r4 = length;
|
|
break reducibleJoin12;
|
|
}
|
|
value = 0;
|
|
if (!(r1 < value)) {
|
|
length = a0.length;
|
|
reducibleJoin34: while (true) {
|
|
if (r2 > length) {
|
|
break reducibleJoin34;
|
|
}
|
|
if (r3 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
length = this.length;
|
|
if (!(r4 > length)) {
|
|
if (r3 >= r4) {
|
|
reducibleJoin18: while (true) {
|
|
if (r1 >= r2) {
|
|
return value;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
}
|
|
if (r3 >= r4) {
|
|
return -1;
|
|
}
|
|
if (r1 >= r2) {
|
|
return 1;
|
|
}
|
|
if (this === a0) {
|
|
return value;
|
|
}
|
|
value6 = r4 >>> value;
|
|
value7 = r3 >>> value;
|
|
value8 = value6 - value7;
|
|
value9 = r2 >>> value;
|
|
value10 = r1 >>> value;
|
|
value11 = value9 - value10;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
value12 = Reflect.apply(min, Math, [value8, value11]);
|
|
slice = this.slice;
|
|
value13 = Reflect.apply(slice, this, [value7, value6]);
|
|
slice = a0.slice;
|
|
value14 = Reflect.apply(slice, a0, [value10, value9]);
|
|
if (value < value12) {
|
|
r6 = value;
|
|
reducibleLoop22: while (true) {
|
|
property = value13[r6];
|
|
if (property !== value14[r6]) {
|
|
property = value13[r6];
|
|
property2 = value14[r6];
|
|
r2 = property2;
|
|
r3 = property;
|
|
break reducibleLoop22;
|
|
}
|
|
value15 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
if (value15 < value12) {
|
|
r6 = value15;
|
|
continue reducibleLoop22;
|
|
}
|
|
r2 = value11;
|
|
r3 = value8;
|
|
break reducibleLoop22;
|
|
}
|
|
} else {
|
|
r2 = value11;
|
|
r3 = value8;
|
|
}
|
|
value16 = -1;
|
|
reducibleJoin29: while (true) {
|
|
if (r3 < r2) {
|
|
r1 = value16;
|
|
break reducibleJoin29;
|
|
}
|
|
reducibleJoin28: while (true) {
|
|
if (r2 < r3) {
|
|
value = 1;
|
|
r2 = value;
|
|
break reducibleJoin28;
|
|
}
|
|
r2 = value;
|
|
break reducibleJoin28;
|
|
}
|
|
r1 = r2;
|
|
break reducibleJoin29;
|
|
}
|
|
return r1;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
throw new global.RangeError('out of range index');
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Argument must be a Buffer');
|
|
}
|
|
|
|
function write_64274(a0, a1, a2, a3) { // fn#64274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:11012, offset: 0x01ba1a0e, size: 624 bytes, params: 5, frame: 33
|
|
var r1;
|
|
var r2;
|
|
var r19;
|
|
var r6;
|
|
var isFinite;
|
|
var prototype;
|
|
var value5;
|
|
var value6;
|
|
var length;
|
|
var value7;
|
|
var value8;
|
|
var value10;
|
|
var toLowerCase;
|
|
var value11;
|
|
var RangeError;
|
|
var rangeError;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const value3 = a3;
|
|
const value4 = undefined;
|
|
if (value4 === value) {
|
|
length = this.length;
|
|
value = 0;
|
|
value8 = 'utf8';
|
|
r1 = length;
|
|
r2 = value;
|
|
r19 = value8;
|
|
} else {
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin3: while (true) {
|
|
if (value4 !== value2) {
|
|
break reducibleJoin3;
|
|
}
|
|
if (typeof value === 'string') {
|
|
length = this.length;
|
|
value7 = 0;
|
|
r1 = length;
|
|
r2 = value7;
|
|
r19 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
isFinite = global.isFinite;
|
|
if (!isFinite(value)) {
|
|
throw new global.Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');
|
|
}
|
|
value |= 0;
|
|
isFinite = global.isFinite;
|
|
if (isFinite(value2)) {
|
|
value5 = value2 | 0;
|
|
if (value4 !== value3) {
|
|
r1 = value5;
|
|
r2 = value;
|
|
r19 = value3;
|
|
break reducibleJoin10;
|
|
}
|
|
value6 = 'utf8';
|
|
r1 = value5;
|
|
r2 = value;
|
|
r19 = value6;
|
|
break reducibleJoin10;
|
|
}
|
|
r1 = value4;
|
|
r2 = value;
|
|
r19 = value2;
|
|
break reducibleJoin10;
|
|
}
|
|
}
|
|
value = this.length - r2;
|
|
const value9 = value4 === r1;
|
|
reducibleJoin12: while (true) {
|
|
if (value9) {
|
|
r6 = value9;
|
|
break reducibleJoin12;
|
|
}
|
|
value10 = r1 > value;
|
|
r6 = value10;
|
|
break reducibleJoin12;
|
|
}
|
|
r1 = r6 ? value : r1;
|
|
if (a0.length > 0) {
|
|
reducibleJoin16: while (true) {
|
|
reducibleJoin40: while (true) {
|
|
if (r1 < 0) {
|
|
break reducibleJoin40;
|
|
}
|
|
if (r2 < 0) {
|
|
break reducibleJoin40;
|
|
}
|
|
break reducibleJoin16;
|
|
}
|
|
RangeError = global.RangeError;
|
|
prototype = RangeError.prototype;
|
|
value = Object.create(prototype, {constructor: {value: RangeError}});
|
|
rangeError = new RangeError('Attempt to write outside buffer bounds');
|
|
value = rangeError instanceof Object ? rangeError : value;
|
|
throw value;
|
|
}
|
|
}
|
|
if (r2 > this.length) {
|
|
throw new global.RangeError('Attempt to write outside buffer bounds');
|
|
}
|
|
reducibleJoin19: while (true) {
|
|
if (r19) {
|
|
break reducibleJoin19;
|
|
}
|
|
value = 'utf8';
|
|
r19 = value;
|
|
break reducibleJoin19;
|
|
}
|
|
let r18 = false;
|
|
reducibleLoop20: while (true) {
|
|
if (r19 === 'hex') {
|
|
value = environment;
|
|
return hexWrite_64228(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'utf8') {
|
|
value = environment;
|
|
return utf8Write_64229(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'utf-8') {
|
|
value = environment;
|
|
return utf8Write_64229(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'ascii') {
|
|
value = environment;
|
|
return asciiWrite_64230(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'latin1') {
|
|
value = environment;
|
|
return latin1Write_64231(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'binary') {
|
|
value = environment;
|
|
return latin1Write_64231(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'base64') {
|
|
value = environment;
|
|
return base64Write_64232(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'ucs2') {
|
|
value = environment;
|
|
return ucs2Write_64233(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'ucs-2') {
|
|
value = environment;
|
|
return ucs2Write_64233(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'utf16le') {
|
|
value = environment;
|
|
return ucs2Write_64233(this, a0, r2, r1);
|
|
}
|
|
if (r19 === 'utf-16le') {
|
|
value = environment;
|
|
return ucs2Write_64233(this, a0, r2, r1);
|
|
}
|
|
if (r18) {
|
|
throw new global.TypeError('Unknown encoding: ' + r19);
|
|
}
|
|
value = String(r19);
|
|
toLowerCase = value.toLowerCase;
|
|
value = Reflect.apply(toLowerCase, value, []);
|
|
value11 = true;
|
|
r18 = value11;
|
|
r19 = value;
|
|
continue reducibleLoop20;
|
|
}
|
|
}
|
|
|
|
function slice_64276(a0, a1) { // fn#64276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:13548, offset: 0x01ba1c7e, size: 210 bytes, params: 3, frame: 18
|
|
var r4;
|
|
var r0;
|
|
var r7;
|
|
var value3;
|
|
var buffer_64215;
|
|
var value4;
|
|
var value5;
|
|
const length = this.length;
|
|
let value = ~~a0;
|
|
const value2 = 0;
|
|
if (value < value2) {
|
|
value += length;
|
|
r4 = value < value2 ? value2 : value;
|
|
} else {
|
|
r4 = value > length ? length : value;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
if (a1 === undefined) {
|
|
r0 = length;
|
|
break reducibleJoin5;
|
|
}
|
|
value = ~~a1;
|
|
r0 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
let r3 = r0 < value2 ? r0 + length < value2 ? value2 : r0 + length : r0 > length ? length : r0;
|
|
r3 = r3 < r4 ? r4 : r3;
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
value5 = this.subarray(r4, r3);
|
|
value5.__proto__ = Buffer_64215.prototype;
|
|
r0 = value5;
|
|
} else {
|
|
value3 = r3 - r4;
|
|
buffer_64215 = new Buffer_64215(value3, undefined);
|
|
if (value2 < value3) {
|
|
r7 = value2;
|
|
reducibleLoop11: while (true) {
|
|
buffer_64215[r7] = this[r7 + r4];
|
|
value4 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (value4 < value3) {
|
|
r7 = value4;
|
|
continue reducibleLoop11;
|
|
}
|
|
r0 = buffer_64215;
|
|
break reducibleLoop11;
|
|
}
|
|
} else {
|
|
r0 = buffer_64215;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function readUIntLE_64277(a0, a1, a2) { // fn#64277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:13877, offset: 0x01ba1d50, size: 106 bytes, params: 4, frame: 20
|
|
var r1;
|
|
var r2;
|
|
var r3;
|
|
var r0;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
const value = a0 | 0;
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkOffset_64240(value, value2, this.length);
|
|
}
|
|
const property = this[value];
|
|
const value4 = 256;
|
|
const value5 = 1;
|
|
if (value5 < value2) {
|
|
r1 = value4;
|
|
r2 = property;
|
|
r3 = value5;
|
|
while (true) {
|
|
value6 = r2 + this[value + r3] * r1;
|
|
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (!(value7 < value2)) {
|
|
r0 = value6;
|
|
break;
|
|
}
|
|
value8 = r1 * value4;
|
|
if (value8) {
|
|
r1 = value8;
|
|
r2 = value6;
|
|
r3 = value7;
|
|
continue;
|
|
}
|
|
r0 = value6;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function readUIntBE_64278(a0, a1, a2) { // fn#64278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:14042, offset: 0x01ba1dba, size: 112 bytes, params: 4, frame: 20
|
|
var r1;
|
|
var r2;
|
|
var r5;
|
|
var r0;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
const value = a0 | 0;
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkOffset_64240(value, value2, this.length);
|
|
}
|
|
const value4 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
|
|
const property = this[value + value4];
|
|
const value5 = 256;
|
|
if (value4 > 0) {
|
|
r1 = value5;
|
|
r2 = property;
|
|
r5 = value4;
|
|
while (true) {
|
|
value6 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
|
|
value7 = r2 + this[value + value6] * r1;
|
|
if (!(value6 > 0)) {
|
|
r0 = value7;
|
|
break;
|
|
}
|
|
value8 = r1 * value5;
|
|
if (value8) {
|
|
r1 = value8;
|
|
r2 = value7;
|
|
r5 = value6;
|
|
continue;
|
|
}
|
|
r0 = value7;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function readUInt8_64279(a0, a1) { // fn#64279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:14206, offset: 0x01ba1e2a, size: 42 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 1, this.length);
|
|
}
|
|
return this[a0];
|
|
}
|
|
|
|
function readUInt16LE_64280(a0, a1) { // fn#64280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:14308, offset: 0x01ba1e54, size: 64 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 2, this.length);
|
|
}
|
|
return this[a0] | this[a0 + 1] << 8;
|
|
}
|
|
|
|
function readUInt16BE_64281(a0, a1) { // fn#64281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:14426, offset: 0x01ba1e94, size: 64 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 2, this.length);
|
|
}
|
|
return this[a0] << 8 | this[a0 + 1];
|
|
}
|
|
|
|
function readUInt32LE_64282(a0, a1) { // fn#64282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:14544, offset: 0x01ba1ed4, size: 111 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 4, this.length);
|
|
}
|
|
return (this[a0] | this[a0 + 1] << 8 | this[a0 + 2] << 16) + 16777216 * this[a0 + 3];
|
|
}
|
|
|
|
function readUInt32BE_64283(a0, a1) { // fn#64283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:14697, offset: 0x01ba1f43, size: 111 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 4, this.length);
|
|
}
|
|
return 16777216 * this[a0] + (this[a0 + 1] << 16 | this[a0 + 2] << 8 | this[a0 + 3]);
|
|
}
|
|
|
|
function readIntLE_64284(a0, a1, a2) { // fn#64284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:14847, offset: 0x01ba1fb2, size: 163 bytes, params: 4, frame: 21
|
|
var r0;
|
|
var r3;
|
|
var r4;
|
|
var r1;
|
|
var r2;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
const value = a0 | 0;
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkOffset_64240(value, value2, this.length);
|
|
}
|
|
const property = this[value];
|
|
const value4 = 256;
|
|
const value5 = 1;
|
|
if (value5 < value2) {
|
|
r0 = value5;
|
|
r3 = value4;
|
|
r4 = property;
|
|
while (true) {
|
|
value6 = r4 + this[value + r0] * r3;
|
|
value7 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (!(value7 < value2)) {
|
|
r1 = r3;
|
|
r2 = value6;
|
|
break;
|
|
}
|
|
value8 = r3 * value4;
|
|
if (value8) {
|
|
r0 = value7;
|
|
r3 = value8;
|
|
r4 = value6;
|
|
continue;
|
|
}
|
|
r1 = value8;
|
|
r2 = value6;
|
|
break;
|
|
}
|
|
} else {
|
|
r1 = value5;
|
|
r2 = property;
|
|
}
|
|
return r2 >= r1 * 128 ? r2 - global.Math.pow(2, 8 * value2) : r2;
|
|
}
|
|
|
|
function readIntBE_64285(a0, a1, a2) { // fn#64285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:15044, offset: 0x01ba2055, size: 169 bytes, params: 4, frame: 22
|
|
var r0;
|
|
var r3;
|
|
var r7;
|
|
var r1;
|
|
var r2;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
const value = a0 | 0;
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkOffset_64240(value, value2, this.length);
|
|
}
|
|
const value4 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
|
|
const property = this[value + value4];
|
|
const value5 = 256;
|
|
if (value4 > 0) {
|
|
r0 = property;
|
|
r3 = value5;
|
|
r7 = value4;
|
|
while (true) {
|
|
value7 = typeof r7 === 'bigint' ? r7 - 1n : +r7 - 1;
|
|
value8 = r0 + this[value + value7] * r3;
|
|
if (!(value7 > 0)) {
|
|
r1 = r3;
|
|
r2 = value8;
|
|
break;
|
|
}
|
|
value9 = r3 * value5;
|
|
if (value9) {
|
|
r0 = value8;
|
|
r3 = value9;
|
|
r7 = value7;
|
|
continue;
|
|
}
|
|
r1 = value9;
|
|
r2 = value8;
|
|
break;
|
|
}
|
|
} else {
|
|
r1 = 1;
|
|
r2 = property;
|
|
}
|
|
return r2 >= r1 * 128 ? r2 - global.Math.pow(2, 8 * value2) : r2;
|
|
}
|
|
|
|
function readInt8_64286(a0, a1) { // fn#64286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:15244, offset: 0x01ba20fe, size: 85 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 1, this.length);
|
|
}
|
|
const value = 128 & this[a0];
|
|
const property = this[a0];
|
|
return value ? -1 * (255 - property + 1) : property;
|
|
}
|
|
|
|
function readInt16LE_64287(a0, a1) { // fn#64287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:15375, offset: 0x01ba2153, size: 94 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 2, this.length);
|
|
}
|
|
const value = this[a0] | this[a0 + 1] << 8;
|
|
return 32768 & value ? 4294901760 | value : value;
|
|
}
|
|
|
|
function readInt16BE_64288(a0, a1) { // fn#64288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:15520, offset: 0x01ba21b1, size: 94 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 2, this.length);
|
|
}
|
|
const value = this[a0 + 1] | this[a0] << 8;
|
|
return 32768 & value ? 4294901760 | value : value;
|
|
}
|
|
|
|
function readInt32LE_64289(a0, a1) { // fn#64289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:15665, offset: 0x01ba220f, size: 108 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 4, this.length);
|
|
}
|
|
return this[a0] | this[a0 + 1] << 8 | this[a0 + 2] << 16 | this[a0 + 3] << 24;
|
|
}
|
|
|
|
function readInt32BE_64290(a0, a1) { // fn#64290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:15809, offset: 0x01ba227b, size: 108 bytes, params: 3, frame: 16
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 4, this.length);
|
|
}
|
|
return this[a0] << 24 | this[a0 + 1] << 16 | this[a0 + 2] << 8 | this[a0 + 3];
|
|
}
|
|
|
|
function readFloatLE_64291(a0, a1) { // fn#64291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:15953, offset: 0x01ba22e7, size: 72 bytes, params: 3, frame: 19
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 4, this.length);
|
|
}
|
|
return env0_1.read(this, a0, true, 23, 4);
|
|
}
|
|
|
|
function readFloatBE_64292(a0, a1) { // fn#64292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:16071, offset: 0x01ba232f, size: 72 bytes, params: 3, frame: 19
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 4, this.length);
|
|
}
|
|
return env0_1.read(this, a0, false, 23, 4);
|
|
}
|
|
|
|
function readDoubleLE_64293(a0, a1) { // fn#64293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:16190, offset: 0x01ba2377, size: 72 bytes, params: 3, frame: 19
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 8, this.length);
|
|
}
|
|
return env0_1.read(this, a0, true, 52, 8);
|
|
}
|
|
|
|
function readDoubleBE_64294(a0, a1) { // fn#64294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:16310, offset: 0x01ba23bf, size: 72 bytes, params: 3, frame: 19
|
|
if (!a1) {
|
|
checkOffset_64240(a0, 8, this.length);
|
|
}
|
|
return env0_1.read(this, a0, false, 52, 8);
|
|
}
|
|
|
|
function writeUIntLE_64295(a0, a1, a2, a3) { // fn#64295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:16429, offset: 0x01ba2407, size: 154 bytes, params: 5, frame: 23
|
|
var r2;
|
|
var r3;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
const value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
const value3 = a2 | 0;
|
|
if (!a3) {
|
|
checkInt_64241(this, value, value2, value3, global.Math.pow(2, 8 * value3) - 1, 0);
|
|
}
|
|
this[value2] = 255 & value;
|
|
const value6 = 256;
|
|
const value7 = 1;
|
|
if (value7 < value3) {
|
|
r2 = value6;
|
|
r3 = value7;
|
|
while (true) {
|
|
value8 = value2 + r3;
|
|
this[value8] = value / r2 & 255;
|
|
value9 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (!(value9 < value3)) {
|
|
break;
|
|
}
|
|
value10 = r2 * value6;
|
|
if (value10) {
|
|
r2 = value10;
|
|
r3 = value9;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return value2 + value3;
|
|
}
|
|
|
|
function writeUIntBE_64296(a0, a1, a2, a3) { // fn#64296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:16626, offset: 0x01ba24a1, size: 167 bytes, params: 5, frame: 24
|
|
var r2;
|
|
var r5;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
const value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
const value3 = a2 | 0;
|
|
if (!a3) {
|
|
checkInt_64241(this, value, value2, value3, global.Math.pow(2, 8 * value3) - 1, 0);
|
|
}
|
|
const value6 = value3 - 1;
|
|
this[value2 + value6] = 255 & value;
|
|
const value8 = typeof value6 === 'bigint' ? value6 - 1n : +value6 - 1;
|
|
const value9 = 256;
|
|
if (value8 >= 0) {
|
|
r2 = value9;
|
|
r5 = value8;
|
|
while (true) {
|
|
value10 = value2 + r5;
|
|
this[value10] = value / r2 & 255;
|
|
value11 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
|
|
if (!(value11 >= 0)) {
|
|
break;
|
|
}
|
|
value12 = r2 * value9;
|
|
if (value12) {
|
|
r2 = value12;
|
|
r5 = value11;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return value2 + value3;
|
|
}
|
|
|
|
function writeUInt8_64297(a0, a1, a2) { // fn#64297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:16827, offset: 0x01ba2548, size: 109 bytes, params: 4, frame: 21
|
|
var r3;
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 1, 255, 0);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
r3 = value;
|
|
} else {
|
|
value = global.Math.floor(value);
|
|
r3 = value;
|
|
}
|
|
this[value2] = 255 & r3;
|
|
return value2 + 1;
|
|
}
|
|
|
|
function writeUInt16LE_64298(a0, a1, a2) { // fn#64298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:16997, offset: 0x01ba25b5, size: 131 bytes, params: 4, frame: 21
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 2, 65535, 0);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2] = 255 & value;
|
|
value >>>= 8;
|
|
this[value2 + 1] = value;
|
|
} else {
|
|
objectWriteUInt16(this, value, value2, true);
|
|
}
|
|
return value2 + 2;
|
|
}
|
|
|
|
function writeUInt16BE_64299(a0, a1, a2) { // fn#64299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:17202, offset: 0x01ba2638, size: 131 bytes, params: 4, frame: 21
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 2, 65535, 0);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2] = value >>> 8;
|
|
value = 255 & value;
|
|
this[value2 + 1] = value;
|
|
} else {
|
|
objectWriteUInt16(this, value, value2, false);
|
|
}
|
|
return value2 + 2;
|
|
}
|
|
|
|
function writeUInt32LE_64300(a0, a1, a2) { // fn#64300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:17407, offset: 0x01ba26bb, size: 171 bytes, params: 4, frame: 21
|
|
const value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 4, 4294967295, 0);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2 + 3] = value >>> 24;
|
|
this[value2 + 2] = value >>> 16;
|
|
this[value2 + 1] = value >>> 8;
|
|
this[value2] = 255 & value;
|
|
} else {
|
|
objectWriteUInt32(this, value, value2, true);
|
|
}
|
|
return value2 + 4;
|
|
}
|
|
|
|
function writeUInt32BE_64301(a0, a1, a2) { // fn#64301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:17651, offset: 0x01ba2766, size: 171 bytes, params: 4, frame: 21
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 4, 4294967295, 0);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2] = value >>> 24;
|
|
this[value2 + 1] = value >>> 16;
|
|
this[value2 + 2] = value >>> 8;
|
|
value = 255 & value;
|
|
this[value2 + 3] = value;
|
|
} else {
|
|
objectWriteUInt32(this, value, value2, false);
|
|
}
|
|
return value2 + 4;
|
|
}
|
|
|
|
function writeIntLE_64302(a0, a1, a2, a3) { // fn#64302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:17892, offset: 0x01ba2811, size: 212 bytes, params: 5, frame: 27
|
|
var r2;
|
|
var r3;
|
|
var r4;
|
|
var r12;
|
|
var value3;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
const value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a3) {
|
|
value3 = global.Math.pow(2, 8 * a2 - 1);
|
|
checkInt_64241(this, value, value2, a2, value3 - 1, -value3);
|
|
}
|
|
this[value2] = 255 & value;
|
|
const value6 = 1;
|
|
const value7 = value6 < a2;
|
|
const value8 = 256;
|
|
const value9 = 0;
|
|
const value10 = value < value9;
|
|
if (value7) {
|
|
r2 = value9;
|
|
r3 = value8;
|
|
r4 = value6;
|
|
while (true) {
|
|
if (value10) {
|
|
value11 = value9 === r2;
|
|
r12 = value11;
|
|
} else {
|
|
r12 = value10;
|
|
}
|
|
if (!r12) {
|
|
continue;
|
|
}
|
|
value12 = value9 !== this[value2 + r4 - value6];
|
|
r12 = value12;
|
|
if (r12) {
|
|
r2 = value6;
|
|
continue;
|
|
}
|
|
continue;
|
|
value13 = value2 + r4;
|
|
this[value13] = (value / r3 | 0) - r2 & 255;
|
|
value14 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (value14 < a2) {
|
|
value15 = r3 * value8;
|
|
if (value15) {
|
|
r3 = value15;
|
|
r4 = value14;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return value2 + a2;
|
|
}
|
|
|
|
function writeIntBE_64303(a0, a1, a2, a3) { // fn#64303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:18140, offset: 0x01ba28e5, size: 217 bytes, params: 5, frame: 27
|
|
var r2;
|
|
var r3;
|
|
var r7;
|
|
var r12;
|
|
var value3;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
const value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a3) {
|
|
value3 = global.Math.pow(2, 8 * a2 - 1);
|
|
checkInt_64241(this, value, value2, a2, value3 - 1, -value3);
|
|
}
|
|
const value6 = 1;
|
|
const value7 = a2 - value6;
|
|
this[value2 + value7] = 255 & value;
|
|
const value9 = typeof value7 === 'bigint' ? value7 - 1n : +value7 - 1;
|
|
const value10 = 256;
|
|
const value11 = 0;
|
|
const value12 = value < value11;
|
|
if (value9 >= value11) {
|
|
r2 = value11;
|
|
r3 = value10;
|
|
r7 = value9;
|
|
while (true) {
|
|
if (value12) {
|
|
value13 = value11 === r2;
|
|
r12 = value13;
|
|
} else {
|
|
r12 = value12;
|
|
}
|
|
if (!r12) {
|
|
continue;
|
|
}
|
|
value14 = value11 !== this[value2 + r7 + value6];
|
|
r12 = value14;
|
|
if (r12) {
|
|
r2 = value6;
|
|
continue;
|
|
}
|
|
continue;
|
|
value15 = value2 + r7;
|
|
this[value15] = (value / r3 | 0) - r2 & 255;
|
|
value16 = typeof r7 === 'bigint' ? r7 - 1n : +r7 - 1;
|
|
if (value16 >= value11) {
|
|
value17 = r3 * value10;
|
|
if (value17) {
|
|
r3 = value17;
|
|
r7 = value16;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return value2 + a2;
|
|
}
|
|
|
|
function writeInt8_64304(a0, a1, a2) { // fn#64304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:18392, offset: 0x01ba29be, size: 136 bytes, params: 4, frame: 21
|
|
var r4;
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 1, 127, -128);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
r4 = value;
|
|
} else {
|
|
value = global.Math.floor(value);
|
|
r4 = value;
|
|
}
|
|
this[value2] = 255 & (r4 < 0 ? 255 + r4 + 1 : r4);
|
|
return value2 + 1;
|
|
}
|
|
|
|
function writeInt16LE_64305(a0, a1, a2) { // fn#64305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:18580, offset: 0x01ba2a46, size: 135 bytes, params: 4, frame: 21
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 2, 32767, -32768);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2] = 255 & value;
|
|
value >>>= 8;
|
|
this[value2 + 1] = value;
|
|
} else {
|
|
objectWriteUInt16(this, value, value2, true);
|
|
}
|
|
return value2 + 2;
|
|
}
|
|
|
|
function writeInt16BE_64306(a0, a1, a2) { // fn#64306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:18788, offset: 0x01ba2acd, size: 135 bytes, params: 4, frame: 21
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 2, 32767, -32768);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2] = value >>> 8;
|
|
value = 255 & value;
|
|
this[value2 + 1] = value;
|
|
} else {
|
|
objectWriteUInt16(this, value, value2, false);
|
|
}
|
|
return value2 + 2;
|
|
}
|
|
|
|
function writeInt32LE_64307(a0, a1, a2) { // fn#64307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:18996, offset: 0x01ba2b54, size: 171 bytes, params: 4, frame: 21
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 4, 2147483647, -2147483648);
|
|
}
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2] = 255 & value;
|
|
this[value2 + 1] = value >>> 8;
|
|
this[value2 + 2] = value >>> 16;
|
|
value >>>= 24;
|
|
this[value2 + 3] = value;
|
|
} else {
|
|
objectWriteUInt32(this, value, value2, true);
|
|
}
|
|
return value2 + 4;
|
|
}
|
|
|
|
function writeInt32BE_64308(a0, a1, a2) { // fn#64308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:19248, offset: 0x01ba2bff, size: 201 bytes, params: 4, frame: 21
|
|
let value = Number(a0);
|
|
const value2 = a1 | 0;
|
|
if (!a2) {
|
|
checkInt_64241(this, value, value2, 4, 2147483647, -2147483648);
|
|
}
|
|
const r2 = value < 0 ? 4294967295 + value + 1 : value;
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
this[value2] = r2 >>> 24;
|
|
value = r2 >>> 16;
|
|
this[value2 + 1] = value;
|
|
value = r2 >>> 8;
|
|
this[value2 + 2] = value;
|
|
value = 255 & r2;
|
|
this[value2 + 3] = value;
|
|
} else {
|
|
objectWriteUInt32(this, r2, value2, false);
|
|
}
|
|
return value2 + 4;
|
|
}
|
|
|
|
function copy_64313(a0, a1, a2, a3) { // fn#64313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:19894, offset: 0x01ba2cc8, size: 455 bytes, params: 5, frame: 20
|
|
var r4;
|
|
var r0;
|
|
var r2;
|
|
var r5;
|
|
var r1;
|
|
var value4;
|
|
var value5;
|
|
var length;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var TYPED_ARRAY_SUPPORT;
|
|
var Uint8Array;
|
|
var prototype;
|
|
var set;
|
|
var call;
|
|
var subarray;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var RangeError;
|
|
var rangeError;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const value3 = a3;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r4 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value4 = 0;
|
|
r4 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (value3) {
|
|
r0 = value3;
|
|
break reducibleJoin4;
|
|
}
|
|
value5 = value3 === 0;
|
|
r0 = value5;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r0) {
|
|
r2 = value3;
|
|
break reducibleJoin6;
|
|
}
|
|
length = this.length;
|
|
r2 = length;
|
|
break reducibleJoin6;
|
|
}
|
|
length = a0.length;
|
|
reducibleJoin8: while (true) {
|
|
if (value >= length) {
|
|
length = a0.length;
|
|
r5 = length;
|
|
break reducibleJoin8;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (r5) {
|
|
break reducibleJoin10;
|
|
}
|
|
value = 0;
|
|
r5 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
const value6 = r2 > 0;
|
|
reducibleJoin12: while (true) {
|
|
if (value6) {
|
|
value7 = r2 < r4;
|
|
r1 = value7;
|
|
break reducibleJoin12;
|
|
}
|
|
r1 = value6;
|
|
break reducibleJoin12;
|
|
}
|
|
r2 = r1 ? r4 : r2;
|
|
if (r2 !== r4) {
|
|
length = a0.length;
|
|
if (value !== length) {
|
|
length = this.length;
|
|
reducibleJoin38: while (true) {
|
|
if (value !== length) {
|
|
if (r5 < value) {
|
|
throw new global.RangeError('targetStart out of bounds');
|
|
}
|
|
if (!(r4 < value)) {
|
|
length = this.length;
|
|
reducibleJoin36: while (true) {
|
|
if (!(r4 >= length)) {
|
|
if (r2 < value) {
|
|
throw new global.RangeError('sourceEnd out of bounds');
|
|
}
|
|
length = this.length;
|
|
reducibleJoin22: while (true) {
|
|
if (r2 > length) {
|
|
length = this.length;
|
|
r2 = length;
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
length = a0.length;
|
|
value8 = length - r5;
|
|
reducibleJoin24: while (true) {
|
|
if (value8 < r2 - r4) {
|
|
length = a0.length;
|
|
value9 = length - r5 + r4;
|
|
r2 = value9;
|
|
break reducibleJoin24;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
value10 = r2 - r4;
|
|
reducibleJoin34: while (true) {
|
|
reducibleJoin30: while (true) {
|
|
if (this !== a0) {
|
|
if (value10 < 1000) {
|
|
break reducibleJoin30;
|
|
}
|
|
value11 = environment;
|
|
if (Buffer_64215.TYPED_ARRAY_SUPPORT) {
|
|
Uint8Array = global.Uint8Array;
|
|
prototype = Uint8Array.prototype;
|
|
set = prototype.set;
|
|
call = set.call;
|
|
subarray = this.subarray;
|
|
Reflect.apply(call, set, [a0, Reflect.apply(subarray, this, [r4,
|
|
r4 + value10]),
|
|
r5]);
|
|
break reducibleJoin34;
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
if (r4 < r5) {
|
|
if (r5 < r2) {
|
|
value12 = value10 - 1;
|
|
if (value12 >= value) {
|
|
r2 = value12;
|
|
reducibleLoop33: while (true) {
|
|
value13 = r2 + r5;
|
|
a0[value13] = this[r2 + r4];
|
|
value14 = typeof r2 === 'bigint' ? r2 - 1n : +r2 - 1;
|
|
if (value14 >= value) {
|
|
r2 = value14;
|
|
continue reducibleLoop33;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
return value10;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
if (value10 < 1000) {
|
|
break reducibleJoin30;
|
|
}
|
|
value11 = environment;
|
|
TYPED_ARRAY_SUPPORT = Buffer_64215.TYPED_ARRAY_SUPPORT;
|
|
if (TYPED_ARRAY_SUPPORT) {
|
|
Uint8Array = global.Uint8Array;
|
|
prototype = Uint8Array.prototype;
|
|
set = prototype.set;
|
|
call = set.call;
|
|
subarray = this.subarray;
|
|
Reflect.apply(call, set, [a0, Reflect.apply(subarray, this, [r4,
|
|
r4 + value10]),
|
|
r5]);
|
|
break reducibleJoin34;
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
if (!(value < value10)) {
|
|
break reducibleJoin34;
|
|
}
|
|
r2 = value;
|
|
reducibleLoop31: while (true) {
|
|
value = r2 + r5;
|
|
a0[value] = this[r2 + r4];
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value < value10) {
|
|
r2 = value;
|
|
continue reducibleLoop31;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
return value10;
|
|
}
|
|
break reducibleJoin36;
|
|
}
|
|
}
|
|
RangeError = global.RangeError;
|
|
prototype = RangeError.prototype;
|
|
value = Object.create(prototype, {constructor: {value: RangeError}});
|
|
rangeError = new RangeError('sourceStart out of bounds');
|
|
value = rangeError instanceof Object ? rangeError : value;
|
|
throw value;
|
|
}
|
|
break reducibleJoin38;
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function fill_64314(a0, a1, a2, a3) { // fn#64314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:20551, offset: 0x01ba2e8f, size: 549 bytes, params: 5, frame: 22
|
|
var r5;
|
|
var r6;
|
|
var r7;
|
|
var r8;
|
|
var r1;
|
|
var r2;
|
|
var r3;
|
|
var r10;
|
|
var length;
|
|
var value6;
|
|
var charCodeAt;
|
|
var value7;
|
|
var isEncoding;
|
|
var prototype;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var isBuffer;
|
|
var utf8ToBytes_64248Binding;
|
|
var value12;
|
|
var buffer_64215;
|
|
var value13;
|
|
var toString;
|
|
var value14;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
const value3 = a2;
|
|
const value4 = a3;
|
|
const value5 = typeof value;
|
|
if (value5 === 'string') {
|
|
if (typeof value2 === 'string') {
|
|
length = this.length;
|
|
value6 = 0;
|
|
r5 = value2;
|
|
r6 = length;
|
|
r7 = value6;
|
|
} else {
|
|
reducibleJoin7: while (true) {
|
|
if (typeof value3 !== 'string') {
|
|
r5 = value4;
|
|
r6 = value3;
|
|
r7 = value2;
|
|
break reducibleJoin7;
|
|
}
|
|
length = this.length;
|
|
r5 = value3;
|
|
r6 = length;
|
|
r7 = value2;
|
|
break reducibleJoin7;
|
|
}
|
|
}
|
|
length = value.length;
|
|
reducibleJoin9: while (true) {
|
|
if (length !== 1) {
|
|
r8 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
charCodeAt = value.charCodeAt;
|
|
value7 = Reflect.apply(charCodeAt, value, [0]);
|
|
if (value7 < 256) {
|
|
r8 = value7;
|
|
break reducibleJoin9;
|
|
}
|
|
r8 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin14: while (true) {
|
|
reducibleJoin11: while (true) {
|
|
if (r5 === undefined) {
|
|
break reducibleJoin11;
|
|
}
|
|
if (typeof r5 !== 'string') {
|
|
throw new global.TypeError('encoding must be a string');
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
if (typeof r5 !== 'string') {
|
|
r1 = r6;
|
|
r2 = r7;
|
|
r3 = r8;
|
|
r10 = r5;
|
|
break reducibleJoin14;
|
|
}
|
|
value = environment;
|
|
isEncoding = Buffer_64215.isEncoding;
|
|
if (!Reflect.apply(isEncoding, Buffer_64215, [r5])) {
|
|
throw new global.TypeError('Unknown encoding: ' + r5);
|
|
}
|
|
r1 = r6;
|
|
r2 = r7;
|
|
r3 = r8;
|
|
r10 = r5;
|
|
break reducibleJoin14;
|
|
}
|
|
} else {
|
|
reducibleJoin14: while (true) {
|
|
if (value5 !== 'number') {
|
|
r1 = value3;
|
|
r2 = value2;
|
|
r3 = value;
|
|
r10 = value4;
|
|
break reducibleJoin14;
|
|
}
|
|
value &= 255;
|
|
r1 = value3;
|
|
r2 = value2;
|
|
r3 = value;
|
|
r10 = value4;
|
|
break reducibleJoin14;
|
|
}
|
|
}
|
|
value = 0;
|
|
if (!(r2 < value)) {
|
|
length = this.length;
|
|
reducibleJoin31: while (true) {
|
|
if (length < r2) {
|
|
break reducibleJoin31;
|
|
}
|
|
length = this.length;
|
|
if (!(length < r1)) {
|
|
if (r1 <= r2) {
|
|
return this;
|
|
}
|
|
value9 = r2 >>> value;
|
|
if (r1 === undefined) {
|
|
length = this.length;
|
|
r1 = length;
|
|
} else {
|
|
value10 = r1 >>> value;
|
|
r1 = value10;
|
|
}
|
|
if (!r3) {
|
|
r3 = value;
|
|
}
|
|
if (typeof r3 === 'number') {
|
|
if (value9 < r1) {
|
|
r2 = value9;
|
|
reducibleLoop28: while (true) {
|
|
this[r2] = r3;
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value < r1) {
|
|
r2 = value;
|
|
continue reducibleLoop28;
|
|
}
|
|
break reducibleLoop28;
|
|
}
|
|
}
|
|
} else {
|
|
value11 = environment;
|
|
isBuffer = Buffer_64215.isBuffer;
|
|
reducibleJoin25: while (true) {
|
|
if (Reflect.apply(isBuffer, Buffer_64215, [r3])) {
|
|
r6 = r3;
|
|
break reducibleJoin25;
|
|
}
|
|
utf8ToBytes_64248Binding = utf8ToBytes_64248;
|
|
prototype = Buffer_64215.prototype;
|
|
value12 = Object.create(prototype, {constructor: {value: Buffer_64215}});
|
|
buffer_64215 = new Buffer_64215();
|
|
value13 = buffer_64215 instanceof Object ? buffer_64215 : value12;
|
|
toString = value13.toString;
|
|
value14 = utf8ToBytes_64248Binding(Reflect.apply(toString, value13, []));
|
|
r6 = value14;
|
|
break reducibleJoin25;
|
|
}
|
|
length = r6.length;
|
|
if (value < r1 - value9) {
|
|
r7 = value;
|
|
reducibleLoop26: while (true) {
|
|
value = r7 + value9;
|
|
this[value] = r6[r7 % length];
|
|
value = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
if (value < r1 - value9) {
|
|
r7 = value;
|
|
continue reducibleLoop26;
|
|
}
|
|
break reducibleLoop26;
|
|
}
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
break reducibleJoin31;
|
|
}
|
|
}
|
|
const RangeError = global.RangeError;
|
|
throw new RangeError('Out of range index');
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64315(a0, a1) { // fn#64315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:22418, offset: 0x01ba30b4, size: 200 bytes, params: 3, frame: 15
|
|
var charCodeAt;
|
|
var value2;
|
|
const placeHoldersCount = function(a0) {
|
|
var property = a0.length;
|
|
var value = 0;
|
|
if (property % 4 > value) {
|
|
throw new global.Error('Invalid string. Length must be a multiple of 4');
|
|
}
|
|
var value2 = 2;
|
|
return a0[property - value2] === '=' ? value2 : a0[property - 1] !== '=' ? value : 1;
|
|
};
|
|
a1.byteLength = function(a0) {
|
|
return 3 * a0.length / 4 - placeHoldersCount(a0);
|
|
};
|
|
a1.toByteArray = toByteArray_64319;
|
|
a1.fromByteArray = fromByteArray_64320;
|
|
const items3 = [];
|
|
const items2 = [];
|
|
const Uint8Array = global.Uint8Array;
|
|
let r0 = typeof Uint8Array !== 'undefined' ? global.Uint8Array : global.Array;
|
|
let value = 0;
|
|
r0 = value;
|
|
reducibleLoop4: while (true) {
|
|
items3[r0] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'[r0];
|
|
charCodeAt = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charCodeAt;
|
|
items2[Reflect.apply(charCodeAt, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
[r0])] = r0;
|
|
value2 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value2 < 64) {
|
|
r0 = value2;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
items2['-'.charCodeAt(value)] = 62;
|
|
value = '_'.charCodeAt(value);
|
|
items2[value] = 63;
|
|
function encodeChunk_64317(a0, a1, a2) { // fn#64317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:23643, offset: 0x01ba31e1, size: 192 bytes, params: 4, frame: 27
|
|
var r12;
|
|
var value3;
|
|
var property;
|
|
var push;
|
|
var binding;
|
|
var value4;
|
|
var value5;
|
|
let value = a1;
|
|
const items2 = [];
|
|
if (value < a2) {
|
|
for (r12 = value; true; r12 = value) {
|
|
value = a0[r12] << 16;
|
|
value3 = a0[r12 + 1] << 8;
|
|
property = a0[r12 + 2];
|
|
value = value + value3 + property;
|
|
push = items2.push;
|
|
binding = env0_0;
|
|
property = binding[value >> 18 & 63];
|
|
binding = env0_0;
|
|
value4 = property + binding[value >> 12 & 63];
|
|
binding = env0_0;
|
|
value5 = value4 + binding[value >> 6 & 63];
|
|
binding = env0_0;
|
|
Reflect.apply(push, items2, [value5 + binding[63 & value]]);
|
|
value = r12 + 3;
|
|
if (!(value < a2)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return items2.join('');
|
|
}
|
|
|
|
function toByteArray_64319(a0) { // fn#64319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:22537, offset: 0x01ba32cb, size: 504 bytes, params: 2, frame: 34
|
|
var r18;
|
|
var r10;
|
|
var r12;
|
|
var r13;
|
|
var r1;
|
|
var r2;
|
|
var value8;
|
|
var charCodeAt;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var property;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
const length = a0.length;
|
|
let value = environment;
|
|
const value2 = placeHoldersCount(a0);
|
|
let binding = env0_2;
|
|
const binding2 = new binding(3 * length / 4 - value2);
|
|
const value7 = 0;
|
|
reducibleJoin2: while (true) {
|
|
if (value2 > value7) {
|
|
value8 = length - 4;
|
|
r18 = value8;
|
|
break reducibleJoin2;
|
|
}
|
|
r18 = length;
|
|
break reducibleJoin2;
|
|
}
|
|
if (value7 < r18) {
|
|
r10 = value7;
|
|
r12 = value7;
|
|
r13 = value7;
|
|
reducibleLoop3: while (true) {
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
value9 = binding[Reflect.apply(charCodeAt, a0, [r13])] << 18;
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
value10 = binding[Reflect.apply(charCodeAt, a0, [r13 + 1])] << 12;
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
value11 = binding[Reflect.apply(charCodeAt, a0, [r13 + 2])] << 6;
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
property = binding[Reflect.apply(charCodeAt, a0, [r13 + 3])];
|
|
value12 = value9 | value10 | value11 | property;
|
|
value13 = typeof r10 === 'bigint' ? r10 : +r10;
|
|
binding2[value13] = value12 >> 16 & 255;
|
|
value14 = typeof value13 === 'bigint' ? value13 + 1n : +value13 + 1;
|
|
value15 = typeof value14 === 'bigint' ? value14 : +value14;
|
|
binding2[value15] = value12 >> 8 & 255;
|
|
value16 = typeof value15 === 'bigint' ? value15 + 1n : +value15 + 1;
|
|
value17 = typeof value16 === 'bigint' ? value16 : +value16;
|
|
value18 = typeof value17 === 'bigint' ? value17 + 1n : +value17 + 1;
|
|
binding2[value17] = 255 & value12;
|
|
value19 = r13 + 4;
|
|
value20 = r12 + 3;
|
|
if (value19 < r18) {
|
|
r10 = value18;
|
|
r12 = value20;
|
|
r13 = value19;
|
|
continue reducibleLoop3;
|
|
}
|
|
r1 = value19;
|
|
r2 = value18;
|
|
break reducibleLoop3;
|
|
}
|
|
} else {
|
|
r1 = value7;
|
|
r2 = value7;
|
|
}
|
|
if (value2 === 2) {
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
value26 = binding[Reflect.apply(charCodeAt, a0, [r1])] << 2;
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
binding2[typeof r2 === 'bigint' ? r2 : +r2] = 255 & (value26 | binding[Reflect.apply(charCodeAt, a0,
|
|
[r1 + 1])] >> 4);
|
|
} else {
|
|
reducibleJoin8: while (true) {
|
|
if (value2 !== 1) {
|
|
break reducibleJoin8;
|
|
}
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
property = binding[Reflect.apply(charCodeAt, a0, [r1])];
|
|
value21 = property << 10;
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
value22 = binding[Reflect.apply(charCodeAt, a0, [r1 + 1])] << 4;
|
|
binding = env0_1;
|
|
charCodeAt = a0.charCodeAt;
|
|
value = binding[Reflect.apply(charCodeAt, a0, [r1 + 2])] >> 2;
|
|
value = value21 | value22 | value;
|
|
value23 = typeof r2 === 'bigint' ? r2 : +r2;
|
|
binding2[value23] = value >> 8 & 255;
|
|
value24 = typeof value23 === 'bigint' ? value23 + 1n : +value23 + 1;
|
|
value25 = typeof value24 === 'bigint' ? value24 : +value24;
|
|
binding2[value25] = 255 & value;
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
return binding2;
|
|
}
|
|
|
|
function fromByteArray_64320(a0) { // fn#64320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:23021, offset: 0x01ba34c3, size: 292 bytes, params: 2, frame: 24
|
|
var r8;
|
|
var r10;
|
|
var r1;
|
|
var push;
|
|
var encodeChunk_64317Binding;
|
|
var value5;
|
|
var binding;
|
|
var value7;
|
|
var value8;
|
|
var property;
|
|
const length = a0.length;
|
|
let value = length % 3;
|
|
const items2 = [];
|
|
const value2 = length - value;
|
|
const value4 = 0;
|
|
if (value4 < value2) {
|
|
r8 = value4;
|
|
while (true) {
|
|
push = items2.push;
|
|
encodeChunk_64317Binding = encodeChunk_64317;
|
|
value5 = r8 + 16383;
|
|
r10 = value5 > value2 ? value2 : value5;
|
|
Reflect.apply(push, items2, [encodeChunk_64317Binding(a0, r8, r10)]);
|
|
if (value5 < value2) {
|
|
r8 = value5;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
if (value === 1) {
|
|
property = a0[length - 1];
|
|
binding = env0_0;
|
|
value = String(binding[property >> 2]);
|
|
binding = env0_0;
|
|
value = value + binding[property << 4 & 63] + '==';
|
|
r1 = value;
|
|
} else if (value !== 2) {
|
|
r1 = '';
|
|
} else {
|
|
value = a0[length - 2] << 8;
|
|
value += a0[length - 1];
|
|
binding = env0_0;
|
|
value7 = String(binding[value >> 10]);
|
|
binding = env0_0;
|
|
value8 = value7 + binding[value >> 4 & 63];
|
|
binding = env0_0;
|
|
value = value8 + binding[value << 2 & 63] + '=';
|
|
r1 = value;
|
|
}
|
|
items2.push(r1);
|
|
return items2.join('');
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64321(a0, a1) { // fn#64321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:23855, offset: 0x01ba35e7, size: 31 bytes, params: 3, frame: 3
|
|
a1.read = read_64322;
|
|
a1.write = write_64323;
|
|
}
|
|
|
|
function _fun64324(a0, a1) { // fn#64324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:24737, offset: 0x01ba3606, size: 47 bytes, params: 3, frame: 3
|
|
const env0_0 = ({}).toString;
|
|
const Array = global.Array;
|
|
a0.exports = Array.isArray || _fun64325;
|
|
function _fun64325(a0) { // fn#64325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:24794, offset: 0x01ba3635, size: 30 bytes, params: 2, frame: 11
|
|
return toString.call(a0) == '[object Array]';
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64326(a0, a1) { // fn#64326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:24842, offset: 0x01ba3653, size: 362 bytes, params: 3, frame: 9
|
|
var r6;
|
|
var r5;
|
|
var setTimeout;
|
|
var value;
|
|
var error;
|
|
var clearTimeout;
|
|
const closure = function() {
|
|
var Error = global.Error;
|
|
throw new Error('setTimeout has not been defined');
|
|
};
|
|
const closure2 = function() {
|
|
var Error = global.Error;
|
|
throw new Error('clearTimeout has not been defined');
|
|
};
|
|
const closure3 = function(a0, a1) {
|
|
this.fun = a0;
|
|
this.array = a1;
|
|
};
|
|
const closure4 = function() {
|
|
};
|
|
const object = {};
|
|
a0.exports = object;
|
|
try {
|
|
setTimeout = global.setTimeout;
|
|
value = typeof setTimeout === 'function';
|
|
if (value) {
|
|
setTimeout = global.setTimeout;
|
|
r6 = setTimeout;
|
|
} else {
|
|
r6 = closure;
|
|
}
|
|
var env0_0 = r6;
|
|
} catch (error) {
|
|
env0_0 = closure;
|
|
}
|
|
try {
|
|
clearTimeout = global.clearTimeout;
|
|
value = typeof clearTimeout === 'function';
|
|
if (value) {
|
|
clearTimeout = global.clearTimeout;
|
|
r5 = clearTimeout;
|
|
} else {
|
|
r5 = closure2;
|
|
}
|
|
var env0_1 = r5;
|
|
} catch (error) {
|
|
env0_1 = closure2;
|
|
}
|
|
const env0_3 = [];
|
|
object.nextTick = nextTick;
|
|
closure3.prototype.run = function() {
|
|
this.fun.apply(null, this.array);
|
|
};
|
|
object.title = 'browser';
|
|
object.browser = true;
|
|
object.env = {};
|
|
object.argv = [];
|
|
object.version = '';
|
|
object.versions = {};
|
|
object.on = closure4;
|
|
object.addListener = closure4;
|
|
object.once = closure4;
|
|
object.off = closure4;
|
|
object.removeListener = closure4;
|
|
object.removeAllListeners = closure4;
|
|
object.emit = closure4;
|
|
object.binding = function(a0) {
|
|
var Error = global.Error;
|
|
throw new Error('process.binding is not supported');
|
|
};
|
|
object.cwd = function() {
|
|
return '/';
|
|
};
|
|
object.chdir = function(a0) {
|
|
var Error = global.Error;
|
|
throw new Error('process.chdir is not supported');
|
|
};
|
|
object.umask = function() {
|
|
return 0;
|
|
};
|
|
function runTimeout(a0) { // fn#64329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:25042, offset: 0x01ba3805, size: 178 bytes, params: 2, frame: 18
|
|
var value;
|
|
var defaultSetTimoutBinding;
|
|
var setTimeout;
|
|
var value2;
|
|
var error;
|
|
var call;
|
|
var value3;
|
|
exceptionSkip14: while (true) {
|
|
exceptionLanding14: while (true) {
|
|
exceptionSkip8: while (true) {
|
|
exceptionLanding8: while (true) {
|
|
value = environment;
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
setTimeout = global.setTimeout;
|
|
if (defaultSetTimoutBinding === setTimeout) {
|
|
return global.setTimeout(a0, 0);
|
|
}
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
if (defaultSetTimoutBinding === defaultSetTimout) {
|
|
setTimeout = global.setTimeout;
|
|
if (setTimeout) {
|
|
setTimeout = global.setTimeout;
|
|
env0_0 = setTimeout;
|
|
setTimeout = global.setTimeout;
|
|
return setTimeout(a0, 0);
|
|
}
|
|
try {
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
} catch (error) {
|
|
break exceptionLanding8;
|
|
}
|
|
try {
|
|
value2 = defaultSetTimoutBinding(a0, 0);
|
|
} catch (error) {
|
|
break exceptionLanding8;
|
|
}
|
|
return value2;
|
|
}
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
if (defaultSetTimoutBinding) {
|
|
try {
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
} catch (error) {
|
|
break exceptionLanding8;
|
|
}
|
|
try {
|
|
value2 = defaultSetTimoutBinding(a0, 0);
|
|
} catch (error) {
|
|
break exceptionLanding8;
|
|
}
|
|
return value2;
|
|
}
|
|
setTimeout = global.setTimeout;
|
|
if (setTimeout) {
|
|
setTimeout = global.setTimeout;
|
|
env0_0 = setTimeout;
|
|
setTimeout = global.setTimeout;
|
|
return setTimeout(a0, 0);
|
|
}
|
|
try {
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
} catch (error) {
|
|
break exceptionLanding8;
|
|
}
|
|
try {
|
|
value2 = defaultSetTimoutBinding(a0, 0);
|
|
} catch (error) {
|
|
break exceptionLanding8;
|
|
}
|
|
return value2;
|
|
break exceptionSkip8;
|
|
}
|
|
try {
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
try {
|
|
call = defaultSetTimoutBinding.call;
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(call, defaultSetTimoutBinding, [null, a0, 0]);
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
return value3;
|
|
break exceptionSkip8;
|
|
}
|
|
break exceptionSkip14;
|
|
}
|
|
defaultSetTimoutBinding = defaultSetTimout;
|
|
call = defaultSetTimoutBinding.call;
|
|
return Reflect.apply(call, defaultSetTimoutBinding, [this, a0, 0]);
|
|
break exceptionSkip14;
|
|
}
|
|
}
|
|
|
|
function cleanUpNextTick() { // fn#64330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:25505, offset: 0x01ba38b7, size: 95 bytes, params: 1, frame: 12
|
|
var length;
|
|
if (env0_4 && env0_2) {
|
|
length = env0_2.length;
|
|
env0_3 = length ? env0_2.concat(env0_3) : env0_3;
|
|
length = env0_3.length;
|
|
if (length) {
|
|
drainQueue();
|
|
}
|
|
}
|
|
}
|
|
|
|
function drainQueue() { // fn#64331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:25596, offset: 0x01ba3916, size: 301 bytes, params: 1, frame: 17
|
|
var length;
|
|
var value;
|
|
var value2;
|
|
var binding;
|
|
var value3;
|
|
var property;
|
|
var run;
|
|
var value4;
|
|
var defaultClearTimeoutBinding;
|
|
var clearTimeout;
|
|
var error;
|
|
var call;
|
|
exceptionSkip19: while (true) {
|
|
exceptionLanding19: while (true) {
|
|
exceptionSkip14: while (true) {
|
|
exceptionLanding14: while (true) {
|
|
value = environment;
|
|
if (!env0_4) {
|
|
value2 = runTimeout(cleanUpNextTick);
|
|
env0_4 = true;
|
|
length = env0_3.length;
|
|
if (!length) {
|
|
continue;
|
|
}
|
|
while (true) {
|
|
env0_2 = env0_3;
|
|
binding = env0_5;
|
|
value3 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
env0_5 = value3;
|
|
if (value3 < length) {
|
|
while (true) {
|
|
if (env0_2) {
|
|
property = env0_2[env0_5];
|
|
run = property.run;
|
|
Reflect.apply(run, property, []);
|
|
}
|
|
binding = env0_5;
|
|
value4 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
env0_5 = value4;
|
|
if (value4 < length) {
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
env0_5 = -1;
|
|
length = [].length;
|
|
if (length) {
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
env0_2 = null;
|
|
env0_4 = false;
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
clearTimeout = global.clearTimeout;
|
|
if (defaultClearTimeoutBinding === clearTimeout) {
|
|
global.clearTimeout(value2);
|
|
break;
|
|
}
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
if (defaultClearTimeoutBinding === defaultClearTimeout) {
|
|
clearTimeout = global.clearTimeout;
|
|
if (clearTimeout) {
|
|
clearTimeout = global.clearTimeout;
|
|
env0_1 = clearTimeout;
|
|
clearTimeout = global.clearTimeout;
|
|
clearTimeout(value2);
|
|
break;
|
|
}
|
|
try {
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
try {
|
|
defaultClearTimeoutBinding(value2);
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
break;
|
|
}
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
if (defaultClearTimeoutBinding) {
|
|
try {
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
try {
|
|
defaultClearTimeoutBinding(value2);
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
break;
|
|
}
|
|
clearTimeout = global.clearTimeout;
|
|
if (clearTimeout) {
|
|
clearTimeout = global.clearTimeout;
|
|
env0_1 = clearTimeout;
|
|
clearTimeout = global.clearTimeout;
|
|
clearTimeout(value2);
|
|
break;
|
|
}
|
|
try {
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
try {
|
|
defaultClearTimeoutBinding(value2);
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
break;
|
|
}
|
|
return undefined;
|
|
break exceptionSkip14;
|
|
}
|
|
try {
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
call = defaultClearTimeoutBinding.call;
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
try {
|
|
Reflect.apply(call, defaultClearTimeoutBinding, [null, value2]);
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
return undefined;
|
|
break exceptionSkip14;
|
|
}
|
|
break exceptionSkip19;
|
|
}
|
|
defaultClearTimeoutBinding = defaultClearTimeout;
|
|
call = defaultClearTimeoutBinding.call;
|
|
Reflect.apply(call, defaultClearTimeoutBinding, [global, value2]);
|
|
return undefined;
|
|
break exceptionSkip19;
|
|
}
|
|
}
|
|
|
|
function nextTick(a0) { // fn#64334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:26065, offset: 0x01ba3a5b, size: 169 bytes, params: 2, frame: 18
|
|
var r2;
|
|
var value5;
|
|
var value6;
|
|
const Array = global.Array;
|
|
let value = 1;
|
|
const array = new Array(arguments.length - value);
|
|
reducibleJoin3: while (true) {
|
|
if (!(arguments.length > value)) {
|
|
break reducibleJoin3;
|
|
}
|
|
if (!(value < arguments.length)) {
|
|
break reducibleJoin3;
|
|
}
|
|
r2 = value;
|
|
reducibleLoop2: while (true) {
|
|
value5 = r2 - value;
|
|
array[value5] = arguments[r2];
|
|
value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value6 < arguments.length) {
|
|
r2 = value6;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
let binding = env0_3;
|
|
const push = binding.push;
|
|
const value8 = Object.create(Item.prototype, {constructor: {value: Item}});
|
|
const item = new Item(a0, array);
|
|
Reflect.apply(push, binding, [item instanceof Object ? item : value8]);
|
|
value = value !== env0_3.length;
|
|
reducibleJoin5: while (true) {
|
|
if (value) {
|
|
r2 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
binding = env0_4;
|
|
r2 = binding;
|
|
break reducibleJoin5;
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (r2) {
|
|
break reducibleJoin7;
|
|
}
|
|
runTimeout(drainQueue);
|
|
break reducibleJoin7;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64341(a0, a1, a2) { // fn#64341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:26725, offset: 0x01ba3b71, size: 40 bytes, params: 4, frame: 15
|
|
const env0_0 = a1;
|
|
_fun64342.call(a1, a2(7));
|
|
function _fun64342(a0) { // fn#64342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:26742, offset: 0x01ba3b99, size: 222 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
const filter_64344 = function(a0, a1) {
|
|
var r5;
|
|
if (a0.filter) {
|
|
return a0.filter(a1);
|
|
}
|
|
var items = [];
|
|
var value = 0;
|
|
if (value < a0.length) {
|
|
r5 = value;
|
|
while (true) {
|
|
if (a1(a0[r5], r5, a0)) {
|
|
items.push(a0[r5]);
|
|
}
|
|
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value < a0.length) {
|
|
r5 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items;
|
|
};
|
|
const env0_1 = RegExp('^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$', '');
|
|
require.resolve = resolve_64346;
|
|
require.normalize = normalize_64348;
|
|
require.isAbsolute = function(a0) {
|
|
return a0.charAt(0) === '/';
|
|
};
|
|
require.join = function() {
|
|
var value = global.Array.prototype.slice.call(arguments, 0);
|
|
value = filter_64344(value, _fun64352);
|
|
return require.normalize(value.join('/'));
|
|
};
|
|
require.relative = relative_64353;
|
|
require.sep = '/';
|
|
require.delimiter = ':';
|
|
require.dirname = dirname_64355;
|
|
require.basename = function(a0, a1) {
|
|
var r0;
|
|
var value = a1;
|
|
var property = splitPath_64345(a0)[2];
|
|
if (value && property.substr(-1 * value.length) === value) {
|
|
value = property.substr(0, property.length - value.length);
|
|
r0 = value;
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
};
|
|
require.extname = extname;
|
|
const env0_3 = 'ab'.substr(-1) === 'b' ? function(a0, a1, a2) {
|
|
return a0.substr(a1, a2);
|
|
} : _fun64359;
|
|
function splitPath_64345(a0) { // fn#64345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:27016, offset: 0x01ba3cd2, size: 36 bytes, params: 2, frame: 11
|
|
return env0_1.exec(a0).slice(1);
|
|
}
|
|
|
|
function resolve_64346() { // fn#64346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:27194, offset: 0x01ba3cf6, size: 250 bytes, params: 1, frame: 26
|
|
var r4;
|
|
var r7;
|
|
var r11;
|
|
var r16;
|
|
var r14;
|
|
var r0;
|
|
var r6;
|
|
var r1;
|
|
var binding;
|
|
var charAt;
|
|
var value6;
|
|
var normalizeArray_64343Binding;
|
|
var filter_64344Binding;
|
|
let value = arguments.length - 1;
|
|
const value2 = '';
|
|
const value3 = false;
|
|
const value4 = '/';
|
|
if (value >= -1) {
|
|
r4 = value3;
|
|
r7 = value2;
|
|
r11 = value;
|
|
while (true) {
|
|
if (r11 >= 0) {
|
|
r16 = arguments[r11];
|
|
} else {
|
|
binding = env0_0;
|
|
r16 = binding.cwd();
|
|
}
|
|
if (typeof r16 !== 'string') {
|
|
throw new global.TypeError('Arguments to path.resolve must be strings');
|
|
}
|
|
if (!r16) {
|
|
r14 = r7;
|
|
continue;
|
|
}
|
|
value = r16 + value4 + r7;
|
|
charAt = r16.charAt;
|
|
value6 = value4 === Reflect.apply(charAt, r16, [0]);
|
|
r4 = value6;
|
|
r14 = value;
|
|
value = typeof r11 === 'bigint' ? r11 - 1n : +r11 - 1;
|
|
if (value >= -1) {
|
|
if (r4) {
|
|
r0 = r4;
|
|
r6 = r14;
|
|
break;
|
|
}
|
|
r7 = r14;
|
|
r11 = value;
|
|
continue;
|
|
}
|
|
r0 = r4;
|
|
r6 = r14;
|
|
break;
|
|
}
|
|
r1 = r0 ? value4 : value2;
|
|
normalizeArray_64343Binding = normalizeArray_64343;
|
|
filter_64344Binding = filter_64344;
|
|
value = r6.split(value4);
|
|
value = filter_64344Binding(value, function(a0) {
|
|
return !!a0;
|
|
});
|
|
normalizeArray_64343Binding(value, !r0);
|
|
value = r1 + value.join(value4);
|
|
r0 = value || '.';
|
|
return r0;
|
|
}
|
|
r0 = value3;
|
|
r6 = value2;
|
|
r1 = r0 ? value4 : value2;
|
|
normalizeArray_64343Binding = normalizeArray_64343;
|
|
filter_64344Binding = filter_64344;
|
|
value = r6.split(value4);
|
|
value = filter_64344Binding(value, function(a0) {
|
|
return !!a0;
|
|
});
|
|
normalizeArray_64343Binding(value, !r0);
|
|
value = r1 + value.join(value4);
|
|
return value || '.';
|
|
}
|
|
|
|
function normalize_64348(a0) { // fn#64348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:27527, offset: 0x01ba3df0, size: 151 bytes, params: 2, frame: 17
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
value = require.isAbsolute(a0);
|
|
const value3 = env0_3(a0, -1);
|
|
const value4 = '/';
|
|
const value5 = value4 === value3;
|
|
const normalizeArray_64343Binding = normalizeArray_64343;
|
|
const value7 = filter_64344(a0.split(value4), function(a0) {
|
|
return !!a0;
|
|
});
|
|
normalizeArray_64343Binding(value7, !value);
|
|
const value8 = value7.join(value4);
|
|
const r0 = value8 || value ? value8 : '.';
|
|
return (value ? value4 : '') + (r0 && value5 ? r0 + value4 : r0);
|
|
}
|
|
|
|
function join_64351() { // fn#64351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:27760, offset: 0x01ba3e87, size: 94 bytes, params: 1, frame: 15
|
|
const Array = global.Array;
|
|
let value = Array.prototype.slice.call(arguments, 0);
|
|
const normalize = require.normalize;
|
|
value = filter_64344(value, function(a0, a1) {
|
|
if (typeof a0 !== 'string') {
|
|
throw new global.TypeError('Arguments to path.join must be strings');
|
|
}
|
|
return a0;
|
|
});
|
|
return Reflect.apply(normalize, require, [value.join('/')]);
|
|
}
|
|
|
|
function relative_64353(a0, a1) { // fn#64353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:27979, offset: 0x01ba3f19, size: 243 bytes, params: 3, frame: 17
|
|
var environment;
|
|
var r0;
|
|
var r4;
|
|
var r1;
|
|
var property;
|
|
var value7;
|
|
var value8;
|
|
const relative_64353Trim2 = relative_64353Trim;
|
|
let value = environment.__proto__;
|
|
value = require.resolve(a0);
|
|
value = value.substr(1);
|
|
const value3 = require.resolve(a1).substr(1);
|
|
value = value.split('/');
|
|
value = relative_64353Trim2(value);
|
|
const value4 = relative_64353Trim2(value3.split('/'));
|
|
const Math = global.Math;
|
|
const min = Math.min;
|
|
let length = value.length;
|
|
const value5 = Reflect.apply(min, Math, [length, value4.length]);
|
|
const value6 = 0;
|
|
if (value6 < value5) {
|
|
r0 = value6;
|
|
while (true) {
|
|
property = value[r0];
|
|
if (property !== value4[r0]) {
|
|
r4 = r0;
|
|
break;
|
|
}
|
|
value7 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value7 < value5) {
|
|
r0 = value7;
|
|
continue;
|
|
}
|
|
r4 = value5;
|
|
break;
|
|
}
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
const items2 = [];
|
|
length = value.length;
|
|
if (r4 < length) {
|
|
for (r1 = r4; true; r1 = value8) {
|
|
items2.push('..');
|
|
value8 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
length = value.length;
|
|
if (!(value8 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return items2.concat(value4.slice(r4)).join('/');
|
|
}
|
|
|
|
function dirname_64355(a0) { // fn#64355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:28417, offset: 0x01ba400c, size: 73 bytes, params: 2, frame: 17
|
|
const value = splitPath_64345(a0);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
return property || property2 ? property + (property2 && property2.substr(0, property2.length - 1)) : '.';
|
|
}
|
|
|
|
function extname(a0) { // fn#64357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:28630, offset: 0x01ba40b8, size: 26 bytes, params: 2, frame: 11
|
|
return splitPath_64345(a0)[3];
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64360(a0, a1, a2) { // fn#64360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:28798, offset: 0x01ba4112, size: 47 bytes, params: 4, frame: 16
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const closure = _fun64361;
|
|
closure.call(a1, global, a2(7));
|
|
function _fun64361(a0, a1) { // fn#64361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:28815, offset: 0x01ba4141, size: 656 bytes, params: 3, frame: 25
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const inspect_643622 = inspect_64362;
|
|
const stylizeWithColor_64363 = function(a0, a1) {
|
|
var r0;
|
|
var value = a0;
|
|
var property = inspect_64362.styles[a1];
|
|
if (property) {
|
|
inspect_64362Binding = inspect_64362;
|
|
value = '\x1b[' + inspect_64362Binding.colors[property][0] + 'm' + value;
|
|
property = inspect_64362Binding.colors[property][1];
|
|
value = value + '\x1b[' + property + 'm';
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const stylizeNoColor_64364 = function(a0, a1) {
|
|
return a0;
|
|
};
|
|
const formatError_64373 = function(a0) {
|
|
return '[' + global.Error.prototype.toString.call(a0) + ']';
|
|
};
|
|
const closure2 = function(a0) {
|
|
var Array = global.Array;
|
|
return Array.isArray(a0);
|
|
};
|
|
const closure3 = function(a0) {
|
|
return typeof a0 === 'boolean';
|
|
};
|
|
const closure4 = function(a0) {
|
|
return a0 === null;
|
|
};
|
|
const closure5 = function(a0) {
|
|
return typeof a0 === 'number';
|
|
};
|
|
const closure6 = function(a0) {
|
|
return typeof a0 === 'string';
|
|
};
|
|
const closure7 = function(a0) {
|
|
return a0 === undefined;
|
|
};
|
|
const isRegExp_643832 = isRegExp_64383;
|
|
const closure9 = function(a0) {
|
|
return typeof a0 === 'object' && a0 !== null;
|
|
};
|
|
const isDate_643852 = isDate_64385;
|
|
const isError_643862 = isError_64386;
|
|
const closure12 = function(a0) {
|
|
return typeof a0 === 'function';
|
|
};
|
|
const objectToString_64388 = function(a0) {
|
|
return global.Object.prototype.toString.call(a0);
|
|
};
|
|
const pad_64389 = function(a0) {
|
|
var r0;
|
|
var value;
|
|
if (a0 < 10) {
|
|
value = a0.toString(10);
|
|
value = '0' + value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = a0.toString(10);
|
|
}
|
|
return r0;
|
|
};
|
|
const hasOwnProperty_64390 = function(a0, a1) {
|
|
return global.Object.prototype.hasOwnProperty.call(a0, a1);
|
|
};
|
|
const env0_2 = RegExp('%[sdj%]', 'g');
|
|
require.format = format_64391;
|
|
require.deprecate = deprecate_64393;
|
|
const env0_4 = {};
|
|
require.debuglog = debuglog_64396;
|
|
require.inspect = inspect_643622;
|
|
inspect_643622.colors = {bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39],
|
|
grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31,
|
|
39], yellow: [33, 39]};
|
|
inspect_643622.styles = {'special': 'cyan', 'number': 'yellow', 'boolean': 'yellow', 'undefined': 'grey',
|
|
'null': 'bold', 'string': 'green', 'date': 'magenta', 'regexp': 'red'};
|
|
require.isArray = closure2;
|
|
require.isBoolean = closure3;
|
|
require.isNull = closure4;
|
|
require.isNullOrUndefined = function(a0) {
|
|
return a0 == null;
|
|
};
|
|
require.isNumber = closure5;
|
|
require.isString = closure6;
|
|
require.isSymbol = function(a0) {
|
|
return typeof a0 === 'symbol';
|
|
};
|
|
require.isUndefined = closure7;
|
|
require.isRegExp = isRegExp_643832;
|
|
require.isObject = closure9;
|
|
require.isDate = isDate_643852;
|
|
require.isError = isError_643862;
|
|
require.isFunction = closure12;
|
|
require.isPrimitive = function(a0) {
|
|
var r0;
|
|
r0 = a0 === null || typeof a0 === 'boolean';
|
|
r0 = !r0 ? typeof a0 === 'number' : r0;
|
|
r0 = !r0 ? typeof a0 === 'string' : r0;
|
|
r0 = !r0 ? typeof a0 === 'symbol' : r0;
|
|
r0 = !r0 ? a0 === undefined : r0;
|
|
return r0;
|
|
};
|
|
require.isBuffer = importDefault(11);
|
|
const env0_5 = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
require.log = log_64402;
|
|
require.inherits = importDefault(12);
|
|
require._extend = _extend_64403;
|
|
function inspect_64362(a0, a1) { // fn#64362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:29665, offset: 0x01ba43d1, size: 259 bytes, params: 3, frame: 18
|
|
var value2;
|
|
const object = {seen: []};
|
|
object.stylize = stylizeNoColor_64364;
|
|
if (arguments.length >= 3) {
|
|
object.depth = arguments[2];
|
|
}
|
|
if (arguments.length >= 4) {
|
|
object.colors = arguments[3];
|
|
}
|
|
if (isBoolean_64378(a1)) {
|
|
object.showHidden = a1;
|
|
} else if (a1) {
|
|
value2 = environment.__proto__;
|
|
require._extend(object, a1);
|
|
}
|
|
if (isUndefined_64382(object.showHidden)) {
|
|
object.showHidden = false;
|
|
}
|
|
if (isUndefined_64382(object.depth)) {
|
|
object.depth = 2;
|
|
}
|
|
if (isUndefined_64382(object.colors)) {
|
|
object.colors = false;
|
|
}
|
|
if (isUndefined_64382(object.customInspect)) {
|
|
object.customInspect = true;
|
|
}
|
|
if (object.colors) {
|
|
object.stylize = stylizeWithColor_64363;
|
|
}
|
|
return formatValue_64365(object, a0, object.depth);
|
|
}
|
|
|
|
function formatValue_64365(a0, a1, a2) { // fn#64365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:30265, offset: 0x01ba4538, size: 1271 bytes, params: 4, frame: 31
|
|
var environment;
|
|
var r0;
|
|
var r15;
|
|
var r11;
|
|
var items2;
|
|
var r17;
|
|
var r12;
|
|
var r10;
|
|
var r9;
|
|
var value;
|
|
var isFunction_64387Binding;
|
|
var inspect;
|
|
var value2;
|
|
var inspect2;
|
|
var constructor;
|
|
var prototype;
|
|
var stylize;
|
|
var value4;
|
|
var getOwnPropertyNames;
|
|
var value16;
|
|
var indexOf;
|
|
var value19;
|
|
var name;
|
|
var value21;
|
|
var value22;
|
|
var RegExp;
|
|
var toString;
|
|
var call;
|
|
var value23;
|
|
var value24;
|
|
var Date;
|
|
var toUTCString;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var seen;
|
|
var push;
|
|
var map;
|
|
var pop;
|
|
var value29;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
if (a0.customInspect) {
|
|
reducibleJoin6: while (true) {
|
|
if (a1) {
|
|
value = environment;
|
|
isFunction_64387Binding = isFunction_64387;
|
|
inspect = a1.inspect;
|
|
if (isFunction_64387Binding(inspect)) {
|
|
inspect = a1.inspect;
|
|
value2 = environment.__proto__;
|
|
inspect2 = require.inspect;
|
|
if (inspect !== inspect2) {
|
|
constructor = a1.constructor;
|
|
if (constructor) {
|
|
constructor = a1.constructor;
|
|
prototype = constructor.prototype;
|
|
reducibleJoin62: while (true) {
|
|
if (prototype !== a1) {
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
}
|
|
inspect = a1.inspect;
|
|
value29 = Reflect.apply(inspect, a1, [a2, a0]);
|
|
reducibleJoin64: while (true) {
|
|
if (isString_64381(value29)) {
|
|
r0 = value29;
|
|
break reducibleJoin64;
|
|
}
|
|
value = formatValue_64365(a0, value29, a2);
|
|
r0 = value;
|
|
break reducibleJoin64;
|
|
}
|
|
return r0;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
}
|
|
value = environment;
|
|
if (isUndefined_64382(a1)) {
|
|
r0 = a0.stylize('undefined', 'undefined');
|
|
} else if (isString_64381(a1)) {
|
|
r0 = a0.stylize("'" + global.JSON.stringify(a1).replace(RegExp('^"|"$', 'g'), '').replace(RegExp("'", 'g'),
|
|
"\\'").replace(RegExp('\\\\"', 'g'), '"') + "'", 'string');
|
|
} else if (isNumber_64380(a1)) {
|
|
r0 = a0.stylize(String(a1), 'number');
|
|
} else if (isBoolean_64378(a1)) {
|
|
r0 = a0.stylize(String(a1), 'boolean');
|
|
} else {
|
|
reducibleJoin16: while (true) {
|
|
if (isNull_64379(a1)) {
|
|
stylize = a0.stylize;
|
|
value4 = Reflect.apply(stylize, a0, ['null', 'null']);
|
|
r0 = value4;
|
|
break reducibleJoin16;
|
|
}
|
|
r0 = undefined;
|
|
break reducibleJoin16;
|
|
}
|
|
}
|
|
if (r0) {
|
|
return r0;
|
|
}
|
|
let Object = global.Object;
|
|
const value14 = Object.keys(a1);
|
|
const value15 = ((a0) => {
|
|
a0.forEach(_fun64367);
|
|
return {};
|
|
})(value14);
|
|
reducibleJoin19: while (true) {
|
|
if (a0.showHidden) {
|
|
Object = global.Object;
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value16 = Reflect.apply(getOwnPropertyNames, Object, [a1]);
|
|
r15 = value16;
|
|
break reducibleJoin19;
|
|
}
|
|
r15 = value14;
|
|
break reducibleJoin19;
|
|
}
|
|
if (isError_64386(a1)) {
|
|
reducibleJoin22: while (true) {
|
|
reducibleJoin60: while (true) {
|
|
if (r15.indexOf('message') >= 0) {
|
|
break reducibleJoin60;
|
|
}
|
|
indexOf = r15.indexOf;
|
|
if (Reflect.apply(indexOf, r15, ['description']) >= 0) {
|
|
break reducibleJoin60;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
return formatError_64373(a1);
|
|
}
|
|
}
|
|
let length = r15.length;
|
|
if (length === 0) {
|
|
if (isFunction_64387(a1)) {
|
|
name = a1.name;
|
|
value = '';
|
|
reducibleJoin59: while (true) {
|
|
if (name) {
|
|
name = a1.name;
|
|
value = ': ' + name;
|
|
r9 = value;
|
|
break reducibleJoin59;
|
|
}
|
|
r9 = value;
|
|
break reducibleJoin59;
|
|
}
|
|
return a0.stylize('[Function' + r9 + ']', 'special');
|
|
}
|
|
if (isRegExp_64383(a1)) {
|
|
return a0.stylize(global.RegExp.prototype.toString.call(a1), 'regexp');
|
|
}
|
|
if (isDate_64385(a1)) {
|
|
return a0.stylize(global.Date.prototype.toString.call(a1), 'date');
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
if (isError_64386(a1)) {
|
|
return formatError_64373(a1);
|
|
}
|
|
break reducibleJoin27;
|
|
}
|
|
}
|
|
const value18 = false;
|
|
var env0_4;
|
|
reducibleJoin29: while (true) {
|
|
if (isArray_64377(a1)) {
|
|
value19 = true;
|
|
env0_4 = value19;
|
|
r11 = value19;
|
|
items2 = ['[', ']'];
|
|
break reducibleJoin29;
|
|
}
|
|
r11 = value18;
|
|
items2 = ['{', '}'];
|
|
break reducibleJoin29;
|
|
}
|
|
const isFunction_643872 = isFunction_64387(a1);
|
|
const value20 = '';
|
|
reducibleJoin33: while (true) {
|
|
if (isFunction_643872) {
|
|
name = a1.name;
|
|
reducibleJoin32: while (true) {
|
|
if (name) {
|
|
name = a1.name;
|
|
value21 = ': ' + name;
|
|
r17 = value21;
|
|
break reducibleJoin32;
|
|
}
|
|
r17 = value20;
|
|
break reducibleJoin32;
|
|
}
|
|
value22 = ' [Function' + r17 + ']';
|
|
r12 = value22;
|
|
break reducibleJoin33;
|
|
}
|
|
r12 = value20;
|
|
break reducibleJoin33;
|
|
}
|
|
reducibleJoin35: while (true) {
|
|
if (isRegExp_64383(a1)) {
|
|
RegExp = global.RegExp;
|
|
prototype = RegExp.prototype;
|
|
toString = prototype.toString;
|
|
call = toString.call;
|
|
value23 = Reflect.apply(call, toString, [a1]);
|
|
value24 = ' ' + value23;
|
|
r12 = value24;
|
|
break reducibleJoin35;
|
|
}
|
|
break reducibleJoin35;
|
|
}
|
|
reducibleJoin37: while (true) {
|
|
if (isDate_64385(a1)) {
|
|
Date = global.Date;
|
|
prototype = Date.prototype;
|
|
toUTCString = prototype.toUTCString;
|
|
call = toUTCString.call;
|
|
value25 = Reflect.apply(call, toUTCString, [a1]);
|
|
value26 = ' ' + value25;
|
|
r12 = value26;
|
|
break reducibleJoin37;
|
|
}
|
|
break reducibleJoin37;
|
|
}
|
|
reducibleJoin39: while (true) {
|
|
if (isError_64386(a1)) {
|
|
value27 = formatError_64373(a1);
|
|
value28 = ' ' + value27;
|
|
r12 = value28;
|
|
break reducibleJoin39;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
length = r15.length;
|
|
reducibleJoin53: while (true) {
|
|
reducibleJoin43: while (true) {
|
|
if (length !== 0) {
|
|
break reducibleJoin43;
|
|
}
|
|
if (r11) {
|
|
length = a1.length;
|
|
if (length != 0) {
|
|
break reducibleJoin43;
|
|
}
|
|
}
|
|
value = items2[0] + r12;
|
|
value += items2[1];
|
|
r9 = value;
|
|
break reducibleJoin53;
|
|
}
|
|
if (a2 < 0) {
|
|
value = isRegExp_64383(a1);
|
|
stylize = a0.stylize;
|
|
if (value) {
|
|
RegExp = global.RegExp;
|
|
prototype = RegExp.prototype;
|
|
toString = prototype.toString;
|
|
call = toString.call;
|
|
value = Reflect.apply(call, toString, [a1]);
|
|
value = Reflect.apply(stylize, a0, [value, 'regexp']);
|
|
r11 = value;
|
|
} else {
|
|
value = Reflect.apply(stylize, a0, ['[Object]', 'special']);
|
|
r11 = value;
|
|
}
|
|
r10 = r11;
|
|
} else {
|
|
seen = a0.seen;
|
|
push = seen.push;
|
|
Reflect.apply(push, seen, [a1]);
|
|
if (r11) {
|
|
r11 = formatValue_64365FormatArray(a0, a1, a2, value15, r15);
|
|
} else {
|
|
map = r15.map;
|
|
r11 = Reflect.apply(map, r15, [_fun64370]);
|
|
}
|
|
seen = a0.seen;
|
|
pop = seen.pop;
|
|
Reflect.apply(pop, seen, []);
|
|
value = formatValue_64365ReduceToSingleString(r11, r12, items2);
|
|
r10 = value;
|
|
}
|
|
r9 = r10;
|
|
break reducibleJoin53;
|
|
}
|
|
return r9;
|
|
function formatValue_64365ArrayToHash(a0) { // fn#64366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:30893, owner: formatValue_64365.arrayToHash, offset: 0x01ba4a2f, size: 28 bytes, params: 2, frame: 12
|
|
a0.forEach(_fun64367);
|
|
return {};
|
|
function _fun64367(a0, a1) { // fn#64367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:30944, offset: 0x00c3750a, size: 20 bytes, params: 3, frame: 3
|
|
env0_0[a0] = true;
|
|
}
|
|
|
|
}
|
|
|
|
function formatValue_64365FormatArray(a0, a1, a2, a3, a4) { // fn#64368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:31829, owner: formatValue_64365.formatArray, offset: 0x01ba4a4b, size: 169 bytes, params: 6, frame: 31
|
|
var r8;
|
|
var hasOwnProperty_64390Binding;
|
|
var String;
|
|
var push;
|
|
var formatProperty_64374Binding;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
const items2 = [];
|
|
const length = a1.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r8 = value;
|
|
while (true) {
|
|
hasOwnProperty_64390Binding = hasOwnProperty_64390;
|
|
String = global.String;
|
|
value = hasOwnProperty_64390Binding(a1, String(r8));
|
|
push = items2.push;
|
|
if (value) {
|
|
formatProperty_64374Binding = formatProperty_64374;
|
|
String = global.String;
|
|
Reflect.apply(push, items2, [formatProperty_64374Binding(a0, a1, a2, a3, String(r8), true)]);
|
|
} else {
|
|
Reflect.apply(push, items2, ['']);
|
|
}
|
|
value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
if (value < length) {
|
|
r8 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
a4.forEach(_fun64369);
|
|
return items2;
|
|
function _fun64369(a0) { // fn#64369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:31999, offset: 0x01ba4af4, size: 86 bytes, params: 2, frame: 23
|
|
var binding;
|
|
var push;
|
|
var value2;
|
|
if (!a0.match(RegExp('^\\d+$', ''))) {
|
|
binding = env0_4;
|
|
push = binding.push;
|
|
value2 = environment.__proto__.__proto__;
|
|
Reflect.apply(push, binding, [formatProperty_64374(env0_0, require, importDefault, importAll, a0, true)]);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64370(a0) { // fn#64370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:32090, offset: 0x01ba4b4a, size: 41 bytes, params: 2, frame: 21
|
|
return formatProperty_64374(env0_0, require, importDefault, env0_3, a0, env0_4);
|
|
}
|
|
|
|
function formatValue_64365ReduceToSingleString(a0, a1, a2) { // fn#64371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:32153, owner: formatValue_64365.reduceToSingleString, offset: 0x01ba4b73, size: 165 bytes, params: 4, frame: 16
|
|
var property;
|
|
let value = a0.reduce(function(a0, a1) {
|
|
a1.indexOf('\n') >= 0;
|
|
return a0 + a1.replace(RegExp('\\u001b\\[\\d\\d?m', 'g'), '').length + 1;
|
|
}, 0);
|
|
if (value > 60) {
|
|
property = a2[0];
|
|
value = '';
|
|
value = property + (value === a1 ? value : a1 + '\n ');
|
|
value = value + ' ' + a0.join(',\n ');
|
|
property = a2[1];
|
|
return value + ' ' + property;
|
|
}
|
|
value = a2[0] + a1;
|
|
value = value + ' ' + a0.join(', ');
|
|
return value + ' ' + a2[1];
|
|
}
|
|
|
|
}
|
|
|
|
function formatProperty_64374(a0, a1, a2, a3, a4, a5) { // fn#64374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:32498, offset: 0x01ba4c18, size: 670 bytes, params: 7, frame: 26
|
|
var r9;
|
|
var r8;
|
|
var seen;
|
|
var isNull_643792;
|
|
var formatValue_64365Binding;
|
|
var value7;
|
|
var value11;
|
|
var map;
|
|
var match;
|
|
const Object = global.Object;
|
|
let value = Object.getOwnPropertyDescriptor(a1, a4);
|
|
const r12 = value || ({value: a1[a4]});
|
|
const get = r12.get;
|
|
const set = r12.set;
|
|
let r0 = get ? set ? a0.stylize('[Getter/Setter]', 'special') : a0.stylize('[Getter]',
|
|
'special') : set ? a0.stylize('[Setter]', 'special') : undefined;
|
|
let r2 = hasOwnProperty_64390(a3, a4) ? undefined : '[' + a4 + ']';
|
|
if (!r0) {
|
|
seen = a0.seen;
|
|
if (seen.indexOf(r12.value) < 0) {
|
|
isNull_643792 = isNull_64379(a2);
|
|
formatValue_64365Binding = formatValue_64365;
|
|
value7 = r12.value;
|
|
r9 = isNull_643792 ? formatValue_64365Binding(a0, value7, null) : formatValue_64365Binding(a0, value7,
|
|
a2 - 1);
|
|
if (r9.indexOf('\n') > -1) {
|
|
value11 = r9.split('\n');
|
|
map = value11.map;
|
|
r9 = a5 ? Reflect.apply(map, value11, [function(a0) {
|
|
return ' ' + a0;
|
|
}]).join('\n').substr(2) : '\n' + Reflect.apply(map, value11, [_fun64376]).join('\n');
|
|
}
|
|
r8 = r9;
|
|
} else {
|
|
r8 = a0.stylize('[Circular]', 'special');
|
|
}
|
|
r0 = r8;
|
|
}
|
|
if (isUndefined_64382(r2)) {
|
|
if (a5) {
|
|
match = a4.match;
|
|
if (Reflect.apply(match, a4, [RegExp('^\\d+$', '')])) {
|
|
return r0;
|
|
}
|
|
value = global.JSON.stringify(String(a4));
|
|
match = value.match;
|
|
if (Reflect.apply(match, value, [RegExp('^"([a-zA-Z_][a-zA-Z_0-9]*)"$', '')])) {
|
|
value = value.substr(1, value.length - 2);
|
|
value = a0.stylize(value, 'name');
|
|
r2 = value;
|
|
} else {
|
|
value = value.replace(RegExp("'", 'g'), "\\'");
|
|
value = value.replace(RegExp('\\\\"', 'g'), '"');
|
|
value = value.replace(RegExp('(^"|"$)', 'g'), "'");
|
|
value = a0.stylize(value, 'string');
|
|
r2 = value;
|
|
}
|
|
return r2 + ': ' + r0;
|
|
}
|
|
value = global.JSON.stringify(String(a4));
|
|
match = value.match;
|
|
if (Reflect.apply(match, value, [RegExp('^"([a-zA-Z_][a-zA-Z_0-9]*)"$', '')])) {
|
|
value = value.substr(1, value.length - 2);
|
|
value = a0.stylize(value, 'name');
|
|
r2 = value;
|
|
} else {
|
|
value = value.replace(RegExp("'", 'g'), "\\'");
|
|
value = value.replace(RegExp('\\\\"', 'g'), '"');
|
|
value = value.replace(RegExp('(^"|"$)', 'g'), "'");
|
|
value = a0.stylize(value, 'string');
|
|
r2 = value;
|
|
}
|
|
}
|
|
return r2 + ': ' + r0;
|
|
}
|
|
|
|
function isRegExp_64383(a0) { // fn#64383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:33587, offset: 0x01ba4eb6, size: 39 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var value;
|
|
const isObject_643842 = isObject_64384(a0);
|
|
if (isObject_643842) {
|
|
value = objectToString_64388(a0);
|
|
value = value === '[object RegExp]';
|
|
r0 = value;
|
|
} else {
|
|
r0 = isObject_643842;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function isDate_64385(a0) { // fn#64385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:33722, offset: 0x01ba4edd, size: 39 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var value;
|
|
const isObject_643842 = isObject_64384(a0);
|
|
if (isObject_643842) {
|
|
value = objectToString_64388(a0);
|
|
value = value === '[object Date]';
|
|
r0 = value;
|
|
} else {
|
|
r0 = isObject_643842;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function isError_64386(a0) { // fn#64386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:33797, offset: 0x01ba4f04, size: 57 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var value;
|
|
const isObject_643842 = isObject_64384(a0);
|
|
if (isObject_643842) {
|
|
value = objectToString_64388(a0);
|
|
value = value === '[object Error]';
|
|
r0 = value || a0 instanceof global.Error;
|
|
} else {
|
|
r0 = isObject_643842;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function format_64391(a0) { // fn#64391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:28855, offset: 0x01ba4f3d, size: 270 bytes, params: 2, frame: 21
|
|
var r2;
|
|
var r4;
|
|
var r10;
|
|
var r0;
|
|
var push;
|
|
var binding;
|
|
var value2;
|
|
var length;
|
|
var value4;
|
|
var replace;
|
|
var value5;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
if (isString_64381(a0)) {
|
|
var env0_0 = 1;
|
|
var env0_1 = arguments;
|
|
length = arguments.length;
|
|
var length2 = length;
|
|
value4 = global.String(a0);
|
|
replace = value4.replace;
|
|
binding = length2;
|
|
value5 = Reflect.apply(replace, value4, [binding, _fun64392]);
|
|
if (env0_0 < length) {
|
|
r2 = value5;
|
|
r4 = arguments[env0_0];
|
|
reducibleLoop5: while (true) {
|
|
reducibleJoin9: while (true) {
|
|
reducibleJoin8: while (true) {
|
|
if (isNull_64379(r4)) {
|
|
break reducibleJoin8;
|
|
}
|
|
if (isObject_64384(r4)) {
|
|
value7 = r2 + (' ' + inspect_64362(r4));
|
|
r10 = value7;
|
|
break reducibleJoin9;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
value8 = r2 + (' ' + r4);
|
|
r10 = value8;
|
|
break reducibleJoin9;
|
|
}
|
|
binding = env0_0;
|
|
value9 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
env0_0 = value9;
|
|
value10 = arguments[value9];
|
|
if (value9 < length) {
|
|
r2 = r10;
|
|
r4 = value10;
|
|
continue reducibleLoop5;
|
|
}
|
|
r0 = r10;
|
|
break reducibleLoop5;
|
|
}
|
|
} else {
|
|
r0 = value5;
|
|
}
|
|
return r0;
|
|
}
|
|
const items2 = [];
|
|
env0_0 = 0;
|
|
if (0 < arguments.length) {
|
|
reducibleLoop2: while (true) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [inspect_64362(arguments[env0_0])]);
|
|
binding = env0_0;
|
|
value2 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
env0_0 = value2;
|
|
if (value2 < arguments.length) {
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
return items2.join(' ');
|
|
function _fun64392(a0) { // fn#64392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:29031, offset: 0x00e4fc9b, size: 205 bytes, params: 2, frame: 15
|
|
var JSON;
|
|
var stringify;
|
|
var binding2;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var error;
|
|
var Number;
|
|
var binding3;
|
|
var value4;
|
|
var String;
|
|
var binding4;
|
|
var value5;
|
|
if (a0 === '%%') {
|
|
return '%';
|
|
}
|
|
var value;
|
|
let binding = env0_0;
|
|
if (!(binding >= env0_2)) {
|
|
if (a0 === '%s') {
|
|
String = global.String;
|
|
binding = env0_1;
|
|
binding4 = env0_0;
|
|
value5 = typeof binding4 === 'bigint' ? binding4 : +binding4;
|
|
env0_0 = typeof value5 === 'bigint' ? value5 + 1n : +value5 + 1;
|
|
return String(binding[value5]);
|
|
}
|
|
if (a0 === '%d') {
|
|
Number = global.Number;
|
|
binding = env0_1;
|
|
binding3 = env0_0;
|
|
value4 = typeof binding3 === 'bigint' ? binding3 : +binding3;
|
|
env0_0 = typeof value4 === 'bigint' ? value4 + 1n : +value4 + 1;
|
|
return Number(binding[value4]);
|
|
}
|
|
if (a0 === '%j') {
|
|
try {
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
binding = env0_1;
|
|
binding2 = env0_0;
|
|
value2 = typeof binding2 === 'bigint' ? binding2 : +binding2;
|
|
value3 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
|
|
env0_0 = value3;
|
|
property = binding[value2];
|
|
value = Reflect.apply(stringify, JSON, [property]);
|
|
} catch (error) {
|
|
return '[Circular]';
|
|
}
|
|
return value;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function deprecate_64393(a0, a1) { // fn#64393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:29339, offset: 0x01ba504b, size: 81 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (isUndefined_64382(env0_0.process)) {
|
|
return _fun64394;
|
|
}
|
|
if (require.noDeprecation === true) {
|
|
return a0;
|
|
}
|
|
return deprecate_64393Deprecated;
|
|
function _fun64394() { // fn#64394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:29386, offset: 0x01ba509c, size: 52 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__.__proto__;
|
|
return require.deprecate(env0_0, require).apply(this, arguments);
|
|
}
|
|
|
|
function deprecate_64393Deprecated() { // fn#64395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:29493, owner: deprecate_64393.deprecated, offset: 0x01ba50d0, size: 144 bytes, params: 1, frame: 15
|
|
if (!env0_2) {
|
|
if (require.throwDeprecation) {
|
|
throw new global.Error(require);
|
|
}
|
|
var traceDeprecation = require.traceDeprecation;
|
|
var console = global.console;
|
|
if (traceDeprecation) {
|
|
console.trace(require);
|
|
} else {
|
|
console.error(require);
|
|
}
|
|
}
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function debuglog_64396(a0) { // fn#64396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:34087, offset: 0x01ba5160, size: 197 bytes, params: 2, frame: 16
|
|
var NODE_DEBUG;
|
|
var regExp;
|
|
var pid;
|
|
const env0_0 = a0;
|
|
if (isUndefined_64382(NODE_DEBUG2)) {
|
|
NODE_DEBUG = require.env.NODE_DEBUG;
|
|
NODE_DEBUG = !NODE_DEBUG ? '' : NODE_DEBUG;
|
|
NODE_DEBUG2 = NODE_DEBUG;
|
|
}
|
|
const value3 = a0.toUpperCase();
|
|
if (!env0_4[value3]) {
|
|
regExp = new global.RegExp('\\b' + value3 + '\\b', 'i');
|
|
if (regExp.test(NODE_DEBUG2)) {
|
|
pid = require.pid;
|
|
env0_4[value3] = _fun64397;
|
|
} else {
|
|
env0_4[value3] = function() {
|
|
};
|
|
}
|
|
}
|
|
return env0_4[value3];
|
|
function _fun64397() { // fn#64397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:34226, offset: 0x01ba5225, size: 68 bytes, params: 1, frame: 18
|
|
let value = environment.__proto__.__proto__;
|
|
value = require.format.apply(require, arguments);
|
|
const console = global.console;
|
|
console.error('%s %d: %s', env0_0, pid, value);
|
|
}
|
|
|
|
}
|
|
|
|
function log_64402() { // fn#64402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:35368, offset: 0x01ba5269, size: 226 bytes, params: 1, frame: 19
|
|
const console = global.console;
|
|
const log = console.log;
|
|
const Date = global.Date;
|
|
const date = new Date();
|
|
const pad_64389Binding = pad_64389;
|
|
const getHours = date.getHours;
|
|
let items2 = [pad_64389Binding(Reflect.apply(getHours, date, []))];
|
|
const getMinutes = date.getMinutes;
|
|
items2[1] = pad_64389Binding(Reflect.apply(getMinutes, date, []));
|
|
const getSeconds = date.getSeconds;
|
|
items2[2] = pad_64389Binding(Reflect.apply(getSeconds, date, []));
|
|
const value4 = items2.join(':');
|
|
items2 = [date.getDate()];
|
|
const binding = env0_5;
|
|
const getMonth = date.getMonth;
|
|
items2[1] = binding[Reflect.apply(getMonth, date, [])];
|
|
items2[2] = value4;
|
|
Reflect.apply(log, console, ['%s - %s', items2.join(' '), require.format.apply(require, arguments)]);
|
|
}
|
|
|
|
function _extend_64403(a0, a1) { // fn#64403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:35617, offset: 0x01ba534b, size: 87 bytes, params: 3, frame: 14
|
|
var r2;
|
|
var value;
|
|
var Object;
|
|
var keys;
|
|
var length;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var value4;
|
|
var value5;
|
|
if (a1) {
|
|
value = environment;
|
|
reducibleJoin2: while (true) {
|
|
if (isObject_64384(a1)) {
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value = Reflect.apply(keys, Object, [a1]);
|
|
length = value.length;
|
|
value2 = typeof length === 'bigint' ? length : +length;
|
|
value3 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
|
|
if (value2) {
|
|
r2 = value3;
|
|
reducibleLoop4: while (true) {
|
|
property = value[r2];
|
|
a0[property] = a1[value[r2]];
|
|
value4 = typeof r2 === 'bigint' ? r2 : +r2;
|
|
value5 = typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1;
|
|
if (value4) {
|
|
r2 = value5;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64404(a0, a1) { // fn#64404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:35769, offset: 0x01ba53a2, size: 20 bytes, params: 3, frame: 2
|
|
a0.exports = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
r0 = value && typeof value === 'object' && typeof value.copy === 'function';
|
|
r0 = r0 && typeof value.fill === 'function' && typeof value.readUInt8 === 'function';
|
|
return r0;
|
|
};
|
|
}
|
|
|
|
function _fun64406(a0, a1) { // fn#64406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:35931, offset: 0x01ba53b6, size: 57 bytes, params: 3, frame: 4
|
|
let Object = global.Object;
|
|
if (typeof Object.create === 'function') {
|
|
a0.exports = function(a0, a1) {
|
|
a0.super_ = a1;
|
|
var Object = global.Object;
|
|
a0.prototype = Object.create(a1.prototype, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true,
|
|
'configurable': true, value: a0}});
|
|
};
|
|
} else {
|
|
a0.exports = exports_64408;
|
|
}
|
|
function exports_64408(a0, a1) { // fn#64408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:36138, offset: 0x01ba5433, size: 71 bytes, params: 3, frame: 10
|
|
a0.super_ = a1;
|
|
const closure = function() {
|
|
};
|
|
closure.prototype = a1.prototype;
|
|
a0.prototype = new closure();
|
|
a0.prototype.constructor = a0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64410(a0, a1, a2) { // fn#64410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:36270, offset: 0x01ba547a, size: 46 bytes, params: 4, frame: 15
|
|
const env0_0 = a1;
|
|
const closure = _fun64411;
|
|
const call = closure.call;
|
|
const Buffer = a2(3).Buffer;
|
|
Reflect.apply(call, closure, [a1, Buffer]);
|
|
function _fun64411(a0) { // fn#64411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:36287, offset: 0x01ba54a8, size: 255 bytes, params: 2, frame: 19
|
|
var r17;
|
|
var r16;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
const env0_0 = a0;
|
|
const object = {};
|
|
require.escapeJavaScript = escapeJavaScript_64412;
|
|
require.escapeHtml = escapeHtml_64413;
|
|
object.escapeJavaScriptChar = escapeJavaScriptChar;
|
|
object.escapeHtmlChar = escapeHtmlChar;
|
|
object.padLeft = function(a0, a1) {
|
|
var r2;
|
|
var r0;
|
|
var value = a0;
|
|
if (value.length < a1) {
|
|
for (r2 = value; true; r2 = value) {
|
|
value = '0' + r2;
|
|
if (!(value.length < a1)) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
object.isSafe = isSafe;
|
|
object.namedHtml = {38: '&', 60: '<', 62: '>', 34: '"', 160: ' ', 162: '¢', 163: '£',
|
|
164: '¤', 169: '©', 174: '®'};
|
|
const object2 = {};
|
|
let value = 32;
|
|
let r2 = value;
|
|
while (true) {
|
|
value2 = r2 >= 97;
|
|
if (value2) {
|
|
r16 = value2;
|
|
} else {
|
|
value3 = r2 >= 65;
|
|
if (!value3) {
|
|
r17 = value3;
|
|
continue;
|
|
}
|
|
value4 = r2 <= 90;
|
|
r17 = value4;
|
|
r16 = r17;
|
|
}
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
value5 = r2 >= 48;
|
|
if (!value5) {
|
|
r17 = value5;
|
|
continue;
|
|
}
|
|
value6 = r2 <= 57;
|
|
r17 = value6;
|
|
r16 = r17;
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
value7 = value === r2;
|
|
r16 = value7;
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
value8 = r2 === 46;
|
|
r16 = value8;
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
value9 = r2 === 44;
|
|
r16 = value9;
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
value10 = r2 === 45;
|
|
r16 = value10;
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
value11 = r2 === 58;
|
|
r16 = value11;
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
value12 = r2 === 95;
|
|
r16 = value12;
|
|
if (!r16) {
|
|
continue;
|
|
}
|
|
object2[r2] = null;
|
|
value13 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value13 < 123) {
|
|
r2 = value13;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
object.safeCharCodes = object2;
|
|
function escapeJavaScript_64412(a0) { // fn#64412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:36340, offset: 0x01ba55a7, size: 116 bytes, params: 2, frame: 17
|
|
var r2;
|
|
var r4;
|
|
var r6;
|
|
var r0;
|
|
var length;
|
|
var value2;
|
|
var binding;
|
|
var isSafe;
|
|
var escapeJavaScriptChar;
|
|
let value = '';
|
|
if (a0) {
|
|
length = a0.length;
|
|
value2 = 0;
|
|
if (value2 < length) {
|
|
r2 = value;
|
|
r4 = value2;
|
|
while (true) {
|
|
value = a0.charCodeAt(r4);
|
|
binding = env0_1;
|
|
isSafe = binding.isSafe;
|
|
if (Reflect.apply(isSafe, binding, [value])) {
|
|
r6 = r2 + a0[r4];
|
|
} else {
|
|
binding = env0_1;
|
|
escapeJavaScriptChar = binding.escapeJavaScriptChar;
|
|
value = r2 + Reflect.apply(escapeJavaScriptChar, binding, [value]);
|
|
r6 = value;
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = a0.length;
|
|
if (value < length) {
|
|
r2 = r6;
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
r0 = r6;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function escapeHtml_64413(a0) { // fn#64413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:36494, offset: 0x01ba561b, size: 116 bytes, params: 2, frame: 17
|
|
var r2;
|
|
var r4;
|
|
var r6;
|
|
var r0;
|
|
var length;
|
|
var value2;
|
|
var binding;
|
|
var isSafe;
|
|
var escapeHtmlChar;
|
|
let value = '';
|
|
if (a0) {
|
|
length = a0.length;
|
|
value2 = 0;
|
|
if (value2 < length) {
|
|
r2 = value;
|
|
r4 = value2;
|
|
while (true) {
|
|
value = a0.charCodeAt(r4);
|
|
binding = env0_1;
|
|
isSafe = binding.isSafe;
|
|
if (Reflect.apply(isSafe, binding, [value])) {
|
|
r6 = r2 + a0[r4];
|
|
} else {
|
|
binding = env0_1;
|
|
escapeHtmlChar = binding.escapeHtmlChar;
|
|
value = r2 + Reflect.apply(escapeHtmlChar, binding, [value]);
|
|
r6 = value;
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = a0.length;
|
|
if (value < length) {
|
|
r2 = r6;
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
r0 = r6;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function escapeJavaScriptChar(a0) { // fn#64414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:36652, offset: 0x01ba568f, size: 147 bytes, params: 2, frame: 15
|
|
if (a0 >= 256) {
|
|
return '\\u' + env0_1.padLeft(String(a0), 4);
|
|
}
|
|
const binding = env0_0;
|
|
const String = global.String;
|
|
const value2 = String.fromCharCode(a0);
|
|
const value3 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(value2, 'ascii');
|
|
return '\\x' + env0_1.padLeft((binding2 instanceof Object ? binding2 : value3).toString('hex'), 2);
|
|
}
|
|
|
|
function escapeHtmlChar(a0) { // fn#64415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:36809, offset: 0x01ba5722, size: 163 bytes, params: 2, frame: 16
|
|
const property = env0_1.namedHtml[a0];
|
|
if (property !== undefined) {
|
|
return property;
|
|
}
|
|
if (a0 >= 256) {
|
|
return '&#' + a0 + ';';
|
|
}
|
|
const binding = env0_0;
|
|
const String = global.String;
|
|
const value2 = String.fromCharCode(a0);
|
|
const value3 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(value2, 'ascii');
|
|
return '&#x' + env0_1.padLeft((binding2 instanceof Object ? binding2 : value3).toString('hex'), 2) + ';';
|
|
}
|
|
|
|
function isSafe(a0) { // fn#64417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:37052, offset: 0x01ba57f5, size: 28 bytes, params: 2, frame: 2
|
|
return env0_1.safeCharCodes[a0] !== undefined;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64418(a0, a1, a2) { // fn#64418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:37424, offset: 0x01ba5811, size: 389 bytes, params: 4, frame: 14
|
|
const env0_0 = a2;
|
|
const Object = global.Object;
|
|
const env0_1 = Object.assign || (function(a0) {
|
|
var r3;
|
|
var r8;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var hasOwnProperty;
|
|
var value = 1;
|
|
if (value < arguments.length) {
|
|
r3 = value;
|
|
while (true) {
|
|
value = arguments[r3];
|
|
for (propertyName in value) {
|
|
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
|
if (!hasOwnProperty.call(value, propertyName)) {
|
|
r8 = propertyName2;
|
|
continue;
|
|
}
|
|
a0[propertyName] = value[propertyName];
|
|
r8 = propertyName2;
|
|
}
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value < arguments.length) {
|
|
r3 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return a0;
|
|
});
|
|
const Symbol = global.Symbol;
|
|
const env0_2 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64420 : _fun64421;
|
|
const env0_3 = a2(2);
|
|
const env0_4 = a2(15);
|
|
const env0_5 = a2(16);
|
|
const object = {Set: a2(18)};
|
|
object.defaults = {'abortEarly': true, 'convert': true, 'allowUnknown': false, 'skipFunctions': false,
|
|
'stripUnknown': false, 'language': null, 'presence': 'optional', 'strip': false, 'noDefaults': false,
|
|
language: {}};
|
|
let value = _fun64422();
|
|
object.Any = value;
|
|
a0.exports = value;
|
|
let Any = object.Any;
|
|
let prototype = Any.prototype;
|
|
prototype.isImmutable = true;
|
|
Any = object.Any;
|
|
prototype = Any.prototype;
|
|
Any = object.Any;
|
|
const prototype2 = Any.prototype;
|
|
Any = object.Any;
|
|
const valid = Any.prototype.valid;
|
|
prototype2.equal = valid;
|
|
prototype.only = valid;
|
|
Any = object.Any;
|
|
prototype = Any.prototype;
|
|
Any = object.Any;
|
|
const prototype4 = Any.prototype;
|
|
Any = object.Any;
|
|
const invalid = Any.prototype.invalid;
|
|
prototype4.not = invalid;
|
|
prototype.disallow = invalid;
|
|
Any = object.Any;
|
|
prototype = Any.prototype;
|
|
Any = object.Any;
|
|
prototype.exist = Any.prototype.required;
|
|
object._try = function(a0, a1) {
|
|
var r1;
|
|
var r2;
|
|
var value2;
|
|
var error;
|
|
var value = undefined;
|
|
try {
|
|
value2 = a0.apply(null, a1);
|
|
r1 = value;
|
|
r2 = value2;
|
|
} catch (error) {
|
|
r1 = error;
|
|
r2 = value;
|
|
}
|
|
return {value: r2, error: r1};
|
|
};
|
|
object.concatSettings = concatSettings;
|
|
function _fun64422() { // fn#64422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:38036, offset: 0x01ba5996, size: 543 bytes, params: 1, frame: 4
|
|
const _class_644232 = _class_64423;
|
|
_class_644232.prototype.createError = createError;
|
|
_class_644232.prototype.checkOptions = checkOptions;
|
|
_class_644232.prototype.clone = clone_64426;
|
|
_class_644232.prototype.concat = concat_64427;
|
|
_class_644232.prototype._test = function(a0, a1, a2, a3) {
|
|
var value = this.clone();
|
|
value._tests.push({func: a2, name: a0, arg: a1, options: a3});
|
|
return value;
|
|
};
|
|
_class_644232.prototype.options = options_64429;
|
|
_class_644232.prototype.strict = function(a0) {
|
|
var value = this.clone();
|
|
value._settings = value._settings || ({});
|
|
value._settings.convert = a0 !== undefined && !a0;
|
|
return value;
|
|
};
|
|
_class_644232.prototype.raw = function(a0) {
|
|
var value = a0;
|
|
var value2 = this.clone();
|
|
value2._flags.raw = value === undefined || value;
|
|
return value2;
|
|
};
|
|
_class_644232.prototype.error = error_64432;
|
|
_class_644232.prototype.allow = allow;
|
|
_class_644232.prototype.valid = function() {
|
|
var value = this.allow.apply(this, arguments);
|
|
value._flags.allowOnly = true;
|
|
return value;
|
|
};
|
|
_class_644232.prototype.invalid = invalid_64435;
|
|
_class_644232.prototype.required = function() {
|
|
var value = this.clone();
|
|
value._flags.presence = 'required';
|
|
return value;
|
|
};
|
|
_class_644232.prototype.optional = function() {
|
|
var value = this.clone();
|
|
value._flags.presence = 'optional';
|
|
return value;
|
|
};
|
|
_class_644232.prototype.forbidden = function() {
|
|
var value = this.clone();
|
|
value._flags.presence = 'forbidden';
|
|
return value;
|
|
};
|
|
_class_644232.prototype.strip = function() {
|
|
var value = this.clone();
|
|
value._flags.strip = true;
|
|
return value;
|
|
};
|
|
_class_644232.prototype.applyFunctionToChildren = applyFunctionToChildren;
|
|
_class_644232.prototype.default = _default_64442;
|
|
_class_644232.prototype.empty = empty;
|
|
_class_644232.prototype.when = when_64444;
|
|
_class_644232.prototype.description = description_64445;
|
|
_class_644232.prototype.notes = notes;
|
|
_class_644232.prototype.tags = tags;
|
|
_class_644232.prototype.meta = meta;
|
|
_class_644232.prototype.example = example;
|
|
_class_644232.prototype.unit = unit;
|
|
_class_644232.prototype._prepareEmptyValue = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (typeof value !== 'string') {
|
|
r0 = value;
|
|
} else if (this._flags.trim) {
|
|
value = value.trim();
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
_class_644232.prototype._validate = _validate_64452;
|
|
_class_644232.prototype._validateWithOptions = _validateWithOptions;
|
|
_class_644232.prototype.validate = function(a0, a1, a2) {
|
|
return typeof a1 === 'function' ? this._validateWithOptions(a0, null, a1) : this._validateWithOptions(a0, a1,
|
|
a2);
|
|
};
|
|
_class_644232.prototype.describe = describe;
|
|
_class_644232.prototype.label = label;
|
|
_class_644232.prototype._getLabel = function(a0) {
|
|
return this._flags.label || a0;
|
|
};
|
|
return _class_644232;
|
|
function _class_64423() { // fn#64423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:38047, offset: 0x01ba5bb5, size: 269 bytes, params: 1, frame: 14
|
|
var prototype;
|
|
var defaultImport;
|
|
var Set;
|
|
var value2;
|
|
var set;
|
|
var value;
|
|
if (this instanceof _class_64423) {
|
|
value = environment.__proto__;
|
|
if (!env1_7) {
|
|
defaultImport = importDefault(19);
|
|
}
|
|
this.isJoi = true;
|
|
this._type = 'any';
|
|
this._settings = null;
|
|
Set = env1_8.Set;
|
|
prototype = Set.prototype;
|
|
value2 = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
this._valids = set instanceof Object ? set : value2;
|
|
Set = env1_8.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value = set instanceof Object ? set : value;
|
|
this._invalids = value;
|
|
this._tests = [];
|
|
this._refs = [];
|
|
this._flags = {};
|
|
this._description = null;
|
|
this._unit = null;
|
|
this._notes = [];
|
|
this._tags = [];
|
|
this._examples = [];
|
|
this._meta = [];
|
|
this._inner = {};
|
|
return undefined;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function createError(a0, a1, a2, a3) { // fn#64424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:38493, offset: 0x01ba5cc2, size: 42 bytes, params: 5, frame: 19
|
|
const binding = env1_5;
|
|
return binding.create(a0, a1, a2, a3, this._flags);
|
|
}
|
|
|
|
function checkOptions(a0) { // fn#64425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:38591, offset: 0x01ba5cec, size: 98 bytes, params: 2, frame: 12
|
|
var Error;
|
|
var message;
|
|
const __proto__ = environment.__proto__;
|
|
let error = importDefault(31).options.validate(a0).error;
|
|
if (error) {
|
|
Error = global.Error;
|
|
error = __proto__.error;
|
|
message = error.details[0].message;
|
|
error = new Error();
|
|
throw error;
|
|
}
|
|
}
|
|
|
|
function clone_64426() { // fn#64426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:38727, offset: 0x01ba5d4e, size: 425 bytes, params: 1, frame: 18
|
|
var r3;
|
|
var r1;
|
|
var property;
|
|
var _inner2;
|
|
var value5;
|
|
var _inner3;
|
|
var property2;
|
|
var value6;
|
|
var value7;
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
const Object2 = global.Object;
|
|
const getPrototypeOf = Object2.getPrototypeOf;
|
|
const value = Reflect.apply(create, Object, [Reflect.apply(getPrototypeOf, Object2, [this])]);
|
|
value.isJoi = true;
|
|
value._type = this._type;
|
|
let binding = env1_8;
|
|
value._settings = binding.concatSettings(this._settings);
|
|
binding = env1_3;
|
|
value._valids = binding.clone(this._valids);
|
|
binding = env1_3;
|
|
value._invalids = binding.clone(this._invalids);
|
|
value._tests = this._tests.slice();
|
|
value._refs = this._refs.slice();
|
|
binding = env1_3;
|
|
value._flags = binding.clone(this._flags);
|
|
value._description = this._description;
|
|
value._unit = this._unit;
|
|
value._notes = this._notes.slice();
|
|
value._tags = this._tags.slice();
|
|
value._examples = this._examples.slice();
|
|
value._meta = this._meta.slice();
|
|
value._inner = {};
|
|
Object = global.Object;
|
|
const keys = Object.keys;
|
|
let _inner = this._inner;
|
|
const value3 = Reflect.apply(keys, Object, [_inner]);
|
|
let length = value3.length;
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
r3 = value4;
|
|
while (true) {
|
|
property = value3[r3];
|
|
_inner = value._inner;
|
|
_inner2 = this._inner;
|
|
value5 = null;
|
|
if (_inner2[property]) {
|
|
_inner3 = this._inner;
|
|
property2 = _inner3[property];
|
|
value6 = property2.slice();
|
|
r1 = value6;
|
|
} else {
|
|
r1 = value5;
|
|
}
|
|
_inner[property] = r1;
|
|
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r3 = value7;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function concat_64427(a0) { // fn#64427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:39359, offset: 0x01ba5ef7, size: 1013 bytes, params: 2, frame: 40
|
|
var r7;
|
|
var r3;
|
|
var r0;
|
|
var r18;
|
|
var value3;
|
|
var _type2;
|
|
var value4;
|
|
var value6;
|
|
var object;
|
|
var length;
|
|
var value7;
|
|
var property;
|
|
var value8;
|
|
var property2;
|
|
var property3;
|
|
var slice;
|
|
var _inner2;
|
|
var property4;
|
|
var key;
|
|
var value11;
|
|
var push;
|
|
var schema;
|
|
var schema2;
|
|
var value12;
|
|
var value13;
|
|
let value = environment.__proto__;
|
|
let binding = env1_3;
|
|
let assert = binding.assert;
|
|
const Any = env1_8.Any;
|
|
Reflect.apply(assert, binding, [a0 instanceof Any, 'Invalid schema object']);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
let _type = this._type;
|
|
const value2 = _type === 'any';
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r7 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
_type = a0._type;
|
|
value3 = _type === 'any';
|
|
r7 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r7) {
|
|
break reducibleJoin4;
|
|
}
|
|
_type = a0._type;
|
|
_type2 = this._type;
|
|
value4 = _type === _type2;
|
|
r7 = value4;
|
|
break reducibleJoin4;
|
|
}
|
|
Reflect.apply(assert, binding, [r7, 'Cannot merge type', this._type, 'with another type:', a0._type]);
|
|
let clone = this.clone;
|
|
const value5 = Reflect.apply(clone, this, []);
|
|
_type = this._type;
|
|
reducibleJoin8: while (true) {
|
|
if (_type !== 'any') {
|
|
r0 = value5;
|
|
break reducibleJoin8;
|
|
}
|
|
_type = a0._type;
|
|
if (_type === 'any') {
|
|
r0 = value5;
|
|
break reducibleJoin8;
|
|
}
|
|
clone = a0.clone;
|
|
value6 = Reflect.apply(clone, a0, []);
|
|
object = ['_settings', '_valids', '_invalids', '_tests', '_refs', '_flags', '_description', '_unit', '_notes',
|
|
'_tags', '_examples', '_meta', '_inner'];
|
|
length = object.length;
|
|
value7 = 0;
|
|
if (!(value7 < length)) {
|
|
r0 = value6;
|
|
break reducibleJoin8;
|
|
}
|
|
r3 = value7;
|
|
reducibleLoop7: while (true) {
|
|
property = object[r3];
|
|
value6[property] = value5[object[r3]];
|
|
value8 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = object.length;
|
|
if (value8 < length) {
|
|
r3 = value8;
|
|
continue reducibleLoop7;
|
|
}
|
|
r0 = value6;
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
r0._settings = r0._settings ? env1_8.concatSettings(r0._settings, a0._settings) : a0._settings;
|
|
const _valids = r0._valids;
|
|
const merge = _valids.merge;
|
|
const _valids2 = a0._valids;
|
|
let _invalids = a0._invalids;
|
|
Reflect.apply(merge, _valids, [_valids2, _invalids]);
|
|
_invalids = r0._invalids;
|
|
_invalids.merge(a0._invalids, a0._valids);
|
|
const _tests = r0._tests;
|
|
let concat = _tests.concat;
|
|
r0._tests = Reflect.apply(concat, _tests, [a0._tests]);
|
|
const _refs = r0._refs;
|
|
r0._refs = _refs.concat(a0._refs);
|
|
binding = env1_3;
|
|
binding.merge(r0._flags, a0._flags);
|
|
let _description = a0._description;
|
|
reducibleJoin13: while (true) {
|
|
if (_description) {
|
|
break reducibleJoin13;
|
|
}
|
|
_description = r0._description;
|
|
break reducibleJoin13;
|
|
}
|
|
r0._description = _description;
|
|
let _unit = a0._unit;
|
|
reducibleJoin15: while (true) {
|
|
if (_unit) {
|
|
break reducibleJoin15;
|
|
}
|
|
_unit = r0._unit;
|
|
break reducibleJoin15;
|
|
}
|
|
r0._unit = _unit;
|
|
const _notes = r0._notes;
|
|
r0._notes = _notes.concat(a0._notes);
|
|
const _tags = r0._tags;
|
|
r0._tags = _tags.concat(a0._tags);
|
|
const _examples = r0._examples;
|
|
r0._examples = _examples.concat(a0._examples);
|
|
const _meta = r0._meta;
|
|
r0._meta = _meta.concat(a0._meta);
|
|
const Object = global.Object;
|
|
const keys = Object.keys;
|
|
let _inner = a0._inner;
|
|
value = Reflect.apply(keys, Object, [_inner]);
|
|
_type = r0._type;
|
|
length = value.length;
|
|
const value10 = 0;
|
|
if (value10 < length) {
|
|
r7 = value10;
|
|
reducibleLoop16: while (true) {
|
|
property = value[r7];
|
|
_inner = a0._inner;
|
|
property2 = _inner[property];
|
|
reducibleJoin29: while (true) {
|
|
if (property2) {
|
|
_inner = r0._inner;
|
|
property3 = _inner[property];
|
|
if (property3) {
|
|
if (_type === 'object') {
|
|
if (property === 'children') {
|
|
object = {};
|
|
length = property3.length;
|
|
if (value10 < length) {
|
|
r18 = value10;
|
|
reducibleLoop23: while (true) {
|
|
key = property3[r18].key;
|
|
object[key] = r18;
|
|
value11 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
|
|
length = property3.length;
|
|
if (value11 < length) {
|
|
r18 = value11;
|
|
continue reducibleLoop23;
|
|
}
|
|
break reducibleLoop23;
|
|
}
|
|
}
|
|
length = property2.length;
|
|
if (value10 < length) {
|
|
r18 = value10;
|
|
reducibleLoop25: while (true) {
|
|
key = property2[r18].key;
|
|
if (object[key] >= value10) {
|
|
property = object[key];
|
|
schema = property3[object[key]].schema;
|
|
concat = schema.concat;
|
|
schema2 = property2[r18].schema;
|
|
property3[property] = {key: key, schema: Reflect.apply(concat, schema,
|
|
[schema2])};
|
|
} else {
|
|
push = property3.push;
|
|
Reflect.apply(push, property3, [property2[r18]]);
|
|
}
|
|
value12 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
|
|
length = property2.length;
|
|
if (value12 < length) {
|
|
r18 = value12;
|
|
continue reducibleLoop25;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
value13 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
length = value.length;
|
|
if (value13 < length) {
|
|
r7 = value13;
|
|
continue reducibleLoop16;
|
|
}
|
|
break reducibleLoop16;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
}
|
|
_inner = r0._inner;
|
|
_inner2 = r0._inner;
|
|
property4 = _inner2[property];
|
|
concat = property4.concat;
|
|
_inner[property] = Reflect.apply(concat, property4, [property2]);
|
|
break reducibleJoin29;
|
|
}
|
|
_inner = r0._inner;
|
|
slice = property2.slice;
|
|
_inner[property] = Reflect.apply(slice, property2, []);
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin29;
|
|
}
|
|
value13 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
length = value.length;
|
|
if (value13 < length) {
|
|
r7 = value13;
|
|
continue reducibleLoop16;
|
|
}
|
|
break reducibleLoop16;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function options_64429(a0) { // fn#64429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:40819, offset: 0x01ba632b, size: 90 bytes, params: 2, frame: 16
|
|
let binding = env1_3;
|
|
binding.assert(!a0.context, 'Cannot override context');
|
|
this.checkOptions(a0);
|
|
const value2 = this.clone();
|
|
binding = env1_8;
|
|
value2._settings = binding.concatSettings(value2._settings, a0);
|
|
return value2;
|
|
}
|
|
|
|
function error_64432(a0) { // fn#64432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:41231, offset: 0x01ba63ea, size: 73 bytes, params: 2, frame: 15
|
|
const value = a0;
|
|
const binding = env1_3;
|
|
binding.assert(value && value instanceof global.Error, 'Must provide a valid Error object');
|
|
const value4 = this.clone();
|
|
value4._flags.error = value;
|
|
return value4;
|
|
}
|
|
|
|
function allow() { // fn#64433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:41386, offset: 0x01ba6433, size: 163 bytes, params: 1, frame: 19
|
|
var r3;
|
|
var property;
|
|
var _invalids;
|
|
var _valids;
|
|
var add;
|
|
var _refs;
|
|
var value5;
|
|
const value = this.clone();
|
|
let binding = env1_3;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
const value3 = Reflect.apply(flatten, binding, [slice.call(arguments)]);
|
|
let length = value3.length;
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r3 = value4; true; r3 = value5) {
|
|
property = value3[r3];
|
|
binding = env1_3;
|
|
binding.assert(property !== undefined, 'Cannot call allow/valid/invalid with undefined');
|
|
_invalids = value._invalids;
|
|
_invalids.remove(property);
|
|
_valids = value._valids;
|
|
add = _valids.add;
|
|
_refs = value._refs;
|
|
Reflect.apply(add, _valids, [property, _refs]);
|
|
value5 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value3.length;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function invalid_64435(a0) { // fn#64435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:41771, offset: 0x01ba64fe, size: 163 bytes, params: 2, frame: 20
|
|
var r3;
|
|
var property;
|
|
var _valids;
|
|
var _invalids;
|
|
var add;
|
|
var _refs;
|
|
var value5;
|
|
const value = this.clone();
|
|
let binding = env1_3;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
const value3 = Reflect.apply(flatten, binding, [slice.call(arguments)]);
|
|
let length = value3.length;
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r3 = value4; true; r3 = value5) {
|
|
property = value3[r3];
|
|
binding = env1_3;
|
|
binding.assert(property !== undefined, 'Cannot call allow/valid/invalid with undefined');
|
|
_valids = value._valids;
|
|
_valids.remove(property);
|
|
_invalids = value._invalids;
|
|
add = _invalids.add;
|
|
_refs = this._refs;
|
|
Reflect.apply(add, _invalids, [property, _refs]);
|
|
value5 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value3.length;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function applyFunctionToChildren(a0, a1, a2, a3) { // fn#64440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:42464, offset: 0x01ba661b, size: 194 bytes, params: 5, frame: 17
|
|
var r1;
|
|
var r2;
|
|
var value2;
|
|
var Error;
|
|
const env0_0 = a3;
|
|
let value = [].concat(a0);
|
|
if (value.length !== 1) {
|
|
value2 = '';
|
|
r1 = a3 ? a3 + '.' : value2;
|
|
if (value2 !== value[0]) {
|
|
r2 = value;
|
|
} else {
|
|
value = value.slice(1);
|
|
r2 = value;
|
|
}
|
|
value = r2.map(function(a0) {
|
|
return importAll + a0;
|
|
});
|
|
Error = global.Error;
|
|
value = value.join(', ');
|
|
value = 'unknown key(s) ' + value;
|
|
throw new Error(value);
|
|
}
|
|
if (value[0] !== '') {
|
|
value2 = '';
|
|
r1 = a3 ? a3 + '.' : value2;
|
|
if (value2 !== value[0]) {
|
|
r2 = value;
|
|
} else {
|
|
value = value.slice(1);
|
|
r2 = value;
|
|
}
|
|
value = r2.map(function(a0) {
|
|
return importAll + a0;
|
|
});
|
|
Error = global.Error;
|
|
value = value.join(', ');
|
|
value = 'unknown key(s) ' + value;
|
|
throw new Error(value);
|
|
}
|
|
return this[a1].apply(this, a2);
|
|
}
|
|
|
|
function _default_64442(a0, a1) { // fn#64442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:42727, offset: 0x01ba66ed, size: 190 bytes, params: 3, frame: 16
|
|
var binding;
|
|
var assert;
|
|
let value = a1;
|
|
if (!(typeof a0 !== 'function' || env1_4.isRef(a0))) {
|
|
if (!a0.description && value) {
|
|
a0.description = value;
|
|
}
|
|
if (!this._flags.func) {
|
|
value = environment.__proto__;
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
value = typeof a0.description === 'string';
|
|
Reflect.apply(assert, binding, [value && a0.description.length > 0,
|
|
'description must be provided when default value is a function']);
|
|
}
|
|
}
|
|
value = this.clone();
|
|
value._flags.default = a0;
|
|
binding = env1_4;
|
|
binding.push(value._refs, a0);
|
|
return value;
|
|
}
|
|
|
|
function empty(a0) { // fn#64443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:43059, offset: 0x01ba67ab, size: 54 bytes, params: 2, frame: 14
|
|
const value = this.clone();
|
|
const _flags = value._flags;
|
|
const value2 = undefined;
|
|
_flags.empty = value2 === a0 ? value2 : env1_7.schema(a0);
|
|
return value;
|
|
}
|
|
|
|
function when_64444(a0, a1) { // fn#64444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:43173, offset: 0x01ba67e1, size: 324 bytes, params: 3, frame: 19
|
|
let value = a1;
|
|
let binding = env1_3;
|
|
let assert = binding.assert;
|
|
Reflect.apply(assert, binding, [value && (value === undefined ? 'undefined' : env1_2(value)) === 'object',
|
|
'Invalid options']);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
const then = value.then;
|
|
const value6 = undefined;
|
|
Reflect.apply(assert, binding, [value6 !== then || value6 !== value.otherwise,
|
|
'options must have at least one of "then" or "otherwise"']);
|
|
value = (env1_6 || importDefault(28)).when(a0, {is: value.is,
|
|
then: value.hasOwnProperty('then') ? this.concat(env1_7.schema(value.then)) : value6,
|
|
otherwise: value.hasOwnProperty('otherwise') ? this.concat(env1_7.schema(value.otherwise)) : value6});
|
|
value._flags.presence = 'ignore';
|
|
binding = env1_8;
|
|
value._settings = binding.concatSettings(value._settings, {baseType: this});
|
|
return value;
|
|
}
|
|
|
|
function description_64445(a0) { // fn#64445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:43688, offset: 0x01ba6925, size: 66 bytes, params: 2, frame: 16
|
|
const value = a0;
|
|
const binding = env1_3;
|
|
binding.assert(value && typeof value === 'string', 'Description must be a non-empty string');
|
|
const value4 = this.clone();
|
|
value4._description = value;
|
|
return value4;
|
|
}
|
|
|
|
function notes(a0) { // fn#64446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:43854, offset: 0x01ba6967, size: 106 bytes, params: 2, frame: 17
|
|
const value = a0;
|
|
const binding = env1_3;
|
|
binding.assert(value && (typeof value === 'string' || global.Array.isArray(value)),
|
|
'Notes must be a non-empty string or array');
|
|
const value4 = this.clone();
|
|
value4._notes = value4._notes.concat(value);
|
|
return value4;
|
|
}
|
|
|
|
function tags(a0) { // fn#64447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:44047, offset: 0x01ba69d1, size: 106 bytes, params: 2, frame: 17
|
|
const value = a0;
|
|
const binding = env1_3;
|
|
binding.assert(value && (typeof value === 'string' || global.Array.isArray(value)),
|
|
'Tags must be a non-empty string or array');
|
|
const value4 = this.clone();
|
|
value4._tags = value4._tags.concat(value);
|
|
return value4;
|
|
}
|
|
|
|
function meta(a0) { // fn#64448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:44236, offset: 0x01ba6a3b, size: 71 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__;
|
|
env1_3.assert(a0 !== undefined, 'Meta cannot be undefined');
|
|
value = this.clone();
|
|
value._meta = value._meta.concat(a0);
|
|
return value;
|
|
}
|
|
|
|
function example(a0) { // fn#64449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:44381, offset: 0x01ba6a82, size: 152 bytes, params: 2, frame: 19
|
|
var r2;
|
|
var binding2;
|
|
var process;
|
|
let value = environment.__proto__;
|
|
let binding = env1_3;
|
|
let assert = binding.assert;
|
|
Reflect.apply(assert, binding, [arguments.length, 'Missing example']);
|
|
const value2 = this._validate(a0, null, env1_8.defaults);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
let errors = value2.errors;
|
|
errors = value2.errors;
|
|
if (errors) {
|
|
binding2 = env1_5;
|
|
process = binding2.process;
|
|
errors = value2.errors;
|
|
r2 = Reflect.apply(process, binding2, [errors, a0]);
|
|
} else {
|
|
r2 = errors;
|
|
}
|
|
Reflect.apply(assert, binding, [!errors, 'Bad example:', r2]);
|
|
value = this.clone();
|
|
value._examples.push(a0);
|
|
return value;
|
|
}
|
|
|
|
function unit(a0) { // fn#64450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:44624, offset: 0x01ba6b1a, size: 66 bytes, params: 2, frame: 16
|
|
const value = a0;
|
|
const binding = env1_3;
|
|
binding.assert(value && typeof value === 'string', 'Unit name must be a non-empty string');
|
|
const value4 = this.clone();
|
|
value4._unit = value;
|
|
return value4;
|
|
}
|
|
|
|
function _validate_64452(a0, a1, a2, a3) { // fn#64452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:44900, offset: 0x01ba6b8e, size: 1260 bytes, params: 5, frame: 29
|
|
var environment;
|
|
var r13;
|
|
var r11;
|
|
var r5;
|
|
var r3;
|
|
var r6;
|
|
var r8;
|
|
var r14;
|
|
var r10;
|
|
var r9;
|
|
var value4;
|
|
var binding;
|
|
var concatSettings;
|
|
var value5;
|
|
var call;
|
|
var errors;
|
|
var _validate;
|
|
var _prepareEmptyValue;
|
|
var value7;
|
|
var defaults;
|
|
var push;
|
|
var createError;
|
|
var hasOwnProperty;
|
|
var _type;
|
|
var object;
|
|
var abortEarly;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var object2;
|
|
var func;
|
|
var Err;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
const value3 = a2;
|
|
var env0_0;
|
|
var env0_2;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r13 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
r13 = {'key': '', 'path': '', 'parent': null, reference: a3};
|
|
break reducibleJoin2;
|
|
}
|
|
let _settings = this._settings;
|
|
reducibleJoin4: while (true) {
|
|
if (_settings) {
|
|
value4 = environment.__proto__;
|
|
binding = env1_8;
|
|
concatSettings = binding.concatSettings;
|
|
_settings = this._settings;
|
|
value5 = Reflect.apply(concatSettings, binding, [value3, _settings]);
|
|
env0_2 = value5;
|
|
r11 = value5;
|
|
break reducibleJoin4;
|
|
}
|
|
r11 = value3;
|
|
break reducibleJoin4;
|
|
}
|
|
const items2 = [];
|
|
var env0_5;
|
|
const _validate_64452Finish2 = _validate_64452Finish;
|
|
if (this._coerce) {
|
|
value = this._coerce.call(this, value, r13, r11);
|
|
errors = value.errors;
|
|
reducibleJoin6: while (true) {
|
|
if (errors) {
|
|
env0_5 = items2.concat(value.errors);
|
|
return _validate_64452Finish2();
|
|
}
|
|
r5 = value.value;
|
|
break reducibleJoin6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
let _flags = this._flags;
|
|
let empty = _flags.empty;
|
|
reducibleJoin8: while (true) {
|
|
if (empty) {
|
|
_flags = this._flags;
|
|
empty = _flags.empty;
|
|
_validate = empty._validate;
|
|
_prepareEmptyValue = this._prepareEmptyValue;
|
|
value = Reflect.apply(_prepareEmptyValue, this, [r5]);
|
|
value7 = environment.__proto__;
|
|
defaults = env1_8.defaults;
|
|
errors = Reflect.apply(_validate, empty, [value, null, defaults]).errors;
|
|
value = !errors;
|
|
r3 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
r3 = empty;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (r3) {
|
|
value = undefined;
|
|
env0_0 = value;
|
|
r5 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
let presence = this._flags.presence;
|
|
reducibleJoin12: while (true) {
|
|
if (presence) {
|
|
break reducibleJoin12;
|
|
}
|
|
presence = r11.presence;
|
|
break reducibleJoin12;
|
|
}
|
|
if (presence === 'optional') {
|
|
reducibleJoin25: while (true) {
|
|
if (r5 === undefined) {
|
|
_flags = this._flags;
|
|
hasOwnProperty = _flags.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, _flags, ['default'])) {
|
|
_flags = this._flags;
|
|
reducibleJoin54: while (true) {
|
|
if (_flags.default !== undefined) {
|
|
break reducibleJoin54;
|
|
}
|
|
_type = this._type;
|
|
if (_type !== 'object') {
|
|
break reducibleJoin54;
|
|
}
|
|
object = {};
|
|
env0_0 = object;
|
|
r6 = object;
|
|
break reducibleJoin25;
|
|
}
|
|
}
|
|
return _validate_64452Finish2();
|
|
}
|
|
r6 = r5;
|
|
break reducibleJoin25;
|
|
}
|
|
} else {
|
|
reducibleJoin25: while (true) {
|
|
reducibleJoin15: while (true) {
|
|
if (presence !== 'required') {
|
|
break reducibleJoin15;
|
|
}
|
|
if (r5 === undefined) {
|
|
items2.push(this.createError('any.required', null, r13, r11));
|
|
return _validate_64452Finish2();
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
if (presence === 'forbidden') {
|
|
reducibleJoin18: while (true) {
|
|
if (r5 === undefined) {
|
|
break reducibleJoin18;
|
|
}
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this, ['any.unknown', null, r13, r11])]);
|
|
break reducibleJoin18;
|
|
}
|
|
return _validate_64452Finish2();
|
|
}
|
|
r6 = r5;
|
|
break reducibleJoin25;
|
|
}
|
|
}
|
|
let _valids = this._valids;
|
|
let has = _valids.has;
|
|
let insensitive = this._flags.insensitive;
|
|
if (!Reflect.apply(has, _valids, [r6, r13, r11, insensitive])) {
|
|
var _invalids = this._invalids;
|
|
if (_invalids.has(r6, r13, r11, this._flags.insensitive)) {
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
value = 'any.invalid';
|
|
reducibleJoin29: while (true) {
|
|
if (r6 !== '') {
|
|
r8 = value;
|
|
break reducibleJoin29;
|
|
}
|
|
value = 'any.empty';
|
|
r8 = value;
|
|
break reducibleJoin29;
|
|
}
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this, [r8, null, r13, r11])]);
|
|
abortEarly = r11.abortEarly;
|
|
reducibleJoin31: while (true) {
|
|
reducibleJoin52: while (true) {
|
|
if (abortEarly) {
|
|
break reducibleJoin52;
|
|
}
|
|
if (r6 === undefined) {
|
|
break reducibleJoin52;
|
|
}
|
|
break reducibleJoin31;
|
|
}
|
|
return _validate_64452Finish2();
|
|
}
|
|
}
|
|
if (this._base) {
|
|
value = this._base.call(this, r6, r13, r11);
|
|
errors = value.errors;
|
|
value8 = value.value;
|
|
if (errors) {
|
|
env0_5 = items2.concat(value.errors);
|
|
return _validate_64452Finish2();
|
|
}
|
|
reducibleJoin39: while (true) {
|
|
if (value8 === r6) {
|
|
r10 = r6;
|
|
break reducibleJoin39;
|
|
}
|
|
value = value.value;
|
|
env0_0 = value;
|
|
_valids = this._valids;
|
|
has = _valids.has;
|
|
_flags = this._flags;
|
|
insensitive = _flags.insensitive;
|
|
if (Reflect.apply(has, _valids, [value, r13, r11, insensitive])) {
|
|
return _validate_64452Finish2();
|
|
}
|
|
_invalids = this._invalids;
|
|
has = _invalids.has;
|
|
_flags = this._flags;
|
|
insensitive = _flags.insensitive;
|
|
if (Reflect.apply(has, _invalids, [value, r13, r11, insensitive])) {
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
value9 = 'any.invalid';
|
|
reducibleJoin38: while (true) {
|
|
if (value !== '') {
|
|
r14 = value9;
|
|
break reducibleJoin38;
|
|
}
|
|
value10 = 'any.empty';
|
|
r14 = value10;
|
|
break reducibleJoin38;
|
|
}
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this, [r14, null, r13, r11])]);
|
|
abortEarly = r11.abortEarly;
|
|
if (abortEarly) {
|
|
return _validate_64452Finish2();
|
|
}
|
|
r10 = value;
|
|
break reducibleJoin39;
|
|
}
|
|
r10 = value;
|
|
break reducibleJoin39;
|
|
}
|
|
} else {
|
|
r10 = r6;
|
|
}
|
|
if (this._flags.allowOnly) {
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
object2 = {};
|
|
object2.valids = this._valids.values({stripUndefined: true});
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this, ['any.allowOnly', object2, r13, r11])]);
|
|
abortEarly = r11.abortEarly;
|
|
reducibleJoin41: while (true) {
|
|
if (abortEarly) {
|
|
return _validate_64452Finish2();
|
|
}
|
|
break reducibleJoin41;
|
|
}
|
|
}
|
|
var _tests = this._tests;
|
|
var length = _tests.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r9 = value;
|
|
reducibleLoop42: while (true) {
|
|
_tests = this._tests;
|
|
func = _tests[r9].func;
|
|
call = func.call;
|
|
value = Reflect.apply(call, func, [this, r10, r13, r11]);
|
|
Err = env1_5.Err;
|
|
if (value instanceof Err) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value]);
|
|
abortEarly = r11.abortEarly;
|
|
reducibleJoin45: while (true) {
|
|
if (abortEarly) {
|
|
return _validate_64452Finish2();
|
|
}
|
|
break reducibleJoin45;
|
|
}
|
|
} else {
|
|
env0_0 = value;
|
|
r10 = value;
|
|
}
|
|
value = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
_tests = this._tests;
|
|
length = _tests.length;
|
|
if (!(value < length)) {
|
|
return _validate_64452Finish2();
|
|
}
|
|
r9 = value;
|
|
continue reducibleLoop42;
|
|
}
|
|
}
|
|
}
|
|
return _validate_64452Finish2();
|
|
function _validate_64452Finish() { // fn#64453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:45055, owner: _validate_64452.finish, offset: 0x01ba707a, size: 487 bytes, params: 1, frame: 25
|
|
var r8;
|
|
var r1;
|
|
var value4;
|
|
var binding;
|
|
var isRef;
|
|
var isRef2;
|
|
var property;
|
|
var value8;
|
|
var value9;
|
|
var push;
|
|
var binding2;
|
|
let _flags = env0_3._flags;
|
|
const strip = _flags.strip;
|
|
const value3 = undefined;
|
|
if (strip) {
|
|
r1 = value3;
|
|
} else if (value3 !== value) {
|
|
r1 = env0_3._flags.raw ? env0_4 : value;
|
|
} else if (importDefault.noDefaults) {
|
|
r1 = env0_4;
|
|
} else {
|
|
value4 = environment.__proto__.__proto__;
|
|
binding = env2_4;
|
|
isRef = binding.isRef;
|
|
_flags = env0_3._flags;
|
|
isRef2 = Reflect.apply(isRef, binding, [_flags.default]);
|
|
_flags = env0_3._flags;
|
|
property = _flags.default;
|
|
if (isRef2) {
|
|
r1 = Reflect.apply(property, _flags, [require.parent, importDefault]);
|
|
} else if (typeof property !== 'function') {
|
|
binding = env2_3;
|
|
r1 = binding.clone(env0_3._flags.default);
|
|
} else if (env0_3._flags.func) {
|
|
if (env0_3._flags.default.description) {
|
|
r8 = require.parent !== null && env0_3._flags.default.length > 0 ? [env2_3.clone(require.parent),
|
|
importDefault] : value3;
|
|
binding = env2_8;
|
|
value8 = binding._try(env0_3._flags.default, r8);
|
|
value9 = value8.value;
|
|
if (value8.error) {
|
|
binding = env0_5;
|
|
push = binding.push;
|
|
binding2 = env0_3;
|
|
Reflect.apply(push, binding, [binding2.createError('any.default', value8.error, require,
|
|
importDefault)]);
|
|
r1 = value9;
|
|
} else {
|
|
r1 = value9;
|
|
}
|
|
} else {
|
|
binding = env2_3;
|
|
r1 = binding.clone(env0_3._flags.default);
|
|
}
|
|
} else {
|
|
r8 = require.parent !== null && env0_3._flags.default.length > 0 ? [env2_3.clone(require.parent),
|
|
importDefault] : value3;
|
|
binding = env2_8;
|
|
value8 = binding._try(env0_3._flags.default, r8);
|
|
value9 = value8.value;
|
|
if (value8.error) {
|
|
binding = env0_5;
|
|
push = binding.push;
|
|
binding2 = env0_3;
|
|
Reflect.apply(push, binding, [binding2.createError('any.default', value8.error, require,
|
|
importDefault)]);
|
|
r1 = value9;
|
|
} else {
|
|
r1 = value9;
|
|
}
|
|
}
|
|
}
|
|
return {value: r1, errors: env0_5.length ? env0_5 : null};
|
|
}
|
|
|
|
}
|
|
|
|
function _validateWithOptions(a0, a1, a2) { // fn#64454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:47087, offset: 0x01ba7261, size: 127 bytes, params: 4, frame: 18
|
|
var r0;
|
|
var object;
|
|
if (a1) {
|
|
this.checkOptions(a1);
|
|
}
|
|
let value = environment.__proto__;
|
|
let binding = env1_8;
|
|
const value3 = this._validate(a0, null, binding.concatSettings(env1_8.defaults, a1));
|
|
binding = env1_5;
|
|
value = binding.process(value3.errors, a0);
|
|
if (a2) {
|
|
value = a2(value, value3.value);
|
|
r0 = value;
|
|
} else {
|
|
object = {error: value};
|
|
value = value3.value;
|
|
object.value = value;
|
|
r0 = object;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function describe() { // fn#64456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:47457, offset: 0x01ba7317, size: 1079 bytes, params: 1, frame: 34
|
|
var environment;
|
|
var r10;
|
|
var r3;
|
|
var r6;
|
|
var r1;
|
|
var r19;
|
|
var r18;
|
|
var items2;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var value4;
|
|
var value5;
|
|
var flags;
|
|
var binding;
|
|
var isRef;
|
|
var description;
|
|
var property2;
|
|
var toString;
|
|
var property3;
|
|
var describe;
|
|
var value6;
|
|
var object;
|
|
var name;
|
|
var arg;
|
|
var isRef2;
|
|
var value8;
|
|
var options;
|
|
var hasRef;
|
|
var value9;
|
|
var property4;
|
|
var property5;
|
|
var value10;
|
|
var value11;
|
|
var rules;
|
|
var value12;
|
|
const object2 = {};
|
|
object2.type = this._type;
|
|
let Object = global.Object;
|
|
let keys = Object.keys;
|
|
let _flags = this._flags;
|
|
let value = Reflect.apply(keys, Object, [_flags]);
|
|
let length = value.length;
|
|
if (length) {
|
|
items2 = ['empty', 'default', 'lazy', 'label'];
|
|
if (items2.some(_fun64457)) {
|
|
object2.flags = {};
|
|
length = value.length;
|
|
value2 = 0;
|
|
value3 = environment.__proto__;
|
|
if (value2 < length) {
|
|
r10 = value2;
|
|
while (true) {
|
|
property = value[r10];
|
|
if (property !== 'empty') {
|
|
if (property === 'default') {
|
|
binding = env1_4;
|
|
isRef = binding.isRef;
|
|
_flags = this._flags;
|
|
if (Reflect.apply(isRef, binding, [_flags[property]])) {
|
|
flags = object2.flags;
|
|
property2 = this._flags[property];
|
|
toString = property2.toString;
|
|
flags[property] = Reflect.apply(toString, property2, []);
|
|
break;
|
|
}
|
|
_flags = this._flags;
|
|
if (typeof _flags[property] === 'function') {
|
|
flags = object2.flags;
|
|
description = this._flags[property].description;
|
|
flags[property] = description;
|
|
break;
|
|
}
|
|
flags = object2.flags;
|
|
_flags = this._flags;
|
|
flags[property] = _flags[property];
|
|
break;
|
|
}
|
|
value4 = property === 'lazy';
|
|
if (value4) {
|
|
r3 = value4;
|
|
continue;
|
|
}
|
|
value5 = property === 'label';
|
|
r3 = value5;
|
|
if (r3) {
|
|
break;
|
|
}
|
|
flags = object2.flags;
|
|
_flags = this._flags;
|
|
flags[property] = _flags[property];
|
|
break;
|
|
}
|
|
flags = object2.flags;
|
|
_flags = this._flags;
|
|
property3 = _flags[property];
|
|
describe = property3.describe;
|
|
flags[property] = Reflect.apply(describe, property3, []);
|
|
value6 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
length = value.length;
|
|
if (value6 < length) {
|
|
r10 = value6;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
object2.flags = this._flags;
|
|
}
|
|
}
|
|
if (this._description) {
|
|
object2.description = this._description;
|
|
}
|
|
if (this._notes.length) {
|
|
object2.notes = this._notes;
|
|
}
|
|
if (this._tags.length) {
|
|
object2.tags = this._tags;
|
|
}
|
|
if (this._meta.length) {
|
|
object2.meta = this._meta;
|
|
}
|
|
if (this._examples.length) {
|
|
object2.examples = this._examples;
|
|
}
|
|
if (this._unit) {
|
|
object2.unit = this._unit;
|
|
}
|
|
value = this._valids.values();
|
|
if (value.length) {
|
|
object2.valids = value.map(_fun64458);
|
|
}
|
|
value = this._invalids.values();
|
|
if (value.length) {
|
|
object2.invalids = value.map(_fun64459);
|
|
}
|
|
object2.rules = [];
|
|
let _tests = this._tests;
|
|
length = _tests.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r6 = value;
|
|
while (true) {
|
|
_tests = this._tests;
|
|
property = _tests[r6];
|
|
object = {};
|
|
name = property.name;
|
|
object.name = name;
|
|
arg = property.arg;
|
|
if (arg !== undefined) {
|
|
binding = env1_4;
|
|
isRef = binding.isRef;
|
|
arg = property.arg;
|
|
isRef2 = Reflect.apply(isRef, binding, [arg]);
|
|
arg = property.arg;
|
|
if (!isRef2) {
|
|
r1 = arg;
|
|
continue;
|
|
}
|
|
value8 = arg.toString();
|
|
r1 = value8;
|
|
object.arg = r1;
|
|
}
|
|
options = property.options;
|
|
if (!options) {
|
|
continue;
|
|
}
|
|
hasRef = options.hasRef;
|
|
if (!hasRef) {
|
|
continue;
|
|
}
|
|
object.arg = {};
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
arg = property.arg;
|
|
value9 = Reflect.apply(keys, Object, [arg]);
|
|
length = value9.length;
|
|
if (!(value < length)) {
|
|
continue;
|
|
}
|
|
r19 = value;
|
|
while (true) {
|
|
property4 = value9[r19];
|
|
arg = property.arg;
|
|
property5 = arg[property4];
|
|
arg = object.arg;
|
|
binding = env1_4;
|
|
isRef = binding.isRef;
|
|
if (Reflect.apply(isRef, binding, [property5])) {
|
|
value10 = property5.toString();
|
|
r18 = value10;
|
|
} else {
|
|
r18 = property5;
|
|
}
|
|
arg[property4] = r18;
|
|
value11 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1;
|
|
length = value9.length;
|
|
if (value11 < length) {
|
|
r19 = value11;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
description = options.description;
|
|
if (typeof description === 'string') {
|
|
description = options.description;
|
|
object.description = description;
|
|
} else {
|
|
description = options.description;
|
|
if (typeof description !== 'function') {
|
|
continue;
|
|
}
|
|
description = options.description;
|
|
arg = object.arg;
|
|
object.description = Reflect.apply(description, options, [arg]);
|
|
}
|
|
rules = object2.rules;
|
|
rules.push(object);
|
|
value12 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
_tests = this._tests;
|
|
length = _tests.length;
|
|
if (value12 < length) {
|
|
r6 = value12;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
if (!object2.rules.length) {
|
|
delete object2.rules;
|
|
}
|
|
value = this._getLabel();
|
|
if (value) {
|
|
object2.label = value;
|
|
}
|
|
return object2;
|
|
function _fun64457(a0) { // fn#64457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:47591, offset: 0x01ba774e, size: 29 bytes, params: 2, frame: 11
|
|
return env0_0._flags.hasOwnProperty(a0);
|
|
}
|
|
|
|
function _fun64458(a0) { // fn#64458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:48303, offset: 0x01ba776b, size: 38 bytes, params: 2, frame: 11
|
|
var r0;
|
|
let value = a0;
|
|
const binding = env2_4;
|
|
if (binding.isRef(value)) {
|
|
value = value.toString();
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun64459(a0) { // fn#64459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:48411, offset: 0x01ba776b, size: 38 bytes, params: 2, frame: 11
|
|
var r0;
|
|
let value = a0;
|
|
const binding = env2_4;
|
|
if (binding.isRef(value)) {
|
|
value = value.toString();
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function label(a0) { // fn#64460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:49007, offset: 0x01ba7791, size: 72 bytes, params: 2, frame: 16
|
|
const value = a0;
|
|
const binding = env1_3;
|
|
binding.assert(value && typeof value === 'string', 'Label name must be a non-empty string');
|
|
const value4 = this.clone();
|
|
value4._flags.label = value;
|
|
return value4;
|
|
}
|
|
|
|
}
|
|
|
|
function concatSettings(a0, a1) { // fn#64463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:49563, offset: 0x01ba781f, size: 152 bytes, params: 3, frame: 20
|
|
var r4;
|
|
var value;
|
|
var Object;
|
|
var keys;
|
|
var length;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var hasOwnProperty;
|
|
var binding;
|
|
var applyToDefaults;
|
|
var property2;
|
|
var value4;
|
|
if (!a0) {
|
|
reducibleJoin3: while (true) {
|
|
if (!a1) {
|
|
return null;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
const object = {};
|
|
reducibleJoin5: while (true) {
|
|
if (a0) {
|
|
value = environment;
|
|
env0_1(object, a0);
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
reducibleJoin12: while (true) {
|
|
if (!a1) {
|
|
break reducibleJoin12;
|
|
}
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value = Reflect.apply(keys, Object, [a1]);
|
|
length = value.length;
|
|
value2 = 0;
|
|
value3 = environment;
|
|
if (!(value2 < length)) {
|
|
break reducibleJoin12;
|
|
}
|
|
r4 = value2;
|
|
reducibleLoop7: while (true) {
|
|
property = value[r4];
|
|
reducibleJoin11: while (true) {
|
|
reducibleJoin9: while (true) {
|
|
if (property !== 'language') {
|
|
break reducibleJoin9;
|
|
}
|
|
hasOwnProperty = object.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, object, [property])) {
|
|
binding = env0_3;
|
|
applyToDefaults = binding.applyToDefaults;
|
|
property2 = object[property];
|
|
object[property] = Reflect.apply(applyToDefaults, binding, [property2, a1[property]]);
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin9;
|
|
}
|
|
object[property] = a1[property];
|
|
break reducibleJoin11;
|
|
}
|
|
value4 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = value.length;
|
|
if (value4 < length) {
|
|
r4 = value4;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64464(a0, a1, a2) { // fn#64464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:49770, offset: 0x01ba78b7, size: 61 bytes, params: 4, frame: 13
|
|
const env0_0 = a1;
|
|
const env0_1 = a2(2);
|
|
a1.create = create_64465;
|
|
a1.isRef = function(a0) {
|
|
return typeof a0 === 'function' && a0.isJoi;
|
|
};
|
|
a1.push = push_64469;
|
|
function create_64465(a0, a1) { // fn#64465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:49819, offset: 0x01ba78f4, size: 235 bytes, params: 3, frame: 18
|
|
let value = a0;
|
|
const binding = env0_1;
|
|
binding.assert(typeof value === 'string', 'Invalid reference key:', value);
|
|
const value3 = binding.clone(a1);
|
|
const create_64465Ref2 = create_64465Ref;
|
|
const property = value[0];
|
|
let r2 = value3 && value3.contextPrefix;
|
|
r2 = !r2 ? '$' : r2;
|
|
create_64465Ref2.isContext = property === r2;
|
|
if (create_64465Ref2.isContext) {
|
|
value = value.slice(1);
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
create_64465Ref2.key = r2;
|
|
const key = create_64465Ref2.key;
|
|
const split = key.split;
|
|
r2 = value3 && value3.separator;
|
|
r2 = !r2 ? '.' : r2;
|
|
create_64465Ref2.path = Reflect.apply(split, key, [r2]);
|
|
create_64465Ref2.depth = create_64465Ref2.path.length;
|
|
create_64465Ref2.root = create_64465Ref2.path[0];
|
|
create_64465Ref2.isJoi = true;
|
|
create_64465Ref2.toString = function() {
|
|
return (create_64465Ref.isContext ? 'context:' : 'ref:') + create_64465Ref.key;
|
|
};
|
|
return create_64465Ref2;
|
|
function create_64465Ref(a0, a1) { // fn#64466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:49908, owner: create_64465.ref, offset: 0x01ba79df, size: 62 bytes, params: 3, frame: 15
|
|
const value = a0;
|
|
const binding = env1_1;
|
|
return binding.reach(create_64465Ref_2.isContext ? a1.context : value, create_64465Ref_2.key, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function push_64469(a0, a1) { // fn#64469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:50286, offset: 0x01ba7a61, size: 59 bytes, params: 3, frame: 12
|
|
if (require.isRef(a1) && !a1.isContext) {
|
|
a0.push(a1.root);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64470(a0, a1, a2) { // fn#64470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:50343, offset: 0x01ba7a9c, size: 194 bytes, params: 4, frame: 14
|
|
let env0_0 = a1;
|
|
const Symbol = global.Symbol;
|
|
let env0_1 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64471 : _fun64472;
|
|
let env0_2 = a2(2);
|
|
const env0_3 = a2(17);
|
|
const object = {stringify: stringify_64473};
|
|
a1.Err = (() => {
|
|
var closure = _fun64475;
|
|
var env0_0 = closure;
|
|
closure.prototype.toString = _fun64476;
|
|
return closure;
|
|
})();
|
|
a1.create = create_64478;
|
|
a1.process = process_64479;
|
|
object.getPath = function(a0) {
|
|
return a0.path || a0.context.key;
|
|
};
|
|
object.safeStringify = safeStringify;
|
|
object.serializer = function() {
|
|
var env0_0 = [];
|
|
var env0_1 = [];
|
|
var env0_2 = _fun64484;
|
|
return _fun64485;
|
|
};
|
|
object.annotate = annotate;
|
|
function stringify_64473(a0, a1) { // fn#64473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:50612, offset: 0x01ba7b5e, size: 273 bytes, params: 3, frame: 21
|
|
var r4;
|
|
var r7;
|
|
var r1;
|
|
var Array;
|
|
var length;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
let r3 = a0 === undefined ? 'undefined' : env0_1(a0);
|
|
if (a0 === null) {
|
|
return 'null';
|
|
}
|
|
if (r3 === 'string') {
|
|
return a0;
|
|
}
|
|
const Err = require.Err;
|
|
if (a0 instanceof Err) {
|
|
return a0.toString();
|
|
}
|
|
if (r3 === 'function') {
|
|
return a0.toString();
|
|
}
|
|
if (r3 === 'object') {
|
|
Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
length = a0.length;
|
|
value2 = 0;
|
|
value3 = '';
|
|
if (value2 < length) {
|
|
r4 = value3;
|
|
r7 = value2;
|
|
while (true) {
|
|
length = r4.length;
|
|
r1 = length ? ', ' : value3;
|
|
binding = env0_4;
|
|
value5 = binding.stringify(a0[r7], a1);
|
|
value6 = r4 + r1 + value5;
|
|
value7 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
length = a0.length;
|
|
if (value7 < length) {
|
|
r4 = value6;
|
|
r7 = value7;
|
|
continue;
|
|
}
|
|
r3 = value6;
|
|
break;
|
|
}
|
|
} else {
|
|
r3 = value3;
|
|
}
|
|
r1 = a1 ? '[' + r3 + ']' : r3;
|
|
return r1;
|
|
}
|
|
return a0.toString();
|
|
}
|
|
const JSON = global.JSON;
|
|
return JSON.stringify(a0);
|
|
}
|
|
|
|
function _fun64474() { // fn#64474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:50955, offset: 0x01ba7c6f, size: 29 bytes, params: 1, frame: 3
|
|
const _class_644752 = _class_64475;
|
|
_class_644752.prototype.toString = toString_64476;
|
|
return _class_644752;
|
|
function _class_64475(a0, a1, a2, a3, a4) { // fn#64475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:50966, offset: 0x01ba7c8c, size: 137 bytes, params: 6, frame: 14
|
|
if (this instanceof _class_64475) {
|
|
this.isJoi = true;
|
|
this.type = a0;
|
|
this.context = a1 || ({});
|
|
this.context.key = a2.key;
|
|
this.path = a2.path;
|
|
this.options = a3;
|
|
this.flags = a4;
|
|
return undefined;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function toString_64476() { // fn#64476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:51262, offset: 0x01ba7d15, size: 442 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var root;
|
|
var wrapArrays;
|
|
const language = this.options.language;
|
|
const label = this.flags.label;
|
|
let context = this.context;
|
|
if (label) {
|
|
context.key = this.flags.label;
|
|
} else if (!(context.key !== '' && this.context.key !== null)) {
|
|
context = this.context;
|
|
root = language.root;
|
|
root = !root ? env1_3.errors.root : root;
|
|
context.key = root;
|
|
}
|
|
const value = environment.__proto__;
|
|
const binding = env1_2;
|
|
let r4 = binding.reach(language, this.type) || env1_2.reach(env1_3.errors, this.type);
|
|
const value4 = RegExp('\\{\\{\\!?key\\}\\}', '').test(r4);
|
|
let r3 = r4.length > 2 && r4[0] === '!' && r4[1] === '!';
|
|
r4 = r3 ? r4.slice(2) : r4;
|
|
r3 = value4 || r3 ? r4 : (env1_2.reach(language, 'key') || env1_2.reach(env1_3.errors, 'key')) + r4;
|
|
if (typeof env1_2.reach(language, 'messages.wrapArrays') !== 'boolean') {
|
|
wrapArrays = env1_3.errors.messages.wrapArrays;
|
|
}
|
|
return r3.replace(RegExp('\\{\\{(\\!?)([^}]+)\\}\\}', 'g'), _fun64477);
|
|
function _fun64477(a0, a1, a2) { // fn#64477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:51785, offset: 0x01ba7ecf, size: 80 bytes, params: 4, frame: 15
|
|
const value = environment.__proto__.__proto__;
|
|
let binding = env2_2;
|
|
const value3 = binding.reach(env0_0.context, a2);
|
|
binding = env2_4;
|
|
const value4 = binding.stringify(value3, wrapArrays);
|
|
return a1 ? env2_2.escapeHtml(value4) : value4;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function create_64478(a0, a1, a2, a3, a4) { // fn#64478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:51897, offset: 0x01ba7f1f, size: 50 bytes, params: 6, frame: 19
|
|
const Err = require.Err;
|
|
const value = Object.create(Err.prototype, {constructor: {value: Err}});
|
|
const err = new Err(a0, a1, a2, a3, a4);
|
|
return err instanceof Object ? err : value;
|
|
}
|
|
|
|
function process_64479(a0, a1) { // fn#64479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:51956, offset: 0x01ba7f51, size: 145 bytes, params: 3, frame: 13
|
|
var value;
|
|
var Error;
|
|
var binding;
|
|
var error;
|
|
if (a0) {
|
|
if (a0.length) {
|
|
var env0_0 = '';
|
|
value = processErrors(a0);
|
|
if (value) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
binding = env0_0;
|
|
error = new Error();
|
|
error.isJoi = true;
|
|
error.name = 'ValidationError';
|
|
error.details = [];
|
|
error._object = a1;
|
|
error.annotate = env0_4.annotate;
|
|
return error;
|
|
}
|
|
}
|
|
return null;
|
|
function processErrors(a0, a1) { // fn#64480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:52015, owner: process_64479.processErrors, offset: 0x01ba7fe2, size: 275 bytes, params: 3, frame: 24
|
|
var r9;
|
|
var r3;
|
|
var r13;
|
|
var property;
|
|
var flags;
|
|
var error;
|
|
var toString;
|
|
var binding;
|
|
var context;
|
|
var reason;
|
|
var push;
|
|
var binding2;
|
|
var getPath;
|
|
var type;
|
|
var processErrorsBinding;
|
|
var path;
|
|
let length = a0.length;
|
|
let value = 0;
|
|
const value2 = undefined;
|
|
if (value < length) {
|
|
r9 = value;
|
|
reducibleLoop1: while (true) {
|
|
property = a0[r9];
|
|
flags = property.flags;
|
|
error = flags.error;
|
|
if (error) {
|
|
return property.flags.error;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
if (value2 !== a1) {
|
|
r13 = value2;
|
|
break reducibleJoin5;
|
|
}
|
|
toString = property.toString;
|
|
value = Reflect.apply(toString, property, []);
|
|
binding = env0_0;
|
|
r3 = binding ? '. ' : '';
|
|
env0_0 = binding + r3 + value;
|
|
r13 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
context = property.context;
|
|
reason = context.reason;
|
|
if (reason) {
|
|
context = property.context;
|
|
reason = context.reason;
|
|
length = reason.length;
|
|
reducibleJoin7: while (true) {
|
|
if (length) {
|
|
processErrorsBinding = processErrors;
|
|
context = property.context;
|
|
reason = context.reason;
|
|
path = property.path;
|
|
value = processErrorsBinding(reason, path);
|
|
if (value) {
|
|
return value;
|
|
}
|
|
value = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = a0.length;
|
|
if (!(value < length)) {
|
|
return value2;
|
|
}
|
|
r9 = value;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
}
|
|
binding = env0_1;
|
|
push = binding.push;
|
|
reducibleJoin9: while (true) {
|
|
if (r13) {
|
|
break reducibleJoin9;
|
|
}
|
|
toString = property.toString;
|
|
value = Reflect.apply(toString, property, []);
|
|
r13 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
binding2 = env1_4;
|
|
getPath = binding2.getPath;
|
|
type = property.type;
|
|
context = property.context;
|
|
Reflect.apply(push, binding, [{message: r13, path: Reflect.apply(getPath, binding2, [property]), type: type,
|
|
context: context}]);
|
|
value = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = a0.length;
|
|
if (!(value < length)) {
|
|
return value2;
|
|
}
|
|
r9 = value;
|
|
continue reducibleLoop1;
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
}
|
|
|
|
function safeStringify(a0, a1) { // fn#64482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:52570, offset: 0x01ba810d, size: 46 bytes, params: 3, frame: 15
|
|
const JSON = global.JSON;
|
|
return JSON.stringify(a0, env0_4.serializer(), a1);
|
|
}
|
|
|
|
function serializer() { // fn#64483, offset: 0x01ba813b, size: 34 bytes, params: 1, frame: 2
|
|
const env0_0 = [];
|
|
const env0_1 = [];
|
|
return _fun64485;
|
|
function cycleReplacer(a0, a1) { // fn#64484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:52667, owner: serializer.cycleReplacer, offset: 0x01ba815d, size: 90 bytes, params: 3, frame: 16
|
|
var r0;
|
|
var binding;
|
|
var slice;
|
|
var binding2;
|
|
var value;
|
|
if (env0_1[0] === a1) {
|
|
r0 = '[Circular ~]';
|
|
} else {
|
|
binding = env0_0;
|
|
slice = binding.slice;
|
|
binding2 = env0_1;
|
|
value = Reflect.apply(slice, binding, [0, binding2.indexOf(a1)]);
|
|
value = value.join('.');
|
|
value = '[Circular ~.' + value + ']';
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun64485(a0, a1) { // fn#64485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:52787, offset: 0x01ba81b7, size: 403 bytes, params: 3, frame: 20
|
|
var r2;
|
|
var r6;
|
|
var r3;
|
|
var r0;
|
|
var binding;
|
|
var value4;
|
|
var value5;
|
|
var placeholders;
|
|
var items2;
|
|
var Number;
|
|
let value = a1;
|
|
let length = env0_1.length;
|
|
const value3 = 0;
|
|
if (length > value3) {
|
|
binding = env0_1;
|
|
value4 = binding.indexOf(this);
|
|
value5 = ~value4;
|
|
binding = env0_1;
|
|
if (value5) {
|
|
binding.length = value4 + 1;
|
|
binding = env0_0;
|
|
binding.length = value4 + 1;
|
|
binding[value4] = a0;
|
|
} else {
|
|
binding.push(this);
|
|
binding = env0_0;
|
|
binding.push(a0);
|
|
}
|
|
binding = env0_1;
|
|
if (~binding.indexOf(value)) {
|
|
value = cycleReplacer.call(this, a0, value);
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
} else {
|
|
env0_1.push(value);
|
|
r2 = value;
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(r2)) {
|
|
placeholders = r2.placeholders;
|
|
if (placeholders) {
|
|
placeholders = r2.placeholders;
|
|
items2 = [];
|
|
length = r2.length;
|
|
if (value3 < length) {
|
|
r6 = value3;
|
|
while (true) {
|
|
if (placeholders[r6]) {
|
|
items2.push(placeholders[r6]);
|
|
}
|
|
items2.push(r2[r6]);
|
|
value = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = r2.length;
|
|
if (value < length) {
|
|
r6 = value;
|
|
continue;
|
|
}
|
|
r2 = items2;
|
|
break;
|
|
}
|
|
} else {
|
|
r2 = items2;
|
|
}
|
|
}
|
|
}
|
|
if (r2 === Infinity) {
|
|
value = r2.toString();
|
|
value = '[' + value + ']';
|
|
r0 = value;
|
|
} else if (r2 === -Infinity) {
|
|
value = r2.toString();
|
|
value = '[' + value + ']';
|
|
r0 = value;
|
|
} else {
|
|
Number = global.Number;
|
|
if (Number.isNaN(r2)) {
|
|
value = r2.toString();
|
|
value = '[' + value + ']';
|
|
r0 = value;
|
|
} else if (typeof r2 === 'function') {
|
|
value = r2.toString();
|
|
value = '[' + value + ']';
|
|
r0 = value;
|
|
} else {
|
|
value = 'undefined';
|
|
if (r2 === undefined) {
|
|
r3 = value;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = env1_1(r2);
|
|
r3 = value;
|
|
}
|
|
if (r3 !== 'symbol') {
|
|
r0 = r2;
|
|
} else {
|
|
value = r2.toString();
|
|
value = '[' + value + ']';
|
|
r0 = value;
|
|
}
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function annotate(a0) { // fn#64486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:53216, offset: 0x01ba834a, size: 913 bytes, params: 2, frame: 52
|
|
var r3;
|
|
var r2;
|
|
var r5;
|
|
var r20;
|
|
var r26;
|
|
var r29;
|
|
var r35;
|
|
var r4;
|
|
var r7;
|
|
var r1;
|
|
var details;
|
|
var value6;
|
|
var property;
|
|
var path;
|
|
var split;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var property2;
|
|
var value10;
|
|
var property3;
|
|
var Array;
|
|
var isArray;
|
|
var property4;
|
|
var replace;
|
|
var value11;
|
|
var value12;
|
|
var placeholders;
|
|
var property5;
|
|
var placeholders2;
|
|
var property6;
|
|
var property7;
|
|
var value13;
|
|
var value14;
|
|
var message;
|
|
var value15;
|
|
let value = '\x1b[31m';
|
|
reducibleJoin2: while (true) {
|
|
if (a0) {
|
|
value = '';
|
|
r3 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
value = '\x1b[41m';
|
|
reducibleJoin4: while (true) {
|
|
if (a0) {
|
|
value = '';
|
|
r2 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
r2 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
const env0_1 = r2;
|
|
value = '\x1b[0m';
|
|
reducibleJoin6: while (true) {
|
|
if (a0) {
|
|
value = '';
|
|
r2 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
r2 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
const env0_2 = r2;
|
|
let binding = env0_1;
|
|
let _object = this._object;
|
|
if (binding(_object) !== 'object') {
|
|
return this.details[0].message;
|
|
}
|
|
binding = env0_2;
|
|
const clone = binding.clone;
|
|
_object = this._object;
|
|
reducibleJoin9: while (true) {
|
|
if (_object) {
|
|
r5 = _object;
|
|
break reducibleJoin9;
|
|
}
|
|
r5 = {};
|
|
break reducibleJoin9;
|
|
}
|
|
const value3 = Reflect.apply(clone, binding, [r5]);
|
|
const object = {};
|
|
let length = this.details.length;
|
|
const value4 = length - 1;
|
|
const value5 = 0;
|
|
if (value4 >= value5) {
|
|
r20 = value4;
|
|
reducibleLoop10: while (true) {
|
|
value6 = r20 + 1;
|
|
details = this.details;
|
|
property = details[r20];
|
|
path = property.path;
|
|
split = path.split;
|
|
value7 = Reflect.apply(split, path, ['.']);
|
|
length = value7.length;
|
|
reducibleJoin27: while (true) {
|
|
if (!(value5 < length)) {
|
|
break reducibleJoin27;
|
|
}
|
|
value8 = ', ' + value6 + '_$end$_';
|
|
value9 = '_$idx$_' + value6 + '_$end$_';
|
|
if (!value3) {
|
|
break reducibleJoin27;
|
|
}
|
|
r26 = value3;
|
|
r29 = value5;
|
|
reducibleLoop12: while (true) {
|
|
property2 = value7[r29];
|
|
value10 = r29 + 1;
|
|
length = value7.length;
|
|
if (value10 < length) {
|
|
property7 = r26[property2];
|
|
r35 = property7;
|
|
} else {
|
|
property3 = r26[property2];
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [r26])) {
|
|
placeholders = r26.placeholders;
|
|
reducibleJoin21: while (true) {
|
|
if (placeholders) {
|
|
break reducibleJoin21;
|
|
}
|
|
r26.placeholders = {};
|
|
break reducibleJoin21;
|
|
}
|
|
placeholders = r26.placeholders;
|
|
property5 = placeholders[property2];
|
|
placeholders = r26.placeholders;
|
|
if (property5) {
|
|
placeholders2 = r26.placeholders;
|
|
property6 = placeholders2[property2];
|
|
replace = property6.replace;
|
|
placeholders[property2] = Reflect.apply(replace, property6, ['_$end$_', value8]);
|
|
r35 = r26;
|
|
} else {
|
|
placeholders[property2] = value9;
|
|
r35 = r26;
|
|
}
|
|
} else if (property3 !== undefined) {
|
|
delete r26[property2];
|
|
value12 = property2 + '_$key$_' + value6 + '_$end$_';
|
|
r26[value12] = property3;
|
|
path = property.path;
|
|
object[path] = value12;
|
|
r35 = r26;
|
|
} else {
|
|
path = property.path;
|
|
if (object[path]) {
|
|
path = property.path;
|
|
property4 = object[path];
|
|
replace = property4.replace;
|
|
value11 = Reflect.apply(replace, property4, ['_$end$_', value8]);
|
|
r26[value11] = r26[property4];
|
|
path = property.path;
|
|
object[path] = value11;
|
|
delete r26[property4];
|
|
r35 = r26;
|
|
} else {
|
|
r26['_$miss$_' + property2 + '|' + value6 + '_$end$_'] = '__missing__';
|
|
r35 = r26;
|
|
}
|
|
}
|
|
}
|
|
value13 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
length = value7.length;
|
|
if (value13 < length) {
|
|
if (r35) {
|
|
r26 = r35;
|
|
r29 = value13;
|
|
continue reducibleLoop12;
|
|
}
|
|
break reducibleJoin27;
|
|
}
|
|
break reducibleJoin27;
|
|
}
|
|
}
|
|
value14 = typeof r20 === 'bigint' ? r20 - 1n : +r20 - 1;
|
|
if (value14 >= value5) {
|
|
r20 = value14;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleLoop10;
|
|
}
|
|
}
|
|
value = Reflect.apply(env0_4.safeStringify(value3, 2).replace, value, [RegExp('_\\$key\\$_([, \\d]+)_\\$end\\$_\\"',
|
|
'g'), _fun64487]);
|
|
value = value.replace(RegExp('\\"_\\$miss\\$_([^\\|]+)\\|(\\d+)_\\$end\\$_\\"\\: \\"__missing__\\"', 'g'),
|
|
_fun64488);
|
|
value = value.replace(RegExp('\\s*\\"_\\$idx\\$_([, \\d]+)_\\$end\\$_\\",?\\n(.*)', 'g'), _fun64489);
|
|
value = value.replace(RegExp('"\\[(NaN|Symbol.*|-?Infinity|function.*|\\(.*)\\]"', 'g'), function(a0, a1) {
|
|
return a1;
|
|
});
|
|
value = value + '\n' + r3;
|
|
length = this.details.length;
|
|
if (value5 < length) {
|
|
r4 = value;
|
|
r7 = value5;
|
|
reducibleLoop29: while (true) {
|
|
value = r7 + 1;
|
|
details = this.details;
|
|
message = details[r7].message;
|
|
value = r4 + '\n[' + value + '] ' + message;
|
|
value15 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
details = this.details;
|
|
length = details.length;
|
|
if (value15 < length) {
|
|
r4 = value;
|
|
r7 = value15;
|
|
continue reducibleLoop29;
|
|
}
|
|
r1 = value;
|
|
break reducibleLoop29;
|
|
}
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return r1 + r2;
|
|
function _fun64487(a0, a1) { // fn#64487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:54213, offset: 0x01ba86db, size: 50 bytes, params: 3, frame: 3
|
|
return '" ' + env0_0 + '[' + a1 + ']' + env0_2;
|
|
}
|
|
|
|
function _fun64488(a0, a1, a2) { // fn#64488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:54266, offset: 0x01ba870d, size: 79 bytes, params: 4, frame: 4
|
|
return env0_1 + '"' + a1 + '"' + env0_2 + env0_0 + ' [' + a2 + ']: -- missing --' + env0_2;
|
|
}
|
|
|
|
function _fun64489(a0, a1, a2) { // fn#64489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:54347, offset: 0x01ba875c, size: 65 bytes, params: 4, frame: 4
|
|
let value = '\n' + a2;
|
|
value = value + ' ' + env0_0 + '[' + a1;
|
|
return value + ']' + env0_2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64492(a0, a1, a2) { // fn#64492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:59943, offset: 0x01ba88e3, size: 53 bytes, params: 4, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
const closure = _fun64493;
|
|
const call = closure.call;
|
|
const Buffer = a2(3).Buffer;
|
|
Reflect.apply(call, closure, [a1, Buffer]);
|
|
function _fun64493(a0) { // fn#64493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:59960, offset: 0x01ba8918, size: 108 bytes, params: 2, frame: 13
|
|
let env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
const env0_1 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64494 : _fun64495;
|
|
const env0_2 = importDefault(15);
|
|
env0_0.exports = (() => {
|
|
var closure = _fun64497;
|
|
var env0_0 = closure;
|
|
closure.prototype.add = _fun64498;
|
|
closure.prototype.merge = _fun64499;
|
|
closure.prototype.remove = _fun64500;
|
|
closure.prototype.has = _fun64502;
|
|
closure.prototype.values = _fun64503;
|
|
closure.prototype.slice = _fun64504;
|
|
closure.prototype.concat = _fun64505;
|
|
return closure;
|
|
})();
|
|
function _fun64496() { // fn#64496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:60215, offset: 0x01ba8984, size: 125 bytes, params: 1, frame: 4
|
|
const Set2 = Set;
|
|
Set2.prototype.add = add_64498;
|
|
Set2.prototype.merge = merge_64499;
|
|
Set2.prototype.remove = function(a0) {
|
|
var env0_0 = a0;
|
|
this._set = this._set.filter(_fun64501);
|
|
return this;
|
|
};
|
|
Set2.prototype.has = has_64502;
|
|
Set2.prototype.values = function(a0) {
|
|
var r3;
|
|
var property;
|
|
var items;
|
|
var value;
|
|
if (a0) {
|
|
if (a0.stripUndefined) {
|
|
items = [];
|
|
value = 0;
|
|
if (value < this._set.length) {
|
|
r3 = value;
|
|
while (true) {
|
|
property = this._set[r3];
|
|
if (property !== undefined) {
|
|
items.push(property);
|
|
}
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value < this._set.length) {
|
|
r3 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items;
|
|
}
|
|
property = this._set;
|
|
return property.slice();
|
|
}
|
|
return this._set.slice();
|
|
};
|
|
Set2.prototype.slice = slice_64504;
|
|
Set2.prototype.concat = concat_64505;
|
|
return Set2;
|
|
function Set() { // fn#64497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:60226, offset: 0x01ba8a01, size: 67 bytes, params: 1, frame: 12
|
|
if (this instanceof Set) {
|
|
this._set = [];
|
|
return undefined;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function add_64498(a0, a1) { // fn#64498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:60399, offset: 0x01ba8a44, size: 97 bytes, params: 3, frame: 18
|
|
const binding = env1_2;
|
|
if (binding.isRef(a0)) {
|
|
if (a1 !== undefined) {
|
|
env1_2.push(a1, a0);
|
|
}
|
|
this._set.push(a0);
|
|
} else {
|
|
if (this.has(a0, null, null, false)) {
|
|
return undefined;
|
|
}
|
|
if (a1 !== undefined) {
|
|
env1_2.push(a1, a0);
|
|
}
|
|
this._set.push(a0);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function remove_64500(a0) { // fn#64500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:60694, offset: 0x01ba8b27, size: 41 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
const _set = this._set;
|
|
this._set = _set.filter(_fun64501);
|
|
return this;
|
|
function _fun64501(a0) { // fn#64501, offset: 0x01ba8b50, size: 16 bytes, params: 2, frame: 2
|
|
return env0_0 !== a0;
|
|
}
|
|
|
|
}
|
|
|
|
function has_64502(a0, a1, a2, a3) { // fn#64502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:60800, offset: 0x01ba8b60, size: 426 bytes, params: 5, frame: 30
|
|
var r2;
|
|
var r0;
|
|
var r16;
|
|
var r17;
|
|
var r19;
|
|
var property;
|
|
var binding;
|
|
var isRef;
|
|
var isRef2;
|
|
var reference;
|
|
var parent;
|
|
var value5;
|
|
var Array;
|
|
var isArray;
|
|
var value6;
|
|
var value7;
|
|
var Date;
|
|
var getTime;
|
|
var value8;
|
|
var toLowerCase;
|
|
var value9;
|
|
var isBuffer;
|
|
var length2;
|
|
var toString;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
const value = a1;
|
|
let _set = this._set;
|
|
let length = _set.length;
|
|
const value2 = 0;
|
|
const value4 = 'undefined';
|
|
if (value2 < length) {
|
|
r2 = value2;
|
|
reducibleLoop1: while (true) {
|
|
_set = this._set;
|
|
property = _set[r2];
|
|
reducibleJoin3: while (true) {
|
|
if (value) {
|
|
binding = env1_2;
|
|
isRef = binding.isRef;
|
|
isRef2 = Reflect.apply(isRef, binding, [property]);
|
|
r0 = isRef2;
|
|
break reducibleJoin3;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (r0) {
|
|
reference = value.reference;
|
|
reducibleJoin6: while (true) {
|
|
if (reference) {
|
|
r0 = reference;
|
|
break reducibleJoin6;
|
|
}
|
|
parent = value.parent;
|
|
r0 = parent;
|
|
break reducibleJoin6;
|
|
}
|
|
value5 = property(r0, a2);
|
|
r16 = value5;
|
|
break reducibleJoin7;
|
|
}
|
|
r16 = property;
|
|
break reducibleJoin7;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
reducibleJoin9: while (true) {
|
|
if (Reflect.apply(isArray, Array, [r16])) {
|
|
r17 = r16;
|
|
break reducibleJoin9;
|
|
}
|
|
r17 = [r16];
|
|
break reducibleJoin9;
|
|
}
|
|
length = r17.length;
|
|
if (value2 < length) {
|
|
r16 = value2;
|
|
reducibleLoop10: while (true) {
|
|
property = r17[r16];
|
|
reducibleJoin12: while (true) {
|
|
if (a0 === undefined) {
|
|
r19 = value4;
|
|
break reducibleJoin12;
|
|
}
|
|
value6 = env1_1(a0);
|
|
r19 = value6;
|
|
break reducibleJoin12;
|
|
}
|
|
reducibleJoin14: while (true) {
|
|
if (property === undefined) {
|
|
r0 = value4;
|
|
break reducibleJoin14;
|
|
}
|
|
value7 = env1_1(property);
|
|
r0 = value7;
|
|
break reducibleJoin14;
|
|
}
|
|
if (r19 === r0) {
|
|
reducibleJoin26: while (true) {
|
|
reducibleJoin29: while (true) {
|
|
if (a0 === property) {
|
|
break reducibleJoin29;
|
|
}
|
|
Date = global.Date;
|
|
if (a0 instanceof Date) {
|
|
Date = global.Date;
|
|
reducibleJoin19: while (true) {
|
|
if (property instanceof Date) {
|
|
getTime = a0.getTime;
|
|
value8 = Reflect.apply(getTime, a0, []);
|
|
getTime = property.getTime;
|
|
if (value8 === Reflect.apply(getTime, property, [])) {
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
}
|
|
if (a3) {
|
|
reducibleJoin22: while (true) {
|
|
if (typeof a0 !== 'string') {
|
|
break reducibleJoin22;
|
|
}
|
|
toLowerCase = a0.toLowerCase;
|
|
value9 = Reflect.apply(toLowerCase, a0, []);
|
|
toLowerCase = property.toLowerCase;
|
|
if (value9 === Reflect.apply(toLowerCase, property, [])) {
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
}
|
|
binding = env1_0;
|
|
isBuffer = binding.isBuffer;
|
|
if (Reflect.apply(isBuffer, binding, [a0])) {
|
|
binding = env1_0;
|
|
isBuffer = binding.isBuffer;
|
|
if (Reflect.apply(isBuffer, binding, [property])) {
|
|
length = a0.length;
|
|
length2 = property.length;
|
|
if (length !== length2) {
|
|
break reducibleJoin26;
|
|
}
|
|
toString = a0.toString;
|
|
value10 = Reflect.apply(toString, a0, ['binary']);
|
|
toString = property.toString;
|
|
if (value10 === Reflect.apply(toString, property, ['binary'])) {
|
|
break reducibleJoin29;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
value11 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
length = r17.length;
|
|
if (value11 < length) {
|
|
r16 = value11;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleLoop10;
|
|
}
|
|
}
|
|
value12 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
_set = this._set;
|
|
length = _set.length;
|
|
if (!(value12 < length)) {
|
|
return false;
|
|
}
|
|
r2 = value12;
|
|
continue reducibleLoop1;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function slice_64504() { // fn#64504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:61517, offset: 0x01ba8d73, size: 53 bytes, params: 1, frame: 10
|
|
const set = new Set();
|
|
set._set = this._set.slice();
|
|
return set;
|
|
}
|
|
|
|
function concat_64505({_set}) { // fn#64505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:61604, offset: 0x01ba8da8, size: 63 bytes, params: 2, frame: 12
|
|
const set = new Set();
|
|
const _set = this._set;
|
|
set._set = _set.concat(_set);
|
|
return set;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64506(a0, a1, a2) { // fn#64506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:61709, offset: 0x01ba8de7, size: 193 bytes, params: 4, frame: 15
|
|
const env0_0 = a2;
|
|
const Symbol = global.Symbol;
|
|
const env0_1 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64507 : _fun64508;
|
|
const env0_2 = a2(2);
|
|
const env0_3 = a2(15);
|
|
const env0_4 = {any: null, date: a2(20), string: a2(21), number: a2(26), boolean: a2(27), alt: null, object: null};
|
|
a1.schema = schema;
|
|
a1.ref = ref_64510;
|
|
function schema(a0) { // fn#64509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:62055, offset: 0x01ba8ea8, size: 510 bytes, params: 2, frame: 17
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value4;
|
|
var value8;
|
|
var Array;
|
|
var value9;
|
|
let value = a0;
|
|
let binding = env0_4;
|
|
const any = binding.any;
|
|
if (any) {
|
|
r0 = any;
|
|
} else {
|
|
value4 = new importDefault(14)();
|
|
}
|
|
binding.any = r0;
|
|
binding = env0_4;
|
|
binding.alt = binding.alt || importDefault(28);
|
|
binding = env0_4;
|
|
binding.object = binding.object || importDefault(29);
|
|
if (value == null) {
|
|
value8 = typeof value;
|
|
if (value8 === 'string') {
|
|
value = env0_4.string.valid(value);
|
|
r0 = value;
|
|
} else if (value8 === 'number') {
|
|
value = env0_4.number.valid(value);
|
|
r0 = value;
|
|
} else if (value8 === 'boolean') {
|
|
value = env0_4.boolean.valid(value);
|
|
r0 = value;
|
|
} else {
|
|
binding = env0_3;
|
|
if (binding.isRef(value)) {
|
|
value = env0_4.any.valid(value);
|
|
r0 = value;
|
|
} else {
|
|
env0_2.assert(value === null, 'Invalid schema content:', value);
|
|
value = env0_4.any.valid(null);
|
|
r0 = value;
|
|
}
|
|
}
|
|
} else {
|
|
r1 = value === undefined ? 'undefined' : env0_1(value);
|
|
if (r1 === 'object') {
|
|
if (value.isJoi) {
|
|
r1 = value;
|
|
} else {
|
|
Array = global.Array;
|
|
if (Array.isArray(value)) {
|
|
value = env0_4.alt.try(value);
|
|
r2 = value;
|
|
} else if (value instanceof global.RegExp) {
|
|
value = env0_4.string.regex(value);
|
|
r2 = value;
|
|
} else {
|
|
value9 = value instanceof global.Date;
|
|
binding = env0_4;
|
|
if (value9) {
|
|
value = binding.date.valid(value);
|
|
r2 = value;
|
|
} else {
|
|
value = binding.object.keys(value);
|
|
r2 = value;
|
|
}
|
|
}
|
|
r1 = r2;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
value8 = typeof value;
|
|
if (value8 === 'string') {
|
|
value = env0_4.string.valid(value);
|
|
r0 = value;
|
|
} else if (value8 === 'number') {
|
|
value = env0_4.number.valid(value);
|
|
r0 = value;
|
|
} else if (value8 === 'boolean') {
|
|
value = env0_4.boolean.valid(value);
|
|
r0 = value;
|
|
} else {
|
|
binding = env0_3;
|
|
if (binding.isRef(value)) {
|
|
value = env0_4.any.valid(value);
|
|
r0 = value;
|
|
} else {
|
|
env0_2.assert(value === null, 'Invalid schema content:', value);
|
|
value = env0_4.any.valid(null);
|
|
r0 = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function ref_64510(a0) { // fn#64510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:62534, offset: 0x01ba90a6, size: 43 bytes, params: 2, frame: 12
|
|
var r0;
|
|
let value = a0;
|
|
const binding = env0_3;
|
|
if (binding.isRef(value)) {
|
|
r0 = value;
|
|
} else {
|
|
value = env0_3.create(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64511(a0, a1, a2) { // fn#64511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:62580, offset: 0x01ba90d1, size: 279 bytes, params: 4, frame: 16
|
|
const value = a2(14);
|
|
let env0_1 = a2(15);
|
|
const env0_2 = a2(2);
|
|
const object = {};
|
|
object.isoDate = RegExp('^(?:\\d{4}(?!\\d{2}\\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\\1(?:[12]\\d|0[1-9]|3[01]))?|W(?:[0-4]\\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\\d|[12]\\d{2}|3(?:[0-5]\\d|6[1-6])))(?![T]$|[T][\\d]+Z$)(?:[T\\s](?:(?:(?:[01]\\d|2[0-3])(?:(:?)[0-5]\\d)?|24\\:?00)(?:[.,]\\d+(?!:))?)(?:\\2[0-5]\\d(?:[.,]\\d+)?)?(?:[Z]|(?:[+-])(?:[01]\\d|2[0-3])(?::?[0-5]\\d)?)?)?)?$',
|
|
'');
|
|
let Date = global.Date;
|
|
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
const date = new Date('');
|
|
object.invalidDate = date instanceof Object ? date : value2;
|
|
let env0_0 = object.isoDate.toString();
|
|
object.isIsoDate = isIsoDate;
|
|
object.Date = ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun64515;
|
|
var env0_1 = closure;
|
|
_inherits_64512(closure, a0) /* class inheritance: closure extends a0 */;
|
|
closure.prototype._base = _fun64516;
|
|
closure.toDate = _fun64517;
|
|
closure.prototype.iso = _fun64518;
|
|
closure.prototype.timestamp = _fun64519;
|
|
closure.prototype._isIsoDate = _fun64520;
|
|
return closure;
|
|
})(value);
|
|
object.compare = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun64522;
|
|
};
|
|
Date = object.Date;
|
|
Date.prototype.min = object.compare('min', function(a0, a1) {
|
|
return a0 >= a1;
|
|
});
|
|
Date = object.Date;
|
|
Date.prototype.max = object.compare('max', function(a0, a1) {
|
|
return a0 <= a1;
|
|
});
|
|
Date = object.Date;
|
|
a0.exports = new Date();
|
|
function isIsoDate(a0) { // fn#64513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:63574, offset: 0x01ba91e8, size: 31 bytes, params: 2, frame: 10
|
|
var r0;
|
|
let value = a0;
|
|
if (value) {
|
|
value = value.toString();
|
|
value = value === env0_0;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun64514(a0) { // fn#64514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:63622, offset: 0x01ba9207, size: 110 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_645152 = _class_64515;
|
|
_inherits_64512(_class_645152, a0) /* class inheritance: closure extends a0 */;
|
|
_class_645152.prototype._base = _base_64516;
|
|
_class_645152.toDate = toDate_64517;
|
|
_class_645152.prototype.iso = iso;
|
|
_class_645152.prototype.timestamp = timestamp;
|
|
_class_645152.prototype._isIsoDate = _isIsoDate;
|
|
return _class_645152;
|
|
function _class_64515() { // fn#64515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:63634, offset: 0x01ba9275, size: 149 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
const value = this;
|
|
if (value instanceof _class_64515) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'date';
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function _base_64516(a0, a1, a2) { // fn#64516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:64063, offset: 0x01ba930a, size: 323 bytes, params: 4, frame: 22
|
|
var r1;
|
|
var value2;
|
|
var Date;
|
|
var toDate;
|
|
var _flags;
|
|
var format;
|
|
var timestamp;
|
|
var isNaN;
|
|
var binding;
|
|
let value = a0;
|
|
const object = {};
|
|
const convert = a2.convert;
|
|
if (convert) {
|
|
value2 = environment.__proto__;
|
|
Date = env1_3.Date;
|
|
toDate = Date.toDate;
|
|
_flags = this._flags;
|
|
format = _flags.format;
|
|
_flags = this._flags;
|
|
timestamp = _flags.timestamp;
|
|
_flags = this._flags;
|
|
r1 = Reflect.apply(toDate, Date, [value, format, timestamp, _flags.multiplier]);
|
|
} else {
|
|
r1 = convert;
|
|
}
|
|
r1 = !r1 ? value : r1;
|
|
object.value = r1;
|
|
value = object.value;
|
|
Date = global.Date;
|
|
if (value instanceof Date) {
|
|
isNaN = global.isNaN;
|
|
value = object.value;
|
|
value = value.getTime();
|
|
if (isNaN(value)) {
|
|
if (a2.convert) {
|
|
value = environment.__proto__;
|
|
binding = env1_3;
|
|
value = binding.isIsoDate(this._flags.format);
|
|
object.errors = this.createError('date.' + (value ? 'isoDate' : this._flags.timestamp ? 'timestamp.' + this._flags.timestamp : 'base'),
|
|
|
|
|
|
|
|
null, a1, a2);
|
|
} else {
|
|
object.errors = this.createError('date.strict', null, a1, a2);
|
|
}
|
|
} else {
|
|
object.errors = null;
|
|
}
|
|
} else if (a2.convert) {
|
|
value = environment.__proto__;
|
|
binding = env1_3;
|
|
value = binding.isIsoDate(this._flags.format);
|
|
object.errors = this.createError('date.' + (value ? 'isoDate' : this._flags.timestamp ? 'timestamp.' + this._flags.timestamp : 'base'),
|
|
|
|
null, a1, a2);
|
|
} else {
|
|
object.errors = this.createError('date.strict', null, a1, a2);
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function toDate_64517(a0, a1, a2, a3) { // fn#64517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:64527, offset: 0x01ba944d, size: 321 bytes, params: 5, frame: 17
|
|
var r1;
|
|
var r6;
|
|
var isNaN;
|
|
let value = a0;
|
|
const Date = global.Date;
|
|
if (value instanceof Date) {
|
|
return value;
|
|
}
|
|
const value2 = typeof value;
|
|
const value3 = value2 === 'string';
|
|
if (value3) {
|
|
r1 = value3 && RegExp('^[+-]?\\d+(\\.\\d+)?$', '').test(value);
|
|
if (r1) {
|
|
value = global.parseFloat(value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
r1 = a1 && env1_3.isIsoDate(a1) ? a1.test(r6) ? new global.Date() : env1_3.invalidDate : a2 && a3 ? new global.Date(r6 * a3) : new global.Date();
|
|
isNaN = global.isNaN;
|
|
value = r1.getTime();
|
|
if (isNaN(value)) {
|
|
return null;
|
|
}
|
|
return r1;
|
|
}
|
|
if (value2 === 'number') {
|
|
isNaN = global.isNaN;
|
|
if (isNaN(value)) {
|
|
return null;
|
|
}
|
|
if (global.isFinite(value)) {
|
|
r1 = value3 && RegExp('^[+-]?\\d+(\\.\\d+)?$', '').test(value);
|
|
if (r1) {
|
|
value = global.parseFloat(value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
r1 = a1 && env1_3.isIsoDate(a1) ? a1.test(r6) ? new global.Date() : env1_3.invalidDate : a2 && a3 ? new global.Date(r6 * a3) : new global.Date();
|
|
isNaN = global.isNaN;
|
|
value = r1.getTime();
|
|
if (isNaN(value)) {
|
|
return null;
|
|
}
|
|
return r1;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function iso() { // fn#64518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:64883, offset: 0x01ba958e, size: 40 bytes, params: 1, frame: 10
|
|
const value = this.clone();
|
|
value._flags.format = env1_3.isoDate;
|
|
return value;
|
|
}
|
|
|
|
function timestamp(a0) { // fn#64519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:64980, offset: 0x01ba95b6, size: 150 bytes, params: 2, frame: 17
|
|
const r3 = a0 || 'javascript';
|
|
const items2 = ['javascript', 'unix'];
|
|
value = environment.__proto__;
|
|
const binding = env1_2;
|
|
binding.assert(items2.indexOf(r3) !== -1, '"type" must be one of "' + items2.join('", "') + '"');
|
|
value = this.clone();
|
|
value._flags.timestamp = r3;
|
|
value._flags.multiplier = r3 !== 'unix' ? 1 : 1000;
|
|
return value;
|
|
}
|
|
|
|
function _isIsoDate(a0) { // fn#64520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:65236, offset: 0x01ba964c, size: 28 bytes, params: 2, frame: 11
|
|
return env1_3.isoDate.test(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function compare_64521(a0, a1) { // fn#64521, offset: 0x01ba9668, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return _fun64522;
|
|
function _fun64522(a0) { // fn#64522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:65327, offset: 0x01ba967f, size: 134 bytes, params: 2, frame: 17
|
|
var r3;
|
|
let value = a0;
|
|
let env0_0 = value;
|
|
if (value === 'now' || env1_1.isRef(value)) {
|
|
r3 = value;
|
|
} else {
|
|
value = env1_3.Date.toDate(value);
|
|
env0_0 = value;
|
|
r3 = value;
|
|
}
|
|
env1_2.assert(r3, 'Invalid date format');
|
|
return this._test(env0_0, r3, _fun64523);
|
|
function _fun64523(a0, a1, a2) { // fn#64523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:65452, offset: 0x01ba9705, size: 286 bytes, params: 4, frame: 22
|
|
var r3;
|
|
var r0;
|
|
var value4;
|
|
var Date;
|
|
var value5;
|
|
var createError;
|
|
var value8;
|
|
var value10;
|
|
var date;
|
|
let value = a0;
|
|
if (result) {
|
|
r3 = global.Date.now();
|
|
value8 = environment.__proto__;
|
|
} else {
|
|
if (env0_2) {
|
|
value4 = environment.__proto__.__proto__;
|
|
Date = env2_3.Date;
|
|
value5 = Date.toDate(env0_0(a1.reference || a1.parent, a2));
|
|
if (value5) {
|
|
r3 = value5.getTime();
|
|
value8 = environment.__proto__;
|
|
if (require(value.getTime(), r3)) {
|
|
r0 = value;
|
|
} else {
|
|
createError = this.createError;
|
|
value = 'date.' + env1_0;
|
|
Date = global.Date;
|
|
value10 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value = Reflect.apply(createError, this, [value, {limit: date instanceof Object ? date : value10},
|
|
a1,
|
|
a2]);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
return this.createError('date.ref', {ref: env0_0.key}, a1, a2);
|
|
}
|
|
r3 = env0_0.getTime();
|
|
}
|
|
if (require(value.getTime(), r3)) {
|
|
r0 = value;
|
|
} else {
|
|
createError = this.createError;
|
|
value = 'date.' + env1_0;
|
|
Date = global.Date;
|
|
value10 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value = Reflect.apply(createError, this, [value, {limit: date instanceof Object ? date : value10}, a1, a2]);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64526(a0, a1, a2) { // fn#64526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:65884, offset: 0x01ba9823, size: 53 bytes, params: 4, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
const closure = _fun64527;
|
|
const call = closure.call;
|
|
const Buffer = a2(3).Buffer;
|
|
Reflect.apply(call, closure, [a1, Buffer]);
|
|
function _fun64527(a0) { // fn#64527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:65901, offset: 0x01ba9858, size: 435 bytes, params: 2, frame: 18
|
|
let env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let env0_1 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64529 : _fun64530;
|
|
const env0_2 = importDefault(8);
|
|
const env0_3 = importDefault(2);
|
|
const env0_4 = importDefault(22);
|
|
const defaultImport = importDefault(14);
|
|
const env0_5 = importDefault(15);
|
|
const env0_6 = importDefault(20);
|
|
const defaultImport2 = importDefault(23);
|
|
const defaultImport3 = importDefault(25);
|
|
const object = {};
|
|
object.uriRegex = defaultImport2.createUriRegex();
|
|
object.ipRegex = defaultImport3.createIpRegex(['ipv4', 'ipv6', 'ipvfuture'], 'optional');
|
|
object.String = _fun64531(defaultImport);
|
|
object.compare = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun64569;
|
|
};
|
|
let String = object.String;
|
|
let prototype = String.prototype;
|
|
prototype.min = object.compare('min', _fun64571);
|
|
String = object.String;
|
|
String.prototype.max = object.compare('max', _fun64572);
|
|
String = object.String;
|
|
String.prototype.length = object.compare('length', _fun64573);
|
|
String = object.String;
|
|
prototype = String.prototype;
|
|
String = object.String;
|
|
prototype.uuid = String.prototype.guid;
|
|
const binding = env0_0;
|
|
String = object.String;
|
|
binding.exports = new String();
|
|
function _fun64531(a0) { // fn#64531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:66826, offset: 0x01ba9a0b, size: 339 bytes, params: 2, frame: 14
|
|
let env0_0 = a0;
|
|
const _class_645322 = _class_64532;
|
|
_inherits_64528(_class_645322, a0) /* class inheritance: closure extends a0 */;
|
|
_class_645322.prototype._base = _base_64533;
|
|
_class_645322.prototype.insensitive = function() {
|
|
var value = this.clone();
|
|
value._flags.insensitive = true;
|
|
return value;
|
|
};
|
|
_class_645322.prototype.creditCard = function() {
|
|
return this._test('creditCard', undefined, _fun64536);
|
|
};
|
|
_class_645322.prototype.regex = regex_64537;
|
|
_class_645322.prototype.alphanum = function() {
|
|
return this._test('alphanum', undefined, _fun64540);
|
|
};
|
|
_class_645322.prototype.token = function() {
|
|
return this._test('token', undefined, _fun64542);
|
|
};
|
|
_class_645322.prototype.email = email;
|
|
_class_645322.prototype.ip = ip;
|
|
_class_645322.prototype.uri = uri;
|
|
_class_645322.prototype.isoDate = function() {
|
|
return this._test('isoDate', undefined, _fun64550);
|
|
};
|
|
_class_645322.prototype.guid = guid;
|
|
_class_645322.prototype.hex = function() {
|
|
var regexp = RegExp('^[a-f0-9]+$', 'i');
|
|
var env0_0 = regexp;
|
|
return this._test('hex', regexp, _fun64555);
|
|
};
|
|
_class_645322.prototype.base64 = function() {
|
|
var regexp = RegExp('^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$', '');
|
|
var env0_0 = regexp;
|
|
return this._test('base64', regexp, _fun64557);
|
|
};
|
|
_class_645322.prototype.hostname = function() {
|
|
var env0_0 = RegExp('^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$',
|
|
|
|
'');
|
|
return this._test('hostname', undefined, _fun64559);
|
|
};
|
|
_class_645322.prototype.lowercase = function() {
|
|
var value = this._test('lowercase', undefined, _fun64561);
|
|
value._flags.case = 'lower';
|
|
return value;
|
|
};
|
|
_class_645322.prototype.uppercase = function() {
|
|
var value = this._test('uppercase', undefined, _fun64563);
|
|
value._flags.case = 'upper';
|
|
return value;
|
|
};
|
|
_class_645322.prototype.trim = function() {
|
|
var value = this._test('trim', undefined, _fun64565);
|
|
value._flags.trim = true;
|
|
return value;
|
|
};
|
|
_class_645322.prototype.replace = replace_64566;
|
|
_class_645322.prototype.truncate = function(a0) {
|
|
var value = this.clone();
|
|
value._flags.truncate = a0 === undefined || !!a0;
|
|
return value;
|
|
};
|
|
return _class_645322;
|
|
function _class_64532() { // fn#64532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:66838, offset: 0x01ba9b5e, size: 169 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
const value = this;
|
|
if (value instanceof _class_64532) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'string';
|
|
r0._invalids.add('');
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function creditCard() { // fn#64535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:67975, offset: 0x01ba9dc0, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('creditCard', undefined, _fun64536);
|
|
}
|
|
|
|
function regex_64537(a0, a1) { // fn#64537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:68224, offset: 0x01ba9e67, size: 292 bytes, params: 3, frame: 20
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
const binding = env1_3;
|
|
const assert = binding.assert;
|
|
let RegExp = global.RegExp;
|
|
Reflect.apply(assert, binding, [a0 instanceof RegExp, 'pattern must be a RegExp']);
|
|
const object = {};
|
|
RegExp = global.RegExp;
|
|
const source = a0.source;
|
|
const ignoreCase = a0.ignoreCase;
|
|
const value2 = undefined;
|
|
const r5 = ignoreCase ? 'i' : value2;
|
|
const value4 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
const regExp = new RegExp(source, r5);
|
|
object.pattern = regExp instanceof Object ? regExp : value4;
|
|
if (typeof a1 === 'string') {
|
|
object.name = a1;
|
|
} else if ((value2 === a1 ? 'undefined' : env1_1(a1)) === 'object') {
|
|
object.invert = !!a1.invert;
|
|
if (a1.name) {
|
|
object.name = a1.name;
|
|
}
|
|
}
|
|
const invert = object.invert;
|
|
value = '';
|
|
const env0_1 = ['string.regex', invert ? '.invert' : value, object.name ? '.name' : '.base'].join(value);
|
|
return this._test('regex', object, _fun64538);
|
|
function _fun64538(a0, a1, a2) { // fn#64538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:68584, offset: 0x01ba9f8b, size: 111 bytes, params: 4, frame: 19
|
|
const value = a0;
|
|
return env0_0.pattern.test(value) ^ env0_0.invert ? value : this.createError(env0_1, {name: env0_0.name,
|
|
pattern: env0_0.pattern, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function alphanum() { // fn#64539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:68730, offset: 0x01ba9ffa, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('alphanum', undefined, function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (RegExp('^[a-zA-Z0-9]+$', '').test(value)) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.createError('string.alphanum', {value: value}, a1, a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
}
|
|
|
|
function token() { // fn#64541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:68913, offset: 0x01baa061, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('token', undefined, function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (RegExp('^\\w+$', '').test(value)) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.createError('string.token', {value: value}, a1, a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
}
|
|
|
|
function email(a0) { // fn#64543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:69078, offset: 0x01baa0c8, size: 348 bytes, params: 2, frame: 21
|
|
var environment;
|
|
var r2;
|
|
var r5;
|
|
var value;
|
|
var binding;
|
|
var assert;
|
|
const env0_0 = a0;
|
|
if (a0) {
|
|
value = environment.__proto__;
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
r2 = a0 === undefined ? 'undefined' : env1_1(a0);
|
|
Reflect.apply(assert, binding, [r2 === 'object', 'email options must be an object']);
|
|
binding = env1_3;
|
|
binding.assert(a0.checkDNS === undefined, 'checkDNS option is not supported');
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
r5 = a0.tldWhitelist === undefined || env1_1(a0.tldWhitelist) === 'object';
|
|
Reflect.apply(assert, binding, [r5, 'tldWhitelist must be an array or object']);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
r5 = a0.minDomainAtoms === undefined || env1_3.isInteger(a0.minDomainAtoms) && a0.minDomainAtoms > 0;
|
|
Reflect.apply(assert, binding, [r5, 'minDomainAtoms must be a positive integer']);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
r2 = a0.errorLevel === undefined || typeof a0.errorLevel === 'boolean';
|
|
r2 = !r2 ? env1_3.isInteger(a0.errorLevel) && a0.errorLevel >= 0 : r2;
|
|
Reflect.apply(assert, binding, [r2, 'errorLevel must be a non-negative integer or boolean']);
|
|
}
|
|
return this._test('email', a0, _fun64544);
|
|
function _fun64544(a0, a1, a2) { // fn#64544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:69680, offset: 0x01baa224, size: 106 bytes, params: 4, frame: 20
|
|
var binding;
|
|
var validate;
|
|
var binding2;
|
|
var value2;
|
|
var error;
|
|
var createError;
|
|
let value = environment.__proto__.__proto__;
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort14: while (true) {
|
|
exceptionLanding13: while (true) {
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reduciblePort14;
|
|
}
|
|
createError = this.createError;
|
|
return Reflect.apply(createError, this, ['string.email', {value: a0}, a1, a2]);
|
|
}
|
|
try {
|
|
validate = binding.validate;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
try {
|
|
binding2 = env0_0;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
try {
|
|
value = Reflect.apply(validate, binding, [a0, binding2]);
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
try {
|
|
value2 = value === true;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
if (!value2) {
|
|
try {
|
|
value = value === 0;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (!value) {
|
|
return this.createError('string.email', {value: a0}, a1, a2);
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function ip(a0) { // fn#64545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:69836, offset: 0x01baa28e, size: 711 bytes, params: 2, frame: 30
|
|
var r4;
|
|
var r6;
|
|
var r5;
|
|
var r11;
|
|
var items2;
|
|
var toLowerCase;
|
|
var cidrs;
|
|
var Object;
|
|
var keys;
|
|
var join;
|
|
var version;
|
|
var createIpRegex;
|
|
var Array;
|
|
var isArray;
|
|
var length;
|
|
var property;
|
|
var value5;
|
|
var versions;
|
|
var value6;
|
|
var value7;
|
|
var push;
|
|
var unique;
|
|
let value = a0;
|
|
let env0_1 = env1_9.ipRegex;
|
|
reducibleJoin2: while (true) {
|
|
if (value) {
|
|
r4 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
r4 = {};
|
|
break reducibleJoin2;
|
|
}
|
|
let binding = env1_3;
|
|
let assert = binding.assert;
|
|
value = 'undefined';
|
|
reducibleJoin4: while (true) {
|
|
if (r4 === undefined) {
|
|
r6 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = env1_1(r4);
|
|
r6 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
Reflect.apply(assert, binding, [r6 === 'object', 'options must be an object']);
|
|
let cidr = r4.cidr;
|
|
if (cidr) {
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
cidr = r4.cidr;
|
|
Reflect.apply(assert, binding, [typeof cidr === 'string', 'cidr must be a string']);
|
|
cidr = r4.cidr;
|
|
r4.cidr = cidr.toLowerCase();
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
cidr = r4.cidr;
|
|
cidrs = env1_8.cidrs;
|
|
value = cidr in cidrs;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
cidrs = env1_8.cidrs;
|
|
Reflect.apply(assert, binding, [value, 'cidr must be one of ' + Reflect.apply(keys, Object,
|
|
[cidrs]).join(', ')]);
|
|
version = r4.version;
|
|
reducibleJoin8: while (true) {
|
|
if (version) {
|
|
r5 = version;
|
|
break reducibleJoin8;
|
|
}
|
|
cidr = r4.cidr;
|
|
value = cidr === 'optional';
|
|
r5 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (r5) {
|
|
break reducibleJoin10;
|
|
}
|
|
binding = env1_8;
|
|
createIpRegex = binding.createIpRegex;
|
|
cidr = r4.cidr;
|
|
env0_1 = Reflect.apply(createIpRegex, binding, [['ipv4', 'ipv6', 'ipvfuture'], cidr]);
|
|
break reducibleJoin10;
|
|
}
|
|
} else {
|
|
r4.cidr = 'optional';
|
|
}
|
|
var env0_2;
|
|
version = r4.version;
|
|
reducibleJoin16: while (true) {
|
|
if (version) {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
version = r4.version;
|
|
reducibleJoin13: while (true) {
|
|
if (Reflect.apply(isArray, Array, [version])) {
|
|
break reducibleJoin13;
|
|
}
|
|
version = r4.version;
|
|
r4.version = [version];
|
|
break reducibleJoin13;
|
|
}
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
version = r4.version;
|
|
length = version.length;
|
|
Reflect.apply(assert, binding, [length >= 1, 'version must have at least 1 version specified']);
|
|
items2 = [];
|
|
env0_2 = items2;
|
|
version = r4.version;
|
|
length = version.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r11 = value;
|
|
reducibleLoop14: while (true) {
|
|
version = r4.version;
|
|
property = version[r11];
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
value = 'version at position ' + r11;
|
|
Reflect.apply(assert, binding, [typeof property === 'string', value + ' must be a string']);
|
|
toLowerCase = property.toLowerCase;
|
|
value5 = Reflect.apply(toLowerCase, property, []);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
versions = env1_8.versions;
|
|
property = versions[value5];
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
versions = env1_8.versions;
|
|
value6 = Reflect.apply(keys, Object, [versions]);
|
|
join = value6.join;
|
|
value7 = Reflect.apply(join, value6, [', ']);
|
|
Reflect.apply(assert, binding, [property, value + ' must be one of ' + value7]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value5]);
|
|
value = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
|
|
version = r4.version;
|
|
length = version.length;
|
|
if (value < length) {
|
|
r11 = value;
|
|
continue reducibleLoop14;
|
|
}
|
|
break reducibleLoop14;
|
|
}
|
|
}
|
|
binding = env1_3;
|
|
unique = binding.unique;
|
|
value = Reflect.apply(unique, binding, [items2]);
|
|
env0_2 = value;
|
|
binding = env1_8;
|
|
createIpRegex = binding.createIpRegex;
|
|
cidr = r4.cidr;
|
|
env0_1 = Reflect.apply(createIpRegex, binding, [value, cidr]);
|
|
break reducibleJoin16;
|
|
}
|
|
break reducibleJoin16;
|
|
}
|
|
return this._test('ip', r4, _fun64546);
|
|
function _fun64546(a0, a1, a2) { // fn#64546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:70727, offset: 0x01baa555, size: 150 bytes, params: 4, frame: 20
|
|
const value = a0;
|
|
const ipRegexBinding = ipRegex;
|
|
return ipRegexBinding.test(value) ? value : env0_2 ? this.createError('string.ipVersion', {value: value,
|
|
cidr: env0_0.cidr, version: env0_2}, a1, a2) : this.createError('string.ip', {value: value, cidr: env0_0.cidr},
|
|
a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function uri(a0) { // fn#64547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:70918, offset: 0x01baa5eb, size: 648 bytes, params: 2, frame: 35
|
|
var r8;
|
|
var r16;
|
|
var r21;
|
|
var r20;
|
|
var r19;
|
|
var r9;
|
|
var r5;
|
|
var r6;
|
|
var r7;
|
|
var binding;
|
|
var assert;
|
|
var scheme;
|
|
var RegExp;
|
|
var Array;
|
|
var isArray;
|
|
var length;
|
|
var value8;
|
|
var property;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var regexp;
|
|
var value14;
|
|
var escapeRegex;
|
|
var value15;
|
|
var source;
|
|
var value16;
|
|
var value17;
|
|
const value = '';
|
|
var env0_0;
|
|
const value2 = false;
|
|
let env0_2 = env1_9.uriRegex;
|
|
if (a0) {
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
r8 = a0 === undefined ? 'undefined' : env1_1(a0);
|
|
Reflect.apply(assert, binding, [r8 === 'object', 'options must be an object']);
|
|
scheme = a0.scheme;
|
|
if (scheme) {
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
scheme = a0.scheme;
|
|
RegExp = global.RegExp;
|
|
r8 = scheme instanceof RegExp || typeof a0.scheme === 'string';
|
|
r8 = !r8 ? global.Array.isArray(a0.scheme) : r8;
|
|
Reflect.apply(assert, binding, [r8, 'scheme must be a RegExp, String, or Array']);
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
scheme = a0.scheme;
|
|
if (!Reflect.apply(isArray, Array, [scheme])) {
|
|
a0.scheme = [a0.scheme];
|
|
}
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
scheme = a0.scheme;
|
|
length = scheme.length;
|
|
Reflect.apply(assert, binding, [length >= 1, 'scheme must have at least 1 scheme specified']);
|
|
scheme = a0.scheme;
|
|
length = scheme.length;
|
|
value8 = 0;
|
|
if (value8 < length) {
|
|
r8 = value;
|
|
r16 = value8;
|
|
while (true) {
|
|
scheme = a0.scheme;
|
|
property = scheme[r16];
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
RegExp = global.RegExp;
|
|
value10 = property instanceof RegExp;
|
|
if (value10) {
|
|
r21 = value10;
|
|
} else {
|
|
value11 = typeof property === 'string';
|
|
r21 = value11;
|
|
}
|
|
value12 = 'scheme at position ' + r16;
|
|
Reflect.apply(assert, binding, [r21, value12 + ' must be a RegExp or String']);
|
|
if (r8) {
|
|
r20 = '|';
|
|
continue;
|
|
}
|
|
r20 = value;
|
|
continue;
|
|
value13 = r8 + r20;
|
|
env0_0 = value13;
|
|
RegExp = global.RegExp;
|
|
if (property instanceof RegExp) {
|
|
source = property.source;
|
|
value16 = value13 + source;
|
|
env0_0 = value16;
|
|
r19 = value16;
|
|
} else {
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
regexp = RegExp('[a-zA-Z][a-zA-Z0-9+-\\.]*', '');
|
|
value14 = regexp.test(property);
|
|
Reflect.apply(assert, binding, [value14, value12 + ' must be a valid scheme']);
|
|
binding = env1_3;
|
|
escapeRegex = binding.escapeRegex;
|
|
value15 = value13 + Reflect.apply(escapeRegex, binding, [property]);
|
|
env0_0 = value15;
|
|
r19 = value15;
|
|
}
|
|
value17 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
scheme = a0.scheme;
|
|
length = scheme.length;
|
|
if (value17 < length) {
|
|
r8 = r19;
|
|
r16 = value17;
|
|
continue;
|
|
}
|
|
r9 = r19;
|
|
break;
|
|
}
|
|
} else {
|
|
r9 = value;
|
|
}
|
|
} else {
|
|
r9 = value;
|
|
}
|
|
r8 = a0.allowRelative || value2;
|
|
if (a0.relativeOnly) {
|
|
r5 = true;
|
|
r6 = r8;
|
|
r7 = r9;
|
|
} else {
|
|
r5 = value2;
|
|
r6 = r8;
|
|
r7 = r9;
|
|
}
|
|
} else {
|
|
r5 = value2;
|
|
r6 = value2;
|
|
r7 = value;
|
|
}
|
|
let r2 = r7 || r6;
|
|
r2 = !r2 ? r5 : r2;
|
|
if (r2) {
|
|
env0_2 = env1_7.createUriRegex(r7, r6, r5);
|
|
}
|
|
return this._test('uri', a0, _fun64548);
|
|
function _fun64548(a0, a1, a2) { // fn#64548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:71751, offset: 0x01baa873, size: 166 bytes, params: 4, frame: 20
|
|
const value = a0;
|
|
const uriRegexBinding = uriRegex;
|
|
return uriRegexBinding.test(value) ? value : env0_1 ? this.createError('string.uriRelativeOnly', {value: value}, a1,
|
|
a2) : env0_0 ? this.createError('string.uriCustomScheme', {scheme: env0_0, value: value}, a1,
|
|
a2) : this.createError('string.uri', {value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function isoDate() { // fn#64549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:71987, offset: 0x01baa919, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('isoDate', undefined, _fun64550);
|
|
function _fun64550(a0, a1, a2) { // fn#64550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:72042, offset: 0x01baa938, size: 66 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const binding = env2_6;
|
|
return binding._isIsoDate(value) ? value : this.createError('string.isoDate', {value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function guid(a0) { // fn#64551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:72158, offset: 0x01baa97a, size: 436 bytes, params: 2, frame: 32
|
|
var environment;
|
|
var r11;
|
|
var version;
|
|
var Array;
|
|
var isArray;
|
|
var value;
|
|
var binding;
|
|
var assert;
|
|
var length;
|
|
var value2;
|
|
var property;
|
|
var value3;
|
|
var toLowerCase;
|
|
var value4;
|
|
var Object;
|
|
var keys;
|
|
var value5;
|
|
var join;
|
|
var value6;
|
|
var indexOf;
|
|
var value7;
|
|
var push;
|
|
var value8;
|
|
const env0_0 = {'{': '}', '[': ']', '(': ')', '': ''};
|
|
const object = {'uuidv1': '1', 'uuidv2': '2', 'uuidv3': '3', 'uuidv4': '4', 'uuidv5': '5'};
|
|
const items2 = [];
|
|
reducibleJoin6: while (true) {
|
|
if (!a0) {
|
|
break reducibleJoin6;
|
|
}
|
|
version = a0.version;
|
|
if (!version) {
|
|
break reducibleJoin6;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
version = a0.version;
|
|
reducibleJoin4: while (true) {
|
|
if (Reflect.apply(isArray, Array, [version])) {
|
|
break reducibleJoin4;
|
|
}
|
|
version = a0.version;
|
|
a0.version = [version];
|
|
break reducibleJoin4;
|
|
}
|
|
value = environment.__proto__;
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
version = a0.version;
|
|
length = version.length;
|
|
Reflect.apply(assert, binding, [length >= 1, 'version must have at least 1 valid version specified']);
|
|
version = a0.version;
|
|
length = version.length;
|
|
value2 = 0;
|
|
if (!(value2 < length)) {
|
|
break reducibleJoin6;
|
|
}
|
|
r11 = value2;
|
|
reducibleLoop5: while (true) {
|
|
version = a0.version;
|
|
property = version[r11];
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
value3 = 'version at position ' + r11;
|
|
Reflect.apply(assert, binding, [typeof property === 'string', value3 + ' must be a string']);
|
|
toLowerCase = property.toLowerCase;
|
|
value4 = Reflect.apply(toLowerCase, property, []);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
property = object[value4];
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value5 = Reflect.apply(keys, Object, [object]);
|
|
join = value5.join;
|
|
value6 = Reflect.apply(join, value5, [', ']);
|
|
Reflect.apply(assert, binding, [property, value3 + ' must be one of ' + value6]);
|
|
binding = env1_3;
|
|
assert = binding.assert;
|
|
indexOf = items2.indexOf;
|
|
value7 = Reflect.apply(indexOf, items2, [value4]) === -1;
|
|
Reflect.apply(assert, binding, [value7, value3 + ' must not be a duplicate.']);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value4]);
|
|
value8 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
|
|
version = a0.version;
|
|
length = version.length;
|
|
if (value8 < length) {
|
|
r11 = value8;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
}
|
|
const env0_3 = RegExp('^([\\[{\\(]?)([0-9A-F]{8})([:-]?)([0-9A-F]{4})([:-]?)([0-9A-F]{4})([:-]?)([0-9A-F]{4})([:-]?)([0-9A-F]{12})([\\]}\\)]?)$',
|
|
'i');
|
|
return this._test('guid', a0, _fun64552);
|
|
function _fun64552(a0, a1, a2) { // fn#64552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:72907, offset: 0x01baab2e, size: 343 bytes, params: 4, frame: 21
|
|
var property;
|
|
var regexp;
|
|
let binding = env0_3;
|
|
const value2 = binding.exec(a0);
|
|
if (value2) {
|
|
binding = value2;
|
|
property = binding[value2[1]];
|
|
if (property !== value2[11]) {
|
|
return this.createError('string.guid', {value: a0}, a1, a2);
|
|
}
|
|
property = value2[3];
|
|
if (property !== value2[5]) {
|
|
return this.createError('string.guid', {value: a0}, a1, a2);
|
|
}
|
|
property = value2[3];
|
|
if (property !== value2[7]) {
|
|
return this.createError('string.guid', {value: a0}, a1, a2);
|
|
}
|
|
property = value2[3];
|
|
if (property !== value2[9]) {
|
|
return this.createError('string.guid', {value: a0}, a1, a2);
|
|
}
|
|
if (env0_2.length) {
|
|
binding = env0_2;
|
|
if (binding.some(_fun64553)) {
|
|
regexp = RegExp('[89AB]', 'i');
|
|
if (regexp.test(value2[8][0])) {
|
|
return a0;
|
|
}
|
|
return this.createError('string.guid', {value: a0}, a1, a2);
|
|
}
|
|
return this.createError('string.guid', {value: a0}, a1, a2);
|
|
}
|
|
return a0;
|
|
}
|
|
return this.createError('string.guid', {value: a0}, a1, a2);
|
|
function _fun64553(a0) { // fn#64553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:73187, offset: 0x01baac85, size: 40 bytes, params: 2, frame: 3
|
|
return env0_0[6][0] === env1_1[a0];
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function hex_64554() { // fn#64554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:73338, offset: 0x01baacad, size: 47 bytes, params: 1, frame: 15
|
|
return this._test('hex', RegExp('^[a-f0-9]+$', 'i'), _fun64555);
|
|
function _fun64555(a0, a1, a2) { // fn#64555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:73401, offset: 0x01baacdc, size: 65 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const binding = env0_0;
|
|
return binding.test(value) ? value : this.createError('string.hex', {value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function base64() { // fn#64556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:73509, offset: 0x01baad1d, size: 47 bytes, params: 1, frame: 15
|
|
return this._test('base64', RegExp('^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$', ''),
|
|
_fun64557);
|
|
function _fun64557(a0, a1, a2) { // fn#64557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:73633, offset: 0x01baad4c, size: 65 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const binding = env0_0;
|
|
return binding.test(value) ? value : this.createError('string.base64', {value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function hostname() { // fn#64558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:73746, offset: 0x01baad8d, size: 49 bytes, params: 1, frame: 15
|
|
const env0_0 = RegExp('^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$',
|
|
'');
|
|
return this._test('hostname', undefined, _fun64559);
|
|
function _fun64559(a0, a1, a2) { // fn#64559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:73919, offset: 0x01baadbe, size: 103 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length <= 255 && env0_0.test(value) || env2_2.isIPv6(value) ? value : this.createError('string.hostname',
|
|
{value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function lowercase() { // fn#64560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:74063, offset: 0x01baae25, size: 49 bytes, params: 1, frame: 15
|
|
let value = this._test('lowercase', undefined, function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (a2.convert) {
|
|
r0 = value;
|
|
} else if (value === value.toLocaleLowerCase()) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.createError('string.lowercase', {value: value}, a1, a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
value._flags.case = 'lower';
|
|
return value;
|
|
}
|
|
|
|
function uppercase() { // fn#64562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:74296, offset: 0x01baaea0, size: 49 bytes, params: 1, frame: 15
|
|
let value = this._test('uppercase', undefined, function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (a2.convert) {
|
|
r0 = value;
|
|
} else if (value === value.toLocaleUpperCase()) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.createError('string.uppercase', {value: value}, a1, a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
value._flags.case = 'upper';
|
|
return value;
|
|
}
|
|
|
|
function trim_64564() { // fn#64564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:74524, offset: 0x01baaf1b, size: 45 bytes, params: 1, frame: 15
|
|
let value = this._test('trim', undefined, function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (a2.convert) {
|
|
r0 = value;
|
|
} else if (value === value.trim()) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.createError('string.trim', {value: value}, a1, a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
value._flags.trim = true;
|
|
return value;
|
|
}
|
|
|
|
function replace_64566(a0, a1) { // fn#64566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:74722, offset: 0x01baaf92, size: 216 bytes, params: 3, frame: 18
|
|
var r5;
|
|
var RegExp;
|
|
var value2;
|
|
let value = a0;
|
|
if (typeof value !== 'string') {
|
|
r5 = value;
|
|
} else {
|
|
RegExp = global.RegExp;
|
|
value2 = environment.__proto__;
|
|
value = env1_3.escapeRegex(value);
|
|
r5 = new RegExp(value, 'g');
|
|
}
|
|
value = environment.__proto__;
|
|
const binding = env1_3;
|
|
const assert = binding.assert;
|
|
RegExp = global.RegExp;
|
|
Reflect.apply(assert, binding, [r5 instanceof RegExp, 'pattern must be a RegExp']);
|
|
env1_3.assert(typeof a1 === 'string', 'replacement must be a String');
|
|
value = this.clone();
|
|
let replacements = value._inner.replacements;
|
|
if (!replacements) {
|
|
value._inner.replacements = [];
|
|
}
|
|
replacements = value._inner.replacements;
|
|
replacements.push({pattern: r5, replacement: a1});
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function compare_64568(a0, a1) { // fn#64568, offset: 0x01bab097, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return _fun64569;
|
|
function _fun64569(a0, a1) { // fn#64569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:75203, offset: 0x01bab0ae, size: 164 bytes, params: 3, frame: 20
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value = environment.__proto__;
|
|
let binding = env1_5;
|
|
const isRef2 = binding.isRef(a0);
|
|
binding = env1_3;
|
|
const assert = binding.assert;
|
|
let r5 = env1_3.isInteger(a0) && a0 >= 0;
|
|
r5 = !r5 ? isRef2 : r5;
|
|
Reflect.apply(assert, binding, [r5, 'limit must be a positive integer or reference']);
|
|
binding = env1_3;
|
|
binding.assert(a1 ? env1_0.isEncoding(a1) : !a1, 'Invalid encoding:', a1);
|
|
return this._test(env0_0, a0, _fun64570);
|
|
function _fun64570(a0, a1, a2) { // fn#64570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:75391, offset: 0x01bab152, size: 208 bytes, params: 4, frame: 21
|
|
var r0;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
const value = a0;
|
|
let binding = env0_2;
|
|
const binding2 = env0_0;
|
|
if (binding) {
|
|
value3 = binding2(a1.reference || a1.parent, a2);
|
|
value4 = environment.__proto__.__proto__;
|
|
binding = env2_3;
|
|
if (binding.isInteger(value3)) {
|
|
r0 = value3;
|
|
value5 = environment.__proto__;
|
|
r0 = require(value, r0, require) ? value : this.createError('string.' + env1_0, {limit: r0, value: value,
|
|
encoding: require}, a1, a2);
|
|
return r0;
|
|
}
|
|
return this.createError('string.ref', {ref: env0_0.key}, a1, a2);
|
|
}
|
|
r0 = binding2;
|
|
r0 = require(value, r0, require) ? value : this.createError('string.' + env1_0, {limit: r0, value: value,
|
|
encoding: require}, a1, a2);
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64571(a0, a1, a2) { // fn#64571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:75663, offset: 0x01bab222, size: 44 bytes, params: 4, frame: 14
|
|
return (a2 ? env0_0.byteLength(a0, a2) : a0.length) >= a1;
|
|
}
|
|
|
|
function _fun64572(a0, a1, a2) { // fn#64572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:75762, offset: 0x01bab24e, size: 44 bytes, params: 4, frame: 14
|
|
return (a2 ? env0_0.byteLength(a0, a2) : a0.length) <= a1;
|
|
}
|
|
|
|
function _fun64573(a0, a1, a2) { // fn#64573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:75867, offset: 0x01bab27a, size: 44 bytes, params: 4, frame: 14
|
|
return (a2 ? env0_0.byteLength(a0, a2) : a0.length) === a1;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64574(a0, a1, a2) { // fn#64574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:76021, offset: 0x01bab2a6, size: 44 bytes, params: 4, frame: 15
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
_fun64575.call(a1, a2(7));
|
|
function _fun64575(a0) { // fn#64575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:76038, offset: 0x01bab2d2, size: 446 bytes, params: 2, frame: 18
|
|
var r0;
|
|
var r3;
|
|
var r6;
|
|
var iterator;
|
|
var closure;
|
|
var nextTick;
|
|
var bind;
|
|
var value3;
|
|
var property;
|
|
var value4;
|
|
let Symbol = global.Symbol;
|
|
reducibleJoin4: while (true) {
|
|
reducibleJoin2: while (true) {
|
|
if (typeof Symbol !== 'function') {
|
|
break reducibleJoin2;
|
|
}
|
|
Symbol = global.Symbol;
|
|
iterator = Symbol.iterator;
|
|
if (typeof iterator === 'symbol') {
|
|
closure = function(a0) {
|
|
return typeof a0;
|
|
};
|
|
r0 = closure;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
closure = _fun64577;
|
|
r0 = closure;
|
|
break reducibleJoin4;
|
|
}
|
|
const env0_1 = importDefault(8);
|
|
const object = {};
|
|
let Object = global.Object;
|
|
object.hasOwn = Object.prototype.hasOwnProperty;
|
|
let Array = global.Array;
|
|
object.indexOf = Array.prototype.indexOf;
|
|
object.defaultThreshold = 16;
|
|
object.maxIPv6Groups = 8;
|
|
object.categories = {'valid': 1, 'dnsWarn': 7, 'rfc5321': 15, 'cfws': 31, 'deprecated': 63, 'rfc5322': 127,
|
|
'error': 255};
|
|
let value2 = 0;
|
|
object.diagnoses = {'valid': 0, 'dnsWarnNoMXRecord': 5, 'dnsWarnNoRecord': 6, 'rfc5321TLD': 9,
|
|
'rfc5321TLDNumeric': 10, 'rfc5321QuotedString': 11, 'rfc5321AddressLiteral': 12, 'cfwsComment': 17,
|
|
'cfwsFWS': 18, 'deprecatedLocalPart': 33, 'deprecatedFWS': 34, 'deprecatedQTEXT': 35, 'deprecatedQP': 36,
|
|
'deprecatedComment': 37, 'deprecatedCTEXT': 38, 'deprecatedIPv6': 39, 'deprecatedCFWSNearAt': 49,
|
|
'rfc5322Domain': 65, 'rfc5322TooLong': 66, 'rfc5322LocalTooLong': 67, 'rfc5322DomainTooLong': 68,
|
|
'rfc5322LabelTooLong': 69, 'rfc5322DomainLiteral': 70, 'rfc5322DomainLiteralOBSDText': 71,
|
|
'rfc5322IPv6GroupCount': 72, 'rfc5322IPv62x2xColon': 73, 'rfc5322IPv6BadCharacter': 74,
|
|
'rfc5322IPv6MaxGroups': 75, 'rfc5322IPv6ColonStart': 76, 'rfc5322IPv6ColonEnd': 77, 'errExpectingDTEXT': 129,
|
|
'errNoLocalPart': 130, 'errNoDomain': 131, 'errConsecutiveDots': 132, 'errATEXTAfterCFWS': 133,
|
|
'errATEXTAfterQS': 134, 'errATEXTAfterDomainLiteral': 135, 'errExpectingQPair': 136, 'errExpectingATEXT': 137,
|
|
'errExpectingQTEXT': 138, 'errExpectingCTEXT': 139, 'errBackslashEnd': 140, 'errDotStart': 141,
|
|
'errDotEnd': 142, 'errDomainHyphenStart': 143, 'errDomainHyphenEnd': 144, 'errUnclosedQuotedString': 145,
|
|
'errUnclosedComment': 146, 'errUnclosedDomainLiteral': 147, 'errFWSCRLFx2': 148, 'errFWSCRLFEnd': 149,
|
|
'errCRNoLF': 150, 'errUnknownTLD': 160, 'errDomainTooShort': 161};
|
|
object.components = {'localpart': 0, 'domain': 1, 'literal': 2, 'contextComment': 3, 'contextFWS': 4,
|
|
'contextQuotedString': 5, 'contextQuotedPair': 6};
|
|
reducibleJoin9: while (true) {
|
|
reducibleJoin7: while (true) {
|
|
if (a0 === undefined) {
|
|
break reducibleJoin7;
|
|
}
|
|
if (a0) {
|
|
nextTick = a0.nextTick;
|
|
if (typeof nextTick === 'function') {
|
|
nextTick = a0.nextTick;
|
|
bind = nextTick.bind;
|
|
value3 = Reflect.apply(bind, nextTick, [a0]);
|
|
r3 = value3;
|
|
break reducibleJoin9;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
closure = function(a0) {
|
|
return (0, global.setTimeout)(a0, 0);
|
|
};
|
|
r3 = closure;
|
|
break reducibleJoin9;
|
|
}
|
|
object.defer = r3;
|
|
object.specials = (() => {
|
|
var r1;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var Array = global.Array;
|
|
var value2 = new Array(256);
|
|
var env0_0 = value2;
|
|
var r8 = 255;
|
|
reducibleLoop1: while (true) {
|
|
value2[r8] = false;
|
|
value4 = typeof r8 === 'bigint' ? r8 - 1n : +r8 - 1;
|
|
value5 = 0;
|
|
if (value4 >= value5) {
|
|
r8 = value4;
|
|
continue reducibleLoop1;
|
|
}
|
|
r1 = value5;
|
|
break reducibleLoop1;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
value2['()<>[]:;@\\,."'.charCodeAt(r1)] = true;
|
|
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value6 < 13) {
|
|
r1 = value6;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
return _fun64580;
|
|
})();
|
|
object.regex = {ipV4: RegExp('\\b(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$',
|
|
''), ipV6: RegExp('^[a-fA-F\\d]{0,4}$', '')};
|
|
object.checkIpV6 = function(a0) {
|
|
return a0.every(_fun64582);
|
|
};
|
|
object.validDomain = validDomain;
|
|
closure = validate_64584;
|
|
object.validate = closure;
|
|
require.validate = closure;
|
|
const validate = object.validate;
|
|
const object3 = {};
|
|
Object = global.Object;
|
|
const keys = Object.keys;
|
|
let diagnoses = object.diagnoses;
|
|
const value = Reflect.apply(keys, Object, [diagnoses]);
|
|
let length = value.length;
|
|
if (value2 < length) {
|
|
r6 = value2;
|
|
reducibleLoop10: while (true) {
|
|
property = value[r6];
|
|
diagnoses = object.diagnoses;
|
|
object3[property] = diagnoses[property];
|
|
value4 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value.length;
|
|
if (value4 < length) {
|
|
r6 = value4;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleLoop10;
|
|
}
|
|
}
|
|
validate.diagnoses = object3;
|
|
require.diagnoses = object3;
|
|
function _fun64579() { // fn#64579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:77850, offset: 0x01bab4a7, size: 98 bytes, params: 1, frame: 17
|
|
var r1;
|
|
var value3;
|
|
var value4;
|
|
var charCodeAt;
|
|
var value5;
|
|
const Array = global.Array;
|
|
const array = new Array(256);
|
|
let r8 = 255;
|
|
reducibleLoop1: while (true) {
|
|
array[r8] = false;
|
|
value3 = typeof r8 === 'bigint' ? r8 - 1n : +r8 - 1;
|
|
value4 = 0;
|
|
if (value3 >= value4) {
|
|
r8 = value3;
|
|
continue reducibleLoop1;
|
|
}
|
|
r1 = value4;
|
|
break reducibleLoop1;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
charCodeAt = '()<>[]:;@\\,."'.charCodeAt;
|
|
array[Reflect.apply(charCodeAt, '()<>[]:;@\\,."', [r1])] = true;
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value5 < 13) {
|
|
r1 = value5;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
return _fun64580;
|
|
function _fun64580(a0) { // fn#64580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:77978, offset: 0x00c3fbaf, size: 16 bytes, params: 2, frame: 2
|
|
return env0_0[a0];
|
|
}
|
|
|
|
}
|
|
|
|
function checkIpV6(a0) { // fn#64581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:78135, offset: 0x01bab509, size: 23 bytes, params: 2, frame: 11
|
|
return a0.every(_fun64582);
|
|
function _fun64582(a0) { // fn#64582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:78163, offset: 0x01bab520, size: 34 bytes, params: 2, frame: 11
|
|
return env1_2.regex.ipV6.test(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function validDomain(a0, a1) { // fn#64583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:78221, offset: 0x01bab542, size: 196 bytes, params: 3, frame: 17
|
|
var r0;
|
|
var r1;
|
|
var value;
|
|
var binding;
|
|
var hasOwn;
|
|
var indexOf;
|
|
const tldBlacklist = a1.tldBlacklist;
|
|
const Array = global.Array;
|
|
const isArray = Array.isArray;
|
|
if (tldBlacklist) {
|
|
value = Reflect.apply(isArray, Array, [a1.tldBlacklist]);
|
|
binding = env0_2;
|
|
if (value) {
|
|
indexOf = binding.indexOf;
|
|
value = indexOf.call(a1.tldBlacklist, a0);
|
|
value = value === -1;
|
|
r1 = value;
|
|
} else {
|
|
hasOwn = binding.hasOwn;
|
|
r1 = !hasOwn.call(a1.tldBlacklist, a0);
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
value = Reflect.apply(isArray, Array, [a1.tldWhitelist]);
|
|
binding = env0_2;
|
|
if (value) {
|
|
indexOf = binding.indexOf;
|
|
value = indexOf.call(a1.tldWhitelist, a0);
|
|
value = value !== -1;
|
|
r0 = value;
|
|
} else {
|
|
hasOwn = binding.hasOwn;
|
|
r0 = hasOwn.call(a1.tldWhitelist, a0);
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function validate_64584(a0, a1, a2) { // fn#64584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:78481, offset: 0x01bab606, size: 8448 bytes, params: 4, frame: 109
|
|
var r3;
|
|
var r0;
|
|
var r5;
|
|
var r24;
|
|
var r25;
|
|
var r26;
|
|
var r28;
|
|
var r29;
|
|
var r30;
|
|
var r31;
|
|
var r69;
|
|
var r70;
|
|
var r80;
|
|
var r82;
|
|
var r86;
|
|
var r85;
|
|
var r84;
|
|
var r92;
|
|
var r93;
|
|
var r91;
|
|
var r99;
|
|
var r98;
|
|
var r87;
|
|
var r68;
|
|
var r71;
|
|
var r78;
|
|
var r81;
|
|
var r8;
|
|
var r9;
|
|
var r13;
|
|
var r15;
|
|
var binding;
|
|
var TypeError;
|
|
var prototype;
|
|
var typeError;
|
|
var property;
|
|
var now;
|
|
var domain;
|
|
var literal;
|
|
var contextQuotedString;
|
|
var contextQuotedPair;
|
|
var contextComment;
|
|
var contextFWS;
|
|
var value16;
|
|
var value17;
|
|
var deprecatedFWS;
|
|
var errFWSCRLFEnd;
|
|
var stack;
|
|
var pop;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var errCRNoLF;
|
|
var errFWSCRLFx2;
|
|
var charCodeAt;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var deprecatedCTEXT;
|
|
var errExpectingCTEXT;
|
|
var value25;
|
|
var cfwsFWS;
|
|
var push;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var deprecatedQP;
|
|
var errExpectingQPair;
|
|
var value30;
|
|
var domains;
|
|
var value32;
|
|
var local;
|
|
var locals;
|
|
var value33;
|
|
var value34;
|
|
var value35;
|
|
var value36;
|
|
var deprecatedQTEXT;
|
|
var errExpectingQTEXT;
|
|
var value37;
|
|
var value38;
|
|
var value39;
|
|
var value40;
|
|
var value41;
|
|
var value42;
|
|
var value43;
|
|
var rfc5322DomainLiteralOBSDText;
|
|
var value44;
|
|
var errExpectingDTEXT;
|
|
var value45;
|
|
var categories;
|
|
var deprecated;
|
|
var rfc5322DomainLiteral;
|
|
var regex;
|
|
var ipV4;
|
|
var exec;
|
|
var value46;
|
|
var index;
|
|
var value47;
|
|
var slice;
|
|
var value48;
|
|
var value49;
|
|
var toLowerCase;
|
|
var value50;
|
|
var maxIPv6Groups;
|
|
var split;
|
|
var value51;
|
|
var indexOf;
|
|
var value52;
|
|
var length2;
|
|
var rfc5322IPv6GroupCount;
|
|
var lastIndexOf;
|
|
var value53;
|
|
var length3;
|
|
var value54;
|
|
var value55;
|
|
var length4;
|
|
var length5;
|
|
var deprecatedIPv6;
|
|
var rfc5322IPv6MaxGroups;
|
|
var rfc5322IPv62x2xColon;
|
|
var length6;
|
|
var length7;
|
|
var checkIpV6;
|
|
var value56;
|
|
var rfc5322IPv6BadCharacter;
|
|
var rfc5321AddressLiteral;
|
|
var rfc5322IPv6ColonEnd;
|
|
var rfc5322IPv6ColonStart;
|
|
var value57;
|
|
var prev;
|
|
var errATEXTAfterDomainLiteral;
|
|
var errATEXTAfterCFWS;
|
|
var value59;
|
|
var specials;
|
|
var value60;
|
|
var value61;
|
|
var value62;
|
|
var value63;
|
|
var value64;
|
|
var value65;
|
|
var rfc5322Domain;
|
|
var errDomainHyphenStart;
|
|
var errExpectingATEXT;
|
|
var value66;
|
|
var value67;
|
|
var deprecatedCFWSNearAt;
|
|
var length8;
|
|
var value68;
|
|
var rfc5322LabelTooLong;
|
|
var errDomainHyphenEnd;
|
|
var errConsecutiveDots;
|
|
var errDotStart;
|
|
var value69;
|
|
var cfwsComment;
|
|
var deprecatedComment;
|
|
var value70;
|
|
var value71;
|
|
var value72;
|
|
var value73;
|
|
var value74;
|
|
var errATEXTAfterQS;
|
|
var length9;
|
|
var length10;
|
|
var length11;
|
|
var value76;
|
|
var value77;
|
|
var rfc5322LocalTooLong;
|
|
var errDotEnd;
|
|
var errNoLocalPart;
|
|
var value78;
|
|
var deprecatedLocalPart;
|
|
var rfc5321QuotedString;
|
|
var value79;
|
|
var value80;
|
|
var rfc5322;
|
|
var value81;
|
|
var length12;
|
|
var validDomain;
|
|
var errUnknownTLD;
|
|
var errDomainTooShort;
|
|
var rfc5322TooLong;
|
|
var rfc5322DomainTooLong;
|
|
var errNoDomain;
|
|
var errUnclosedDomainLiteral;
|
|
var errUnclosedComment;
|
|
var errBackslashEnd;
|
|
var errUnclosedQuotedString;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
var env0_0;
|
|
reducibleJoin2: while (true) {
|
|
if (value) {
|
|
r3 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
r3 = {};
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (typeof r3 !== 'function') {
|
|
r0 = value2;
|
|
r5 = r3;
|
|
break reducibleJoin4;
|
|
}
|
|
env0_0 = r3;
|
|
r0 = r3;
|
|
r5 = {};
|
|
break reducibleJoin4;
|
|
}
|
|
if (typeof r0 !== 'function') {
|
|
if (r5.checkDNS) {
|
|
throw new global.TypeError('expected callback function for checkDNS option');
|
|
}
|
|
env0_0 = null;
|
|
}
|
|
let env0_2 = undefined;
|
|
env0_2 = typeof r5.errorLevel === 'number' ? r5.errorLevel : env0_2.diagnoses.valid;
|
|
let tldWhitelist = r5.tldWhitelist;
|
|
if (tldWhitelist) {
|
|
tldWhitelist = r5.tldWhitelist;
|
|
if (typeof tldWhitelist === 'string') {
|
|
tldWhitelist = r5.tldWhitelist;
|
|
r5.tldWhitelist = [tldWhitelist];
|
|
} else {
|
|
binding = env0_0;
|
|
tldWhitelist = r5.tldWhitelist;
|
|
reducibleJoin15: while (true) {
|
|
if (binding(tldWhitelist) !== 'object') {
|
|
throw new global.TypeError('expected array or object tldWhitelist');
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
let tldBlacklist = r5.tldBlacklist;
|
|
if (tldBlacklist) {
|
|
tldBlacklist = r5.tldBlacklist;
|
|
if (typeof tldBlacklist === 'string') {
|
|
tldBlacklist = r5.tldBlacklist;
|
|
r5.tldBlacklist = [tldBlacklist];
|
|
} else {
|
|
binding = env0_0;
|
|
tldBlacklist = r5.tldBlacklist;
|
|
reducibleJoin20: while (true) {
|
|
if (binding(tldBlacklist) !== 'object') {
|
|
throw new global.TypeError('expected array or object tldBlacklist');
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
}
|
|
}
|
|
let minDomainAtoms = r5.minDomainAtoms;
|
|
if (minDomainAtoms) {
|
|
minDomainAtoms = r5.minDomainAtoms;
|
|
reducibleJoin23: while (true) {
|
|
reducibleJoin317: while (true) {
|
|
if (minDomainAtoms !== (Number(r5.minDomainAtoms) | 0)) {
|
|
break reducibleJoin317;
|
|
}
|
|
minDomainAtoms = r5.minDomainAtoms;
|
|
if (minDomainAtoms < 0) {
|
|
break reducibleJoin317;
|
|
}
|
|
break reducibleJoin23;
|
|
}
|
|
TypeError = global.TypeError;
|
|
prototype = TypeError.prototype;
|
|
value = Object.create(prototype, {constructor: {value: TypeError}});
|
|
typeError = new TypeError('expected positive integer minDomainAtoms');
|
|
value = typeError instanceof Object ? typeError : value;
|
|
throw value;
|
|
}
|
|
}
|
|
let diagnoses = env0_2.diagnoses;
|
|
const valid = diagnoses.valid;
|
|
let closure = function(a0) {
|
|
if (a0 > valid) {
|
|
env0_3 = a0;
|
|
}
|
|
};
|
|
const object = {};
|
|
let components = env0_2.components;
|
|
let localpart = components.localpart;
|
|
object.now = localpart;
|
|
object.prev = env0_2.components.localpart;
|
|
object.stack = [env0_2.components.localpart];
|
|
const object2 = {'local': '', 'domain': ''};
|
|
const value9 = '';
|
|
const object3 = {locals: [''], domains: ['']};
|
|
const value10 = 0;
|
|
var env0_7;
|
|
let length = a0.length;
|
|
const value11 = false;
|
|
const value12 = true;
|
|
const value13 = 1;
|
|
if (value10 < length) {
|
|
r24 = value10;
|
|
r25 = value11;
|
|
r26 = value11;
|
|
r28 = value10;
|
|
r29 = value10;
|
|
r30 = value10;
|
|
r31 = value9;
|
|
reducibleLoop24: while (true) {
|
|
property = a0[r24];
|
|
now = object.now;
|
|
components = env0_2.components;
|
|
localpart = components.localpart;
|
|
if (localpart === now) {
|
|
if (property === '(') {
|
|
if (value10 === r29) {
|
|
if (value10 === r30) {
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsComment = diagnoses.cfwsComment;
|
|
r85 = cfwsComment;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedComment = diagnoses.deprecatedComment;
|
|
r85 = deprecatedComment;
|
|
}
|
|
closure(r85);
|
|
r84 = r25;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsComment = diagnoses.cfwsComment;
|
|
closure(cfwsComment);
|
|
r84 = value12;
|
|
}
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
object.now = contextComment;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r84;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else if (property === '.') {
|
|
if (value10 === r29) {
|
|
if (value10 === r30) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errDotStart = diagnoses.errDotStart;
|
|
r84 = errDotStart;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
errConsecutiveDots = diagnoses.errConsecutiveDots;
|
|
r84 = errConsecutiveDots;
|
|
}
|
|
closure(r84);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else {
|
|
reducibleJoin269: while (true) {
|
|
if (r25) {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedLocalPart = diagnoses.deprecatedLocalPart;
|
|
closure(deprecatedLocalPart);
|
|
break reducibleJoin269;
|
|
}
|
|
break reducibleJoin269;
|
|
}
|
|
value80 = typeof r30 === 'bigint' ? r30 + 1n : +r30 + 1;
|
|
env0_7 = value80;
|
|
local = object2.local;
|
|
object2.local = local + property;
|
|
locals = object3.locals;
|
|
locals[value80] = value9;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value10;
|
|
r71 = value80;
|
|
r78 = value11;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
}
|
|
} else if (property === '"') {
|
|
if (value10 === r29) {
|
|
if (value10 === r30) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5321QuotedString = diagnoses.rfc5321QuotedString;
|
|
r84 = rfc5321QuotedString;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedLocalPart = diagnoses.deprecatedLocalPart;
|
|
r84 = deprecatedLocalPart;
|
|
}
|
|
closure(r84);
|
|
local = object2.local;
|
|
object2.local = local + property;
|
|
locals = object3.locals;
|
|
locals[r30] += property;
|
|
value79 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextQuotedString = components.contextQuotedString;
|
|
object.now = contextQuotedString;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value79;
|
|
r71 = r30;
|
|
r78 = value12;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingATEXT = diagnoses.errExpectingATEXT;
|
|
closure(errExpectingATEXT);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
}
|
|
} else {
|
|
reducibleJoin281: while (true) {
|
|
reducibleJoin258: while (true) {
|
|
if (property === '\r') {
|
|
value78 = typeof r24 === 'bigint' ? r24 + 1n : +r24 + 1;
|
|
if (length !== value78) {
|
|
if (a0[value78] === '\n') {
|
|
r85 = value78;
|
|
if (value10 !== r29) {
|
|
r86 = value12;
|
|
break reducibleJoin258;
|
|
}
|
|
if (value10 === r30) {
|
|
cfwsFWS = env0_2.diagnoses.cfwsFWS;
|
|
r87 = cfwsFWS;
|
|
} else {
|
|
deprecatedFWS = env0_2.diagnoses.deprecatedFWS;
|
|
r87 = deprecatedFWS;
|
|
}
|
|
closure(r87);
|
|
r86 = r25;
|
|
break reducibleJoin258;
|
|
}
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errCRNoLF = diagnoses.errCRNoLF;
|
|
closure(errCRNoLF);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = value78;
|
|
break reducibleJoin281;
|
|
}
|
|
if (property === ' ') {
|
|
r85 = r24;
|
|
} else {
|
|
reducibleJoin253: while (true) {
|
|
if (property === '\t') {
|
|
r85 = r24;
|
|
break reducibleJoin253;
|
|
}
|
|
if (property === '@') {
|
|
stack = object.stack;
|
|
length9 = stack.length;
|
|
if (value13 !== length9) {
|
|
throw new global.Error('unexpected item on context stack');
|
|
}
|
|
local = object2.local;
|
|
length10 = local.length;
|
|
if (value10 === length10) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errNoLocalPart = diagnoses.errNoLocalPart;
|
|
closure(errNoLocalPart);
|
|
} else if (value10 === r29) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errDotEnd = diagnoses.errDotEnd;
|
|
closure(errDotEnd);
|
|
} else {
|
|
local = object2.local;
|
|
length11 = local.length;
|
|
if (length11 > 64) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322LocalTooLong = diagnoses.rfc5322LocalTooLong;
|
|
closure(rfc5322LocalTooLong);
|
|
} else {
|
|
prev = object.prev;
|
|
components = env0_2.components;
|
|
value76 = prev !== components.contextComment;
|
|
reducibleJoin244: while (true) {
|
|
if (value76) {
|
|
prev = object.prev;
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
value77 = prev !== contextFWS;
|
|
r84 = value77;
|
|
break reducibleJoin244;
|
|
}
|
|
r84 = value76;
|
|
break reducibleJoin244;
|
|
}
|
|
reducibleJoin249: while (true) {
|
|
if (r84) {
|
|
break reducibleJoin249;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedCFWSNearAt = diagnoses.deprecatedCFWSNearAt;
|
|
closure(deprecatedCFWSNearAt);
|
|
break reducibleJoin249;
|
|
}
|
|
}
|
|
}
|
|
components = env0_2.components;
|
|
domain = components.domain;
|
|
object.now = domain;
|
|
stack = object.stack;
|
|
components = env0_2.components;
|
|
domain = components.domain;
|
|
stack[value10] = domain;
|
|
env0_7 = value10;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value10;
|
|
r71 = value10;
|
|
r78 = value11;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
if (!r25) {
|
|
now = object.now;
|
|
object.prev = now;
|
|
charCodeAt = property.charCodeAt;
|
|
value70 = Reflect.apply(charCodeAt, property, [value10]);
|
|
value71 = value70 < 33;
|
|
reducibleJoin227: while (true) {
|
|
if (value71) {
|
|
r86 = value71;
|
|
break reducibleJoin227;
|
|
}
|
|
value72 = value70 > 126;
|
|
r86 = value72;
|
|
break reducibleJoin227;
|
|
}
|
|
reducibleJoin229: while (true) {
|
|
if (r86) {
|
|
break reducibleJoin229;
|
|
}
|
|
binding = env0_2;
|
|
specials = binding.specials;
|
|
value73 = Reflect.apply(specials, binding, [value70]);
|
|
r86 = value73;
|
|
break reducibleJoin229;
|
|
}
|
|
reducibleJoin231: while (true) {
|
|
if (r86) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingATEXT = diagnoses.errExpectingATEXT;
|
|
closure(errExpectingATEXT);
|
|
break reducibleJoin231;
|
|
}
|
|
break reducibleJoin231;
|
|
}
|
|
local = object2.local;
|
|
object2.local = local + property;
|
|
locals = object3.locals;
|
|
locals[r30] += property;
|
|
value74 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value74;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
prev = object.prev;
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
reducibleJoin282: while (true) {
|
|
reducibleJoin315: while (true) {
|
|
if (contextComment === prev) {
|
|
errATEXTAfterCFWS = env0_2.diagnoses.errATEXTAfterCFWS;
|
|
closure(errATEXTAfterCFWS);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
if (contextFWS === prev) {
|
|
errATEXTAfterCFWS = env0_2.diagnoses.errATEXTAfterCFWS;
|
|
closure(errATEXTAfterCFWS);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
components = env0_2.components;
|
|
contextQuotedString = components.contextQuotedString;
|
|
if (contextQuotedString !== prev) {
|
|
throw new global.Error('more atext found where none is allowed, but unrecognized prev context: ' + object.prev);
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errATEXTAfterQS = diagnoses.errATEXTAfterQS;
|
|
closure(errATEXTAfterQS);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
value = closure();
|
|
env0_9 = value12;
|
|
return value;
|
|
}
|
|
value81 = typeof r82 === 'bigint' ? r82 + 1n : +r82 + 1;
|
|
if (value81 < length) {
|
|
r24 = value81;
|
|
r25 = r78;
|
|
r26 = r69;
|
|
r28 = r80;
|
|
r29 = r70;
|
|
r30 = r71;
|
|
r31 = r81;
|
|
continue reducibleLoop24;
|
|
}
|
|
r8 = r71;
|
|
r9 = r70;
|
|
r13 = r69;
|
|
r15 = r68;
|
|
break reducibleLoop24;
|
|
}
|
|
}
|
|
if (value10 !== r29) {
|
|
r86 = value12;
|
|
break reducibleJoin258;
|
|
}
|
|
if (value10 === r30) {
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsFWS = diagnoses.cfwsFWS;
|
|
r87 = cfwsFWS;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedFWS = diagnoses.deprecatedFWS;
|
|
r87 = deprecatedFWS;
|
|
}
|
|
closure(r87);
|
|
r86 = r25;
|
|
break reducibleJoin258;
|
|
}
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
object.now = contextFWS;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r86;
|
|
r80 = r28;
|
|
r81 = property;
|
|
r82 = r85;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
} else {
|
|
components = env0_2.components;
|
|
domain = components.domain;
|
|
if (domain === now) {
|
|
if (property === '(') {
|
|
if (value10 === r29) {
|
|
if (value10 === r30) {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedCFWSNearAt = diagnoses.deprecatedCFWSNearAt;
|
|
r85 = deprecatedCFWSNearAt;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedComment = diagnoses.deprecatedComment;
|
|
r85 = deprecatedComment;
|
|
}
|
|
closure(r85);
|
|
r84 = r25;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsComment = diagnoses.cfwsComment;
|
|
closure(cfwsComment);
|
|
r84 = value12;
|
|
}
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
object.now = contextComment;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r84;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else if (property === '.') {
|
|
if (value10 === r29) {
|
|
if (value10 === r30) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errDotStart = diagnoses.errDotStart;
|
|
r84 = errDotStart;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
errConsecutiveDots = diagnoses.errConsecutiveDots;
|
|
r84 = errConsecutiveDots;
|
|
}
|
|
closure(r84);
|
|
} else if (r26) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errDomainHyphenEnd = diagnoses.errDomainHyphenEnd;
|
|
closure(errDomainHyphenEnd);
|
|
} else {
|
|
reducibleJoin209: while (true) {
|
|
if (r29 > 63) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322LabelTooLong = diagnoses.rfc5322LabelTooLong;
|
|
closure(rfc5322LabelTooLong);
|
|
break reducibleJoin209;
|
|
}
|
|
break reducibleJoin209;
|
|
}
|
|
}
|
|
value69 = typeof r30 === 'bigint' ? r30 + 1n : +r30 + 1;
|
|
env0_7 = value69;
|
|
domains = object3.domains;
|
|
domains[value69] = value9;
|
|
domain = object2.domain;
|
|
object2.domain = domain + property;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value10;
|
|
r71 = value69;
|
|
r78 = value11;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else if (property === '[') {
|
|
domain = object2.domain;
|
|
length8 = domain.length;
|
|
if (value10 === length8) {
|
|
value68 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
literal = components.literal;
|
|
object.now = literal;
|
|
domain = object2.domain;
|
|
object2.domain = domain + property;
|
|
domains = object3.domains;
|
|
domains[r30] += property;
|
|
object2.literal = value9;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value68;
|
|
r71 = r30;
|
|
r78 = value12;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingATEXT = diagnoses.errExpectingATEXT;
|
|
closure(errExpectingATEXT);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
}
|
|
} else {
|
|
reducibleJoin281: while (true) {
|
|
reducibleJoin189: while (true) {
|
|
if (property === '\r') {
|
|
value67 = typeof r24 === 'bigint' ? r24 + 1n : +r24 + 1;
|
|
if (length !== value67) {
|
|
if (a0[value67] === '\n') {
|
|
r85 = value67;
|
|
break reducibleJoin189;
|
|
}
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errCRNoLF = diagnoses.errCRNoLF;
|
|
closure(errCRNoLF);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = value67;
|
|
break reducibleJoin281;
|
|
}
|
|
if (property === ' ') {
|
|
r85 = r24;
|
|
break reducibleJoin189;
|
|
}
|
|
if (property === '\t') {
|
|
r85 = r24;
|
|
break reducibleJoin189;
|
|
}
|
|
reducibleJoin282: while (true) {
|
|
reducibleJoin315: while (true) {
|
|
if (r25) {
|
|
prev = object.prev;
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
if (contextComment !== prev) {
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
reducibleJoin166: while (true) {
|
|
if (contextFWS === prev) {
|
|
break reducibleJoin166;
|
|
}
|
|
components = env0_2.components;
|
|
literal = components.literal;
|
|
if (literal !== prev) {
|
|
throw new global.Error('more atext found where none is allowed, but unrecognized prev context: ' + object.prev);
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errATEXTAfterDomainLiteral = diagnoses.errATEXTAfterDomainLiteral;
|
|
closure(errATEXTAfterDomainLiteral);
|
|
charCodeAt = property.charCodeAt;
|
|
value59 = Reflect.apply(charCodeAt, property, [value10]);
|
|
reducibleJoin186: while (true) {
|
|
reducibleJoin185: while (true) {
|
|
if (value59 < 33) {
|
|
break reducibleJoin185;
|
|
}
|
|
if (value59 > 126) {
|
|
break reducibleJoin185;
|
|
}
|
|
binding = env0_2;
|
|
specials = binding.specials;
|
|
if (Reflect.apply(specials, binding, [value59])) {
|
|
break reducibleJoin185;
|
|
}
|
|
if (property === '-') {
|
|
if (value10 !== r29) {
|
|
r84 = value12;
|
|
break reducibleJoin186;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errDomainHyphenStart = diagnoses.errDomainHyphenStart;
|
|
closure(errDomainHyphenStart);
|
|
r84 = value12;
|
|
break reducibleJoin186;
|
|
}
|
|
value60 = value59 < 48;
|
|
reducibleJoin173: while (true) {
|
|
if (value60) {
|
|
r87 = value60;
|
|
break reducibleJoin173;
|
|
}
|
|
value61 = value59 > 122;
|
|
r87 = value61;
|
|
break reducibleJoin173;
|
|
}
|
|
reducibleJoin177: while (true) {
|
|
if (r87) {
|
|
break reducibleJoin177;
|
|
}
|
|
value62 = value59 > 57;
|
|
reducibleJoin176: while (true) {
|
|
if (value62) {
|
|
value63 = value59 < 65;
|
|
r84 = value63;
|
|
break reducibleJoin176;
|
|
}
|
|
r84 = value62;
|
|
break reducibleJoin176;
|
|
}
|
|
r87 = r84;
|
|
break reducibleJoin177;
|
|
}
|
|
reducibleJoin181: while (true) {
|
|
if (r87) {
|
|
break reducibleJoin181;
|
|
}
|
|
value64 = value59 > 90;
|
|
reducibleJoin180: while (true) {
|
|
if (value64) {
|
|
value65 = value59 < 97;
|
|
r84 = value65;
|
|
break reducibleJoin180;
|
|
}
|
|
r84 = value64;
|
|
break reducibleJoin180;
|
|
}
|
|
r87 = r84;
|
|
break reducibleJoin181;
|
|
}
|
|
if (r87) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322Domain = diagnoses.rfc5322Domain;
|
|
closure(rfc5322Domain);
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingATEXT = diagnoses.errExpectingATEXT;
|
|
closure(errExpectingATEXT);
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
domain = object2.domain;
|
|
object2.domain = domain + property;
|
|
domains = object3.domains;
|
|
domains[r30] += property;
|
|
value66 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
r68 = property;
|
|
r69 = r84;
|
|
r70 = value66;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errATEXTAfterCFWS = diagnoses.errATEXTAfterCFWS;
|
|
closure(errATEXTAfterCFWS);
|
|
charCodeAt = property.charCodeAt;
|
|
value59 = Reflect.apply(charCodeAt, property, [value10]);
|
|
reducibleJoin186: while (true) {
|
|
reducibleJoin185: while (true) {
|
|
if (value59 < 33) {
|
|
break reducibleJoin185;
|
|
}
|
|
if (value59 > 126) {
|
|
break reducibleJoin185;
|
|
}
|
|
binding = env0_2;
|
|
specials = binding.specials;
|
|
if (Reflect.apply(specials, binding, [value59])) {
|
|
break reducibleJoin185;
|
|
}
|
|
if (property === '-') {
|
|
if (value10 !== r29) {
|
|
r84 = value12;
|
|
break reducibleJoin186;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errDomainHyphenStart = diagnoses.errDomainHyphenStart;
|
|
closure(errDomainHyphenStart);
|
|
r84 = value12;
|
|
break reducibleJoin186;
|
|
}
|
|
value60 = value59 < 48;
|
|
reducibleJoin173: while (true) {
|
|
if (value60) {
|
|
r87 = value60;
|
|
break reducibleJoin173;
|
|
}
|
|
value61 = value59 > 122;
|
|
r87 = value61;
|
|
break reducibleJoin173;
|
|
}
|
|
reducibleJoin177: while (true) {
|
|
if (r87) {
|
|
break reducibleJoin177;
|
|
}
|
|
value62 = value59 > 57;
|
|
reducibleJoin176: while (true) {
|
|
if (value62) {
|
|
value63 = value59 < 65;
|
|
r84 = value63;
|
|
break reducibleJoin176;
|
|
}
|
|
r84 = value62;
|
|
break reducibleJoin176;
|
|
}
|
|
r87 = r84;
|
|
break reducibleJoin177;
|
|
}
|
|
reducibleJoin181: while (true) {
|
|
if (r87) {
|
|
break reducibleJoin181;
|
|
}
|
|
value64 = value59 > 90;
|
|
reducibleJoin180: while (true) {
|
|
if (value64) {
|
|
value65 = value59 < 97;
|
|
r84 = value65;
|
|
break reducibleJoin180;
|
|
}
|
|
r84 = value64;
|
|
break reducibleJoin180;
|
|
}
|
|
r87 = r84;
|
|
break reducibleJoin181;
|
|
}
|
|
if (r87) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322Domain = diagnoses.rfc5322Domain;
|
|
closure(rfc5322Domain);
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingATEXT = diagnoses.errExpectingATEXT;
|
|
closure(errExpectingATEXT);
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
domain = object2.domain;
|
|
object2.domain = domain + property;
|
|
domains = object3.domains;
|
|
domains[r30] += property;
|
|
value66 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
r68 = property;
|
|
r69 = r84;
|
|
r70 = value66;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
charCodeAt = property.charCodeAt;
|
|
value59 = Reflect.apply(charCodeAt, property, [value10]);
|
|
reducibleJoin186: while (true) {
|
|
reducibleJoin185: while (true) {
|
|
if (value59 < 33) {
|
|
break reducibleJoin185;
|
|
}
|
|
if (value59 > 126) {
|
|
break reducibleJoin185;
|
|
}
|
|
binding = env0_2;
|
|
specials = binding.specials;
|
|
if (Reflect.apply(specials, binding, [value59])) {
|
|
break reducibleJoin185;
|
|
}
|
|
if (property === '-') {
|
|
if (value10 !== r29) {
|
|
r84 = value12;
|
|
break reducibleJoin186;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errDomainHyphenStart = diagnoses.errDomainHyphenStart;
|
|
closure(errDomainHyphenStart);
|
|
r84 = value12;
|
|
break reducibleJoin186;
|
|
}
|
|
value60 = value59 < 48;
|
|
reducibleJoin173: while (true) {
|
|
if (value60) {
|
|
r87 = value60;
|
|
break reducibleJoin173;
|
|
}
|
|
value61 = value59 > 122;
|
|
r87 = value61;
|
|
break reducibleJoin173;
|
|
}
|
|
reducibleJoin177: while (true) {
|
|
if (r87) {
|
|
break reducibleJoin177;
|
|
}
|
|
value62 = value59 > 57;
|
|
reducibleJoin176: while (true) {
|
|
if (value62) {
|
|
value63 = value59 < 65;
|
|
r84 = value63;
|
|
break reducibleJoin176;
|
|
}
|
|
r84 = value62;
|
|
break reducibleJoin176;
|
|
}
|
|
r87 = r84;
|
|
break reducibleJoin177;
|
|
}
|
|
reducibleJoin181: while (true) {
|
|
if (r87) {
|
|
break reducibleJoin181;
|
|
}
|
|
value64 = value59 > 90;
|
|
reducibleJoin180: while (true) {
|
|
if (value64) {
|
|
value65 = value59 < 97;
|
|
r84 = value65;
|
|
break reducibleJoin180;
|
|
}
|
|
r84 = value64;
|
|
break reducibleJoin180;
|
|
}
|
|
r87 = r84;
|
|
break reducibleJoin181;
|
|
}
|
|
if (r87) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322Domain = diagnoses.rfc5322Domain;
|
|
closure(rfc5322Domain);
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingATEXT = diagnoses.errExpectingATEXT;
|
|
closure(errExpectingATEXT);
|
|
r84 = value11;
|
|
break reducibleJoin186;
|
|
}
|
|
domain = object2.domain;
|
|
object2.domain = domain + property;
|
|
domains = object3.domains;
|
|
domains[r30] += property;
|
|
value66 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
r68 = property;
|
|
r69 = r84;
|
|
r70 = value66;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
value = closure();
|
|
env0_9 = value12;
|
|
return value;
|
|
}
|
|
value81 = typeof r82 === 'bigint' ? r82 + 1n : +r82 + 1;
|
|
if (value81 < length) {
|
|
r24 = value81;
|
|
r25 = r78;
|
|
r26 = r69;
|
|
r28 = r80;
|
|
r29 = r70;
|
|
r30 = r71;
|
|
r31 = r81;
|
|
continue reducibleLoop24;
|
|
}
|
|
r8 = r71;
|
|
r9 = r70;
|
|
r13 = r69;
|
|
r15 = r68;
|
|
break reducibleLoop24;
|
|
}
|
|
if (value10 === r29) {
|
|
if (value10 === r30) {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedCFWSNearAt = diagnoses.deprecatedCFWSNearAt;
|
|
r87 = deprecatedCFWSNearAt;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedFWS = diagnoses.deprecatedFWS;
|
|
r87 = deprecatedFWS;
|
|
}
|
|
closure(r87);
|
|
r86 = r25;
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsFWS = diagnoses.cfwsFWS;
|
|
closure(cfwsFWS);
|
|
r86 = value12;
|
|
}
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
object.now = contextFWS;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r86;
|
|
r80 = r28;
|
|
r81 = property;
|
|
r82 = r85;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
} else {
|
|
components = env0_2.components;
|
|
literal = components.literal;
|
|
if (literal === now) {
|
|
if (property === ']') {
|
|
binding = valid;
|
|
deprecated = env0_2.categories.deprecated;
|
|
if (binding < deprecated) {
|
|
literal = object2.literal;
|
|
regex = env0_2.regex;
|
|
ipV4 = regex.ipV4;
|
|
exec = ipV4.exec;
|
|
value46 = Reflect.apply(exec, ipV4, [literal]);
|
|
reducibleJoin125: while (true) {
|
|
if (value46) {
|
|
index = value46.index;
|
|
value47 = value10 !== index;
|
|
r92 = index;
|
|
r93 = value47;
|
|
break reducibleJoin125;
|
|
}
|
|
r92 = -1;
|
|
r93 = value46;
|
|
break reducibleJoin125;
|
|
}
|
|
reducibleJoin127: while (true) {
|
|
if (r93) {
|
|
slice = literal.slice;
|
|
value48 = Reflect.apply(slice, literal, [value10, r92]) + '0:0';
|
|
r91 = value48;
|
|
break reducibleJoin127;
|
|
}
|
|
r91 = literal;
|
|
break reducibleJoin127;
|
|
}
|
|
if (value10 === r92) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5321AddressLiteral = diagnoses.rfc5321AddressLiteral;
|
|
closure(rfc5321AddressLiteral);
|
|
} else {
|
|
slice = r91.slice;
|
|
value49 = Reflect.apply(slice, r91, [value10, 5]);
|
|
toLowerCase = value49.toLowerCase;
|
|
if (Reflect.apply(toLowerCase, value49, []) !== 'ipv6:') {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322DomainLiteral = diagnoses.rfc5322DomainLiteral;
|
|
closure(rfc5322DomainLiteral);
|
|
} else {
|
|
slice = r91.slice;
|
|
value50 = Reflect.apply(slice, r91, [5]);
|
|
maxIPv6Groups = env0_2.maxIPv6Groups;
|
|
split = value50.split;
|
|
value51 = Reflect.apply(split, value50, [':']);
|
|
indexOf = value50.indexOf;
|
|
value52 = Reflect.apply(indexOf, value50, ['::']);
|
|
if (~value52) {
|
|
lastIndexOf = value50.lastIndexOf;
|
|
if (value52 !== Reflect.apply(lastIndexOf, value50, ['::'])) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322IPv62x2xColon = diagnoses.rfc5322IPv62x2xColon;
|
|
closure(rfc5322IPv62x2xColon);
|
|
} else {
|
|
value53 = value10 !== value52;
|
|
reducibleJoin135: while (true) {
|
|
if (value53) {
|
|
length3 = value50.length;
|
|
value54 = value52 !== length3 - 2;
|
|
r99 = value54;
|
|
break reducibleJoin135;
|
|
}
|
|
r99 = value53;
|
|
break reducibleJoin135;
|
|
}
|
|
reducibleJoin137: while (true) {
|
|
if (r99) {
|
|
r98 = maxIPv6Groups;
|
|
break reducibleJoin137;
|
|
}
|
|
value55 = typeof maxIPv6Groups === 'bigint' ? maxIPv6Groups + 1n : +maxIPv6Groups + 1;
|
|
r98 = value55;
|
|
break reducibleJoin137;
|
|
}
|
|
length4 = value51.length;
|
|
if (length4 > r98) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322IPv6MaxGroups = diagnoses.rfc5322IPv6MaxGroups;
|
|
closure(rfc5322IPv6MaxGroups);
|
|
} else {
|
|
length5 = value51.length;
|
|
reducibleJoin142: while (true) {
|
|
if (length5 !== r98) {
|
|
break reducibleJoin142;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedIPv6 = diagnoses.deprecatedIPv6;
|
|
closure(deprecatedIPv6);
|
|
break reducibleJoin142;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
length2 = value51.length;
|
|
reducibleJoin142: while (true) {
|
|
if (length2 === maxIPv6Groups) {
|
|
break reducibleJoin142;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322IPv6GroupCount = diagnoses.rfc5322IPv6GroupCount;
|
|
closure(rfc5322IPv6GroupCount);
|
|
break reducibleJoin142;
|
|
}
|
|
}
|
|
reducibleJoin153: while (true) {
|
|
reducibleJoin146: while (true) {
|
|
if (value50[value10] !== ':') {
|
|
if (value50[value50.length - value13] !== ':') {
|
|
break reducibleJoin146;
|
|
}
|
|
if (value50[value50.length - 2] !== ':') {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322IPv6ColonEnd = diagnoses.rfc5322IPv6ColonEnd;
|
|
closure(rfc5322IPv6ColonEnd);
|
|
break reducibleJoin153;
|
|
}
|
|
break reducibleJoin146;
|
|
}
|
|
if (value50[value13] !== ':') {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322IPv6ColonStart = diagnoses.rfc5322IPv6ColonStart;
|
|
closure(rfc5322IPv6ColonStart);
|
|
break reducibleJoin153;
|
|
}
|
|
length6 = value50.length;
|
|
if (value50[length6 - value13] !== ':') {
|
|
break reducibleJoin146;
|
|
}
|
|
length7 = value50.length;
|
|
if (value50[length7 - 2] !== ':') {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322IPv6ColonEnd = diagnoses.rfc5322IPv6ColonEnd;
|
|
closure(rfc5322IPv6ColonEnd);
|
|
break reducibleJoin153;
|
|
}
|
|
break reducibleJoin146;
|
|
}
|
|
binding = env0_2;
|
|
checkIpV6 = binding.checkIpV6;
|
|
value56 = Reflect.apply(checkIpV6, binding, [value51]);
|
|
diagnoses = env0_2.diagnoses;
|
|
if (value56) {
|
|
rfc5321AddressLiteral = diagnoses.rfc5321AddressLiteral;
|
|
closure(rfc5321AddressLiteral);
|
|
break reducibleJoin153;
|
|
}
|
|
rfc5322IPv6BadCharacter = diagnoses.rfc5322IPv6BadCharacter;
|
|
closure(rfc5322IPv6BadCharacter);
|
|
break reducibleJoin153;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322DomainLiteral = diagnoses.rfc5322DomainLiteral;
|
|
closure(rfc5322DomainLiteral);
|
|
}
|
|
domain = object2.domain;
|
|
object2.domain = domain + property;
|
|
domains = object3.domains;
|
|
domains[r30] += property;
|
|
value57 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
now = object.now;
|
|
object.prev = now;
|
|
stack = object.stack;
|
|
pop = stack.pop;
|
|
object.now = Reflect.apply(pop, stack, []);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value57;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else if (property === '\\') {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322DomainLiteralOBSDText = diagnoses.rfc5322DomainLiteralOBSDText;
|
|
closure(rfc5322DomainLiteralOBSDText);
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextQuotedPair = components.contextQuotedPair;
|
|
object.now = contextQuotedPair;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else {
|
|
reducibleJoin281: while (true) {
|
|
reducibleJoin118: while (true) {
|
|
if (property === '\r') {
|
|
value45 = typeof r24 === 'bigint' ? r24 + 1n : +r24 + 1;
|
|
if (length !== value45) {
|
|
if (a0[value45] === '\n') {
|
|
r85 = value45;
|
|
break reducibleJoin118;
|
|
}
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errCRNoLF = diagnoses.errCRNoLF;
|
|
closure(errCRNoLF);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = value45;
|
|
break reducibleJoin281;
|
|
}
|
|
if (property === ' ') {
|
|
r85 = r24;
|
|
break reducibleJoin118;
|
|
}
|
|
if (property === '\t') {
|
|
r85 = r24;
|
|
break reducibleJoin118;
|
|
}
|
|
charCodeAt = property.charCodeAt;
|
|
value41 = Reflect.apply(charCodeAt, property, [value10]);
|
|
if (!(value41 > 127)) {
|
|
if (value10 !== value41) {
|
|
if (property !== '[') {
|
|
value42 = value41 < 33;
|
|
reducibleJoin112: while (true) {
|
|
if (value42) {
|
|
r86 = value42;
|
|
break reducibleJoin112;
|
|
}
|
|
value43 = value41 === 127;
|
|
r86 = value43;
|
|
break reducibleJoin112;
|
|
}
|
|
reducibleJoin114: while (true) {
|
|
if (r86) {
|
|
diagnoses = env0_2.diagnoses;
|
|
rfc5322DomainLiteralOBSDText = diagnoses.rfc5322DomainLiteralOBSDText;
|
|
closure(rfc5322DomainLiteralOBSDText);
|
|
break reducibleJoin114;
|
|
}
|
|
break reducibleJoin114;
|
|
}
|
|
literal = object2.literal;
|
|
object2.literal = literal + property;
|
|
domain = object2.domain;
|
|
object2.domain = domain + property;
|
|
domains = object3.domains;
|
|
domains[r30] += property;
|
|
value44 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value44;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingDTEXT = diagnoses.errExpectingDTEXT;
|
|
closure(errExpectingDTEXT);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsFWS = diagnoses.cfwsFWS;
|
|
closure(cfwsFWS);
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
object.now = contextFWS;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = property;
|
|
r82 = r85;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
} else {
|
|
components = env0_2.components;
|
|
contextQuotedString = components.contextQuotedString;
|
|
if (contextQuotedString === now) {
|
|
if (property === '\\') {
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextQuotedPair = components.contextQuotedPair;
|
|
object.now = contextQuotedPair;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else {
|
|
reducibleJoin281: while (true) {
|
|
reducibleJoin99: while (true) {
|
|
if (property === '\r') {
|
|
value39 = typeof r24 === 'bigint' ? r24 + 1n : +r24 + 1;
|
|
if (length !== value39) {
|
|
if (a0[value39] === '\n') {
|
|
r85 = value39;
|
|
break reducibleJoin99;
|
|
}
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errCRNoLF = diagnoses.errCRNoLF;
|
|
closure(errCRNoLF);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = value39;
|
|
break reducibleJoin281;
|
|
}
|
|
if (property === '\t') {
|
|
r85 = r24;
|
|
break reducibleJoin99;
|
|
}
|
|
if (property === '"') {
|
|
object2.local = object2.local + property;
|
|
object3.locals[r30] += property;
|
|
value38 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
now = object.now;
|
|
object.prev = now;
|
|
stack = object.stack;
|
|
pop = stack.pop;
|
|
object.now = Reflect.apply(pop, stack, []);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value38;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
charCodeAt = property.charCodeAt;
|
|
value34 = Reflect.apply(charCodeAt, property, [value10]);
|
|
reducibleJoin95: while (true) {
|
|
reducibleJoin94: while (true) {
|
|
if (value34 > 127) {
|
|
break reducibleJoin94;
|
|
}
|
|
if (value10 === value34) {
|
|
break reducibleJoin94;
|
|
}
|
|
if (value34 === 10) {
|
|
break reducibleJoin94;
|
|
}
|
|
value35 = value34 < 32;
|
|
reducibleJoin92: while (true) {
|
|
if (value35) {
|
|
r86 = value35;
|
|
break reducibleJoin92;
|
|
}
|
|
value36 = value34 === 127;
|
|
r86 = value36;
|
|
break reducibleJoin92;
|
|
}
|
|
if (r86) {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedQTEXT = diagnoses.deprecatedQTEXT;
|
|
closure(deprecatedQTEXT);
|
|
break reducibleJoin95;
|
|
}
|
|
break reducibleJoin95;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingQTEXT = diagnoses.errExpectingQTEXT;
|
|
closure(errExpectingQTEXT);
|
|
break reducibleJoin95;
|
|
}
|
|
local = object2.local;
|
|
object2.local = local + property;
|
|
locals = object3.locals;
|
|
locals[r30] += property;
|
|
value37 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value37;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
local = object2.local;
|
|
object2.local = local + ' ';
|
|
locals = object3.locals;
|
|
locals[r30] += ' ';
|
|
value40 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsFWS = diagnoses.cfwsFWS;
|
|
closure(cfwsFWS);
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
object.now = contextFWS;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = value40;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = property;
|
|
r82 = r85;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
} else {
|
|
components = env0_2.components;
|
|
contextQuotedPair = components.contextQuotedPair;
|
|
if (contextQuotedPair === now) {
|
|
charCodeAt = property.charCodeAt;
|
|
value26 = Reflect.apply(charCodeAt, property, [value10]);
|
|
if (value26 > 127) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingQPair = diagnoses.errExpectingQPair;
|
|
closure(errExpectingQPair);
|
|
} else {
|
|
value27 = value26 < 31;
|
|
reducibleJoin72: while (true) {
|
|
if (value27) {
|
|
value28 = value26 !== 9;
|
|
r84 = value28;
|
|
break reducibleJoin72;
|
|
}
|
|
r84 = value27;
|
|
break reducibleJoin72;
|
|
}
|
|
reducibleJoin74: while (true) {
|
|
if (r84) {
|
|
break reducibleJoin74;
|
|
}
|
|
value29 = value26 === 127;
|
|
r84 = value29;
|
|
break reducibleJoin74;
|
|
}
|
|
reducibleJoin77: while (true) {
|
|
if (r84) {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedQP = diagnoses.deprecatedQP;
|
|
closure(deprecatedQP);
|
|
break reducibleJoin77;
|
|
}
|
|
break reducibleJoin77;
|
|
}
|
|
}
|
|
now = object.now;
|
|
object.prev = now;
|
|
stack = object.stack;
|
|
pop = stack.pop;
|
|
object.now = Reflect.apply(pop, stack, []);
|
|
value30 = '\\' + property;
|
|
now = object.now;
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
reducibleJoin281: while (true) {
|
|
if (contextComment === now) {
|
|
r68 = value30;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
components = env0_2.components;
|
|
contextQuotedString = components.contextQuotedString;
|
|
if (contextQuotedString === now) {
|
|
local = object2.local;
|
|
object2.local = local + value30;
|
|
locals = object3.locals;
|
|
locals[r30] += value30;
|
|
value33 = r29 + 2;
|
|
r68 = value30;
|
|
r69 = r26;
|
|
r70 = value33;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
components = env0_2.components;
|
|
literal = components.literal;
|
|
if (literal !== now) {
|
|
throw new global.Error('quoted pair logic invoked in an invalid context: ' + object.now);
|
|
}
|
|
domain = object2.domain;
|
|
object2.domain = domain + value30;
|
|
domains = object3.domains;
|
|
domains[r30] += value30;
|
|
value32 = r29 + 2;
|
|
r68 = value30;
|
|
r69 = r26;
|
|
r70 = value32;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
} else {
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
if (contextComment === now) {
|
|
if (property === '(') {
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
object.now = contextComment;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else if (property === ')') {
|
|
now = object.now;
|
|
object.prev = now;
|
|
stack = object.stack;
|
|
pop = stack.pop;
|
|
object.now = Reflect.apply(pop, stack, []);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else if (property === '\\') {
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextQuotedPair = components.contextQuotedPair;
|
|
object.now = contextQuotedPair;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
} else {
|
|
reducibleJoin281: while (true) {
|
|
reducibleJoin64: while (true) {
|
|
if (property === '\r') {
|
|
value25 = typeof r24 === 'bigint' ? r24 + 1n : +r24 + 1;
|
|
if (length !== value25) {
|
|
if (a0[value25] === '\n') {
|
|
r85 = value25;
|
|
break reducibleJoin64;
|
|
}
|
|
}
|
|
errCRNoLF = env0_2.diagnoses.errCRNoLF;
|
|
closure(errCRNoLF);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = value25;
|
|
break reducibleJoin281;
|
|
}
|
|
if (property === ' ') {
|
|
r85 = r24;
|
|
break reducibleJoin64;
|
|
}
|
|
if (property === '\t') {
|
|
r85 = r24;
|
|
break reducibleJoin64;
|
|
}
|
|
charCodeAt = property.charCodeAt;
|
|
value22 = Reflect.apply(charCodeAt, property, [value10]);
|
|
if (!(value22 > 127)) {
|
|
if (value10 !== value22) {
|
|
if (value22 !== 10) {
|
|
value23 = value22 < 32;
|
|
reducibleJoin59: while (true) {
|
|
if (value23) {
|
|
r86 = value23;
|
|
break reducibleJoin59;
|
|
}
|
|
value24 = value22 === 127;
|
|
r86 = value24;
|
|
break reducibleJoin59;
|
|
}
|
|
if (r86) {
|
|
deprecatedCTEXT = env0_2.diagnoses.deprecatedCTEXT;
|
|
closure(deprecatedCTEXT);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errExpectingCTEXT = diagnoses.errExpectingCTEXT;
|
|
closure(errExpectingCTEXT);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
cfwsFWS = diagnoses.cfwsFWS;
|
|
closure(cfwsFWS);
|
|
stack = object.stack;
|
|
push = stack.push;
|
|
now = object.now;
|
|
Reflect.apply(push, stack, [now]);
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
object.now = contextFWS;
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = property;
|
|
r82 = r85;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
} else {
|
|
components = env0_2.components;
|
|
contextFWS = components.contextFWS;
|
|
if (contextFWS !== now) {
|
|
throw new global.Error('unknown context: ' + object.now);
|
|
}
|
|
value16 = r31 === '\r';
|
|
reducibleJoin281: while (true) {
|
|
reducibleJoin36: while (true) {
|
|
if (value16) {
|
|
if (property === '\r') {
|
|
diagnoses = env0_2.diagnoses;
|
|
errFWSCRLFx2 = diagnoses.errFWSCRLFx2;
|
|
closure(errFWSCRLFx2);
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r80 = r28;
|
|
r81 = r31;
|
|
r82 = r24;
|
|
break reducibleJoin281;
|
|
}
|
|
value17 = typeof r28 === 'bigint' ? r28 + 1n : +r28 + 1;
|
|
if (value17 > value13) {
|
|
diagnoses = env0_2.diagnoses;
|
|
deprecatedFWS = diagnoses.deprecatedFWS;
|
|
closure(deprecatedFWS);
|
|
r69 = value17;
|
|
break reducibleJoin36;
|
|
}
|
|
r69 = value13;
|
|
break reducibleJoin36;
|
|
}
|
|
r69 = r28;
|
|
break reducibleJoin36;
|
|
}
|
|
if (property === '\r') {
|
|
value19 = typeof r24 === 'bigint' ? r24 + 1n : +r24 + 1;
|
|
value20 = length !== value19;
|
|
reducibleJoin44: while (true) {
|
|
if (value20) {
|
|
value21 = a0[value19] === '\n';
|
|
r70 = value21;
|
|
break reducibleJoin44;
|
|
}
|
|
r70 = value20;
|
|
break reducibleJoin44;
|
|
}
|
|
reducibleJoin46: while (true) {
|
|
if (r70) {
|
|
r80 = r69;
|
|
r82 = value19;
|
|
break reducibleJoin46;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errCRNoLF = diagnoses.errCRNoLF;
|
|
closure(errCRNoLF);
|
|
r80 = r69;
|
|
r82 = value19;
|
|
break reducibleJoin46;
|
|
}
|
|
} else {
|
|
reducibleJoin46: while (true) {
|
|
if (property === ' ') {
|
|
r80 = r69;
|
|
r82 = r24;
|
|
break reducibleJoin46;
|
|
}
|
|
if (property === '\t') {
|
|
r80 = r69;
|
|
r82 = r24;
|
|
break reducibleJoin46;
|
|
}
|
|
reducibleJoin41: while (true) {
|
|
if (value16) {
|
|
diagnoses = env0_2.diagnoses;
|
|
errFWSCRLFEnd = diagnoses.errFWSCRLFEnd;
|
|
closure(errFWSCRLFEnd);
|
|
break reducibleJoin41;
|
|
}
|
|
break reducibleJoin41;
|
|
}
|
|
now = object.now;
|
|
object.prev = now;
|
|
stack = object.stack;
|
|
pop = stack.pop;
|
|
object.now = Reflect.apply(pop, stack, []);
|
|
value18 = typeof r24 === 'bigint' ? r24 - 1n : +r24 - 1;
|
|
r80 = value10;
|
|
r82 = value18;
|
|
break reducibleJoin46;
|
|
}
|
|
}
|
|
r68 = property;
|
|
r69 = r26;
|
|
r70 = r29;
|
|
r71 = r30;
|
|
r78 = r25;
|
|
r81 = property;
|
|
break reducibleJoin281;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
binding = valid;
|
|
categories = env0_2.categories;
|
|
rfc5322 = categories.rfc5322;
|
|
if (binding > rfc5322) {
|
|
r8 = r71;
|
|
r9 = r70;
|
|
r13 = r69;
|
|
r15 = r68;
|
|
break reducibleLoop24;
|
|
}
|
|
value81 = typeof r82 === 'bigint' ? r82 + 1n : +r82 + 1;
|
|
if (value81 < length) {
|
|
r24 = value81;
|
|
r25 = r78;
|
|
r26 = r69;
|
|
r28 = r80;
|
|
r29 = r70;
|
|
r30 = r71;
|
|
r31 = r81;
|
|
continue reducibleLoop24;
|
|
}
|
|
r8 = r71;
|
|
r9 = r70;
|
|
r13 = r69;
|
|
r15 = r68;
|
|
break reducibleLoop24;
|
|
}
|
|
} else {
|
|
r8 = value10;
|
|
r9 = value10;
|
|
r13 = value11;
|
|
r15 = value;
|
|
}
|
|
binding = valid;
|
|
reducibleJoin313: while (true) {
|
|
if (binding < env0_2.categories.rfc5322) {
|
|
now = object.now;
|
|
components = env0_2.components;
|
|
contextQuotedString = components.contextQuotedString;
|
|
if (now === contextQuotedString) {
|
|
errUnclosedQuotedString = env0_2.diagnoses.errUnclosedQuotedString;
|
|
closure(errUnclosedQuotedString);
|
|
break reducibleJoin313;
|
|
}
|
|
now = object.now;
|
|
components = env0_2.components;
|
|
contextQuotedPair = components.contextQuotedPair;
|
|
if (now === contextQuotedPair) {
|
|
errBackslashEnd = env0_2.diagnoses.errBackslashEnd;
|
|
closure(errBackslashEnd);
|
|
break reducibleJoin313;
|
|
}
|
|
now = object.now;
|
|
components = env0_2.components;
|
|
contextComment = components.contextComment;
|
|
if (now === contextComment) {
|
|
errUnclosedComment = env0_2.diagnoses.errUnclosedComment;
|
|
closure(errUnclosedComment);
|
|
break reducibleJoin313;
|
|
}
|
|
now = object.now;
|
|
components = env0_2.components;
|
|
literal = components.literal;
|
|
if (now === literal) {
|
|
errUnclosedDomainLiteral = env0_2.diagnoses.errUnclosedDomainLiteral;
|
|
closure(errUnclosedDomainLiteral);
|
|
break reducibleJoin313;
|
|
}
|
|
if (r15 === '\r') {
|
|
errFWSCRLFEnd = env0_2.diagnoses.errFWSCRLFEnd;
|
|
closure(errFWSCRLFEnd);
|
|
break reducibleJoin313;
|
|
}
|
|
domain = object2.domain;
|
|
length = domain.length;
|
|
if (value10 === length) {
|
|
errNoDomain = env0_2.diagnoses.errNoDomain;
|
|
closure(errNoDomain);
|
|
break reducibleJoin313;
|
|
}
|
|
if (value10 === r9) {
|
|
errDotEnd = env0_2.diagnoses.errDotEnd;
|
|
closure(errDotEnd);
|
|
break reducibleJoin313;
|
|
}
|
|
if (r13) {
|
|
errDomainHyphenEnd = env0_2.diagnoses.errDomainHyphenEnd;
|
|
closure(errDomainHyphenEnd);
|
|
break reducibleJoin313;
|
|
}
|
|
domain = object2.domain;
|
|
length = domain.length;
|
|
if (length > 255) {
|
|
rfc5322DomainTooLong = env0_2.diagnoses.rfc5322DomainTooLong;
|
|
closure(rfc5322DomainTooLong);
|
|
break reducibleJoin313;
|
|
}
|
|
local = object2.local;
|
|
length = local.length;
|
|
domain = object2.domain;
|
|
length12 = domain.length;
|
|
if (length + length12 + value13 > 254) {
|
|
rfc5322TooLong = env0_2.diagnoses.rfc5322TooLong;
|
|
closure(rfc5322TooLong);
|
|
break reducibleJoin313;
|
|
}
|
|
if (r9 > 63) {
|
|
rfc5322LabelTooLong = env0_2.diagnoses.rfc5322LabelTooLong;
|
|
closure(rfc5322LabelTooLong);
|
|
break reducibleJoin313;
|
|
}
|
|
minDomainAtoms = r5.minDomainAtoms;
|
|
if (minDomainAtoms) {
|
|
length = object3.domains.length;
|
|
minDomainAtoms = r5.minDomainAtoms;
|
|
if (length < minDomainAtoms) {
|
|
errDomainTooShort = env0_2.diagnoses.errDomainTooShort;
|
|
closure(errDomainTooShort);
|
|
break reducibleJoin313;
|
|
}
|
|
}
|
|
tldWhitelist = r5.tldWhitelist;
|
|
if (!tldWhitelist) {
|
|
tldBlacklist = r5.tldBlacklist;
|
|
if (!tldBlacklist) {
|
|
break reducibleJoin313;
|
|
}
|
|
}
|
|
domains = object3.domains;
|
|
property = domains[r8];
|
|
binding = env0_2;
|
|
validDomain = binding.validDomain;
|
|
if (Reflect.apply(validDomain, binding, [property, r5])) {
|
|
break reducibleJoin313;
|
|
}
|
|
diagnoses = env0_2.diagnoses;
|
|
errUnknownTLD = diagnoses.errUnknownTLD;
|
|
closure(errUnknownTLD);
|
|
break reducibleJoin313;
|
|
}
|
|
break reducibleJoin313;
|
|
}
|
|
closure = validate_64584Finish;
|
|
if (r5.checkDNS) {
|
|
reducibleJoin315: while (true) {
|
|
if (valid < env0_2.categories.dnsWarn) {
|
|
_fun64587();
|
|
return value;
|
|
}
|
|
break reducibleJoin315;
|
|
}
|
|
}
|
|
return closure();
|
|
function validate_64584Finish() { // fn#64586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:86923, owner: validate_64584.finish, offset: 0x01bad71c, size: 283 bytes, params: 1, frame: 16
|
|
var updateResultBinding;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var valid2;
|
|
var value11;
|
|
let binding = env0_8;
|
|
let r0 = !binding && valid < env1_2.categories.dnsWarn;
|
|
if (r0) {
|
|
if (env0_6.domains[env0_7].charCodeAt(0) <= 57) {
|
|
updateResultBinding = updateResult;
|
|
value7 = environment.__proto__;
|
|
updateResultBinding(env1_2.diagnoses.rfc5321TLDNumeric);
|
|
} else if (env0_7 === 0) {
|
|
updateResultBinding = updateResult;
|
|
value6 = environment.__proto__;
|
|
updateResultBinding(env1_2.diagnoses.rfc5321TLD);
|
|
}
|
|
}
|
|
if (valid < env0_2) {
|
|
value8 = environment.__proto__;
|
|
valid2 = env1_2.diagnoses.valid;
|
|
}
|
|
binding = env0_1;
|
|
validBinding = valid;
|
|
r0 = binding ? validBinding : validBinding < env1_2.defaultThreshold;
|
|
if (importDefault) {
|
|
if (env0_9) {
|
|
importDefault(r0);
|
|
} else {
|
|
value11 = environment.__proto__;
|
|
binding = env1_2;
|
|
binding.defer(importDefault.bind(null, r0));
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun64587() { // fn#64587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:87239, offset: 0x01bad837, size: 89 bytes, params: 1, frame: 14
|
|
var binding;
|
|
if (env0_7 === 0) {
|
|
binding = env0_5;
|
|
binding.domain = binding.domain + '.';
|
|
}
|
|
env1_1.resolveMx(env0_5.domain, _fun64588);
|
|
function _fun64588(a0, a1) { // fn#64588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:87303, offset: 0x01bad890, size: 235 bytes, params: 3, frame: 17
|
|
var environment;
|
|
var code;
|
|
var value;
|
|
var updateResultBinding;
|
|
var handleRecords2;
|
|
var binding;
|
|
var value3;
|
|
if (a0) {
|
|
code = a0.code;
|
|
value = environment.__proto__.__proto__;
|
|
if (code !== env2_1.NODATA) {
|
|
value3 = environment.__proto__;
|
|
updateResult(env2_2.diagnoses.dnsWarnNoRecord);
|
|
return validate_64584Finish();
|
|
}
|
|
if (a1) {
|
|
if (a1.length) {
|
|
value = environment.__proto__;
|
|
return validate_64584Finish();
|
|
}
|
|
value = environment.__proto__;
|
|
updateResultBinding = updateResult;
|
|
value = environment.__proto__.__proto__;
|
|
updateResultBinding(env2_2.diagnoses.dnsWarnNoMXRecord);
|
|
handleRecords2 = handleRecords;
|
|
binding = env2_1;
|
|
binding.resolveCname(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve4(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve6(domain, handleRecords2);
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__;
|
|
updateResultBinding = updateResult;
|
|
value = environment.__proto__.__proto__;
|
|
updateResultBinding(env2_2.diagnoses.dnsWarnNoMXRecord);
|
|
handleRecords2 = handleRecords;
|
|
binding = env2_1;
|
|
binding.resolveCname(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve4(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve6(domain, handleRecords2);
|
|
} else {
|
|
if (a1) {
|
|
if (a1.length) {
|
|
value = environment.__proto__;
|
|
return validate_64584Finish();
|
|
}
|
|
value = environment.__proto__;
|
|
updateResultBinding = updateResult;
|
|
value = environment.__proto__.__proto__;
|
|
updateResultBinding(env2_2.diagnoses.dnsWarnNoMXRecord);
|
|
handleRecords2 = handleRecords;
|
|
binding = env2_1;
|
|
binding.resolveCname(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve4(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve6(domain, handleRecords2);
|
|
return undefined;
|
|
}
|
|
updateResult(env2_2.diagnoses.dnsWarnNoMXRecord);
|
|
handleRecords2 = handleRecords;
|
|
binding = env2_1;
|
|
binding.resolveCname(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve4(domain, handleRecords2);
|
|
binding = env2_1;
|
|
binding.resolve6(domain, handleRecords2);
|
|
}
|
|
function handleRecords(a0, a1) { // fn#64589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:87466, offset: 0x01bad97b, size: 119 bytes, params: 3, frame: 13
|
|
var value2;
|
|
var updateResultBinding;
|
|
var value3;
|
|
if (!env0_1) {
|
|
var binding = env0_0;
|
|
env0_0 = typeof binding === 'bigint' ? binding - 1n : +binding - 1;
|
|
if (a1) {
|
|
if (a1.length) {
|
|
value = environment.__proto__.__proto__;
|
|
return validate_64584Finish();
|
|
}
|
|
if (env0_0 === 0) {
|
|
value2 = environment.__proto__.__proto__;
|
|
updateResultBinding = updateResult;
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
updateResultBinding(env3_2.diagnoses.dnsWarnNoRecord);
|
|
validate_64584Finish();
|
|
}
|
|
return undefined;
|
|
}
|
|
if (env0_0 === 0) {
|
|
value2 = environment.__proto__.__proto__;
|
|
updateResultBinding = updateResult;
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
updateResultBinding(env3_2.diagnoses.dnsWarnNoRecord);
|
|
validate_64584Finish();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64590(a0, a1, a2) { // fn#64590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:87814, offset: 0x01bad9f2, size: 55 bytes, params: 4, frame: 12
|
|
const env0_0 = a2(24);
|
|
const Uri = ({Uri: {createUriRegex: createUriRegex}}).Uri;
|
|
a0.exports = Uri;
|
|
function createUriRegex(a0, a1, a2) { // fn#64591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:87878, offset: 0x01bada29, size: 250 bytes, params: 4, frame: 14
|
|
const scheme = env0_0.scheme;
|
|
const r4 = a2 ? '(?:' + env0_0.relativeRef + ')' : a1 ? '(?:' + ('(?:' + (a0 ? '(?:' + a0 + ')' : scheme) + ':' + env0_0.hierPart + ')') + '|' + env0_0.relativeRef + ')' : '(?:' + (a0 ? '(?:' + a0 + ')' : scheme) + ':' + env0_0.hierPart + ')';
|
|
const RegExp = global.RegExp;
|
|
const binding = env0_0;
|
|
let value = '^' + r4 + '(?:\\?' + binding.query;
|
|
value = value + ')?(?:#' + binding.fragment;
|
|
const value7 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += ')?$';
|
|
const regExp = new RegExp();
|
|
return regExp instanceof Object ? regExp : value7;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64592(a0, a1) { // fn#64592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:88145, offset: 0x01badb23, size: 54 bytes, params: 3, frame: 10
|
|
const object = {rfc3986: {}, generate: generate_64593};
|
|
object.generate();
|
|
a0.exports = object.rfc3986;
|
|
function generate_64593() { // fn#64593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:88199, offset: 0x01badb59, size: 561 bytes, params: 1, frame: 8
|
|
let rfc3986 = env0_0.rfc3986;
|
|
rfc3986.cidr = '[0-9]|[1-2][0-9]|3[0-2]';
|
|
env0_0.rfc3986.IPv4address = '(?:(?:0?0?[0-9]|0?[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}(?:0?0?[0-9]|0?[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
|
|
let IPv4address = env0_0.rfc3986.IPv4address;
|
|
const value2 = '(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|' + IPv4address + ')';
|
|
env0_0.rfc3986.IPv6address = '(?:' + ('(?:[0-9A-Fa-f]{1,4}:){6}' + value2) + '|' + ('::(?:[0-9A-Fa-f]{1,4}:){5}' + value2) + '|' + ('(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}' + value2) + '|' + ('(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}' + value2) + '|' + ('(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}' + value2) + '|' + ('(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:' + value2) + '|' + ('(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::' + value2) + '|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}' + '|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)';
|
|
env0_0.rfc3986.IPvFuture = "v[0-9A-Fa-f]+\\.[a-zA-Z0-9-\\._~!\\$&'\\(\\)\\*\\+,;=:]+";
|
|
env0_0.rfc3986.scheme = '[a-zA-Z][a-zA-Z0-9+-\\.]*';
|
|
const IPv6address = env0_0.rfc3986.IPv6address;
|
|
const value9 = '\\[(?:' + IPv6address;
|
|
const IPvFuture = env0_0.rfc3986.IPvFuture;
|
|
const value10 = value9 + '|' + IPvFuture;
|
|
IPv4address = env0_0.rfc3986.IPv4address;
|
|
const value11 = '(?:' + (value10 + ')\\]') + '|' + IPv4address;
|
|
rfc3986 = env0_0.rfc3986;
|
|
const value12 = '(?:(?:\\/\\/' + ("(?:[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:]*@)?" + (value11 + "|[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=]{0,255})") + '(?::[0-9]*)?') + "(?:\\/[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*" + ')' + '|' + "\\/(?:[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]+(?:\\/[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*)?";
|
|
rfc3986.hierPart = value12 + "|[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]+(?:\\/[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*)";
|
|
env0_0.rfc3986.relativeRef = value12 + "|[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=@]+(?:\\/[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*" + '|)';
|
|
env0_0.rfc3986.query = "[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@\\/\\?]*(?=#|$)";
|
|
env0_0.rfc3986.fragment = "[a-zA-Z0-9-\\._~%0-9A-Fa-f!\\$&'\\(\\)\\*\\+,;=:@\\/\\?]*";
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64594(a0, a1, a2) { // fn#64594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:90139, offset: 0x01badd8a, size: 186 bytes, params: 4, frame: 16
|
|
const value = a2(24);
|
|
const object = {};
|
|
const IPv4address = value.IPv4address;
|
|
const IPv6address = value.IPv6address;
|
|
const IPvFuture = value.IPvFuture;
|
|
object.Ip = {cidrs: {required: '\\/(?:' + value.cidr + ')', optional: '(?:\\/(?:' + value.cidr + '))?',
|
|
forbidden: ''}, versions: {ipv4: IPv4address, ipv6: IPv6address, ipvfuture: IPvFuture}};
|
|
let Ip = object.Ip;
|
|
Ip.createIpRegex = createIpRegex;
|
|
Ip = object.Ip;
|
|
a0.exports = Ip;
|
|
function createIpRegex(a0, a1) { // fn#64595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:90363, offset: 0x01bade44, size: 183 bytes, params: 3, frame: 17
|
|
var r2;
|
|
var r6;
|
|
var r3;
|
|
var property;
|
|
var Ip;
|
|
var versions;
|
|
var value4;
|
|
let length = a0.length;
|
|
let value = 0;
|
|
const value2 = undefined;
|
|
if (value < length) {
|
|
r2 = value2;
|
|
r6 = value;
|
|
while (true) {
|
|
property = a0[r6];
|
|
r2 = !r2 ? '^(?:' + env0_0.Ip.versions[property] : r2;
|
|
Ip = env0_0.Ip;
|
|
versions = Ip.versions;
|
|
property = versions[property];
|
|
value = r2 + '|' + property;
|
|
value4 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = a0.length;
|
|
if (value4 < length) {
|
|
r2 = value;
|
|
r6 = value4;
|
|
continue;
|
|
}
|
|
r3 = value;
|
|
break;
|
|
}
|
|
} else {
|
|
r3 = value2;
|
|
}
|
|
const RegExp = global.RegExp;
|
|
Ip = env0_0.Ip;
|
|
value = r3 + ')' + Ip.cidrs[a1];
|
|
const value5 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
|
|
value += '$';
|
|
const regExp = new RegExp(value);
|
|
return regExp instanceof Object ? regExp : value5;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64596(a0, a1, a2) { // fn#64596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:90541, offset: 0x01badefb, size: 289 bytes, params: 4, frame: 16
|
|
const value = a2(14);
|
|
let env0_0 = a2(15);
|
|
let env0_1 = a2(2);
|
|
const object = {precisionRx: RegExp('(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$', '')};
|
|
object.Number = _fun64598(value);
|
|
object.compare = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun64612;
|
|
};
|
|
let Number = object.Number;
|
|
Number.prototype.min = object.compare('min', function(a0, a1) {
|
|
return a0 >= a1;
|
|
});
|
|
Number = object.Number;
|
|
Number.prototype.max = object.compare('max', function(a0, a1) {
|
|
return a0 <= a1;
|
|
});
|
|
Number = object.Number;
|
|
Number.prototype.greater = object.compare('greater', function(a0, a1) {
|
|
return a0 > a1;
|
|
});
|
|
Number = object.Number;
|
|
Number.prototype.less = object.compare('less', function(a0, a1) {
|
|
return a0 < a1;
|
|
});
|
|
Number = object.Number;
|
|
a0.exports = new Number();
|
|
function _fun64598(a0) { // fn#64598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:91178, offset: 0x01bae01c, size: 131 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_645992 = _class_64599;
|
|
_inherits_64597(_class_645992, a0) /* class inheritance: closure extends a0 */;
|
|
_class_645992.prototype._base = _base_64600;
|
|
_class_645992.prototype.multiple = multiple;
|
|
_class_645992.prototype.integer = function() {
|
|
return this._test('integer', undefined, _fun64604);
|
|
};
|
|
_class_645992.prototype.negative = function() {
|
|
return this._test('negative', undefined, _fun64606);
|
|
};
|
|
_class_645992.prototype.positive = function() {
|
|
return this._test('positive', undefined, _fun64608);
|
|
};
|
|
_class_645992.prototype.precision = precision_64609;
|
|
return _class_645992;
|
|
function _class_64599() { // fn#64599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:91190, offset: 0x01bae09f, size: 201 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
var _invalids;
|
|
const value = this;
|
|
if (value instanceof _class_64599) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'number';
|
|
_invalids = r0._invalids;
|
|
_invalids.add(Infinity);
|
|
_invalids = r0._invalids;
|
|
_invalids.add(-Infinity);
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function multiple(a0) { // fn#64601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92063, offset: 0x01bae27e, size: 140 bytes, params: 2, frame: 19
|
|
const env0_0 = a0;
|
|
let binding = env1_0;
|
|
if (!binding.isRef(a0)) {
|
|
binding = env1_1;
|
|
binding.assert(typeof a0 === 'number' && global.isFinite(a0), 'multiple must be a number');
|
|
binding = env1_1;
|
|
binding.assert(a0 > 0, 'multiple must be greater than 0');
|
|
}
|
|
return this._test('multiple', a0, _fun64602);
|
|
function _fun64602(a0, a1, a2) { // fn#64602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92256, offset: 0x01bae30a, size: 195 bytes, params: 4, frame: 20
|
|
const value = a0;
|
|
const binding = env0_1;
|
|
const binding2 = env0_0;
|
|
const r1 = binding ? binding2(a1.reference || a1.parent, a2) : binding2;
|
|
return env0_1 ? typeof r1 !== 'number' ? this.createError('number.ref', {ref: env0_0.key}, a1,
|
|
a2) : global.isFinite(r1) ? value % r1 == 0 ? value : this.createError('number.multiple', {multiple: env0_0,
|
|
value: value}, a1, a2) : this.createError('number.ref', {ref: env0_0.key}, a1,
|
|
a2) : value % r1 == 0 ? value : this.createError('number.multiple', {multiple: env0_0, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function integer() { // fn#64603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92497, offset: 0x01bae3cd, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('integer', undefined, _fun64604);
|
|
function _fun64604(a0, a1, a2) { // fn#64604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92552, offset: 0x01bae3ec, size: 66 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const binding = env2_1;
|
|
return binding.isInteger(value) ? value : this.createError('number.integer', {value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function negative_64605() { // fn#64605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92671, offset: 0x01bae42e, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('negative', undefined, function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value < 0) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.createError('number.negative', {value: value}, a1, a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
}
|
|
|
|
function positive_64607() { // fn#64607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92837, offset: 0x01bae480, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('positive', undefined, function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value > 0) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.createError('number.positive', {value: value}, a1, a2);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
}
|
|
|
|
function precision_64609(a0) { // fn#64609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:93004, offset: 0x01bae4d2, size: 115 bytes, params: 2, frame: 18
|
|
var environment;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(binding.isInteger(a0), 'limit must be an integer');
|
|
binding.assert(!('precision' in this._flags), 'precision already set');
|
|
value = this._test('precision', a0, _fun64610);
|
|
value._flags.precision = a0;
|
|
return value;
|
|
function _fun64610(a0, a1, a2) { // fn#64610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:93173, offset: 0x01bae545, size: 176 bytes, params: 4, frame: 22
|
|
const value = a0;
|
|
const value2 = value.toString();
|
|
const value4 = value2.match(env2_2.precisionRx);
|
|
const Math = global.Math;
|
|
const max = Math.max;
|
|
const value5 = 0;
|
|
const length = value4[1] ? value4[1].length : value5;
|
|
let r0 = value4[2] ? global.parseInt(value4[2], 10) : value5;
|
|
r0 = Reflect.apply(max, Math, [length - r0, value5]) <= env0_0 ? value : this.createError('number.precision',
|
|
{limit: env0_0, value: value}, a1, a2);
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function compare_64611(a0, a1) { // fn#64611, offset: 0x01bae5f5, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return _fun64612;
|
|
function _fun64612(a0) { // fn#64612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:93436, offset: 0x01bae60c, size: 121 bytes, params: 2, frame: 18
|
|
const env0_0 = a0;
|
|
let binding = env1_0;
|
|
const isRef2 = binding.isRef(a0);
|
|
let r6 = typeof a0 === 'number' && !global.isNaN(a0);
|
|
binding = env1_1;
|
|
const assert = binding.assert;
|
|
r6 = !r6 ? isRef2 : r6;
|
|
Reflect.apply(assert, binding, [r6, 'limit must be a number or reference']);
|
|
return this._test(env0_0, a0, _fun64613);
|
|
function _fun64613(a0, a1, a2) { // fn#64613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:93573, offset: 0x01bae685, size: 200 bytes, params: 4, frame: 21
|
|
var r1;
|
|
var value3;
|
|
var value4;
|
|
const value = a0;
|
|
const binding = env0_1;
|
|
const binding2 = env0_0;
|
|
if (binding) {
|
|
value3 = binding2(a1.reference || a1.parent, a2);
|
|
if (typeof value3 !== 'number') {
|
|
return this.createError('number.ref', {ref: env0_0.key}, a1, a2);
|
|
}
|
|
if (global.isNaN(value3)) {
|
|
return this.createError('number.ref', {ref: env0_0.key}, a1, a2);
|
|
}
|
|
r1 = value3;
|
|
value4 = environment.__proto__;
|
|
} else {
|
|
r1 = binding2;
|
|
}
|
|
r1 = require(value, r1) ? value : this.createError('number.' + env1_0, {limit: r1, value: value}, a1, a2);
|
|
return r1;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64618(a0, a1, a2) { // fn#64618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:94112, offset: 0x01bae74d, size: 110 bytes, params: 4, frame: 14
|
|
const value = a2(14);
|
|
let env0_1 = a2(2);
|
|
const object = {Set: a2(18)};
|
|
object.Boolean = ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun64621;
|
|
var env0_1 = closure;
|
|
_inherits_64619(closure, a0) /* class inheritance: closure extends a0 */;
|
|
closure.prototype._base = _fun64622;
|
|
closure.prototype.truthy = _fun64623;
|
|
closure.prototype.falsy = _fun64624;
|
|
closure.prototype.insensitive = _fun64625;
|
|
closure.prototype.describe = _fun64626;
|
|
return closure;
|
|
})(value);
|
|
const Boolean = object.Boolean;
|
|
a0.exports = new Boolean();
|
|
function _fun64620(a0) { // fn#64620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:94705, offset: 0x01bae7bb, size: 115 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_646212 = _class_64621;
|
|
_inherits_64619(_class_646212, a0) /* class inheritance: closure extends a0 */;
|
|
_class_646212.prototype._base = _base_64622;
|
|
_class_646212.prototype.truthy = truthy;
|
|
_class_646212.prototype.falsy = falsy;
|
|
_class_646212.prototype.insensitive = function(a0) {
|
|
var r2;
|
|
var value = a0 === undefined;
|
|
r2 = value || !!a0;
|
|
if (r2 !== this._flags.insensitive) {
|
|
value = this.clone();
|
|
value._flags.insensitive = r2;
|
|
return value;
|
|
}
|
|
return this;
|
|
};
|
|
_class_646212.prototype.describe = describe_64626;
|
|
return _class_646212;
|
|
function _class_64621() { // fn#64621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:94717, offset: 0x01bae82e, size: 244 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var prototype;
|
|
var binding;
|
|
var value3;
|
|
var ReferenceError;
|
|
var referenceError;
|
|
var _inner;
|
|
var Set;
|
|
var set;
|
|
let value = this;
|
|
if (value instanceof _class_64621) {
|
|
binding = env0_0;
|
|
value3 = binding.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'boolean';
|
|
r0._flags.insensitive = true;
|
|
_inner = r0._inner;
|
|
value = environment.__proto__;
|
|
binding = env1_2;
|
|
Set = binding.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value = set instanceof Object ? set : value;
|
|
_inner.truthySet = value;
|
|
_inner = r0._inner;
|
|
Set = binding.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value = set instanceof Object ? set : value;
|
|
_inner.falsySet = value;
|
|
return r0;
|
|
}
|
|
ReferenceError = global.ReferenceError;
|
|
prototype = ReferenceError.prototype;
|
|
value = Object.create(prototype, {constructor: {value: ReferenceError}});
|
|
referenceError = new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
value = referenceError instanceof Object ? referenceError : value;
|
|
throw value;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function truthy() { // fn#64623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:95524, offset: 0x01bae9d4, size: 145 bytes, params: 1, frame: 19
|
|
var r3;
|
|
var property;
|
|
var _inner;
|
|
var truthySet;
|
|
var value5;
|
|
const value = this.clone();
|
|
let binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
const value3 = Reflect.apply(flatten, binding, [slice.call(arguments)]);
|
|
let length = value3.length;
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r3 = value4; true; r3 = value5) {
|
|
property = value3[r3];
|
|
binding = env1_1;
|
|
binding.assert(property !== undefined, 'Cannot call truthy with undefined');
|
|
_inner = value._inner;
|
|
truthySet = _inner.truthySet;
|
|
truthySet.add(property);
|
|
value5 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value3.length;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function falsy() { // fn#64624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:95763, offset: 0x01baea65, size: 145 bytes, params: 1, frame: 19
|
|
var r3;
|
|
var property;
|
|
var _inner;
|
|
var falsySet;
|
|
var value5;
|
|
const value = this.clone();
|
|
let binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
const value3 = Reflect.apply(flatten, binding, [slice.call(arguments)]);
|
|
let length = value3.length;
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
for (r3 = value4; true; r3 = value5) {
|
|
property = value3[r3];
|
|
binding = env1_1;
|
|
binding.assert(property !== undefined, 'Cannot call falsy with undefined');
|
|
_inner = value._inner;
|
|
falsySet = _inner.falsySet;
|
|
falsySet.add(property);
|
|
value5 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value3.length;
|
|
if (!(value5 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function describe_64626() { // fn#64626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:96203, offset: 0x01baeb35, size: 127 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
value = env1_0.prototype.describe.call(this);
|
|
let items2 = [true];
|
|
let concat = items2.concat;
|
|
const truthySet = this._inner.truthySet;
|
|
value.truthy = Reflect.apply(concat, items2, [truthySet.values()]);
|
|
items2 = [false];
|
|
concat = items2.concat;
|
|
const falsySet = this._inner.falsySet;
|
|
value.falsy = Reflect.apply(concat, items2, [falsySet.values()]);
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64627(a0, a1, a2) { // fn#64627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:96411, offset: 0x01baebb4, size: 176 bytes, params: 4, frame: 13
|
|
const Symbol = global.Symbol;
|
|
let env0_0 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64629 : _fun64630;
|
|
let env0_1 = a2(2);
|
|
const value = a2(14);
|
|
const env0_3 = a2(19);
|
|
const env0_4 = a2(15);
|
|
const Alternatives = ({Alternatives: ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun64632;
|
|
var env0_1 = closure;
|
|
_inherits_64628(closure, a0) /* class inheritance: closure extends a0 */;
|
|
closure.prototype._base = _fun64633;
|
|
closure.prototype.try = _fun64634;
|
|
closure.prototype.when = _fun64635;
|
|
closure.prototype.describe = _fun64636;
|
|
return closure;
|
|
})(value)}).Alternatives;
|
|
a0.exports = new Alternatives();
|
|
function _fun64631(a0) { // fn#64631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:97224, offset: 0x01baec64, size: 99 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_646322 = _class_64632;
|
|
_inherits_64628(_class_646322, a0) /* class inheritance: closure extends a0 */;
|
|
_class_646322.prototype._base = _base_64633;
|
|
_class_646322.prototype.try = _try_64634;
|
|
_class_646322.prototype.when = when_64635;
|
|
_class_646322.prototype.describe = describe_64636;
|
|
return _class_646322;
|
|
function _class_64632() { // fn#64632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:97236, offset: 0x01baecc7, size: 184 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
const value = this;
|
|
if (value instanceof _class_64632) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'alternatives';
|
|
r0._invalids.remove(null);
|
|
r0._inner.matches = [];
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function _try_64634() { // fn#64634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:98270, offset: 0x01baef03, size: 208 bytes, params: 1, frame: 17
|
|
var r2;
|
|
var value5;
|
|
var _refs;
|
|
var concat;
|
|
var _refs2;
|
|
var _inner;
|
|
var matches;
|
|
var value6;
|
|
let binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
const value2 = Reflect.apply(flatten, binding, [slice.call(arguments)]);
|
|
binding = env1_1;
|
|
const assert = binding.assert;
|
|
let length = value2.length;
|
|
Reflect.apply(assert, binding, [length, 'Cannot add other alternatives without at least one schema']);
|
|
const value3 = this.clone();
|
|
length = value2.length;
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
r2 = value4;
|
|
while (true) {
|
|
binding = env1_3;
|
|
value5 = binding.schema(value2[r2]);
|
|
_refs = value5._refs;
|
|
length = _refs.length;
|
|
if (length) {
|
|
_refs = value3._refs;
|
|
concat = _refs.concat;
|
|
_refs2 = value5._refs;
|
|
value3._refs = Reflect.apply(concat, _refs, [_refs2]);
|
|
}
|
|
_inner = value3._inner;
|
|
matches = _inner.matches;
|
|
matches.push({schema: value5});
|
|
value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = value2.length;
|
|
if (value6 < length) {
|
|
r2 = value6;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return value3;
|
|
}
|
|
|
|
function when_64635(a0, a1) { // fn#64635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:98600, offset: 0x01baefd3, size: 722 bytes, params: 3, frame: 20
|
|
let binding = env1_1;
|
|
const assert = binding.assert;
|
|
let r2 = env1_4.isRef(a0) || typeof a0 === 'string';
|
|
Reflect.apply(assert, binding, [r2, 'Invalid reference:', a0]);
|
|
env1_1.assert(a1, 'Missing options');
|
|
binding = env1_1;
|
|
const value3 = 'undefined';
|
|
const value4 = undefined;
|
|
binding.assert((value4 === a1 ? value3 : env1_0(a1)) === 'object', 'Invalid options');
|
|
binding = env1_1;
|
|
binding.assert(a1.hasOwnProperty('is'), 'Missing "is" directive');
|
|
binding = env1_1;
|
|
binding.assert(value4 !== a1.then || value4 !== a1.otherwise,
|
|
'options must have at least one of "then" or "otherwise"');
|
|
const value8 = this.clone();
|
|
binding = env1_3;
|
|
const value9 = binding.schema(a1.is);
|
|
const r5 = a1.is !== null && (env1_4.isRef(a1.is) || a1.is instanceof env1_2) ? value9 : value9.required();
|
|
const object = {};
|
|
binding = env1_3;
|
|
object.ref = binding.ref(a0);
|
|
object.is = r5;
|
|
object.then = value4 === a1.then ? value4 : env1_3.schema(a1.then);
|
|
object.otherwise = value4 === a1.otherwise ? value4 : env1_3.schema(a1.otherwise);
|
|
r2 = value8._settings && value8._settings.baseType;
|
|
if (r2) {
|
|
r2 = object.then && value8._settings.baseType.concat(object.then);
|
|
object.then = r2;
|
|
r2 = object.otherwise && value8._settings.baseType.concat(object.otherwise);
|
|
object.otherwise = r2;
|
|
}
|
|
binding = env1_4;
|
|
const push = binding.push;
|
|
let _refs = value8._refs;
|
|
Reflect.apply(push, binding, [_refs, object.ref]);
|
|
_refs = value8._refs;
|
|
value8._refs = _refs.concat(object.is._refs);
|
|
if (object.then && object.then._refs) {
|
|
_refs = value8._refs;
|
|
value8._refs = _refs.concat(object.then._refs);
|
|
}
|
|
if (object.otherwise && object.otherwise._refs) {
|
|
_refs = value8._refs;
|
|
value8._refs = _refs.concat(object.otherwise._refs);
|
|
}
|
|
value8._inner.matches.push(object);
|
|
return value8;
|
|
}
|
|
|
|
function describe_64636() { // fn#64636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:99588, offset: 0x01baf2a5, size: 271 bytes, params: 1, frame: 17
|
|
var r4;
|
|
var property;
|
|
var schema;
|
|
var object;
|
|
var ref;
|
|
var is;
|
|
var then;
|
|
var otherwise;
|
|
var push;
|
|
var value3;
|
|
let value = environment.__proto__;
|
|
let describe = env1_2.prototype.describe;
|
|
value = describe.call(this);
|
|
const items2 = [];
|
|
let _inner = this._inner;
|
|
let matches = _inner.matches;
|
|
let length = matches.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r4 = value2;
|
|
while (true) {
|
|
_inner = this._inner;
|
|
matches = _inner.matches;
|
|
property = matches[r4];
|
|
schema = property.schema;
|
|
if (schema) {
|
|
push = items2.push;
|
|
schema = property.schema;
|
|
describe = schema.describe;
|
|
Reflect.apply(push, items2, [Reflect.apply(describe, schema, [])]);
|
|
} else {
|
|
object = {};
|
|
ref = property.ref;
|
|
object.ref = ref.toString();
|
|
is = property.is;
|
|
object.is = is.describe();
|
|
then = property.then;
|
|
if (!then) {
|
|
continue;
|
|
}
|
|
then = property.then;
|
|
object.then = then.describe();
|
|
otherwise = property.otherwise;
|
|
if (!otherwise) {
|
|
continue;
|
|
}
|
|
otherwise = property.otherwise;
|
|
object.otherwise = otherwise.describe();
|
|
items2.push(object);
|
|
}
|
|
value3 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
_inner = this._inner;
|
|
matches = _inner.matches;
|
|
length = matches.length;
|
|
if (value3 < length) {
|
|
r4 = value3;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
value.alternatives = items2;
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64637(a0, a1, a2) { // fn#64637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:99979, offset: 0x01baf3b4, size: 311 bytes, params: 4, frame: 13
|
|
const Symbol = global.Symbol;
|
|
const env0_0 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64639 : _fun64640;
|
|
const env0_1 = a2(2);
|
|
const env0_2 = a2(30);
|
|
let value = a2(14);
|
|
const env0_4 = a2(16);
|
|
const env0_5 = a2(19);
|
|
const env0_6 = a2(15);
|
|
const object = {};
|
|
object.Object = _fun64641(value);
|
|
object.safeParse = function(a0) {
|
|
var JSON;
|
|
var value;
|
|
var error;
|
|
try {
|
|
JSON = global.JSON;
|
|
value = JSON.parse(a0);
|
|
} catch (error) {
|
|
return a0;
|
|
}
|
|
return value;
|
|
};
|
|
object.renameDefaults = {'alias': false, 'multiple': false, 'override': false};
|
|
object.groupChildren = groupChildren;
|
|
object.with = _fun64684;
|
|
object.without = without;
|
|
object.xor = xor_64686;
|
|
object.or = function(a0, a1, a2, a3, a4) {
|
|
var r4;
|
|
var property;
|
|
var hasOwnProperty;
|
|
var value = 0;
|
|
if (value < a1.length) {
|
|
r4 = value;
|
|
reducibleLoop1: while (true) {
|
|
property = a1[r4];
|
|
hasOwnProperty = global.Object.prototype.hasOwnProperty;
|
|
if (hasOwnProperty.call(a2, property)) {
|
|
reducibleJoin3: while (true) {
|
|
if (a2[property] !== undefined) {
|
|
return a0;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (!(value < a1.length)) {
|
|
return this.createError('object.missing', {peers: a1}, a3, a4);
|
|
}
|
|
r4 = value;
|
|
continue reducibleLoop1;
|
|
}
|
|
}
|
|
return this.createError('object.missing', {peers: a1}, a3, a4);
|
|
};
|
|
object.and = and_64688;
|
|
object.nand = nand;
|
|
const Object = object.Object;
|
|
a0.exports = new Object();
|
|
function _fun64641(a0) { // fn#64641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:100802, offset: 0x01baf4eb, size: 471 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_646422 = _class_64642;
|
|
_inherits_64638(_class_646422, a0) /* class inheritance: closure extends a0 */;
|
|
_class_646422.prototype._base = _base_64643;
|
|
_class_646422.prototype._func = function() {
|
|
var value = this.clone();
|
|
value._flags.func = true;
|
|
return value;
|
|
};
|
|
_class_646422.prototype.keys = keys_64647;
|
|
_class_646422.prototype.unknown = function(a0) {
|
|
var value = this.clone();
|
|
value._flags.allowUnknown = a0 !== false;
|
|
return value;
|
|
};
|
|
_class_646422.prototype.length = length;
|
|
_class_646422.prototype.arity = arity;
|
|
_class_646422.prototype.minArity = minArity;
|
|
_class_646422.prototype.maxArity = maxArity;
|
|
_class_646422.prototype.min = min_64657;
|
|
_class_646422.prototype.max = max_64659;
|
|
_class_646422.prototype.pattern = pattern_64661;
|
|
_class_646422.prototype.schema = function() {
|
|
return this._test('schema', null, _fun64663);
|
|
};
|
|
_class_646422.prototype.with = function(a0, a1) {
|
|
return this._dependency('with', a0, a1);
|
|
};
|
|
_class_646422.prototype.without = function(a0, a1) {
|
|
return this._dependency('without', a0, a1);
|
|
};
|
|
_class_646422.prototype.xor = xor_64666;
|
|
_class_646422.prototype.or = or_64667;
|
|
_class_646422.prototype.and = and_64668;
|
|
_class_646422.prototype.nand = nand_64669;
|
|
_class_646422.prototype.requiredKeys = requiredKeys;
|
|
_class_646422.prototype.optionalKeys = optionalKeys;
|
|
_class_646422.prototype.rename = rename;
|
|
_class_646422.prototype.applyFunctionToChildren = applyFunctionToChildren_64673;
|
|
_class_646422.prototype._dependency = _dependency;
|
|
_class_646422.prototype.describe = describe_64675;
|
|
_class_646422.prototype.assert = assert_64676;
|
|
_class_646422.prototype.type = type_64678;
|
|
_class_646422.prototype.ref = function() {
|
|
return this._test('ref', null, _fun64681);
|
|
};
|
|
return _class_646422;
|
|
function _class_64642() { // fn#64642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:100814, offset: 0x01baf6c2, size: 211 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
var _inner;
|
|
const value = this;
|
|
if (value instanceof _class_64642) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'object';
|
|
_inner = r0._inner;
|
|
_inner.children = null;
|
|
_inner = r0._inner;
|
|
_inner.renames = [];
|
|
_inner = r0._inner;
|
|
_inner.dependencies = [];
|
|
_inner = r0._inner;
|
|
_inner.patterns = [];
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function _base_64643(a0, a1, a2) { // fn#64643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:101334, offset: 0x01baf795, size: 2421 bytes, params: 4, frame: 46
|
|
var environment;
|
|
var r0;
|
|
var r12;
|
|
var r4;
|
|
var r2;
|
|
var r11;
|
|
var r9;
|
|
var r13;
|
|
var r14;
|
|
var r21;
|
|
var r18;
|
|
var r16;
|
|
var r5;
|
|
var r23;
|
|
var r17;
|
|
var r10;
|
|
var r15;
|
|
var r19;
|
|
var convert;
|
|
var value3;
|
|
var binding;
|
|
var safeParse;
|
|
var value4;
|
|
var value6;
|
|
var value8;
|
|
var value9;
|
|
var Array;
|
|
var isArray;
|
|
var _inner;
|
|
var renames;
|
|
var length;
|
|
var dependencies;
|
|
var children;
|
|
var patterns;
|
|
var _base_64643Target2;
|
|
var clone;
|
|
var prototype;
|
|
var Object;
|
|
var create;
|
|
var Object2;
|
|
var getPrototypeOf;
|
|
var keys;
|
|
var value10;
|
|
var property;
|
|
var value11;
|
|
var object;
|
|
var options;
|
|
var ignoreUndefined;
|
|
var from;
|
|
var multiple;
|
|
var to;
|
|
var push;
|
|
var createError;
|
|
var abortEarly;
|
|
var hasOwnProperty;
|
|
var call;
|
|
var override;
|
|
var alias;
|
|
var value12;
|
|
var value13;
|
|
var mapToObject;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var key;
|
|
var property2;
|
|
var object4;
|
|
var path;
|
|
var reference;
|
|
var schema;
|
|
var _validate;
|
|
var value17;
|
|
var errors;
|
|
var _getLabel;
|
|
var strip;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var object6;
|
|
var value25;
|
|
var property3;
|
|
var property4;
|
|
var regex;
|
|
var test;
|
|
var rule;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var stripUnknown;
|
|
var skipFunctions;
|
|
var value32;
|
|
var value33;
|
|
var objects;
|
|
var value34;
|
|
var value35;
|
|
var value36;
|
|
var allowUnknown;
|
|
var value37;
|
|
var value38;
|
|
var value39;
|
|
var value40;
|
|
var path2;
|
|
var value41;
|
|
var value42;
|
|
var type;
|
|
var property5;
|
|
var property6;
|
|
var peers;
|
|
var object8;
|
|
var Err;
|
|
let value = a0;
|
|
var env0_0;
|
|
var env0_1;
|
|
const items2 = [];
|
|
const _base_64643Finish2 = _base_64643Finish;
|
|
const value2 = typeof value === 'string';
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
convert = a2.convert;
|
|
r0 = convert;
|
|
break reducibleJoin2;
|
|
}
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
value3 = environment.__proto__;
|
|
binding = env1_7;
|
|
safeParse = binding.safeParse;
|
|
value4 = Reflect.apply(safeParse, binding, [value]);
|
|
env0_0 = value4;
|
|
r12 = value4;
|
|
break reducibleJoin4;
|
|
}
|
|
r12 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
let _flags = this._flags;
|
|
const func = _flags.func;
|
|
const value5 = 'object';
|
|
reducibleJoin6: while (true) {
|
|
if (func) {
|
|
value6 = 'function';
|
|
r4 = value6;
|
|
break reducibleJoin6;
|
|
}
|
|
r4 = value5;
|
|
break reducibleJoin6;
|
|
}
|
|
if (r12) {
|
|
reducibleJoin9: while (true) {
|
|
if (r12 === undefined) {
|
|
r2 = 'undefined';
|
|
break reducibleJoin9;
|
|
}
|
|
value8 = environment.__proto__;
|
|
value9 = env1_0(r12);
|
|
r2 = value9;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin110: while (true) {
|
|
if (r2 !== r4) {
|
|
break reducibleJoin110;
|
|
}
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (!Reflect.apply(isArray, Array, [r12])) {
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
length = renames.length;
|
|
if (!length) {
|
|
_inner = this._inner;
|
|
dependencies = _inner.dependencies;
|
|
length = dependencies.length;
|
|
reducibleJoin16: while (true) {
|
|
if (length) {
|
|
break reducibleJoin16;
|
|
}
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
if (children) {
|
|
break reducibleJoin16;
|
|
}
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
if (!length) {
|
|
env0_1 = r12;
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin16;
|
|
}
|
|
}
|
|
if (value === r12) {
|
|
if (value5 === r4) {
|
|
Object = global.Object;
|
|
create = Object.create;
|
|
Object2 = global.Object;
|
|
getPrototypeOf = Object2.getPrototypeOf;
|
|
value = Reflect.apply(create, Object, [Reflect.apply(getPrototypeOf, Object2, [r12])]);
|
|
env0_1 = value;
|
|
r11 = value;
|
|
} else {
|
|
_base_64643Target2 = _base_64643Target;
|
|
env0_1 = _base_64643Target2;
|
|
value = environment.__proto__;
|
|
binding = env1_1;
|
|
clone = binding.clone;
|
|
prototype = r12.prototype;
|
|
_base_64643Target2.prototype = Reflect.apply(clone, binding, [prototype]);
|
|
r11 = _base_64643Target2;
|
|
}
|
|
Object = global.Object;
|
|
value = Object.keys(r12);
|
|
length = value.length;
|
|
value10 = 0;
|
|
if (value10 < length) {
|
|
r9 = value10;
|
|
reducibleLoop22: while (true) {
|
|
property = value[r9];
|
|
r11[property] = r12[value[r9]];
|
|
value11 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = value.length;
|
|
if (value11 < length) {
|
|
r9 = value11;
|
|
continue reducibleLoop22;
|
|
}
|
|
r13 = r11;
|
|
break reducibleLoop22;
|
|
}
|
|
} else {
|
|
r13 = r11;
|
|
}
|
|
} else {
|
|
env0_1 = r12;
|
|
r13 = r12;
|
|
}
|
|
object = {};
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
length = renames.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r9 = value;
|
|
reducibleLoop24: while (true) {
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
property = renames[r9];
|
|
options = property.options;
|
|
ignoreUndefined = options.ignoreUndefined;
|
|
if (ignoreUndefined) {
|
|
from = property.from;
|
|
reducibleJoin26: while (true) {
|
|
if (r13[from] === undefined) {
|
|
value12 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
length = renames.length;
|
|
if (value12 < length) {
|
|
r9 = value12;
|
|
continue reducibleLoop24;
|
|
}
|
|
break reducibleLoop24;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
}
|
|
options = property.options;
|
|
multiple = options.multiple;
|
|
if (!multiple) {
|
|
to = property.to;
|
|
reducibleJoin30: while (true) {
|
|
if (object[to]) {
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
from = property.from;
|
|
to = property.to;
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this,
|
|
['object.rename.multiple',
|
|
{from: from,
|
|
to: to},
|
|
a1,
|
|
a2])]);
|
|
abortEarly = a2.abortEarly;
|
|
if (abortEarly) {
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
call = hasOwnProperty.call;
|
|
to = property.to;
|
|
if (Reflect.apply(call, hasOwnProperty, [r13, to])) {
|
|
override = property.options.override;
|
|
reducibleJoin35: while (true) {
|
|
if (override) {
|
|
break reducibleJoin35;
|
|
}
|
|
to = property.to;
|
|
if (object[to]) {
|
|
break reducibleJoin35;
|
|
}
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
from = property.from;
|
|
to = property.to;
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this, ['object.rename.override',
|
|
{from: from,
|
|
to: to},
|
|
a1,
|
|
a2])]);
|
|
abortEarly = a2.abortEarly;
|
|
if (abortEarly) {
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin35;
|
|
}
|
|
}
|
|
from = property.from;
|
|
if (r13[from] === undefined) {
|
|
delete r13[property.to];
|
|
} else {
|
|
to = property.to;
|
|
from = property.from;
|
|
r13[to] = r13[from];
|
|
}
|
|
to = property.to;
|
|
object[to] = true;
|
|
options = property.options;
|
|
alias = options.alias;
|
|
reducibleJoin40: while (true) {
|
|
if (alias) {
|
|
break reducibleJoin40;
|
|
}
|
|
from = property.from;
|
|
delete r13[from];
|
|
break reducibleJoin40;
|
|
}
|
|
value12 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
length = renames.length;
|
|
if (value12 < length) {
|
|
r9 = value12;
|
|
continue reducibleLoop24;
|
|
}
|
|
break reducibleLoop24;
|
|
}
|
|
}
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
if (!children) {
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
reducibleJoin45: while (true) {
|
|
if (length) {
|
|
break reducibleJoin45;
|
|
}
|
|
_inner = this._inner;
|
|
dependencies = _inner.dependencies;
|
|
length = dependencies.length;
|
|
if (!length) {
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin45;
|
|
}
|
|
}
|
|
value13 = environment.__proto__;
|
|
binding = env1_1;
|
|
mapToObject = binding.mapToObject;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value14 = Reflect.apply(mapToObject, binding, [Reflect.apply(keys, Object, [r13])]);
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
if (children) {
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
value15 = '.';
|
|
value16 = '';
|
|
if (value < length) {
|
|
r14 = value;
|
|
reducibleLoop47: while (true) {
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
property = children[r14];
|
|
key = property.key;
|
|
property2 = r13[key];
|
|
delete value14[key];
|
|
object4 = {key: key};
|
|
path = a1.path;
|
|
r21 = path || value16;
|
|
path = a1.path;
|
|
reducibleJoin50: while (true) {
|
|
if (path) {
|
|
if (key) {
|
|
r18 = value15;
|
|
break reducibleJoin50;
|
|
}
|
|
r18 = value16;
|
|
break reducibleJoin50;
|
|
}
|
|
r18 = value16;
|
|
break reducibleJoin50;
|
|
}
|
|
object4.path = r21 + r18 + key;
|
|
object4.parent = r13;
|
|
reference = a1.reference;
|
|
object4.reference = reference;
|
|
schema = property.schema;
|
|
_validate = schema._validate;
|
|
value17 = Reflect.apply(_validate, schema, [property2, object4, a2]);
|
|
errors = value17.errors;
|
|
if (errors) {
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
schema = property.schema;
|
|
_getLabel = schema._getLabel;
|
|
errors = value17.errors;
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this, ['object.child',
|
|
{key: key,
|
|
child: Reflect.apply(_getLabel, schema, [key]), reason: errors}, object4, a2])]);
|
|
abortEarly = a2.abortEarly;
|
|
reducibleJoin52: while (true) {
|
|
if (abortEarly) {
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin52;
|
|
}
|
|
}
|
|
schema = property.schema;
|
|
_flags = schema._flags;
|
|
strip = _flags.strip;
|
|
reducibleJoin58: while (true) {
|
|
reducibleJoin57: while (true) {
|
|
if (strip) {
|
|
break reducibleJoin57;
|
|
}
|
|
value18 = value17.value;
|
|
if (value18 === undefined) {
|
|
value19 = value17.value;
|
|
if (value19 !== property2) {
|
|
break reducibleJoin57;
|
|
}
|
|
}
|
|
value20 = value17.value;
|
|
if (value20 === undefined) {
|
|
break reducibleJoin58;
|
|
}
|
|
value21 = value17.value;
|
|
r13[key] = value21;
|
|
break reducibleJoin58;
|
|
}
|
|
delete r13[key];
|
|
break reducibleJoin58;
|
|
}
|
|
value22 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
if (value22 < length) {
|
|
r14 = value22;
|
|
continue reducibleLoop47;
|
|
}
|
|
break reducibleLoop47;
|
|
}
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value23 = Reflect.apply(keys, Object, [value14]);
|
|
length = value23.length;
|
|
if (length) {
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
reducibleJoin73: while (true) {
|
|
if (length) {
|
|
length = value23.length;
|
|
value24 = '';
|
|
if (value < length) {
|
|
r16 = value;
|
|
reducibleLoop62: while (true) {
|
|
property = value23[r16];
|
|
object6 = {key: property};
|
|
path = a1.path;
|
|
reducibleJoin64: while (true) {
|
|
if (path) {
|
|
path = a1.path;
|
|
value25 = path + '.';
|
|
r5 = value25;
|
|
break reducibleJoin64;
|
|
}
|
|
r5 = value24;
|
|
break reducibleJoin64;
|
|
}
|
|
object6.path = r5 + property;
|
|
object6.parent = r13;
|
|
reference = a1.reference;
|
|
object6.reference = reference;
|
|
property3 = r13[property];
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
if (value < length) {
|
|
r23 = value;
|
|
reducibleLoop65: while (true) {
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
property4 = patterns[r23];
|
|
regex = property4.regex;
|
|
test = regex.test;
|
|
if (Reflect.apply(test, regex, [property])) {
|
|
delete value14[property];
|
|
rule = property4.rule;
|
|
_validate = rule._validate;
|
|
value26 = Reflect.apply(_validate, rule, [property3, object6, a2]);
|
|
errors = value26.errors;
|
|
reducibleJoin70: while (true) {
|
|
reducibleJoin68: while (true) {
|
|
if (errors) {
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
rule = property4.rule;
|
|
_getLabel = rule._getLabel;
|
|
errors = value26.errors;
|
|
Reflect.apply(push, items2, [Reflect.apply(createError,
|
|
this,
|
|
['object.child',
|
|
{key: property,
|
|
child: Reflect.apply(_getLabel, rule, [property]),
|
|
reason: errors},
|
|
object6,
|
|
a2])]);
|
|
abortEarly = a2.abortEarly;
|
|
if (abortEarly) {
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin68;
|
|
}
|
|
break reducibleJoin68;
|
|
}
|
|
value27 = value26.value;
|
|
if (value27 === undefined) {
|
|
break reducibleJoin70;
|
|
}
|
|
value28 = value26.value;
|
|
r13[property] = value28;
|
|
break reducibleJoin70;
|
|
}
|
|
}
|
|
value29 = typeof r23 === 'bigint' ? r23 + 1n : +r23 + 1;
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
if (value29 < length) {
|
|
r23 = value29;
|
|
continue reducibleLoop65;
|
|
}
|
|
break reducibleLoop65;
|
|
}
|
|
}
|
|
value30 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
length = value23.length;
|
|
if (value30 < length) {
|
|
r16 = value30;
|
|
continue reducibleLoop62;
|
|
}
|
|
break reducibleLoop62;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value31 = Reflect.apply(keys, Object, [value14]);
|
|
r17 = value31;
|
|
break reducibleJoin73;
|
|
}
|
|
r17 = value23;
|
|
break reducibleJoin73;
|
|
}
|
|
} else {
|
|
r17 = value23;
|
|
}
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
reducibleJoin97: while (true) {
|
|
reducibleJoin75: while (true) {
|
|
if (children) {
|
|
break reducibleJoin75;
|
|
}
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
if (length) {
|
|
break reducibleJoin75;
|
|
}
|
|
break reducibleJoin97;
|
|
}
|
|
length = r17.length;
|
|
if (!length) {
|
|
break reducibleJoin97;
|
|
}
|
|
stripUnknown = a2.stripUnknown;
|
|
reducibleJoin89: while (true) {
|
|
reducibleJoin88: while (true) {
|
|
if (stripUnknown) {
|
|
stripUnknown = a2.stripUnknown;
|
|
value32 = !!stripUnknown;
|
|
reducibleJoin82: while (true) {
|
|
if (stripUnknown) {
|
|
stripUnknown = a2.stripUnknown;
|
|
value33 = stripUnknown === true;
|
|
reducibleJoin81: while (true) {
|
|
if (value33) {
|
|
r5 = value33;
|
|
break reducibleJoin81;
|
|
}
|
|
stripUnknown = a2.stripUnknown;
|
|
objects = stripUnknown.objects;
|
|
value34 = !!objects;
|
|
r5 = value34;
|
|
break reducibleJoin81;
|
|
}
|
|
r16 = r5;
|
|
break reducibleJoin82;
|
|
}
|
|
r16 = value32;
|
|
break reducibleJoin82;
|
|
}
|
|
length = r17.length;
|
|
if (!(value < length)) {
|
|
break reducibleJoin88;
|
|
}
|
|
r10 = value;
|
|
reducibleLoop83: while (true) {
|
|
property = r17[r10];
|
|
if (r16) {
|
|
delete r13[property];
|
|
delete value14[property];
|
|
} else {
|
|
reducibleJoin87: while (true) {
|
|
if (typeof r13[property] !== 'function') {
|
|
break reducibleJoin87;
|
|
}
|
|
delete value14[property];
|
|
break reducibleJoin87;
|
|
}
|
|
}
|
|
value35 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
length = r17.length;
|
|
if (value35 < length) {
|
|
r10 = value35;
|
|
continue reducibleLoop83;
|
|
}
|
|
break reducibleJoin88;
|
|
}
|
|
} else {
|
|
skipFunctions = a2.skipFunctions;
|
|
if (!skipFunctions) {
|
|
r15 = r17;
|
|
break reducibleJoin89;
|
|
}
|
|
stripUnknown = a2.stripUnknown;
|
|
value32 = !!stripUnknown;
|
|
reducibleJoin82: while (true) {
|
|
if (stripUnknown) {
|
|
stripUnknown = a2.stripUnknown;
|
|
value33 = stripUnknown === true;
|
|
reducibleJoin81: while (true) {
|
|
if (value33) {
|
|
r5 = value33;
|
|
break reducibleJoin81;
|
|
}
|
|
stripUnknown = a2.stripUnknown;
|
|
objects = stripUnknown.objects;
|
|
value34 = !!objects;
|
|
r5 = value34;
|
|
break reducibleJoin81;
|
|
}
|
|
r16 = r5;
|
|
break reducibleJoin82;
|
|
}
|
|
r16 = value32;
|
|
break reducibleJoin82;
|
|
}
|
|
length = r17.length;
|
|
if (!(value < length)) {
|
|
break reducibleJoin88;
|
|
}
|
|
r10 = value;
|
|
reducibleLoop83: while (true) {
|
|
property = r17[r10];
|
|
if (r16) {
|
|
delete r13[property];
|
|
delete value14[property];
|
|
} else {
|
|
reducibleJoin87: while (true) {
|
|
if (typeof r13[property] !== 'function') {
|
|
break reducibleJoin87;
|
|
}
|
|
delete value14[property];
|
|
break reducibleJoin87;
|
|
}
|
|
}
|
|
value35 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
|
|
length = r17.length;
|
|
if (value35 < length) {
|
|
r10 = value35;
|
|
continue reducibleLoop83;
|
|
}
|
|
break reducibleJoin88;
|
|
}
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value36 = Reflect.apply(keys, Object, [value14]);
|
|
r15 = value36;
|
|
break reducibleJoin89;
|
|
}
|
|
length = r15.length;
|
|
if (!length) {
|
|
break reducibleJoin97;
|
|
}
|
|
_flags = this._flags;
|
|
allowUnknown = _flags.allowUnknown;
|
|
if (allowUnknown !== undefined) {
|
|
_flags = this._flags;
|
|
allowUnknown = _flags.allowUnknown;
|
|
value38 = !allowUnknown;
|
|
r2 = value38;
|
|
} else {
|
|
allowUnknown = a2.allowUnknown;
|
|
value37 = !allowUnknown;
|
|
r2 = value37;
|
|
}
|
|
if (!r2) {
|
|
break reducibleJoin97;
|
|
}
|
|
length = r15.length;
|
|
value39 = '.';
|
|
value40 = '';
|
|
if (!(value < length)) {
|
|
break reducibleJoin97;
|
|
}
|
|
r5 = value;
|
|
reducibleLoop95: while (true) {
|
|
property = r15[r5];
|
|
push = items2.push;
|
|
createError = this.createError;
|
|
path = a1.path;
|
|
path2 = a1.path;
|
|
r19 = path2 ? value39 : value40;
|
|
Reflect.apply(push, items2, [Reflect.apply(createError, this, ['object.allowUnknown',
|
|
{child: property},
|
|
{key: property, path: path + r19 + property}, a2])]);
|
|
value41 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = r15.length;
|
|
if (value41 < length) {
|
|
r5 = value41;
|
|
continue reducibleLoop95;
|
|
}
|
|
break reducibleJoin97;
|
|
}
|
|
break reducibleJoin97;
|
|
}
|
|
_inner = this._inner;
|
|
dependencies = _inner.dependencies;
|
|
length = dependencies.length;
|
|
value42 = '';
|
|
if (value < length) {
|
|
r12 = value;
|
|
reducibleLoop98: while (true) {
|
|
_inner = this._inner;
|
|
dependencies = _inner.dependencies;
|
|
property = dependencies[r12];
|
|
binding = env1_7;
|
|
type = property.type;
|
|
property5 = binding[type];
|
|
call = property5.call;
|
|
key = property.key;
|
|
value = key !== null;
|
|
reducibleJoin100: while (true) {
|
|
if (value) {
|
|
key = property.key;
|
|
property6 = r13[key];
|
|
r15 = property6;
|
|
break reducibleJoin100;
|
|
}
|
|
r15 = value;
|
|
break reducibleJoin100;
|
|
}
|
|
peers = property.peers;
|
|
object8 = {};
|
|
key = property.key;
|
|
object8.key = key;
|
|
path = a1.path;
|
|
r19 = path || value42;
|
|
key = property.key;
|
|
reducibleJoin103: while (true) {
|
|
if (key) {
|
|
key = property.key;
|
|
value = '.' + key;
|
|
r18 = value;
|
|
break reducibleJoin103;
|
|
}
|
|
r18 = value42;
|
|
break reducibleJoin103;
|
|
}
|
|
object8.path = r19 + r18;
|
|
value = Reflect.apply(call, property5, [this, r15, peers, r13, object8, a2]);
|
|
Err = env1_4.Err;
|
|
if (value instanceof Err) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value]);
|
|
abortEarly = a2.abortEarly;
|
|
reducibleJoin105: while (true) {
|
|
if (abortEarly) {
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin105;
|
|
}
|
|
}
|
|
value = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
|
|
_inner = this._inner;
|
|
dependencies = _inner.dependencies;
|
|
length = dependencies.length;
|
|
if (!(value < length)) {
|
|
return _base_64643Finish2();
|
|
}
|
|
r12 = value;
|
|
continue reducibleLoop98;
|
|
}
|
|
}
|
|
return _base_64643Finish2();
|
|
}
|
|
break reducibleJoin110;
|
|
}
|
|
}
|
|
items2.push(this.createError(r4 + '.base', null, a1, a2));
|
|
return _base_64643Finish2();
|
|
function _base_64643Finish() { // fn#64644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:101371, owner: _base_64643.finish, offset: 0x01bb010a, size: 38 bytes, params: 1, frame: 4
|
|
return {value: _base_64643Target, errors: env0_2.length ? env0_2 : null};
|
|
}
|
|
|
|
function _base_64643Target() { // fn#64645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:101837, owner: _base_64643.target, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function keys_64647(a0) { // fn#64647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:104540, offset: 0x01bb014d, size: 579 bytes, params: 2, frame: 26
|
|
var r11;
|
|
var r9;
|
|
var _inner;
|
|
var value9;
|
|
var length;
|
|
var binding2;
|
|
var children;
|
|
var value13;
|
|
var property;
|
|
var indexOf;
|
|
var key;
|
|
var add;
|
|
var _refs;
|
|
var value14;
|
|
var value15;
|
|
var property2;
|
|
var value16;
|
|
var value17;
|
|
var error;
|
|
var hasOwnProperty;
|
|
var path;
|
|
let value = a0;
|
|
let binding = env1_1;
|
|
binding.assert(value == null || (value === undefined ? 'undefined' : env1_0(value)) === 'object',
|
|
'Object schema must be a valid object');
|
|
binding = env1_1;
|
|
binding.assert(!(value && value instanceof env1_3), 'Object schema cannot be a joi schema');
|
|
const value8 = this.clone();
|
|
if (value) {
|
|
value9 = global.Object.keys(value);
|
|
length = value9.length;
|
|
if (length) {
|
|
binding = env1_2;
|
|
binding2 = new binding();
|
|
_inner = value8._inner;
|
|
children = _inner.children;
|
|
if (children) {
|
|
_inner = value8._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
value13 = 0;
|
|
if (value13 < length) {
|
|
r11 = value13;
|
|
while (true) {
|
|
_inner = value8._inner;
|
|
children = _inner.children;
|
|
property = children[r11];
|
|
indexOf = value9.indexOf;
|
|
key = property.key;
|
|
if (Reflect.apply(indexOf, value9, [key]) === -1) {
|
|
add = binding2.add;
|
|
_refs = property._refs;
|
|
key = property.key;
|
|
Reflect.apply(add, binding2, [property, {after: _refs, group: key}]);
|
|
}
|
|
value14 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
|
|
_inner = value8._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
if (value14 < length) {
|
|
r11 = value14;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
value15 = 0;
|
|
length = value9.length;
|
|
if (value15 < length) {
|
|
r9 = value15;
|
|
while (true) {
|
|
property = value9[r9];
|
|
property2 = value[property];
|
|
try {
|
|
binding = env1_5;
|
|
value16 = binding.schema(property2);
|
|
add = binding2.add;
|
|
_refs = value16._refs;
|
|
Reflect.apply(add, binding2, [{key: property, schema: value16}, {after: _refs,
|
|
group: property}]);
|
|
} catch (error) {
|
|
hasOwnProperty = error.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, error, ['path'])) {
|
|
value = property + '.';
|
|
path = error.path;
|
|
error.path = value + path;
|
|
} else {
|
|
error.path = property;
|
|
}
|
|
throw error;
|
|
}
|
|
value17 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = value9.length;
|
|
if (value17 < length) {
|
|
r9 = value17;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
value8._inner.children = binding2.nodes;
|
|
return value8;
|
|
}
|
|
_inner = value8._inner;
|
|
_inner.children = binding2.nodes;
|
|
return value8;
|
|
}
|
|
_inner = value8._inner;
|
|
_inner.children = [];
|
|
} else {
|
|
value8._inner.children = null;
|
|
}
|
|
return value8;
|
|
}
|
|
|
|
function length(a0) { // fn#64649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:105362, offset: 0x01bb03b4, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(env1_1.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('length', a0, _fun64650);
|
|
function _fun64650(a0, a1, a2) { // fn#64650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:105477, offset: 0x01bb0409, size: 80 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const Object = global.Object;
|
|
return Object.keys(value).length === env0_0 ? value : this.createError('object.length', {limit: env0_0}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function arity(a0) { // fn#64651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:105603, offset: 0x01bb0459, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(env1_1.isInteger(a0) && a0 >= 0, 'n must be a positive integer');
|
|
return this._test('arity', a0, _fun64652);
|
|
function _fun64652(a0, a1, a2) { // fn#64652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:105712, offset: 0x01bb04ae, size: 63 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length === env0_0 ? value : this.createError('function.arity', {n: env0_0}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function minArity(a0) { // fn#64653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:105825, offset: 0x01bb04ed, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(env1_1.isInteger(a0) && a0 > 0, 'n must be a strict positive integer');
|
|
return this._test('minArity', a0, _fun64654);
|
|
function _fun64654(a0, a1, a2) { // fn#64654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:105946, offset: 0x01bb0542, size: 63 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length >= env0_0 ? value : this.createError('function.minArity', {n: env0_0}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function maxArity(a0) { // fn#64655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:106061, offset: 0x01bb0581, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(env1_1.isInteger(a0) && a0 >= 0, 'n must be a positive integer');
|
|
return this._test('maxArity', a0, _fun64656);
|
|
function _fun64656(a0, a1, a2) { // fn#64656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:106176, offset: 0x01bb05d6, size: 63 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length <= env0_0 ? value : this.createError('function.maxArity', {n: env0_0}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function min_64657(a0) { // fn#64657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:106286, offset: 0x01bb0615, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(env1_1.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('min', a0, _fun64658);
|
|
function _fun64658(a0, a1, a2) { // fn#64658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:106395, offset: 0x01bb066a, size: 80 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const Object = global.Object;
|
|
return Object.keys(value).length >= env0_0 ? value : this.createError('object.min', {limit: env0_0}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function max_64659(a0) { // fn#64659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:106515, offset: 0x01bb06ba, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(env1_1.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('max', a0, _fun64660);
|
|
function _fun64660(a0, a1, a2) { // fn#64660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:106624, offset: 0x01bb070f, size: 80 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const Object = global.Object;
|
|
return Object.keys(value).length <= env0_0 ? value : this.createError('object.max', {limit: env0_0}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function pattern_64661(a0, a1) { // fn#64661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:106748, offset: 0x01bb075f, size: 261 bytes, params: 3, frame: 21
|
|
var error;
|
|
var hasOwnProperty;
|
|
var message;
|
|
var path;
|
|
let value = environment.__proto__;
|
|
let binding = env1_1;
|
|
const assert = binding.assert;
|
|
let RegExp = global.RegExp;
|
|
Reflect.apply(assert, binding, [a0 instanceof RegExp, 'Invalid regular expression']);
|
|
binding = env1_1;
|
|
const value2 = undefined;
|
|
binding.assert(value2 !== a1, 'Invalid rule');
|
|
RegExp = global.RegExp;
|
|
const regExp = new RegExp(a0.source, a0.ignoreCase ? 'i' : value2);
|
|
try {
|
|
binding = env1_5;
|
|
value = binding.schema(a1);
|
|
} catch (error) {
|
|
hasOwnProperty = error.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, error, ['path'])) {
|
|
message = error.message;
|
|
value = message + '(';
|
|
path = error.path;
|
|
error.message = value + path + ')';
|
|
}
|
|
throw error;
|
|
}
|
|
const value6 = this.clone();
|
|
const patterns = value6._inner.patterns;
|
|
patterns.push({regex: regExp, rule: value});
|
|
return value6;
|
|
}
|
|
|
|
function schema_64662() { // fn#64662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:107104, offset: 0x01bb0864, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('schema', null, _fun64663);
|
|
function _fun64663(a0, a1, a2) { // fn#64663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:107155, offset: 0x01bb0883, size: 49 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value instanceof env2_3 ? value : this.createError('object.schema', null, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function xor_64666() { // fn#64666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:107429, offset: 0x01bb08ec, size: 74 bytes, params: 1, frame: 17
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
return this._dependency('xor', null, Reflect.apply(flatten, binding, [slice.call(arguments)]));
|
|
}
|
|
|
|
function or_64667() { // fn#64667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:107558, offset: 0x01bb0936, size: 74 bytes, params: 1, frame: 17
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
return this._dependency('or', null, Reflect.apply(flatten, binding, [slice.call(arguments)]));
|
|
}
|
|
|
|
function and_64668() { // fn#64668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:107686, offset: 0x01bb0980, size: 74 bytes, params: 1, frame: 17
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
return this._dependency('and', null, Reflect.apply(flatten, binding, [slice.call(arguments)]));
|
|
}
|
|
|
|
function nand_64669() { // fn#64669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:107817, offset: 0x01bb09ca, size: 74 bytes, params: 1, frame: 17
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
return this._dependency('nand', null, Reflect.apply(flatten, binding, [slice.call(arguments)]));
|
|
}
|
|
|
|
function requiredKeys(a0) { // fn#64670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:107958, offset: 0x01bb0a14, size: 71 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
return this.applyFunctionToChildren(Reflect.apply(flatten, binding, [slice.call(arguments)]), 'required');
|
|
}
|
|
|
|
function optionalKeys(a0) { // fn#64671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:108115, offset: 0x01bb0a5b, size: 71 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
return this.applyFunctionToChildren(Reflect.apply(flatten, binding, [slice.call(arguments)]), 'optional');
|
|
}
|
|
|
|
function rename(a0, a1, a2) { // fn#64672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:108266, offset: 0x01bb0aa2, size: 280 bytes, params: 4, frame: 20
|
|
var r3;
|
|
var r7;
|
|
var from;
|
|
var value4;
|
|
const value = a2;
|
|
let binding = env1_1;
|
|
binding.assert(typeof a0 === 'string', 'Rename missing the from argument');
|
|
env1_1.assert(typeof a1 === 'string', 'Rename missing the to argument');
|
|
env1_1.assert(a1 !== a0, 'Cannot rename key to same name:', a0);
|
|
let _inner = this._inner;
|
|
let renames = _inner.renames;
|
|
let length = renames.length;
|
|
const value3 = 0;
|
|
if (value3 < length) {
|
|
r3 = value3;
|
|
reducibleLoop1: while (true) {
|
|
binding = env1_1;
|
|
assert = binding.assert;
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
from = renames[r3].from;
|
|
Reflect.apply(assert, binding, [from !== a0, 'Cannot rename the same key multiple times']);
|
|
value4 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
length = renames.length;
|
|
if (value4 < length) {
|
|
r3 = value4;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value5 = this.clone();
|
|
renames = value5._inner.renames;
|
|
const push = renames.push;
|
|
binding = env1_1;
|
|
const applyToDefaults = binding.applyToDefaults;
|
|
const renameDefaults = env1_7.renameDefaults;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
r7 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
r7 = {};
|
|
break reducibleJoin4;
|
|
}
|
|
Reflect.apply(push, renames, [{from: a0, to: a1, options: Reflect.apply(applyToDefaults, binding, [renameDefaults,
|
|
r7])}]);
|
|
return value5;
|
|
}
|
|
|
|
function applyFunctionToChildren_64673(a0, a1, a2, a3) { // fn#64673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:108755, offset: 0x01bb0bba, size: 388 bytes, params: 5, frame: 26
|
|
var r0;
|
|
var r6;
|
|
var r4;
|
|
var property;
|
|
var value6;
|
|
var key;
|
|
var property2;
|
|
var _refs;
|
|
var schema;
|
|
var applyFunctionToChildren;
|
|
var value8;
|
|
let object = [];
|
|
let value = object.concat(a0);
|
|
let binding = env1_1;
|
|
let assert = binding.assert;
|
|
let length = value.length;
|
|
const value3 = 0;
|
|
Reflect.apply(assert, binding, [length > value3, 'expected at least one children']);
|
|
value = env1_7.groupChildren(value);
|
|
const value4 = '';
|
|
if (value4 in value) {
|
|
property = this[a1];
|
|
value6 = property.apply(this, a2);
|
|
delete value[''];
|
|
r0 = value6;
|
|
} else {
|
|
r0 = this.clone();
|
|
}
|
|
let _inner = r0._inner;
|
|
let children = _inner.children;
|
|
if (children) {
|
|
r6 = a3 ? a3 + '.' : value4;
|
|
_inner = r0._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
if (value3 < length) {
|
|
r4 = value3;
|
|
while (true) {
|
|
_inner = r0._inner;
|
|
children = _inner.children;
|
|
property = children[r4];
|
|
key = property.key;
|
|
property2 = value[key];
|
|
if (property2) {
|
|
children = r0._inner.children;
|
|
object = {};
|
|
key = property.key;
|
|
object.key = key;
|
|
_refs = property._refs;
|
|
object._refs = _refs;
|
|
schema = property.schema;
|
|
applyFunctionToChildren = schema.applyFunctionToChildren;
|
|
key = property.key;
|
|
object.schema = Reflect.apply(applyFunctionToChildren, schema, [property2, a1, a2, r6 + key]);
|
|
children[r4] = object;
|
|
key = property.key;
|
|
delete value[key];
|
|
}
|
|
value8 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
_inner = r0._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
if (value8 < length) {
|
|
r4 = value8;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const Object = global.Object;
|
|
value = Object.keys(value);
|
|
binding = env1_1;
|
|
assert = binding.assert;
|
|
length = value.length;
|
|
value = value.join(', ');
|
|
Reflect.apply(assert, binding, [value3 === length, 'unknown key(s)', value]);
|
|
return r0;
|
|
}
|
|
|
|
function _dependency(a0, a1, a2) { // fn#64674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:109315, offset: 0x01bb0d3e, size: 142 bytes, params: 4, frame: 20
|
|
var r7;
|
|
var binding;
|
|
var value4;
|
|
const value = [].concat(a2);
|
|
let length = value.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
for (r7 = value2; true; r7 = value4) {
|
|
binding = env1_1;
|
|
binding.assert(typeof value[r7] === 'string', a0, 'peers must be a string or array of strings');
|
|
value4 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
length = value.length;
|
|
if (!(value4 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const value5 = this.clone();
|
|
const dependencies = value5._inner.dependencies;
|
|
dependencies.push({type: a0, key: a1, peers: value});
|
|
return value5;
|
|
}
|
|
|
|
function describe_64675(a0) { // fn#64675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:109570, offset: 0x01bb0dcc, size: 612 bytes, params: 2, frame: 18
|
|
var r6;
|
|
var r3;
|
|
var r4;
|
|
var length;
|
|
var value3;
|
|
var property;
|
|
var arg;
|
|
var binding;
|
|
var value4;
|
|
var schema;
|
|
var ref;
|
|
var toString;
|
|
var value5;
|
|
var value6;
|
|
var key;
|
|
var value7;
|
|
var clone;
|
|
var value8;
|
|
var push;
|
|
var regex;
|
|
var rule;
|
|
var value9;
|
|
let describe = env1_3.prototype.describe;
|
|
const value2 = describe.call(this);
|
|
let rules = value2.rules;
|
|
reducibleJoin11: while (true) {
|
|
if (!rules) {
|
|
break reducibleJoin11;
|
|
}
|
|
rules = value2.rules;
|
|
length = rules.length;
|
|
value3 = 0;
|
|
if (!(value3 < length)) {
|
|
break reducibleJoin11;
|
|
}
|
|
r6 = value3;
|
|
reducibleLoop2: while (true) {
|
|
rules = value2.rules;
|
|
property = rules[r6];
|
|
arg = property.arg;
|
|
reducibleJoin4: while (true) {
|
|
if (arg) {
|
|
binding = env1_0;
|
|
arg = property.arg;
|
|
value4 = binding(arg) === 'object';
|
|
r3 = value4;
|
|
break reducibleJoin4;
|
|
}
|
|
r3 = arg;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r3) {
|
|
arg = property.arg;
|
|
schema = arg.schema;
|
|
r3 = schema;
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (r3) {
|
|
arg = property.arg;
|
|
ref = arg.ref;
|
|
r3 = ref;
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (r3) {
|
|
arg = property.arg;
|
|
schema = arg.schema;
|
|
describe = schema.describe;
|
|
arg = property.arg;
|
|
ref = arg.ref;
|
|
toString = ref.toString;
|
|
property.arg = {schema: Reflect.apply(describe, schema, []), ref: Reflect.apply(toString, ref, [])};
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
value5 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
rules = value2.rules;
|
|
length = rules.length;
|
|
if (value5 < length) {
|
|
r6 = value5;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
}
|
|
let _inner = this._inner;
|
|
let children = _inner.children;
|
|
reducibleJoin15: while (true) {
|
|
if (!children) {
|
|
break reducibleJoin15;
|
|
}
|
|
if (a0) {
|
|
break reducibleJoin15;
|
|
}
|
|
value2.children = {};
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
value6 = 0;
|
|
if (!(value6 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r4 = value6;
|
|
reducibleLoop14: while (true) {
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
property = children[r4];
|
|
children = value2.children;
|
|
key = property.key;
|
|
schema = property.schema;
|
|
describe = schema.describe;
|
|
children[key] = Reflect.apply(describe, schema, []);
|
|
value7 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
_inner = this._inner;
|
|
children = _inner.children;
|
|
length = children.length;
|
|
if (value7 < length) {
|
|
r4 = value7;
|
|
continue reducibleLoop14;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
let dependencies = this._inner.dependencies;
|
|
reducibleJoin17: while (true) {
|
|
if (dependencies.length) {
|
|
binding = env1_1;
|
|
clone = binding.clone;
|
|
_inner = this._inner;
|
|
dependencies = _inner.dependencies;
|
|
value2.dependencies = Reflect.apply(clone, binding, [dependencies]);
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
let patterns = this._inner.patterns;
|
|
length = patterns.length;
|
|
reducibleJoin20: while (true) {
|
|
if (!length) {
|
|
break reducibleJoin20;
|
|
}
|
|
value2.patterns = [];
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
value8 = 0;
|
|
if (!(value8 < length)) {
|
|
break reducibleJoin20;
|
|
}
|
|
r4 = value8;
|
|
reducibleLoop19: while (true) {
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
property = patterns[r4];
|
|
patterns = value2.patterns;
|
|
push = patterns.push;
|
|
regex = property.regex;
|
|
toString = regex.toString;
|
|
rule = property.rule;
|
|
describe = rule.describe;
|
|
Reflect.apply(push, patterns, [{regex: Reflect.apply(toString, regex, []), rule: Reflect.apply(describe,
|
|
rule,
|
|
[])}]);
|
|
value9 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
_inner = this._inner;
|
|
patterns = _inner.patterns;
|
|
length = patterns.length;
|
|
if (value9 < length) {
|
|
r4 = value9;
|
|
continue reducibleLoop19;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
}
|
|
let renames = this._inner.renames;
|
|
reducibleJoin22: while (true) {
|
|
if (renames.length > 0) {
|
|
binding = env1_1;
|
|
clone = binding.clone;
|
|
_inner = this._inner;
|
|
renames = _inner.renames;
|
|
value2.renames = Reflect.apply(clone, binding, [renames]);
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function assert_64676(a0, a1, a2) { // fn#64676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:110349, offset: 0x01bb1030, size: 307 bytes, params: 4, frame: 22
|
|
var path;
|
|
var error;
|
|
var hasOwnProperty;
|
|
var message;
|
|
let value = a2;
|
|
let env0_1 = a1;
|
|
let binding = env1_5;
|
|
const value3 = binding.ref(a0);
|
|
binding = env1_1;
|
|
binding.assert(value3.isContext || value3.depth > 1,
|
|
'Cannot use assertions for root level references - use direct key rules instead');
|
|
value = !value ? 'pass the assertion test' : value;
|
|
try {
|
|
binding = env1_5;
|
|
value = binding.schema(a1);
|
|
env0_1 = value;
|
|
} catch (error) {
|
|
hasOwnProperty = error.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, error, ['path'])) {
|
|
message = error.message;
|
|
value = message + '(';
|
|
path = error.path;
|
|
error.message = value + path + ')';
|
|
}
|
|
throw error;
|
|
}
|
|
const env0_3 = value3.path[value3.path.length - 1];
|
|
const env0_4 = value3.path.join('.');
|
|
return this._test('assert', {schema: value, ref: value3}, _fun64677);
|
|
function _fun64677(a0, a1, a2) { // fn#64677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:110720, offset: 0x01bb1163, size: 153 bytes, params: 4, frame: 19
|
|
var value3;
|
|
var value4;
|
|
if (require._validate(env0_0(a0), null, a2, a0).errors) {
|
|
value3 = environment.__proto__.__proto__;
|
|
value4 = env2_1.merge({}, a1);
|
|
value4.key = env0_3;
|
|
value4.path = env0_4;
|
|
return this.createError('object.assert', {ref: value4.path, message: importDefault}, value4, a2);
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function type_64678(a0, a1) { // fn#64678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:110914, offset: 0x01bb11fc, size: 100 bytes, params: 3, frame: 18
|
|
const value = a1;
|
|
const env0_0 = a0;
|
|
env1_1.assert(typeof a0 === 'function', 'type must be a constructor function');
|
|
return this._test('type', {name: value || a0.name, ctor: a0}, _fun64679);
|
|
function _fun64679(a0, a1, a2) { // fn#64679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:111060, offset: 0x01bb1260, size: 65 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value instanceof env0_0 ? value : this.createError('object.type', {type: env0_1.name}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function ref_64680() { // fn#64680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:111175, offset: 0x01bb12a1, size: 31 bytes, params: 1, frame: 15
|
|
return this._test('ref', null, _fun64681);
|
|
function _fun64681(a0, a1, a2) { // fn#64681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:111220, offset: 0x01bb12c0, size: 56 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const binding = env2_6;
|
|
return binding.isRef(value) ? value : this.createError('function.ref', null, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function groupChildren(a0) { // fn#64683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:111450, offset: 0x01bb1317, size: 151 bytes, params: 2, frame: 23
|
|
var r2;
|
|
var r11;
|
|
var property;
|
|
var binding;
|
|
var split;
|
|
var property2;
|
|
var property3;
|
|
var push;
|
|
var substring;
|
|
var value3;
|
|
a0.sort();
|
|
const object = {};
|
|
let length = a0.length;
|
|
const value = 0;
|
|
if (value < length) {
|
|
r2 = value;
|
|
while (true) {
|
|
property = a0[r2];
|
|
binding = env0_1;
|
|
binding.assert(typeof property === 'string', 'children must be strings');
|
|
split = property.split;
|
|
property2 = Reflect.apply(split, property, ['.'])[value];
|
|
property3 = object[property2];
|
|
r11 = property3 || [];
|
|
object[property2] = r11;
|
|
push = r11.push;
|
|
substring = property.substring;
|
|
length = property2.length;
|
|
Reflect.apply(push, r11, [Reflect.apply(substring, property, [length + 1])]);
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a0.length;
|
|
if (value3 < length) {
|
|
r2 = value3;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function nand(a0, a1, a2, a3, a4) { // fn#64689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:112796, offset: 0x01bb16a9, size: 196 bytes, params: 6, frame: 22
|
|
var r2;
|
|
var r1;
|
|
var property;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
const items2 = [];
|
|
let length = a1.length;
|
|
const value = 0;
|
|
if (value < length) {
|
|
r2 = value;
|
|
while (true) {
|
|
property = a1[r2];
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
value2 = hasOwnProperty.call(a2, property);
|
|
if (value2) {
|
|
value3 = a2[property] !== undefined;
|
|
r1 = value3;
|
|
} else {
|
|
r1 = value2;
|
|
}
|
|
if (!r1) {
|
|
continue;
|
|
}
|
|
items2.push(property);
|
|
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a1.length;
|
|
if (value4 < length) {
|
|
r2 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
const value6 = env0_1.clone(a1);
|
|
return items2.length !== a1.length ? null : this.createError('object.nand', {main: value6.splice(value, 1)[value],
|
|
peers: value6}, a3, a4);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64690(a0, a1, a2) { // fn#64690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:113074, offset: 0x01bb176d, size: 124 bytes, params: 4, frame: 13
|
|
const env0_0 = a2(2);
|
|
const object = {};
|
|
const closure = function() {
|
|
this._items = [];
|
|
this.nodes = [];
|
|
};
|
|
object.Topo = closure;
|
|
a0.exports = closure;
|
|
let Topo = object.Topo;
|
|
Topo.prototype.add = add_64692;
|
|
Topo = object.Topo;
|
|
Topo.prototype.merge = merge_64694;
|
|
object.mergeSort = function(a0, a1) {
|
|
return a0.sort === a1.sort ? 0 : a0.sort < a1.sort ? -1 : 1;
|
|
};
|
|
Topo = object.Topo;
|
|
Topo.prototype._sort = _sort;
|
|
function add_64692(a0, a1) { // fn#64692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:113198, offset: 0x01bb1804, size: 366 bytes, params: 3, frame: 21
|
|
var r3;
|
|
let value = a1;
|
|
const env0_0 = this;
|
|
let items2 = [];
|
|
const concat = items2.concat;
|
|
const r1 = value || ({});
|
|
value = Reflect.apply(concat, items2, [r1.before || []]);
|
|
items2 = [];
|
|
const value2 = items2.concat(r1.after || []);
|
|
let group = r1.group;
|
|
group = !group ? '?' : group;
|
|
if (r1.sort) {
|
|
}
|
|
const binding = env0_0;
|
|
let assert = binding.assert;
|
|
Reflect.apply(assert, binding, [value.indexOf(group) === -1, 'Item cannot come before itself:', group]);
|
|
assert = binding.assert;
|
|
value = value.indexOf('?') === -1;
|
|
Reflect.apply(assert, binding, [value, 'Item cannot come before unassociated items']);
|
|
binding.assert(value2.indexOf(group) === -1, 'Item cannot come after itself:', group);
|
|
binding.assert(value2.indexOf('?') === -1, 'Item cannot come after unassociated items');
|
|
[].concat(a0).forEach(_fun64693);
|
|
value = this._sort();
|
|
assert = binding.assert;
|
|
value = '';
|
|
if (group === '?') {
|
|
r3 = value;
|
|
} else {
|
|
value = 'added into group ' + group;
|
|
r3 = value;
|
|
}
|
|
Reflect.apply(assert, binding, [!value, 'item', r3, 'created a dependencies error']);
|
|
return this.nodes;
|
|
function _fun64693(a0, a1) { // fn#64693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:113607, offset: 0x01bb1972, size: 89 bytes, params: 3, frame: 12
|
|
const binding = env0_0;
|
|
binding._items.push({seq: binding._items.length, sort: sort, before: env0_1, after: env0_2, group: group, node: a0});
|
|
}
|
|
|
|
}
|
|
|
|
function merge_64694(a0) { // fn#64694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:113853, offset: 0x01bb19cb, size: 268 bytes, params: 2, frame: 20
|
|
var r4;
|
|
var r7;
|
|
var r3;
|
|
var property;
|
|
var _items;
|
|
var binding;
|
|
var shallow;
|
|
var value4;
|
|
var push;
|
|
var value5;
|
|
var value6;
|
|
let value = [].concat(a0);
|
|
let length = value.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r4 = value2;
|
|
reducibleLoop1: while (true) {
|
|
property = value[r4];
|
|
reducibleJoin4: while (true) {
|
|
if (!property) {
|
|
break reducibleJoin4;
|
|
}
|
|
_items = property._items;
|
|
length = _items.length;
|
|
if (!(value2 < length)) {
|
|
break reducibleJoin4;
|
|
}
|
|
r7 = value2;
|
|
reducibleLoop3: while (true) {
|
|
binding = env0_0;
|
|
shallow = binding.shallow;
|
|
_items = property._items;
|
|
value4 = Reflect.apply(shallow, binding, [_items[r7]]);
|
|
_items = this._items;
|
|
push = _items.push;
|
|
Reflect.apply(push, _items, [value4]);
|
|
value5 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
_items = property._items;
|
|
length = _items.length;
|
|
if (value5 < length) {
|
|
r7 = value5;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
value6 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = value.length;
|
|
if (value6 < length) {
|
|
r4 = value6;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
_items = this._items;
|
|
_items.sort(env0_1.mergeSort);
|
|
length = this._items.length;
|
|
if (value2 < length) {
|
|
r3 = value2;
|
|
reducibleLoop6: while (true) {
|
|
_items = this._items;
|
|
_items[r3].seq = r3;
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
_items = this._items;
|
|
length = _items.length;
|
|
if (value < length) {
|
|
r3 = value;
|
|
continue reducibleLoop6;
|
|
}
|
|
break reducibleLoop6;
|
|
}
|
|
}
|
|
env0_0.assert(!this._sort(), 'merge created a dependencies error');
|
|
return this.nodes;
|
|
}
|
|
|
|
function _sort() { // fn#64696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:114279, offset: 0x01bb1b10, size: 1131 bytes, params: 1, frame: 38
|
|
var r2;
|
|
var r6;
|
|
var r5;
|
|
var r13;
|
|
var r9;
|
|
var r16;
|
|
var r14;
|
|
var r20;
|
|
var r12;
|
|
var r11;
|
|
var r23;
|
|
var r26;
|
|
var r27;
|
|
var r29;
|
|
var r24;
|
|
var r19;
|
|
var r7;
|
|
var property;
|
|
var seq;
|
|
var group;
|
|
var property2;
|
|
var property3;
|
|
var push;
|
|
var before;
|
|
var after;
|
|
var property4;
|
|
var concat;
|
|
var value5;
|
|
var value6;
|
|
var items3;
|
|
var value8;
|
|
var property5;
|
|
var property6;
|
|
var property7;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var property8;
|
|
var property9;
|
|
var value13;
|
|
var value14;
|
|
var property10;
|
|
var property11;
|
|
var property12;
|
|
var value16;
|
|
var value17;
|
|
var indexOf;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var toString;
|
|
var value21;
|
|
var value22;
|
|
var Error;
|
|
var error;
|
|
let object = {};
|
|
let Object = global.Object;
|
|
let value = null;
|
|
const value2 = Object.create(value);
|
|
Object = global.Object;
|
|
const value3 = Object.create(value);
|
|
let _items = this._items;
|
|
let length = _items.length;
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
r2 = value4;
|
|
reducibleLoop1: while (true) {
|
|
_items = this._items;
|
|
property = _items[r2];
|
|
seq = property.seq;
|
|
group = property.group;
|
|
property2 = value3[group];
|
|
reducibleJoin3: while (true) {
|
|
if (property2) {
|
|
r6 = property2;
|
|
break reducibleJoin3;
|
|
}
|
|
r6 = [];
|
|
break reducibleJoin3;
|
|
}
|
|
value3[group] = r6;
|
|
property3 = value3[group];
|
|
push = property3.push;
|
|
Reflect.apply(push, property3, [seq]);
|
|
before = property.before;
|
|
object[seq] = before;
|
|
after = property.after;
|
|
length = after.length;
|
|
if (value4 < length) {
|
|
r5 = value4;
|
|
reducibleLoop4: while (true) {
|
|
property = after[r5];
|
|
property4 = value2[after[r5]];
|
|
reducibleJoin6: while (true) {
|
|
if (property4) {
|
|
r13 = property4;
|
|
break reducibleJoin6;
|
|
}
|
|
r13 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
concat = r13.concat;
|
|
value2[property] = Reflect.apply(concat, r13, [seq]);
|
|
value5 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = after.length;
|
|
if (value5 < length) {
|
|
r5 = value5;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
_items = this._items;
|
|
length = _items.length;
|
|
if (value6 < length) {
|
|
r2 = value6;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
const value7 = Object.keys(object);
|
|
length = value7.length;
|
|
if (value4 < length) {
|
|
r9 = value4;
|
|
reducibleLoop9: while (true) {
|
|
property = value7[r9];
|
|
items3 = [];
|
|
Object = global.Object;
|
|
value8 = Object.keys(object[property]);
|
|
length = value8.length;
|
|
if (value4 < length) {
|
|
r16 = value4;
|
|
reducibleLoop10: while (true) {
|
|
property5 = object[property];
|
|
property6 = property5[value8[r16]];
|
|
property7 = value3[property6];
|
|
reducibleJoin12: while (true) {
|
|
if (property7) {
|
|
r14 = property7;
|
|
break reducibleJoin12;
|
|
}
|
|
r14 = [];
|
|
break reducibleJoin12;
|
|
}
|
|
value3[property6] = r14;
|
|
length = value3[property6].length;
|
|
if (value4 < length) {
|
|
r20 = value4;
|
|
reducibleLoop13: while (true) {
|
|
push = items3.push;
|
|
Reflect.apply(push, items3, [value3[property6][r20]]);
|
|
value9 = typeof r20 === 'bigint' ? r20 + 1n : +r20 + 1;
|
|
length = value3[property6].length;
|
|
if (value9 < length) {
|
|
r20 = value9;
|
|
continue reducibleLoop13;
|
|
}
|
|
break reducibleLoop13;
|
|
}
|
|
}
|
|
value10 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
length = value8.length;
|
|
if (value10 < length) {
|
|
r16 = value10;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleLoop10;
|
|
}
|
|
}
|
|
object[property] = items3;
|
|
value11 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = value7.length;
|
|
if (value11 < length) {
|
|
r9 = value11;
|
|
continue reducibleLoop9;
|
|
}
|
|
break reducibleLoop9;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
const value12 = Object.keys(value2);
|
|
length = value12.length;
|
|
if (value4 < length) {
|
|
r6 = value4;
|
|
reducibleLoop17: while (true) {
|
|
property = value12[r6];
|
|
reducibleJoin20: while (true) {
|
|
if (!value3[property]) {
|
|
break reducibleJoin20;
|
|
}
|
|
length = value3[property].length;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin20;
|
|
}
|
|
r12 = value4;
|
|
reducibleLoop19: while (true) {
|
|
property8 = value3[property][r12];
|
|
property9 = object[property8];
|
|
concat = property9.concat;
|
|
object[property8] = Reflect.apply(concat, property9, [value2[property]]);
|
|
value13 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
|
|
length = value3[property].length;
|
|
if (value13 < length) {
|
|
r12 = value13;
|
|
continue reducibleLoop19;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
}
|
|
value14 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value12.length;
|
|
if (value14 < length) {
|
|
r6 = value14;
|
|
continue reducibleLoop17;
|
|
}
|
|
break reducibleLoop17;
|
|
}
|
|
}
|
|
const object2 = {};
|
|
Object = global.Object;
|
|
const value15 = Object.keys(object);
|
|
length = value15.length;
|
|
if (value4 < length) {
|
|
r5 = value4;
|
|
reducibleLoop22: while (true) {
|
|
property = value15[r5];
|
|
property10 = object[property];
|
|
length = property10.length;
|
|
if (value4 < length) {
|
|
r9 = value4;
|
|
reducibleLoop23: while (true) {
|
|
property11 = property10[r9];
|
|
property12 = object2[property10[r9]];
|
|
reducibleJoin25: while (true) {
|
|
if (property12) {
|
|
r13 = property12;
|
|
break reducibleJoin25;
|
|
}
|
|
r13 = [];
|
|
break reducibleJoin25;
|
|
}
|
|
concat = r13.concat;
|
|
object2[property11] = Reflect.apply(concat, r13, [property]);
|
|
value16 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = property10.length;
|
|
if (value16 < length) {
|
|
r9 = value16;
|
|
continue reducibleLoop23;
|
|
}
|
|
break reducibleLoop23;
|
|
}
|
|
}
|
|
value17 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = value15.length;
|
|
if (value17 < length) {
|
|
r5 = value17;
|
|
continue reducibleLoop22;
|
|
}
|
|
break reducibleLoop22;
|
|
}
|
|
}
|
|
object = {};
|
|
const items6 = [];
|
|
length = this._items.length;
|
|
if (value4 < length) {
|
|
r11 = value4;
|
|
reducibleLoop28: while (true) {
|
|
reducibleJoin39: while (true) {
|
|
if (!object2[r11]) {
|
|
r19 = r11;
|
|
break reducibleJoin39;
|
|
}
|
|
_items = this._items;
|
|
length = _items.length;
|
|
if (!(value4 < length)) {
|
|
r19 = value;
|
|
break reducibleJoin39;
|
|
}
|
|
r23 = value4;
|
|
reducibleLoop30: while (true) {
|
|
if (object[r23] !== true) {
|
|
reducibleJoin33: while (true) {
|
|
if (object2[r23]) {
|
|
break reducibleJoin33;
|
|
}
|
|
object2[r23] = [];
|
|
break reducibleJoin33;
|
|
}
|
|
length = object2[r23].length;
|
|
if (value4 < length) {
|
|
r26 = value4;
|
|
r27 = value4;
|
|
reducibleLoop34: while (true) {
|
|
indexOf = items6.indexOf;
|
|
reducibleJoin36: while (true) {
|
|
if (Reflect.apply(indexOf, items6, [object2[r23][r26]]) >= value4) {
|
|
value18 = typeof r27 === 'bigint' ? r27 + 1n : +r27 + 1;
|
|
r29 = value18;
|
|
break reducibleJoin36;
|
|
}
|
|
r29 = r27;
|
|
break reducibleJoin36;
|
|
}
|
|
value19 = typeof r26 === 'bigint' ? r26 + 1n : +r26 + 1;
|
|
if (value19 < length) {
|
|
r26 = value19;
|
|
r27 = r29;
|
|
continue reducibleLoop34;
|
|
}
|
|
r24 = r29;
|
|
break reducibleLoop34;
|
|
}
|
|
} else {
|
|
r24 = value4;
|
|
}
|
|
reducibleJoin38: while (true) {
|
|
if (r24 === length) {
|
|
r19 = r23;
|
|
break reducibleJoin39;
|
|
}
|
|
break reducibleJoin38;
|
|
}
|
|
}
|
|
value20 = typeof r23 === 'bigint' ? r23 + 1n : +r23 + 1;
|
|
_items = this._items;
|
|
length = _items.length;
|
|
if (value20 < length) {
|
|
r23 = value20;
|
|
continue reducibleLoop30;
|
|
}
|
|
r19 = value;
|
|
break reducibleJoin39;
|
|
}
|
|
}
|
|
reducibleJoin41: while (true) {
|
|
if (value === r19) {
|
|
break reducibleJoin41;
|
|
}
|
|
toString = r19.toString;
|
|
value21 = Reflect.apply(toString, r19, []);
|
|
object[value21] = true;
|
|
push = items6.push;
|
|
Reflect.apply(push, items6, [value21]);
|
|
break reducibleJoin41;
|
|
}
|
|
value22 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
|
|
_items = this._items;
|
|
length = _items.length;
|
|
if (value22 < length) {
|
|
r11 = value22;
|
|
continue reducibleLoop28;
|
|
}
|
|
break reducibleLoop28;
|
|
}
|
|
}
|
|
if (items6.length !== this._items.length) {
|
|
Error = global.Error;
|
|
value = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
error = new Error('Invalid dependencies');
|
|
return error instanceof Object ? error : value;
|
|
}
|
|
object = {};
|
|
length = this._items.length;
|
|
if (value4 < length) {
|
|
r7 = value4;
|
|
reducibleLoop44: while (true) {
|
|
_items = this._items;
|
|
property = _items[r7];
|
|
seq = property.seq;
|
|
object[seq] = property;
|
|
value = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
_items = this._items;
|
|
length = _items.length;
|
|
if (value < length) {
|
|
r7 = value;
|
|
continue reducibleLoop44;
|
|
}
|
|
break reducibleLoop44;
|
|
}
|
|
}
|
|
this._items = items6.map(_fun64697);
|
|
this.nodes = [];
|
|
function _fun64697(a0) { // fn#64697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:115434, offset: 0x01bb1f7b, size: 36 bytes, params: 2, frame: 12
|
|
const property = env0_0[a0];
|
|
const binding = env0_1;
|
|
binding.push(property.node);
|
|
return property;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64699(a0, a1, a2) { // fn#64699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:115931, offset: 0x01bb20d8, size: 95 bytes, params: 4, frame: 13
|
|
const value = a2(14);
|
|
let env0_1 = a2(2);
|
|
const Lazy = ({Lazy: ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun64702;
|
|
var env0_1 = closure;
|
|
_inherits_64700(closure, a0) /* class inheritance: closure extends a0 */;
|
|
closure.prototype._base = _fun64703;
|
|
closure.prototype.set = _fun64704;
|
|
return closure;
|
|
})(value)}).Lazy;
|
|
a0.exports = new Lazy();
|
|
function _fun64701(a0) { // fn#64701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:116512, offset: 0x01bb2137, size: 67 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_647022 = _class_64702;
|
|
_inherits_64700(_class_647022, a0) /* class inheritance: closure extends a0 */;
|
|
_class_647022.prototype._base = _base_64703;
|
|
_class_647022.prototype.set = set_64704;
|
|
return _class_647022;
|
|
function _class_64702() { // fn#64702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:116524, offset: 0x01bb217a, size: 149 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
const value = this;
|
|
if (value instanceof _class_64702) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'lazy';
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function _base_64703(a0, a1, a2) { // fn#64703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:116953, offset: 0x01bb220f, size: 138 bytes, params: 4, frame: 20
|
|
var r0;
|
|
var value;
|
|
var value2;
|
|
const object = {value: a0};
|
|
const lazy = this._flags.lazy;
|
|
if (lazy) {
|
|
value = lazy();
|
|
value2 = environment.__proto__;
|
|
if (value instanceof env1_0) {
|
|
value = value._validate(a0, a1, a2);
|
|
r0 = value;
|
|
} else {
|
|
object.errors = this.createError('lazy.schema', null, a1, a2);
|
|
r0 = object;
|
|
}
|
|
return r0;
|
|
}
|
|
object.errors = this.createError('lazy.base', null, a1, a2);
|
|
return object;
|
|
}
|
|
|
|
function set_64704(a0) { // fn#64704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:117200, offset: 0x01bb2299, size: 66 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__;
|
|
env1_1.assert(typeof a0 === 'function', 'You must provide a function as first argument');
|
|
value = this.clone();
|
|
value._flags.lazy = a0;
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64705(a0, a1, a2) { // fn#64705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:117373, offset: 0x01bb22db, size: 188 bytes, params: 4, frame: 13
|
|
const Symbol = global.Symbol;
|
|
const env0_0 = typeof Symbol !== 'function' ? function(a0) {
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
} : typeof global.Symbol.iterator === 'symbol' ? _fun64707 : _fun64708;
|
|
let value = a2(14);
|
|
const env0_2 = a2(19);
|
|
const env0_3 = a2(2);
|
|
const object = {fastSplice: function(a0, a1) {
|
|
var r2;
|
|
var value2;
|
|
var value = a1;
|
|
if (value < a0.length) {
|
|
for (r2 = value; true; r2 = value2) {
|
|
value = typeof r2 === 'bigint' ? r2 : +r2;
|
|
value2 = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
a0[value] = a0[value2];
|
|
if (!(value2 < a0.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
var length = a0.length;
|
|
a0.length = typeof length === 'bigint' ? length - 1n : +length - 1;
|
|
}};
|
|
object.Array = _fun64710(value);
|
|
object.safeParse = function(a0, a1) {
|
|
var property;
|
|
var value;
|
|
var isArray2;
|
|
var error;
|
|
try {
|
|
property = global.JSON;
|
|
value = property.parse(a0);
|
|
property = global.Array;
|
|
isArray2 = property.isArray(value);
|
|
if (isArray2) {
|
|
a1.value = value;
|
|
}
|
|
} catch (error) {
|
|
}
|
|
};
|
|
const Array = object.Array;
|
|
a0.exports = new Array();
|
|
function _fun64710(a0) { // fn#64710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:118243, offset: 0x01bb23cf, size: 243 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_647112 = _class_64711;
|
|
_inherits_64706(_class_647112, a0) /* class inheritance: closure extends a0 */;
|
|
_class_647112.prototype._base = _base_64712;
|
|
_class_647112.prototype._checkItems = _checkItems;
|
|
_class_647112.prototype.describe = describe_64714;
|
|
_class_647112.prototype.items = items;
|
|
_class_647112.prototype.ordered = ordered;
|
|
_class_647112.prototype.min = min_64719;
|
|
_class_647112.prototype.max = max_64721;
|
|
_class_647112.prototype.length = length_64723;
|
|
_class_647112.prototype.unique = unique_64725;
|
|
_class_647112.prototype.sparse = function(a0) {
|
|
var value = this.clone();
|
|
value._flags.sparse = a0 === undefined || !!a0;
|
|
return value;
|
|
};
|
|
_class_647112.prototype.single = function(a0) {
|
|
var value = this.clone();
|
|
value._flags.single = a0 === undefined || !!a0;
|
|
return value;
|
|
};
|
|
_class_647112.prototype._fillMissedErrors = _fillMissedErrors;
|
|
_class_647112.prototype._fillOrderedErrors = _fillOrderedErrors;
|
|
return _class_647112;
|
|
function _class_64711() { // fn#64711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:118255, offset: 0x01bb24c2, size: 243 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
var _inner;
|
|
const value = this;
|
|
if (value instanceof _class_64711) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'array';
|
|
_inner = r0._inner;
|
|
_inner.items = [];
|
|
_inner = r0._inner;
|
|
_inner.ordereds = [];
|
|
_inner = r0._inner;
|
|
_inner.inclusions = [];
|
|
_inner = r0._inner;
|
|
_inner.exclusions = [];
|
|
_inner = r0._inner;
|
|
_inner.requireds = [];
|
|
r0._flags.sparse = false;
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function _base_64712(a0, a1, a2) { // fn#64712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:118811, offset: 0x01bb25b5, size: 482 bytes, params: 4, frame: 21
|
|
var _checkItems;
|
|
var errors;
|
|
const object = {value: a0};
|
|
let r1 = typeof a0 === 'string' && a2.convert;
|
|
if (r1) {
|
|
value = environment.__proto__;
|
|
env1_4.safeParse(a0, object);
|
|
}
|
|
const Array = global.Array;
|
|
const isArray = Array.isArray;
|
|
value = object.value;
|
|
value = Reflect.apply(isArray, Array, [value]);
|
|
if (a2.convert && this._flags.single && !value) {
|
|
object.value = [object.value];
|
|
r1 = true;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
if (r1) {
|
|
if (this._inner.inclusions.length) {
|
|
if (value) {
|
|
object.value = object.value.slice(0);
|
|
}
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
errors = object.errors;
|
|
if (errors) {
|
|
if (value) {
|
|
if (a2.convert) {
|
|
if (this._flags.single) {
|
|
errors = object.errors;
|
|
object.value = [object.value];
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
if (object.errors) {
|
|
object.errors = errors;
|
|
object.value = object.value[0];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (this._inner.exclusions.length) {
|
|
if (value) {
|
|
object.value = object.value.slice(0);
|
|
}
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
errors = object.errors;
|
|
if (errors) {
|
|
if (value) {
|
|
if (a2.convert) {
|
|
if (this._flags.single) {
|
|
errors = object.errors;
|
|
object.value = [object.value];
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
if (object.errors) {
|
|
object.errors = errors;
|
|
object.value = object.value[0];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (this._inner.requireds.length) {
|
|
if (value) {
|
|
object.value = object.value.slice(0);
|
|
}
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
errors = object.errors;
|
|
if (errors) {
|
|
if (value) {
|
|
if (a2.convert) {
|
|
if (this._flags.single) {
|
|
errors = object.errors;
|
|
object.value = [object.value];
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
if (object.errors) {
|
|
object.errors = errors;
|
|
object.value = object.value[0];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (this._inner.ordereds.length) {
|
|
if (value) {
|
|
object.value = object.value.slice(0);
|
|
}
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
errors = object.errors;
|
|
if (errors) {
|
|
if (value) {
|
|
if (a2.convert) {
|
|
if (this._flags.single) {
|
|
errors = object.errors;
|
|
object.value = [object.value];
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
if (object.errors) {
|
|
object.errors = errors;
|
|
object.value = object.value[0];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (!this._flags.sparse) {
|
|
if (value) {
|
|
object.value = object.value.slice(0);
|
|
}
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
errors = object.errors;
|
|
if (errors) {
|
|
if (value) {
|
|
if (a2.convert) {
|
|
if (this._flags.single) {
|
|
errors = object.errors;
|
|
object.value = [object.value];
|
|
_checkItems = this._checkItems;
|
|
object.errors = _checkItems.call(this, object.value, value, a1, a2);
|
|
if (object.errors) {
|
|
object.errors = errors;
|
|
object.value = object.value[0];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
object.errors = this.createError('array.base', null, a1, a2);
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function _checkItems(a0, a1, a2, a3) { // fn#64713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:119493, offset: 0x01bb2797, size: 2480 bytes, params: 5, frame: 87
|
|
var r16;
|
|
var r35;
|
|
var r39;
|
|
var r40;
|
|
var r52;
|
|
var r56;
|
|
var r68;
|
|
var r53;
|
|
var r67;
|
|
var r50;
|
|
var r54;
|
|
var r69;
|
|
var r70;
|
|
var r71;
|
|
var r72;
|
|
var r66;
|
|
var r59;
|
|
var r60;
|
|
var r61;
|
|
var r62;
|
|
var r64;
|
|
var r48;
|
|
var property;
|
|
var object;
|
|
var key;
|
|
var path;
|
|
var value14;
|
|
var value15;
|
|
var parent;
|
|
var reference;
|
|
var _flags;
|
|
var sparse;
|
|
var push;
|
|
var createError;
|
|
var abortEarly;
|
|
var exclusions;
|
|
var value16;
|
|
var property2;
|
|
var _validate;
|
|
var errors;
|
|
var value17;
|
|
var items2;
|
|
var items3;
|
|
var property3;
|
|
var value18;
|
|
var value19;
|
|
var binding;
|
|
var fastSplice;
|
|
var value20;
|
|
var value21;
|
|
var stripUnknown;
|
|
var value22;
|
|
var value23;
|
|
var arrays;
|
|
var value24;
|
|
var property4;
|
|
var indexOf;
|
|
var value25;
|
|
var value26;
|
|
var strip;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var property5;
|
|
var value31;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var value35;
|
|
var shift;
|
|
var value36;
|
|
var value37;
|
|
var value38;
|
|
var value39;
|
|
var value40;
|
|
var value41;
|
|
var value42;
|
|
var _fillMissedErrors;
|
|
var call;
|
|
var _fillOrderedErrors;
|
|
const items4 = [];
|
|
let _inner = this._inner;
|
|
const value = _inner.requireds.slice();
|
|
let ordereds = this._inner.ordereds;
|
|
const value2 = ordereds.slice();
|
|
let inclusions = this._inner.inclusions;
|
|
const value3 = inclusions.concat(value);
|
|
let length = a0.length;
|
|
const value4 = 0;
|
|
const value6 = 'array.includes';
|
|
const value7 = 'array.includesSingle';
|
|
const value8 = true;
|
|
if (value4 < length) {
|
|
r16 = value4;
|
|
r35 = length;
|
|
reducibleLoop1: while (true) {
|
|
property = a0[r16];
|
|
object = {};
|
|
reducibleJoin3: while (true) {
|
|
if (a1) {
|
|
r39 = r16;
|
|
break reducibleJoin3;
|
|
}
|
|
key = a2.key;
|
|
r39 = key;
|
|
break reducibleJoin3;
|
|
}
|
|
object.key = r39;
|
|
path = a2.path;
|
|
reducibleJoin7: while (true) {
|
|
if (a1) {
|
|
reducibleJoin6: while (true) {
|
|
if (path) {
|
|
path = a2.path;
|
|
value14 = path + '.';
|
|
r40 = value14;
|
|
break reducibleJoin6;
|
|
}
|
|
r40 = '';
|
|
break reducibleJoin6;
|
|
}
|
|
value15 = r40 + r16;
|
|
r39 = value15;
|
|
break reducibleJoin7;
|
|
}
|
|
r39 = path;
|
|
break reducibleJoin7;
|
|
}
|
|
object.path = r39;
|
|
parent = a2.parent;
|
|
object.parent = parent;
|
|
reference = a2.reference;
|
|
object.reference = reference;
|
|
_flags = this._flags;
|
|
sparse = _flags.sparse;
|
|
if (!sparse) {
|
|
reducibleJoin11: while (true) {
|
|
if (property !== undefined) {
|
|
break reducibleJoin11;
|
|
}
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, ['array.sparse', null, {key: key,
|
|
path: path,
|
|
pos: r16}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r39 = r35;
|
|
r48 = r16;
|
|
value42 = typeof r48 === 'bigint' ? r48 + 1n : +r48 + 1;
|
|
if (value42 < r39) {
|
|
r16 = value42;
|
|
r35 = r39;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
_inner = this._inner;
|
|
exclusions = _inner.exclusions;
|
|
length = exclusions.length;
|
|
value16 = false;
|
|
if (value4 < length) {
|
|
r52 = value4;
|
|
reducibleLoop12: while (true) {
|
|
_inner = this._inner;
|
|
exclusions = _inner.exclusions;
|
|
property2 = exclusions[r52];
|
|
_validate = property2._validate;
|
|
errors = Reflect.apply(_validate, property2, [property, object, {}]).errors;
|
|
if (errors) {
|
|
value17 = typeof r52 === 'bigint' ? r52 + 1n : +r52 + 1;
|
|
_inner = this._inner;
|
|
exclusions = _inner.exclusions;
|
|
length = exclusions.length;
|
|
if (value17 < length) {
|
|
r52 = value17;
|
|
continue reducibleLoop12;
|
|
}
|
|
r68 = value16;
|
|
break reducibleLoop12;
|
|
}
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
r56 = a1 ? 'array.excludes' : 'array.excludesSingle';
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, [r56, {pos: r16, value: property},
|
|
{key: key,
|
|
path: path}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
reducibleJoin17: while (true) {
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r68 = value8;
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleLoop12;
|
|
}
|
|
} else {
|
|
r68 = value16;
|
|
}
|
|
if (r68) {
|
|
r39 = r35;
|
|
r48 = r16;
|
|
} else {
|
|
_inner = this._inner;
|
|
ordereds = _inner.ordereds;
|
|
length = ordereds.length;
|
|
reducibleJoin71: while (true) {
|
|
reducibleJoin30: while (true) {
|
|
if (length) {
|
|
length = value2.length;
|
|
if (length > value4) {
|
|
shift = value2.shift;
|
|
value36 = Reflect.apply(shift, value2, []);
|
|
_validate = value36._validate;
|
|
value37 = Reflect.apply(_validate, value36, [property, object, a3]);
|
|
errors = value37.errors;
|
|
if (errors) {
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
errors = value37.errors;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, ['array.ordered',
|
|
{pos: r16,
|
|
reason: errors,
|
|
value: property}, {key: key, path: path}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r39 = r35;
|
|
r48 = r16;
|
|
break reducibleJoin71;
|
|
}
|
|
_flags = value36._flags;
|
|
strip = _flags.strip;
|
|
if (strip) {
|
|
binding = env1_4;
|
|
fastSplice = binding.fastSplice;
|
|
Reflect.apply(fastSplice, binding, [a0, r16]);
|
|
value40 = typeof r16 === 'bigint' ? r16 - 1n : +r16 - 1;
|
|
value41 = typeof r35 === 'bigint' ? r35 - 1n : +r35 - 1;
|
|
r39 = value41;
|
|
r48 = value40;
|
|
break reducibleJoin71;
|
|
}
|
|
_flags = this._flags;
|
|
sparse = _flags.sparse;
|
|
if (!sparse) {
|
|
value38 = value37.value;
|
|
reducibleJoin67: while (true) {
|
|
if (value38 !== undefined) {
|
|
break reducibleJoin67;
|
|
}
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, ['array.sparse',
|
|
null,
|
|
{key: key,
|
|
path: path,
|
|
pos: r16}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r39 = r35;
|
|
r48 = r16;
|
|
break reducibleJoin71;
|
|
}
|
|
}
|
|
value39 = value37.value;
|
|
a0[r16] = value39;
|
|
r39 = r35;
|
|
r48 = r16;
|
|
break reducibleJoin71;
|
|
}
|
|
_inner = this._inner;
|
|
items2 = _inner.items;
|
|
length = items2.length;
|
|
if (!length) {
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
_inner = this._inner;
|
|
ordereds = _inner.ordereds;
|
|
length = ordereds.length;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, ['array.orderedLength',
|
|
{pos: r16,
|
|
limit: length},
|
|
{key: key, path: path}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r39 = r35;
|
|
r48 = r16;
|
|
break reducibleJoin71;
|
|
}
|
|
items3 = [];
|
|
length = value.length;
|
|
if (!(value4 < length)) {
|
|
r67 = value16;
|
|
break reducibleJoin30;
|
|
}
|
|
r53 = value4;
|
|
reducibleLoop24: while (true) {
|
|
property3 = value[r53];
|
|
_validate = property3._validate;
|
|
value18 = Reflect.apply(_validate, property3, [property, object, a3]);
|
|
items3[r53] = value18;
|
|
errors = value18.errors;
|
|
if (errors) {
|
|
value21 = typeof r53 === 'bigint' ? r53 + 1n : +r53 + 1;
|
|
if (value21 < length) {
|
|
r53 = value21;
|
|
continue reducibleLoop24;
|
|
}
|
|
r67 = value16;
|
|
break reducibleJoin30;
|
|
}
|
|
value19 = value18.value;
|
|
a0[r16] = value19;
|
|
binding = env1_4;
|
|
fastSplice = binding.fastSplice;
|
|
Reflect.apply(fastSplice, binding, [value, r53]);
|
|
typeof r53 === 'bigint' ? r53 - 1n : +r53 - 1;
|
|
typeof length === 'bigint' ? length - 1n : +length - 1;
|
|
_flags = this._flags;
|
|
sparse = _flags.sparse;
|
|
if (sparse) {
|
|
r67 = value8;
|
|
break reducibleJoin30;
|
|
}
|
|
value20 = value18.value;
|
|
if (value20 !== undefined) {
|
|
r67 = value8;
|
|
break reducibleJoin30;
|
|
}
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, ['array.sparse', null,
|
|
{key: key,
|
|
path: path,
|
|
pos: r16}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r67 = value8;
|
|
break reducibleJoin30;
|
|
}
|
|
} else {
|
|
items3 = [];
|
|
length = value.length;
|
|
if (!(value4 < length)) {
|
|
r67 = value16;
|
|
break reducibleJoin30;
|
|
}
|
|
r53 = value4;
|
|
reducibleLoop24: while (true) {
|
|
property3 = value[r53];
|
|
_validate = property3._validate;
|
|
value18 = Reflect.apply(_validate, property3, [property, object, a3]);
|
|
items3[r53] = value18;
|
|
errors = value18.errors;
|
|
if (errors) {
|
|
value21 = typeof r53 === 'bigint' ? r53 + 1n : +r53 + 1;
|
|
if (value21 < length) {
|
|
r53 = value21;
|
|
continue reducibleLoop24;
|
|
}
|
|
r67 = value16;
|
|
break reducibleJoin30;
|
|
}
|
|
value19 = value18.value;
|
|
a0[r16] = value19;
|
|
binding = env1_4;
|
|
fastSplice = binding.fastSplice;
|
|
Reflect.apply(fastSplice, binding, [value, r53]);
|
|
typeof r53 === 'bigint' ? r53 - 1n : +r53 - 1;
|
|
typeof length === 'bigint' ? length - 1n : +length - 1;
|
|
_flags = this._flags;
|
|
sparse = _flags.sparse;
|
|
if (sparse) {
|
|
r67 = value8;
|
|
break reducibleJoin30;
|
|
}
|
|
value20 = value18.value;
|
|
if (value20 !== undefined) {
|
|
r67 = value8;
|
|
break reducibleJoin30;
|
|
}
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, ['array.sparse', null,
|
|
{key: key,
|
|
path: path,
|
|
pos: r16}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r67 = value8;
|
|
break reducibleJoin30;
|
|
}
|
|
}
|
|
}
|
|
if (r67) {
|
|
r39 = r35;
|
|
r48 = r16;
|
|
break reducibleJoin71;
|
|
}
|
|
stripUnknown = a3.stripUnknown;
|
|
value22 = !!stripUnknown;
|
|
reducibleJoin35: while (true) {
|
|
if (stripUnknown) {
|
|
stripUnknown = a3.stripUnknown;
|
|
value23 = value8 === stripUnknown;
|
|
reducibleJoin34: while (true) {
|
|
if (value23) {
|
|
r50 = value23;
|
|
break reducibleJoin34;
|
|
}
|
|
stripUnknown = a3.stripUnknown;
|
|
arrays = stripUnknown.arrays;
|
|
value24 = !!arrays;
|
|
r50 = value24;
|
|
break reducibleJoin34;
|
|
}
|
|
r54 = r50;
|
|
break reducibleJoin35;
|
|
}
|
|
r54 = value22;
|
|
break reducibleJoin35;
|
|
}
|
|
length = value3.length;
|
|
if (value4 < length) {
|
|
r69 = value4;
|
|
reducibleLoop36: while (true) {
|
|
property4 = value3[r69];
|
|
indexOf = value.indexOf;
|
|
value25 = Reflect.apply(indexOf, value, [property4]);
|
|
if (value25 !== -1) {
|
|
property5 = items3[value25];
|
|
r66 = property5;
|
|
} else {
|
|
_validate = property4._validate;
|
|
value26 = Reflect.apply(_validate, property4, [property, object, a3]);
|
|
errors = value26.errors;
|
|
reducibleJoin46: while (true) {
|
|
if (errors) {
|
|
r66 = value26;
|
|
break reducibleJoin46;
|
|
}
|
|
_flags = property4._flags;
|
|
strip = _flags.strip;
|
|
if (strip) {
|
|
binding = env1_4;
|
|
fastSplice = binding.fastSplice;
|
|
Reflect.apply(fastSplice, binding, [a0, r16]);
|
|
value29 = typeof r16 === 'bigint' ? r16 - 1n : +r16 - 1;
|
|
value30 = typeof r35 === 'bigint' ? r35 - 1n : +r35 - 1;
|
|
r70 = value29;
|
|
r71 = value30;
|
|
r72 = r68;
|
|
} else {
|
|
_flags = this._flags;
|
|
sparse = _flags.sparse;
|
|
reducibleJoin44: while (true) {
|
|
reducibleJoin42: while (true) {
|
|
if (sparse) {
|
|
break reducibleJoin42;
|
|
}
|
|
value27 = value26.value;
|
|
if (value27 !== undefined) {
|
|
break reducibleJoin42;
|
|
}
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this,
|
|
['array.sparse',
|
|
null,
|
|
{key: key,
|
|
path: path,
|
|
pos: r16}, a3])]);
|
|
r70 = r16;
|
|
r71 = r35;
|
|
r72 = value8;
|
|
break reducibleJoin44;
|
|
}
|
|
value28 = value26.value;
|
|
a0[r16] = value28;
|
|
r70 = r16;
|
|
r71 = r35;
|
|
r72 = r68;
|
|
break reducibleJoin44;
|
|
}
|
|
}
|
|
r59 = r70;
|
|
r60 = r71;
|
|
r61 = value8;
|
|
r62 = r72;
|
|
break reducibleLoop36;
|
|
}
|
|
}
|
|
if (length === 1) {
|
|
if (r54) {
|
|
binding = env1_4;
|
|
fastSplice = binding.fastSplice;
|
|
Reflect.apply(fastSplice, binding, [a0, r16]);
|
|
value32 = typeof r16 === 'bigint' ? r16 - 1n : +r16 - 1;
|
|
value33 = typeof r35 === 'bigint' ? r35 - 1n : +r35 - 1;
|
|
r59 = value32;
|
|
r60 = value33;
|
|
r61 = value8;
|
|
r62 = r68;
|
|
} else {
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
r71 = a1 ? 'array.includesOne' : 'array.includesOneSingle';
|
|
errors = r66.errors;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, [r71, {pos: r16,
|
|
reason: errors,
|
|
value: property},
|
|
{key: key, path: path}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
reducibleJoin53: while (true) {
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r59 = r16;
|
|
r60 = r35;
|
|
r61 = r67;
|
|
r62 = value8;
|
|
break reducibleJoin53;
|
|
}
|
|
}
|
|
break reducibleLoop36;
|
|
}
|
|
value31 = typeof r69 === 'bigint' ? r69 + 1n : +r69 + 1;
|
|
if (value31 < length) {
|
|
r69 = value31;
|
|
continue reducibleLoop36;
|
|
}
|
|
r59 = r16;
|
|
r60 = r35;
|
|
r61 = r67;
|
|
r62 = r68;
|
|
break reducibleLoop36;
|
|
}
|
|
} else {
|
|
r59 = r16;
|
|
r60 = r35;
|
|
r61 = r67;
|
|
r62 = r68;
|
|
}
|
|
if (r62) {
|
|
r39 = r60;
|
|
r48 = r59;
|
|
break reducibleJoin71;
|
|
}
|
|
_inner = this._inner;
|
|
inclusions = _inner.inclusions;
|
|
length = inclusions.length;
|
|
if (length) {
|
|
if (r61) {
|
|
r39 = r60;
|
|
r48 = r59;
|
|
break reducibleJoin71;
|
|
}
|
|
if (r54) {
|
|
binding = env1_4;
|
|
fastSplice = binding.fastSplice;
|
|
Reflect.apply(fastSplice, binding, [a0, r59]);
|
|
value34 = typeof r59 === 'bigint' ? r59 - 1n : +r59 - 1;
|
|
value35 = typeof r60 === 'bigint' ? r60 - 1n : +r60 - 1;
|
|
r39 = value35;
|
|
r48 = value34;
|
|
break reducibleJoin71;
|
|
}
|
|
push = items4.push;
|
|
createError = this.createError;
|
|
r64 = a1 ? value6 : value7;
|
|
key = a2.key;
|
|
path = object.path;
|
|
Reflect.apply(push, items4, [Reflect.apply(createError, this, [r64, {pos: r59, value: property},
|
|
{key: key,
|
|
path: path}, a3])]);
|
|
abortEarly = a3.abortEarly;
|
|
if (abortEarly) {
|
|
return items4;
|
|
}
|
|
r39 = r60;
|
|
r48 = r59;
|
|
break reducibleJoin71;
|
|
}
|
|
r39 = r60;
|
|
r48 = r59;
|
|
break reducibleJoin71;
|
|
}
|
|
}
|
|
value42 = typeof r48 === 'bigint' ? r48 + 1n : +r48 + 1;
|
|
if (value42 < r39) {
|
|
r16 = value42;
|
|
r35 = r39;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
reducibleJoin74: while (true) {
|
|
if (value.length) {
|
|
_fillMissedErrors = this._fillMissedErrors;
|
|
call = _fillMissedErrors.call;
|
|
Reflect.apply(call, _fillMissedErrors, [this, items4, value, a2, a3]);
|
|
break reducibleJoin74;
|
|
}
|
|
break reducibleJoin74;
|
|
}
|
|
reducibleJoin76: while (true) {
|
|
if (value2.length) {
|
|
_fillOrderedErrors = this._fillOrderedErrors;
|
|
call = _fillOrderedErrors.call;
|
|
Reflect.apply(call, _fillOrderedErrors, [this, items4, value2, a2, a3]);
|
|
break reducibleJoin76;
|
|
}
|
|
break reducibleJoin76;
|
|
}
|
|
return items4.length ? items4 : null;
|
|
}
|
|
|
|
function describe_64714() { // fn#64714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:122082, offset: 0x01bb3147, size: 277 bytes, params: 1, frame: 15
|
|
var r2;
|
|
var value2;
|
|
var orderedItems;
|
|
var push;
|
|
var property;
|
|
var value3;
|
|
var value4;
|
|
var items2;
|
|
var value5;
|
|
let value = environment.__proto__;
|
|
let describe = env1_1.prototype.describe;
|
|
value = describe.call(this);
|
|
let _inner = this._inner;
|
|
let ordereds = _inner.ordereds;
|
|
let length = ordereds.length;
|
|
reducibleJoin3: while (true) {
|
|
if (!length) {
|
|
break reducibleJoin3;
|
|
}
|
|
value.orderedItems = [];
|
|
_inner = this._inner;
|
|
ordereds = _inner.ordereds;
|
|
length = ordereds.length;
|
|
value2 = 0;
|
|
if (!(value2 < length)) {
|
|
break reducibleJoin3;
|
|
}
|
|
r2 = value2;
|
|
reducibleLoop2: while (true) {
|
|
orderedItems = value.orderedItems;
|
|
push = orderedItems.push;
|
|
_inner = this._inner;
|
|
ordereds = _inner.ordereds;
|
|
property = ordereds[r2];
|
|
describe = property.describe;
|
|
Reflect.apply(push, orderedItems, [Reflect.apply(describe, property, [])]);
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
_inner = this._inner;
|
|
ordereds = _inner.ordereds;
|
|
length = ordereds.length;
|
|
if (value3 < length) {
|
|
r2 = value3;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
}
|
|
let items3 = this._inner.items;
|
|
length = items3.length;
|
|
reducibleJoin6: while (true) {
|
|
if (!length) {
|
|
break reducibleJoin6;
|
|
}
|
|
value.items = [];
|
|
_inner = this._inner;
|
|
items3 = _inner.items;
|
|
length = items3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin6;
|
|
}
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
items3 = value.items;
|
|
push = items3.push;
|
|
_inner = this._inner;
|
|
items2 = _inner.items;
|
|
property = items2[r2];
|
|
describe = property.describe;
|
|
Reflect.apply(push, items3, [Reflect.apply(describe, property, [])]);
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
_inner = this._inner;
|
|
items3 = _inner.items;
|
|
length = items3.length;
|
|
if (value5 < length) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function items() { // fn#64715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:122454, offset: 0x01bb325c, size: 86 bytes, params: 1, frame: 16
|
|
const value = this.clone();
|
|
const binding = env1_3;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
Reflect.apply(flatten, binding, [slice.call(arguments)]).forEach(_fun64716);
|
|
return value;
|
|
function _fun64716(a0, a1) { // fn#64716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:122555, offset: 0x01bb32b2, size: 303 bytes, params: 3, frame: 16
|
|
var value;
|
|
var binding;
|
|
var exclusions;
|
|
var error;
|
|
var hasOwnProperty;
|
|
var path;
|
|
var message;
|
|
try {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_2;
|
|
value = binding.schema(a0);
|
|
} catch (error) {
|
|
hasOwnProperty = error.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, error, ['path'])) {
|
|
error.path = a1 + '.' + error.path;
|
|
} else {
|
|
error.path = a1;
|
|
}
|
|
message = error.message;
|
|
value = message + '(';
|
|
path = error.path;
|
|
error.message = value + path + ')';
|
|
throw error;
|
|
}
|
|
env0_0._inner.items.push(value);
|
|
if (value._flags.presence === 'required') {
|
|
env0_0._inner.requireds.push(value);
|
|
} else if (value._flags.presence === 'forbidden') {
|
|
exclusions = env0_0._inner.exclusions;
|
|
exclusions.push(value.optional());
|
|
} else {
|
|
env0_0._inner.inclusions.push(value);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function ordered() { // fn#64717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:122904, offset: 0x01bb33e1, size: 86 bytes, params: 1, frame: 16
|
|
const value = this.clone();
|
|
const binding = env1_3;
|
|
const flatten = binding.flatten;
|
|
const Array = global.Array;
|
|
const slice = Array.prototype.slice;
|
|
Reflect.apply(flatten, binding, [slice.call(arguments)]).forEach(_fun64718);
|
|
return value;
|
|
function _fun64718(a0, a1) { // fn#64718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123007, offset: 0x01bb3437, size: 159 bytes, params: 3, frame: 14
|
|
var value;
|
|
var binding;
|
|
var error;
|
|
var hasOwnProperty;
|
|
var path;
|
|
var message;
|
|
try {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_2;
|
|
value = binding.schema(a0);
|
|
} catch (error) {
|
|
hasOwnProperty = error.hasOwnProperty;
|
|
if (Reflect.apply(hasOwnProperty, error, ['path'])) {
|
|
error.path = a1 + '.' + error.path;
|
|
} else {
|
|
error.path = a1;
|
|
}
|
|
message = error.message;
|
|
value = message + '(';
|
|
path = error.path;
|
|
error.message = value + path + ')';
|
|
throw error;
|
|
}
|
|
env0_0._inner.ordereds.push(value);
|
|
}
|
|
|
|
}
|
|
|
|
function min_64719(a0) { // fn#64719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123198, offset: 0x01bb34d6, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_3;
|
|
binding.assert(env1_3.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('min', a0, _fun64720);
|
|
function _fun64720(a0, a1, a2) { // fn#64720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123307, offset: 0x01bb352b, size: 69 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length >= env0_0 ? value : this.createError('array.min', {limit: env0_0, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function max_64721(a0) { // fn#64721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123421, offset: 0x01bb3570, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_3;
|
|
binding.assert(env1_3.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('max', a0, _fun64722);
|
|
function _fun64722(a0, a1, a2) { // fn#64722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123530, offset: 0x01bb35c5, size: 69 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length <= env0_0 ? value : this.createError('array.max', {limit: env0_0, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function length_64723(a0) { // fn#64723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123647, offset: 0x01bb360a, size: 85 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_3;
|
|
binding.assert(env1_3.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('length', a0, _fun64724);
|
|
function _fun64724(a0, a1, a2) { // fn#64724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123762, offset: 0x01bb365f, size: 69 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length === env0_0 ? value : this.createError('array.length', {limit: env0_0, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function unique_64725(a0) { // fn#64725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:123883, offset: 0x01bb36a4, size: 104 bytes, params: 2, frame: 16
|
|
var environment;
|
|
let value = a0;
|
|
const result = !!value;
|
|
const r1 = value || env1_3.deepEqual;
|
|
value = environment.__proto__;
|
|
env1_3.assert(typeof r1 === 'function', 'comparator must be a function');
|
|
return this._test('unique', undefined, _fun64726);
|
|
function _fun64726(a0, a1, a2) { // fn#64726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:124027, offset: 0x01bb370c, size: 352 bytes, params: 4, frame: 33
|
|
var r8;
|
|
var r2;
|
|
var r19;
|
|
var r20;
|
|
var property;
|
|
var value5;
|
|
var property2;
|
|
var custom;
|
|
var Array;
|
|
var isArray;
|
|
var binding;
|
|
var value6;
|
|
var push;
|
|
var value7;
|
|
const object = {string: {}, number: {}, undefined: {}, boolean: {}, object: [], function: [], custom: []};
|
|
let length = a0.length;
|
|
const value = 0;
|
|
if (value < length) {
|
|
r8 = value;
|
|
reducibleLoop1: while (true) {
|
|
property = a0[r8];
|
|
reducibleJoin3: while (true) {
|
|
if (property === undefined) {
|
|
r2 = 'undefined';
|
|
break reducibleJoin3;
|
|
}
|
|
value5 = env2_0(property);
|
|
r2 = value5;
|
|
break reducibleJoin3;
|
|
}
|
|
if (result) {
|
|
custom = object.custom;
|
|
r19 = custom;
|
|
} else {
|
|
property2 = object[r2];
|
|
r19 = property2;
|
|
}
|
|
if (r19) {
|
|
Array = global.Array;
|
|
isArray = Array.isArray;
|
|
if (Reflect.apply(isArray, Array, [r19])) {
|
|
length = r19.length;
|
|
reducibleJoin15: while (true) {
|
|
reducibleJoin14: while (true) {
|
|
if (!(value < length)) {
|
|
break reducibleJoin14;
|
|
}
|
|
r20 = value;
|
|
reducibleLoop12: while (true) {
|
|
binding = env0_0;
|
|
if (binding(r19[r20], property)) {
|
|
return this.createError('array.unique', {pos: r8, value: property}, a1, a2);
|
|
}
|
|
value6 = typeof r20 === 'bigint' ? r20 + 1n : +r20 + 1;
|
|
length = r19.length;
|
|
if (value6 < length) {
|
|
r20 = value6;
|
|
continue reducibleLoop12;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
}
|
|
push = r19.push;
|
|
Reflect.apply(push, r19, [property]);
|
|
break reducibleJoin15;
|
|
}
|
|
} else {
|
|
if (r19[property]) {
|
|
return this.createError('array.unique', {pos: r8, value: property}, a1, a2);
|
|
}
|
|
r19[property] = true;
|
|
}
|
|
}
|
|
value7 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
length = a0.length;
|
|
if (!(value7 < length)) {
|
|
return a0;
|
|
}
|
|
r8 = value7;
|
|
continue reducibleLoop1;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fillOrderedErrors(a0, a1, a2, a3) { // fn#64730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:125159, offset: 0x01bb39e7, size: 132 bytes, params: 5, frame: 22
|
|
var r4;
|
|
var binding;
|
|
var reach;
|
|
const items2 = [];
|
|
let length = a1.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r4 = value;
|
|
while (true) {
|
|
binding = env1_3;
|
|
reach = binding.reach;
|
|
if (Reflect.apply(reach, binding, [a1[r4], '_flags.presence']) === 'required') {
|
|
items2.push(a1[r4]);
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = a1.length;
|
|
if (value < length) {
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
if (items2.length) {
|
|
this._fillMissedErrors.call(this, a0, items2, a2, a3);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun64732(a0, a1, a2) { // fn#64732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:125467, offset: 0x01bb3aaa, size: 53 bytes, params: 4, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
const closure = _fun64733;
|
|
const call = closure.call;
|
|
const Buffer = a2(3).Buffer;
|
|
Reflect.apply(call, closure, [a1, Buffer]);
|
|
function _fun64733(a0) { // fn#64733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:125484, offset: 0x01bb3adf, size: 103 bytes, params: 2, frame: 14
|
|
let env0_0 = a0;
|
|
const defaultImport = importDefault(14);
|
|
let env0_1 = importDefault(2);
|
|
const object = {Binary: ((a0) => {
|
|
var env0_0 = a0;
|
|
var closure = _fun64736;
|
|
var env0_1 = closure;
|
|
_inherits_64734(closure, a0) /* class inheritance: closure extends a0 */;
|
|
closure.prototype._base = _fun64737;
|
|
closure.prototype.encoding = _fun64738;
|
|
closure.prototype.min = _fun64739;
|
|
closure.prototype.max = _fun64741;
|
|
closure.prototype.length = _fun64743;
|
|
return closure;
|
|
})(defaultImport)};
|
|
const binding = env0_0;
|
|
const Binary = object.Binary;
|
|
binding.exports = new Binary();
|
|
function _fun64735(a0) { // fn#64735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:126063, offset: 0x01bb3b46, size: 115 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const _class_647362 = _class_64736;
|
|
_inherits_64734(_class_647362, a0) /* class inheritance: closure extends a0 */;
|
|
_class_647362.prototype._base = _base_64737;
|
|
_class_647362.prototype.encoding = encoding;
|
|
_class_647362.prototype.min = min_64739;
|
|
_class_647362.prototype.max = max_64741;
|
|
_class_647362.prototype.length = length_64743;
|
|
return _class_647362;
|
|
function _class_64736() { // fn#64736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:126075, offset: 0x01bb3bb9, size: 149 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value3;
|
|
const value = this;
|
|
if (value instanceof _class_64736) {
|
|
value3 = env0_0.call(value);
|
|
if (value) {
|
|
r0 = value3 ? typeof value3 === 'object' ? value3 : typeof value3 !== 'function' ? value : value3 : value;
|
|
r0._type = 'binary';
|
|
return r0;
|
|
}
|
|
throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Cannot call a class as a function');
|
|
}
|
|
|
|
function _base_64737(a0, a1, a2) { // fn#64737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:126506, offset: 0x01bb3c4e, size: 164 bytes, params: 4, frame: 20
|
|
var value;
|
|
var binding;
|
|
var _flags;
|
|
var encoding;
|
|
var prototype;
|
|
var binding2;
|
|
var error;
|
|
const object = {value: a0};
|
|
if (typeof a0 === 'string') {
|
|
if (a2.convert) {
|
|
try {
|
|
value = environment.__proto__;
|
|
binding = env1_0;
|
|
_flags = this._flags;
|
|
encoding = _flags.encoding;
|
|
prototype = binding.prototype;
|
|
value = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding(a0);
|
|
value = binding2 instanceof Object ? binding2 : value;
|
|
object.value = value;
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
value = environment.__proto__;
|
|
binding = env1_0;
|
|
const isBuffer = binding.isBuffer;
|
|
value = object.value;
|
|
value = Reflect.apply(isBuffer, binding, [value]);
|
|
const value3 = null;
|
|
object.errors = value ? value3 : this.createError('binary.base', value3, a1, a2);
|
|
return object;
|
|
}
|
|
|
|
function encoding(a0) { // fn#64738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:126740, offset: 0x01bb3cf2, size: 71 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(env1_0.isEncoding(a0), 'Invalid encoding:', a0);
|
|
value = this.clone();
|
|
value._flags.encoding = a0;
|
|
return value;
|
|
}
|
|
|
|
function min_64739(a0) { // fn#64739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:126879, offset: 0x01bb3d39, size: 81 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(binding.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('min', a0, _fun64740);
|
|
function _fun64740(a0, a1, a2) { // fn#64740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:126988, offset: 0x01bb3d8a, size: 69 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length >= env0_0 ? value : this.createError('binary.min', {limit: env0_0, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function max_64741(a0) { // fn#64741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:127103, offset: 0x01bb3dcf, size: 81 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(binding.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('max', a0, _fun64742);
|
|
function _fun64742(a0, a1, a2) { // fn#64742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:127212, offset: 0x01bb3e20, size: 69 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length <= env0_0 ? value : this.createError('binary.max', {limit: env0_0, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function length_64743(a0) { // fn#64743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:127330, offset: 0x01bb3e65, size: 81 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
binding.assert(binding.isInteger(a0) && a0 >= 0, 'limit must be a positive integer');
|
|
return this._test('length', a0, _fun64744);
|
|
function _fun64744(a0, a1, a2) { // fn#64744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:127445, offset: 0x01bb3eb6, size: 69 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value.length === env0_0 ? value : this.createError('binary.length', {limit: env0_0, value: value}, a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _inherits_64120(a0, a1) { // fn#64120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:839, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun64156(a0) { // fn#64156, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64157(a0) { // fn#64157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:6843, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function formatStack(a0) { // fn#64179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:13533, offset: 0x01b9eb67, size: 131 bytes, params: 2, frame: 15
|
|
var r2;
|
|
var property;
|
|
var push;
|
|
var getLineNumber;
|
|
var getColumnNumber;
|
|
var getFunctionName;
|
|
var isConstructor;
|
|
const items2 = [];
|
|
let length = a0.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
for (r2 = value; true; r2 = value) {
|
|
property = a0[r2];
|
|
push = items2.push;
|
|
value = property.getFileName();
|
|
getLineNumber = property.getLineNumber;
|
|
getColumnNumber = property.getColumnNumber;
|
|
getFunctionName = property.getFunctionName;
|
|
isConstructor = property.isConstructor;
|
|
Reflect.apply(push, items2, [[value, Reflect.apply(getLineNumber, property, []),
|
|
Reflect.apply(getColumnNumber,
|
|
property, []), Reflect.apply(getFunctionName, property, []), Reflect.apply(isConstructor, property,
|
|
[])]]);
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a0.length;
|
|
if (!(value < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function formatTrace(a0) { // fn#64180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8256:13715, offset: 0x01b9ebea, size: 150 bytes, params: 2, frame: 25
|
|
var r2;
|
|
var r16;
|
|
var property;
|
|
var push;
|
|
var value4;
|
|
var property2;
|
|
var value5;
|
|
var property3;
|
|
var value6;
|
|
var value7;
|
|
const items2 = [];
|
|
let length = a0.length;
|
|
const value = 0;
|
|
if (value < length) {
|
|
r2 = value;
|
|
while (true) {
|
|
property = a0[r2];
|
|
push = items2.push;
|
|
r16 = property[4] ? 'new ' : '';
|
|
value4 = r16 + property[3];
|
|
property2 = property[value];
|
|
value5 = value4 + ' (' + property2;
|
|
property3 = property[1];
|
|
value6 = value5 + ':' + property3;
|
|
property = property[2];
|
|
Reflect.apply(push, items2, [value6 + ':' + property + ')']);
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = a0.length;
|
|
if (value7 < length) {
|
|
r2 = value7;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function hexWrite_64228(a0, a1, a2, a3) { // fn#64228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:5050, offset: 0x01ba0891, size: 210 bytes, params: 5, frame: 22
|
|
var r6;
|
|
var r3;
|
|
var r2;
|
|
var value2;
|
|
var parseInt;
|
|
var substr;
|
|
var isNaN;
|
|
const Number = global.Number;
|
|
const r7 = Number(a2) || 0;
|
|
let length = a0.length;
|
|
value = length - r7;
|
|
if (a3) {
|
|
value2 = global.Number(a3);
|
|
r6 = value2 > value ? value : value2;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
length = a1.length;
|
|
if (length % 2 !== 0) {
|
|
throw new global.TypeError('Invalid hex string');
|
|
}
|
|
r6 = r6 > length / 2 ? length / 2 : r6;
|
|
if (value < r6) {
|
|
r3 = value;
|
|
loopExit8: while (true) {
|
|
parseInt = global.parseInt;
|
|
substr = a1.substr;
|
|
value = parseInt(Reflect.apply(substr, a1, [2 * r3, 2]), 16);
|
|
isNaN = global.isNaN;
|
|
if (isNaN(value)) {
|
|
return r3;
|
|
}
|
|
a0[r7 + r3] = value;
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value < r6) {
|
|
r3 = value;
|
|
continue;
|
|
}
|
|
r2 = value;
|
|
break loopExit8;
|
|
}
|
|
return r2;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function objectWriteUInt16(a0, a1, a2, a3) { // fn#64242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:12928, offset: 0x01ba0f99, size: 146 bytes, params: 5, frame: 22
|
|
var r5;
|
|
var r9;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
let value = a1;
|
|
const value2 = 0;
|
|
const r4 = value < value2 ? 65535 + value + 1 : value;
|
|
const Math = global.Math;
|
|
value = Math.min(a0.length - a2, 2);
|
|
if (value2 < value) {
|
|
r5 = value2;
|
|
while (true) {
|
|
value3 = a2 + r5;
|
|
if (a3) {
|
|
r9 = r5;
|
|
} else {
|
|
value4 = 1 - r5;
|
|
r9 = value4;
|
|
}
|
|
value5 = r4 & 255 << 8 * r9;
|
|
if (a3) {
|
|
r9 = r5;
|
|
continue;
|
|
}
|
|
value6 = 1 - r5;
|
|
r9 = value6;
|
|
a0[value3] = value5 >>> 8 * r9;
|
|
value7 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value7 < value) {
|
|
r5 = value7;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function objectWriteUInt32(a0, a1, a2, a3) { // fn#64243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:13070, offset: 0x01ba102b, size: 132 bytes, params: 5, frame: 21
|
|
var r5;
|
|
var r9;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
let value = a1;
|
|
const value2 = 0;
|
|
const r4 = value < value2 ? 4294967295 + value + 1 : value;
|
|
const Math = global.Math;
|
|
value = Math.min(a0.length - a2, 4);
|
|
if (value2 < value) {
|
|
r5 = value2;
|
|
while (true) {
|
|
value3 = a2 + r5;
|
|
if (a3) {
|
|
r9 = r5;
|
|
} else {
|
|
value4 = 3 - r5;
|
|
r9 = value4;
|
|
}
|
|
a0[value3] = r4 >>> 8 * r9 & 255;
|
|
value5 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value5 < value) {
|
|
r5 = value5;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function utf8ToBytes_64248(a0, a1) { // fn#64248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:21360, offset: 0x00cf7261, size: 663 bytes, params: 3, frame: 56
|
|
var r31;
|
|
var r1;
|
|
var r2;
|
|
var r33;
|
|
var r34;
|
|
var r37;
|
|
var r39;
|
|
var charCodeAt;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var push;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
let value = a1;
|
|
reducibleJoin2: while (true) {
|
|
if (value) {
|
|
r31 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
value = Infinity;
|
|
r31 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
const length = a0.length;
|
|
const items2 = [];
|
|
value = 0;
|
|
const value2 = null;
|
|
if (value < length) {
|
|
r1 = value;
|
|
r2 = value2;
|
|
reducibleLoop3: while (true) {
|
|
charCodeAt = a0.charCodeAt;
|
|
value3 = Reflect.apply(charCodeAt, a0, [r1]);
|
|
if (value3 > 55295) {
|
|
reducibleJoin5: while (true) {
|
|
if (value3 < 57344) {
|
|
if (r2) {
|
|
if (value3 < 56320) {
|
|
value30 = r31 - 3;
|
|
reducibleJoin33: while (true) {
|
|
if (value30 > -1) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [239, 191, 189]);
|
|
r33 = value3;
|
|
r34 = value30;
|
|
break reducibleJoin33;
|
|
}
|
|
r33 = value3;
|
|
r34 = value30;
|
|
break reducibleJoin33;
|
|
}
|
|
} else {
|
|
value8 = r2 - 55296;
|
|
value9 = value3 - 56320;
|
|
value10 = 65536 + (value8 << 10 | value9);
|
|
r37 = r31;
|
|
r39 = value10;
|
|
if (r39 < 128) {
|
|
value29 = r37 - 1;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value29 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [r39]);
|
|
r33 = value2;
|
|
r34 = value29;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
} else if (r39 < 2048) {
|
|
value25 = r37 - 2;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value25 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
value26 = r39 >> 6;
|
|
value27 = 63 & r39;
|
|
value28 = value26 | 192;
|
|
Reflect.apply(push, items2, [value28, value27 | 128]);
|
|
r33 = value2;
|
|
r34 = value25;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
} else if (r39 < 65536) {
|
|
value19 = r37 - 3;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value19 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
value20 = r39 >> 12;
|
|
value21 = r39 >> 6;
|
|
value22 = 63 & r39;
|
|
value23 = value20 | 224;
|
|
value24 = value21 & 63 | 128;
|
|
Reflect.apply(push, items2, [value23, value24, value22 | 128]);
|
|
r33 = value2;
|
|
r34 = value19;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
} else {
|
|
if (!(r39 < 1114112)) {
|
|
throw new global.Error('Invalid code point');
|
|
}
|
|
value11 = r37 - 4;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value11 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
value12 = r39 >> 18;
|
|
value13 = r39 >> 12;
|
|
value14 = r39 >> 6;
|
|
value15 = 63 & r39;
|
|
value16 = value12 | 240;
|
|
value17 = value13 & 63 | 128;
|
|
value18 = value14 & 63 | 128;
|
|
Reflect.apply(push, items2, [value16, value17, value18, value15 | 128]);
|
|
r33 = value2;
|
|
r34 = value11;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
}
|
|
}
|
|
} else if (value3 > 56319) {
|
|
value7 = r31 - 3;
|
|
reducibleJoin33: while (true) {
|
|
if (value7 > -1) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [239, 191, 189]);
|
|
r33 = r2;
|
|
r34 = value7;
|
|
break reducibleJoin33;
|
|
}
|
|
r33 = r2;
|
|
r34 = value7;
|
|
break reducibleJoin33;
|
|
}
|
|
} else {
|
|
reducibleJoin33: while (true) {
|
|
if (r1 + 1 !== length) {
|
|
r33 = value3;
|
|
r34 = r31;
|
|
break reducibleJoin33;
|
|
}
|
|
value6 = r31 - 3;
|
|
if (value6 > -1) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [239, 191, 189]);
|
|
r33 = r2;
|
|
r34 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
r33 = r2;
|
|
r34 = value6;
|
|
break reducibleJoin33;
|
|
}
|
|
}
|
|
value31 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value31 < length)) {
|
|
return items2;
|
|
}
|
|
r1 = value31;
|
|
r2 = r33;
|
|
r31 = r34;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (r2) {
|
|
value4 = r31 - 3;
|
|
value5 = value4 > -1;
|
|
r33 = value4;
|
|
r34 = value5;
|
|
break reducibleJoin7;
|
|
}
|
|
r33 = r31;
|
|
r34 = r2;
|
|
break reducibleJoin7;
|
|
}
|
|
reducibleJoin18: while (true) {
|
|
if (r34) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [239, 191, 189]);
|
|
r37 = r33;
|
|
r39 = value3;
|
|
break reducibleJoin18;
|
|
}
|
|
r37 = r33;
|
|
r39 = value3;
|
|
break reducibleJoin18;
|
|
}
|
|
if (r39 < 128) {
|
|
value29 = r37 - 1;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value29 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [r39]);
|
|
r33 = value2;
|
|
r34 = value29;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
} else if (r39 < 2048) {
|
|
value25 = r37 - 2;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value25 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
value26 = r39 >> 6;
|
|
value27 = 63 & r39;
|
|
value28 = value26 | 192;
|
|
Reflect.apply(push, items2, [value28, value27 | 128]);
|
|
r33 = value2;
|
|
r34 = value25;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
} else if (r39 < 65536) {
|
|
value19 = r37 - 3;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value19 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
value20 = r39 >> 12;
|
|
value21 = r39 >> 6;
|
|
value22 = 63 & r39;
|
|
value23 = value20 | 224;
|
|
value24 = value21 & 63 | 128;
|
|
Reflect.apply(push, items2, [value23, value24, value22 | 128]);
|
|
r33 = value2;
|
|
r34 = value19;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
} else {
|
|
if (!(r39 < 1114112)) {
|
|
throw new global.Error('Invalid code point');
|
|
}
|
|
value11 = r37 - 4;
|
|
reducibleJoin33: while (true) {
|
|
reducibleJoin34: while (true) {
|
|
if (value11 < value) {
|
|
break reducibleJoin34;
|
|
}
|
|
push = items2.push;
|
|
value12 = r39 >> 18;
|
|
value13 = r39 >> 12;
|
|
value14 = r39 >> 6;
|
|
value15 = 63 & r39;
|
|
value16 = value12 | 240;
|
|
value17 = value13 & 63 | 128;
|
|
value18 = value14 & 63 | 128;
|
|
Reflect.apply(push, items2, [value16, value17, value18, value15 | 128]);
|
|
r33 = value2;
|
|
r34 = value11;
|
|
break reducibleJoin33;
|
|
}
|
|
return items2;
|
|
}
|
|
}
|
|
value31 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value31 < length)) {
|
|
return items2;
|
|
}
|
|
r1 = value31;
|
|
r2 = r33;
|
|
r31 = r34;
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function isEncoding_64262(a0) { // fn#64262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:8332, offset: 0x00cf792a, size: 138 bytes, params: 2, frame: 11
|
|
const String = global.String;
|
|
let value = String(a0);
|
|
value = value.toLowerCase();
|
|
if (value === 'hex') {
|
|
return true;
|
|
}
|
|
if (value === 'utf8') {
|
|
return true;
|
|
}
|
|
if (value === 'utf-8') {
|
|
return true;
|
|
}
|
|
if (value === 'ascii') {
|
|
return true;
|
|
}
|
|
if (value === 'latin1') {
|
|
return true;
|
|
}
|
|
if (value === 'binary') {
|
|
return true;
|
|
}
|
|
if (value === 'base64') {
|
|
return true;
|
|
}
|
|
if (value === 'ucs2') {
|
|
return true;
|
|
}
|
|
if (value === 'ucs-2') {
|
|
return true;
|
|
}
|
|
if (value === 'utf16le') {
|
|
return true;
|
|
}
|
|
if (value === 'utf-16le') {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function read_64322(a0, a1, a2, a3, a4) { // fn#64322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:23876, offset: 0x00cf969f, size: 362 bytes, params: 6, frame: 29
|
|
var r1;
|
|
var r12;
|
|
var r5;
|
|
var r16;
|
|
var r8;
|
|
var r9;
|
|
var r10;
|
|
var r7;
|
|
var r0;
|
|
var r2;
|
|
var value6;
|
|
var value7;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var Math;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
let value = 1;
|
|
const value2 = 8 * a4 - a3 - value;
|
|
const value3 = (value << value2) - value;
|
|
const value4 = value3 >> value;
|
|
const value5 = 0;
|
|
reducibleJoin2: while (true) {
|
|
if (a2) {
|
|
value6 = a4 - value;
|
|
r1 = value6;
|
|
break reducibleJoin2;
|
|
}
|
|
r1 = value5;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (a2) {
|
|
value7 = -1;
|
|
r12 = value7;
|
|
break reducibleJoin4;
|
|
}
|
|
r12 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
let property = a0[a1 + r1];
|
|
const value8 = r1 + r12;
|
|
const value9 = property & 127;
|
|
const value10 = property >> 7;
|
|
const value11 = -7 + value2;
|
|
if (value11 > value5) {
|
|
r1 = value8;
|
|
r5 = value11;
|
|
r16 = value9;
|
|
reducibleLoop5: while (true) {
|
|
property = a0[a1 + r1];
|
|
value12 = 256 * r16 + property;
|
|
value13 = r1 + r12;
|
|
value14 = r5 - 8;
|
|
if (value14 > value5) {
|
|
r1 = value13;
|
|
r5 = value14;
|
|
r16 = value12;
|
|
continue reducibleLoop5;
|
|
}
|
|
r8 = value14;
|
|
r9 = value12;
|
|
r10 = value13;
|
|
break reducibleLoop5;
|
|
}
|
|
} else {
|
|
r8 = value11;
|
|
r9 = value9;
|
|
r10 = value8;
|
|
}
|
|
const value15 = -r8;
|
|
const value16 = r9 & (value << value15) - value;
|
|
const value17 = r9 >> value15;
|
|
const value18 = r8 + a3;
|
|
if (value18 > value5) {
|
|
r8 = value16;
|
|
r9 = value18;
|
|
reducibleLoop7: while (true) {
|
|
property = a0[a1 + r10];
|
|
value19 = 256 * r8 + property;
|
|
value20 = r10 + r12;
|
|
value21 = r9 - 8;
|
|
if (value21 > value5) {
|
|
r8 = value19;
|
|
r9 = value21;
|
|
r10 = value20;
|
|
continue reducibleLoop7;
|
|
}
|
|
r5 = value19;
|
|
break reducibleLoop7;
|
|
}
|
|
} else {
|
|
r5 = value16;
|
|
}
|
|
if (value5 === value17) {
|
|
value24 = value - value4;
|
|
r0 = r5;
|
|
r1 = value24;
|
|
} else {
|
|
if (value17 === value3) {
|
|
if (r5) {
|
|
r7 = global.NaN;
|
|
} else {
|
|
reducibleJoin14: while (true) {
|
|
if (value10) {
|
|
value = -1;
|
|
r8 = value;
|
|
break reducibleJoin14;
|
|
}
|
|
r8 = value;
|
|
break reducibleJoin14;
|
|
}
|
|
value = Infinity * r8;
|
|
r7 = value;
|
|
}
|
|
return r7;
|
|
}
|
|
Math = global.Math;
|
|
value22 = r5 + Math.pow(2, a3);
|
|
value23 = value17 - value4;
|
|
r0 = value22;
|
|
r1 = value23;
|
|
}
|
|
reducibleJoin20: while (true) {
|
|
if (value10) {
|
|
value = -1;
|
|
r2 = value;
|
|
break reducibleJoin20;
|
|
}
|
|
r2 = value;
|
|
break reducibleJoin20;
|
|
}
|
|
Math = global.Math;
|
|
return r2 * r0 * Math.pow(2, r1 - a3);
|
|
}
|
|
|
|
function write_64323(a0, a1, a2, a3, a4, a5) { // fn#64323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:24209, offset: 0x00cf9809, size: 662 bytes, params: 7, frame: 33
|
|
var r17;
|
|
var r1;
|
|
var r5;
|
|
var r8;
|
|
var r13;
|
|
var r16;
|
|
var r9;
|
|
var r14;
|
|
var r15;
|
|
var r6;
|
|
var r7;
|
|
var Math;
|
|
var pow;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var floor;
|
|
var Math2;
|
|
var log;
|
|
var value12;
|
|
var Math3;
|
|
var LN2;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value30;
|
|
var value31;
|
|
let value = a4;
|
|
const value2 = 1;
|
|
const value3 = 8 * a5 - value - value2;
|
|
const value4 = (value2 << value3) - value2;
|
|
const value5 = value4 >> value2;
|
|
const value6 = 0;
|
|
reducibleJoin2: while (true) {
|
|
if (value !== 23) {
|
|
r17 = value6;
|
|
break reducibleJoin2;
|
|
}
|
|
Math = global.Math;
|
|
pow = Math.pow;
|
|
value7 = Reflect.apply(pow, Math, [2, -24]);
|
|
Math = global.Math;
|
|
pow = Math.pow;
|
|
value8 = value7 - Reflect.apply(pow, Math, [2, -77]);
|
|
r17 = value8;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (a3) {
|
|
r1 = value6;
|
|
break reducibleJoin4;
|
|
}
|
|
value9 = a5 - value2;
|
|
r1 = value9;
|
|
break reducibleJoin4;
|
|
}
|
|
const r2 = a3 ? value2 : -1;
|
|
reducibleJoin8: while (true) {
|
|
if (a1 < value6) {
|
|
r5 = value2;
|
|
break reducibleJoin8;
|
|
}
|
|
if (value6 !== a1) {
|
|
r5 = value6;
|
|
break reducibleJoin8;
|
|
}
|
|
if (value2 / a1 < value6) {
|
|
r5 = value2;
|
|
break reducibleJoin8;
|
|
}
|
|
r5 = value6;
|
|
break reducibleJoin8;
|
|
}
|
|
Math = global.Math;
|
|
const value11 = Math.abs(a1);
|
|
let isNaN = global.isNaN;
|
|
reducibleJoin23: while (true) {
|
|
reducibleJoin22: while (true) {
|
|
if (isNaN(value11)) {
|
|
isNaN = global.isNaN;
|
|
if (isNaN(value11)) {
|
|
r9 = value2;
|
|
break reducibleJoin22;
|
|
}
|
|
r9 = value6;
|
|
break reducibleJoin22;
|
|
}
|
|
if (value11 === Infinity) {
|
|
isNaN = global.isNaN;
|
|
if (isNaN(value11)) {
|
|
r9 = value2;
|
|
break reducibleJoin22;
|
|
}
|
|
r9 = value6;
|
|
break reducibleJoin22;
|
|
}
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
Math2 = global.Math;
|
|
log = Math2.log;
|
|
value12 = Reflect.apply(log, Math2, [value11]);
|
|
Math3 = global.Math;
|
|
LN2 = Math3.LN2;
|
|
value13 = Reflect.apply(floor, Math, [value12 / LN2]);
|
|
Math = global.Math;
|
|
pow = Math.pow;
|
|
value14 = Reflect.apply(pow, Math, [2, -value13]);
|
|
reducibleJoin12: while (true) {
|
|
if (value11 * value14 < value2) {
|
|
value15 = typeof value13 === 'bigint' ? value13 - 1n : +value13 - 1;
|
|
value16 = value14 * 2;
|
|
r8 = value16;
|
|
r13 = value15;
|
|
break reducibleJoin12;
|
|
}
|
|
r8 = value14;
|
|
r13 = value13;
|
|
break reducibleJoin12;
|
|
}
|
|
if (r13 + value5 >= value2) {
|
|
value18 = r17 / r8;
|
|
r16 = value18;
|
|
} else {
|
|
Math = global.Math;
|
|
value17 = r17 * Math.pow(2, value2 - value5);
|
|
r16 = value17;
|
|
}
|
|
value19 = value11 + r16;
|
|
reducibleJoin17: while (true) {
|
|
if (value19 * r8 >= 2) {
|
|
value20 = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
|
|
value21 = r8 / 2;
|
|
r16 = value21;
|
|
r17 = value20;
|
|
break reducibleJoin17;
|
|
}
|
|
r16 = r8;
|
|
r17 = r13;
|
|
break reducibleJoin17;
|
|
}
|
|
if (r17 + value5 >= value4) {
|
|
r8 = value4;
|
|
r13 = value6;
|
|
break reducibleJoin23;
|
|
}
|
|
if (r17 + value5 >= value2) {
|
|
value24 = value19 * r16 - value2;
|
|
Math = global.Math;
|
|
value25 = value24 * Math.pow(2, value);
|
|
value26 = r17 + value5;
|
|
r8 = value26;
|
|
r13 = value25;
|
|
break reducibleJoin23;
|
|
}
|
|
Math = global.Math;
|
|
pow = Math.pow;
|
|
value22 = value19 * Reflect.apply(pow, Math, [2, value5 - value2]);
|
|
Math = global.Math;
|
|
pow = Math.pow;
|
|
value23 = value22 * Reflect.apply(pow, Math, [2, value]);
|
|
r8 = value6;
|
|
r13 = value23;
|
|
break reducibleJoin23;
|
|
}
|
|
r8 = value4;
|
|
r13 = r9;
|
|
break reducibleJoin23;
|
|
}
|
|
if (value >= 8) {
|
|
r14 = r1;
|
|
r15 = r13;
|
|
r16 = value;
|
|
reducibleLoop24: while (true) {
|
|
value = a2 + r14;
|
|
a0[value] = 255 & r15;
|
|
value = r14 + r2;
|
|
value27 = r15 / 256;
|
|
value28 = r16 - 8;
|
|
if (value28 >= 8) {
|
|
r14 = value;
|
|
r15 = value27;
|
|
r16 = value28;
|
|
continue reducibleLoop24;
|
|
}
|
|
r1 = value;
|
|
r6 = value28;
|
|
r13 = value27;
|
|
break reducibleLoop24;
|
|
}
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
value = r8 << r6 | r13;
|
|
const value29 = value3 + r6;
|
|
if (value29 > value6) {
|
|
r6 = r1;
|
|
r7 = value29;
|
|
r8 = value;
|
|
reducibleLoop26: while (true) {
|
|
value = a2 + r6;
|
|
a0[value] = 255 & r8;
|
|
value = r6 + r2;
|
|
value30 = r8 / 256;
|
|
value31 = r7 - 8;
|
|
if (value31 > value6) {
|
|
r6 = value;
|
|
r7 = value31;
|
|
r8 = value30;
|
|
continue reducibleLoop26;
|
|
}
|
|
r1 = value;
|
|
break reducibleLoop26;
|
|
}
|
|
}
|
|
value = a2 + r1 - r2;
|
|
a0[value] = a0[value] | 128 * r5;
|
|
}
|
|
|
|
function normalizeArray_64343(a0, a1) { // fn#64343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:26754, offset: 0x00d7621e, size: 152 bytes, params: 3, frame: 19
|
|
var r2;
|
|
var r6;
|
|
var r8;
|
|
var r1;
|
|
var property;
|
|
var splice;
|
|
var value3;
|
|
var unshift;
|
|
var value4;
|
|
let value = a0.length - 1;
|
|
const value2 = 0;
|
|
if (value >= value2) {
|
|
r2 = value2;
|
|
r6 = value;
|
|
reducibleLoop1: while (true) {
|
|
property = a0[r6];
|
|
if (property === '.') {
|
|
splice = a0.splice;
|
|
Reflect.apply(splice, a0, [r6, 1]);
|
|
r8 = r2;
|
|
} else if (property === '..') {
|
|
splice = a0.splice;
|
|
Reflect.apply(splice, a0, [r6, 1]);
|
|
r8 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
} else {
|
|
reducibleJoin7: while (true) {
|
|
if (r2) {
|
|
splice = a0.splice;
|
|
Reflect.apply(splice, a0, [r6, 1]);
|
|
value = typeof r2 === 'bigint' ? r2 - 1n : +r2 - 1;
|
|
r8 = value;
|
|
break reducibleJoin7;
|
|
}
|
|
r8 = r2;
|
|
break reducibleJoin7;
|
|
}
|
|
}
|
|
value = typeof r6 === 'bigint' ? r6 - 1n : +r6 - 1;
|
|
if (value >= value2) {
|
|
r2 = r8;
|
|
r6 = value;
|
|
continue reducibleLoop1;
|
|
}
|
|
r1 = r8;
|
|
break reducibleLoop1;
|
|
}
|
|
} else {
|
|
r1 = value2;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (!a1) {
|
|
break reducibleJoin11;
|
|
}
|
|
value = typeof r1 === 'bigint' ? r1 : +r1;
|
|
value3 = typeof value === 'bigint' ? value - 1n : +value - 1;
|
|
if (!value) {
|
|
break reducibleJoin11;
|
|
}
|
|
r2 = value3;
|
|
reducibleLoop10: while (true) {
|
|
unshift = a0.unshift;
|
|
Reflect.apply(unshift, a0, ['..']);
|
|
value = typeof r2 === 'bigint' ? r2 : +r2;
|
|
value4 = typeof value === 'bigint' ? value - 1n : +value - 1;
|
|
if (value) {
|
|
r2 = value4;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _fun64352(a0, a1) { // fn#64352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:27846, offset: 0x01ba3ee5, size: 52 bytes, params: 3, frame: 11
|
|
if (typeof a0 !== 'string') {
|
|
throw new global.TypeError('Arguments to path.join must be strings');
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function relative_64353Trim(a0) { // fn#64354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:27993, owner: relative_64353.trim, offset: 0x00d763f9, size: 156 bytes, params: 2, frame: 18
|
|
var r1;
|
|
var r2;
|
|
var r5;
|
|
var r0;
|
|
var value2;
|
|
var value4;
|
|
let length = a0.length;
|
|
const value = 0;
|
|
if (value < length) {
|
|
if (a0[value] !== '') {
|
|
r2 = value;
|
|
} else {
|
|
r1 = value;
|
|
while (true) {
|
|
value2 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
length = a0.length;
|
|
if (!(value2 < length)) {
|
|
r2 = value2;
|
|
break;
|
|
}
|
|
if (a0[value2] === '') {
|
|
r1 = value2;
|
|
continue;
|
|
}
|
|
r2 = value2;
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
const value3 = a0.length - 1;
|
|
if (value3 >= value) {
|
|
if (a0[value3] !== '') {
|
|
r0 = value3;
|
|
} else {
|
|
r5 = value3;
|
|
while (true) {
|
|
value4 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
|
|
if (!(value4 >= value)) {
|
|
r0 = value4;
|
|
break;
|
|
}
|
|
if (a0[value4] === '') {
|
|
r5 = value4;
|
|
continue;
|
|
}
|
|
r0 = value4;
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
r0 = r2 > r0 ? [] : a0.slice(r2, r0 - r2 + 1);
|
|
return r0;
|
|
}
|
|
|
|
function _fun64359(a0, a1, a2) { // fn#64359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:28724, offset: 0x01ba40e9, size: 41 bytes, params: 4, frame: 13
|
|
const value = a1;
|
|
return a0.substr(value < 0 ? a0.length + value : value, a2);
|
|
}
|
|
|
|
function _fun64376(a0) { // fn#64376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:32978, offset: 0x00c37a0e, size: 15 bytes, params: 2, frame: 2
|
|
return ' ' + a0;
|
|
}
|
|
|
|
function exports_64405(a0) { // fn#64405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:35793, offset: 0x00e52815, size: 82 bytes, params: 2, frame: 4
|
|
const value = a0;
|
|
let r0 = value && typeof value === 'object' && typeof value.copy === 'function';
|
|
r0 = r0 && typeof value.fill === 'function' && typeof value.readUInt8 === 'function';
|
|
return r0;
|
|
}
|
|
|
|
function exports_64407(a0, a1) { // fn#64407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:35988, offset: 0x01ba53ef, size: 68 bytes, params: 3, frame: 16
|
|
a0.super_ = a1;
|
|
const Object = global.Object;
|
|
a0.prototype = Object.create(a1.prototype, {constructor: {'value': null, 'enumerable': false, 'writable': true,
|
|
'configurable': true, value: a0}});
|
|
}
|
|
|
|
function _fun64420(a0) { // fn#64420, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64421(a0) { // fn#64421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:37712, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function isRef(a0) { // fn#64468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:50230, offset: 0x01ba7a48, size: 25 bytes, params: 2, frame: 3
|
|
return typeof a0 === 'function' && a0.isJoi;
|
|
}
|
|
|
|
function _fun64471(a0) { // fn#64471, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64472(a0) { // fn#64472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:50467, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _fun64491(a0, a1) { // fn#64491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:54543, offset: 0x01ba879d, size: 326 bytes, params: 3, frame: 4
|
|
a1.errors = {'root': 'value', 'key': '"{{!key}}" ', messages: {wrapArrays: true}, any: {'unknown': 'is not allowed',
|
|
'invalid': 'contains an invalid value', 'empty': 'is not allowed to be empty', 'required': 'is required',
|
|
'allowOnly': 'must be one of {{valids}}', 'default': 'threw an error when running default method'},
|
|
alternatives: {base: 'not matching any of the allowed alternatives'}, array: {'base': 'must be an array',
|
|
'includes': 'at position {{pos}} does not match any of the allowed types',
|
|
'includesSingle': 'single value of "{{!key}}" does not match any of the allowed types',
|
|
'includesOne': 'at position {{pos}} fails because {{reason}}',
|
|
'includesOneSingle': 'single value of "{{!key}}" fails because {{reason}}',
|
|
'includesRequiredUnknowns': 'does not contain {{unknownMisses}} required value(s)',
|
|
'includesRequiredKnowns': 'does not contain {{knownMisses}}',
|
|
'includesRequiredBoth': 'does not contain {{knownMisses}} and {{unknownMisses}} other required value(s)',
|
|
'excludes': 'at position {{pos}} contains an excluded value',
|
|
'excludesSingle': 'single value of "{{!key}}" contains an excluded value',
|
|
'min': 'must contain at least {{limit}} items', 'max': 'must contain less than or equal to {{limit}} items',
|
|
'length': 'must contain {{limit}} items', 'ordered': 'at position {{pos}} fails because {{reason}}',
|
|
'orderedLength': 'at position {{pos}} fails because array must contain at most {{limit}} items',
|
|
'sparse': 'must not be a sparse array', 'unique': 'position {{pos}} contains a duplicate value'},
|
|
boolean: {base: 'must be a boolean'}, binary: {'base': 'must be a buffer or a string',
|
|
'min': 'must be at least {{limit}} bytes', 'max': 'must be less than or equal to {{limit}} bytes',
|
|
'length': 'must be {{limit}} bytes'}, date: {'base': 'must be a number of milliseconds or valid date string',
|
|
'format': 'must be a string with one of the following formats {{format}}', 'strict': 'must be a valid date',
|
|
'min': 'must be larger than or equal to "{{limit}}"', 'max': 'must be less than or equal to "{{limit}}"',
|
|
'isoDate': 'must be a valid ISO 8601 date', 'timestamp': null,
|
|
'ref': 'references "{{ref}}" which is not a date',
|
|
timestamp: {'javascript': 'must be a valid timestamp or number of milliseconds',
|
|
'unix': 'must be a valid timestamp or number of seconds'}}, function: {'base': 'must be a Function',
|
|
'arity': 'must have an arity of {{n}}', 'minArity': 'must have an arity greater or equal to {{n}}',
|
|
'maxArity': 'must have an arity lesser or equal to {{n}}', 'ref': 'must be a Joi reference'},
|
|
lazy: {'base': '!!schema error: lazy schema must be set',
|
|
'schema': '!!schema error: lazy schema function must return a schema'}, object: {'base': 'must be an object',
|
|
'child': '!!child "{{!child}}" fails because {{reason}}', 'min': 'must have at least {{limit}} children',
|
|
'max': 'must have less than or equal to {{limit}} children', 'length': 'must have {{limit}} children',
|
|
'allowUnknown': '!!"{{!child}}" is not allowed', 'with': 'missing required peer "{{peer}}"',
|
|
'without': 'conflict with forbidden peer "{{peer}}"', 'missing': 'must contain at least one of {{peers}}',
|
|
'xor': 'contains a conflict between exclusive peers {{peers}}', 'or': 'must contain at least one of {{peers}}',
|
|
'and': 'contains {{present}} without its required peers {{missing}}',
|
|
'nand': '!!"{{main}}" must not exist simultaneously with {{peers}}',
|
|
'assert': '!!"{{ref}}" validation failed because "{{ref}}" failed to {{message}}', 'rename': null,
|
|
'type': 'must be an instance of "{{type}}"', 'schema': 'must be a Joi instance',
|
|
rename: {'multiple': 'cannot rename child "{{from}}" because multiple renames are disabled and another key was already renamed to "{{to}}"',
|
|
'override': 'cannot rename child "{{from}}" because override is disabled and target "{{to}}" exists'}},
|
|
number: {'base': 'must be a number', 'min': 'must be larger than or equal to {{limit}}',
|
|
'max': 'must be less than or equal to {{limit}}', 'less': 'must be less than {{limit}}',
|
|
'greater': 'must be greater than {{limit}}', 'float': 'must be a float or double',
|
|
'integer': 'must be an integer', 'negative': 'must be a negative number',
|
|
'positive': 'must be a positive number', 'precision': 'must have no more than {{limit}} decimal places',
|
|
'ref': 'references "{{ref}}" which is not a number', 'multiple': 'must be a multiple of {{multiple}}'},
|
|
string: {'base': 'must be a string', 'min': 'length must be at least {{limit}} characters long',
|
|
'max': 'length must be less than or equal to {{limit}} characters long',
|
|
'length': 'length must be {{limit}} characters long', 'alphanum': 'must only contain alpha-numeric characters',
|
|
'token': 'must only contain alpha-numeric and underscore characters', 'regex': null,
|
|
'email': 'must be a valid email', 'uri': 'must be a valid uri',
|
|
'uriRelativeOnly': 'must be a valid relative uri',
|
|
'uriCustomScheme': 'must be a valid uri with a scheme matching the {{scheme}} pattern',
|
|
'isoDate': 'must be a valid ISO 8601 date', 'guid': 'must be a valid GUID',
|
|
'hex': 'must only contain hexadecimal characters', 'base64': 'must be a valid base64 string',
|
|
'hostname': 'must be a valid hostname', 'lowercase': 'must only contain lowercase characters',
|
|
'uppercase': 'must only contain uppercase characters', 'trim': 'must not have leading or trailing whitespace',
|
|
'creditCard': 'must be a credit card', 'ref': 'references "{{ref}}" which is not a number',
|
|
'ip': 'must be a valid ip address with a {{cidr}} CIDR',
|
|
'ipVersion': 'must be a valid ip address of one of the following versions {{version}} with a {{cidr}} CIDR',
|
|
regex: {'base': 'with value "{{!value}}" fails to match the required pattern: {{pattern}}',
|
|
'name': 'with value "{{!value}}" fails to match the {{name}} pattern',
|
|
invert: {'base': 'with value "{{!value}}" matches the inverted pattern: {{pattern}}',
|
|
'name': 'with value "{{!value}}" matches the inverted {{name}} pattern'}}}};
|
|
}
|
|
|
|
function _fun64494(a0) { // fn#64494, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64495(a0) { // fn#64495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:60080, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function merge_64499(a0, a1) { // fn#64499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:60533, offset: 0x01ba8aa5, size: 130 bytes, params: 3, frame: 15
|
|
var r4;
|
|
var r2;
|
|
var add;
|
|
var value2;
|
|
var remove;
|
|
let _set = a0._set;
|
|
let length = _set.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
for (r4 = value; true; r4 = value2) {
|
|
add = this.add;
|
|
_set = a0._set;
|
|
Reflect.apply(add, this, [_set[r4]]);
|
|
value2 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
_set = a0._set;
|
|
length = _set.length;
|
|
if (!(value2 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
length = a1._set.length;
|
|
if (value < length) {
|
|
for (r2 = value; true; r2 = value) {
|
|
remove = this.remove;
|
|
_set = a1._set;
|
|
Reflect.apply(remove, this, [_set[r2]]);
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
_set = a1._set;
|
|
length = _set.length;
|
|
if (!(value < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function values_64503(a0) { // fn#64503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:61322, offset: 0x01ba8d0a, size: 105 bytes, params: 2, frame: 14
|
|
var r3;
|
|
var _set;
|
|
var items2;
|
|
var length;
|
|
var value;
|
|
var property;
|
|
if (a0) {
|
|
if (a0.stripUndefined) {
|
|
items2 = [];
|
|
_set = this._set;
|
|
length = _set.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r3 = value;
|
|
while (true) {
|
|
_set = this._set;
|
|
property = _set[r3];
|
|
if (property !== undefined) {
|
|
items2.push(property);
|
|
}
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
_set = this._set;
|
|
length = _set.length;
|
|
if (value < length) {
|
|
r3 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
_set = this._set;
|
|
return _set.slice();
|
|
}
|
|
return this._set.slice();
|
|
}
|
|
|
|
function _fun64507(a0) { // fn#64507, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64508(a0) { // fn#64508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:61833, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _inherits_64512(a0, a1) { // fn#64512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:62609, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _inherits_64528(a0, a1) { // fn#64528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:66134, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun64529(a0) { // fn#64529, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64530(a0) { // fn#64530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:66021, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _base_64533(a0, a1, a2) { // fn#64533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:67289, offset: 0x01ba9c07, size: 412 bytes, params: 4, frame: 21
|
|
var r0;
|
|
var r1;
|
|
var r8;
|
|
var r3;
|
|
var r5;
|
|
var r2;
|
|
var convert;
|
|
var _flags;
|
|
var toLocaleLowerCase;
|
|
var toLocaleUpperCase;
|
|
var trim;
|
|
var _inner;
|
|
var replacements;
|
|
var length;
|
|
var property;
|
|
var replace;
|
|
var pattern;
|
|
var replacement;
|
|
var value2;
|
|
var truncate;
|
|
var _tests;
|
|
var name;
|
|
var value3;
|
|
var slice;
|
|
var arg;
|
|
var createError;
|
|
let value = a0;
|
|
reducibleJoin17: while (true) {
|
|
if (typeof value !== 'string') {
|
|
r2 = value;
|
|
break reducibleJoin17;
|
|
}
|
|
convert = a2.convert;
|
|
if (!convert) {
|
|
r2 = value;
|
|
break reducibleJoin17;
|
|
}
|
|
_flags = this._flags;
|
|
reducibleJoin7: while (true) {
|
|
if (_flags.case) {
|
|
_flags = this._flags;
|
|
if (_flags.case === 'upper') {
|
|
toLocaleUpperCase = value.toLocaleUpperCase;
|
|
value = Reflect.apply(toLocaleUpperCase, value, []);
|
|
r0 = value;
|
|
} else {
|
|
toLocaleLowerCase = value.toLocaleLowerCase;
|
|
value = Reflect.apply(toLocaleLowerCase, value, []);
|
|
r0 = value;
|
|
}
|
|
r1 = r0;
|
|
break reducibleJoin7;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin7;
|
|
}
|
|
_flags = this._flags;
|
|
trim = _flags.trim;
|
|
reducibleJoin9: while (true) {
|
|
if (trim) {
|
|
trim = r1.trim;
|
|
value = Reflect.apply(trim, r1, []);
|
|
r8 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
r8 = r1;
|
|
break reducibleJoin9;
|
|
}
|
|
_inner = this._inner;
|
|
replacements = _inner.replacements;
|
|
reducibleJoin12: while (true) {
|
|
if (!replacements) {
|
|
r5 = r8;
|
|
break reducibleJoin12;
|
|
}
|
|
_inner = this._inner;
|
|
replacements = _inner.replacements;
|
|
length = replacements.length;
|
|
value = 0;
|
|
if (!(value < length)) {
|
|
r5 = r8;
|
|
break reducibleJoin12;
|
|
}
|
|
r1 = r8;
|
|
r3 = value;
|
|
reducibleLoop11: while (true) {
|
|
_inner = this._inner;
|
|
replacements = _inner.replacements;
|
|
property = replacements[r3];
|
|
replace = r1.replace;
|
|
pattern = property.pattern;
|
|
replacement = property.replacement;
|
|
value = Reflect.apply(replace, r1, [pattern, replacement]);
|
|
value2 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
_inner = this._inner;
|
|
replacements = _inner.replacements;
|
|
length = replacements.length;
|
|
if (value2 < length) {
|
|
r1 = value;
|
|
r3 = value2;
|
|
continue reducibleLoop11;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
_flags = this._flags;
|
|
truncate = _flags.truncate;
|
|
if (!truncate) {
|
|
r2 = r5;
|
|
break reducibleJoin17;
|
|
}
|
|
_tests = this._tests;
|
|
length = _tests.length;
|
|
value = 0;
|
|
if (!(value < length)) {
|
|
r2 = r5;
|
|
break reducibleJoin17;
|
|
}
|
|
r8 = value;
|
|
reducibleLoop14: while (true) {
|
|
_tests = this._tests;
|
|
property = _tests[r8];
|
|
name = property.name;
|
|
if (name === 'max') {
|
|
slice = r5.slice;
|
|
arg = property.arg;
|
|
value = Reflect.apply(slice, r5, [value, arg]);
|
|
r2 = value;
|
|
break reducibleJoin17;
|
|
}
|
|
value3 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
_tests = this._tests;
|
|
length = _tests.length;
|
|
if (value3 < length) {
|
|
r8 = value3;
|
|
continue reducibleLoop14;
|
|
}
|
|
r2 = r5;
|
|
break reducibleJoin17;
|
|
}
|
|
}
|
|
const object = {value: r2};
|
|
value = null;
|
|
reducibleJoin19: while (true) {
|
|
if (typeof r2 === 'string') {
|
|
r1 = value;
|
|
break reducibleJoin19;
|
|
}
|
|
createError = this.createError;
|
|
value = Reflect.apply(createError, this, ['string.base', {value: r2}, a1, a2]);
|
|
r1 = value;
|
|
break reducibleJoin19;
|
|
}
|
|
object.errors = r1;
|
|
return object;
|
|
}
|
|
|
|
function _fun64536(a0, a1, a2) { // fn#64536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:68036, offset: 0x01ba9ddf, size: 136 bytes, params: 4, frame: 22
|
|
var r4;
|
|
var r8;
|
|
var r9;
|
|
var r2;
|
|
var r0;
|
|
var charAt;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var createError;
|
|
let value = a0;
|
|
const length = value.length;
|
|
const value2 = typeof length === 'bigint' ? length : +length;
|
|
const value3 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
|
|
const value4 = 0;
|
|
if (value2) {
|
|
r4 = value4;
|
|
r8 = 1;
|
|
r9 = value3;
|
|
reducibleLoop1: while (true) {
|
|
charAt = value.charAt;
|
|
value6 = Reflect.apply(charAt, value, [r9]) * r8;
|
|
value7 = r4 + (value6 - 9 * (value6 > 9));
|
|
value8 = r8 ^ 3;
|
|
value9 = typeof r9 === 'bigint' ? r9 : +r9;
|
|
value10 = typeof value9 === 'bigint' ? value9 - 1n : +value9 - 1;
|
|
if (value9) {
|
|
r4 = value7;
|
|
r8 = value8;
|
|
r9 = value10;
|
|
continue reducibleLoop1;
|
|
}
|
|
r2 = value7;
|
|
break reducibleLoop1;
|
|
}
|
|
} else {
|
|
r2 = value4;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
reducibleJoin4: while (true) {
|
|
if (r2 % 10 !== value4) {
|
|
break reducibleJoin4;
|
|
}
|
|
if (r2 > value4) {
|
|
r0 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
createError = this.createError;
|
|
value = Reflect.apply(createError, this, ['string.creditCard', {value: value}, a1, a2]);
|
|
r0 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun64540(a0, a1, a2) { // fn#64540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:68787, offset: 0x01baa019, size: 72 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const regexp = RegExp('^[a-zA-Z0-9]+$', '');
|
|
return regexp.test(value) ? value : this.createError('string.alphanum', {value: value}, a1, a2);
|
|
}
|
|
|
|
function _fun64542(a0, a1, a2) { // fn#64542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:68964, offset: 0x01baa080, size: 72 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
const regexp = RegExp('^\\w+$', '');
|
|
return regexp.test(value) ? value : this.createError('string.token', {value: value}, a1, a2);
|
|
}
|
|
|
|
function _fun64561(a0, a1, a2) { // fn#64561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:74121, offset: 0x01baae56, size: 74 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return a2.convert || value === value.toLocaleLowerCase() ? value : this.createError('string.lowercase',
|
|
{value: value}, a1, a2);
|
|
}
|
|
|
|
function _fun64563(a0, a1, a2) { // fn#64563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:74354, offset: 0x01baaed1, size: 74 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return a2.convert || value === value.toLocaleUpperCase() ? value : this.createError('string.uppercase',
|
|
{value: value}, a1, a2);
|
|
}
|
|
|
|
function _fun64565(a0, a1, a2) { // fn#64565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:74572, offset: 0x01baaf48, size: 74 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return a2.convert || value === value.trim() ? value : this.createError('string.trim', {value: value}, a1, a2);
|
|
}
|
|
|
|
function _fun64577(a0) { // fn#64577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:76158, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _inherits_64597(a0, a1) { // fn#64597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:90570, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _base_64600(a0, a1, a2) { // fn#64600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:91664, offset: 0x01bae168, size: 278 bytes, params: 4, frame: 21
|
|
var r1;
|
|
var float;
|
|
var Math;
|
|
var value6;
|
|
const object = {};
|
|
let value = null;
|
|
object.errors = value;
|
|
object.value = a0;
|
|
if (typeof a0 === 'string') {
|
|
if (a2.convert) {
|
|
float = global.parseFloat(a0);
|
|
object.value = global.isNaN(float) ? global.NaN : global.isFinite(a0) ? float : global.NaN;
|
|
}
|
|
}
|
|
const r2 = typeof object.value === 'number' && !global.isNaN(object.value);
|
|
if (a2.convert) {
|
|
if ('precision' in this._flags) {
|
|
if (r2) {
|
|
Math = global.Math;
|
|
value6 = Math.pow(10, this._flags.precision);
|
|
Math = global.Math;
|
|
object.value = Math.round(object.value * value6) / value6;
|
|
}
|
|
}
|
|
}
|
|
if (r2) {
|
|
r1 = value;
|
|
} else {
|
|
value = this.createError('number.base', value, a1, a2);
|
|
r1 = value;
|
|
}
|
|
object.errors = r1;
|
|
return object;
|
|
}
|
|
|
|
function _fun64606(a0, a1, a2) { // fn#64606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92728, offset: 0x01bae44d, size: 51 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value < 0 ? value : this.createError('number.negative', {value: value}, a1, a2);
|
|
}
|
|
|
|
function _fun64608(a0, a1, a2) { // fn#64608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:92894, offset: 0x01bae49f, size: 51 bytes, params: 4, frame: 18
|
|
const value = a0;
|
|
return value > 0 ? value : this.createError('number.positive', {value: value}, a1, a2);
|
|
}
|
|
|
|
function _inherits_64619(a0, a1) { // fn#64619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:94141, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _base_64622(a0, a1, a2) { // fn#64622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:95230, offset: 0x01bae922, size: 178 bytes, params: 4, frame: 19
|
|
const value = a0;
|
|
const object = {value: value};
|
|
const truthySet = this._inner.truthySet;
|
|
const has = truthySet.has;
|
|
const insensitive = this._flags.insensitive;
|
|
const value2 = null;
|
|
const value3 = Reflect.apply(has, truthySet, [value, value2, value2, insensitive]);
|
|
object.value = value3 ? !!value3 : !this._inner.falsySet.has(value, value2, value2,
|
|
this._flags.insensitive) && value;
|
|
object.errors = typeof object.value === 'boolean' ? value2 : this.createError('boolean.base', value2, a1, a2);
|
|
return object;
|
|
}
|
|
|
|
function insensitive_64625(a0) { // fn#64625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:96005, offset: 0x01baeaf6, size: 63 bytes, params: 2, frame: 11
|
|
let value = a0 === undefined;
|
|
const r2 = value || !!a0;
|
|
if (r2 !== this._flags.insensitive) {
|
|
value = this.clone();
|
|
value._flags.insensitive = r2;
|
|
return value;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function _inherits_64628(a0, a1) { // fn#64628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:96648, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun64629(a0) { // fn#64629, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64630(a0) { // fn#64630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:96535, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _base_64633(a0, a1, a2) { // fn#64633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:97718, offset: 0x01baed7f, size: 388 bytes, params: 4, frame: 30
|
|
var r9;
|
|
var r0;
|
|
var r8;
|
|
var r12;
|
|
var r17;
|
|
var r1;
|
|
var baseType;
|
|
var property;
|
|
var schema;
|
|
var is;
|
|
var _validate;
|
|
var ref;
|
|
var reference;
|
|
var parent;
|
|
var errors;
|
|
var then;
|
|
var otherwise;
|
|
var concat;
|
|
var createError;
|
|
const items2 = [];
|
|
let _inner = this._inner;
|
|
let matches = _inner.matches;
|
|
let length = matches.length;
|
|
let _settings = this._settings;
|
|
reducibleJoin2: while (true) {
|
|
if (_settings) {
|
|
_settings = this._settings;
|
|
baseType = _settings.baseType;
|
|
r9 = baseType;
|
|
break reducibleJoin2;
|
|
}
|
|
r9 = _settings;
|
|
break reducibleJoin2;
|
|
}
|
|
let value = 0;
|
|
if (value < length) {
|
|
r0 = items2;
|
|
r8 = value;
|
|
reducibleLoop3: while (true) {
|
|
_inner = this._inner;
|
|
matches = _inner.matches;
|
|
property = matches[r8];
|
|
schema = property.schema;
|
|
if (schema) {
|
|
_validate = schema._validate;
|
|
value = Reflect.apply(_validate, schema, [a0, a1, a2]);
|
|
errors = value.errors;
|
|
if (!errors) {
|
|
return value;
|
|
}
|
|
concat = r0.concat;
|
|
errors = value.errors;
|
|
value = Reflect.apply(concat, r0, [errors]);
|
|
r12 = value;
|
|
} else {
|
|
is = property.is;
|
|
_validate = is._validate;
|
|
ref = property.ref;
|
|
reference = a1.reference;
|
|
reducibleJoin6: while (true) {
|
|
if (reference) {
|
|
r12 = reference;
|
|
break reducibleJoin6;
|
|
}
|
|
parent = a1.parent;
|
|
r12 = parent;
|
|
break reducibleJoin6;
|
|
}
|
|
value = Reflect.apply(ref, property, [r12, a2]);
|
|
parent = a1.parent;
|
|
errors = Reflect.apply(_validate, is, [value, null, a2, parent]).errors;
|
|
if (errors) {
|
|
otherwise = property.otherwise;
|
|
if (otherwise) {
|
|
otherwise = property.otherwise;
|
|
return otherwise._validate(a0, a1, a2);
|
|
}
|
|
reducibleJoin19: while (true) {
|
|
if (r9) {
|
|
if (r8 === length - 1) {
|
|
return r9._validate(a0, a1, a2);
|
|
}
|
|
r12 = r0;
|
|
break reducibleJoin19;
|
|
}
|
|
r12 = r0;
|
|
break reducibleJoin19;
|
|
}
|
|
} else {
|
|
then = property.then;
|
|
reducibleJoin19: while (true) {
|
|
reducibleJoin10: while (true) {
|
|
if (then) {
|
|
then = property.then;
|
|
if (then) {
|
|
r17 = then;
|
|
break reducibleJoin10;
|
|
}
|
|
r17 = r9;
|
|
break reducibleJoin10;
|
|
}
|
|
if (r9) {
|
|
then = property.then;
|
|
if (then) {
|
|
r17 = then;
|
|
break reducibleJoin10;
|
|
}
|
|
r17 = r9;
|
|
break reducibleJoin10;
|
|
}
|
|
r12 = r0;
|
|
break reducibleJoin19;
|
|
}
|
|
_validate = r17._validate;
|
|
return Reflect.apply(_validate, r17, [a0, a1, a2]);
|
|
}
|
|
}
|
|
}
|
|
value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
if (!(value < length)) {
|
|
r1 = r12;
|
|
length = r1.length;
|
|
reducibleJoin22: while (true) {
|
|
if (length) {
|
|
break reducibleJoin22;
|
|
}
|
|
createError = this.createError;
|
|
value = Reflect.apply(createError, this, ['alternatives.base', null, a1, a2]);
|
|
r1 = value;
|
|
break reducibleJoin22;
|
|
}
|
|
return {errors: r1};
|
|
}
|
|
r0 = r12;
|
|
r8 = value;
|
|
continue reducibleLoop3;
|
|
}
|
|
} else {
|
|
r1 = items2;
|
|
}
|
|
reducibleJoin22: while (true) {
|
|
if (r1.length) {
|
|
break reducibleJoin22;
|
|
}
|
|
createError = this.createError;
|
|
value = Reflect.apply(createError, this, ['alternatives.base', null, a1, a2]);
|
|
r1 = value;
|
|
break reducibleJoin22;
|
|
}
|
|
return {errors: r1};
|
|
}
|
|
|
|
function _inherits_64638(a0, a1) { // fn#64638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:100216, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun64639(a0) { // fn#64639, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64640(a0) { // fn#64640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:100103, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _fun64684(a0, a1, a2, a3, a4) { // fn#64684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:111656, offset: 0x01bb13ae, size: 130 bytes, params: 6, frame: 21
|
|
var r4;
|
|
var property;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var call;
|
|
if (a0 !== undefined) {
|
|
var length = a1.length;
|
|
var value = 0;
|
|
if (value < length) {
|
|
r4 = value;
|
|
loopExit2: while (true) {
|
|
property = a1[r4];
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
call = hasOwnProperty.call;
|
|
if (!Reflect.apply(call, hasOwnProperty, [a2, property])) {
|
|
return this.createError('object.with', {peer: property}, a3, a4);
|
|
}
|
|
if (a2[property] === undefined) {
|
|
return this.createError('object.with', {peer: property}, a3, a4);
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = a1.length;
|
|
if (value < length) {
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
break loopExit2;
|
|
}
|
|
return a0;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function without(a0, a1, a2, a3, a4) { // fn#64685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:111871, offset: 0x01bb1430, size: 130 bytes, params: 6, frame: 21
|
|
var r4;
|
|
var property;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var call;
|
|
if (a0 !== undefined) {
|
|
var length = a1.length;
|
|
var value = 0;
|
|
if (value < length) {
|
|
r4 = value;
|
|
reducibleLoop2: while (true) {
|
|
property = a1[r4];
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
call = hasOwnProperty.call;
|
|
if (Reflect.apply(call, hasOwnProperty, [a2, property])) {
|
|
reducibleJoin4: while (true) {
|
|
if (a2[property] !== undefined) {
|
|
return this.createError('object.without', {peer: property}, a3, a4);
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = a1.length;
|
|
if (!(value < length)) {
|
|
return a0;
|
|
}
|
|
r4 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function xor_64686(a0, a1, a2, a3, a4) { // fn#64686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:112084, offset: 0x01bb14b2, size: 208 bytes, params: 6, frame: 25
|
|
var r8;
|
|
var r4;
|
|
var property;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
const value = a0;
|
|
const items2 = [];
|
|
let length = a1.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r8 = value2;
|
|
while (true) {
|
|
property = a1[r8];
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
value3 = hasOwnProperty.call(a2, property);
|
|
if (value3) {
|
|
value4 = a2[property] !== undefined;
|
|
r4 = value4;
|
|
} else {
|
|
r4 = value3;
|
|
}
|
|
if (!r4) {
|
|
continue;
|
|
}
|
|
items2.push(property);
|
|
value5 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
|
|
length = a1.length;
|
|
if (value5 < length) {
|
|
r8 = value5;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items2.length === 1 ? value : value2 === items2.length ? this.createError('object.missing', {peers: a1}, a3,
|
|
a4) : this.createError('object.xor', {peers: a1}, a3, a4);
|
|
}
|
|
|
|
function and_64688(a0, a1, a2, a3, a4) { // fn#64688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:112542, offset: 0x01bb15fe, size: 171 bytes, params: 6, frame: 23
|
|
var r5;
|
|
var r0;
|
|
var property;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var call;
|
|
var push;
|
|
var length3;
|
|
var createError;
|
|
const items3 = [];
|
|
const items2 = [];
|
|
const length = a1.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r5 = value;
|
|
reducibleLoop1: while (true) {
|
|
property = a1[r5];
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
call = hasOwnProperty.call;
|
|
reducibleJoin5: while (true) {
|
|
reducibleJoin3: while (true) {
|
|
if (Reflect.apply(call, hasOwnProperty, [a2, property])) {
|
|
if (a2[property] !== undefined) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [property]);
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
push = items3.push;
|
|
Reflect.apply(push, items3, [property]);
|
|
break reducibleJoin5;
|
|
}
|
|
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value < length) {
|
|
r5 = value;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const length2 = items3.length;
|
|
value = null;
|
|
reducibleJoin9: while (true) {
|
|
if (length2 === length) {
|
|
r0 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
length3 = items2.length;
|
|
if (length3 === length) {
|
|
r0 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
createError = this.createError;
|
|
value = Reflect.apply(createError, this, ['object.and', {present: items2, missing: items3}, a3, a4]);
|
|
r0 = value;
|
|
break reducibleJoin9;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function Topo() { // fn#64691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:113136, offset: 0x01bb17e9, size: 27 bytes, params: 1, frame: 2
|
|
this._items = [];
|
|
this.nodes = [];
|
|
}
|
|
|
|
function mergeSort(a0, a1) { // fn#64695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:114197, offset: 0x01bb1ad7, size: 57 bytes, params: 3, frame: 5
|
|
return a0.sort === a1.sort ? 0 : a0.sort < a1.sort ? -1 : 1;
|
|
}
|
|
|
|
function _fun64698(a0, a1, a2) { // fn#64698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:115499, offset: 0x01bb1f9f, size: 313 bytes, params: 4, frame: 21
|
|
let value = a2(1);
|
|
const object = value.object;
|
|
const object2 = {};
|
|
object2.abortEarly = value.boolean();
|
|
object2.convert = value.boolean();
|
|
object2.allowUnknown = value.boolean();
|
|
object2.skipFunctions = value.boolean();
|
|
const items2 = [value.boolean()];
|
|
const object3 = value.object;
|
|
const object4 = {};
|
|
object4.arrays = value.boolean();
|
|
object4.objects = value.boolean();
|
|
const value3 = Reflect.apply(object3, value, [object4]);
|
|
items2[1] = value3.or('arrays', 'objects');
|
|
object2.stripUnknown = items2;
|
|
object2.language = value.object();
|
|
object2.presence = value.string().only('required', 'optional', 'forbidden', 'ignore');
|
|
object2.raw = value.boolean();
|
|
object2.context = value.object();
|
|
object2.strip = value.boolean();
|
|
object2.noDefaults = value.boolean();
|
|
value = Reflect.apply(object, value, [object2]);
|
|
value = value.strict();
|
|
a1.options = value;
|
|
}
|
|
|
|
function _inherits_64700(a0, a1) { // fn#64700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:115960, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _inherits_64706(a0, a1) { // fn#64706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:117610, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun64707(a0) { // fn#64707, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
|
|
return typeof a0;
|
|
}
|
|
|
|
function _fun64708(a0) { // fn#64708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:117497, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
|
|
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
|
}
|
|
|
|
function _fillMissedErrors(a0, a1, a2, a3) { // fn#64729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:124684, offset: 0x01bb38c6, size: 289 bytes, params: 5, frame: 23
|
|
var r4;
|
|
var r5;
|
|
var r10;
|
|
var r3;
|
|
var property;
|
|
var object2;
|
|
let object = [];
|
|
let length = a1.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r4 = value;
|
|
r5 = value;
|
|
while (true) {
|
|
property = a1[r4];
|
|
value = property._getLabel();
|
|
if (value) {
|
|
object.push(value);
|
|
r10 = r5;
|
|
} else {
|
|
r10 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
}
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = a1.length;
|
|
if (value < length) {
|
|
r4 = value;
|
|
r5 = r10;
|
|
continue;
|
|
}
|
|
r3 = r10;
|
|
break;
|
|
}
|
|
} else {
|
|
r3 = value;
|
|
}
|
|
length = object.length;
|
|
const push = a0.push;
|
|
const createError = this.createError;
|
|
const object3 = {};
|
|
if (length) {
|
|
if (r3) {
|
|
object3.knownMisses = object;
|
|
object3.unknownMisses = r3;
|
|
Reflect.apply(push, a0, [Reflect.apply(createError, this, ['array.includesRequiredBoth', object3,
|
|
{key: a2.key,
|
|
path: a2.path}, a3])]);
|
|
} else {
|
|
object2 = {knownMisses: object};
|
|
object3.key = a2.key;
|
|
object3.path = a2.path;
|
|
Reflect.apply(push, a0, [Reflect.apply(createError, this, ['array.includesRequiredKnowns', object2, object3,
|
|
a3])]);
|
|
}
|
|
} else {
|
|
object = {unknownMisses: r3};
|
|
object3.key = a2.key;
|
|
object3.path = a2.path;
|
|
Reflect.apply(push, a0, [Reflect.apply(createError, this, ['array.includesRequiredUnknowns', object, object3,
|
|
a3])]);
|
|
}
|
|
}
|
|
|
|
function _inherits_64734(a0, a1) { // fn#64734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:125509, offset: 0x01b9c4a5, size: 274 bytes, params: 3, frame: 22
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var prototype;
|
|
var setPrototypeOf;
|
|
var getOwnPropertyNames;
|
|
var value3;
|
|
var length;
|
|
var value4;
|
|
var property;
|
|
var getOwnPropertyDescriptor;
|
|
var value5;
|
|
var configurable;
|
|
var value6;
|
|
var defineProperty;
|
|
var value7;
|
|
const value = a1;
|
|
const value2 = typeof value;
|
|
if (value2 !== 'function') {
|
|
reducibleJoin2: while (true) {
|
|
if (value !== null) {
|
|
throw new global.TypeError('Super expression must either be null or a function, not ' + value2);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
let Object = global.Object;
|
|
const create = Object.create;
|
|
reducibleJoin4: while (true) {
|
|
if (value) {
|
|
prototype = value.prototype;
|
|
r1 = prototype;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
a0.prototype = Reflect.apply(create, Object, [r1, {constructor: {'value': null, 'enumerable': false,
|
|
'writable': true, 'configurable': true, value: a0}}]);
|
|
reducibleJoin15: while (true) {
|
|
if (!value) {
|
|
break reducibleJoin15;
|
|
}
|
|
Object = global.Object;
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Object = global.Object;
|
|
if (setPrototypeOf) {
|
|
setPrototypeOf = Object.setPrototypeOf;
|
|
Reflect.apply(setPrototypeOf, Object, [a0, value]);
|
|
break reducibleJoin15;
|
|
}
|
|
getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
value3 = Reflect.apply(getOwnPropertyNames, Object, [value]);
|
|
length = value3.length;
|
|
value4 = 0;
|
|
if (!(value4 < length)) {
|
|
break reducibleJoin15;
|
|
}
|
|
r6 = value4;
|
|
reducibleLoop7: while (true) {
|
|
property = value3[r6];
|
|
Object = global.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
value5 = Reflect.apply(getOwnPropertyDescriptor, Object, [value, property]);
|
|
reducibleJoin9: while (true) {
|
|
if (value5) {
|
|
configurable = value5.configurable;
|
|
r0 = configurable;
|
|
break reducibleJoin9;
|
|
}
|
|
r0 = value5;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (r0) {
|
|
value6 = a0[property] === undefined;
|
|
r0 = value6;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r0) {
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
Reflect.apply(defineProperty, Object, [a0, property, value5]);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
|
|
length = value3.length;
|
|
if (value7 < length) {
|
|
r6 = value7;
|
|
continue reducibleLoop7;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun64745(a0, a1) { // fn#64745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8263:127600, offset: 0x01bb3efb, size: 515 bytes, params: 3, frame: 8
|
|
a0.exports = {'_args': null, '_from': '[email protected]', '_id': '[email protected]', '_inCache': true, '_location': '/joi',
|
|
'_nodeVersion': '6.9.1', '_npmOperationalInternal': null, '_npmUser': null, '_npmVersion': '3.10.10',
|
|
_args: [[{'raw': '[email protected]', 'scope': null, 'escapedName': 'joi', 'name': 'joi', 'rawSpec': '10.0.5',
|
|
'spec': '10.0.5', 'type': 'version'}, '/Users/jeff/projects/joi-browser']],
|
|
_npmOperationalInternal: {'host': 'packages-12-west.internal.npmjs.com',
|
|
'tmp': 'tmp/joi-10.0.5.tgz_1480956525182_0.0934728232678026'}, _npmUser: {'name': 'marsup',
|
|
'email': '[email protected]'}, _phantomChildren: {}, _requested: {'raw': '[email protected]', 'scope': null,
|
|
'escapedName': 'joi', 'name': 'joi', 'rawSpec': '10.0.5', 'spec': '10.0.5', 'type': 'version'},
|
|
_requiredBy: ['#DEV:/'], _resolved: 'https://registry.npmjs.org/joi/-/joi-10.0.5.tgz',
|
|
_shasum: '2e43af9bf24d2d5745852e9ab968c85be357bd6a', _shrinkwrap: null, _spec: '[email protected]',
|
|
_where: '/Users/jeff/projects/joi-browser', bugs: {url: 'https://github.com/hapijs/joi/issues'},
|
|
dependencies: {'hoek': '4.x.x', 'isemail': '2.x.x', 'items': '2.x.x', 'topo': '2.x.x'},
|
|
description: 'Object schema validation', devDependencies: {'code': '4.x.x', 'lab': '11.x.x',
|
|
'markdown-toc': '0.13.x'}, directories: {}, dist: {'shasum': '2e43af9bf24d2d5745852e9ab968c85be357bd6a',
|
|
'tarball': 'https://registry.npmjs.org/joi/-/joi-10.0.5.tgz'}, engines: {node: '>=4.0.0'},
|
|
gitHead: 'abfe727885af779a676e6a205ee15cdc8b435691', homepage: 'https://github.com/hapijs/joi',
|
|
keywords: ['hapi', 'schema', 'validation'], license: 'BSD-3-Clause', main: 'lib/index.js',
|
|
maintainers: [{'name': 'hueniverse', 'email': '[email protected]'}, {'name': 'marsup',
|
|
'email': '[email protected]'}], name: 'joi', optionalDependencies: {}, readme: 'ERROR: No README data found!',
|
|
repository: {'type': 'git', 'url': 'git://github.com/hapijs/joi.git'},
|
|
scripts: {'test': 'lab -t 100 -a code -L', 'test-cov-html': 'lab -r html -o coverage.html -a code',
|
|
'test-debug': 'node $NODE_DEBUG_OPTION ./node_modules/.bin/lab -a code', 'toc': 'node generate-readme-toc.js',
|
|
'version': 'npm run toc && git add API.md README.md'}, version: '10.0.5'};
|
|
}
|
|
|
|
global.__d(_fun64114, 8078, []) /* metro module 8078 */;
|