222 lines
9.5 KiB
JavaScript
222 lines
9.5 KiB
JavaScript
/* Metro module 8023; source: unknown; dependencies: [44] */
|
|
function _fun63704(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8201:6, offset: 0x01b8c13b, size: 34 bytes, params: 8, frame: 2
|
|
let env0_0 = require;
|
|
module.exports = function(a0) {
|
|
var env0_0 = a0;
|
|
var closure = _fun63706;
|
|
var env0_1 = closure;
|
|
var closure2 = _fun63707;
|
|
closure2.isRequired = closure.bind(null, true);
|
|
return closure2;
|
|
};
|
|
function exports_63705(a0) { // fn#63705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8201:53, offset: 0x01b8c15d, size: 46 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const checkType2 = checkType;
|
|
const chainedCheckType2 = chainedCheckType;
|
|
chainedCheckType2.isRequired = checkType2.bind(null, true);
|
|
return chainedCheckType2;
|
|
function checkType(a0, a1, a2, a3, a4) { // fn#63706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8201:104, owner: exports_63705.checkType, offset: 0x01b8c18b, size: 674 bytes, params: 6, frame: 49
|
|
var r9;
|
|
var r2;
|
|
var r13;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value2;
|
|
var property;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var moduleValue;
|
|
var value6;
|
|
var Object;
|
|
var value8;
|
|
var length;
|
|
var Array;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var array;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var properties;
|
|
var properties2;
|
|
var properties3;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var property3;
|
|
var moduleValue2;
|
|
var value18;
|
|
var JSON;
|
|
var stringify;
|
|
var value19;
|
|
var keys;
|
|
var value20;
|
|
var apply;
|
|
var items2;
|
|
var value21;
|
|
var moduleValue3;
|
|
var message;
|
|
var value22;
|
|
let value = a4;
|
|
if (a1[a2]) {
|
|
property = a1[a2];
|
|
value3 = typeof property;
|
|
reducibleJoin5: while (true) {
|
|
if (value) {
|
|
r9 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
value4 = '(unknown)';
|
|
r9 = value4;
|
|
break reducibleJoin5;
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (value3 === 'object') {
|
|
break reducibleJoin7;
|
|
}
|
|
value5 = environment.__proto__;
|
|
moduleValue = require(44) /* metro dependency 44 */;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value6 = 'Invalid ' + r9 + ' `' + a2 + '` of type `' + value3 + '` supplied to `' + a3 + '`, expected `object`.';
|
|
moduleValue(false, value6);
|
|
break reducibleJoin7;
|
|
}
|
|
Object = global.Object;
|
|
value8 = Object.assign({}, a1[a2], env0_0);
|
|
length = arguments.length;
|
|
Array = global.Array;
|
|
value10 = 5;
|
|
value11 = 0;
|
|
reducibleJoin9: while (true) {
|
|
if (length > value10) {
|
|
value12 = length - value10;
|
|
r2 = value12;
|
|
break reducibleJoin9;
|
|
}
|
|
r2 = value11;
|
|
break reducibleJoin9;
|
|
}
|
|
array = new Array();
|
|
if (value10 < length) {
|
|
r2 = value10;
|
|
reducibleLoop10: while (true) {
|
|
value15 = r2 - value10;
|
|
array[value15] = arguments[r2];
|
|
value16 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value16 < length) {
|
|
r2 = value16;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleLoop10;
|
|
}
|
|
}
|
|
value17 = environment.__proto__;
|
|
properties = Object.keys(value8);
|
|
properties2 = 0;
|
|
properties3 = properties.length;
|
|
if (properties !== undefined) {
|
|
r13 = properties2;
|
|
reducibleLoop12: while (true) {
|
|
propertyName = properties[r13];
|
|
propertyName2 = r13 + 1;
|
|
if (propertyName === undefined) {
|
|
break reducibleLoop12;
|
|
}
|
|
property3 = env0_0[propertyName];
|
|
reducibleJoin15: while (true) {
|
|
if (property3) {
|
|
break reducibleJoin15;
|
|
}
|
|
moduleValue2 = require(dependencyMap[value11]);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value18 = 'Invalid props.' + a2 + ' key `' + propertyName + '` supplied to `' + a3 + '`.\nBad object: ';
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
value19 = value18 + Reflect.apply(stringify, JSON, [a1[a2], null, ' ']);
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
Object = global.Object;
|
|
keys = Object.keys;
|
|
value20 = Reflect.apply(stringify, JSON, [Reflect.apply(keys, Object, [env0_0]), null, ' ']);
|
|
moduleValue2(false, value19 + '\nValid keys: ' + value20);
|
|
break reducibleJoin15;
|
|
}
|
|
apply = property3.apply;
|
|
items2 = [property, propertyName, a3, value];
|
|
concat = items2.concat;
|
|
value21 = Reflect.apply(apply, property3, [undefined, Reflect.apply(concat, items2, [array])]);
|
|
if (value21) {
|
|
moduleValue3 = require(dependencyMap[value11]);
|
|
message = value21.message;
|
|
value22 = message + '\nBad object: ';
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
moduleValue3(false, value22 + Reflect.apply(stringify, JSON, [a1[a2], null, ' ']));
|
|
r13 = propertyName2;
|
|
continue reducibleLoop12;
|
|
}
|
|
r13 = propertyName2;
|
|
continue reducibleLoop12;
|
|
}
|
|
}
|
|
} else {
|
|
reducibleJoin17: while (true) {
|
|
if (a0) {
|
|
value = environment.__proto__;
|
|
value = require(44) /* metro dependency 44 */;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value2 = 'Required object `' + a2 + '` was not specified in `' + a3 + '`.';
|
|
value(false, value2);
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
}
|
|
}
|
|
|
|
function chainedCheckType(a0, a1, a2, a3) { // fn#63707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8201:796, owner: exports_63705.chainedCheckType, offset: 0x01b8c42d, size: 151 bytes, params: 5, frame: 17
|
|
var r0;
|
|
var value4;
|
|
var value7;
|
|
var value8;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const value2 = 4;
|
|
reducibleJoin2: while (true) {
|
|
if (length > value2) {
|
|
value4 = length - value2;
|
|
r0 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
r0 = 0;
|
|
break reducibleJoin2;
|
|
}
|
|
const array = new Array();
|
|
if (value2 < length) {
|
|
r0 = value2;
|
|
reducibleLoop3: while (true) {
|
|
value7 = r0 - value2;
|
|
array[value7] = arguments[r0];
|
|
value8 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value8 < length) {
|
|
r0 = value8;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
const checkTypeBinding = checkType;
|
|
const items2 = [false, a0, a1, a2, a3];
|
|
return checkTypeBinding.apply(undefined, items2.concat(array));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun63704, 8023, [44]) /* metro module 8023, dependencies: [44] */;
|