273 lines
14 KiB
React
273 lines
14 KiB
React
/* Metro module 7377; source: unknown; dependencies: [7370, 7376] */
|
|
function _fun59423(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:6, offset: 0x016ea2ec, size: 108 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.getComponentName = getComponentName_59428;
|
|
exports.getDomElement = getDomElement;
|
|
exports.getLocationHref = getLocationHref_59430;
|
|
exports.htmlTreeAsString = htmlTreeAsString_59431;
|
|
}
|
|
|
|
function _htmlElementAsString_59424(a0, a1) { // fn#59424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:80, offset: 0x016ea358, size: 614 bytes, params: 3, frame: 28
|
|
var environment;
|
|
var r5;
|
|
var r6;
|
|
var r4;
|
|
var items2;
|
|
var tagName;
|
|
var value;
|
|
var GLOBAL_OBJ;
|
|
var HTMLElement;
|
|
var dataset;
|
|
var sentryComponent;
|
|
var sentryElement;
|
|
var push;
|
|
var toLowerCase;
|
|
var value2;
|
|
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;
|
|
exceptionSkip41: while (true) {
|
|
exceptionLanding41: while (true) {
|
|
exceptionSkip25: while (true) {
|
|
exceptionLanding25: while (true) {
|
|
var env0_0 = a0;
|
|
items2 = [];
|
|
var env0_1 = items2;
|
|
if (a0) {
|
|
tagName = a0.tagName;
|
|
reducibleJoin2: while (true) {
|
|
if (tagName) {
|
|
value = environment;
|
|
GLOBAL_OBJ = (require(7370) /* metro dependency 7370 */).GLOBAL_OBJ;
|
|
HTMLElement = GLOBAL_OBJ.HTMLElement;
|
|
if (HTMLElement) {
|
|
HTMLElement = global.HTMLElement;
|
|
reducibleJoin8: 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 reducibleJoin8;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
push = items2.push;
|
|
tagName = a0.tagName;
|
|
toLowerCase = tagName.toLowerCase;
|
|
Reflect.apply(push, items2, [Reflect.apply(toLowerCase, tagName, [])]);
|
|
value2 = null;
|
|
reducibleJoin11: while (true) {
|
|
if (a1) {
|
|
length = a1.length;
|
|
if (length) {
|
|
filter = a1.filter;
|
|
value3 = Reflect.apply(filter, a1, [_fun59425]);
|
|
map = value3.map;
|
|
value4 = Reflect.apply(map, value3, [_fun59426]);
|
|
r5 = value4;
|
|
break reducibleJoin11;
|
|
}
|
|
r5 = value2;
|
|
break reducibleJoin11;
|
|
}
|
|
r5 = value2;
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
reducibleJoin15: while (true) {
|
|
if (r5) {
|
|
length = r5.length;
|
|
if (length) {
|
|
forEach = r5.forEach;
|
|
Reflect.apply(forEach, r5, [_fun59427]);
|
|
break reducibleJoin27;
|
|
}
|
|
id = a0.id;
|
|
if (id) {
|
|
push = items2.push;
|
|
id = a0.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(push, items2, ['#' + id]);
|
|
break reducibleJoin15;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
id = a0.id;
|
|
if (id) {
|
|
push = items2.push;
|
|
id = a0.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(push, items2, ['#' + id]);
|
|
break reducibleJoin15;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
className = a0.className;
|
|
if (!className) {
|
|
break reducibleJoin27;
|
|
}
|
|
value = require(7376) /* metro dependency 7376 */;
|
|
isString = value.isString;
|
|
if (!Reflect.apply(isString, value, [className])) {
|
|
break reducibleJoin27;
|
|
}
|
|
split = className.split;
|
|
iterator = Reflect.apply(split, className, [RegExp('\\s+', '')])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r6 = iterator;
|
|
reducibleLoop18: while (true) {
|
|
item2 = Reflect.apply(iterator2, r6, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r6;
|
|
if (item2 === undefined) {
|
|
break reducibleJoin27;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
value = '.' + item;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
r6 = item2;
|
|
continue reducibleLoop18;
|
|
}
|
|
break reducibleJoin27;
|
|
}
|
|
iterator = ['aria-label', 'type', 'name', 'title', 'alt'][Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r4 = iterator;
|
|
reducibleLoop28: while (true) {
|
|
item3 = Reflect.apply(iterator3, r4, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r4;
|
|
if (item3 === undefined) {
|
|
break reducibleLoop28;
|
|
}
|
|
try {
|
|
getAttribute = a0.getAttribute;
|
|
} catch (error) {
|
|
break exceptionLanding41;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getAttribute, a0, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding41;
|
|
}
|
|
if (value) {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding41;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding41;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding41;
|
|
}
|
|
try {
|
|
value = '[' + item + '="' + value + '"]';
|
|
} catch (error) {
|
|
break exceptionLanding41;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding41;
|
|
}
|
|
r4 = item3;
|
|
continue reducibleLoop28;
|
|
}
|
|
r4 = item3;
|
|
continue reducibleLoop28;
|
|
}
|
|
join = items2.join;
|
|
return Reflect.apply(join, items2, ['']);
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
}
|
|
return '';
|
|
break exceptionSkip25;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip25;
|
|
}
|
|
break exceptionSkip41;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip41;
|
|
}
|
|
}
|
|
|
|
function getDomElement(a0) { // fn#59429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7555:1155, offset: 0x016ea5be, size: 126 bytes, params: 2, frame: 15
|
|
const GLOBAL_OBJ = (require(7370) /* metro dependency 7370 */).GLOBAL_OBJ;
|
|
return GLOBAL_OBJ.document && GLOBAL_OBJ.document.querySelector ? GLOBAL_OBJ.document.querySelector(a0) : null;
|
|
}
|
|
|