269 lines
13 KiB
React
269 lines
13 KiB
React
/* Metro module 837; source: unknown; dependencies: [830, 836] */
|
|
function _fun9074(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:964:6, offset: 0x00d5c52b, size: 109 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.getComponentName = getComponentName;
|
|
exports.getLocationHref = getLocationHref;
|
|
exports.htmlTreeAsString = htmlTreeAsString;
|
|
}
|
|
|
|
function _htmlElementAsString(a0, a1) { // fn#9075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:964:92, offset: 0x00d5c598, size: 628 bytes, params: 3, frame: 28
|
|
var environment;
|
|
var r5;
|
|
var r6;
|
|
var r4;
|
|
var items2;
|
|
var value;
|
|
var tagName;
|
|
var value2;
|
|
var GLOBAL_OBJ;
|
|
var HTMLElement;
|
|
var dataset;
|
|
var sentryComponent;
|
|
var sentryElement;
|
|
var push;
|
|
var toLowerCase;
|
|
var length;
|
|
var filter;
|
|
var value3;
|
|
var map;
|
|
var value4;
|
|
var id;
|
|
var HermesInternal;
|
|
var concat;
|
|
var className;
|
|
var isString;
|
|
var split;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var error;
|
|
var forEach;
|
|
var iterator3;
|
|
var item3;
|
|
var getAttribute;
|
|
var join;
|
|
exceptionSkip40: while (true) {
|
|
exceptionLanding40: while (true) {
|
|
exceptionSkip24: while (true) {
|
|
exceptionLanding24: while (true) {
|
|
var env0_0 = a0;
|
|
items2 = [];
|
|
var env0_1 = items2;
|
|
value = null;
|
|
if (value != a0) {
|
|
tagName = a0.tagName;
|
|
reducibleJoin44: while (true) {
|
|
if (tagName) {
|
|
value2 = environment;
|
|
GLOBAL_OBJ = (require(830) /* metro dependency 830 */).GLOBAL_OBJ;
|
|
HTMLElement = GLOBAL_OBJ.HTMLElement;
|
|
if (HTMLElement) {
|
|
HTMLElement = global.HTMLElement;
|
|
reducibleJoin7: while (true) {
|
|
if (a0 instanceof HTMLElement) {
|
|
dataset = a0.dataset;
|
|
if (dataset) {
|
|
dataset = a0.dataset;
|
|
sentryComponent = dataset.sentryComponent;
|
|
dataset = a0.dataset;
|
|
if (sentryComponent) {
|
|
return dataset.sentryComponent;
|
|
}
|
|
sentryElement = dataset.sentryElement;
|
|
if (sentryElement) {
|
|
return a0.dataset.sentryElement;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
}
|
|
push = items2.push;
|
|
tagName = a0.tagName;
|
|
toLowerCase = tagName.toLowerCase;
|
|
Reflect.apply(push, items2, [Reflect.apply(toLowerCase, tagName, [])]);
|
|
reducibleJoin10: while (true) {
|
|
if (value != a1) {
|
|
length = a1.length;
|
|
if (length) {
|
|
filter = a1.filter;
|
|
value3 = Reflect.apply(filter, a1, [_fun9076]);
|
|
map = value3.map;
|
|
value4 = Reflect.apply(map, value3, [_fun9077]);
|
|
r5 = value4;
|
|
break reducibleJoin10;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
reducibleJoin26: while (true) {
|
|
reducibleJoin14: while (true) {
|
|
if (value == r5) {
|
|
id = a0.id;
|
|
if (id) {
|
|
push = items2.push;
|
|
id = a0.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(push, items2, ['#' + id]);
|
|
break reducibleJoin14;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
length = r5.length;
|
|
if (length) {
|
|
forEach = r5.forEach;
|
|
Reflect.apply(forEach, r5, [_fun9078]);
|
|
break reducibleJoin26;
|
|
}
|
|
id = a0.id;
|
|
if (id) {
|
|
push = items2.push;
|
|
id = a0.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(push, items2, ['#' + id]);
|
|
break reducibleJoin14;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
className = a0.className;
|
|
if (!className) {
|
|
break reducibleJoin26;
|
|
}
|
|
value = require(836) /* metro dependency 836 */;
|
|
isString = value.isString;
|
|
if (!Reflect.apply(isString, value, [className])) {
|
|
break reducibleJoin26;
|
|
}
|
|
split = className.split;
|
|
iterator = Reflect.apply(split, className, [RegExp('\\s+', '')])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r6 = iterator;
|
|
reducibleLoop17: while (true) {
|
|
item2 = Reflect.apply(iterator2, r6, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r6;
|
|
if (item2 === undefined) {
|
|
break reducibleJoin26;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
value = '.' + item;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
r6 = item2;
|
|
continue reducibleLoop17;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
iterator = ['aria-label', 'type', 'name', 'title', 'alt'][Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r4 = iterator;
|
|
reducibleLoop27: while (true) {
|
|
item3 = Reflect.apply(iterator3, r4, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r4;
|
|
if (item3 === undefined) {
|
|
break reducibleLoop27;
|
|
}
|
|
try {
|
|
getAttribute = a0.getAttribute;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getAttribute, a0, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
if (value) {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value = '[' + item + '="' + value + '"]';
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
r4 = item3;
|
|
continue reducibleLoop27;
|
|
}
|
|
r4 = item3;
|
|
continue reducibleLoop27;
|
|
}
|
|
join = items2.join;
|
|
return Reflect.apply(join, items2, ['']);
|
|
}
|
|
break reducibleJoin44;
|
|
}
|
|
}
|
|
return '';
|
|
break exceptionSkip24;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip24;
|
|
}
|
|
break exceptionSkip40;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip40;
|
|
}
|
|
}
|
|
|