1163 lines
46 KiB
React
1163 lines
46 KiB
React
/* Metro module 7851; source: unknown; dependencies: [5, 6, 7, 15, 17, 18, 57, 31, 33, 7852, 7853] */
|
|
import Module00005 from './module-00005.js'; /* Metro dependency 5 */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun62660(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6, offset: 0x01b62bd9, size: 569 bytes, params: 8, frame: 25
|
|
const env0_0 = require;
|
|
const missingTag = function() {
|
|
return null;
|
|
};
|
|
const SvgAst2 = SvgAst;
|
|
const SvgXml2 = SvgXml;
|
|
const getStyle2 = getStyle;
|
|
const astToReact2 = astToReact;
|
|
const repeat_62672 = function(a0, a1) {
|
|
var r2;
|
|
var r3;
|
|
var r0;
|
|
var value4;
|
|
var value5;
|
|
var value = typeof a1 === 'bigint' ? a1 : +a1;
|
|
var value2 = typeof value === 'bigint' ? value - 1n : +value - 1;
|
|
var value3 = '';
|
|
if (value) {
|
|
r2 = value3;
|
|
for (r3 = value2; true; r3 = value5) {
|
|
value = r2 + a0;
|
|
value4 = typeof r3 === 'bigint' ? r3 : +r3;
|
|
value5 = typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1;
|
|
if (!value4) {
|
|
r0 = value;
|
|
break;
|
|
}
|
|
r2 = value;
|
|
}
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
};
|
|
const parse_626732 = parse_62673;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = ClassCallCheck;
|
|
ReactModule;
|
|
let value = ReactModule;
|
|
const Component = value.Component;
|
|
const env0_9 = value.useEffect;
|
|
const env0_10 = value.useMemo;
|
|
const env0_11 = value.useState;
|
|
const error = global.console.error;
|
|
const env0_13 = error.bind(global.console);
|
|
value = _fun62684(Component);
|
|
let value2 = _fun62690(Component);
|
|
const upperCase = function(a0, a1) {
|
|
return a1.toUpperCase();
|
|
};
|
|
const closure6 = function(a0) {
|
|
return a0.replace(RegExp('[:-]([a-z])', 'g'), upperCase);
|
|
};
|
|
const toSpaces = function(a0) {
|
|
return repeat_62672(' ', a0.length);
|
|
};
|
|
const env0_18 = RegExp('[a-zA-Z0-9:_-]', '');
|
|
const env0_19 = RegExp('<!--', '');
|
|
const env0_20 = RegExp('[\\s\\t\\r\\n]', '');
|
|
const env0_21 = RegExp('[\'"]', '');
|
|
exports.SvgAst = SvgAst2;
|
|
exports.SvgXml = SvgXml2;
|
|
exports.SvgUri = SvgUri;
|
|
exports.SvgFromXml = value;
|
|
exports.SvgFromUri = value2;
|
|
exports.camelCase = closure6;
|
|
exports.getStyle = getStyle2;
|
|
exports.astToReact = astToReact2;
|
|
exports.parse = parse_626732;
|
|
exports.tags = (require(7852) /* metro dependency 7852 */).tags;
|
|
function _callSuper_62661(a0, a1, a2) { // fn#62661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:263, offset: 0x00e303d2, size: 100 bytes, params: 4, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = a2;
|
|
const value3 = Module00017(a1);
|
|
if (_isNativeReflectConstruct_62662()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value3.apply(a0, value);
|
|
r0 = value;
|
|
}
|
|
return PossibleConstructorReturn(a0, r0);
|
|
}
|
|
|
|
function _isNativeReflectConstruct_62662() { // fn#62662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:394, offset: 0x01b62e12, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_62662_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function SvgAst(a0) { // fn#62666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:647, offset: 0x01b62e70, size: 115 bytes, params: 2, frame: 20
|
|
var props;
|
|
var children;
|
|
var svg;
|
|
var Object;
|
|
const ast = a0.ast;
|
|
if (ast) {
|
|
props = ast.props;
|
|
children = ast.children;
|
|
svg = (require(7852) /* metro dependency 7852 */).tags.svg;
|
|
Object = global.Object;
|
|
return ((Component) => <Component {...Object.assign({}, props, a0.override, {children: children})} />)(svg);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function SvgXml(a0) { // fn#62667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:836, offset: 0x01b62ee3, size: 156 bytes, params: 2, frame: 19
|
|
var environment;
|
|
var r6;
|
|
var r0;
|
|
var value3;
|
|
var closure;
|
|
var value4;
|
|
var jsxRuntimeEnv0_12Binding;
|
|
var error;
|
|
let value = a0;
|
|
const onError = value.onError;
|
|
const r2 = onError !== undefined ? onError : env0_13;
|
|
const xml = value.xml;
|
|
const override = value.override;
|
|
const fallback = value.fallback;
|
|
try {
|
|
value3 = environment;
|
|
closure = _fun62668;
|
|
value4 = useMemo(closure, [xml]);
|
|
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
|
r6 = override || value;
|
|
value = <SvgAst ast={value4} override={r6} />;
|
|
} catch (error) {
|
|
r2(error);
|
|
value = null;
|
|
r0 = value != fallback ? fallback : value;
|
|
return r0;
|
|
}
|
|
return value;
|
|
function _fun62668() { // fn#62668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:935, offset: 0x01b62f7f, size: 33 bytes, params: 1, frame: 12
|
|
const xmlBinding = xml;
|
|
const value2 = null;
|
|
return value2 === xmlBinding ? value2 : parse_62673(xml);
|
|
}
|
|
|
|
}
|
|
|
|
function getStyle(a0) { // fn#62669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:2722, offset: 0x01b62fa0, size: 137 bytes, params: 2, frame: 21
|
|
var r1;
|
|
var property;
|
|
var length2;
|
|
var value4;
|
|
var property2;
|
|
var camelCaseBinding;
|
|
var trim;
|
|
var value5;
|
|
var value6;
|
|
const object = {};
|
|
let value = a0.split(';');
|
|
value = value.filter(function(a0) {
|
|
return a0.trim();
|
|
});
|
|
const length = value.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r1 = value2;
|
|
while (true) {
|
|
property = value[r1];
|
|
length2 = property.length;
|
|
if (value2 !== length2) {
|
|
value4 = property.split(':');
|
|
property = value4[value2];
|
|
property2 = value4[1];
|
|
camelCaseBinding = camelCase;
|
|
trim = property.trim;
|
|
value5 = camelCaseBinding(Reflect.apply(trim, property, []));
|
|
trim = property2.trim;
|
|
object[value5] = Reflect.apply(trim, property2, []);
|
|
}
|
|
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value6 < length) {
|
|
r1 = value6;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function astToReact(a0, a1) { // fn#62671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:2929, offset: 0x01b63029, size: 130 bytes, params: 3, frame: 19
|
|
var Tag;
|
|
var props;
|
|
var children;
|
|
var value;
|
|
if (typeof a0 === 'object') {
|
|
Tag = a0.Tag;
|
|
props = a0.props;
|
|
children = a0.children;
|
|
value = props != null;
|
|
if (value && props.class) {
|
|
props.className = props.class;
|
|
delete props.class;
|
|
}
|
|
value = global.Object.assign({}, props, {children: children.map(astToReact)});
|
|
return <Tag {...value} key={a1} />;
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function parse_62673(a0, a1) { // fn#62673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:3305, offset: 0x01b630d3, size: 258 bytes, params: 3, frame: 22
|
|
var r8;
|
|
var r2;
|
|
var r0;
|
|
var value;
|
|
var value2;
|
|
var binding;
|
|
var children;
|
|
const env0_0 = a0;
|
|
const parse_62673Error2 = parse_62673Error;
|
|
const neutral2 = neutral;
|
|
const length = a0.length;
|
|
const metadata2 = metadata;
|
|
const env0_5 = [];
|
|
let env0_6 = 0;
|
|
if (0 < length) {
|
|
r8 = metadata2;
|
|
while (true) {
|
|
if (!r8) {
|
|
parse_62673Error2('Unexpected character');
|
|
}
|
|
value = r8();
|
|
value2 = env0_6 + 1;
|
|
env0_6 = value2;
|
|
if (value2 < length) {
|
|
r8 = value;
|
|
continue;
|
|
}
|
|
r2 = value;
|
|
break;
|
|
}
|
|
} else {
|
|
r2 = metadata2;
|
|
}
|
|
if (r2 !== neutral2) {
|
|
parse_62673Error2('Unexpected end of input');
|
|
}
|
|
if (env0_1) {
|
|
binding = env0_1;
|
|
r0 = a1 ? a1(binding) : binding;
|
|
r0 = !r0 ? env0_1 : r0;
|
|
children = r0.children;
|
|
r0.children = children.map(astToReact);
|
|
return r0;
|
|
}
|
|
return null;
|
|
function parse_62673Error(a0) { // fn#62674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:3474, owner: parse_62673.error, offset: 0x01b631d5, size: 372 bytes, params: 2, frame: 26
|
|
var r0;
|
|
var r1;
|
|
var r4;
|
|
var r5;
|
|
var length2;
|
|
var value3;
|
|
var value4;
|
|
const binding = env0_0;
|
|
const binding2 = env0_6;
|
|
let value = binding.split('\n');
|
|
const length = value.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r0 = value2;
|
|
r1 = binding2;
|
|
while (true) {
|
|
length2 = value[r0].length;
|
|
if (!(r1 >= length2)) {
|
|
r4 = r1;
|
|
r5 = r0;
|
|
break;
|
|
}
|
|
value3 = r1 - length2;
|
|
value4 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value4 < length) {
|
|
r0 = value4;
|
|
r1 = value3;
|
|
continue;
|
|
}
|
|
r4 = value3;
|
|
r5 = value4;
|
|
break;
|
|
}
|
|
} else {
|
|
r4 = binding2;
|
|
r5 = value2;
|
|
}
|
|
value = Reflect.apply(binding.slice(value2, binding2).replace, value, [RegExp('^\\t+', ''), toSpaces]);
|
|
value = RegExp('(^|\\n).*$', '').exec(value);
|
|
let r6 = value && value[value2];
|
|
r6 = !r6 ? '' : r6;
|
|
value = binding.slice(binding2);
|
|
value = RegExp('.*(\\n|$)', '').exec(value);
|
|
const object = {line: r5, column: r4};
|
|
object.snippet = '' + r6 + (value && value[value2]) + '\n' + repeat_62672(' ', r6.length) + '^';
|
|
const line = object.line;
|
|
const column = object.column;
|
|
const snippet = object.snippet;
|
|
const Error = global.Error;
|
|
value = '' + a0 + ' (' + line + ':' + column + "). If this is valid SVG, it's probably a bug. Please raise an issue\n\n" + snippet;
|
|
const value6 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error();
|
|
throw error instanceof Object ? error : value6;
|
|
}
|
|
|
|
function neutral() { // fn#62675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:3941, owner: parse_62673.neutral, offset: 0x01b63349, size: 179 bytes, params: 1, frame: 17
|
|
var r0;
|
|
var r5;
|
|
var r2;
|
|
var property;
|
|
var value3;
|
|
var value4;
|
|
let binding = env0_6;
|
|
const lengthBinding = length;
|
|
const value2 = '';
|
|
if (binding < lengthBinding) {
|
|
binding = env0_0;
|
|
property = binding[env0_6];
|
|
if (property === '<') {
|
|
r2 = value2;
|
|
} else {
|
|
r0 = value2;
|
|
r5 = property;
|
|
while (true) {
|
|
value3 = r0 + r5;
|
|
value4 = env0_6 + 1;
|
|
env0_6 = value4;
|
|
if (!(value4 < length)) {
|
|
r2 = value3;
|
|
break;
|
|
}
|
|
binding = env0_0;
|
|
property = binding[env0_6];
|
|
if (property !== '<') {
|
|
r0 = value3;
|
|
r5 = property;
|
|
continue;
|
|
}
|
|
r2 = value3;
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
r2 = value2;
|
|
}
|
|
const regexp = RegExp('\\S', '');
|
|
if (regexp.test(r2)) {
|
|
CreateClass.push(r2);
|
|
}
|
|
return env0_0[env0_6] === '<' ? openingTag : neutral;
|
|
}
|
|
|
|
function openingTag() { // fn#62676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:4066, owner: parse_62673.openingTag, offset: 0x01b633fc, size: 684 bytes, params: 1, frame: 27
|
|
var r2;
|
|
var r16;
|
|
var r8;
|
|
var r9;
|
|
var r1;
|
|
var value2;
|
|
var value4;
|
|
var regexp;
|
|
var test;
|
|
var push;
|
|
var binding2;
|
|
var value8;
|
|
var value9;
|
|
var attributeValue;
|
|
var value11;
|
|
var isNaN;
|
|
var isNaN2;
|
|
var trim;
|
|
var value12;
|
|
var value13;
|
|
var value15;
|
|
var children;
|
|
let binding = env0_0;
|
|
let property = binding[env0_6];
|
|
if (property !== '?') {
|
|
if (property === '!') {
|
|
value2 = env0_6 + 1;
|
|
binding = env0_0;
|
|
if (binding.slice(value2, env0_6 + 3) === '--') {
|
|
return comment;
|
|
}
|
|
value4 = env0_6 + 8;
|
|
binding = env0_0;
|
|
if (binding.slice(value2, value4) === '[CDATA[') {
|
|
return cdata;
|
|
}
|
|
regexp = RegExp('doctype', 'i');
|
|
test = regexp.test;
|
|
binding = env0_0;
|
|
reducibleJoin5: while (true) {
|
|
if (Reflect.apply(test, regexp, [binding.slice(value2, value4)])) {
|
|
return neutral;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
}
|
|
if (property === '/') {
|
|
return closingTag;
|
|
}
|
|
var value6 = parse_62673GetName();
|
|
var object = {};
|
|
var object2 = {tag: value6, props: object, children: [], parent: env0_3};
|
|
property = (require(7852) /* metro dependency 7852 */).tags[value6];
|
|
reducibleJoin8: while (true) {
|
|
if (property) {
|
|
r2 = property;
|
|
break reducibleJoin8;
|
|
}
|
|
r2 = missingTag;
|
|
break reducibleJoin8;
|
|
}
|
|
object2.Tag = r2;
|
|
if (env0_3) {
|
|
children2.push(object2);
|
|
}
|
|
binding = env0_6;
|
|
if (binding < length) {
|
|
reducibleLoop12: while (true) {
|
|
binding = env1_20;
|
|
test = binding.test;
|
|
binding2 = env0_0;
|
|
if (Reflect.apply(test, binding, [binding2[env0_6]])) {
|
|
allowSpaces();
|
|
value8 = parse_62673GetName();
|
|
if (value8) {
|
|
allowSpaces();
|
|
binding = env0_0;
|
|
value9 = true;
|
|
reducibleJoin22: while (true) {
|
|
if (binding[env0_6] !== '=') {
|
|
r9 = value9;
|
|
break reducibleJoin22;
|
|
}
|
|
env0_6 += 1;
|
|
allowSpaces();
|
|
attributeValue = getAttributeValue();
|
|
value11 = value8 === 'id';
|
|
reducibleJoin17: while (true) {
|
|
if (value11) {
|
|
r16 = value11;
|
|
break reducibleJoin17;
|
|
}
|
|
isNaN = global.isNaN;
|
|
isNaN2 = isNaN(Number(attributeValue));
|
|
r16 = isNaN2;
|
|
break reducibleJoin17;
|
|
}
|
|
reducibleJoin19: while (true) {
|
|
if (r16) {
|
|
break reducibleJoin19;
|
|
}
|
|
trim = attributeValue.trim;
|
|
value12 = Reflect.apply(trim, attributeValue, []) === '';
|
|
r16 = value12;
|
|
break reducibleJoin19;
|
|
}
|
|
reducibleJoin21: while (true) {
|
|
if (r16) {
|
|
r8 = attributeValue;
|
|
break reducibleJoin21;
|
|
}
|
|
value13 = Number(attributeValue);
|
|
r8 = value13;
|
|
break reducibleJoin21;
|
|
}
|
|
r9 = r8;
|
|
break reducibleJoin22;
|
|
}
|
|
object[camelCase(value8)] = r9;
|
|
binding = env0_6;
|
|
if (binding < length) {
|
|
continue reducibleLoop12;
|
|
}
|
|
break reducibleLoop12;
|
|
}
|
|
break reducibleLoop12;
|
|
}
|
|
break reducibleLoop12;
|
|
}
|
|
}
|
|
var style = object.style;
|
|
reducibleJoin25: while (true) {
|
|
if (typeof style !== 'string') {
|
|
break reducibleJoin25;
|
|
}
|
|
object2.styles = style;
|
|
object.style = getStyle(style);
|
|
break reducibleJoin25;
|
|
}
|
|
binding = env0_0;
|
|
reducibleJoin27: while (true) {
|
|
if (binding[env0_6] !== '/') {
|
|
r1 = false;
|
|
break reducibleJoin27;
|
|
}
|
|
env0_6 += 1;
|
|
value15 = true;
|
|
r1 = value15;
|
|
break reducibleJoin27;
|
|
}
|
|
binding = env0_0;
|
|
reducibleJoin29: while (true) {
|
|
if (binding[env0_6] === '>') {
|
|
break reducibleJoin29;
|
|
}
|
|
parse_62673Error('Expected >');
|
|
break reducibleJoin29;
|
|
}
|
|
reducibleJoin31: while (true) {
|
|
if (r1) {
|
|
break reducibleJoin31;
|
|
}
|
|
env0_3 = object2;
|
|
children = object2.children;
|
|
children2 = children;
|
|
binding = env0_5;
|
|
push = binding.push;
|
|
Reflect.apply(push, binding, [object2]);
|
|
break reducibleJoin31;
|
|
}
|
|
}
|
|
return neutral;
|
|
}
|
|
|
|
function comment() { // fn#62677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:4841, owner: parse_62673.comment, offset: 0x01b636a8, size: 69 bytes, params: 1, frame: 14
|
|
const value2 = env0_0.indexOf('-->', env0_6);
|
|
if (!~value2) {
|
|
parse_62673Error('expected -->');
|
|
}
|
|
env0_6 = value2 + 2;
|
|
return neutral;
|
|
}
|
|
|
|
function cdata() { // fn#62678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:4937, owner: parse_62673.cdata, offset: 0x01b636ed, size: 109 bytes, params: 1, frame: 17
|
|
let binding = env0_0;
|
|
const value2 = binding.indexOf(']]>', env0_6);
|
|
if (!~value2) {
|
|
parse_62673Error('expected ]]>');
|
|
}
|
|
binding = CreateClass;
|
|
const push = binding.push;
|
|
const binding2 = env0_0;
|
|
Reflect.apply(push, binding, [binding2.slice(env0_6 + 7, value2)]);
|
|
env0_6 = value2 + 2;
|
|
return neutral;
|
|
}
|
|
|
|
function closingTag() { // fn#62679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5048, owner: parse_62673.closingTag, offset: 0x01b6375a, size: 211 bytes, params: 1, frame: 20
|
|
var children;
|
|
const value2 = parse_62673GetName();
|
|
if (!value2) {
|
|
parse_62673Error('Expected tag name');
|
|
}
|
|
let binding = env0_3;
|
|
if (binding && value2 !== env0_3.tag) {
|
|
parse_62673Error('Expected closing tag </' + value2 + '> to match opening tag <' + env0_3.tag + '>');
|
|
}
|
|
allowSpaces();
|
|
if (env0_0[env0_6] !== '>') {
|
|
parse_62673Error('Expected >');
|
|
}
|
|
env0_5.pop();
|
|
binding = env0_5;
|
|
const property = binding[binding.length - 1];
|
|
if (property) {
|
|
children = property.children;
|
|
}
|
|
return neutral;
|
|
}
|
|
|
|
function parse_62673GetName() { // fn#62680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5303, owner: parse_62673.getName, offset: 0x01b6382d, size: 136 bytes, params: 1, frame: 19
|
|
var r2;
|
|
var r3;
|
|
var r0;
|
|
var value3;
|
|
var test;
|
|
var property;
|
|
var value5;
|
|
var value6;
|
|
var binding3;
|
|
let binding = env0_6;
|
|
const lengthBinding = length;
|
|
const value2 = '';
|
|
if (binding < lengthBinding) {
|
|
value3 = environment.__proto__;
|
|
binding = env1_18;
|
|
test = binding.test;
|
|
property = env0_0[env0_6];
|
|
if (Reflect.apply(test, binding, [property])) {
|
|
r2 = value2;
|
|
r3 = property;
|
|
while (true) {
|
|
value5 = r2 + r3;
|
|
value6 = env0_6 + 1;
|
|
env0_6 = value6;
|
|
if (!(value6 < length)) {
|
|
r0 = value5;
|
|
break;
|
|
}
|
|
binding = env1_18;
|
|
test = binding.test;
|
|
binding3 = env0_0;
|
|
property = binding3[env0_6];
|
|
if (Reflect.apply(test, binding, [property])) {
|
|
r2 = value5;
|
|
r3 = property;
|
|
continue;
|
|
}
|
|
r0 = value5;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getAttributeValue() { // fn#62681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5377, owner: parse_62673.getAttributeValue, offset: 0x01b638b5, size: 267 bytes, params: 1, frame: 21
|
|
var r4;
|
|
var r0;
|
|
var r5;
|
|
var r3;
|
|
var r2;
|
|
var r1;
|
|
var property;
|
|
var value4;
|
|
var value5;
|
|
var binding3;
|
|
var value6;
|
|
var value7;
|
|
var binding4;
|
|
var value8;
|
|
var property2;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value13;
|
|
var value14;
|
|
let binding = env1_21;
|
|
const value2 = binding.test(env0_0[env0_6]);
|
|
const value3 = '';
|
|
if (value2) {
|
|
binding = env0_0;
|
|
binding3 = env0_6;
|
|
value6 = typeof binding3 === 'bigint' ? binding3 : +binding3;
|
|
value7 = typeof value6 === 'bigint' ? value6 + 1n : +value6 + 1;
|
|
env0_6 = value7;
|
|
if (value7 < length) {
|
|
r5 = value3;
|
|
loopExit7: while (true) {
|
|
binding = env0_0;
|
|
binding4 = env0_6;
|
|
value8 = typeof binding4 === 'bigint' ? binding4 : +binding4;
|
|
env0_6 = typeof value8 === 'bigint' ? value8 + 1n : +value8 + 1;
|
|
property2 = binding[value8];
|
|
if (property2 === binding[value6]) {
|
|
r1 = r5;
|
|
break loopExit7;
|
|
}
|
|
value9 = property2 !== '\\';
|
|
if (value9) {
|
|
r3 = value9;
|
|
continue;
|
|
}
|
|
value10 = false;
|
|
r3 = value10;
|
|
value11 = false;
|
|
if (r3) {
|
|
r4 = value11;
|
|
continue;
|
|
}
|
|
value12 = true;
|
|
r4 = value12;
|
|
if (!r4) {
|
|
r3 = property2;
|
|
continue;
|
|
}
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value13 = '\\' + property2;
|
|
r3 = value13;
|
|
value14 = r5 + r3;
|
|
binding = env0_6;
|
|
if (binding < length) {
|
|
r5 = value14;
|
|
continue;
|
|
}
|
|
r2 = value14;
|
|
r1 = r2;
|
|
break loopExit7;
|
|
}
|
|
} else {
|
|
r1 = value3;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r4 = value3;
|
|
while (true) {
|
|
binding = env0_0;
|
|
property = binding[env0_6];
|
|
if (property === ' ') {
|
|
r0 = r4;
|
|
break;
|
|
}
|
|
if (property === '>') {
|
|
r0 = r4;
|
|
break;
|
|
}
|
|
if (property === '/') {
|
|
r0 = r4;
|
|
break;
|
|
}
|
|
value4 = r4 + property;
|
|
value5 = env0_6 + 1;
|
|
env0_6 = value5;
|
|
if (value5 < length) {
|
|
r4 = value4;
|
|
continue;
|
|
}
|
|
r0 = value4;
|
|
break;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function allowSpaces() { // fn#62682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:5714, owner: parse_62673.allowSpaces, offset: 0x01b639c0, size: 103 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var test;
|
|
var value4;
|
|
var binding3;
|
|
let binding = env0_6;
|
|
if (binding < length) {
|
|
value2 = environment.__proto__;
|
|
binding = env1_20;
|
|
test = binding.test;
|
|
if (Reflect.apply(test, binding, [env0_0[env0_6]])) {
|
|
while (true) {
|
|
value4 = env0_6 + 1;
|
|
env0_6 = value4;
|
|
if (!(value4 < length)) {
|
|
break;
|
|
}
|
|
binding = env1_20;
|
|
test = binding.test;
|
|
binding3 = env0_0;
|
|
if (Reflect.apply(test, binding, [binding3[env0_6]])) {
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function metadata() { // fn#62683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:3352, owner: parse_62673.metadata, offset: 0x01b63a27, size: 257 bytes, params: 1, frame: 18
|
|
var binding;
|
|
var value3;
|
|
var test;
|
|
var binding2;
|
|
var binding3;
|
|
var slice;
|
|
var binding4;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var binding5;
|
|
var binding6;
|
|
var binding7;
|
|
reducibleJoin8: while (true) {
|
|
if (!(env0_6 + 1 < length)) {
|
|
break reducibleJoin8;
|
|
}
|
|
binding = env0_0;
|
|
if (binding[env0_6] === '<') {
|
|
value3 = environment.__proto__;
|
|
binding = env1_18;
|
|
test = binding.test;
|
|
binding2 = env0_0;
|
|
if (Reflect.apply(test, binding, [binding2[env0_6 + 1]])) {
|
|
break reducibleJoin8;
|
|
}
|
|
binding = env1_19;
|
|
test = binding.test;
|
|
binding3 = env0_0;
|
|
slice = binding3.slice;
|
|
binding4 = env0_6;
|
|
if (Reflect.apply(test, binding, [Reflect.apply(slice, binding3, [binding4, binding4 + 4])])) {
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
reducibleLoop4: while (true) {
|
|
binding = env0_6;
|
|
value4 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
env0_6 = value4;
|
|
value5 = value4 + 1;
|
|
if (value5 < length) {
|
|
binding = env0_0;
|
|
if (binding[env0_6] !== '<') {
|
|
continue reducibleLoop4;
|
|
}
|
|
value6 = environment.__proto__;
|
|
binding = env1_18;
|
|
test = binding.test;
|
|
binding5 = env0_0;
|
|
if (Reflect.apply(test, binding, [binding5[env0_6 + 1]])) {
|
|
break reducibleJoin8;
|
|
}
|
|
binding = env1_19;
|
|
test = binding.test;
|
|
binding6 = env0_0;
|
|
slice = binding6.slice;
|
|
binding7 = env0_6;
|
|
if (Reflect.apply(test, binding, [Reflect.apply(slice, binding6, [binding7, binding7 + 4])])) {
|
|
break reducibleJoin8;
|
|
}
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
return neutral();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun62684(a0) { // fn#62684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1066, offset: 0x01b63b28, size: 137 bytes, params: 2, frame: 16
|
|
const SvgFromXml2 = SvgFromXml;
|
|
Inherits(SvgFromXml2, a0);
|
|
return CreateClass(SvgFromXml2, [{key: 'componentDidMount', value: function() {
|
|
this.parse(this.props.xml);
|
|
}}, {key: 'componentDidUpdate', value: function(a0) {
|
|
var xml = this.props.xml;
|
|
if (xml !== a0.xml) {
|
|
this.parse(xml);
|
|
}
|
|
}}, {key: 'parse', value: value_62688}, {key: 'render', value: value_62689}]);
|
|
function SvgFromXml() { // fn#62685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1078, offset: 0x01b63bb1, size: 131 bytes, params: 1, frame: 19
|
|
var r2;
|
|
var value7;
|
|
let value = environment.__proto__;
|
|
env1_3(this, SvgFromXml);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
for (r2 = value6; true; r2 = value7) {
|
|
array[r2] = arguments[r2];
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value7 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const _callSuper_62661Binding = _callSuper_62661;
|
|
const items2 = [];
|
|
value = _callSuper_62661Binding(this, SvgFromXml, items2.concat(array));
|
|
value.state = {ast: null};
|
|
return value;
|
|
}
|
|
|
|
function value_62688(a0) { // fn#62688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1523, offset: 0x01b63c7b, size: 142 bytes, params: 2, frame: 19
|
|
var r2;
|
|
var r5;
|
|
var value;
|
|
var setState;
|
|
var error;
|
|
var Object;
|
|
var assign;
|
|
var message;
|
|
const onError = this.props.onError;
|
|
if (onError !== undefined) {
|
|
r2 = onError;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r2 = env1_13;
|
|
}
|
|
try {
|
|
setState = this.setState;
|
|
value = null;
|
|
if (a0) {
|
|
value = environment.__proto__;
|
|
value = parse_62673(a0);
|
|
r5 = value;
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
Reflect.apply(setState, this, [{ast: r5}]);
|
|
} catch (error) {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
message = error.message;
|
|
r2(Reflect.apply(assign, Object, [{}, error, {message: "[RNSVG] Couldn't parse SVG, reason: " + message}]));
|
|
}
|
|
}
|
|
|
|
function value_62689() { // fn#62689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1749, offset: 0x01b63d09, size: 64 bytes, params: 1, frame: 15
|
|
const props = this.props;
|
|
return <SvgAst ast={this.state.ast} override={props.override || props} />;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun62690(a0) { // fn#62690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1859, offset: 0x01b63d49, size: 155 bytes, params: 2, frame: 17
|
|
const SvgFromUri2 = SvgFromUri;
|
|
Inherits(SvgFromUri2, a0);
|
|
const env0_0 = Module00005(_fun62695);
|
|
return CreateClass(SvgFromUri2, [{key: 'componentDidMount', value: function() {
|
|
this.fetch(this.props.uri);
|
|
}}, {key: 'componentDidUpdate', value: function(a0) {
|
|
var uri = this.props.uri;
|
|
if (uri !== a0.uri) {
|
|
this.fetch(uri);
|
|
}
|
|
}}, {key: 'fetch', value: value_62696}, {key: 'render', value: value_62697}]);
|
|
function SvgFromUri() { // fn#62691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:1871, offset: 0x01b63de4, size: 131 bytes, params: 1, frame: 19
|
|
var r2;
|
|
var value7;
|
|
let value = environment.__proto__;
|
|
env1_3(this, SvgFromUri);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
for (r2 = value6; true; r2 = value7) {
|
|
array[r2] = arguments[r2];
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value7 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
const _callSuper_62661Binding = _callSuper_62661;
|
|
const items2 = [];
|
|
value = _callSuper_62661Binding(this, SvgFromUri, items2.concat(array));
|
|
value.state = {xml: null};
|
|
return value;
|
|
}
|
|
|
|
function* _fun62695(a0) { // fn#62695, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:2322, offset: 0x01b63eb4, size: 121 bytes, params: 2, frame: 17
|
|
var r5;
|
|
var setState;
|
|
var object;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var fetchText;
|
|
var value3;
|
|
var error;
|
|
var console;
|
|
var error2;
|
|
if (true) {
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort21: while (true) {
|
|
exceptionLanding20: while (true) {
|
|
try {
|
|
setState = this.setState;
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
console = global.console;
|
|
error2 = console.error;
|
|
Reflect.apply(error2, console, [error]);
|
|
break reduciblePort21;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
value = null;
|
|
if (a0) {
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
try {
|
|
property = binding2[10];
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
try {
|
|
value = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
try {
|
|
fetchText = value.fetchText;
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
try {
|
|
value = Reflect.apply(fetchText, value, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
reducibleJoin17: while (true) {
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin17;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
try {
|
|
object.xml = r5;
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
try {
|
|
Reflect.apply(setState, this, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding20;
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_62696(a0) { // fn#62696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:2425, offset: 0x00c3945f, size: 30 bytes, params: 2, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
function value_62697() { // fn#62697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:2497, offset: 0x01b63f2d, size: 63 bytes, params: 1, frame: 14
|
|
const props = this.props;
|
|
return ((Component) => <Component xml={this.state.xml} override={props} onError={props.onError} />)(env1_14);
|
|
}
|
|
|
|
}
|
|
|
|
function SvgUri(a0) { // fn#62701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6010, offset: 0x01b63fbf, size: 210 bytes, params: 2, frame: 25
|
|
const onError = a0.onError;
|
|
const r12 = onError !== undefined ? onError : env0_13;
|
|
const uri = a0.uri;
|
|
const onLoad = a0.onLoad;
|
|
const fallback = a0.fallback;
|
|
const value2 = null;
|
|
const value3 = useState(value2);
|
|
const value4 = Module00057(value3, 2);
|
|
const property = value4[0];
|
|
const env0_3 = value4[1];
|
|
const [property2, env0_5] = Module00057(useState(false), 2);
|
|
useEffect(_fun62702, [r12, uri, onLoad]);
|
|
return (
|
|
property2
|
|
? value2 != fallback ? fallback : value2
|
|
: (
|
|
<SvgXml
|
|
xml={property}
|
|
override={a0}
|
|
fallback={fallback}
|
|
/>
|
|
)
|
|
);
|
|
function _fun62702() { // fn#62702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6168, offset: 0x01b64091, size: 102 bytes, params: 1, frame: 13
|
|
var environment;
|
|
var value2;
|
|
var moduleValue;
|
|
var value;
|
|
if (uri) {
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(7853) /* metro dependency 7853 */;
|
|
value = moduleValue.fetchText(uri);
|
|
value = value.then(_fun62703);
|
|
value.catch(_fun62704);
|
|
} else {
|
|
env0_3(null);
|
|
}
|
|
function _fun62703(a0) { // fn#62703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6209, offset: 0x01b640f7, size: 55 bytes, params: 2, frame: 12
|
|
env1_3(a0);
|
|
if (env1_4) {
|
|
env1_5(false);
|
|
}
|
|
if (onLoad != null) {
|
|
onLoad();
|
|
}
|
|
}
|
|
|
|
function _fun62704(a0) { // fn#62704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8029:6258, offset: 0x01b6412e, size: 30 bytes, params: 2, frame: 12
|
|
env1_0(a0);
|
|
env1_5(true);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun62660, 7851, [5, 6, 7, 15, 17, 18, 57, 31, 33, 7852,
|
|
7853]) /* metro module 7851, dependencies: [5, 6, 7, 15, 17, 18, 57, 31, 33, 7852, 7853] */;
|